/* =========================================================
   gvpo.org — 地球村和平组织 Global Village Peace Organization
   纯静态中文站；页面由 _build/build.py 生成
   ========================================================= */
:root {
    --primary-color: #1f4e79;   /* 联合国蓝（深） */
    --primary-dark: #163a5c;
    --accent-color: #c9a24a;    /* 橄榄枝金 */
    --olive: #5f7a3a;
    --dark-color: #14243a;
    --ink: #22303f;
    --muted: #5d6b7a;
    --paper: #faf8f3;
    --sky: #eaf1f8;
    --line: #e2e6ea;
    --white: #ffffff;
    --radius: 10px;
    --shadow: 0 6px 24px rgba(20, 36, 58, .08);
    --transition: all .3s ease;
    --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
    --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.85;
    color: var(--ink);
    background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-color); }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--dark-color); line-height: 1.4; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 10px; top: 10px; z-index: 999; background: #fff; padding: 8px 12px; }

/* ---------- 顶部信息条 ---------- */
.topbar { background: var(--dark-color); color: rgba(255,255,255,.8); font-size: 14px; }
.topbar .container { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: flex-end; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: rgba(255,255,255,.85); text-decoration: none; }
.topbar a:hover { color: var(--accent-color); }

/* ---------- 页头 / 导航 ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.logo a { display: flex; align-items: center; gap: 12px; color: var(--primary-color); text-decoration: none; transition: opacity .3s; }
.logo a:hover { opacity: .8; }
.logo svg { flex: 0 0 44px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-family: var(--serif); font-size: 21px; color: var(--dark-color); letter-spacing: 1px; }
.logo-text small { font-size: 11.5px; color: var(--muted); letter-spacing: .5px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a { display: block; padding: 8px 12px; color: var(--ink); text-decoration: none; font-size: 15.5px; border-radius: 6px; transition: var(--transition); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--primary-color); background: var(--sky); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; width: 44px; height: 40px; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--dark-color); margin: 4px auto; transition: var(--transition); }

/* ---------- 首页大图 ---------- */
.hero {
    position: relative;
    color: #fff;
    background: radial-gradient(ellipse at 75% 30%, rgba(201,162,74,.22), transparent 55%),
                linear-gradient(135deg, #14243a 0%, #1f4e79 60%, #2b6a8f 100%);
    overflow: hidden;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; padding-top: 80px; padding-bottom: 80px; }
.hero-eyebrow { display: inline-block; font-size: 14px; letter-spacing: 2px; color: var(--accent-color); border: 1px solid rgba(201,162,74,.6); border-radius: 30px; padding: 4px 14px; margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: clamp(30px, 4.6vw, 48px); margin-bottom: .35em; }
.hero h1 small { display: block; font-family: var(--sans); font-size: .4em; font-weight: 400; letter-spacing: 1px; color: rgba(255,255,255,.75); margin-top: 8px; }
.hero p.lead { font-size: 18.5px; color: rgba(255,255,255,.9); max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-globe { justify-self: center; width: 100%; max-width: 320px; opacity: .95; }

/* ---------- 按钮 ---------- */
.btn { display: inline-block; padding: 12px 26px; border-radius: 40px; font-size: 16px; text-decoration: none; transition: var(--transition); border: 2px solid transparent; cursor: pointer; font-family: inherit; }
.btn-gold { background: var(--accent-color); color: var(--dark-color); font-weight: 600; }
.btn-gold:hover { background: #d8b45c; color: var(--dark-color); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--dark-color); }
.btn-primary { background: var(--primary-color); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { border-color: var(--primary-color); color: var(--primary-color); }
.btn-outline:hover { background: var(--primary-color); color: #fff; }

/* ---------- 通用区块 ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--paper); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head .kicker { display: block; font-size: 14px; letter-spacing: 3px; color: var(--olive); margin-bottom: 6px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 34px); }
.section-head p { color: var(--muted); }

/* 宗旨三步 */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); }
.pillar .num { font-family: var(--serif); font-size: 40px; color: var(--accent-color); line-height: 1; }
.pillar h3 { font-size: 20px; margin: 12px 0 8px; }
.pillar p { color: var(--muted); margin: 0; font-size: 16px; }

/* 作者简介 */
.author-block { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: center; }
.author-photo img { border-radius: var(--radius); box-shadow: var(--shadow); }
.author-block .role { color: var(--olive); font-size: 15px; letter-spacing: 1px; margin-bottom: 4px; }
.author-block h2 { font-size: 32px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; padding: 0; list-style: none; }
.tags li { background: var(--sky); color: var(--primary-color); font-size: 14px; padding: 4px 12px; border-radius: 20px; }

/* 书籍 */
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.book-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: var(--transition); }
.book-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.book-card a.cover { display: block; background: #f3f3f1; }
.book-card .body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.book-card h3 { font-size: 20px; margin-bottom: 4px; }
.book-card h3 a { color: var(--dark-color); text-decoration: none; }
.book-card .meta { color: var(--muted); font-size: 14.5px; margin-bottom: 12px; }
.price { font-family: var(--serif); font-size: 22px; color: #a3311f; font-weight: 700; }
.book-card .row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.book-card .row a { font-size: 15px; }

/* 文章列表 */
.post-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.post-card { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--primary-color); border-radius: var(--radius); padding: 24px 26px; transition: var(--transition); }
.post-card:hover { box-shadow: var(--shadow); }
.post-card .cat { font-size: 13.5px; color: var(--olive); letter-spacing: 1px; }
.post-card h3 { font-size: 20px; margin: 6px 0 8px; }
.post-card h3 a { color: var(--dark-color); text-decoration: none; }
.post-card h3 a:hover { color: var(--primary-color); }
.post-card p { color: var(--muted); font-size: 15.5px; margin-bottom: 10px; }
.post-card .more { font-size: 15px; text-decoration: none; }

/* 引言 */
.quote-band { background: var(--dark-color); color: #fff; text-align: center; }
.quote-band blockquote { margin: 0 auto; max-width: 860px; font-family: var(--serif); font-size: clamp(20px, 2.6vw, 27px); line-height: 1.7; }
.quote-band cite { display: block; margin-top: 16px; font-style: normal; font-family: var(--sans); font-size: 15px; color: var(--accent-color); }

/* ---------- 内页标题 ---------- */
.page-hero { background: linear-gradient(135deg, #14243a, #1f4e79); color: #fff; padding: 54px 0 46px; }
.page-hero h1 { color: #fff; font-size: clamp(26px, 3.8vw, 38px); margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,.82); margin: 0; }
.breadcrumb { font-size: 14px; margin-bottom: 12px; color: rgba(255,255,255,.7); }
.breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-color); }
.breadcrumb span { margin: 0 6px; }
.post-meta { font-size: 14.5px; color: rgba(255,255,255,.78); }

/* ---------- 正文 ---------- */
.prose { font-size: 18px; line-height: 2; }
.prose h2 { font-size: 23px; margin-top: 1.6em; padding-left: 12px; border-left: 4px solid var(--accent-color); }
.prose h3 { font-size: 20px; margin-top: 1.4em; }
.prose blockquote { margin: 1.4em 0; padding: 14px 22px; background: var(--paper); border-left: 4px solid var(--olive); }
.prose ol, .prose ul { padding-left: 1.4em; }
.prose.poem { text-align: center; font-family: var(--serif); line-height: 1.9; }
.prose.poem p { margin: 0 0 .25em; }
.prose[lang="en"] { font-size: 17.5px; line-height: 1.8; }
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 50px; align-items: start; }
.sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 22px; }
.side-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.side-box h3 { font-size: 18px; }
.side-box ul { list-style: none; padding: 0; margin: 0; }
.side-box li { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 15.5px; line-height: 1.6; }
.side-box li:last-child { border-bottom: 0; }
.side-box li a { text-decoration: none; color: var(--ink); }
.side-box li a:hover { color: var(--primary-color); }
.side-box p { font-size: 15px; color: var(--muted); }
.article-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15.5px; }
.article-nav a { text-decoration: none; max-width: 48%; }
.note { background: var(--sky); border-radius: var(--radius); padding: 16px 20px; font-size: 15.5px; color: var(--ink); }

/* 书籍详情 */
.book-detail { display: grid; grid-template-columns: 420px 1fr; gap: 50px; align-items: start; }
.book-detail .cover img { border-radius: var(--radius); box-shadow: var(--shadow); }
.book-detail .price { font-size: 30px; display: block; margin: 6px 0 18px; }
.book-facts { list-style: none; padding: 0; margin: 0 0 24px; }
.book-facts li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.order-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 26px; }
.order-box h2 { font-size: 20px; }
.order-box p { margin-bottom: 12px; font-size: 16px; }
.order-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* 关于页 */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.photo-pair figure { margin: 0; }
.photo-pair img { border-radius: var(--radius); }
.photo-pair figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; text-align: center; }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.info-card h3 { font-size: 17px; margin-bottom: 6px; color: var(--olive); }
.info-card p, .info-card a { margin: 0; font-size: 16.5px; word-break: break-word; }

