/* --- 全局颜色与字体变量 --- */
:root {
    --primary-color: #ff6f91; /* 柔和玫瑰粉 */
    --secondary-color: #a8dadc; /* 浅蓝绿，用于辅助 */
    --accent-color: #ffd670; /* 柔和金黄，用于强调 */

    --bg-light: #fcfafc; /* 接近白色，带一点点粉调 */
    --bg-pink-gradient: linear-gradient(135deg, #fce0f0 0%, #ffe6f2 100%); /* 粉色渐变背景 */
    --bg-white-pattern: #ffffff; /* 白色背景，可加图案 */
    --bg-dark-purple: #2a2b4d; /* 深海军蓝/紫罗兰，用于深色部分 */

    --text-dark: #3a3b5b; /* 深紫灰，用于浅色背景上的文字 */
    --text-light: #ffffff; /* 纯白，用于深色背景上的文字 */
    --text-muted: #888899; /* 柔和浅灰，用于辅助文字 */

    /* 新增: 强调色系 */
    --pink-accent: #ff99c8;
    --purple-accent: #c499c4;
    --blue-accent: #89b0ae;
    --gold-accent: #ffd670;

    /* 新增: 链接颜色 */
    --link-color-default: #6c757d; /* 默认链接色 */
    --link-color-hover: var(--primary-color); /* 悬停时柔和粉 */

    --border-color: #e0e0e0; /* 浅色边框 */
    --border-color-dark: #4a4b6d; /* 深色背景下的边框 */

    --font-primary: 'Noto Sans SC', sans-serif;
    --font-display: 'Playfair Display', serif;

    --border-radius: 0.75rem; /* 常用圆角更大 */
    --box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15); /* 更深的阴影 */
    --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.25); /* 显著的阴影 */
}

/* --- 全局基础样式 --- */
body {
    font-family: var(--font-primary);
    color: var(--text-dark); /* 默认文本颜色，适用于浅色背景 */
    background-color: var(--bg-light); /* 全局默认浅色背景 */
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-dark); /* 标题默认深色，适用于浅色背景 */
}

a {
    color: var(--link-color-default); 
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--link-color-hover); 
}

/* --- 按钮样式 --- */
.btn {
    font-weight: 600; /* 按钮文字更粗 */
    padding: 0.9rem 2rem; /* 更大内边距 */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* 更流畅的动画 */
    border-radius: 50px; /* 所有按钮圆角胶囊状 */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
}
.btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
    transform: translateY(-5px); /* 更明显的上浮 */
    box-shadow: 0 10px 25px rgba(var(--primary-color-rgb), 0.3); /* 更深的阴影 */
}

/* 新增: 优雅奢华风格按钮 */
.btn-glam-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--pink-accent)); /* 渐变背景 */
    border: none;
    color: var(--text-light);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.4);
}
.btn-glam-primary:hover {
    background: linear-gradient(45deg, darken(var(--primary-color), 5%), darken(var(--pink-accent), 5%));
    transform: translateY(-7px);
    box-shadow: 0 12px 30px rgba(var(--primary-color-rgb), 0.6);
}

.btn-glam-outline-light {
    border: 2px solid var(--text-light);
    color: var(--text-light);
    background-color: transparent;
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
}
.btn-glam-outline-light:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
    box-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.btn-glam-secondary {
    background-color: var(--bg-dark-purple);
    border-color: var(--bg-dark-purple);
    color: var(--text-light);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}
.btn-glam-secondary:hover {
    background-color: lighten(var(--bg-dark-purple), 5%);
    border-color: lighten(var(--bg-dark-purple), 5%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}


/* --- 头部和导航栏 --- */
.site-header {
    background-color: rgba(255, 255, 255, 0.95); /* 半透明白色 */
    backdrop-filter: blur(15px); /* 更强烈的模糊 */
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--box-shadow-sm);
    z-index: 1000;
}

.top-bar {
    background-color: var(--bg-light);
    font-size: 0.8rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}
.top-bar a {
    color: var(--text-muted);
}
.top-bar a:hover {
    color: var(--primary-color);
}
.top-bar-promo a {
    color: var(--primary-color); /* 促销文字用主色 */
    font-weight: 600;
}

.main-navbar {
    background-color: transparent; 
}
.logo {
    font-family: var(--font-display);
    font-size: 2rem; 
    font-weight: 700;
    color: var(--text-dark);
}
.logo .logo-icon {
    color: var(--primary-color);
}
.logo .logo-accent {
    color: var(--primary-color);
    font-weight: 400;
}

