@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@500;700;900&family=Noto+Sans+SC:wght@400;500;700&display=swap');

:root {
  --sand: #F3EBDD;
  --sand-deep: #EADCC5;
  --coffee: #4A3222;
  --coffee-soft: #6B4E36;
  --amber: #C8862A;
  --amber-deep: #A96B18;
  --ink: #33261B;
  --paper: #FBF6EC;
  --serif: 'Noto Serif SC', serif;
  --sans: 'Noto Sans SC', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.75;
  background:
    radial-gradient(1100px 500px at 85% -5%, rgba(200,134,42,.14), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(74,50,34,.08), transparent 55%),
    linear-gradient(180deg, var(--sand) 0%, #F6EFE2 40%, var(--paper) 100%);
  background-attachment: fixed;
}

.page-shell { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- 刊头 ---------- */
.masthead {
  background: linear-gradient(180deg, #3E2A1B 0%, var(--coffee) 100%);
  border-bottom: 4px solid var(--amber);
  position: relative;
}
.masthead::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.02) 0 2px, transparent 2px 6px);
  pointer-events: none;
}
.mast-inner {
  max-width: 1080px; margin: 0 auto;
  padding: 22px 24px 18px;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px;
  position: relative; z-index: 1;
}
.mast-left { display: flex; flex-direction: column; gap: 4px; }
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: #F7EFDF;
}
.brand-seal {
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--amber);
  color: #2E1F12;
  font-family: var(--serif); font-weight: 900; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 2px rgba(46,31,18,.35);
}
.brand-text {
  font-family: var(--serif); font-weight: 900; font-size: 30px; letter-spacing: 2px;
}
.tagline {
  color: #D8C3A0; font-size: 13px; letter-spacing: 1px;
  padding-left: 58px;
}
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  color: #E9DAC0; text-decoration: none; font-size: 15px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(233,218,192,.25);
  transition: background .2s, color .2s;
}
.nav a:hover { background: rgba(200,134,42,.25); color: #fff; }
.nav a.active { background: var(--amber); color: #2E1F12; border-color: var(--amber); font-weight: 700; }

/* ---------- 导语 ---------- */
.lede { position: relative; }
.lede-inner {
  max-width: 1080px; margin: 0 auto; padding: 56px 24px 40px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end;
}
.lede-kicker {
  font-size: 14px; color: var(--amber-deep); font-weight: 700; letter-spacing: 3px;
  margin-bottom: 14px;
}
.lede-title {
  font-family: var(--serif); font-weight: 900; font-size: clamp(30px, 5vw, 46px);
  line-height: 1.3; color: var(--coffee); margin-bottom: 18px;
}
.lede-text { max-width: 46ch; color: var(--coffee-soft); font-size: 16px; }
.lede-stats {
  display: flex; flex-direction: column; gap: 14px;
  border-left: 3px solid var(--amber); padding-left: 22px;
}
.stat strong {
  display: block; font-family: var(--serif); font-size: 30px; color: var(--amber-deep); line-height: 1.2;
}
.stat span { font-size: 13px; color: var(--coffee-soft); }
.lede-band {
  height: 14px;
  background: repeating-linear-gradient(90deg, var(--amber) 0 40px, var(--coffee) 40px 44px, var(--sand-deep) 44px 84px, var(--amber-deep) 84px 88px);
}

/* ---------- 话题 ---------- */
.topics { padding: 26px 24px 6px; }
.topics-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.topic-chip {
  font-size: 13px; color: var(--coffee);
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(74,50,34,.18);
  border-radius: 999px; padding: 5px 16px;
  box-shadow: 0 1px 0 rgba(74,50,34,.08);
}

/* ---------- 首页主区 ---------- */
.home-main { flex: 1; max-width: 1080px; width: 100%; margin: 0 auto; padding: 20px 24px 60px; }

.module { margin-top: 44px; }
.module-head {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  border-bottom: 2px solid var(--coffee); padding-bottom: 10px; margin-bottom: 22px;
}
.module-title {
  font-family: var(--serif); font-weight: 900; font-size: 24px; color: var(--coffee);
}
.module-title::before {
  content: ''; display: inline-block; width: 12px; height: 12px;
  background: var(--amber); border-radius: 3px; margin-right: 10px;
  transform: rotate(45deg);
}
.module-sub { font-size: 13px; color: var(--coffee-soft); }

.news-item { list-style: none; }
.news-title a { color: var(--ink); text-decoration: none; }
.news-title a:hover { color: var(--amber-deep); }
.news-sum { color: var(--coffee-soft); font-size: 14px; }
.news-meta { font-size: 12px; color: #9A8266; }
.news-media img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* 模块一：头条图墙 —— 大图 + 三小图 */
.hero-grid {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px;
}
.hero-grid .news-item:first-child {
  grid-row: span 3;
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(74,50,34,.14);
  display: flex; flex-direction: column;
}
.hero-grid .news-item:first-child .news-media { aspect-ratio: 16/9; overflow: hidden; }
.hero-grid .news-item:first-child .news-body { padding: 20px 22px; }
.hero-grid .news-item:first-child .news-title { font-family: var(--serif); font-size: 22px; font-weight: 700; line-height: 1.45; margin-bottom: 10px; }
.hero-grid .news-item:first-child .news-sum { margin-bottom: 12px; }
.hero-grid .news-item:not(:first-child) {
  display: grid; grid-template-columns: 108px 1fr; gap: 14px; align-items: center;
  background: rgba(255,255,255,.7); border-radius: 12px; padding: 10px;
  border: 1px solid rgba(74,50,34,.1);
}
.hero-grid .news-item:not(:first-child) .news-media { aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; }
.hero-grid .news-item:not(:first-child) .news-title { font-size: 15px; font-weight: 700; line-height: 1.5; margin-bottom: 2px; }
.hero-grid .news-item:not(:first-child) .news-sum { display: none; }

/* 模块二：横向图文条 —— 无边框横排 */
.strip-list { display: flex; flex-direction: column; }
.strip-list .news-item {
  display: grid; grid-template-columns: 150px 1fr; gap: 20px;
  padding: 18px 4px; border-bottom: 1px dashed rgba(74,50,34,.25);
  align-items: center;
}
.strip-list .news-item:last-child { border-bottom: none; }
.strip-list .news-media { aspect-ratio: 3/2; border-radius: 10px; overflow: hidden; }
.strip-list .news-title { font-family: var(--serif); font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.strip-list .news-sum { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 62ch; }
.strip-list .news-meta { display: block; margin-top: 6px; }

/* 模块三：杂志双栏 —— 编号式错落 */
.mag-grid {
  column-count: 2; column-gap: 32px;
}
.mag-grid .news-item {
  break-inside: avoid;
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.6));
  border-left: 4px solid var(--amber);
  border-radius: 0 10px 10px 0;
  padding: 16px 18px; margin-bottom: 18px;
  box-shadow: 0 3px 12px rgba(74,50,34,.08);
}
.mag-grid .news-media { display: block; aspect-ratio: 5/3; border-radius: 8px; overflow: hidden; margin-bottom: 12px; }
.mag-grid .news-title { font-family: var(--serif); font-size: 17px; font-weight: 700; line-height: 1.5; margin-bottom: 6px; }
.mag-grid .news-sum { font-size: 13.5px; margin-bottom: 8px; }

/* 模块四：时间线 */
.line-list {
  position: relative;
  padding-left: 26px;
}
.line-list::before {
  content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(180deg, var(--amber), rgba(200,134,42,.15));
}
.line-list .news-item {
  position: relative; padding: 10px 0 14px;
}
.line-list .news-item::before {
  content: ''; position: absolute; left: -25px; top: 18px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--amber);
}
.line-list .news-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.line-list .news-sum { font-size: 13.5px; max-width: 68ch; }
.line-list .news-meta { display: inline-block; margin-top: 4px; background: var(--sand-deep); border-radius: 4px; padding: 1px 8px; }

.more-wrap { text-align: center; margin-top: 50px; }
.more-btn {
  display: inline-block; text-decoration: none;
  background: var(--coffee); color: #F7EFDF;
  padding: 13px 42px; border-radius: 999px; font-size: 15px; font-weight: 700;
  box-shadow: 0 6px 18px rgba(74,50,34,.25);
  transition: background .2s, transform .2s;
}
.more-btn:hover { background: var(--amber-deep); transform: translateY(-2px); }

.err {
  margin-top: 30px; text-align: center;
  background: #FBEDE3; color: #8C4A1E; border: 1px solid #E0B48F;
  border-radius: 10px; padding: 14px 20px; font-size: 14px;
}

/* ---------- 内页 ---------- */
.inner-main { flex: 1; max-width: 860px; width: 100%; margin: 0 auto; padding: 46px 24px 60px; }
.inner-hero { text-align: center; margin-bottom: 36px; }
.inner-hero h1 {
  font-family: var(--serif); font-weight: 900; font-size: 34px; color: var(--coffee); margin-bottom: 10px;
}
.inner-hero p { color: var(--coffee-soft); font-size: 15px; }

.about-paper {
  background: #fff;
  border: 1px solid rgba(74,50,34,.12);
  border-top: 6px solid var(--amber);
  border-radius: 12px;
  padding: 36px 40px;
  box-shadow: 0 8px 26px rgba(74,50,34,.1);
  font-size: 15.5px; color: var(--ink);
}
.about-paper p { margin-bottom: 18px; max-width: 70ch; }
.about-paper p:last-child { margin-bottom: 0; }

.contact-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 24px;
}
.contact-card {
  background: #fff; border-radius: 12px; padding: 22px 20px; text-align: center;
  border: 1px solid rgba(74,50,34,.12);
  box-shadow: 0 4px 14px rgba(74,50,34,.08);
}
.contact-label {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--amber-deep);
  background: rgba(200,134,42,.14); border-radius: 999px; padding: 2px 14px; margin-bottom: 10px;
}
.contact-card p { font-size: 15px; color: var(--ink); word-break: break-all; }
.contact-empty {
  text-align: center; color: var(--coffee-soft); font-size: 14px;
  background: var(--sand-deep); border-radius: 10px; padding: 14px;
}
.contact-note {
  margin-top: 24px; text-align: center; font-size: 13.5px; color: var(--coffee-soft);
}

