/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主题色 - 默认紫色主题 */
    --theme-purple-primary: #7e57ff;
    --theme-purple-light: #9b6dff;
    --theme-purple-dark: #5e35dc;
    
    /* 蓝色主题 */
    --theme-blue-primary: #2196f3;
    --theme-blue-light: #4dabf5;
    --theme-blue-dark: #1976d2;
    
    /* 绿色主题 */
    --theme-green-primary: #4caf50;
    --theme-green-light: #66bb6a;
    --theme-green-dark: #388e3c;
    
    /* 橙色主题 */
    --theme-orange-primary: #ff7f50;
    --theme-orange-light: #ff9966;
    --theme-orange-dark: #ff6347;
    
    /* 当前主题色（默认使用紫色） */
    --primary-color: var(--theme-purple-primary);
    --primary-light: var(--theme-purple-light);
    --primary-dark: var(--theme-purple-dark);
    
    /* 辅助色 */
    --secondary-color: var(--theme-orange-primary);
    --secondary-light: var(--theme-orange-light);
    --secondary-dark: var(--theme-orange-dark);
    
    /* 中性色 */
    --dark-color: #2A2A4A;
    --light-color: #F8F9FE;
    --gray-color: #8A8AA3;
    
    /* 渐变色 */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    --gradient-dark: linear-gradient(135deg, var(--dark-color), #4A4A6A);
    
    /* 背景色 */
    --bg-color: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-gradient: linear-gradient(135deg, rgba(126, 87, 255, 0.1), rgba(255, 127, 80, 0.1));
    
    /* 卡片背景 */
    --card-bg: #ffffff;
    --card-bg-secondary: #f8f9fa;
    
    /* 文本颜色 */
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --text-tertiary: #adb5bd;
    
    /* 边框颜色 */
    --border-color: rgba(0, 0, 0, 0.1);
    
    /* 阴影 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    
    /* 交互状态 */
    --hover-bg: rgba(0, 0, 0, 0.05);
}

/* 主题色切换类 */
:root[data-theme="purple"] {
    --primary-color: var(--theme-purple-primary);
    --primary-light: var(--theme-purple-light);
    --primary-dark: var(--theme-purple-dark);
}

:root[data-theme="blue"] {
    --primary-color: var(--theme-blue-primary);
    --primary-light: var(--theme-blue-light);
    --primary-dark: var(--theme-blue-dark);
}

:root[data-theme="green"] {
    --primary-color: var(--theme-green-primary);
    --primary-light: var(--theme-green-light);
    --primary-dark: var(--theme-green-dark);
}

:root[data-theme="orange"] {
    --primary-color: var(--theme-orange-primary);
    --primary-light: var(--theme-orange-light);
    --primary-dark: var(--theme-orange-dark);
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    background-image: 
        radial-gradient(circle at 100% 0%, rgba(126, 87, 255, 0.05) 0%, transparent 25%),
        radial-gradient(circle at 0% 100%, rgba(255, 127, 80, 0.05) 0%, transparent 25%);
}

/* 头部导航样式 */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

/* 默认隐藏导航图标 */
.nav-links a i {
    display: none;
}

/* 移动端显示导航图标 */
@media screen and (max-width: 768px) {
    .nav-links a i {
        display: inline-block;
        margin-right: 8px;
        font-size: 1.1rem;
        width: 20px;
        text-align: center;
        color: var(--primary-color);
        transition: all 0.3s ease;
    }
    
    .nav-links a.active i {
        color: white;
    }
    
    .nav-links a:hover i {
        transform: scale(1.1);
        color: var(--primary-light);
    }
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 主要内容区域 */
main {
    margin-top: 80px;
    padding: 1rem;
}

/* 轮播图样式 */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 2rem;
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 2;
    max-width: 600px;
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    animation: slideInLeft 0.5s ease-out;
}

.slide-content p {
    font-size: 1.2rem;
    animation: slideInLeft 0.5s ease-out 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* 轮播图导航按钮 */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.5);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

