/* 全局样式文件 - 高端长裤展示网站 */
/* 定义极简主义设计风格和响应式布局 */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
    overflow-x: hidden;
}

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

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.nav-container {
    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: 300;
    color: #2c2c2c;
    text-decoration: none;
}

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

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 300;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2c2c2c;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #2c2c2c;
    transition: width 0.3s ease;
}

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

/* 英雄区域样式 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    position: relative;
    margin-top: 80px;
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 300;
    color: #2c2c2c;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: #666;
    margin-bottom: 2rem;
}

/* 网格布局样式 */
.grid-section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 3rem;
    color: #2c2c2c;
}

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

.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.grid-content {
    padding: 1.5rem;
}

.grid-title {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: #2c2c2c;
}

.grid-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 详情页面样式 */
.detail-section {
    padding: 5rem 0;
}

.detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.detail-content {
    padding: 2rem 0;
}

.detail-title {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: #2c2c2c;
}

.detail-text {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* 页脚样式 */
.footer {
    background: #2c2c2c;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    font-size: 0.9rem;
    font-weight: 300;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: transparent;
    border: 1px solid #2c2c2c;
    color: #2c2c2c;
    text-decoration: none;
    font-weight: 300;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background: #2c2c2c;
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .detail-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .detail-image {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

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

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

/* 加载状态 */
.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 {
    outline: 2px solid #2c2c2c;
    outline-offset: 2px;
}