.fb-form {
  background: #fff; border-radius: 14px; padding: 34px 38px;
  border: 1px solid rgba(74,50,34,.12); border-top: 6px solid var(--amber);
  box-shadow: 0 8px 26px rgba(74,50,34,.1);
  display: flex; flex-direction: column; gap: 20px;
}
.fb-field { display: flex; flex-direction: column; gap: 8px; }
.fb-field span { font-size: 14px; font-weight: 700; color: var(--coffee); }
.fb-field input, .fb-field textarea {
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  border: 1px solid rgba(74,50,34,.25); border-radius: 8px;
  padding: 11px 14px; background: var(--paper);
  transition: border-color .2s, box-shadow .2s;
}
.fb-field input:focus, .fb-field textarea:focus {
  outline: none; border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(200,134,42,.18);
}
.fb-submit {
  align-self: flex-start;
  background: var(--coffee); color: #F7EFDF; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 15px; font-weight: 700;
  padding: 12px 38px; border-radius: 999px;
  transition: background .2s;
}
.fb-submit:hover { background: var(--amber-deep); }
.fb-msg { font-size: 14px; color: var(--amber-deep); }

/* ---------- 详情页 ---------- */
.detail-main { flex: 1; max-width: 820px; width: 100%; margin: 0 auto; padding: 46px 24px 60px; }
.detail-wrap {
  background: #fff; border-radius: 14px; padding: 40px 44px;
  border: 1px solid rgba(74,50,34,.12); border-top: 6px solid var(--amber);
  box-shadow: 0 8px 26px rgba(74,50,34,.1);
}
.detail-wrap h1 {
  font-family: var(--serif); font-weight: 900; font-size: 30px; line-height: 1.45;
  color: var(--coffee); margin-bottom: 14px;
}
.detail-wrap img { max-width: 100%; border-radius: 10px; margin: 18px 0; }
.detail-wrap p { margin-bottom: 16px; font-size: 15.5px; max-width: 72ch; }