.main-navbar .nav-link {
    font-weight: 600; 
    color: var(--text-dark);
    padding: 0.8rem 1rem;
    position: relative;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}
.main-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px; 
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(var(--primary-color-rgb), 0.4);
    transition: width 0.3s ease;
}
.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after {
    width: 90%; 
}
.main-navbar .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(var(--primary-color-rgb), 0.05); 
}

.mega-menu-dropdown .dropdown-menu.mega-menu {
    left: 0; 
    border-radius: var(--border-radius); 
    box-shadow: var(--box-shadow-lg); 
    border-top: 3px solid var(--primary-color); 
    padding: 0.75rem 0; 
    margin-top: 0.5rem; 
    position: absolute; 
    z-index: 1050; 
    background-color: var(--bg-light); 
    border: 1px solid var(--border-color);
}

.mega-menu-dropdown .dropdown-menu.single-column-mega {
    min-width: 240px; 
}

.mega-menu-dropdown .dropdown-menu.single-column-mega .dropdown-item {
    padding: 0.7rem 1.25rem; 
    font-size: 0.95rem; 
    color: var(--text-dark); 
    display: flex; 
    align-items: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.mega-menu-dropdown .dropdown-menu.single-column-mega .dropdown-item i.fa-fw {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}
.mega-menu-dropdown .dropdown-menu.single-column-mega .dropdown-item:hover {
    background-color: rgba(var(--primary-color-rgb), 0.08); 
    color: var(--primary-color); 
}
.mega-menu-dropdown .dropdown-menu.single-column-mega .dropdown-item:hover i.fa-fw {
    opacity: 1;
}

.main-search-form .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-color: var(--border-color);
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 0.6rem 1rem;
}
.main-search-form .form-control::placeholder {
    color: var(--text-muted);
}
.main-search-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-color-rgb), 0.25);
    background-color: var(--bg-light);
}
.main-search-form .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding: 0.6rem 1rem;
    text-transform: none; 
    letter-spacing: normal;
}
.header-actions .action-icon {
    color: var(--text-dark);
    transition: color 0.3s ease, transform 0.2s ease;
}
.header-actions .action-icon:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}
.cart-badge {
    font-size: 0.7em; 
    top: -5px; 
    right: -5px;
    background-color: var(--primary-color) !important; 
    box-shadow: 0 0 8px rgba(var(--primary-color-rgb), 0.4);
}


/* --- 页面加载动画 (Preloader) --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fce0f0 0%, #ffe6f2 100%); /* 与主页背景一致 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

#preloader .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
    color: var(--primary-color);
    animation: spin 1s linear infinite, glow-spin 1.5s ease-in-out infinite alternate;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes glow-spin {
    0% { box-shadow: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color); }
    100% { box-shadow: 0 0 15px var(--primary-color), 0 0 25px var(--primary-color); }
}

#preloader .loading-text {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 500;
    opacity: 0;
    animation: fade-in-up 0.8s ease-out 0.5s forwards; /* 延迟出现 */
}
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 全新主页样式 --- */

/* 1. 英雄区 - 视频背景与 3D 元素 */
.hero-glam-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    background-color: #000; 
    transform-style: preserve-3d; /* 启用 3D 变换 */
    perspective: 1200px; /* 景深 */
}

.hero-glam-section .hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.hero-glam-section .hero-video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.5) contrast(1.1); /* 视频更暗，对比度更高 */
}

.hero-glam-section .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.4) 0%, rgba(var(--purple-accent), 0.4) 100%);
    mix-blend-mode: overlay; /* 混合模式 */
}

.hero-glam-section .hero-content {
    position: relative;
    z-index: 1;
    padding: 0 15px;
    text-shadow: 0 0 15px rgba(0,0,0,0.8);
    transition: transform 0.2s ease-out; /* 3D 倾斜动画 */
}

.hero-glam-section h1 {
    font-size: 5.5rem; 
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--text-light);
}

/* 文本发光效果 */
.hero-text-glow {
    color: var(--text-light);
    text-shadow: 
        0 0 10px rgba(255,255,255,0.7),
        0 0 20px rgba(var(--primary-color-rgb), 0.5),
        0 0 30px rgba(var(--primary-color-rgb), 0.3);
}
.hero-text-shadow {
    text-shadow: 0 0 8px rgba(0,0,0,0.8), 0 0 15px rgba(0,0,0,0.6);
}

