/* 谧境之裳 - 女装美学展示网站全局样式 */
/* 极简主义设计风格，响应式布局 */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 字体定义 */
@font-face {
    font-family: 'SourceHanSans-Light';
    src: local('Source Han Sans Light'), local('PingFang SC Light'), local('Microsoft YaHei Light');
    font-weight: 300;
}

@font-face {
    font-family: 'SourceHanSans-Regular';
    src: local('Source Han Sans Regular'), local('PingFang SC Regular'), local('Microsoft YaHei');
    font-weight: 400;
}

/* 根元素和基础样式 */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'SourceHanSans-Regular', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fefefe;
    overflow-x: hidden;
}

/* 主色调定义 */
:root {
    --primary-white: #fefefe;
    --primary-beige: #f5f1e8;
    --primary-oatmeal: #e8e0d5;
    
    --accent-pink: #e8d7d1;
    --accent-blue: #d1d7e8;
    --accent-green: #d7e8d1;
    
    --text-dark: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
}

/* 通用容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'SimSun', 'Songti SC', serif;
    font-weight: normal;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
}

h2 {
    font-size: 2rem;
    color: var(--text-dark);
}

h3 {
    font-size: 1.5rem;
    color: var(--text-light);
}

/* 导航栏样式 */
.navbar {
    background-color: var(--primary-white);
    border-bottom: 1px solid var(--primary-beige);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    font-family: 'SimSun', 'Songti SC', serif;
    font-size: 1.8rem;
    color: var(--text-dark);
    text-decoration: none;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-dark);
}

.nav-link.active {
    color: var(--text-dark);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--text-dark);
}

/* 轮播图样式 */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: 80px;
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

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

.slide-content {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--primary-white);
    background-color: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 2px;
}

.slogan {
    font-family: 'SimSun', 'Songti SC', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* 网格布局样式 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

.grid-item {
    background: var(--primary-white);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.grid-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.grid-content {
    padding: 1.5rem;
}

.grid-title {
    font-family: 'SimSun', 'Songti SC', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.grid-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 瀑布流布局样式 */
.masonry-container {
    column-count: 3;
    column-gap: 2rem;
    padding: 4rem 0;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 2rem;
    background: var(--primary-white);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.masonry-image {
    width: 100%;
    height: auto;
    display: block;
}

.masonry-caption {
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* 细节页面样式 */
.details-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 0;
}

.detail-item {
    margin-bottom: 4rem;
}

.detail-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 2px;
}

.detail-text {
    margin-top: 1rem;
    font-family: 'SimSun', 'Songti SC', serif;
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    text-align: center;
}

/* 页脚样式 */
.footer {
    background-color: var(--primary-beige);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.footer-text {
    color: var(--text-lighter);
    font-size: 0.9rem;
}

/* 页面通用间距 */
.page-section {
    padding: 4rem 0;
}

.page-title {
    text-align: center;
    margin-bottom: 3rem;
    font-family: 'SimSun', 'Songti SC', serif;
    color: var(--text-dark);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .navbar-container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .hero-slider {
        height: 60vh;
        margin-top: 70px;
    }
    
    .slogan {
        font-size: 1.5rem;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 0;
    }
    
    .masonry-container {
        column-count: 2;
        column-gap: 1.5rem;
        padding: 2rem 0;
    }
    
    .details-container {
        padding: 2rem 15px;
    }
    
    .detail-image {
        height: 300px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .masonry-container {
        column-count: 1;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-slider {
        height: 50vh;
    }
    
    .slogan {
        font-size: 1.2rem;
    }
}

/* 加载动画 */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 工具类 */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}