/* 全局样式文件 - 女装展示网站 */
/* 使用Tailwind CSS作为基础，添加少量自定义样式 */

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

/* 字体设置 - 优先使用思源黑体或PingFang SC */
body {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fafafa;
}

/* 导航栏样式 */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #f0f0f0;
}

.nav-link {
    position: relative;
    color: #666;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #333;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 50%;
    background-color: #333;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* 主图容器样式 */
.hero-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f5f2 0%, #f0ede8 100%);
}

/* 图片网格样式 */
.image-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.image-card {
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.image-card img {
    transition: transform 0.5s ease;
}

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

/* 分类展示样式 */
.category-section {
    margin: 4rem 0;
}

.category-title {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: #666;
}

/* 页脚样式 */
.footer {
    background-color: #f8f5f2;
    border-top: 1px solid #e8e5e2;
    color: #999;
    font-size: 0.875rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .hero-container {
        min-height: 60vh;
    }
}

/* 自定义工具类 */
.text-balance {
    text-wrap: balance;
}

.aspect-ratio-16-9 {
    aspect-ratio: 16/9;
}

.aspect-ratio-4-3 {
    aspect-ratio: 4/3;
}

.aspect-ratio-1-1 {
    aspect-ratio: 1/1;
}

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

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

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}