/* ============ 基础变量 ============ */
:root {
  --ink: #080605;
  --ink-2: #0d0b09;
  --ink-3: #1a1613;
  --ink-4: #2b2622;
  --ink-5: #4a4038;
  --paper: #f5f0e6;
  --paper-dark: #ebe3d0;
  --paper-deep: #d9cdb5;
  --cinnabar: #a8322c;
  --cinnabar-2: #c44536;
  --cinnabar-3: #8b2a22;
  --cinnabar-4: #6e1f1a;
  --gold: #b89968;
  --gold-2: #c9a961;
  --gold-3: #8a6f44;
  --gold-4: #dcc9a0;
  --dai: #3a5a52;
  --purple: #8b5a8c;
  --ochre: #a0673f;

  --font-display: "Ma Shan Zheng", serif;
  --font-title: "ZCOOL XiaoWei", serif;
  --font-num: "ZCOOL QingKe HuangYou", serif;
  --font-body: "Noto Serif SC", Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink-3);
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}
main, header, footer { position: relative; z-index: 2; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

.seal {
  display: inline-grid;
  place-items: center;
  background: var(--cinnabar);
  color: var(--paper);
  font-family: var(--font-display);
  border-radius: 4px;
  box-shadow: inset 0 0 0 3px rgba(245, 240, 230, 0.35), 0 4px 16px rgba(168, 50, 44, 0.35);
  letter-spacing: 2px;
}

/* ============ 导航 ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(8, 6, 5, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(201, 169, 97, 0.18);
  transition: all 0.4s;
}
.nav.scrolled { padding: 10px 0; background: rgba(8, 6, 5, 0.97); }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
/* 大漢黑龙旗 Logo */
.logo-flag {
  display: block;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(201, 169, 97, 0.55),
    0 0 0 3px rgba(13, 11, 9, 0.85),
    0 6px 18px rgba(0, 0, 0, 0.55);
  transform-origin: 50% 50%;
  animation: flagSway 8s ease-in-out infinite;
  transition: box-shadow 0.35s ease;
}
.logo:hover .logo-flag {
  box-shadow:
    0 0 0 1px var(--gold),
    0 0 0 3px rgba(13, 11, 9, 0.9),
    0 0 22px rgba(168, 50, 44, 0.55);
}
.logo-flag img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes flagSway {
  0%, 100% { transform: rotate(-1.2deg); }
  50% { transform: rotate(1.2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-flag { animation: none; }
}
.logo-text { font-family: var(--font-title); font-size: 20px; color: var(--gold-2); letter-spacing: 3px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { text-decoration: none; color: rgba(245, 240, 230, 0.7); font-size: 14px; padding: 10px 22px; border-radius: 2px; transition: 0.3s; letter-spacing: 2px; position: relative; }
.nav-links a::before { content: ""; position: absolute; left: 16px; right: 16px; top: 50%; height: 1px; background: var(--cinnabar); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
.nav-links a:hover { color: var(--gold-2); }
.nav-links a:hover::before { transform: scaleX(1); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 28px; height: 2px; background: var(--gold-2); transition: 0.3s; }

/* ============ HERO 英雄区（宏大版） ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  overflow: hidden;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(168, 50, 44, 0.22), transparent 55%),
    radial-gradient(ellipse at 70% 60%, rgba(201, 169, 97, 0.15), transparent 55%),
    radial-gradient(ellipse at 50% 50%, rgba(8, 6, 5, 0.5), transparent 70%);
}
.hero-bg-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 8 L60 30 L84 36 L66 52 L72 78 L50 64 L28 78 L34 52 L16 36 L40 30 Z' fill='%23c9a961' opacity='0.03'/%3E%3Cpath d='M10 20 Q30 10 50 20 Q70 30 90 20' stroke='%23a8322c' stroke-width='0.4' fill='none' opacity='0.08'/%3E%3C/svg%3E");
  animation: heroShift 40s linear infinite alternate;
}
@keyframes heroShift {
  from { transform: translate(0, 0); }
  to { transform: translate(30px, -20px); }
}

/* 三层山脉剪影 — 景深 */
.hero-mountains {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 55%;
  z-index: 1;
  pointer-events: none;
}
.hero-mountains .mtn { fill: var(--ink); }
.hero-mountains .mtn-1 { opacity: 0.35; }
.hero-mountains .mtn-2 { opacity: 0.6; }
.hero-mountains .mtn-3 { opacity: 0.88; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 6, 5, 0.5) 0%, transparent 30%, transparent 60%, rgba(8, 6, 5, 0.85) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 24px;
  max-width: 1100px;
}

/* 左右对联 */
.hero-couplet {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 36px);
  color: rgba(201, 169, 97, 0.22);
  letter-spacing: 6px;
  animation: coupletIn 1.5s ease 1s both;
}
.hero-couplet span {
  writing-mode: vertical-rl;
  text-orientation: upright;
  text-shadow: 0 0 20px rgba(168, 50, 44, 0.3);
}
.hero-couplet.left { left: 40px; }
.hero-couplet.right { right: 40px; align-items: flex-end; }
@keyframes coupletIn {
  from { opacity: 0; transform: translateY(-50%) translateX(20px); }
  to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

.hero-stamp {
  width: 82px; height: 82px;
  font-size: 34px;
  margin-bottom: 24px;
  animation: sealIn 1.1s ease 0.3s both;
}
@keyframes sealIn {
  from { opacity: 0; transform: translateY(-30px) rotate(-8deg); }
  to { opacity: 1; transform: translateY(0) rotate(-5deg); }
}

/* 主标题 — 放大！ */
.hero-title {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 4vw, 48px);
  margin: 16px 0 24px;
}
.hero-title .char {
  font-family: var(--font-display);
  font-size: clamp(160px, 32vw, 380px);
  line-height: 0.85;
  letter-spacing: -8px;
  background: linear-gradient(180deg,
    var(--paper) 0%,
    var(--gold-4) 25%,
    var(--gold-2) 50%,
    var(--cinnabar-2) 75%,
    var(--cinnabar-4) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 12px 32px rgba(168, 50, 44, 0.55));
  animation: brushIn 1.5s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.hero-title .char-1 { animation-delay: 0.4s; }
.hero-title .char-2 { animation-delay: 0.7s; }
@keyframes brushIn {
  from { opacity: 0; transform: scale(1.2) translateY(-40px); filter: blur(8px) drop-shadow(0 12px 32px rgba(168, 50, 44, 0.55)); }
  to { opacity: 1; transform: scale(1) translateY(0); filter: blur(0) drop-shadow(0 12px 32px rgba(168, 50, 44, 0.55)); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  color: var(--gold-2);
  font-family: var(--font-title);
  font-size: 18px;
  letter-spacing: 10px;
  margin-bottom: 36px;
  padding: 10px 28px;
  border-top: 1px solid rgba(201, 169, 97, 0.3);
  border-bottom: 1px solid rgba(201, 169, 97, 0.3);
  animation: fadeIn 1.2s ease 1.1s both;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--cinnabar-2);
  transform: rotate(45deg);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.hero-motto {
  font-family: var(--font-title);
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(245, 240, 230, 0.8);
  line-height: 2.2;
  margin-bottom: 44px;
  letter-spacing: 2px;
  animation: fadeIn 1.2s ease 1.3s both;
}

/* 数据墙 hero 版 */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 760px;
  margin: 0 auto 48px;
  background: rgba(201, 169, 97, 0.06);
  border: 1px solid rgba(201, 169, 97, 0.18);
  border-radius: 6px;
  padding: 24px 0;
  animation: fadeIn 1.2s ease 1.5s both;
}
.h-stat {
  position: relative;
  text-align: center;
  padding: 0 20px;
}
.h-stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(201, 169, 97, 0.25), transparent);
}
.h-stat strong {
  font-family: var(--font-num);
  font-size: clamp(36px, 5vw, 56px);
  color: var(--gold-2);
  line-height: 1;
  display: block;
  text-shadow: 0 0 30px rgba(201, 169, 97, 0.35);
}
.h-stat em {
  font-style: normal;
  font-size: 13px;
  color: rgba(245, 240, 230, 0.5);
  letter-spacing: 3px;
  margin-top: 6px;
  display: block;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 20px;
  animation: fadeIn 1.2s ease 1.7s both;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 44px;
  text-decoration: none;
  font-family: var(--font-title);
  font-size: 17px;
  letter-spacing: 5px;
  border-radius: 2px;
  transition: all 0.4s;
  cursor: pointer;
  border: none;
  position: relative;
}
.btn-primary {
  background: var(--cinnabar);
  color: var(--paper);
  box-shadow: 0 8px 28px rgba(168, 50, 44, 0.45);
}
.btn-primary:hover { background: var(--cinnabar-3); transform: translateY(-3px); box-shadow: 0 14px 36px rgba(168, 50, 44, 0.55); }
.btn-ghost {
  background: transparent;
  color: var(--gold-2);
  border: 1px solid var(--gold);
}
.btn-ghost:hover { background: rgba(201, 169, 97, 0.12); border-color: var(--gold-4); }

.hero-scroll {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(201, 169, 97, 0.45);
  font-size: 11px;
  letter-spacing: 5px;
  z-index: 4;
}
.scroll-bar {
  width: 1px; height: 56px;
  margin: 12px auto 0;
  background: linear-gradient(var(--gold-2), transparent);
  animation: scrollDown 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollDown {
  0%, 100% { transform: scaleY(0.3); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ============ 节章分隔（宏大版，带祥云） ============ */
.chapter-sep {
  background: var(--ink);
  padding: 72px 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  position: relative;
  overflow: hidden;
}
.chapter-sep::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 300px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.chapter-sep::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cinnabar), transparent);
}
.sep-clouds {
  width: 420px;
  height: 40px;
  opacity: 0.22;
  animation: cloudDrift 20s ease-in-out infinite alternate;
}
.sep-clouds .cloud { fill: var(--gold-2); }
@keyframes cloudDrift {
  from { transform: translateX(-20px); }
  to { transform: translateX(20px); }
}
.sep-num {
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 88px);
  color: var(--cinnabar);
  opacity: 0.85;
  line-height: 1;
  text-shadow: 0 0 40px rgba(168, 50, 44, 0.4);
}
.sep-label {
  font-family: "Georgia", serif;
  font-size: 13px;
  color: rgba(201, 169, 97, 0.5);
  letter-spacing: 12px;
  text-transform: uppercase;
  font-style: italic;
}
.sep-title {
  font-family: var(--font-title);
  font-size: clamp(38px, 5vw, 56px);
  color: var(--gold-2);
  letter-spacing: 14px;
  text-shadow: 0 4px 24px rgba(201, 169, 97, 0.25);
}

/* ============ Section 通用 ============ */
.section { padding: 130px 0; position: relative; }
.section.alt { background: var(--paper-dark); }

/* 顶部装饰条 */
.ornament-top {
  text-align: center;
  font-size: 18px;
  letter-spacing: 14px;
  margin-bottom: 36px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(168, 50, 44, 0.15);
}
.ornament-top span {
  display: inline-block;
  margin: 0 6px;
}
.ornament-hui { color: var(--cinnabar-2); font-size: 14px; letter-spacing: 10px; }
.ornament-ring { color: var(--gold-3); font-size: 16px; }
.ornament-cloud { color: var(--cinnabar-3); font-size: 16px; letter-spacing: 10px; }

.sec-head { text-align: center; margin-bottom: 70px; }
.sec-sub {
  font-family: var(--font-title);
  font-size: 16px;
  color: var(--gold-3);
  letter-spacing: 8px;
  display: block;
  margin-bottom: 12px;
}
.sec-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 80px);
  color: var(--ink);
  letter-spacing: 12px;
  position: relative;
  display: inline-block;
  padding: 0 50px;
  line-height: 1;
}
.sec-title::before, .sec-title::after {
  content: "◆";
  color: var(--cinnabar);
  font-size: 22px;
  margin: 0 14px;
  vertical-align: middle;
}
.sec-rule {
  width: 120px; height: 2px;
  margin: 20px auto;
  background: linear-gradient(90deg, transparent, var(--cinnabar), transparent);
}
.sec-lead {
  max-width: 820px;
  margin: 0 auto;
  font-size: 17px;
  color: var(--ink-5);
  line-height: 2.1;
}

