/* 
 * 现代风尚展示平台全局样式表
 * By HAISNAP | 遵循极简主义与高性能规范
 */

:root {
    /* 色彩系统 */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8F8F8;
    --text-main: #333333;
    --text-muted: #888888;
    --accent-color: #0A1D3F;
    --accent-soft: #E9E1D2;
    --border-light: #F0F0F0;

    /* 排版系统 */
    --font-stack: "PingFang SC", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
    --font-heading: 32px;
    --font-subheading: 24px;
    --font-body: 16px;
    --font-small: 14px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-primary);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

/* 布局容器 */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* 顶部导航 */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-light);
    transition: transform 0.3s ease;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

nav a {
    margin: 0 30px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-main);
    position: relative;
    padding: 5px 0;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* 主内容区域 */
main {
    flex: 1;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

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

/* 模块通用样式 */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: var(--font-heading);
    font-weight: 300;
    color: var(--text-main);
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-desc {
    font-size: var(--font-body);
    color: var(--text-muted);
    font-weight: 300;
}

/* 轮播/主视觉 (Hero) */
.hero {
    height: 85vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: opacity 1s ease-in-out;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2); /* 轻微遮罩 */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    transform: translateY(20px);
    animation: slideUp 1s ease 0.5s forwards;
    opacity: 0;
}

.hero-title {
    font-size: 48px;
    font-weight: 200;
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0.9;
}

@keyframes slideUp {
    to { transform: translateY(0); opacity: 1; }
}

/* 网格布局 */
.grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

.card {
    display: flex;
    flex-direction: column;
    group-hover: pointer;
}

.card-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background-color: var(--bg-secondary);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

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

.card-info {
    padding-top: 20px;
    text-align: center;
}

.card-title {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.card-meta {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

/* 瀑布流/艺术页面特殊布局 */
.art-grid {
    column-count: 3;
    column-gap: 30px;
}

.art-item {
    break-inside: avoid;
    margin-bottom: 30px;
}

.art-item img {
    width: 100%;
    display: block;
}

/* 动态槽位 */
.slot-container {
    display: contents;
}

/* 页脚 */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    letter-spacing: 1px;
    background-color: var(--bg-primary);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .hero-title { font-size: 32px; }
    .grid-gallery { grid-template-columns: repeat(auto-fill, minmax(100%, 1fr)); gap: 20px; }
    .art-grid { column-count: 1; }
    nav { padding: 0 10px; }
    nav a { margin: 0 15px; font-size: 14px; }
}