/* --- 全局设置 --- */
:root {
    --primary-color: #d4a373; /* 金棕色/奶茶色 */
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #fdfbf7;      /* 米白色背景 */
    --bg-white: #ffffff;
    --accent: #e9edc9;        /* 柔和的淡绿色 */
    --font-main: 'Lato', sans-serif;
    --font-serif: 'Noto Serif SC', serif; /* 用于标题，增加高级感 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- 布局工具 --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-alt {
    background-color: #f3efe6; /* 交替背景色 */
}

.section-title {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
    font-style: italic;
}

/* --- 导航栏 --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dark);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.cta-btn {
    padding: 10px 20px;
    background-color: var(--text-dark);
    color: #fff;
    border-radius: 20px;
    font-size: 0.9rem;
}

.cta-btn:hover {
    background-color: var(--primary-color);
}

/* --- Hero Banner --- */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('https://images.unsplash.com/photo-1487412720507-e7ab37603c6f?auto=format&fit=crop&w=1500&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 5px;
    font-weight: bold;
}

.btn:hover {
    background-color: #b08d65;
}

/* --- Makeup Grid --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.card-info {
    padding: 20px;
}

.card-info h3 {
    margin-bottom: 10px;
    font-family: var(--font-serif);
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: bold;
}

/* --- Fashion Split Layout --- */
.split-layout {
    display: flex;
    align-items: center;
    gap: 50px;
    background: var(--bg-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.split-text {
    flex: 1;
}

.split-img {
    flex: 1;
}

.split-img img {
    width: 100%;
    border-radius: 5px;
    object-fit: cover;
}

.tag {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
    margin-bottom: 15px;
}

.fashion-tips li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.fashion-tips li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1.4;
}

/* --- Skincare Tips --- */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.tip-box {
    background: var(--bg-white);
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    border: 1px solid #eee;
    transition: 0.3s;
}

.tip-box:hover {
    border-color: var(--primary-color);
}

.tip-box .icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* --- Footer --- */
footer {
    background-color: #222;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-family: var(--font-serif);
    color: var(--primary-color);
    margin-bottom: 15px;
}

.footer-col h4 {
    margin-bottom: 15px;
}

.footer-col a {
    display: block;
    color: #aaa;
    margin-bottom: 10px;
}

.footer-col a:hover {
    color: #fff;
}

.copyright {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    color: #777;
    font-size: 0.9rem;
}

/* --- 移动端适配 (Responsive) --- */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .split-layout {
        flex-direction: column;
    }
}
/* --- Lightbox (灯箱) 样式 --- */
#lightbox {
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none; /* 默认隐藏 */
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#lightbox.active {
    display: flex; /* 激活时显示 */
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
    cursor: default;
}
/* --- Social Links 样式更新 --- */
.social-link {
    display: inline-block !important; /* 强制并排显示 */
    margin-right: 15px;
    padding-bottom: 2px;
    border-bottom: 1px dashed #777; /* 加个虚线下划线增加设计感 */
}

.social-link:hover {
    color: var(--primary-color) !important;
    border-bottom-color: var(--primary-color);
}
/* --- 修复穿搭板块的间距 --- */
.split-layout {
    margin-bottom: 80px; /* 增加板块之间的距离 */
}

/* 最后一个板块不需要距离，否则下面空白太大 */
.split-layout:last-child {
    margin-bottom: 0;
}

/* 标签通用样式微调 */
.tag {
    display: inline-block;
    color: white;
    padding: 5px 12px;
    font-size: 0.85rem;
    border-radius: 20px; /* 变成圆角更好看 */
    margin-bottom: 15px;
    font-weight: bold;
}