/* 全局样式文件 - 高端时尚卫衣网站 */
/* 定义极简主义设计风格和响应式布局 */

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

/* 字体定义 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* 设计令牌 */
    --color-white: #ffffff;
    --color-gray-50: #fafafa;
    --color-gray-100: #f5f5f5;
    --color-gray-200: #eeeeee;
    --color-gray-300: #e0e0e0;
    --color-gray-400: #bdbdbd;
    --color-gray-500: #9e9e9e;
    --color-gray-600: #757575;
    --color-gray-700: #616161;
    --color-gray-800: #424242;
    --color-gray-900: #212121;
    --color-black: #000000;
    
    /* 莫兰迪色系点缀 */
    --color-muted-green: #a8b8a0;
    --color-muted-blue: #9ab4c9;
    --color-terracotta: #c67c5c;
    
    /* 间距系统 */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* 字体大小 */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    
    /* 圆角 */
    --radius-sm: 0.125rem;
    --radius-md: 0.25rem;
    --radius-lg: 0.5rem;
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* 基础样式 */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-gray-900);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

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

.nav-link {
    text-decoration: none;
    color: var(--color-gray-600);
    font-weight: 500;
    font-size: var(--text-lg);
    transition: color 0.3s ease;
    position: relative;
    padding: var(--space-sm) 0;
}

.nav-link:hover {
    color: var(--color-gray-900);
}

.nav-link.active {
    color: var(--color-black);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--color-black);
}

/* 主内容区域 */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 160px);
}

/* 页脚样式 */
.footer {
    background-color: var(--color-gray-50);
    padding: var(--space-xl) 0;
    text-align: center;
    color: var(--color-gray-600);
    font-size: var(--text-sm);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: var(--space-md) var(--space-xl);
    background-color: var(--color-black);
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: var(--color-gray-800);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-black);
    border: 1px solid var(--color-black);
}

.btn-outline:hover {
    background-color: var(--color-black);
    color: var(--color-white);
}

/* 轮播图样式 */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

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

.slide.active {
    opacity: 1;
}

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

/* 网格布局 */
.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* 卡片样式 */
.card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.card-content {
    padding: var(--space-lg);
}

/* 图文交错布局 */
.alternating-layout {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
}

.alternating-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.alternating-item:nth-child(even) .alternating-image {
    order: 2;
}

.alternating-item:nth-child(even) .alternating-content {
    order: 1;
}

.alternating-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.alternating-content {
    padding: var(--space-xl);
}

/* 全屏画廊 */
.fullscreen-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.gallery-item {
    position: relative;
    height: 100vh;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-caption {
    position: absolute;
    bottom: var(--space-2xl);
    left: var(--space-2xl);
    color: var(--color-white);
    background-color: rgba(0, 0, 0, 0.5);
    padding: var(--space-md);
}

/* 文本样式 */
.text-center {
    text-align: center;
}

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

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

.heading-1 {
    font-size: var(--text-5xl);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
}

.heading-2 {
    font-size: var(--text-4xl);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-lg);
}

.heading-3 {
    font-size: var(--text-3xl);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: var(--space-md);
}

.paragraph {
    font-size: var(--text-lg);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
    color: var(--color-gray-700);
}

/* 间距工具类 */
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }
.p-2xl { padding: var(--space-2xl); }

/* 响应式设计 */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .alternating-item {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .alternating-item:nth-child(even) .alternating-image {
        order: 1;
    }
    
    .alternating-item:nth-child(even) .alternating-content {
        order: 2;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .nav-menu {
        gap: var(--space-xl);
    }
    
    .nav-link {
        font-size: var(--text-base);
    }
    
    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .heading-1 {
        font-size: var(--text-4xl);
    }
    
    .heading-2 {
        font-size: var(--text-3xl);
    }
    
    .heading-3 {
        font-size: var(--text-2xl);
    }
    
    .alternating-image img {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        gap: var(--space-lg);
    }
    
    .nav-link {
        font-size: var(--text-sm);
    }
    
    .heading-1 {
        font-size: var(--text-3xl);
    }
    
    .heading-2 {
        font-size: var(--text-2xl);
    }
    
    .alternating-image img {
        height: 300px;
    }
    
    .gallery-item {
        height: 70vh;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

/* 图片悬停效果 */
.image-hover {
    transition: transform 0.3s ease;
}

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

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

/* 无障碍支持 */
.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;
}

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