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

/* 顶部导航栏样式 */
.top-nav {
    background-color: #333;
    color: white;
    padding: 8px 0;
    font-size: 12px;
}

.top-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-nav-left,
.top-nav-right {
    display: flex;
    gap: 20px;
}

.top-nav a {
    color: white;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
}

.top-nav a:hover {
    color: #ccc;
}

/* 主头部样式 */
.main-header {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    position: relative;
}

.logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
    max-width: 200px;
}

.logo a {
    text-decoration: none;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    position: relative;
    display: flex;
}

.search-bar input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 25px 0 0 25px;
    font-size: 14px;
    outline: none;
    border-right: none;
}

.search-bar input:focus {
    border-color: #8B5CF6;
}

.search-bar button {
    background: #8B5CF6;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.search-bar button:hover {
    background: #7C3AED;
}

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

.action-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s;
    position: relative;
}

.action-btn:hover {
    background-color: #f3f4f6;
    color: #8B5CF6;
}

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

/* 分类导航样式 */
.category-nav {
    background-color: #f8f9fa;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.category-nav-list {
    display: flex;
    gap: 30px;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.category-nav-item {
    display: block;
}

.category-nav-item a,
.category-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s;
    padding: 8px 0;
    display: block;
}

.category-nav-item a:hover,
.category-link:hover {
    color: #8B5CF6;
}

