/* 陈伯吹儿童文学发展基金会网站 · 公共样式（2026-11 改版） */
@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@500;700&family=Noto+Sans+SC:wght@400;500;700&display=swap");

:root {
  --ink: #1E2347;
  --muted: #5B607A;
  --indigo: #2A3893;
  --indigo-dark: #1B2566;
  --accent: #C2500A;
  --paper: #F7F4EE;
  --card: #FFFFFF;
  --line: #E4DFD3;
  --line-soft: #EEE9DE;
  --night: #1E2347;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.8; }
img { max-width: 100%; height: auto; }
a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--indigo-dark); text-decoration: underline; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.4; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.eyebrow { font-size: 13px; color: var(--accent); font-weight: 700; letter-spacing: .1em; }

/* ---------- 页头 ---------- */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-header .bar { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 24px; }
.site-header .logo { display: flex; align-items: center; gap: 8px; color: #2A3893; flex: 0 0 auto; }
.site-header .logo:hover { text-decoration: none; }
.site-header .logo .logo-mark { display: block; width: 27px; height: 48px; overflow: hidden; flex: 0 0 auto; }
.site-header .logo img { height: 48px; width: auto; max-width: none; display: block; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; font-weight: 700; white-space: nowrap; }
.logo-text .l1 { font-size: 15px; letter-spacing: .14em; }
.logo-text .l2 { font-size: 15px; letter-spacing: .02em; }
.logo-text .l3 { font-size: 7.5px; font-weight: 600; letter-spacing: .04em; line-height: 1.25; margin-top: 2px; }
.site-nav { display: flex; gap: 2px; flex: 1 1 auto; flex-wrap: wrap; }
.site-nav > .item { position: relative; }
.site-nav > .item > a, .site-nav > .item > button {
  display: block; padding: 12px 14px; color: var(--ink); background: none; border: 0; font: inherit; cursor: pointer;
  border-bottom: 3px solid transparent;
}
.site-nav > .item > a:hover, .site-nav > .item > button:hover { color: var(--indigo); text-decoration: none; }
.site-nav > .item.active > a, .site-nav > .item.active > button { color: var(--indigo); font-weight: 700; border-bottom-color: var(--accent); }
.site-nav .panel {
  display: none; position: absolute; left: 0; top: 100%; min-width: 520px; background: var(--card);
  border: 1px solid var(--line); border-radius: 0 0 10px 10px; box-shadow: 0 12px 24px rgba(30,35,71,.10);
  padding: 22px 24px; gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr));
}
.site-nav .item.open .panel, .site-nav .item:hover .panel { display: grid; }
.site-nav .panel .group-title { font-family: var(--serif); font-weight: 700; font-size: 17px; }
.site-nav .panel .group-note { font-size: 13px; color: var(--muted); margin-bottom: 8px; line-height: 1.6; }
.site-nav .panel a { display: block; padding: 4px 0; }
.site-header .tools { display: flex; align-items: center; gap: 14px; }
.site-header .lang { font-size: 14px; color: var(--muted); }
.btn { display: inline-block; padding: 10px 18px; border-radius: 6px; font-weight: 700; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.btn:hover { text-decoration: none; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #A34308; color: #fff; }
.btn-indigo { background: var(--indigo); color: #fff; }
.btn-indigo:hover { background: var(--indigo-dark); color: #fff; }
.btn-line { background: none; color: var(--ink); border: 1px solid #D5CFC1; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid #D5CFC1; border-radius: 8px; background: var(--card); cursor: pointer; align-items: center; justify-content: center; }

@media (max-width: 960px) {
  .site-header .bar { flex-wrap: wrap; gap: 12px; }
  .site-header .logo .logo-mark { width: 21px; height: 38px; }
  .site-header .logo img { height: 38px; }
  .logo-text .l1, .logo-text .l2 { font-size: 13px; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .site-header .tools .btn { display: none; }
  .site-nav { display: none; flex-direction: column; flex-basis: 100%; order: 5; padding-bottom: 8px; }
  .site-header.menu-open .site-nav { display: flex; }
  .site-nav > .item > a, .site-nav > .item > button { width: 100%; text-align: left; border-bottom: 1px solid var(--line-soft); }
  .site-nav > .item.active > a, .site-nav > .item.active > button { border-bottom-color: var(--line-soft); }
  .site-nav .item:hover .panel { display: none; }
  .site-nav .panel { position: static; min-width: 0; box-shadow: none; border: 0; padding: 4px 0 8px 14px; grid-template-columns: 1fr; gap: 10px; }
  .site-nav .item.open .panel { display: grid; }
  .site-nav .mobile-cta { display: block; margin-top: 10px; text-align: center; }
}
@media (min-width: 961px) { .site-nav .mobile-cta { display: none; } }

/* ---------- 版块 ---------- */
.page-head { padding: 44px 0 12px; }
.page-head .crumbs { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.page-head h1 { font-size: 38px; margin: 0 0 10px; }
.page-head p { margin: 0; max-width: 780px; color: var(--muted); }
.section { padding-top: 36px; padding-bottom: 36px; }
.section h2 { font-size: 28px; margin: 0 0 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.card-pad { padding: 28px; }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-sm { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
a.card { display: block; color: var(--ink); }
a.card:hover { text-decoration: none; border-color: #C9C2B2; }
.split { display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.split > .main { flex: 1 1 520px; min-width: 0; }
.split > .side { flex: 1 1 300px; min-width: 0; }

/* 首屏 */
.hero { background: var(--indigo); color: #fff; }
.hero .inner { max-width: 1200px; margin: 0 auto; padding: 64px 24px; display: flex; gap: 48px; align-items: center; flex-wrap: wrap; }
.hero .quote { flex: 1 1 520px; min-width: 0; }
.hero .label { font-size: 14px; letter-spacing: .2em; color: #C9CEF2; margin-bottom: 18px; }
.hero blockquote { margin: 0; font-family: var(--serif); font-size: 30px; line-height: 1.65; font-weight: 500; }
.hero cite { display: block; margin-top: 18px; font-style: normal; color: #C9CEF2; }
.hero .sig-cite { display: flex; align-items: center; gap: 10px; }
.hero .sig-cite .sig { height: 52px; width: auto; display: block; }
.hero .sig-cite .sig-en { font-size: 14px; }
.calli { margin: 0 0 20px; text-align: center; }
.calli img { display: block; width: 100%; height: auto; }
.calli figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.hero .art { flex: 0 1 300px; background: #fff; border-radius: 12px; padding: 14px; margin: 0; }
.hero .art figcaption { margin-top: 8px; text-align: center; font-size: 13px; color: var(--muted, #6B6B6B); letter-spacing: .05em; }
@media (max-width: 640px) { .hero .inner { padding: 36px 20px; gap: 24px; } .hero blockquote { font-size: 21px; } .hero .art { max-width: 200px; } .page-head h1 { font-size: 30px; } .container { padding: 0 16px; } }

/* 列表 */
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 16px 22px; border-bottom: 1px solid var(--line-soft); display: flex; gap: 18px; }
.list li:last-child { border-bottom: 0; }
.list .date { color: var(--muted); font-size: 14px; flex: 0 0 100px; }
@media (max-width: 640px) { .list li { flex-direction: column; gap: 2px; } .list .date { flex: none; } }

/* 旧内容（迁移页面）的通用排版 */
.prose { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 32px; }
.prose p { margin: 0 0 14px; }
.prose img { display: block; margin: 16px auto; border-radius: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 12px 0 24px; font-size: 15px; }
.prose th, .prose td { border-bottom: 1px solid var(--line-soft); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose thead td, .prose thead th { font-weight: 700; background: #F3EFE6; }
.prose .table-wrap { overflow-x: auto; }
.prose h2, .prose h3 { margin: 28px 0 12px; }
.prose .sub_title, .prose .title { font-family: var(--serif); font-size: 22px; font-weight: 700; margin: 28px 0 10px; }
.prose .gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.prose .gallery img { margin: 0; width: 100%; height: 220px; object-fit: cover; }
@media (max-width: 640px) { .prose { padding: 20px; } }

/* 作品卡（书目、展品） */
.book { overflow: hidden; display: flex; flex-direction: column; }
.book .cover { position: relative; height: 190px; color: #fff; display: flex; align-items: center; justify-content: center; }
.book .cover .vt { writing-mode: vertical-rl; font-family: var(--serif); font-size: 22px; max-height: 160px; overflow: hidden; font-weight: 700; letter-spacing: .15em; }
.book .cover .by { position: absolute; left: 14px; bottom: 12px; font-size: 13px; opacity: .85; }
.book .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
.book .title { font-family: var(--serif); font-size: 18px; font-weight: 700; }
.book .meta { font-size: 14px; color: var(--muted); }
.book .act { margin-top: auto; padding-top: 8px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { padding: 8px 16px; border-radius: 999px; border: 1px solid #D5CFC1; background: var(--card); color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; }
.chip.on { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.thumb { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: #EEE9DE; }

/* 阅读器 */
.reader { background: var(--night); color: #fff; min-height: 100vh; }
.reader .stage { display: flex; gap: 16px; justify-content: center; padding: 16px; }
.reader .stage img { max-height: calc(100vh - 170px); width: auto; background: #F2EBDD; border-radius: 3px; }
.reader .ctrl { display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; padding: 10px 16px 24px; }
.reader .ctrl .btn { background: #fff; color: var(--ink); }
.reader .ctrl .btn-ghost { background: none; color: #fff; border: 1px solid #6F76A8; }
.reader .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid #343a66; flex-wrap: wrap; }
.reader .top a { color: #C9CEF2; }
.overlay { position: fixed; inset: 0; background: rgba(20,24,51,.92); z-index: 50; display: none; overflow-y: auto; }
.overlay.show { display: block; }
.overlay .box { max-width: 900px; margin: 40px auto; padding: 0 16px; color: #fff; }
.overlay .box img { display: block; margin: 0 auto 16px; max-height: 80vh; width: auto; }
.overlay .close { position: fixed; top: 12px; right: 16px; }
.reading { background: #FFFDF8; color: var(--ink); border-radius: 10px; padding: 32px; white-space: pre-wrap; font-size: 17px; line-height: 2; }

/* 页脚 */
.site-footer { background: var(--night); color: #C9CEF2; margin-top: 48px; }
.site-footer .inner { max-width: 1200px; margin: 0 auto; padding: 36px 24px; display: flex; gap: 32px; flex-wrap: wrap; justify-content: space-between; font-size: 14px; line-height: 1.9; }
.site-footer a { color: #fff; }
.site-footer .name { color: #fff; font-weight: 700; font-size: 16px; }
.to-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; background: var(--indigo); color: #fff; display: none; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(30,35,71,.25); }
.to-top.show { display: flex; }
.to-top:hover { text-decoration: none; color: #fff; }
.notice { padding: 14px 18px; border-radius: 10px; background: #FFF7EC; border: 1px solid #F1D9B8; color: #6B3A08; font-size: 15px; }

/* 理论奖获奖名单 */
.award-ed { font-size: 18px; margin: 4px 0 12px; color: var(--indigo); }
.award-group { margin-bottom: 18px; }
.award-name { font-weight: 700; color: var(--accent); font-size: 15px; margin-bottom: 6px; }
.award-list { list-style: none; margin: 0; padding: 0; }
.award-list li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.award-list li:last-child { border-bottom: 0; }
.award-list .t { flex: 1 1 320px; }
.award-list .cn { flex: 1 1 100%; order: 3; font-size: 13px; color: var(--muted); }
.award-list .a { color: var(--muted); white-space: nowrap; }
.school-cover { display: block; width: 100%; max-width: 760px; height: auto; border-radius: 12px; margin: 0 0 28px; }
/* 首页动态：滚动区（约 4 条高） */
.ticker { max-height: 236px; overflow: hidden; }
.ticker .list li { padding: 14px 22px; }
/* 动态页：年份分组与分页 */
.news-year { font-size: 22px; margin: 28px 0 12px; color: var(--indigo); }
#news > .news-year:first-child { margin-top: 0; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 28px; }
.pager a, .pager span { min-width: 40px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); text-align: center; background: var(--card); }
.pager a:hover { text-decoration: none; border-color: var(--indigo); }
.pager .cur { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.pager .off { color: #B9B4A8; }
/* 影像栏目 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chips button { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 15px; cursor: pointer; color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.gal-group { margin-bottom: 40px; }
.gal-group h2 { font-size: 22px; margin: 0 0 14px; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; align-items: start; }
.gal-grid figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: zoom-in; }
.gal-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; background: #EEE9DE; }
.gal-grid figcaption { padding: 8px 12px 10px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.gal-grid figure:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.lb { position: fixed; inset: 0; background: rgba(15,18,40,.95); z-index: 60; display: none; align-items: center; justify-content: center; flex-direction: column; padding: 56px 64px 24px; }
.lb.show { display: flex; }
.lb img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; box-shadow: 0 4px 30px rgba(0,0,0,.5); }
.lb .cap { color: #E6E8F7; margin-top: 14px; text-align: center; font-size: 15px; max-width: 900px; }
.lb .cap .n { color: #9AA0C8; margin-left: 10px; font-size: 13px; }
.lb button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 999px; width: 46px; height: 46px; font-size: 22px; cursor: pointer; }
.lb button:hover { background: rgba(255,255,255,.25); }
.lb .x { top: 12px; right: 16px; }
.lb .prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb .next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lb { padding: 56px 8px 16px; } .lb .prev, .lb .next { top: auto; bottom: 12px; transform: none; } }
.gal-note { margin: -6px 0 14px; font-size: 15px; max-width: 820px; }
