/* 全局样式文件 - 现代极简服饰展示网站 */
/* 定义设计令牌和全局样式规范 */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 根变量定义 - 设计令牌 */
:root {
    /* 颜色系统 */
    --color-white: #ffffff;
    --color-off-white: #f8f8f8;
    --color-beige: #f5f5f0;
    --color-light-gray: #e8e8e8;
    --color-medium-gray: #cccccc;
    --color-dark-gray: #333333;
    --color-text: #2c2c2c;
    --color-text-light: #666666;
    
    /* 间距系统 */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-xxl: 8rem;
    
    /* 字体系统 */
    --font-family-primary: 'Helvetica Neue', Arial, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-xxl: 2rem;
    --font-size-hero: 3rem;
    
    /* 圆角 */
    --border-radius-sm: 2px;
    --border-radius-md: 4px;
    --border-radius-lg: 8px;
    
    /* 过渡效果 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* 阴影 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
}

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

body {
    font-family: var(--font-family-primary);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.6;
    font-weight: 300;
    overflow-x: hidden;
}

/* 排版系统 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--font-size-hero);
    font-weight: 200;
}

h2 {
    font-size: var(--font-size-xxl);
    font-weight: 200;
}

h3 {
    font-size: var(--font-size-xl);
}

h4 {
    font-size: var(--font-size-lg);
}

p {
    margin-bottom: var(--space-md);
    font-weight: 300;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-text-light);
}

/* 布局系统 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: background-color var(--transition-normal);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.nav-logo {
    font-size: var(--font-size-lg);
    font-weight: 300;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
}

.nav-link {
    font-size: var(--font-size-sm);
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-text);
    transition: width var(--transition-normal);
}

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

/* 英雄轮播区域 */
.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.05) 50%,
        rgba(0, 0, 0, 0.02) 100%
    );
}

/* 系列缩略图网格 */
.collection-grid {
    padding: var(--space-xxl) 0;
    background-color: var(--color-off-white);
}

.grid-title {
    text-align: center;
    margin-bottom: var(--space-xl);
    font-weight: 200;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    padding: 0 var(--space-md);
}

.collection-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
    transition: transform var(--transition-normal);
}

.collection-card:hover {
    transform: translateY(-5px);
}

.collection-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.collection-card:hover .collection-image {
    transform: scale(1.05);
}

.collection-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-lg);
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: var(--color-white);
}

.collection-name {
    font-size: var(--font-size-lg);
    font-weight: 300;
    margin-bottom: var(--space-xs);
}

.collection-desc {
    font-size: var(--font-size-sm);
    opacity: 0.9;
}

/* 系列页面样式 */
.collection-header {
    padding: var(--space-xxl) 0 var(--space-xl);
    text-align: center;
    background-color: var(--color-off-white);
}

.collection-title {
    font-weight: 200;
    margin-bottom: var(--space-md);
}

.collection-intro {
    max-width: 600px;
    margin: 0 auto;
    font-size: var(--font-size-lg);
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-text-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    padding: var(--space-xl) var(--space-md);
}

.product-card {
    position: relative;
    overflow: hidden;
}

.product-image {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.product-card:hover .product-image {
    transform: scale(1.02);
}

/* 风格指南页面 */
.style-guide-section {
    padding: var(--space-xxl) 0;
}

.style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-lg);
    padding: 0 var(--space-md);
}

.style-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
}

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

.style-caption {
    position: absolute;
    bottom: var(--space-md);
    left: var(--space-md);
    color: var(--color-white);
    font-size: var(--font-size-sm);
    background: rgba(0,0,0,0.5);
    padding: var(--space-xs) var(--space-sm);
}

/* 关于页面 */
.about-section {
    padding: var(--space-xxl) 0;
    background-color: var(--color-off-white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.about-text {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    font-weight: 300;
    text-align: justify;
    margin-bottom: var(--space-lg);
}

.about-text:last-child {
    margin-bottom: 0;
}

/* 页脚样式 */
.footer {
    background-color: var(--color-white);
    padding: var(--space-lg) 0;
    text-align: center;
    border-top: 1px solid var(--color-light-gray);
}

.footer-text {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
    font-weight: 300;
}

/* 响应式设计 */
@media (max-width: 768px) {
    :root {
        --font-size-hero: 2rem;
        --font-size-xxl: 1.5rem;
        --font-size-xl: 1.25rem;
        --space-xl: 2rem;
        --space-xxl: 4rem;
    }
    
    .nav-menu {
        gap: var(--space-lg);
    }
    
    .grid-container {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .style-grid {
        grid-template-columns: 1fr;
    }
    
    .about-text {
        font-size: var(--font-size-md);
    }
}

@media (max-width: 480px) {
    .nav-menu {
        gap: var(--space-md);
    }
    
    .nav-link {
        font-size: var(--font-size-xs);
    }
    
    .collection-grid,
    .style-guide-section,
    .about-section {
        padding: var(--space-xl) 0;
    }
}

/* 工具类 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center {
    text-align: center;
}

.mb-sm {
    margin-bottom: var(--space-sm);
}

.mb-md {
    margin-bottom: var(--space-md);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

/* Swiper自定义样式 */
.swiper-pagination-bullet {
    background: var(--color-white);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--color-white);
}

/* 加载状态 */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* 无障碍支持 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 焦点样式 */
a:focus,
button:focus {
    outline: 2px solid var(--color-dark-gray);
    outline-offset: 2px;
}