/* ============ 漢族荣光（宏大版） ============ */
.glory-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-bottom: 72px; }
.g-card {
  background: var(--paper);
  padding: 44px 40px;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(184, 153, 104, 0.18);
  transition: all 0.5s;
}
.g-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 5px; height: 100%;
  background: var(--cinnabar);
  transition: width 0.4s;
}
.g-card::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle at bottom right, rgba(201, 169, 97, 0.08), transparent 60%);
  pointer-events: none;
}
.g-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(26, 22, 19, 0.15);
  border-color: var(--gold);
}
.g-card:hover::before { width: 7px; }
.g-card-badge {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 13px;
  color: var(--paper);
  padding: 4px 14px;
  letter-spacing: 3px;
  border-radius: 2px;
  margin-bottom: 16px;
}
.g-tech .g-card-badge { background: var(--dai); }
.g-art .g-card-badge { background: var(--cinnabar); }
.g-empire .g-card-badge { background: var(--gold-3); }
.g-think .g-card-badge { background: var(--purple); }
.g-icon {
  font-family: var(--font-display);
  font-size: 52px;
  color: var(--cinnabar);
  line-height: 1;
  margin-bottom: 12px;
}
.g-card h3 {
  font-family: var(--font-title);
  font-size: 24px;
  color: var(--ink);
  letter-spacing: 3px;
  margin-bottom: 22px;
}
.g-list { list-style: none; }
.g-list li {
  padding: 12px 0 12px 22px;
  position: relative;
  font-size: 14px;
  color: var(--ink-4);
  line-height: 1.85;
  border-bottom: 1px dashed rgba(184, 153, 104, 0.18);
}
.g-list li:last-child { border-bottom: none; }
.g-list li::before {
  content: "◆";
  position: absolute;
  left: 0; top: 14px;
  color: var(--cinnabar);
  font-size: 9px;
}
.g-list li b { color: var(--cinnabar-3); font-weight: 600; }