/* 轮播图指示器 */
.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

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

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* 轮播图动画 */
@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 特色功能区样式 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(126, 87, 255, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, 
        rgba(126, 87, 255, 0.05) 0%, 
        transparent 60%);
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* 快递图标样式 */
.feature-card:nth-child(1) i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #36D1DC, #5B86E5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(91, 134, 229, 0.2));
}

/* 退换货图标样式 */
.feature-card:nth-child(2) i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(255, 107, 107, 0.2));
}

/* 品质保证图标样式 */
.feature-card:nth-child(3) i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #A17FE0, #5D26C1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(93, 38, 193, 0.2));
}

.feature-card h3 {
    margin: 1rem 0;
    color: var(--dark-color);
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
}

.feature-card p {
    color: var(--gray-color);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 特色功能卡片动画效果 */
.feature-card i {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.feature-card:hover i {
    transform: scale(1.1) rotate(5deg);
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    transition: width 0.3s ease;
}

/* 为每个卡片添加不同的底部边框渐变色 */
.feature-card:nth-child(1)::after {
    background: linear-gradient(to right, #36D1DC, #5B86E5);
}

.feature-card:nth-child(2)::after {
    background: linear-gradient(to right, #FF6B6B, #FF8E53);
}

.feature-card:nth-child(3)::after {
    background: linear-gradient(to right, #A17FE0, #5D26C1);
}

.feature-card:hover::after {
    width: 80%;
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
    .feature-card {
        background: rgba(42, 42, 74, 0.8);
        border-color: rgba(126, 87, 255, 0.2);
    }

    .feature-card::before {
        background: radial-gradient(circle at top right, 
            rgba(126, 87, 255, 0.1) 0%, 
            transparent 60%);
    }

    .feature-card i {
        filter: brightness(1.2);
    }
}

/* 商品展示区样式 */
.products {
    padding: 2rem 0;
}

.products h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 1rem;
}

.products h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(126, 87, 255, 0.1);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(126, 87, 255, 0.2);
}

.product-card .image-container {
    position: relative;
    padding-top: 100%; /* 1:1 宽高比 */
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.product-card .image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-info {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.product-card .product-illustration {
    position: absolute;
    right: -20px;
    top: 81%;
    width: 200px;
    height: 200px;
    opacity: 0.6;
    transform: translateY(-50%);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.product-card .product-illustration-secondary {
    position: absolute;
    right: 10px;
    top: 60%;
    width: 100px;
    height: 100px;
    opacity: 0.6;
    transform: translateY(-50%);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

/* 确保折扣标签在最上层 */
.product-card .discount {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.product-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.product-card .price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0.5rem 0;
}

.product-card .price > span:first-child {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-card .original-price {
    position: relative;
    color: #999;
    font-size: 0.9rem;
    margin-left: 8px;
}

.product-card .original-price::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    right: 0;
    height: 1px;
    background: #999;
    transform: rotate(-10deg);
}

.product-card .description {
    color: var(--gray-color);
    margin: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.product-card .tags {
    display: flex;
    gap: 0.5rem;
    margin: 0.5rem 0;
    flex-wrap: wrap;
}

.product-card .tag {
    background: rgba(126, 87, 255, 0.1);
    color: var(--primary-color);
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(126, 87, 255, 0.2);
}

.add-to-cart {
    flex: 2;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: var(--gradient-secondary);
}

.favorite-btn {
    flex: 1;
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.8rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.favorite-btn:hover {
    background: var(--gradient-primary);
    color: white;
    border: none;
    transform: translateY(-2px);
}

.favorite-btn.active {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.favorite-btn.active i {
    animation: heartBeat 0.3s ease;
    color: #ff4444;
    text-shadow: 0 0 5px rgba(255, 68, 68, 0.3);
}

.favorite-btn i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.favorite-btn:hover i {
    transform: scale(1.1);
}

/* 收藏动画 */
@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.favorite-animation {
    animation: heartBeat 0.3s ease !important;
    color: #ff4444 !important;
}

/* 收藏按钮点击波纹效果 */
.favorite-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.favorite-btn:active::after {
    transform: scale(2);
    opacity: 0;
    transition: 0s;
}

.product-card .rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.product-card .stars {
    color: #FFD700;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-card .review-count {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* 商品卡片加载动画 */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: cardFadeIn 0.5s ease forwards;
}

/* 商品卡片悬停效果 */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.product-card:hover::before {
    transform: translateX(100%);
}

/* AR体验区样式 */
.ar-experience {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 4rem 2rem;
    margin: 2rem 0;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.ar-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.try-ar-btn {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.try-ar-btn:hover {
    transform: scale(1.05);
}

.ar-illustrations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.ar-illustration {
    position: absolute;
    opacity: 0.15;
    transition: all 0.5s ease;
}

.ar-illustration-1 {
    top: 20px;
    left: 150px;
    width: 150px;
    transform: rotate(-15deg);
}

.ar-illustration-2 {
    top: 20%;
    right: -30px;
    width: 180px;
    transform: rotate(25deg);
}

.ar-illustration-3 {
    bottom: -40px;
    left: 30%;
    width: 160px;
    transform: rotate(-10deg);
}

.ar-illustration-4 {
    top: 10%;
    left: 25%;
    width: 140px;
    transform: rotate(15deg);
}

.ar-illustration-5 {
    bottom: 20%;
    right: 15%;
    width: 170px;
    transform: rotate(-20deg);
}

.ar-experience:hover .ar-illustration {
    opacity: 0.8;
    transform: scale(1.1) rotate(0deg);
}

/* 页脚样式 */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

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

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* 购物车图标样式 */
.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gradient-secondary);
    color: white;
    font-size: 0.8rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.cart-count.bump {
    animation: bump 0.3s ease;
}

@keyframes bump {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* 商品卡片附加样式 */
.product-card .stock-info {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.add-to-cart.clicked {
    animation: buttonClick 0.2s ease;
}

@keyframes buttonClick {
    0% { transform: scale(1); }
    50% { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* 通知提示样式 */
.notification {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-dark);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.notification.show {
    bottom: 20px;
}

/* 加载动画 */
.loading {
    position: relative;
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 商品图片悬停效果 */
.product-card .image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .image-container::after {
    opacity: 1;
}

/* 标签动画效果 */
.product-card .tag {
    transform: translateY(0);
    transition: transform 0.3s ease;
}

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

/* 价格变化动画 */
.product-card .price {
    position: relative;
    display: inline-block;
}

.product-card:hover .price {
    animation: priceJump 0.5s ease;
}

@keyframes priceJump {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

/* 深色模式 */
@media (prefers-color-scheme: dark) {
    :root {
        --light-color: #1A1A2E;
        --dark-color: #F8F9FE;
    }

    body {
        background-image: 
            radial-gradient(circle at 100% 0%, rgba(126, 87, 255, 0.1) 0%, transparent 25%),
            radial-gradient(circle at 0% 100%, rgba(255, 127, 80, 0.1) 0%, transparent 25%);
    }

    .header {
        background: rgba(26, 26, 46, 0.95);
    }

    .product-card {
        background: rgba(42, 42, 74, 0.8);
        border-color: rgba(126, 87, 255, 0.2);
    }

    .product-card .tag {
        background: rgba(126, 87, 255, 0.2);
    }

    .product-card .product-illustration,
    .product-card .product-illustration-secondary {
        filter: brightness(1.2);
    }
    
    .product-card:hover .product-illustration,
    .product-card:hover .product-illustration-secondary {
        opacity: 0.9;
    }
}

/* 弹窗样式 */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-container.active {
    display: flex;
    animation: modalFadeIn 0.3s ease;
}

.modal {
    display: none;
    width: 90%;
    max-width: 600px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.active {
    display: block;
    transform: scale(1);
    opacity: 1;
}

.modal-content {
    position: relative;
}

/* 为每个弹窗设置不同的渐变色标题背景 */
#delivery-modal .modal-header {
    background: linear-gradient(135deg, #FF6B6B, #845EC2);
}

#return-modal .modal-header {
    background: linear-gradient(135deg, #00C9A7, #4D8076);
}

#quality-modal .modal-header {
    background: linear-gradient(135deg, #FFC75F, #845EC2);
}

.modal-header {
    padding: 1.5rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), transparent);
    z-index: 1;
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
}

.close-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(5px);
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
    /* 隐藏滚动条但保持功能 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* 为 Webkit 浏览器隐藏滚动条 */
.modal-body::-webkit-scrollbar {
    display: none;
}

.service-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border-radius: 15px;
    background: rgba(126, 87, 255, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(126, 87, 255, 0.1);
}

/* 为每个弹窗的服务项设置不同的悬停效果 */
#delivery-modal .service-item:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(132, 94, 194, 0.1));
    transform: translateX(5px);
    border-color: rgba(255, 107, 107, 0.2);
}

#return-modal .service-item:hover {
    background: linear-gradient(135deg, rgba(0, 201, 167, 0.1), rgba(77, 128, 118, 0.1));
    transform: translateX(5px);
    border-color: rgba(0, 201, 167, 0.2);
}

#quality-modal .service-item:hover {
    background: linear-gradient(135deg, rgba(255, 199, 95, 0.1), rgba(132, 94, 194, 0.1));
    transform: translateX(5px);
    border-color: rgba(255, 199, 95, 0.2);
}

.service-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* 为每个弹窗的标题设置不同的颜色 */
#delivery-modal .service-item h4 {
    background: linear-gradient(135deg, #FF6B6B, #845EC2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#return-modal .service-item h4 {
    background: linear-gradient(135deg, #00C9A7, #4D8076);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#quality-modal .service-item h4 {
    background: linear-gradient(135deg, #FFC75F, #845EC2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-item p {
    color: var(--gray-color);
    margin: 0.5rem 0;
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.2rem;
}

.service-item p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.5;
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
    .modal {
        background: var(--dark-color);
    }

    .service-item {
        background: rgba(126, 87, 255, 0.1);
        border-color: rgba(126, 87, 255, 0.2);
    }

    .service-item p {
        color: #a0a0b8;
    }
}

/* 弹窗动画 */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(5px);
    }
}

.product-card .actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    position: relative;
    z-index: 2;
}

.product-card:hover .product-illustration {
    opacity: 0.9;
}

.product-card:hover .product-illustration-secondary {
    opacity: 0.8;
}

/* 深色模式下的图片处理 */
@media (prefers-color-scheme: dark) {
    .product-card .image-container {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .product-card .image-container img {
        filter: brightness(0.9);
    }
}

/* 深色模式变量 */
.dark-mode {
    /* 背景色 */
    --bg-color: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-gradient: linear-gradient(135deg, rgba(18, 18, 18, 0.95), rgba(18, 18, 18, 0.97));
    
    /* 卡片背景 */
    --card-bg: rgba(30, 30, 30, 0.95);
    --card-bg-secondary: rgba(35, 35, 35, 0.95);
    
    /* 文本颜色 */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    
    /* 边框颜色 */
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* 阴影 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    
    /* 交互状态 */
    --hover-bg: rgba(255, 255, 255, 0.05);
}

/* 应用深色模式样式 */
.dark-mode body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 100% 0%, rgba(126, 87, 255, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 0% 100%, rgba(255, 127, 80, 0.1) 0%, transparent 25%);
}

.dark-mode .header {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
}

.dark-mode .nav-links a {
    color: var(--text-primary);
}

.dark-mode .nav-links a:hover {
    background: var(--hover-bg);
}

.dark-mode .nav-links a.active {
    color: var(--primary-color);
}

.dark-mode .footer {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.dark-mode .footer a {
    color: var(--text-secondary);
}

.dark-mode .footer a:hover {
    color: var(--primary-color);
} 