/* ---------- 页脚（水平居中） ---------- */
.site-foot {
  background: linear-gradient(180deg, #3E2A1B, #2E1F12);
  border-top: 4px solid var(--amber);
  padding: 34px 24px 30px;
  text-align: center;
}
#site-footer { text-align: center; color: #D8C3A0; }
#site-footer * { text-align: center; }
#site-footer .ft-brand {
  font-family: var(--serif); font-weight: 900; font-size: 20px; color: #F7EFDF;
  margin-bottom: 12px; letter-spacing: 2px;
}
#site-footer .ft-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 12px;
}
#site-footer .ft-nav a { color: #E9DAC0; text-decoration: none; font-size: 14px; }
#site-footer .ft-nav a:hover { color: var(--amber); }
#site-footer .ft-link-list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 12px;
  font-size: 12.5px;
}
#site-footer .ft-link-list a { color: #B99F7C; text-decoration: none; }
#site-footer .ft-link-list a:hover { color: var(--amber); }
#site-footer .ft-copyright, #site-footer .ft-icp { font-size: 12.5px; color: #9A8266; }
#site-footer .ft-icp a { color: #9A8266; text-decoration: none; }
#site-footer .ft-icp a:hover { color: var(--amber); }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .lede-inner { grid-template-columns: 1fr; gap: 26px; }
  .lede-stats { flex-direction: row; gap: 30px; border-left: none; padding-left: 0; border-top: 3px solid var(--amber); padding-top: 16px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid .news-item:first-child { grid-row: auto; }
  .mag-grid { column-count: 1; }
  .contact-cards { grid-template-columns: 1fr; }
  .mast-inner { align-items: flex-start; flex-direction: column; }
  .tagline { padding-left: 0; }
  .detail-wrap, .about-paper, .fb-form { padding: 26px 22px; }
  .strip-list .news-item { grid-template-columns: 110px 1fr; gap: 14px; }
}

/* ---------- 入场 ---------- */
.page-ready .lede-inner,
.page-ready .module,
.page-ready .inner-hero,
.page-ready .about-paper,
.page-ready .fb-form,
.page-ready .contact-cards,
.page-ready .detail-wrap {
  animation: rise .6s ease both;
}
.page-ready .module:nth-of-type(2) { animation-delay: .08s; }
.page-ready .module:nth-of-type(3) { animation-delay: .14s; }
.page-ready .module:nth-of-type(4) { animation-delay: .2s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}