.category-nav-item a.active,
.category-link.active {
    color: #8B5CF6;
    font-weight: 600;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* 顶部横幅 */
.top-banner {
    background: linear-gradient(135deg, #8B5CF6, #A855F7);
    color: white;
    padding: 8px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.top-banner .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.top-banner i {
    font-size: 16px;
}

/* 主促销区域 */
.main-promo {
    background: linear-gradient(135deg, #F97316, #FB923C);
    color: white;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.main-promo::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 200px;
    height: 100%;
    background: linear-gradient(135deg, #8B5CF6, #A855F7);
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
}

.promo-content {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 30px;
}

.ribbon {
    background: #8B5CF6;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    display: inline-block;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 14px;
}

.main-promo h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.promo-code {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
}

.disclaimer {
    font-size: 0.9rem;
    opacity: 0.9;
}

.category-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cat-btn {
    background: white;
    color: #8B5CF6;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cat-btn:hover {
    background: #8B5CF6;
    color: white;
    transform: translateY(-2px);
}

/* 降临节日历推广 */
.advent-calendar {
    background: #DC2626;
    color: white;
    padding: 40px 0;
}

.advent-content {
    text-align: center;
    margin-bottom: 30px;
}

.advent-content h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.discount {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.advent-content h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.shop-btn {
    background: white;
    color: #DC2626;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shop-btn:hover {
    background: #F3F4F6;
    transform: translateY(-2px);
}

.calendar-preview {
    background: white;
    border-radius: 15px;
    padding: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.day {
    background: #F3F4F6;
    color: #DC2626;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
}

/* 产品分类网格 */
.product-categories {
    padding: 60px 0;
    background: #F9FAFB;
}

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

.category-card {
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card.blue {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
}

.category-card.purple {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
}

.category-card.gradient {
    background: linear-gradient(135deg, #F97316, #EC4899);
}

.category-card.light-blue {
    background: linear-gradient(135deg, #06B6D4, #0891B2);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

/* 促销横幅堆叠 */
.promo-banners {
    padding: 20px 0;
}

.banner {
    padding: 20px;
    text-align: center;
    color: white;
    margin-bottom: 10px;
    border-radius: 10px;
}

.purple-banner {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
}

.orange-banner {
    background: linear-gradient(135deg, #F97316, #EA580C);
}

.blue-banner {
    background: linear-gradient(135deg, #3B82F6, #1D4ED8);
}

.green-banner {
    background: linear-gradient(135deg, #10B981, #059669);
}

.banner h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* 建议分类 */
.advice-categories {
    padding: 60px 0;
    background: white;
}

.advice-categories h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #1F2937;
}

.advice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.advice-item {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    background: #F9FAFB;
    transition: all 0.3s ease;
    cursor: pointer;
}

.advice-item:hover {
    background: #E5E7EB;
    transform: translateY(-2px);
}

.advice-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.advice-item span {
    font-weight: 600;
    color: #374151;
}

/* 热销产品 */
.best-selling {
    padding: 60px 0;
    background: #F9FAFB;
}

.best-selling h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #1F2937;
}

.product-carousel {
    display: flex;
    align-items: center;
    gap: 20px;
}

.carousel-btn {
    background: white;
    border: 2px solid #E5E7EB;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: #8B5CF6;
    color: white;
    border-color: #8B5CF6;
}

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

.product-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    font-size: 4rem;
    margin-bottom: 15px;
}

.stars {
    color: #F59E0B;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.product-card h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #1F2937;
    line-height: 1.4;
}

.price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #8B5CF6;
    margin-bottom: 15px;
}

.old-price {
    text-decoration: line-through;
    color: #9CA3AF;
    margin-right: 10px;
}

.heart-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.heart-btn:hover {
    transform: scale(1.2);
}

/* 支付选项 */
.payment-options {
    padding: 40px 0;
    background: white;
    text-align: center;
}

.payment-options h3 {
    margin-bottom: 20px;
    color: #1F2937;
}

.payment-logos {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.payment-logos span {
    background: #F3F4F6;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    color: #374151;
}

/* 品牌推广网格 */
.brand-promotions {
    padding: 60px 0;
    background: #F9FAFB;
}

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

.brand-card {
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-5px);
}

.brand-card.doc-johnson {
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
}

.brand-card.lifelike-lover {
    background: linear-gradient(135deg, #EC4899, #8B5CF6);
}

.brand-card.clearance {
    background: linear-gradient(135deg, #F59E0B, #F97316);
}

.brand-card.we-vibe {
    background: linear-gradient(135deg, #8B5CF6, #F97316);
}

.brand-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.new-badge {
    background: #10B981;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 10px;
}

.brand-card p {
    margin-bottom: 20px;
    font-size: 1rem;
}

/* Trustpilot评价 */
.trustpilot {
    padding: 40px 0;
    background: white;
    text-align: center;
}

.trustpilot-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.trustpilot-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #00B67A;
}

.trustpilot .stars {
    color: #00B67A;
    font-size: 1.5rem;
}

.trustpilot p {
    color: #374151;
    font-weight: 600;
}

/* 欢迎部分 */
.welcome {
    padding: 60px 0;
    background: white;
    text-align: center;
}

.welcome h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #1F2937;
}

.welcome p {
    font-size: 1.1rem;
    color: #6B7280;
    max-width: 800px;
    margin: 0 auto 20px;
    line-height: 1.8;
}

/* 邮件注册 */
.email-signup {
    padding: 60px 0;
    background: #F9FAFB;
    text-align: center;
}

.email-signup h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #1F2937;
}

.email-signup p {
    font-size: 1.1rem;
    color: #6B7280;
    margin-bottom: 30px;
}

.signup-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.signup-form input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #E5E7EB;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
}

.signup-form input:focus {
    border-color: #8B5CF6;
}

.signup-btn {
    background: #8B5CF6;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.signup-btn:hover {
    background: #7C3AED;
}

.disclaimer {
    font-size: 0.9rem;
    color: #9CA3AF;
}

/* 社交媒体 */
.social-media {
    padding: 40px 0;
    background: white;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #F3F4F6;
    color: #6B7280;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #8B5CF6;
    color: white;
    transform: translateY(-2px);
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

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

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

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

.payment-methods {
    border-top: 1px solid #374151;
    padding-top: 30px;
    margin-bottom: 30px;
}

.payment-methods .payment-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.payment-methods .payment-logos span {
    background: #374151;
    color: #D1D5DB;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.awards {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.trustpilot-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.queen-award {
    text-align: center;
    font-size: 0.9rem;
    color: #D1D5DB;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
    color: #9CA3AF;
    font-size: 0.9rem;
}

/* 底部固定导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6B7280;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px;
}

.nav-item:hover,
.nav-item.active {
    color: #8B5CF6;
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.nav-item span {
    font-size: 0.8rem;
    font-weight: 500;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #EF4444;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .main-promo h1 {
        font-size: 2rem;
    }

    .category-buttons {
        flex-direction: column;
        align-items: center;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .advice-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-carousel {
        flex-direction: column;
    }

    .carousel-btn {
        order: 2;
    }

    .product-grid {
        order: 1;
    }

    .brand-grid {
        grid-template-columns: 1fr;
    }

    .signup-form {
        flex-direction: column;
        align-items: center;
    }

    .signup-form input {
        width: 100%;
    }

    .awards {
        flex-direction: column;
        gap: 20px;
    }

    .payment-logos {
        gap: 15px;
    }

    .bottom-nav {
        padding: 8px 0;
    }

    .nav-item span {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .main-promo h1 {
        font-size: 1.5rem;
    }

    .promo-code {
        font-size: 1.2rem;
    }

    .category-card {
        padding: 30px 20px;
    }

    .advice-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* 搜索功能样式 */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-bar input {
    flex: 1;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 4px 0 0 4px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-bar input:focus {
    border-color: #8B5CF6;
}

.search-btn {
    padding: 10px 15px;
    background: #8B5CF6;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: #7C3AED;
}

/* 搜索建议样式 */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: calc(100% - 60px);
    /* 减去搜索按钮的宽度 */
    background: white;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    will-change: transform, opacity;
    transform: translateZ(0);
    pointer-events: auto;
}

.search-suggestions.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    will-change: background-color;
    contain: layout style paint;
    background-color: #fff;
    position: relative;
    z-index: 1;
}

.search-suggestion-item:hover {
    background-color: #f8f9fa;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-image {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.search-suggestion-info {
    flex: 1;
    min-width: 0;
}

.search-suggestion-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-suggestion-price {
    color: #8B5CF6;
    font-weight: 600;
    font-size: 14px;
}

.search-suggestion-category {
    color: #666;
    font-size: 12px;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* 购物车下拉面板 */
.cart-dropdown-container {
    position: relative;
}

.cart-dropdown {
    position: fixed;
    top: 0;
    right: -600px;
    width: 600px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    transition: right 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    /* 确保面板从购物车按钮位置开始显示 */
    margin-top: 0;
}

.cart-dropdown.show {
    right: 0;
    opacity: 1;
    visibility: visible;
}

.cart-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #ffffff;
}

.cart-dropdown-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.close-cart {
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.close-cart:hover {
    background: #e0e0e0;
    color: #333;
}

.cart-dropdown-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background: #ffffff;
}

.cart-dropdown-item {
    display: flex;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
    background: #ffffff;
}

.cart-dropdown-item:last-child {
    border-bottom: none;
}

.cart-dropdown-item-image {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.cart-dropdown-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.cart-dropdown-item-info {
    flex: 1;
    min-width: 0;
}

.cart-dropdown-item-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.3;
    font-size: 14px;
}

.cart-dropdown-item-color {
    color: #666;
    font-size: 12px;
    margin-bottom: 8px;
}

.cart-dropdown-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.cart-dropdown-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 4px 8px;
    background: white;
}

.cart-dropdown-quantity input {
    width: 40px;
    text-align: center;
    border: none;
    outline: none;
    font-size: 14px;
    font-weight: 600;
}

.cart-dropdown-quantity button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 2px 4px;
    font-size: 12px;
    transition: color 0.3s;
}

.cart-dropdown-quantity button:hover {
    color: #8B5CF6;
}

.cart-dropdown-item-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.cart-dropdown-price-original {
    color: #999;
    text-decoration: line-through;
    font-size: 12px;
}

.cart-dropdown-price-current {
    color: #e74c3c;
    font-weight: 600;
    font-size: 14px;
}

.cart-dropdown-remove {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 12px;
    padding: 4px;
    border-radius: 3px;
    transition: all 0.3s;
    margin-top: 5px;
}

.cart-dropdown-remove:hover {
    background: #ffe0e0;
    color: #ff5252;
}

.cart-dropdown-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background: #ffffff;
}

.cart-subtotal {
    text-align: center;
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
}

.view-basket-btn {
    width: 100%;
    padding: 12px;
    background: #8B5CF6;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.view-basket-btn:hover {
    background: #7C3AED;
    transform: translateY(-1px);
}

.cart-dropdown-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #666;
    text-align: center;
    padding: 20px;
    background: #ffffff;
}

.cart-dropdown-empty i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 15px;
}

.cart-dropdown-empty h4 {
    margin-bottom: 10px;
    color: #333;
}

.cart-dropdown-empty p {
    font-size: 14px;
    margin-bottom: 20px;
}

.cart-dropdown-empty .btn-primary {
    display: inline-block;
    padding: 10px 20px;
    background: #8B5CF6;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s;
}

.cart-dropdown-empty .btn-primary:hover {
    background: #7C3AED;
}

/* 购物车遮罩层 */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* 将通过脚本在打开时设置为面板宽度 */
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.cart-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    /* 恢复点击关闭 */
}

/* 小屏幕：面板全屏，遮罩覆盖到右边 */
@media (max-width: 768px) {
    .cart-overlay.show.cart-open {
        right: 0;
    }
}

/* 中屏：匹配 500px 面板宽度 */
@media (max-width: 1024px) {
    .cart-overlay.show.cart-open {
        right: 500px;
    }
}

/* 大屏：匹配 650px 面板宽度 */
@media (min-width: 1200px) {
    .cart-overlay.show.cart-open {
        right: 650px;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cart-dropdown {
        width: 100%;
        right: -100%;
    }

    .cart-dropdown-item {
        padding: 12px 15px;
    }

    .cart-dropdown-item-image {
        width: 50px;
        height: 50px;
    }

    .cart-dropdown-item-name {
        font-size: 13px;
    }
}

/* 中等屏幕尺寸 */
@media (max-width: 1024px) {
    .cart-dropdown {
        width: 500px;
        right: -500px;
    }
}

/* 大屏幕优化 */
@media (min-width: 1200px) {
    .cart-dropdown {
        width: 650px;
        right: -650px;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 联系我们部分样式 */
.contact-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    color: white;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}

.contact-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.contact-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
}

.contact-item span {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* 关于我们部分样式 */
.about-section {
    background: #f8fafc;
    padding: 80px 0;
}

.about-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
}

.about-text p {
    margin-bottom: 20px;
}

.about-video {
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-placeholder p {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.video-placeholder small {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Footer样式更新 */
.main-footer {
    background: #1F2937;
    color: white;
    padding: 30px 0;
}

.main-footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.main-footer .footer-left p {
    margin: 0;
    color: #D1D5DB;
}

.main-footer .footer-right {
    display: flex;
    gap: 30px;
}

.main-footer .footer-link {
    color: #D1D5DB;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-footer .footer-link:hover {
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-section h2 {
        font-size: 2rem;
    }

    .contact-icons {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .contact-item {
        padding: 8px 12px;
        gap: 6px;
    }

    .contact-icon {
        width: 20px;
        height: 20px;
    }

    .contact-item span {
        font-size: 0.8rem;
    }

    .about-section h2 {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .video-placeholder {
        height: 250px;
    }

    .main-footer .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .main-footer .footer-right {
        gap: 20px;
    }
}