/* 全局样式文件 - 女装展示网站 */
/* 设计风格：现代简约，中性色主题，响应式布局 */

/* 基础重置与字体定义 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

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

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 300;
    color: #8b7355;
    text-decoration: none;
}

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

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

.nav-links a:hover {
    color: #8b7355;
}

.nav-links a.active {
    color: #8b7355;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #8b7355;
}

/* 轮播图样式 */
.hero-slider {
    position: relative;
    height: 70vh;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

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

.slide-content {
    position: absolute;
    bottom: 20%;
    left: 10%;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 500px;
}

.slide-content h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.slide-content p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* 精选系列网格 */
.featured-grid {
    padding: 4rem 0;
}

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

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: #8b7355;
    margin: 1rem auto;
}

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

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

.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.5s ease;
}

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

.grid-content {
    padding: 1.5rem;
    text-align: center;
}

.grid-content h3 {
    font-size: 1.3rem;
    font-weight: 400;
    color: #555;
    margin-bottom: 0.5rem;
}

.grid-content p {
    color: #888;
    font-size: 0.9rem;
}

/* 系列页面样式 */
.collection-grid {
    padding: 4rem 0;
}

.collection-item {
    margin-bottom: 3rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.collection-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.collection-info {
    padding: 2rem;
    text-align: center;
}

.collection-info h2 {
    font-size: 1.8rem;
    font-weight: 300;
    color: #555;
    margin-bottom: 1rem;
}

.collection-info p {
    color: #777;
    line-height: 1.6;
}

/* 单品详情页样式 */
.product-detail {
    padding: 4rem 0;
    background: #fff;
}

.product-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

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

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

.thumbnail {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.thumbnail:hover {
    opacity: 0.8;
}

.product-info {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.product-info h1 {
    font-size: 2.2rem;
    font-weight: 300;
    color: #555;
    margin-bottom: 1.5rem;
}

.product-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 2rem;
}

.detail-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    text-align: left;
}

.detail-point {
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 6px;
}

.detail-point h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #8b7355;
    margin-bottom: 0.5rem;
}

/* 风格灵感页面样式 */
.inspiration-grid {
    padding: 4rem 0;
}

.inspiration-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

.inspiration-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.inspiration-content {
    padding: 2rem;
}

.inspiration-content h2 {
    font-size: 1.8rem;
    font-weight: 300;
    color: #555;
    margin-bottom: 1rem;
}

.inspiration-content p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* 页脚样式 */
.footer {
    background-color: #fff;
    border-top: 1px solid #eee;
    padding: 2rem 0;
    text-align: center;
    color: #888;
    margin-top: 4rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .hero-slider {
        height: 50vh;
    }
    
    .slide-content h2 {
        font-size: 1.8rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-gallery {
        grid-template-columns: 1fr;
    }
    
    .thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .inspiration-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .inspiration-item:nth-child(even) .inspiration-image,
    .inspiration-item:nth-child(even) .inspiration-content {
        order: unset;
    }
    
    .detail-points {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero-slider {
        height: 40vh;
    }
    
    .slide-content {
        left: 5%;
        bottom: 15%;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* 工具类 */
.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #8b7355;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 图片懒加载占位 */
.image-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}