/* 数据墙 — 宏大版 */
.glory-wall {
  background: var(--ink);
  padding: 56px;
  border-radius: 6px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  position: relative;
  border: 1px solid rgba(201, 169, 97, 0.12);
}
.glory-wall::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(201, 169, 97, 0.1);
  border-radius: 4px;
  pointer-events: none;
}
.glory-wall::after {
  content: "";
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 140px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--cinnabar-2), transparent);
}
.gw-item { text-align: center; color: var(--paper); padding: 8px; border-right: 1px solid rgba(201, 169, 97, 0.08); }
.gw-item:last-child { border-right: none; }
.gw-item strong {
  font-family: var(--font-num);
  font-size: clamp(28px, 4vw, 44px);
  color: var(--gold-2);
  display: block;
  line-height: 1;
  text-shadow: 0 0 30px rgba(201, 169, 97, 0.35);
}
.gw-item .dot { color: var(--cinnabar-2); }
.gw-item span {
  display: block;
  font-size: 12px;
  color: rgba(245, 240, 230, 0.55);
  letter-spacing: 3px;
  margin-top: 10px;
}

/* ============ 漢族历史（宏大版） ============ */
.timeline-wrap { position: relative; max-width: 860px; margin: 0 auto; padding: 30px 0; }
.tl-axis {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold-2) 0%, var(--gold) 30%, var(--cinnabar-2) 60%, var(--cinnabar-3) 80%, var(--ink) 100%);
  transform: translateX(-50%);
  border-radius: 2px;
  box-shadow: 0 0 20px rgba(201, 169, 97, 0.3);
}
.tl-node {
  position: relative;
  width: 50%;
  padding: 28px 60px;
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s ease;
}
.tl-node.visible { opacity: 1; transform: translateX(0); }
.tl-node:nth-child(even) { left: 50%; transform: translateX(40px); }
.tl-node:nth-child(even).visible { transform: translateX(0); }
.tl-node::before {
  content: attr(data-era);
  position: absolute;
  top: 32px;
  font-family: var(--font-title);
  font-size: 12px;
  color: var(--gold-3);
  letter-spacing: 3px;
  white-space: nowrap;
  padding: 3px 10px;
  background: rgba(201, 169, 97, 0.08);
  border-radius: 2px;
}
.tl-node:nth-child(odd)::before { right: calc(100% - 56px); text-align: right; }
.tl-node:nth-child(even)::before { left: calc(100% - 56px); text-align: left; }
.tl-dot {
  position: absolute;
  top: 36px;
  width: 22px; height: 22px;
  background: var(--paper);
  border: 4px solid var(--cinnabar);
  border-radius: 50%;
  z-index: 2;
}
.tl-dot-emph {
  background: var(--cinnabar);
  border-color: var(--paper);
  box-shadow: 0 0 0 4px rgba(168, 50, 44, 0.3), 0 0 24px rgba(168, 50, 44, 0.5);
}
.tl-node:nth-child(odd) .tl-dot { right: -11px; }
.tl-node:nth-child(even) .tl-dot { left: -11px; }
.tl-body {
  background: var(--paper);
  padding: 24px 28px;
  border-radius: 4px;
  border: 1px solid rgba(184, 153, 104, 0.2);
  border-left: 4px solid var(--cinnabar);
  box-shadow: 0 6px 20px rgba(26, 22, 19, 0.08);
  transition: all 0.4s;
}
.tl-node:hover .tl-body {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 12px 32px rgba(26, 22, 19, 0.14);
}
.tl-node:nth-child(even) .tl-body { border-left: none; border-right: 4px solid var(--cinnabar); }
.tl-body h3 {
  font-family: var(--font-title);
  font-size: 22px;
  color: var(--ink);
  letter-spacing: 3px;
  margin-bottom: 8px;
}
.tl-body p { font-size: 15px; color: var(--ink-5); line-height: 1.9; }

/* 历史人物 */
.heroes { margin-top: 80px; background: var(--ink); padding: 60px; border-radius: 6px; border: 1px solid rgba(201, 169, 97, 0.1); position: relative; }
.heroes::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(201, 169, 97, 0.08);
  border-radius: 4px;
  pointer-events: none;
}
.heroes-title { text-align: center; font-family: var(--font-title); font-size: 24px; color: var(--gold-2); letter-spacing: 8px; margin-bottom: 44px; }
.heroes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.figure-card { text-align: center; padding: 20px; border-radius: 4px; transition: all 0.4s; }
.figure-card:hover { background: rgba(201, 169, 97, 0.08); transform: translateY(-4px); }
.h-seal {
  display: grid; place-items: center;
  width: 60px; height: 60px;
  margin: 0 auto 12px;
  background: var(--cinnabar);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 28px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 2px rgba(245, 240, 230, 0.22), 0 4px 16px rgba(168, 50, 44, 0.3);
}
.figure-card p { font-family: var(--font-title); font-size: 17px; color: var(--paper); line-height: 1.5; }
.figure-card em { font-style: normal; font-size: 12px; color: rgba(245, 240, 230, 0.5); letter-spacing: 2px; }

/* ============ 漢族服饰（宏大版） ============ */
.hf-core {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-bottom: 80px; padding: 40px 32px;
  background: var(--ink); border-radius: 6px;
  border: 1px solid rgba(201, 169, 97, 0.12);
  position: relative;
}
.hf-core::before {
  content: ""; position: absolute; inset: 8px;
  border: 1px solid rgba(201, 169, 97, 0.15); border-radius: 4px; pointer-events: none;
}
.hf-core-item { text-align: center; padding: 12px 8px; }
.hf-core-num { font-family: var(--font-display); font-size: 44px; color: var(--cinnabar-2); display: block; margin-bottom: 8px; line-height: 1; text-shadow: 0 0 20px rgba(168, 50, 44, 0.3); }
.hf-core-item h4 { font-family: var(--font-title); font-size: 22px; color: var(--gold-2); letter-spacing: 4px; margin-bottom: 10px; }
.hf-core-item p { font-size: 14px; color: rgba(245, 240, 230, 0.7); line-height: 1.9; }

.hf-forms-title, .hf-pattern-title { text-align: center; font-family: var(--font-title); font-size: 28px; color: var(--ink); letter-spacing: 8px; margin-bottom: 36px; }
.mt-xl { margin-top: 70px; }
.quote-paper { max-width: 680px; margin: 0 auto; padding: 40px 36px; border-left: 3px solid var(--cinnabar); background: rgba(168, 50, 44, 0.05); }
.quote-paper p { font-family: var(--font-title); font-size: 17px; color: var(--ink-5); line-height: 2.3; letter-spacing: 1px; font-style: italic; }
.hf-forms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 80px; }
.hf-form-card {
  background: var(--paper); padding: 24px 22px; border-radius: 4px; text-align: center;
  border: 1px solid rgba(184, 153, 104, 0.18); transition: all 0.5s;
  position: relative; overflow: hidden;
}
.hf-form-card::before {
  content: ""; position: absolute;
  top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--cinnabar), var(--gold));
  transform: scaleX(0); transition: transform 0.5s;
}
.hf-form-card:hover { transform: translateY(-8px); box-shadow: 0 20px 44px rgba(26, 22, 19, 0.15); border-color: var(--gold); }
.hf-form-card:hover::before { transform: scaleX(1); }
.hf-svg { width: 120px; height: 160px; margin: 0 auto 18px; background: linear-gradient(180deg, var(--paper-dark), var(--paper)); border-radius: 4px; padding: 8px; }
.hf-svg svg { width: 100%; height: 100%; }
.hf-form-card h4 { font-family: var(--font-title); font-size: 22px; color: var(--ink); letter-spacing: 3px; margin-bottom: 8px; }
.hf-form-card > p { font-size: 14px; color: var(--ink-5); line-height: 1.8; }
.hf-era {
  display: inline-block; margin-top: 12px;
  font-family: var(--font-title); font-size: 12px;
  color: var(--cinnabar-3); letter-spacing: 2px;
  background: rgba(168, 50, 44, 0.08); padding: 3px 12px; border-radius: 2px;
}

