/* 高端女装展示网站 - 全局样式文件 */
/* 遵循极简主义设计原则，使用Tailwind.css作为基础 */

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

/* 字体设置 - 优先使用系统纤细字体 */
body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

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

/* 导航栏样式 */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #f0f0f0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 14px;
    letter-spacing: 1px;
}

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

.nav-links a.active {
    color: #000;
    border-bottom: 1px solid #000;
}

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

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
}

/* 品牌标语样式 */
.slogan {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slogan h1 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

/* 按钮样式 */
.btn-explore {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 12px 30px;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-explore:hover {
    background: white;
    color: #000;
}

/* 网格布局 - 系列页面 */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 100px 0;
}

.collection-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

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

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

.collection-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.collection-item:hover .collection-overlay {
    transform: translateY(0);
}

/* 详情页样式 */
.detail-hero {
    height: 60vh;
    background-size: cover;
    background-position: center;
    margin-bottom: 50px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.product-card {
    text-align: center;
}

.product-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin-bottom: 20px;
}

.product-description {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    max-width: 300px;
    margin: 0 auto;
}

/* 风格指南页面样式 */
.style-guide-section {
    margin-bottom: 80px;
}

.style-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    margin-bottom: 20px;
}

.style-tips {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* 页脚样式 */
.footer {
    background-color: #f8f8f8;
    padding: 30px 0;
    text-align: center;
    color: #999;
    font-size: 14px;
    margin-top: 100px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .slogan h1 {
        font-size: 2rem;
    }
    
    .collection-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 80px 20px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
    }
}

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

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

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

/* 焦点样式 */
a:focus, button:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

/* 打印样式 */
@media print {
    .navbar, .footer, .btn-explore {
        display: none;
    }
}