/* ============================================================
   漫蛙 · 官网样式
   风格：暖米纸感 / 深森林绿杂志风
   ============================================================ */

:root {
    --bg: #F7F5EF;
    --bg-warm: #EDE8DB;
    --bg-card: #FFFFFF;
    --line: #D9D2C0;
    --text: #1F2D1F;
    --text-soft: #5C6B5C;
    --text-faint: #9CA89C;
    --accent: #2D6A4F;
    --accent-bright: #40916C;
    --accent-deep: #1B4332;
    --dark: #1F2D1F;
    --radius: 6px;
    --shadow: 0 4px 20px rgba(31, 45, 31, 0.08);
    --shadow-lg: 0 16px 48px rgba(31, 45, 31, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: "Noto Serif SC", "Songti SC", "SimSun", "PingFang SC", serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ============ 顶部导航 ============ */
.masthead {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247, 245, 239, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.masthead-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand-logo {
    height: 38px; width: 38px;
    border-radius: 8px;
    object-fit: cover;
}
.brand-name {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
}
.nav-links {
    display: flex;
    gap: 28px;
}
.nav-links a {
    font-size: 14px;
    color: var(--text-soft);
    transition: color .2s;
}
.nav-links a:hover { color: var(--accent); }

/* ============ 按钮 ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    transition: all .25s;
}
.btn-small { padding: 9px 20px; font-size: 13px; }
.btn-accent {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(45, 106, 79, 0.3);
}
.btn-accent:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn-light {
    background: #fff;
    color: var(--accent);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18); }

/* ============ 封面 ============ */
.cover {
    padding: 80px 0 60px;
    background:
        radial-gradient(circle at 85% 20%, rgba(64, 145, 108, 0.1), transparent 55%),
        var(--bg);
}
.cover-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 32px;
    text-align: center;
}
.cover-kicker {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 5px;
    color: var(--accent);
    margin-bottom: 20px;
    font-family: Georgia, serif;
}
.cover-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 24px;
    letter-spacing: 2px;
}
.cover-desc {
    font-size: 16px;
    color: var(--text-soft);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 2;
}
.cover-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.cover-note { font-size: 13px; color: var(--text-faint); }
.cover-visual { margin-top: 20px; }
.cover-img {
    width: 280px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* ============ 通用 Section ============ */
section { padding: 80px 0; }
.section-num {
    display: block;
    font-size: 13px;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 8px;
    font-family: Georgia, serif;
}
.section-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

/* ============ 本期主视觉 ============ */
.editorial { background: var(--bg-warm); }
.editorial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.editorial-img img {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}
.editorial-text h3 {
    font-size: 24px;
    margin-bottom: 16px;
    line-height: 1.5;
}
.editorial-text p {
    font-size: 15px;
    color: var(--text-soft);
    margin-bottom: 14px;
    line-height: 2;
}
.text-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--accent);
    font-weight: 600;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
    transition: all .2s;
}
.text-link:hover { color: var(--accent-deep); border-color: var(--accent-deep); }

/* ============ 三栏页面 ============ */
.pages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.page-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .3s, box-shadow .3s;
}
.page-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.page-num {
    display: block;
    font-size: 48px;
    font-weight: 800;
    color: var(--line);
    line-height: 1;
    padding: 20px 20px 0;
    font-family: Georgia, serif;
}
.page-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    margin: 10px 0 0;
}
.page-card h4 {
    font-size: 18px;
    padding: 16px 20px 6px;
}
.page-card p {
    font-size: 14px;
    color: var(--text-soft);
    padding: 0 20px 20px;
    line-height: 1.8;
}

/* ============ CTA ============ */
.cta {
    background: var(--dark);
    color: #fff;
    text-align: center;
    padding: 90px 0;
}
.cta h2 {
    font-size: 34px;
    margin-bottom: 12px;
    letter-spacing: 1px;
}
.cta p {
    font-size: 16px;
    opacity: 0.7;
    margin-bottom: 32px;
}

/* ============ FAQ ============ */
.faq-list { max-width: 720px; }
.faq-list details {
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
}
.faq-list summary {
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 24px;
}
.faq-list summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--accent);
    font-weight: 300;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p {
    font-size: 15px;
    color: var(--text-soft);
    padding-top: 12px;
    line-height: 2;
}

/* ============ 页脚 ============ */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.5);
    padding: 32px 0;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.footer-logo { height: 32px; width: 32px; border-radius: 6px; }
.footer-copy { font-size: 13px; }

/* ============ 滚动渐入 ============ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ 响应式 ============ */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .cover-title { font-size: 34px; }
    .editorial-grid { grid-template-columns: 1fr; gap: 32px; }
    .pages-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 560px) {
    .cover-title { font-size: 28px; }
    .section-title { font-size: 26px; }
    .cover-img { width: 220px; }
    .page-card img { height: 260px; }
}