/* 纹样 */
.pattern-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.pattern-item {
  background: var(--paper-dark); padding: 28px 14px; text-align: center; border-radius: 4px;
  border: 1px solid rgba(184, 153, 104, 0.18); transition: all 0.4s;
}
.pattern-item:hover { background: var(--ink); border-color: var(--cinnabar); transform: translateY(-6px); box-shadow: 0 16px 36px rgba(26, 22, 19, 0.2); }
.pattern-item:hover h4, .pattern-item:hover p { color: var(--paper); }
.pattern-item:hover .p-sym { color: var(--gold-2); text-shadow: 0 0 24px rgba(201, 169, 97, 0.5); }
.p-sym { font-family: var(--font-display); font-size: 42px; color: var(--cinnabar); display: block; margin-bottom: 6px; line-height: 1; transition: color 0.4s, text-shadow 0.4s; }
.pattern-item h4 { font-family: var(--font-title); font-size: 16px; color: var(--ink); letter-spacing: 3px; margin-bottom: 4px; }
.pattern-item p { font-size: 12px; color: var(--ink-5); line-height: 1.7; }

/* ============ 民族精神（宏大版） ============ */
.spirit {
  background: var(--ink); padding: 130px 0; color: var(--paper); position: relative; overflow: hidden;
}
.spirit::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 10 L36 24 L52 28 L40 40 L44 56 L30 48 L16 56 L20 40 L8 28 L24 24 Z' fill='%23c9a961' opacity='0.03'/%3E%3C/svg%3E");
}
.spirit-title { font-family: var(--font-display); font-size: clamp(48px, 6vw, 72px); text-align: center; color: var(--gold-2); letter-spacing: 12px; margin-bottom: 10px; position: relative; text-shadow: 0 4px 30px rgba(201, 169, 97, 0.3); }
.spirit-sub { text-align: center; font-size: 15px; color: rgba(245, 240, 230, 0.5); letter-spacing: 6px; margin-bottom: 70px; }
.spirit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-bottom: 70px; }
.s-item {
  padding: 42px 28px; background: rgba(245, 240, 230, 0.03);
  border: 1px solid rgba(201, 169, 97, 0.12); border-radius: 4px;
  text-align: center; transition: all 0.5s;
  position: relative; overflow: hidden;
}
.s-item::before {
  content: ""; position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 60%; height: 2px; background: var(--cinnabar);
  transform: translateX(-50%) scaleX(0); transform-origin: center;
  transition: transform 0.5s;
}
.s-item:hover { background: rgba(168, 50, 44, 0.12); border-color: var(--cinnabar); transform: translateY(-6px); box-shadow: 0 16px 40px rgba(168, 50, 44, 0.2); }
.s-item:hover::before { transform: translateX(-50%) scaleX(1); }
.s-num { font-family: var(--font-display); font-size: 52px; color: var(--gold-2); display: block; line-height: 1; margin-bottom: 12px; opacity: 0.4; }
.s-item h3 { font-family: var(--font-title); font-size: 24px; color: var(--paper); letter-spacing: 5px; margin-bottom: 14px; }
.s-item p { font-size: 14px; color: rgba(245, 240, 230, 0.7); line-height: 2; }
.spirit-quote { max-width: 680px; margin: 0 auto; padding: 40px 36px; border-left: 3px solid var(--cinnabar); background: rgba(168, 50, 44, 0.04); border-radius: 0 4px 4px 0; }
.spirit-quote p { font-family: var(--font-title); font-size: 17px; color: rgba(245, 240, 230, 0.88); line-height: 2.3; letter-spacing: 1px; font-style: italic; }

/* ============ 页脚 ============ */
.footer { background: #060504; color: var(--paper); padding: 72px 0 36px; border-top: 1px solid rgba(201, 169, 97, 0.12); }
.footer-top { display: grid; grid-template-columns: auto 1fr; gap: 70px; padding-bottom: 48px; border-bottom: 1px solid rgba(201, 169, 97, 0.1); }
.f-brand { display: flex; gap: 16px; align-items: flex-start; }
.f-brand .logo-flag { width: 58px; height: 58px; }
.f-brand h3 { font-family: var(--font-title); font-size: 24px; color: var(--gold-2); letter-spacing: 4px; margin-bottom: 6px; }
.f-brand p { font-size: 14px; color: rgba(245, 240, 230, 0.55); letter-spacing: 1px; }
.f-sub { font-family: var(--font-title) !important; color: var(--gold) !important; font-size: 13px !important; letter-spacing: 4px !important; }
.f-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.f-links h4 { font-family: var(--font-title); font-size: 16px; color: var(--gold-2); letter-spacing: 3px; margin-bottom: 18px; }
.f-links a { display: block; color: rgba(245, 240, 230, 0.55); text-decoration: none; font-size: 14px; padding: 5px 0; transition: all 0.3s; }
.f-links a:hover { color: var(--cinnabar-2); padding-left: 8px; }
.footer-bottom { padding-top: 28px; text-align: center; }
.footer-bottom p { font-size: 12px; color: rgba(245, 240, 230, 0.4); letter-spacing: 2px; }
.f-motto { margin-top: 8px; font-family: var(--font-title); color: var(--gold) !important; letter-spacing: 4px !important; }

/* ============ 回到顶部 ============ */
.back-top {
  position: fixed; bottom: 36px; right: 36px;
  width: 52px; height: 52px; background: var(--cinnabar); color: var(--paper);
  border: none; border-radius: 4px; cursor: pointer;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(20px);
  transition: all 0.4s;
  box-shadow: 0 8px 28px rgba(168, 50, 44, 0.5);
  z-index: 99;
}
.back-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--cinnabar-3); transform: translateY(-4px); }
.back-top svg { width: 22px; height: 22px; }

