/* 棉裤展示网站全局样式 */
/* 设计风格：简约、温暖、质朴，中性暖色调 */

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

/* 根变量定义 - 温暖中性色调 */
:root {
    --color-primary: #f5f5f5;      /* 米白 */
    --color-secondary: #f8f4e9;   /* 燕麦色 */
    --color-accent: #d4c8b5;       /* 卡其色 */
    --color-text: #333333;         /* 深灰 */
    --color-light: #fafafa;        /* 浅灰 */
    --color-border: #e0d6c8;       /* 浅卡其边框 */
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 基础字体和排版 */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 
                 'Microsoft YaHei', '微软雅黑', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-primary);
}

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

/* 导航栏样式 */
.navbar {
    background-color: var(--color-secondary);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-light);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-text);
    text-decoration: none;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-accent);
    background-color: rgba(212, 200, 181, 0.1);
}

/* 主内容区域 */
.main-content {
    margin-top: 80px; /* 为固定导航栏留出空间 */
    min-height: calc(100vh - 160px);
}

/* 页面标题 */
.page-title {
    text-align: center;
    font-size: 2.5rem;
    margin: 3rem 0 2rem;
    color: var(--color-text);
    font-weight: 300;
}

/* 英雄区域（首页主视觉） */
.hero {
    height: 60vh;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 300;
    color: var(--color-text);
}

.hero p {
    font-size: 1.2rem;
    color: var(--color-text);
    opacity: 0.8;
}

/* 核心优势展示 */
.features {
    padding: 4rem 0;
    background-color: var(--color-light);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background-color: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* 产品卡片 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.product-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.view-details {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: var(--color-accent);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.view-details:hover {
    background-color: #c5b49e;
}

/* 科技匠心内容区域 */
.tech-content {
    padding: 2rem 0;
}

.tech-section {
    margin-bottom: 3rem;
}

.tech-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    align-items: center;
}

.tech-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.tech-text {
    padding: 1rem;
}

/* 穿搭指南 */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.style-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

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

.style-info {
    padding: 1.5rem;
}

.style-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

/* 页脚 */
.footer {
    background-color: var(--color-secondary);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--color-border);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .feature-grid,
    .products-grid,
    .tech-grid,
    .guide-grid {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        margin-top: 120px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
}

/* 辅助类 */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

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

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