/* --- styles.css --- */

/* 全局变量：高级护肤配色方案 */
:root {
    /* 品牌色：柔和肤色、香槟金、高级深灰 */
    --primary-color: #D4A59A;      /* 柔和的干枯玫瑰色/肤色 */
    --primary-dark: #BA8B81;       /* 深一点的玫瑰色 */
    --accent-color: #BFA686;       /* 香槟金/卡其色 */
    
    /* 文字颜色 */
    --text-dark: #333333;          /* 深灰，比纯黑柔和 */
    --text-grey: #666666;          /* 次级文字 */
    --text-light: #999999;         /* 辅助文字 */
    
    /* 背景 */
    --bg-gradient: linear-gradient(135deg, #FDFBF7 0%, #FFF8F8 100%); /* 珍珠白到淡粉的极淡渐变 */
    --white: #FFFFFF;
    
    /* 卡片特效 */
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    --card-hover-shadow: 0 20px 40px rgba(212, 165, 154, 0.15); /* 悬停时带一点粉色阴影 */
    --glass-border: 1px solid rgba(255, 255, 255, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    /* 字体组合：使用系统自带的无衬线体 (San Francisco, Segoe UI, Helvetica) */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--bg-gradient);
    min-height: 100vh;
    overflow-x: hidden;
}

/* 标题字体：使用系统自带的高级衬线体 (Didot, Bodoni, Times) */
h1, h2, h3, .logo a {
    /* Didot是时尚杂志首选，Bodoni是经典衬线，Times是保底 */
    font-family: 'Didot', 'Bodoni MT', 'Noto Serif Display', 'URW Palladio L', 'Times New Roman', serif;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.container {
    max-width: 1280px; 
    margin: 0 auto;
    padding: 0 24px;
}

/* --- 导航栏 --- */
.header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(0,0,0,0.02);
}

.navbar {
    padding: 1rem 0;
    transition: padding 0.4s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 2rem;
    color: var(--text-dark) !important;
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 4px;
    /* 导航菜单使用无衬线体更易读 */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* 下拉菜单 */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 120%;
    right: 0;
    background: #fff;
    list-style: none;
    min-width: 160px;
    padding: 8px 0;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0,0,0,0.03);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-grey);
    text-transform: none; /* 语言不需要大写 */
    letter-spacing: 0;
}

.dropdown-menu a:hover {
    background: #FFF8F8; /* 淡粉色悬停 */
    color: var(--primary-color);
}

.lang-option.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-dark); /* 黑色线条 */
    transition: all 0.3s;
}