/* ============ 滚动显现 ============ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .hero-couplet { display: none; }
  .glory-grid { grid-template-columns: 1fr; }
  .glory-wall { grid-template-columns: repeat(3, 1fr); padding: 40px 24px; }
  .hf-core { grid-template-columns: repeat(2, 1fr); padding: 32px 20px; }
  .hf-forms-grid { grid-template-columns: repeat(2, 1fr); }
  .heroes-grid { grid-template-columns: repeat(2, 1fr); }
  .spirit-grid { grid-template-columns: repeat(2, 1fr); }
  .pattern-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 80%; height: 100vh;
    background: var(--ink); flex-direction: column;
    padding: 80px 32px 32px; gap: 12px;
    transition: right 0.4s; box-shadow: -8px 0 30px rgba(0,0,0,0.4);
  }
  .nav-links.open { right: 0; }
  .nav-links a { padding: 14px 20px; color: var(--paper); font-size: 16px; }
  .nav-toggle { display: flex; }
  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .section { padding: 90px 0; }
  .hero-title { gap: 12px; }
  .sec-title { letter-spacing: 8px; padding: 0 20px; }
  .sec-title::before, .sec-title::after { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .h-stat:nth-child(2)::after { display: none; }

  .tl-axis { left: 22px; width: 3px; }
  .tl-node { width: 100%; left: 0 !important; transform: none !important; padding-left: 54px; padding-right: 16px; }
  .tl-node.visible { transform: none; }
  .tl-node:nth-child(odd) .tl-body, .tl-node:nth-child(even) .tl-body { border-left: 4px solid var(--cinnabar); border-right: none; }
  .tl-node::before { right: auto !important; left: 54px !important; text-align: left !important; }
  .tl-node .tl-dot { left: 11px !important; right: auto !important; }

  .f-links { grid-template-columns: repeat(2, 1fr); }
  .chapter-sep { padding: 56px 16px 64px; gap: 12px; }
  .sep-clouds { width: 280px; opacity: 0.18; }
  .ornament-top { letter-spacing: 8px; font-size: 14px; }
}

@media (max-width: 480px) {
  .glory-wall, .hf-forms-grid, .heroes-grid, .spirit-grid, .pattern-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   栏目页（子页面）通用
   ============================================================ */
.nav-links a.active { color: var(--gold-2); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--cinnabar-2);
}

.page-hero {
  position: relative; overflow: hidden; text-align: center;
  background: var(--ink); color: var(--paper);
  padding: 178px 0 96px;
  border-bottom: 1px solid rgba(201, 169, 97, 0.16);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(65% 85% at 50% -12%, rgba(168, 50, 44, 0.42), transparent 70%),
    radial-gradient(45% 60% at 88% 115%, rgba(201, 169, 97, 0.13), transparent 70%);
}
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.ph-ghost {
  position: absolute; top: 54%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-display); font-size: clamp(200px, 30vw, 380px);
  line-height: 1; color: rgba(245, 240, 230, 0.04);
  pointer-events: none; user-select: none;
}
.ph-inner { position: relative; z-index: 2; }
.ph-crumbs { font-size: 12px; letter-spacing: 3px; color: rgba(245, 240, 230, 0.42); margin-bottom: 28px; }
.ph-crumbs a { color: var(--gold-2); text-decoration: none; transition: 0.3s; }
.ph-crumbs a:hover { color: var(--gold-4); }
.ph-crumbs i { font-style: normal; margin: 0 10px; opacity: 0.4; }
.ph-label { display: inline-block; font-size: 12px; letter-spacing: 8px; color: var(--cinnabar-2); margin-bottom: 18px; }
.page-title {
  font-family: var(--font-display);
  font-size: clamp(46px, 7vw, 88px);
  letter-spacing: 0.14em; line-height: 1.15;
  background: linear-gradient(180deg, var(--paper) 0%, var(--gold-4) 42%, var(--gold-2) 68%, var(--cinnabar-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.55));
}
.page-sub {
  max-width: 760px; margin: 26px auto 0;
  font-size: 15px; line-height: 2.1; letter-spacing: 1px; color: rgba(245, 240, 230, 0.7);
}
.ph-meta {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 30px;
  margin-top: 30px; font-size: 12px; letter-spacing: 3px; color: rgba(245, 240, 230, 0.45);
}
.ph-meta span { position: relative; }
.ph-meta span + span::before {
  content: ""; position: absolute; left: -17px; top: 50%; width: 3px; height: 3px;
  border-radius: 50%; background: var(--cinnabar-2);
}

.section.tight { padding: 100px 0; }
.section .container > .sec-head:last-child { margin-bottom: 0; }

/* 栏目内引导卡 */
.cross-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cross-card {
  display: block; text-decoration: none; padding: 34px 30px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(168, 50, 44, 0.15);
  border-radius: 3px; transition: all 0.45s; position: relative; overflow: hidden;
}
.cross-card:hover { transform: translateY(-6px); border-color: var(--cinnabar); box-shadow: 0 18px 40px rgba(26, 22, 19, 0.14); }
.cc-num { font-family: var(--font-display); font-size: 34px; color: rgba(168, 50, 44, 0.28); line-height: 1; }
.cross-card h3 { font-family: var(--font-title); font-size: 21px; letter-spacing: 3px; color: var(--ink); margin: 12px 0 10px; }
.cross-card p { font-size: 13px; line-height: 1.9; color: var(--ink-5); }
.cc-arrow { display: inline-block; margin-top: 16px; font-size: 12px; letter-spacing: 3px; color: var(--cinnabar); }

/* 漢字演变 */
.lang-evo { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.lang-evo::before {
  content: ""; position: absolute; top: 49px; left: 3%; right: 3%; height: 1px; z-index: 0;
  background: repeating-linear-gradient(90deg, rgba(184, 153, 104, 0.5) 0 6px, transparent 6px 13px);
}
.evo-item {
  position: relative; z-index: 1; text-align: center;
  padding: 32px 18px 26px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(168, 50, 44, 0.14);
  transition: all 0.45s;
}
.evo-item:hover {
  background: var(--ink-2); border-color: var(--cinnabar);
  transform: translateY(-8px); box-shadow: 0 20px 44px rgba(26, 22, 19, 0.24);
}
.evo-item:hover .evo-name { color: var(--gold-2); }
.evo-item:hover .evo-era, .evo-item:hover .evo-desc { color: rgba(245, 240, 230, 0.66); }
.evo-item:hover .evo-idx { background: var(--cinnabar); color: var(--paper); border-color: var(--cinnabar); }
.evo-idx {
  width: 34px; height: 34px; margin: 0 auto 16px;
  display: grid; place-items: center; border-radius: 50%;
  font-family: var(--font-title); font-size: 13px; color: var(--cinnabar);
  border: 1px solid rgba(168, 50, 44, 0.35); background: rgba(245, 240, 230, 0.7);
  transition: all 0.45s;
}
.evo-name { font-family: var(--font-display); font-size: 28px; letter-spacing: 2px; color: var(--ink-2); transition: color 0.45s; }
.evo-era { display: block; margin: 8px 0 10px; font-size: 12px; letter-spacing: 1px; color: var(--cinnabar-3); transition: color 0.45s; }
.evo-desc { font-size: 13px; line-height: 1.9; color: var(--ink-5); transition: color 0.45s; }

/* 六书 / 术语卡 */
.term-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.term-card {
  display: flex; gap: 18px; padding: 26px;
  background: rgba(255, 255, 255, 0.5);
  border-left: 3px solid var(--cinnabar);
}
.term-sym { font-family: var(--font-display); font-size: 42px; line-height: 1; color: var(--cinnabar); }
.term-card h4 { font-family: var(--font-title); font-size: 18px; letter-spacing: 3px; color: var(--ink); margin-bottom: 6px; }
.term-card p { font-size: 13px; line-height: 1.9; color: var(--ink-5); }
.term-card em { font-style: normal; color: var(--cinnabar-3); }

/* 方言 */
.dialect-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.dialect-card {
  position: relative; overflow: hidden; padding: 28px 24px;
  background: var(--ink-2); color: var(--paper);
  border: 1px solid rgba(201, 169, 97, 0.18);
  transition: all 0.45s;
}
.dialect-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 20px 44px rgba(8, 6, 5, 0.38); }
.dialect-card h4 { font-family: var(--font-title); font-size: 22px; letter-spacing: 3px; color: var(--gold-2); margin-bottom: 8px; }
.d-pop { font-size: 12px; letter-spacing: 2px; color: rgba(245, 240, 230, 0.48); margin-bottom: 12px; }
.dialect-card p { font-size: 13px; line-height: 1.9; color: rgba(245, 240, 230, 0.68); position: relative; z-index: 1; }
.d-ghost {
  position: absolute; right: -4px; bottom: -22px;
  font-family: var(--font-display); font-size: 84px; line-height: 1;
  color: rgba(201, 169, 97, 0.07); pointer-events: none;
}