/* 强调色发光 */
.accent-glow {
    color: var(--accent-color);
    text-shadow: 
        0 0 8px var(--accent-color),
        0 0 15px var(--accent-color),
        0 0 25px var(--accent-color);
}


.hero-glam-section p.lead {
    font-size: 1.6rem; 
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem; /* 更大 */
    color: var(--text-light);
    z-index: 1;
    opacity: 0.8;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px); /* 跳动更大 */
    }
    60% {
        transform: translateY(-8px);
    }
}
.scroll-down-indicator i {
    animation: bounce 2s infinite;
    text-shadow: 0 0 10px rgba(255,255,255,0.7);
}


/* 2. 服务亮点区 - 光泽卡片与动态图标 */
.service-highlights-section {
    background: var(--bg-pink-gradient); /* 粉色渐变背景 */
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.service-highlights-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle at top left, rgba(var(--primary-color-rgb), 0.05) 0%, transparent 50%),
                      radial-gradient(circle at bottom right, rgba(var(--blue-accent), 0.05) 0%, transparent 50%);
    opacity: 0.8;
    z-index: -1;
}

.service-highlights-section .section-title {
    color: var(--text-dark);
}
.service-highlights-section .section-subtitle {
    color: var(--text-muted);
}

.service-highlights-section .service-item-box {
    background-color: var(--bg-light); /* 浅色背景 */
    border: none;
    border-radius: var(--border-radius);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

/* 光泽悬停动画 */
.animate-glare-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3); /* 光泽颜色 */
    transform: skewX(-20deg);
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    opacity: 0;
    z-index: 0;
}

.animate-glare-hover:hover::before {
    transform: skewX(-20deg) translateX(150%);
    opacity: 1;
}


.service-highlights-section .service-item-box:hover {
    transform: translateY(-12px) scale(1.03); /* 更明显的上浮和微放大 */
    box-shadow: var(--box-shadow-lg);
    border: 1px solid rgba(var(--primary-color-rgb), 0.3);
}

.service-highlights-section .service-item i {
    font-size: 3.8rem; 
    margin-bottom: 1.5rem;
    transition: transform 0.5s ease, color 0.5s ease;
    position: relative;
    z-index: 1;
}
.service-highlights-section .service-item-box:hover i {
    transform: translateY(-8px) scale(1.1) rotate(10deg); /* 图标微动和旋转 */
    color: var(--primary-color) !important; /* 图标变色 */
    text-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.6);
}

.service-highlights-section .service-item h5 {
    font-size: 1.3rem; 
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.service-highlights-section .service-item p.small {
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}


/* 3. 分类网格区 - 柔和渐变与悬浮光影 */
.category-grid-section {
    background: var(--bg-white-pattern); /* 白色背景，可加图案 */
    padding-top: 4rem;
    padding-bottom: 6rem;
    position: relative;
    overflow: hidden;
}
.category-grid-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.03"/%3E%3C/svg%3E'); /* 噪声纹理 */
    background-size: cover;
    opacity: 0.8;
    z-index: -1;
}


.category-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    background-size: cover;
    background-position: center;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* 更慢更流畅 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-align: center;
    min-height: 250px;
    box-shadow: var(--box-shadow);
    transform-style: preserve-3d; 
    perspective: 1500px; /* 更深景深 */
}

/* 悬停光影 3D 效果 */
.hover-glow-3d:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg); 
    box-shadow: 0 0 30px rgba(var(--primary-color-rgb), 0.5), var(--box-shadow-lg); /* 发光阴影 */
}
.hover-glow-3d::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.4); /* 默认蒙层 */
    transition: background-color 0.4s ease;
    z-index: 0;
}
.hover-glow-3d:hover::before {
    background-color: rgba(0, 0, 0, 0.6); /* hover 时更深 */
}
.hover-glow-3d::after { /* 内部光泽 */
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}
.hover-glow-3d:hover::after {
    opacity: 1;
}
.hover-glow-3d:hover .card-overlay {
    transform: translateZ(50px); /* 让内容也往外凸出 */
}


.category-card .card-overlay {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease;
}

.category-card h3, .category-card h4 {
    color: var(--text-light);
    font-size: 2.2rem; 
    margin-bottom: 0.75rem;
    line-height: 1.2;
}
.category-card h4 {
    font-size: 1.7rem;
}

