/* 惠多多 - 平价电商平台样式 */

/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.btn-outline {
    background: transparent;
    color: #ff6b6b;
    border: 2px solid #ff6b6b;
}

.btn-outline:hover {
    background: #ff6b6b;
    color: white;
}

.btn-large {
    padding: 15px 30px;
    font-size: 16px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-icon {
    padding: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 头部样式 */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid #e9ecef;
    transform: translateY(0);
    transition: transform 0.3s ease-in-out;
}

/* 页眉隐藏状态 */
.header.header-hidden {
    transform: translateY(-100%);
}

.header-content {
    padding: 15px 0;
    height: 78px;
}

/* 默认显示桌面端布局 */
.desktop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.mobile-header {
    display: none;
}

.header .nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.header .nav-list a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.header .nav-list a:hover {
    background: #f8f9fa;
    color: #e74c3c;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #ff6b6b;
}

.logo a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo h1 {
    display: inline;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #ff6b6b;
}

.logo span {
    display: inline;
    font-size: 10px;
    color: #ffa500;
    font-weight: 400;
    margin-left: 4px;
}

.logo i {
    font-size: 20px;
}

.logo small {
    font-size: 12px;
    color: #ffa500;
    font-weight: 400;
}

.search-bar {
    flex: 1;
    max-width: 250px;
    margin: 0 15px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #ff6b6b;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #ff5252;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header .search-box {
    position: relative;
}

.header .search-box input {
    padding: 10px 40px 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 14px;
    width: 150px;
    transition: border-color 0.3s ease;
}

.header .search-box input:focus {
    outline: none;
    border-color: #e74c3c;
}

.header .search-box button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.header .search-box button:hover {
    background: #c0392b;
}

.header .cart-icon {
    position: relative;
    color: #333;
    font-size: 20px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header .cart-icon:hover {
    color: #e74c3c;
}

.header .cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.cart-link {
    position: relative;
    color: #333;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.cart-link:hover {
    color: #ff6b6b;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-menu {
    position: relative;
}

.user-link {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.user-link:hover {
    background: #f8f9fa;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s ease;
}

.user-dropdown a:hover {
    background: #f8f9fa;
}

.auth-links {
    display: flex;
    gap: 10px;
}

.header .auth-links a {
    color: #333;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.header .auth-links a:hover {
    background: #f8f9fa;
    color: #e74c3c;
}

.header .auth-links a:last-child {
    background: #e74c3c;
    color: white;
}

.header .auth-links a:last-child:hover {
    background: #c0392b;
}

.guest-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.guest-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.guest-link:hover {
    color: #ff6b6b;
}

/* 主导航 */
.main-nav {
    background: #2c3e50;
    color: white;
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    z-index: 999;
    transition: top 0.3s ease-in-out;
    margin-top: -1px;
}

/* 当顶部导航栏隐藏时，主导航移到顶部 */
.header-hidden-state .main-nav {
    top: 0;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.nav-list li {
    position: relative;
}

.nav-list a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
}

.nav-list a:hover,
.nav-list a.active {
    background: #34495e;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    color: #333;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-menu a:hover {
    background: #f8f9fa;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

/* 轮播图 */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.slide-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.hero-nav button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s ease;
}

.hero-nav button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background: white;
}

/* 特色服务 */
.features {
    padding: 40px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-radius: 12px;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.feature-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.feature-content p {
    color: #7f8c8d;
    font-size: 14px;
}

/* 限时抢购 */
.flash-sale {
    padding: 60px 0;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title i {
    color: #ff6b6b;
}

.countdown {
    display: flex;
    align-items: center;
    gap: 15px;
}

.countdown-text {
    font-weight: 500;
    color: #2c3e50;
}

.countdown-timer {
    display: flex;
    gap: 10px;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ff6b6b;
    color: white;
    padding: 10px;
    border-radius: 8px;
    min-width: 60px;
}

.time-value {
    font-size: 24px;
    font-weight: 700;
}

.time-label {
    font-size: 12px;
    margin-top: 2px;
}

/* 商品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.flash-card {
    border: 2px solid #ff6b6b;
}

.bargain-card {
    border: 2px solid #ffa500;
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: white;
}

.badge-new {
    background: #27ae60;
}

.badge-sale {
    background: #e74c3c;
}

.badge-flash {
    background: #ff6b6b;
    animation: pulse 2s infinite;
}

.badge-bargain {
    background: #ffa500;
}

.badge-save {
    background: #27ae60;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-name a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-name a:hover {
    color: #ff6b6b;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: #ddd;
    font-size: 14px;
}

.stars i.active {
    color: #f39c12;
}

.rating-count {
    font-size: 12px;
    color: #7f8c8d;
}

.product-price {
    margin-bottom: 15px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: #e74c3c;
}

.original-price {
    font-size: 14px;
    color: #7f8c8d;
    text-decoration: line-through;
    margin-left: 8px;
}

.product-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: auto;
}

.product-actions .btn {
    flex: 1;
}

/* 分类区域 */
.categories {
    padding: 60px 0;
    background: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.category-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.category-card p {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 10px;
}

.category-count {
    font-size: 12px;
    color: #ff6b6b;
    font-weight: 500;
}

.category-card a {
    text-decoration: none;
    color: inherit;
}

/* 特价专区 */
.bargain-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.view-all {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.view-all:hover {
    color: #ff5252;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    max-width: 1000px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.footer-section:first-child {
    flex: 2;
    max-width: 400px;
}

.footer-section h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ff6b6b;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ff6b6b;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #34495e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #ff6b6b;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .footer-content {
        gap: 15px;
        justify-content: center;
    }
    
    .footer-section {
        min-width: 180px;
        max-width: 250px;
    }
    
    .footer-section:first-child {
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-bar {
        margin: 0;
        max-width: none;
    }
    
    .nav-list {
        flex-wrap: wrap;
    }
    
    .nav-list a {
        padding: 12px 15px;
    }
    
    .slide-content h2 {
        font-size: 32px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .countdown {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 25px;
        text-align: center;
        justify-content: center;
        align-items: center;
    }
    
    .footer-section {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        height: 400px;
    }
    
    .slide-content h2 {
        font-size: 24px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        flex-direction: column;
    }
}

/* 卖家中心相关样式 */
.seller-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 40px;
    margin-top: 40px;
    color: white;
    text-align: center;
}

.seller-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.seller-cta-text h3 {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 700;
}

.seller-cta-text h3 i {
    margin-right: 10px;
    color: #ffd700;
}

.seller-cta-text p {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.seller-cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-seller {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    font-weight: 600;
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-seller:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    color: #333;
}

.btn-seller i {
    margin-right: 8px;
}

/* 主导航下拉菜单样式 */
.main-nav .dropdown {
    position: relative;
}

.main-nav .dropdown:hover .dropdown-menu {
    display: block;
}

.main-nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 10px 0;
    min-width: 180px;
    z-index: 1000;
    border: 1px solid #e1e5e9;
}

.main-nav .dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f1f3f4;
}

.main-nav .dropdown-menu a:last-child {
    border-bottom: none;
}

.main-nav .dropdown-menu a:hover {
    background: #f8f9fa;
    color: #ff6b6b;
    padding-left: 25px;
}

.main-nav .dropdown-menu a i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* 头部卖家链接样式 */
.seller-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.seller-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    color: white !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .seller-cta {
        padding: 30px 20px;
    }
    
    .seller-cta-text h3 {
        font-size: 24px;
    }
    
    .seller-cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-seller, .btn-outline {
        width: 100%;
        max-width: 300px;
    }
    
    .main-nav .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        background: #f8f9fa;
        margin-top: 10px;
        border-radius: 0;
    }
    
    .main-nav .dropdown:hover .dropdown-menu {
        display: block;
    }
}

/* 产品三点菜单样式 */
.product-actions .product-menu {
    position: relative;
    display: inline-block;
}

/* 默认隐藏菜单 */
.product-actions .product-menu-dropdown {
    position: absolute;
    top: auto;
    bottom: 100%;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 150px;
    z-index: 99999;
    display: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.product-actions .product-menu-btn {
    background: #ff6b6b;
    border: 1px solid #ff6b6b;
    color: white;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-actions .product-menu-btn:hover {
    background: #e55a5a;
    border-color: #e55a5a;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.product-actions .product-menu-dropdown {
    position: absolute;
    top: auto;
    bottom: 100%;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 150px;
    z-index: 99999;
    display: none !important;
    margin-top: 0;
    margin-bottom: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

/* 向下展开的菜单样式（当需要时） */
.product-actions .product-menu-dropdown.dropdown {
    top: 100%;
    bottom: auto;
    margin-top: 4px;
    margin-bottom: 0;
}

/* 向上展开的菜单样式（默认） */
.product-actions .product-menu-dropdown.dropup {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: 4px;
}

.product-actions .product-menu-dropdown.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    position: absolute !important;
    top: auto !important;
    bottom: 100% !important;
    right: 0 !important;
    background: white !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    min-width: 150px !important;
    z-index: 99999 !important;
    margin-top: 0 !important;
    margin-bottom: 5px !important;
}

.product-actions .menu-item {
    display: block;
    padding: 10px 15px;
    color: #495057;
    text-decoration: none;
    border-bottom: 1px solid #f8f9fa;
    transition: background 0.3s ease;
}

.product-actions .menu-item:last-child {
    border-bottom: none;
}

.product-actions .menu-item:hover {
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
}

.product-actions .menu-item i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* 产品操作区域布局 */
.product-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.product-actions .product-menu {
    flex-shrink: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .product-actions .btn {
        width: 100%;
    }
    
    .product-menu {
        align-self: flex-end;
    }
}

/* 主要内容区域 - 为固定页眉和主导航留出空间 */
.main-content {
    margin-top: 127px; /* 77px(header) + 50px(main-nav) */
    min-height: calc(100vh - 200px);
}

/* 移动端页眉高度调整 */
@media (max-width: 768px) {
    /* 隐藏桌面端布局 */
    .desktop-header {
        display: none;
    }
    
    /* 显示移动端布局 */
    .mobile-header {
        display: block;
    }
    
    /* 移动端显示两行的顶部栏 */
    .header {
        position: fixed;
        top: 0;
        height: 100px;
        z-index: 1001;
    }
    
    .header-content {
        padding: 5px 0;
        height: 100px;
    }
    
    /* 第一行：logo + 搜索 + 购物车 */
    .header-top-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: 45px;
    }
    
    /* 第二行：语言币种选择器 + 登录注册按钮 */
    .header-bottom-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: 40px;
        padding: 0 5px;
    }
    
    /* 移动端选择器容器 */
    .mobile-selectors {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    /* 移动端认证区域 */
    .mobile-auth {
        display: flex;
        align-items: center;
    }
    
    /* 移动端logo样式 */
    .logo {
        font-size: 16px;
        flex-shrink: 0;
    }
    
    .logo small {
        display: none;
    }
    
    /* 移动端搜索栏 */
    .search-bar {
        flex: 1;
        max-width: 180px;
        margin: 0 10px;
    }
    
    .search-input {
        padding: 6px 30px 6px 12px;
        font-size: 12px;
        border-radius: 20px;
    }
    
    .search-btn {
        width: 28px;
        height: 28px;
        right: 2px;
    }
    
    /* 移动端头部操作区重新布局 */
    .header-actions {
        display: contents;
    }
    
    /* 隐藏桌面端的语言和币种选择器 */
    .desktop-header .language-selector,
    .desktop-header .currency-selector {
        display: none;
    }
    
    /* 移动端选择器样式 */
    .mobile-selector {
        display: block !important;
    }
    
    .mobile-selector select {
        padding: 4px 8px;
        border: 1px solid #ddd;
        border-radius: 12px;
        background: white;
        font-size: 11px;
        color: #333;
        cursor: pointer;
        transition: all 0.3s ease;
        min-width: 60px;
        height: 28px;
        outline: none;
    }
    
    .mobile-selector select:hover {
        border-color: #ff6b6b;
        background: #fff;
    }
    
    .mobile-selector select:focus {
        border-color: #ff6b6b;
        box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
    }
    
    /* 购物车样式 */
    .cart-link {
        font-size: 16px;
        color: #ff6b6b;
        padding: 0;
        border-radius: 50%;
        background: rgba(255, 107, 107, 0.1);
        flex-shrink: 0;
        position: relative;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }
    
    .cart-link:hover {
        background: rgba(255, 107, 107, 0.2);
    }
    
    .cart-count {
        position: absolute;
        top: -6px;
        right: -6px;
        background: #ff6b6b;
        color: white;
        border-radius: 50%;
        width: 16px;
        height: 16px;
        font-size: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        border: 2px solid white;
        box-sizing: border-box;
    }
    
    /* 移动端认证按钮样式 */
    .mobile-auth .auth-links {
        gap: 6px;
    }
    
    .mobile-auth .auth-links a {
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 15px;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.3s ease;
    }
    
    .mobile-auth .auth-links a:first-child {
        background: transparent;
        color: #ff6b6b;
        border: 1px solid #ff6b6b;
    }
    
    .mobile-auth .auth-links a:first-child:hover {
        background: #ff6b6b;
        color: white;
    }
    
    .mobile-auth .auth-links a:last-child {
        background: #ff6b6b;
        color: white;
        border: 1px solid #ff6b6b;
    }
    
    .mobile-auth .auth-links a:last-child:hover {
        background: #e55a5a;
        border-color: #e55a5a;
    }
    
    /* 用户菜单移动端样式 */
    .mobile-auth .user-menu .user-link {
        padding: 6px 12px;
        background: #ff6b6b;
        color: white;
        border-radius: 15px;
        font-size: 12px;
        text-decoration: none;
        transition: all 0.3s ease;
    }
    
    .mobile-auth .user-menu .user-link:hover {
        background: #e55a5a;
    }
    
    /* 主导航调整到顶部栏下方 */
    .main-nav {
        top: 100px;
        margin-top: 0;
    }
    
    /* 调整主内容区域 */
    .main-content {
        margin-top: 150px; /* 100px(header) + 50px(main-nav) */
    }
    
    /* 移动端导航样式优化 */
    .nav-list {
        justify-content: space-around;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .nav-list::-webkit-scrollbar {
        display: none;
    }
    
    .nav-list a {
        padding: 12px 8px;
        font-size: 12px;
        white-space: nowrap;
        min-width: fit-content;
    }
    
    /* 移动端用户菜单优化 */
    .user-menu .user-dropdown {
        right: 0;
        left: auto;
        min-width: 120px;
    }
    
    .user-dropdown a {
        padding: 8px 12px;
        font-size: 12px;
    }
}