/* 四阶段（雅言—官话—国语—普通话） */
.phase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.phase-card {
  padding: 30px 24px; background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(184, 153, 104, 0.24); position: relative; overflow: hidden;
}
.phase-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--cinnabar), var(--gold));
}
.phase-era { font-size: 12px; letter-spacing: 2px; color: var(--cinnabar-3); }
.phase-card h4 { font-family: var(--font-title); font-size: 22px; letter-spacing: 4px; color: var(--ink); margin: 10px 0 10px; }
.phase-card p { font-size: 13px; line-height: 1.9; color: var(--ink-5); }

/* 节日 */
.fest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fest-card {
  position: relative; overflow: hidden; padding: 30px 26px 26px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(168, 50, 44, 0.14);
  transition: all 0.45s;
}
.fest-card::after {
  content: attr(data-sym); position: absolute; right: -10px; bottom: -28px;
  font-family: var(--font-display); font-size: 110px; line-height: 1;
  color: rgba(168, 50, 44, 0.06); pointer-events: none; transition: color 0.45s;
}
.fest-card:hover { background: var(--ink-2); border-color: var(--cinnabar); transform: translateY(-6px); box-shadow: 0 20px 44px rgba(26, 22, 19, 0.22); }
.fest-card:hover h3 { color: var(--gold-2); }
.fest-card:hover p { color: rgba(245, 240, 230, 0.7); }
.fest-card:hover .fest-tags span { border-color: rgba(201, 169, 97, 0.4); color: var(--gold-2); }
.fest-card:hover::after { color: rgba(201, 169, 97, 0.1); }
.fest-date { font-size: 12px; letter-spacing: 2px; color: var(--cinnabar-3); position: relative; z-index: 1; }
.fest-card h3 { font-family: var(--font-title); font-size: 24px; letter-spacing: 4px; color: var(--ink); margin: 8px 0 12px; transition: color 0.45s; position: relative; z-index: 1; }
.fest-card p { font-size: 13px; line-height: 1.9; color: var(--ink-5); transition: color 0.45s; position: relative; z-index: 1; }
.fest-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; position: relative; z-index: 1; }
.fest-tags span {
  font-size: 11px; letter-spacing: 1px; padding: 3px 9px;
  border: 1px solid rgba(168, 50, 44, 0.25); color: var(--cinnabar-3);
  border-radius: 2px; transition: all 0.45s;
}

/* 节气 */
.jieqi-block { background: rgba(255, 255, 255, 0.45); border: 1px solid rgba(184, 153, 104, 0.22); padding: 40px 38px; }
.jieqi-title { font-family: var(--font-title); font-size: 22px; letter-spacing: 4px; color: var(--ink); margin-bottom: 10px; text-align: center; }
.jieqi-sub { text-align: center; font-size: 13px; color: var(--ink-5); margin-bottom: 28px; }
.jieqi-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.jieqi-grid span {
  text-align: center; padding: 10px 4px; font-family: var(--font-title);
  font-size: 15px; letter-spacing: 2px; color: var(--ink-3);
  background: rgba(245, 240, 230, 0.8); border: 1px solid rgba(184, 153, 104, 0.18);
  transition: all 0.35s;
}
.jieqi-grid span:hover { background: var(--cinnabar); border-color: var(--cinnabar); color: var(--paper); }

/* 人生礼仪 */
.ritual-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ritual-card {
  padding: 34px 30px; background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(184, 153, 104, 0.24); position: relative; transition: all 0.45s;
}
.ritual-card:hover { border-color: var(--cinnabar); transform: translateY(-5px); box-shadow: 0 16px 38px rgba(26, 22, 19, 0.12); }
.r-step { font-family: var(--font-display); font-size: 40px; line-height: 1; color: rgba(168, 50, 44, 0.42); }
.ritual-card h3 { font-family: var(--font-title); font-size: 21px; letter-spacing: 3px; color: var(--ink); margin: 10px 0 14px; }
.ritual-card ul { list-style: none; }
.ritual-card li { position: relative; padding-left: 15px; font-size: 13px; line-height: 2; color: var(--ink-5); }
.ritual-card li::before { content: "—"; position: absolute; left: 0; top: 0; font-size: 11px; color: var(--cinnabar-2); }

/* 漢服补充 */
.hf-extra-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hf-extra {
  padding: 30px 24px; background: var(--paper-dark);
  border: 1px solid rgba(184, 153, 104, 0.22); transition: all 0.45s;
}
.hf-extra:hover { background: var(--ink); border-color: var(--gold); transform: translateY(-6px); }
.hf-extra:hover h3 { color: var(--paper); }
.hf-extra:hover li { color: rgba(245, 240, 230, 0.7); }
.hf-extra:hover .hx-sym { color: var(--gold-2); text-shadow: 0 0 24px rgba(201, 169, 97, 0.5); }
.hx-sym { display: block; font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--cinnabar); margin-bottom: 12px; transition: all 0.45s; }
.hf-extra h3 { font-family: var(--font-title); font-size: 19px; letter-spacing: 3px; color: var(--ink); margin-bottom: 12px; transition: color 0.45s; }
.hf-extra ul { list-style: none; }
.hf-extra li { position: relative; padding-left: 15px; font-size: 13px; line-height: 1.95; color: var(--ink-5); transition: color 0.45s; }
.hf-extra li::before { content: "—"; position: absolute; left: 0; top: 0; font-size: 11px; color: var(--cinnabar-2); }

/* 小标签 */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tags span { font-size: 11px; letter-spacing: 1px; padding: 3px 10px; background: rgba(168, 50, 44, 0.07); color: var(--cinnabar-3); border-radius: 2px; }
.misconception {
  margin-top: 40px; padding: 28px 32px;
  background: rgba(168, 50, 44, 0.05);
  border-left: 3px solid var(--cinnabar);
}
.misconception h4 { font-family: var(--font-title); font-size: 17px; letter-spacing: 3px; color: var(--cinnabar-3); margin-bottom: 10px; }
.misconception p { font-size: 13.5px; line-height: 2; color: var(--ink-5); }