.category-card p {
    font-size: 1.05rem; 
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,0.9);
}

.category-card .btn {
    border: 2px solid var(--text-light);
    color: var(--text-light);
    font-weight: 600;
}

.category-card .btn:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

.category-card.large-card { min-height: 550px; } 
.category-card.medium-card { min-height: 270px; }
.category-card.small-card { min-height: 270px; }


/* 4. 商品卡片 (人气推荐) - 闪耀悬停效果 */
.featured-products-section {
    background: var(--bg-pink-gradient);
}

.product-card {
    background-color: var(--bg-light); 
    border: 1px solid var(--border-color); 
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: var(--box-shadow);
    display: flex; 
    flex-direction: column; 
    height: 100%; 
    position: relative;
    color: var(--text-dark);
}
.product-card:hover {
    transform: translateY(-10px) scale(1.03); 
    box-shadow: var(--box-shadow-lg); 
    border-color: var(--primary-color); 
}

.product-image-link {
    display: block;
    position: relative;
    overflow: hidden;
}
.product-image-link img {
    width: 100%;
    aspect-ratio: 4 / 4.5; 
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card:hover .product-image-link img {
    transform: scale(1.1); 
}

/* 商品卡片酷炫悬停效果 */
.product-card-glam-hover .product-image-link .product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.7) 0%, rgba(var(--purple-accent), 0.7) 100%); /* 渐变叠加 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 5;
    transform: translateY(100%); /* 从底部滑入 */
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card-glam-hover:hover .product-image-link .product-overlay {
    opacity: 1;
    transform: translateY(0);
}

.product-overlay .btn {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transition-delay: 0.2s; /* 延迟按钮出现 */
    margin: 8px 0; 
    background-color: var(--text-light);
    color: var(--primary-color);
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
}
.product-overlay .btn:hover {
    background-color: var(--accent-color);
    color: var(--text-dark);
    box-shadow: 0 0 15px rgba(var(--accent-color-rgb), 0.7);
}

.product-card-glam-hover:hover .product-overlay .btn {
    opacity: 1;
    transform: translateY(0);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 0.9rem; 
    padding: 0.5em 1em;
    border-radius: 50px; 
    font-weight: 700;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.product-card-body {
    padding: 1.5rem; 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
}
.product-title {
    font-size: 1.25rem; 
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3em; 
}
.product-title a {
    color: inherit;
}
.product-title a:hover {
    color: var(--primary-color); 
}
.product-category {
    font-size: 0.9rem; 
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.product-price {
    font-size: 1.5rem; 
    font-weight: 800;
    color: var(--primary-color); 
    margin-bottom: 0;
    text-shadow: 0 0 8px rgba(var(--primary-color-rgb), 0.3);
}
.product-rating {
    font-size: 1rem; 
    color: var(--accent-color);
}
.quick-buy-btn {
    font-size: 0.95rem; 
    padding: 0.6rem 1.2rem;
    margin-top: auto; 
    border-radius: 50px; 
    font-weight: 600;
}


/* 5. 限时优惠区 - 星光背景与动感倒计时 */
.limited-time-offer-section {
    position: relative;
    min-height: 550px; 
    display: flex;
    align-items: center;
    justify-content: center;
    background-attachment: fixed; 
    background-size: cover;
    background-position: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
    z-index: 1;
}
.limited-time-offer-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.7) 0%, rgba(var(--blue-accent), 0.7) 100%);
    mix-blend-mode: multiply; 
    z-index: 1;
}

.limited-time-offer-section i.fas {
    color: var(--accent-color); /* 图标颜色 */
    text-shadow: 0 0 20px rgba(var(--accent-color-rgb), 0.8);
}
/* Font Awesome 6.x 的自定义图标 */
.fa-star-sparkle {
    font-family: "Font Awesome 6 Pro"; /* 确保引入了 Font Awesome Pro */
    font-weight: 900; /* Solid 风格 */
}


.limited-time-offer-section h2 {
    font-size: 4rem; 
    color: var(--text-light);
    text-shadow: 0 0 15px rgba(0,0,0,0.8);
}
/* 渐变文本 */
.text-glam-gradient {
    background: linear-gradient(45deg, var(--pink-accent), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(var(--pink-accent), 0.7), 0 0 20px rgba(var(--accent-color), 0.5);
}
.text-glam-gold {
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--accent-color), 0 0 15px var(--accent-color);
}
.text-shadow-glam {
    text-shadow: 0 0 10px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.7);
}


