/* 秀人官方门户V2 - 暖色杂志风 */

/* ============ 变量定义 ============ */
:root {
    --primary: #dc2626;
    --primary-dark: #b91c1c;
    --primary-light: #ef4444;
    --secondary: #f97316;
    --accent: #fbbf24;
    --bg-primary: #fafaf9;
    --bg-secondary: #fef3c7;
    --bg-white: #ffffff;
    --text-primary: #1c1917;
    --text-secondary: #44403c;
    --text-muted: #78716c;
    --border: #e7e5e4;
    --shadow: 0 2px 12px rgba(220, 38, 38, 0.06);
    --radius: 4px;
}

/* ============ 基础样式 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: Georgia, 'Times New Roman', 'PingFang SC', 'Microsoft YaHei', serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.85;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }

/* ============ 头部导航 ============ */
.header {
    background: var(--bg-white);
    border-bottom: 2px solid var(--text-primary);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 0;
    border-right: 1px solid var(--border);
    padding-right: 1.5rem;
}
.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--text-primary);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    font-weight: 400;
    font-family: Georgia, serif;
}
.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: Georgia, serif;
    letter-spacing: 0.05em;
}
.nav { display: flex; align-items: center; gap: 0; }
.nav a {
    color: var(--text-secondary);
    font-family: Georgia, serif;
    font-size: 0.9rem;
    padding: 1rem 1.5rem;
    border-left: 1px solid var(--border);
    letter-spacing: 0.03em;
    font-weight: 400;
}
.nav a:first-child { border-left: none; }
.nav a:hover { color: var(--primary); background: var(--bg-secondary); }

/* ============ 主视觉Banner ============ */
.hero {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 4rem 0 3rem;
}
.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.hero-text {}
.hero-eyebrow {
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    font-family: Arial, sans-serif;
}
.hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-family: Georgia, serif;
}
.hero-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.hero-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.hero-tag {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--border);
    font-family: Arial, sans-serif;
}
.hero-image {
    position: relative;
}
.hero-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}
.hero-image::after {
    content: 'Featured';
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: Arial, sans-serif;
}

/* ============ 主内容区域 ============ */
.main { max-width: 1200px; margin: 0 auto; padding: 3rem 1.5rem; }

/* 分割线标题 */
.section-divider {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: Georgia, serif;
    white-space: nowrap;
}
.section-line {
    flex: 1;
    height: 1px;
    background: var(--text-primary);
}

/* 横向滚动画廊 - 完全不同布局 */
.gallery-scroll {
    margin-bottom: 4rem;
    overflow: hidden;
}
.gallery-scroll .gallery-row {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.gallery-scroll .gallery-row::-webkit-scrollbar { height: 4px; }
.gallery-scroll .gallery-row::-webkit-scrollbar-track { background: var(--bg-secondary); }
.gallery-scroll .gallery-row::-webkit-scrollbar-thumb { background: var(--primary); }

.gallery-card {
    flex: 0 0 320px;
    background: var(--bg-white);
    scroll-snap-align: start;
    transition: box-shadow 0.3s;
    border: 1px solid var(--border);
}
.gallery-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.gallery-card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}
.gallery-card-info {
    padding: 1rem;
}
.gallery-card-num {
    font-size: 0.7rem;
    color: var(--primary);
    font-family: Arial, sans-serif;
    margin-bottom: 0.3rem;
}
.gallery-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: Georgia, serif;
}

/* 网格画廊 - 大小不一 */
.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 1rem;
    margin-bottom: 4rem;
}
.masonry-item {
    overflow: hidden;
    position: relative;
}
.masonry-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
}
.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.masonry-item:hover img { transform: scale(1.05); }
.masonry-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
}
.masonry-overlay span {
    font-size: 0.85rem;
    font-family: Georgia, serif;
}

/* 文章列表 - 左侧图右侧文 */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.article-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border);
    padding: 1.5rem;
    transition: box-shadow 0.3s;
}
.article-item:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.08); }
.article-item img {
    width: 200px;
    height: 150px;
    object-fit: cover;
}
.article-content {}
.article-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-family: Arial, sans-serif;
}
.article-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    font-family: Georgia, serif;
    line-height: 1.4;
}
.article-title:hover { color: var(--primary); }
.article-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* 引言区块 */
.quote-block {
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary);
    padding: 2rem;
    margin: 3rem 0;
    font-family: Georgia, serif;
}
.quote-block p {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1rem;
}
.quote-block p:last-child { margin-bottom: 0; font-style: normal; font-size: 0.9rem; color: var(--text-muted); }

/* 关键词 */
.keywords-section {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.keywords-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    font-family: Arial, sans-serif;
}
.keywords-list { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.keywords-list a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.4rem 1rem;
    border: 1px solid var(--border);
    background: var(--bg-white);
    font-family: Georgia, serif;
}
.keywords-list a:hover { border-color: var(--primary); color: var(--primary); }

/* ============ 页脚 ============ */
.footer {
    background: var(--text-primary);
    color: rgba(255,255,255,0.8);
    padding: 3rem 1.5rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer h3 {
    font-size: 1rem;
    color: white;
    margin-bottom: 1rem;
    font-family: Georgia, serif;
    font-weight: 400;
}
.footer p { font-size: 0.85rem; line-height: 1.7; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.85rem; }
.footer-links a:hover { color: white; }
.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; }
    .gallery-masonry { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
    .masonry-item:first-child { grid-column: span 2; grid-row: span 1; }
    .masonry-item { aspect-ratio: 4/3; }
}
@media (max-width: 768px) {
    .header-inner { flex-direction: column; }
    .logo { border-right: none; padding-right: 0; border-bottom: 1px solid var(--border); width: 100%; justify-content: center; }
    .nav { width: 100%; justify-content: center; flex-wrap: wrap; }
    .nav a { padding: 0.8rem 1rem; }
    .article-item { grid-template-columns: 1fr; }
    .article-item img { width: 100%; height: 200px; }
    .gallery-card { flex: 0 0 260px; }
    .footer-main { grid-template-columns: 1fr; }
}