/* 专栏 */
.art-feature {
  display: grid; grid-template-columns: 1.2fr 0.8fr;
  background: var(--ink-2); color: var(--paper);
  border: 1px solid rgba(201, 169, 97, 0.24);
  text-decoration: none; overflow: hidden; transition: all 0.5s;
}
a.art-feature:hover { border-color: var(--gold); box-shadow: 0 24px 60px rgba(8, 6, 5, 0.45); transform: translateY(-4px); }
.art-feature-main { padding: 58px 54px; }
.art-tag {
  display: inline-block; font-size: 12px; letter-spacing: 3px;
  color: var(--cinnabar-2); border: 1px solid rgba(168, 50, 44, 0.5);
  padding: 4px 12px; margin-bottom: 24px;
}
.art-feature h2 {
  font-family: var(--font-title); font-size: clamp(30px, 3.6vw, 44px);
  letter-spacing: 6px; color: var(--gold-2); margin-bottom: 18px;
}
.art-desc { font-size: 14.5px; line-height: 2.1; color: rgba(245, 240, 230, 0.7); margin-bottom: 26px; }
.art-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px; letter-spacing: 2px; color: rgba(245, 240, 230, 0.42); margin-bottom: 30px; }
.art-feature-aside {
  position: relative; display: grid; place-items: center;
  border-left: 1px solid rgba(201, 169, 97, 0.2);
  background: radial-gradient(70% 70% at 50% 40%, rgba(168, 50, 44, 0.28), transparent 72%);
}
.art-seal {
  writing-mode: vertical-rl; font-family: var(--font-display);
  font-size: clamp(38px, 4.4vw, 60px); letter-spacing: 0.22em;
  color: rgba(201, 169, 97, 0.85); line-height: 1.3;
}
.art-seal em { font-style: normal; color: var(--cinnabar-2); }

.art-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.art-card {
  display: block; text-decoration: none; padding: 32px 28px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(168, 50, 44, 0.15);
  transition: all 0.45s;
}
.art-card:hover { transform: translateY(-6px); border-color: var(--cinnabar); box-shadow: 0 18px 40px rgba(26, 22, 19, 0.14); }
.ac-num { font-family: var(--font-display); font-size: 28px; color: rgba(168, 50, 44, 0.3); line-height: 1; }
.art-card h3 { font-family: var(--font-title); font-size: 20px; letter-spacing: 3px; color: var(--ink); margin: 12px 0 10px; }
.art-card p { font-size: 13px; line-height: 1.9; color: var(--ink-5); }
.ac-link { display: inline-block; margin-top: 16px; font-size: 12px; letter-spacing: 3px; color: var(--cinnabar); }