.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1.5rem; 
}
.countdown-timer div {
    background-color: rgba(255,255,255,0.1); 
    padding: 1.25rem 1.5rem; 
    border-radius: var(--border-radius);
    min-width: 90px; 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--accent-color), 0.3); /* 强调边框 */
    box-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.countdown-timer div:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 25px rgba(var(--primary-color-rgb), 0.5);
}
.countdown-timer div::before { /* 内部光晕 */
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(45deg, rgba(var(--accent-color-rgb),0.5), rgba(var(--pink-accent),0.5));
    border-radius: inherit;
    z-index: -1;
    filter: blur(8px); /* 更强模糊 */
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.countdown-timer div:hover::before {
    opacity: 1;
}

.countdown-timer span.glam-num {
    font-size: 3rem; 
    font-weight: 900; 
    color: var(--accent-color); 
    text-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color);
}

.countdown-timer small {
    font-size: 1rem; 
    color: rgba(255,255,255,0.8);
}


/* 6. 热门趋势区 - 光感卡片与信息滑入 */
.trending-products-section {
    background: var(--bg-white-pattern);
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.trending-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--bg-light);
    box-shadow: var(--box-shadow);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-height: 380px; 
}
.trending-card:hover {
    box-shadow: var(--box-shadow-lg);
    transform: translateY(-15px) rotateY(5deg) scale(1.02); /* 明显上浮和微旋转 */
}
.trending-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.trending-card:hover img {
    transform: scale(1.15); 
}
.trending-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 100%); 
    padding: 2rem; 
    color: var(--text-light);
    opacity: 0;
    transform: translateY(100%); 
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.trending-card:hover .trending-card-overlay {
    opacity: 1;
    transform: translateY(0);
}
.trending-card-overlay p.h5 {
    font-size: 1.3rem; 
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.5);
}
.trending-card-overlay p.small {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,0.8);
}
.trending-card-overlay .btn {
    border-color: var(--text-light);
    color: var(--text-light);
    background-color: transparent;
    font-weight: 600;
}
.trending-card-overlay .btn:hover {
    background-color: var(--text-light);
    color: var(--text-dark);
}


/* 7. 订阅资讯区 - 柔和光晕与透明设计 */
.newsletter-signup-section {
    background: var(--bg-pink-gradient);
    padding-top: 5rem;
    padding-bottom: 5rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.newsletter-signup-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.05"/%3E%3C/svg%3E'); /* 噪声纹理 */
    background-size: cover;
    opacity: 0.5;
    z-index: -1;
}


.newsletter-signup-section .section-title {
    color: var(--text-dark);
}
.newsletter-signup-section .section-subtitle {
    color: var(--text-muted);
}
.newsletter-signup-section .newsletter-form {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.newsletter-signup-section .newsletter-form .form-control {
    border-radius: 50px 0 0 50px; 
    padding: 0.9rem 1.8rem; 
    font-size: 1.1rem; 
    border-color: var(--border-color);
    background-color: rgba(255,255,255,0.7); /* 半透明背景 */
    color: var(--text-dark);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.newsletter-signup-section .newsletter-form .form-control::placeholder {
    color: var(--text-muted);
}
.newsletter-signup-section .newsletter-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-color-rgb), 0.25);
    background-color: var(--text-light); /* 聚焦时完全不透明 */
}
.newsletter-signup-section .newsletter-form .btn-glam-primary {
    border-radius: 0 50px 50px 0; 
    padding: 0.9rem 2.2rem;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* 按钮阴影 */
.glam-shadow {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.glam-shadow:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.newsletter-signup-section p.small.text-muted {
    font-size: 0.85rem;
    color: var(--text-muted) !important;
}

/* 8. 合作夥伴区 - 光泽 Logo 与动态效果 */
.our-brands-section {
    background-color: var(--bg-white-pattern);
    padding-top: 5rem;
    padding-bottom: 5rem;
    border-top: 1px solid var(--border-color);
}
.our-brands-section .brand-logo {
    max-height: 90px; 
    filter: grayscale(90%) brightness(0.8); /* 默认灰度更深，更暗 */
    opacity: 0.6;
    transition: all 0.4s ease;
}
.brand-logo.animate-glare-hover-sm:hover { /* 略微不同的光泽动画 */
    filter: grayscale(0%) brightness(1.1); /* hover 时彩色更亮 */
    opacity: 1;
    transform: scale(1.15); 
}
.brand-logo.animate-glare-hover-sm::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2); 
    transform: skewX(-20deg);
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    opacity: 0;
    z-index: 0;
}
.brand-logo.animate-glare-hover-sm:hover::before {
    transform: skewX(-20deg) translateX(150%);
    opacity: 1;
}