/* --- Hero 主横幅 --- */
.hero {
    padding: 140px 20px 100px;
    text-align: center;
    /* 柔和光晕背景 */
    background: radial-gradient(circle at 80% 20%, #fef6f6 0%, transparent 60%),
                radial-gradient(circle at 20% 80%, #fdfbf7 0%, transparent 60%);
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 4.5rem; /* 更大气的标题 */
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: 2px;
    line-height: 1.1;
    font-weight: 500;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: var(--text-grey);
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.hero-btn {
    display: inline-block;
    padding: 16px 45px;
    background: var(--text-dark);
    color: #fff;
    text-decoration: none;
    border-radius: 50px; /* 胶囊形按钮 */
    transition: all 0.3s ease;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.hero-btn:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(212, 165, 154, 0.3);
}

/* --- 轮播图区域 --- */
.carousel-section {
    padding: 0 20px 80px;
    margin-top: -50px; /* 向上重叠，增加层次感 */
    position: relative;
    z-index: 2;
}

.carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08); /* 柔和的投影 */
    border: 4px solid #fff; /* 白色边框像画框 */
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 600px; /* 增加高度 */
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.carousel-slide.active {
    display: block;
    animation: fadeIn 0.8s;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes fadeIn {
    from { opacity: 0.8; }
    to { opacity: 1; }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8); /* 浅色按钮 */
    border: none;
    color: var(--text-dark);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.carousel-btn:hover {
    background: var(--text-dark);
    color: #fff;
}

.carousel-btn.prev { left: 30px; }
.carousel-btn.next { right: 30px; }

.carousel-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.dot.active {
    background: #fff;
    transform: scale(1.2);
    border-color: rgba(0,0,0,0.1);
}

/* --- 通用 Section --- */
section {
    padding: 100px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 70px;
    color: var(--text-dark);
    font-weight: 400;
    position: relative;
}

/* 标题下的装饰线 */
.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
    margin: 20px auto 0;
}

/* --- 产品展示区域 (Grid) --- */
.products-section {
    background: transparent;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: var(--card-shadow);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
}

.product-image {
    width: 100%;
    height: 320px; /* 长方形更显修长 */
    overflow: hidden;
    background: #fcfcfc;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 30px 25px;
    text-align: center;
}

.product-name {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.product-desc {
    color: var(--text-grey);
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-weight: 300;
}

.product-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.product-link:hover {
    border-bottom-color: var(--primary-color);
}

/* --- 新闻区域 (左图右文) --- */
.news-section {
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(212, 165, 154, 0.08));
}

.news-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.news-card {
    display: flex;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255,255,255,1);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.news-image {
    flex: 0 0 40%;
    position: relative;
    overflow: hidden;
    min-height: 280px;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-info {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.news-date {
    font-size: 0.8rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.news-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.news-desc {
    color: var(--text-grey);
    margin-bottom: 25px;
    line-height: 1.6;
}

.news-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--text-dark);
    padding-bottom: 3px;
    transition: all 0.3s;
}

.news-link:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* --- 合作伙伴 --- */
.partner-section {
    background: #fff;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.partner-card {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 16px;
    transition: all 0.3s;
}

.partner-card:hover {
    background: #fff;
    box-shadow: var(--card-shadow);
    transform: translateY(-5px);
}

.partner-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.partner-logo img {
    max-height: 100%;
    max-width: 100%;
    opacity: 0.8;
    mix-blend-mode: multiply; /* 让图片背景融合 */
    filter: grayscale(100%); /* 默认黑白，显高级 */
    transition: all 0.3s;
}

.partner-card:hover .partner-logo img {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-name {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.partner-desc {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* --- 更多信息 --- */
.more-section {
    background: var(--bg-gradient);
}

.more-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.more-card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    border: 1px solid #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s;
}

.more-card:hover {
    transform: translateY(-10px);
    background: #fff;
}

.more-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    background: #FFF5F5; /* 淡粉圆底 */
    font-size: 2rem;
    margin: 0 auto 25px;
    color: var(--primary-color);
}

.more-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    margin-top: 15px;
    display: inline-block;
}

/* --- 快速链接 --- */
.quick-links-section {
    background: #222; /* 深黑底，对比强烈 */
    padding: 80px 20px;
    color: #fff;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
}

.quick-link-group h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.quick-link-group ul {
    list-style: none;
}

.quick-link-group li {
    margin-bottom: 12px;
}

.quick-link-group a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.quick-link-group a:hover {
    color: #fff;
    padding-left: 5px;
}

/* --- 页脚 --- */
.footer {
    background: #111;
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer p {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.85rem;
    margin: 0 8px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

/* --- 图片查看器 --- */
.image-viewer {
    display: none !important;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95); /* 白背景，更干净 */
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.image-viewer.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.image-viewer-content img {
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    border-radius: 8px;
}

.image-viewer-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: var(--text-dark);
    font-size: 3rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.image-viewer-close:hover {
    transform: rotate(90deg);
}

/* --- 动画 Keyframes --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- 响应式设计 --- */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.5rem; }
    .carousel-container { height: 500px; }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: #fff; /* 手机端白色背景 */
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: left 0.3s ease;
        padding-top: 40px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }

    .nav-menu.active { left: 0; }

    .nav-menu a {
        font-size: 1.2rem;
        color: var(--text-dark);
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: #f9f9f9;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none; /* 默认隐藏，点击显示 */
        width: 100%;
    }
    
    .dropdown:hover .dropdown-menu {
        display: block;
    }

    .hero { padding: 100px 20px; }
    .hero-title { font-size: 2.8rem; }
    .carousel-container { height: 350px; }

    .news-card { flex-direction: column; }
    .news-image { height: 220px; }
    .news-info { padding: 30px; }
    
    .carousel-section { margin-top: -30px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
    .carousel-container { height: 250px; }
    .section-title { font-size: 2rem; }
    .carousel-btn { width: 40px; height: 40px; font-size: 1.5rem; }
}