/* 联系表单 */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list strong { display: block; color: var(--olive); font-size: 14.5px; font-weight: 600; }
.contact-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: grid; gap: 14px; }
.contact-form label { font-size: 15px; font-weight: 600; color: var(--dark-color); display: block; margin-bottom: 4px; }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%; padding: 12px 14px; border: 1px solid #cfd6dd; border-radius: 8px; font-size: 16px; font-family: inherit; background: #fff; color: var(--ink);
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid rgba(31,78,121,.25); border-color: var(--primary-color); }
.contact-form button { justify-self: start; border: 0; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* 404 */
.notfound { text-align: center; padding: 100px 0; }
.notfound .code { font-family: var(--serif); font-size: 80px; color: var(--accent-color); line-height: 1; }

/* ---------- 页脚 ---------- */
footer { background: var(--dark-color); color: var(--white); padding: 3rem 0 1rem; margin-top: 0; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-section h3 { color: var(--white); margin-bottom: 1rem; font-size: 1.2rem; }
.footer-section p, .footer-section a { color: rgba(255, 255, 255, 0.8); line-height: 1.8; font-size: 15.5px; }
.footer-section p { margin-bottom: .6rem; }
.footer-section a { text-decoration: none; }
.footer-section a:hover { color: var(--accent-color); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.6); font-size: 14.5px; }
.footer-bottom p { margin-bottom: 0.5rem; }
.footer-partner { margin-top: 1rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.7); }
.footer-partner a { color: var(--accent-color); text-decoration: none; transition: var(--transition); }
.footer-partner a:hover { color: var(--white); }

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
    .nav-toggle { display: block; }
    .main-nav { position: fixed; top: 0; right: 0; height: 100dvh; width: min(300px, 82vw); background: #fff; box-shadow: -8px 0 30px rgba(0,0,0,.15); transform: translateX(105%); transition: transform .3s ease; padding: 84px 20px 20px; overflow-y: auto; z-index: 99; }
    .main-nav.open { transform: none; }
    .main-nav ul { flex-direction: column; }
    .main-nav a { padding: 12px 14px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
    .nav-toggle { position: relative; z-index: 101; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    .article-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .book-detail { grid-template-columns: 340px 1fr; gap: 34px; }
}
@media (max-width: 820px) {
    .hero .container { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; }
    .hero-globe { max-width: 140px; order: -1; }
    .pillars, .info-cards { grid-template-columns: 1fr; }
    .author-block, .about-grid, .contact-grid, .book-detail { grid-template-columns: 1fr; }
    .author-photo { max-width: 360px; margin: 0 auto; }
    .book-detail .cover { max-width: 420px; }
    .book-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .post-list { grid-template-columns: 1fr; }
    .section { padding: 56px 0; }
}
@media (max-width: 520px) {
    body { font-size: 16px; }
    .container { padding: 0 16px; }
    .topbar .container { justify-content: center; font-size: 13px; }
    .logo-text strong { font-size: 18px; }
    .logo-text small { font-size: 10px; }
    .book-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .book-card .body { padding: 12px 12px 16px; }
    .book-card h3 { font-size: 16.5px; }
    .book-card .row { flex-direction: column; align-items: flex-start; }
    .price { font-size: 19px; }
    .prose { font-size: 17px; }
    .form-row-2 { grid-template-columns: 1fr; }
    .contact-form { padding: 20px; }
    .article-nav { flex-direction: column; }
    .article-nav a { max-width: 100%; }
}

/* ---------- 2026-10 新增：诗集全文、作者简介、荣誉与报道 ---------- */
.prose.poem p.stanza { margin: 0 0 1.4em; }
.prose.poem h3, .prose.poem h4 { text-align: center; color: var(--olive); margin: 1.6em 0 .6em; }
.prose.poem h4 { font-size: 17px; }
.prose .poem-note, .prose.poem .poem-note { text-align: left; font-family: var(--sans); font-size: 15px; line-height: 1.8; color: var(--muted); background: var(--paper); border-left: 3px solid var(--accent-color); padding: 8px 14px; margin: 0 0 1em; }
.prose .author-note, .prose.poem .author-note { text-align: left; font-family: var(--sans); font-size: 15px; line-height: 1.8; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 1.6em; }
.prose.poem .poem-date, .prose .sign { text-align: right; font-family: var(--serif); margin-top: 1em; }
.prose.poem .afterword { text-align: left; font-family: var(--sans); }
.book-text h2 { text-align: center; border-left: 0; padding-left: 0; font-size: 26px; margin-top: 2em; padding-top: 1em; border-top: 1px solid var(--line); }
.book-part { margin-top: 1.2em; }
.book-toc { position: sticky; top: 72px; z-index: 5; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; margin: 24px 0; font-family: var(--sans); font-size: 15px; text-align: left; line-height: 1.9; }
.book-toc a { text-decoration: none; }
.read-full { margin: 24px 0; }
.lead-figure, .letter-figure { margin: 0 0 26px; }
.lead-figure img, .letter-figure img { border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 auto; }
.lead-figure img { max-height: 480px; width: auto; }
.lead-figure figcaption, .letter-figure figcaption { text-align: center; font-size: 14px; color: var(--muted); margin-top: 8px; }
.bio-head { display: grid; grid-template-columns: 180px 1fr; gap: 26px; align-items: start; margin-bottom: 26px; }
.bio-head img { border-radius: var(--radius); box-shadow: var(--shadow); }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--accent-color); }
.timeline li { position: relative; padding: 0 0 18px 22px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 9px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--primary-color); }
.timeline strong { display: block; color: var(--primary-color); font-family: var(--serif); }
.letters { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.letter-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.letter-card h3 { font-size: 20px; }
.letter-text { font-size: 16px; line-height: 1.9; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery.papers img { aspect-ratio: auto; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.gallery figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
@media (max-width: 820px) {
    .letters { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr 1fr; }
    .bio-head { grid-template-columns: 120px 1fr; gap: 16px; }
}
@media (max-width: 520px) {
    .gallery { grid-template-columns: 1fr; }
    .bio-head { grid-template-columns: 1fr; }
    .bio-head img { max-width: 180px; }
    .book-toc { top: 64px; font-size: 14px; }
}
