/* 全局样式文件 - 高端女装展示网站 */
/* 定义中性色配色方案和优雅字体 */

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

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

/* 中性色配色方案 */
:root {
    /* 主色调 - 中性色 */
    --color-cream: #f8f4f0;
    --color-oatmeal: #e8e0d9;
    --color-stone: #d4ccc5;
    --color-charcoal: #2a2a2a;
    
    /* 点缀色 - 低饱和度 */
    --color-terracotta: #b87d6a;
    --color-sage: #8a9b8c;
    --color-dusty-pink: #d4a6a6;
    
    /* 功能色 */
    --color-white: #ffffff;
    --color-black: #000000;
    
    /* 字体 */
    --font-primary: 'Inter', 'PingFang SC', 'Source Han Sans CN', 'Microsoft YaHei', sans-serif;
    
    /* 间距 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* 圆角 */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    
    /* 阴影 */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* 基础样式 */
body {
    font-family: var(--font-primary);
    font-weight: 300;
    line-height: 1.6;
    color: var(--color-charcoal);
    background-color: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 3rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.25rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
}

/* 段落样式 */
p {
    margin-bottom: var(--spacing-sm);
    font-size: 1.125rem;
    color: var(--color-charcoal);
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--color-charcoal);
}

/* 链接样式 */
a {
    color: var(--color-charcoal);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-terracotta);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    border: 1px solid var(--color-charcoal);
    background: transparent;
    color: var(--color-charcoal);
    font-size: 0.875rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.btn-secondary {
    border-color: var(--color-terracotta);
    color: var(--color-terracotta);
}

.btn-secondary:hover {
    background: var(--color-terracotta);
    color: var(--color-white);
}

/* 图片样式 */
.img-fluid {
    max-width: 100%;
    height: auto;
}

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

/* 图片悬停效果 */
.image-hover {
    transition: all 0.4s ease;
    overflow: hidden;
}

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

.image-hover img {
    transition: transform 0.4s ease;
}

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

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

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

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

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

/* Flexbox 布局 */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

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

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

/* 间距工具类 */
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }

/* 文本对齐 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* 视差滚动效果 */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* 淡入动画 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 页面过渡 */
.page-transition {
    animation: fadeInUp 0.6s ease;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    .parallax {
        background-attachment: scroll;
    }
}

/* 打印样式 */
@media print {
    .no-print {
        display: none !important;
    }
}

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

/* 焦点样式 */
*:focus {
    outline: 2px solid var(--color-terracotta);
    outline-offset: 2px;
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    :root {
        --color-cream: #ffffff;
        --color-charcoal: #000000;
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}