/* --- 底部 --- */
.site-footer {
    background-color: var(--bg-dark-purple); /* 深紫色背景 */
    color: var(--text-muted); 
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color-dark);
}
.footer-title {
    font-family: var(--font-primary);
    font-size: 1.15rem; 
    font-weight: 600; 
    color: var(--text-light);
}
.footer-links li {
    margin-bottom: 0.6rem; 
}
.footer-links a {
    color: var(--text-muted);
    transition: color 0.2s ease;
}
.footer-links a:hover {
    color: var(--primary-color); /* 悬停主色 */
    text-decoration: underline;
}
.footer-contact-info li {
    margin-bottom: 0.6rem;
    display: flex;
    align-items: flex-start;
    color: var(--text-muted);
}
.footer-contact-info i {
    margin-top: 0.2em; 
    font-size: 1.1em; 
    color: rgba(var(--primary-color-rgb),0.5); 
}
.social-icons .social-icon {
    width: 45px; 
    height: 45px;
    line-height: 45px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(var(--primary-color-rgb), 0.1); 
    color: var(--text-light);
    margin-right: 0.8rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(var(--primary-color-rgb), 0.3);
}
.social-icons .social-icon:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-5px) scale(1.1); 
    box-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.8);
}

/* --- 返回顶部按钮 --- */
.back-to-top-btn {
    position: fixed;
    bottom: 30px; 
    right: 30px; 
    width: 55px; 
    height: 55px;
    font-size: 1.4rem; 
    background-color: var(--primary-color); 
    border-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.8);
    display: none; 
    opacity: 0;
    visibility: hidden;
    z-index: 1050;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateY(30px);
}
.back-to-top-btn.show {
    display: flex; 
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top-btn:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
    box-shadow: 0 0 25px rgba(var(--primary-color-rgb), 0.9);
    transform: translateY(-7px);
}


/* --- AOS 动画基础样式 (保持不变) --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(60px); 
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- 音乐播放器 (新样式) --- */
.music-player-glam {
    position: fixed;
    bottom: 30px; 
    left: 30px;
    background-color: rgba(255,255,255,0.8); /* 浅色背景，带透明度 */
    border: 1px solid rgba(var(--primary-color-rgb), 0.5); /* 强调边框 */
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 12px 25px; 
    box-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.2); /* 发光阴影 */
    z-index: 1040;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-dark); /* 文字颜色 */
}
.music-player-glam:hover {
    box-shadow: 0 0 30px rgba(var(--primary-color-rgb), 0.4);
    transform: translateY(-5px);
}

.music-player-glam #playPauseBtn {
    background: none;
    border: none;
    color: var(--primary-color); /* 主色图标 */
    font-size: 1.4rem; 
    margin-right: 15px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}
.music-player-glam #playPauseBtn:hover i {
    color: var(--accent-color); /* 悬停时强调色 */
    transform: scale(1.1);
}

.music-player-glam #songName {
    font-size: 1rem; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px; 
    font-weight: 400;
    color: var(--text-dark);
}


/* --- 响应式调整 --- */
@media (max-width: 1200px) {
    .hero-glam-section h1 {
        font-size: 4.5rem;
    }
}

@media (max-width: 991.98px) {
    .main-navbar .navbar-nav { margin-top: 1rem; }
    .main-search-form { margin-top: 1rem; }

    .hero-glam-section { height: 80vh; min-height: 500px; }
    .hero-glam-section h1 { font-size: 3.5rem; }
    .hero-glam-section p.lead { font-size: 1.25rem; }
    .hero-glam-section .btn-glam-primary,
    .hero-glam-section .btn-glam-outline-light { font-size: 1.1rem; padding: 0.8rem 2rem; }

    .limited-time-offer-section h2 { font-size: 3rem; }
    .limited-time-offer-section .countdown-timer span.glam-num { font-size: 2.5rem; }

    .category-card.large-card { min-height: 350px; }
    .category-card.medium-card { min-height: 200px; }
    .category-card.small-card { min-height: 200px; }

    .service-highlights-section .service-item-box { padding: 1.5rem; }
    .service-highlights-section .service-item i { font-size: 2.8rem; margin-bottom: 1rem; }
    .service-highlights-section .service-item h5 { font-size: 1.2rem; }

    .product-card-body { padding: 1rem; }
    .product-title { font-size: 1.1rem; }
    .product-price { font-size: 1.3rem; }
    .quick-buy-btn { font-size: 0.9rem; padding: 0.5rem 1rem; }
}

