/* 全局样式 - 高级质感设计 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 高级配色方案 */
    --primary-dark: #1a2332;        /* 深海军蓝 - 主色调 */
    --primary-medium: #2c4a3e;    /* 深森林绿 - 辅助色 */
    --primary-light: #5a7a6a;     /* 灰绿色 - 强调色 */
    --accent-gold: #c9a96e;       /* 玫瑰金 - 点缀色 */
    --accent-warm: #d4a574;       /* 暖杏色 - 温暖点缀 */
    --bg-cream: #faf8f5;          /* 奶油白 - 背景色 */
    --bg-white: #ffffff;            /* 纯白 */
    --text-primary: #2c2c2c;      /* 深炭灰 - 主文字 */
    --text-secondary: #5a5a5a;     /* 中灰 - 次要文字 */
    --text-light: #8a8a8a;        /* 浅灰 - 辅助文字 */
    --border-light: #e8e4df;       /* 浅米色边框 */
    --shadow-soft: 0 2px 20px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.8;
    color: var(--text-primary);
    background-color: var(--bg-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* 导航栏 - 高级深色设计 */
.navbar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--bg-white);
    letter-spacing: 0.5px;
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.3px;
}

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

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

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

/* 首页横幅 - 高级渐变背景 */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 50%, var(--primary-light) 100%);
    color: var(--bg-white);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom center;
    background-size: cover;
    opacity: 0.6;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    position: relative;
}

.hero .subtitle {
    font-size: 1.6rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 1px;
    position: relative;
}

.hero .description {
    font-size: 1.15rem;
    max-width: 850px;
    margin: 0 auto 3rem;
    line-height: 2;
    opacity: 0.9;
    position: relative;
    font-weight: 300;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    position: relative;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.4s ease;
    display: inline-block;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--primary-dark);
    border: 2px solid var(--accent-gold);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 169, 110, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--bg-white);
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
    background: var(--bg-white);
    color: var(--primary-dark);
    border-color: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--bg-cream);
    border-radius: 16px;
    transition: all 0.4s ease;
    border: 1px solid var(--border-light);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-gold);
}

.feature-card .icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: var(--primary-medium);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.feature-card p {
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.8;
}

/* 精油核心品类部分 */
.essential-oils {
    padding: 5rem 0;
    background: var(--bg-cream);
}

.essential-oils h2 {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    font-weight: 300;
    letter-spacing: 1px;
}

.section-desc {
    text-align: center;
    max-width: 950px;
    margin: 0 auto 4rem;
    font-size: 1.15rem;
    line-height: 2;
    color: var(--text-secondary);
    font-weight: 300;
}

/* 分类标签 */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.tab-btn {
    padding: 1rem 2.5rem;
    border: 2px solid var(--primary-medium);
    background: var(--bg-white);
    color: var(--primary-medium);
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.4s ease;
    letter-spacing: 0.5px;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary-medium);
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(44, 74, 62, 0.3);
}

.category-content {
    display: block;
}

.category-content.hidden {
    display: none;
}

.category-content h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-medium);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.category-content > p {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 3rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.8;
}

/* 精油卡片网格 */
.oil-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.oil-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.4s ease;
    border: 1px solid var(--border-light);
}

.oil-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-gold);
}

.oil-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    color: var(--bg-white);
    padding: 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.oil-icon {
    font-size: 2.8rem;
}

.oil-header h4 {
    flex: 1;
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.oil-tag {
    background: var(--accent-gold);
    color: var(--primary-dark);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.oil-body {
    padding: 1.8rem;
}

.oil-body p {
    margin-bottom: 1.2rem;
    line-height: 1.9;
    color: var(--text-secondary);
    font-weight: 300;
}

.oil-body ul {
    margin-left: 1.8rem;
    margin-bottom: 1.2rem;
}

.oil-body li {
    margin-bottom: 0.8rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 300;
}

/* 搭配公式部分 */
.blending {
    padding: 5rem 0;
    background: var(--bg-white);
}

.blending h2 {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    font-weight: 300;
    letter-spacing: 1px;
}

.formula-cards {
    display: grid;
    gap: 2.5rem;
    margin-top: 3rem;
}

.formula-card {
    background: var(--bg-cream);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
}

.formula-card h3 {
    color: var(--primary-dark);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.formula-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.formula-table th,
.formula-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.formula-table th {
    background: var(--primary-dark);
    color: var(--bg-white);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.formula-table tr:hover {
    background: rgba(201, 169, 110, 0.08);
}

.tip {
    background: linear-gradient(135deg, #fef9f3, #fdf2e9);
    border-left: 4px solid var(--accent-gold);
    padding: 1.2rem 1.5rem;
    margin-top: 1.5rem;
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 400;
}

.blend-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.blend-item {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.blend-item:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 4px 20px rgba(201, 169, 110, 0.15);
}

.blend-item h4 {
    color: var(--primary-medium);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.blend-item p {
    margin-bottom: 0.8rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 300;
}

/* 安全须知部分 */
.safety {
    padding: 5rem 0;
    background: var(--bg-cream);
}

.safety h2 {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    font-weight: 300;
    letter-spacing: 1px;
}

.safety-content {
    max-width: 950px;
    margin: 0 auto;
}

.safety-block {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
}

.safety-block.warning {
    background: linear-gradient(135deg, #fef9f3, #fdf2e9);
    border-left: 4px solid var(--accent-gold);
}

.safety-block h3 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.safety-block ul {
    margin-left: 2rem;
}

.safety-block li {
    margin-bottom: 1rem;
    line-height: 1.9;
    color: var(--text-secondary);
    font-weight: 300;
}

.correct {
    color: var(--primary-medium);
    font-weight: 500;
}

/* 提示框 */
.tip-box {
    background: linear-gradient(135deg, #f0f4f1, #e8eeea);
    border-left: 4px solid var(--primary-light);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2.5rem;
}

.tip-box h4 {
    color: var(--primary-dark);
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    font-weight: 500;
}

.tip-box ul {
    margin-left: 2rem;
}

.tip-box li {
    margin-bottom: 0.8rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 300;
}

/* 页脚 */
.footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    color: var(--bg-white);
    padding: 3rem 0;
    text-align: center;
}

.footer p {
    margin-bottom: 0.8rem;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .oil-grid {
        grid-template-columns: 1fr;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .blend-examples {
        grid-template-columns: 1fr;
    }
    
    .category-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .intro,
    .essential-oils,
    .blending,
    .safety {
        padding: 3rem 0;
    }
}