/* 长文排版 */
.article-body { padding: 92px 0 120px; background: var(--paper); }
.prose { max-width: 800px; margin: 0 auto; font-size: 17px; line-height: 2.15; color: #2b2622; }
.prose > p { margin-bottom: 24px; text-indent: 2em; }
.prose h2 {
  font-family: var(--font-title); font-size: clamp(24px, 3vw, 31px);
  letter-spacing: 4px; color: var(--ink-2); margin: 62px 0 22px;
  padding-left: 18px; border-left: 4px solid var(--cinnabar); line-height: 1.45;
}
.prose h3 { font-family: var(--font-title); font-size: 20px; letter-spacing: 3px; color: var(--cinnabar-3); margin: 36px 0 14px; }
.prose strong { color: var(--cinnabar-3); font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 24px; padding-left: 1.4em; }
.prose li { margin-bottom: 8px; line-height: 2; }
.prose blockquote {
  margin: 36px 0; padding: 24px 30px;
  background: rgba(168, 50, 44, 0.05);
  border-left: 3px solid var(--cinnabar);
  font-family: var(--font-title); color: var(--ink-5);
}
.prose blockquote p { margin: 0; text-indent: 0; }
.prose hr { border: 0; height: 1px; width: 240px; margin: 56px auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.prose .center { text-align: center; text-indent: 0; font-family: var(--font-title); letter-spacing: 3px; color: var(--ink-5); }
.end-mark { text-align: center; text-indent: 0; margin-top: 46px; font-family: var(--font-title); letter-spacing: 8px; color: var(--gold-3); }
.source-note {
  max-width: 800px; margin: 56px auto 0; padding-top: 20px;
  border-top: 1px dashed rgba(26, 22, 19, 0.18);
  font-size: 12px; line-height: 2; color: var(--ink-5);
}
.article-nav { max-width: 800px; margin: 40px auto 0; display: flex; justify-content: space-between; gap: 16px; }
.article-nav a {
  font-size: 13px; letter-spacing: 2px; color: var(--cinnabar-3);
  text-decoration: none; border-bottom: 1px solid rgba(168, 50, 44, 0.3); padding-bottom: 2px;
}
.article-nav a:hover { color: var(--cinnabar); border-color: var(--cinnabar); }

/* 人物墙扩展 */
.heroes-grid.six { grid-template-columns: repeat(6, 1fr); }

/* 数据条 */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(184, 153, 104, 0.25); border: 1px solid rgba(184, 153, 104, 0.25); margin-top: 56px; }
.stat-cell { background: var(--paper); padding: 30px 20px; text-align: center; }
.stat-cell strong { display: block; font-family: var(--font-title); font-size: clamp(26px, 3vw, 38px); color: var(--cinnabar); line-height: 1.2; }
.stat-cell em { display: block; margin-top: 8px; font-style: normal; font-size: 12px; letter-spacing: 2px; color: var(--ink-5); }

/* 更多链接 */
.more-row { text-align: center; margin-top: 46px; }
.more-link {
  display: inline-block; font-family: var(--font-title); font-size: 14px;
  letter-spacing: 4px; color: var(--cinnabar); text-decoration: none;
  padding: 12px 30px; border: 1px solid rgba(168, 50, 44, 0.35); border-radius: 2px;
  transition: all 0.4s;
}
.more-link:hover { background: var(--cinnabar); border-color: var(--cinnabar); color: var(--paper); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(168, 50, 44, 0.3); }

@media (max-width: 1024px) {
  .lang-evo { grid-template-columns: repeat(3, 1fr); }
  .lang-evo::before { display: none; }
  .dialect-grid, .fest-grid, .hf-extra-grid { grid-template-columns: repeat(2, 1fr); }
  .term-grid, .ritual-grid { grid-template-columns: repeat(2, 1fr); }
  .phase-grid { grid-template-columns: repeat(2, 1fr); }
  .jieqi-grid { grid-template-columns: repeat(4, 1fr); }
  .heroes-grid.six { grid-template-columns: repeat(4, 1fr); }
  .art-feature { grid-template-columns: 1fr; }
  .art-feature-aside { display: none; }
  .art-list, .cross-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 150px 0 80px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .page-hero { padding: 132px 0 68px; }
  .page-title { letter-spacing: 0.08em; }
  .page-sub { font-size: 14px; }
  .lang-evo { grid-template-columns: repeat(2, 1fr); }
  .term-grid, .ritual-grid, .dialect-grid, .fest-grid, .hf-extra-grid, .phase-grid { grid-template-columns: 1fr; }
  .jieqi-grid { grid-template-columns: repeat(3, 1fr); }
  .heroes-grid.six { grid-template-columns: repeat(3, 1fr); }
  .art-feature-main { padding: 40px 26px; }
  .prose { font-size: 16px; }
  .prose h2 { margin-top: 48px; }
  .prose > p { text-indent: 2em; }
  .article-body { padding: 64px 0 80px; }
}

@media (max-width: 480px) {
  .heroes-grid.six { grid-template-columns: repeat(2, 1fr); }
  .jieqi-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   文化专题页（饮食 / 音乐戏曲 / 建筑园林 / 姓名宗族 / 检索）
   ============================================================ */
.classic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.classic-grid.four { grid-template-columns: repeat(4, 1fr); }
.classic-card {
  position: relative; overflow: hidden; padding: 32px 28px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(168, 50, 44, 0.14);
  transition: all 0.45s;
}
.classic-card::after {
  content: attr(data-sym); position: absolute; right: -8px; bottom: -26px;
  font-family: var(--font-display); font-size: 104px; line-height: 1;
  color: rgba(168, 50, 44, 0.06); pointer-events: none; transition: color 0.45s;
}
.classic-card:hover {
  background: var(--ink-2); border-color: var(--gold);
  transform: translateY(-6px); box-shadow: 0 20px 44px rgba(26, 22, 19, 0.24);
}
.classic-card:hover .ck-num { color: var(--gold-2); }
.classic-card:hover .ck-title { color: var(--gold-2); }
.classic-card:hover .ck-meta { color: rgba(201, 169, 97, 0.72); }
.classic-card:hover .ck-desc,
.classic-card:hover .ck-list li { color: rgba(245, 240, 230, 0.72); }
.classic-card:hover::after { color: rgba(201, 169, 97, 0.1); }
.ck-num { position: relative; z-index: 1; font-family: var(--font-display); font-size: 30px; line-height: 1; color: rgba(168, 50, 44, 0.32); transition: color 0.45s; }
.ck-title { position: relative; z-index: 1; font-family: var(--font-title); font-size: 22px; letter-spacing: 3px; color: var(--ink); margin: 12px 0 8px; transition: color 0.45s; }
.ck-meta { position: relative; z-index: 1; font-size: 12px; letter-spacing: 2px; color: var(--cinnabar-3); transition: color 0.45s; }
.ck-desc { position: relative; z-index: 1; margin-top: 10px; font-size: 13px; line-height: 1.95; color: var(--ink-5); transition: color 0.45s; }
.ck-list { position: relative; z-index: 1; list-style: none; margin-top: 12px; }
.ck-list li { position: relative; padding-left: 14px; font-size: 13px; line-height: 1.95; color: var(--ink-5); transition: color 0.45s; }
.ck-list li::before { content: "—"; position: absolute; left: 0; top: 0; font-size: 11px; color: var(--cinnabar-2); }

/* 百家姓字墙 */
.surname-wall { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; }
.surname-ch {
  display: grid; place-items: center; aspect-ratio: 1;
  font-family: var(--font-display); font-size: clamp(18px, 2.2vw, 28px);
  color: var(--ink-3); background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(184, 153, 104, 0.22); transition: all 0.35s;
}
.surname-ch:hover {
  background: var(--cinnabar); color: var(--paper); border-color: var(--cinnabar);
  transform: translateY(-3px); box-shadow: 0 10px 22px rgba(168, 50, 44, 0.28);
}

/* 站内检索 */
.search-wrap { max-width: 780px; margin: 0 auto; }
.search-box { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--ink-3); padding-bottom: 12px; }
.search-box input {
  flex: 1; min-width: 0; border: none; background: transparent; outline: none;
  font-family: var(--font-title); font-size: 24px; letter-spacing: 2px; color: var(--ink);
}
.search-box input::placeholder { color: rgba(43, 38, 34, 0.3); }
.search-btn {
  flex: none; font-family: var(--font-title); font-size: 15px; letter-spacing: 4px;
  color: var(--paper); background: var(--cinnabar); border: none;
  padding: 11px 24px; cursor: pointer; transition: all 0.3s;
}
.search-btn:hover { background: var(--cinnabar-3); box-shadow: 0 8px 20px rgba(168, 50, 44, 0.32); }
.search-tips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: 12px; color: var(--ink-5); }
.search-tips button {
  font-family: var(--font-body); font-size: 12px; letter-spacing: 1px; padding: 4px 12px;
  background: rgba(168, 50, 44, 0.06); border: 1px solid rgba(168, 50, 44, 0.2);
  color: var(--cinnabar-3); border-radius: 2px; cursor: pointer; transition: all 0.3s;
}
.search-tips button:hover { background: var(--cinnabar); border-color: var(--cinnabar); color: var(--paper); }
.search-count { margin: 40px 0 16px; font-size: 12px; letter-spacing: 2px; color: var(--ink-5); }
.search-list { display: grid; gap: 1px; background: rgba(184, 153, 104, 0.22); border: 1px solid rgba(184, 153, 104, 0.22); }
.search-item { display: block; text-decoration: none; background: var(--paper); padding: 24px 26px; transition: all 0.35s; }
.search-item:hover { background: #fffdf8; padding-left: 34px; }
.search-item .si-path { font-size: 11px; letter-spacing: 2px; color: var(--cinnabar-3); margin-bottom: 6px; }
.search-item h3 { font-family: var(--font-title); font-size: 19px; letter-spacing: 2px; color: var(--ink); margin-bottom: 6px; }
.search-item h3 em { font-style: normal; color: var(--cinnabar); background: rgba(168, 50, 44, 0.09); }
.search-item p { font-size: 13px; line-height: 1.9; color: var(--ink-5); }
.search-item p em { font-style: normal; color: var(--cinnabar); background: rgba(168, 50, 44, 0.09); }
.search-empty { padding: 64px 0; text-align: center; font-size: 14px; letter-spacing: 2px; color: var(--ink-5); }

@media (max-width: 1024px) {
  .classic-grid, .classic-grid.four { grid-template-columns: repeat(2, 1fr); }
  .surname-wall { grid-template-columns: repeat(8, 1fr); }
}
@media (max-width: 768px) {
  .classic-grid, .classic-grid.four { grid-template-columns: 1fr; }
  .surname-wall { grid-template-columns: repeat(6, 1fr); gap: 6px; }
  .search-box input { font-size: 19px; }
  .search-btn { padding: 10px 18px; letter-spacing: 2px; }
}

/* 两列专题卡 */
.art-list.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1024px) {
  .art-list.two { grid-template-columns: 1fr; }
}

/* 导航项增至七项后，中等屏幕收窄间距 */
@media (max-width: 1120px) and (min-width: 769px) {
  .nav-links a { padding: 10px 14px; letter-spacing: 1px; font-size: 13px; }
  .nav-links a::before { left: 10px; right: 10px; }
  .logo-text { font-size: 18px; letter-spacing: 2px; }
}

/* 联系邮箱 */
.sec-lead a, .prose a, .source-note a {
  color: var(--cinnabar-3); text-decoration: none;
  border-bottom: 1px solid rgba(168, 50, 44, 0.3);
}
.sec-lead a:hover, .prose a:hover, .source-note a:hover { color: var(--cinnabar); border-color: var(--cinnabar); }
.f-contact { margin-top: 6px; font-size: 12px; letter-spacing: 2px; color: rgba(245, 240, 230, 0.45); }
.footer-bottom a { color: var(--gold-2); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold-4); }