@media (max-width: 767.98px) {
    .top-bar { font-size: 0.7rem; }
    .top-bar-promo { display: none !important; } 
    .top-bar-nav { width: 100%; justify-content: space-between;}

    .hero-glam-section { height: 70vh; min-height: 400px; }
    .hero-glam-section h1 { font-size: 2.8rem; margin-bottom: 1rem; }
    .hero-glam-section p.lead { font-size: 1.1rem; margin-bottom: 2rem; }
    .hero-glam-section .btn-glam-primary,
    .hero-glam-section .btn-glam-outline-light { font-size: 0.9rem; padding: 0.7rem 1.8rem; }
    .hero-glam-section .d-flex.flex-column.flex-md-row {
        flex-direction: column !important;
        gap: 0.8rem !important;
    }

    .section-title { font-size: 2.2rem; }
    .section-subtitle { font-size: 0.9rem; }

    .service-highlights-section .service-item-box { padding: 1rem; }
    .service-highlights-section .service-item i { font-size: 2.2rem; margin-bottom: 0.8rem; }
    .service-highlights-section .service-item h5 { font-size: 1rem; }
    .service-highlights-section .service-item p.small { font-size: 0.8rem; }

    .category-card h3, .category-card h4 { font-size: 1.8rem; }
    .category-card p { font-size: 0.9rem; }
    .category-card .btn { padding: 0.4rem 1rem; font-size: 0.8rem; }
    .category-card.large-card, .category-card.medium-card, .category-card.small-card {
        min-height: 180px;
    }

    .product-card-glam-hover .product-image-link .product-overlay {
        display: none; /* 手机端简化，避免复杂交互 */
    }
    .product-card-body { padding: 0.8rem; }
    .product-title { font-size: 1rem; margin-bottom: 0.5rem; }
    .product-category { font-size: 0.8rem; margin-bottom: 0.6rem; }
    .product-price { font-size: 1.2rem; }
    .product-rating { font-size: 0.85rem; }
    .quick-buy-btn { font-size: 0.8rem; padding: 0.3rem 0.6rem; }

    .limited-time-offer-section { min-height: 400px; padding: 3rem 0; }
    .limited-time-offer-section h2 { font-size: 2.5rem; }
    .limited-time-offer-section p.lead { font-size: 1rem; }
    .limited-time-offer-section .countdown-timer { gap: 0.8rem; }
    .limited-time-offer-section .countdown-timer div { padding: 0.8rem 1rem; min-width: 65px; }
    .limited-time-offer-section .countdown-timer span.glam-num { font-size: 2.2rem; }
    .limited-time-offer-section .countdown-timer small { font-size: 0.8rem; }
    .limited-time-offer-section .btn-glam-primary { font-size: 1rem; padding: 0.8rem 2rem; }

    .trending-card-overlay { padding: 1rem; }
    .trending-card-overlay p.h5 { font-size: 1.1rem; }
    .trending-card-overlay p.small { font-size: 0.8rem; }
    .trending-card-overlay .btn { font-size: 0.8rem; padding: 0.4rem 1rem; }
    .trending-card { min-height: 280px; }

    .newsletter-signup-section .newsletter-form { max-width: 90%; }
    .newsletter-signup-section .newsletter-form .form-control,
    .newsletter-signup-section .newsletter-form .btn-glam-primary {
        border-radius: var(--border-radius) !important;
        width: 100%;
        padding: 0.8rem 1.5rem;
    }
    .newsletter-signup-section .newsletter-form.input-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .music-player-glam { bottom: 15px; left: 15px; padding: 8px 15px; }
    .music-player-glam #playPauseBtn { font-size: 1.1rem; margin-right: 10px; }
    .music-player-glam #songName { font-size: 0.8rem; max-width: 120px; }

    .back-to-top-btn { bottom: 15px; right: 15px; width: 45px; height: 45px; font-size: 1.2rem; }
}