/* ============================================================
   宋氏宗亲平台 2.0 · 文化模块设计系统
   移动端优先（H5 / 小程序），桌面端后台保持独立
   ============================================================ */

/* ---------- 页面主视觉 ---------- */
.v2-hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-hero);
  color: #fff;
  padding: 36px 0 24px;
}
.v2-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(201, 169, 98, 0.22), transparent 46%),
    radial-gradient(circle at 8% 92%, rgba(30, 107, 78, 0.28), transparent 50%);
  pointer-events: none;
}
.v2-hero-orn {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(201, 169, 98, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 169, 98, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}
.v2-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px;
}
.v2-hero-text { min-width: 0; }
.v2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--c-gold-light);
  border: 1px solid rgba(201, 169, 98, 0.34);
  border-radius: var(--r-full);
  padding: 4px 10px;
  margin-bottom: 12px;
}
.v2-title {
  font-family: var(--f-serif);
  font-size: 1.62rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
}
.v2-sub {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  line-height: 1.75;
  max-width: 34em;
}
.v2-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.v2-hero-actions .btn { padding: 9px 16px; font-size: 0.84rem; }
.v2-hero-seal {
  font-family: var(--f-brush);
  font-size: 4.4rem;
  line-height: 1;
  color: rgba(201, 169, 98, 0.42);
  border: 2px solid rgba(201, 169, 98, 0.24);
  border-radius: 10px;
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-4deg);
  flex: 0 0 auto;
  margin-bottom: 4px;
}
.v2-hero-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.v2-stat { text-align: center; }
.v2-stat-num {
  font-family: var(--f-serif);
  font-size: 1.22rem;
  color: var(--c-gold-light);
  font-weight: 700;
  line-height: 1.2;
}
.v2-stat-label { font-size: 0.68rem; color: rgba(255, 255, 255, 0.58); margin-top: 2px; }

/* ---------- 区块 ---------- */
.v2-section { padding: 26px 0; }
.v2-section.alt { background: var(--c-bg-2); }
.home-section.alt { background: var(--c-bg-2); }
.home-section .v2-grid { margin-top: 4px; }
.v2-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.v2-sec-en {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--c-gray-2);
  text-transform: uppercase;
  margin-bottom: 3px;
}
.v2-sec-title {
  font-family: var(--f-serif);
  font-size: 1.16rem;
  line-height: 1.3;
  color: var(--c-ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.v2-sec-title::before {
  content: '';
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--c-gold), var(--c-jade));
}
.v2-sec-desc { font-size: 0.76rem; color: var(--c-gray); margin-top: 4px; line-height: 1.6; }
.v2-sec-more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.76rem;
  color: var(--c-gray);
  white-space: nowrap;
  padding-bottom: 2px;
}
.v2-sec-more:hover { color: var(--c-gold-dark); }

/* ---------- 筛选标签 ---------- */
.v2-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 14px 10px 2px;
  scrollbar-width: none;
}
.v2-tabs::-webkit-scrollbar { display: none; }
.v2-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: var(--r-full);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  color: var(--c-gray);
  font-size: 0.8rem;
  transition: var(--t-fast);
}
.v2-tab.active {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--c-gold-light);
}
.v2-tab-count { font-size: 0.66rem; opacity: 0.72; }

/* ---------- 通用卡片 ---------- */
.v2-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.v2-grid.cols-1 { grid-template-columns: 1fr; }
.v2-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: block;
  transition: var(--t-base);
}
.v2-card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: #D9CFB8; }
.v2-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: var(--r-full);
  background: var(--c-gold-soft);
  color: var(--c-gold-dark);
  font-size: 0.66rem;
  white-space: nowrap;
}
.v2-chip.jade { background: var(--c-jade-soft); color: var(--c-jade); }
.v2-chip.blue { background: #EAF1F7; color: var(--c-blue); }
.v2-chip.red { background: #F8EAEA; color: var(--c-red); }
.v2-meta { font-size: 0.7rem; color: var(--c-gray-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- 文化馆 ---------- */
.v2-culture-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.v2-culture-feature {
  position: relative;
  display: block;
  border-radius: var(--r-lg);
  color: #fff;
  padding: 26px 20px;
  overflow: hidden;
  min-height: 176px;
}
.v2-culture-feature::after {
  content: attr(data-seal);
  position: absolute;
  right: 14px;
  bottom: -18px;
  font-family: var(--f-brush);
  font-size: 5.4rem;
  color: rgba(255, 255, 255, 0.12);
  line-height: 1;
}
.v2-cf-tag { display: inline-block; padding: 2px 10px; border-radius: var(--r-full); background: rgba(255,255,255,0.16); font-size: 0.68rem; margin-bottom: 12px; }
.v2-cf-title { font-family: var(--f-serif); font-size: 1.2rem; line-height: 1.45; margin-bottom: 8px; color: #fff; }
.v2-cf-sub { font-size: 0.78rem; color: rgba(255,255,255,0.76); line-height: 1.7; }
.v2-culture-card-cover {
  position: relative;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.9);
  font-family: var(--f-serif);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
}
.v2-culture-card-cover::after {
  content: attr(data-seal);
  position: absolute;
  right: 8px;
  bottom: -10px;
  font-family: var(--f-brush);
  font-size: 2.6rem;
  color: rgba(255, 255, 255, 0.18);
  line-height: 1;
}
.v2-culture-card-body { padding: 12px 13px 14px; }
.v2-cc-title { font-family: var(--f-serif); font-size: 0.92rem; line-height: 1.45; font-weight: 600; }
.v2-cc-sum { margin-top: 5px; font-size: 0.72rem; color: var(--c-gray); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v2-cc-foot { margin-top: 9px; display: flex; justify-content: space-between; align-items: center; }

/* ---------- 文章详情 ---------- */
.v2-article-hero {
  position: relative;
  padding: 34px 0 28px;
  color: #fff;
  overflow: hidden;
}
.v2-article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.42));
}
.v2-ah-inner { position: relative; z-index: 2; }
.v2-ah-cat { display: inline-block; padding: 3px 10px; border-radius: var(--r-full); background: rgba(201,169,98,0.24); color: #F3E5C4; font-size: 0.68rem; letter-spacing: 0.08em; margin-bottom: 12px; }
.v2-ah-title { font-family: var(--f-serif); font-size: 1.5rem; line-height: 1.42; color: #fff; }
.v2-ah-sub { margin-top: 8px; font-size: 0.82rem; color: rgba(255,255,255,0.76); line-height: 1.7; }
.v2-ah-meta { margin-top: 14px; font-size: 0.7rem; color: rgba(255,255,255,0.6); display: flex; gap: 12px; flex-wrap: wrap; }
.v2-article-body { padding: 22px 0 8px; }
.v2-prose { max-width: 780px; }
.v2-prose-section { margin-bottom: 22px; }
.v2-prose-section h2 {
  font-family: var(--f-serif);
  font-size: 1.02rem;
  color: var(--c-ink);
  margin-bottom: 7px;
  padding-left: 10px;
  border-left: 3px solid var(--c-gold);
  line-height: 1.5;
}
.v2-prose-section p { font-size: 0.9rem; color: var(--c-charcoal); line-height: 1.95; text-align: justify; }
.v2-quote {
  position: relative;
  margin: 18px 0;
  padding: 18px 18px 18px 40px;
  background: var(--c-gold-soft);
  border-radius: var(--r-md);
  font-family: var(--f-serif);
  color: var(--c-gold-dark);
  font-size: 0.94rem;
  line-height: 1.8;
}
.v2-quote::before {
  content: '“';
  position: absolute;
  left: 12px;
  top: 2px;
  font-family: var(--f-serif);
  font-size: 2.2rem;
  color: var(--c-gold);
  opacity: 0.7;
}
.v2-tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 18px; }
.v2-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.v2-pager a { padding: 12px 14px; border-radius: var(--r-md); background: var(--c-surface); border: 1px solid var(--c-line); font-size: 0.76rem; color: var(--c-gray); }
.v2-pager a b { display: block; color: var(--c-ink); font-family: var(--f-serif); font-size: 0.85rem; margin-top: 3px; }

/* ---------- 名贤堂 ---------- */
.v2-notable-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.v2-notable-card { padding: 16px 13px; text-align: center; }
.v2-nc-seal {
  width: 56px;
  height: 56px;
  margin: 0 auto 9px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--f-serif);
  font-size: 1.3rem;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.16), 0 6px 16px rgba(0,0,0,0.12);
}
.v2-nc-name { font-family: var(--f-serif); font-weight: 700; font-size: 1rem; }
.v2-nc-title { font-size: 0.7rem; color: var(--c-gray); margin-top: 2px; }
.v2-nc-meta { display: flex; justify-content: center; gap: 5px; margin-top: 8px; flex-wrap: wrap; }
.v2-influence { margin-top: 9px; height: 4px; border-radius: 4px; background: var(--c-line-2); overflow: hidden; }
.v2-influence-bar { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--c-gold), var(--c-jade)); }
.v2-notable-hero { padding: 30px 0 24px; background: var(--grad-ink); color: #fff; position: relative; overflow: hidden; }
.v2-nh-inner { display: flex; align-items: center; gap: 16px; position: relative; z-index: 2; }
.v2-nh-seal {
  width: 74px;
  height: 74px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-serif);
  font-size: 2rem;
  color: #fff;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.18);
}
.v2-nh-name { font-family: var(--f-serif); font-size: 1.7rem; line-height: 1.2; }
.v2-nh-title { font-size: 0.78rem; color: var(--c-gold-light); margin-top: 4px; }
.v2-nh-meta { font-size: 0.72rem; color: rgba(255,255,255,0.62); margin-top: 6px; display: flex; gap: 10px; flex-wrap: wrap; }
.v2-achievements { display: flex; flex-wrap: wrap; gap: 8px; }
.v2-achievement { padding: 7px 12px; background: var(--c-jade-soft); color: var(--c-jade); border-radius: var(--r-full); font-size: 0.76rem; }
.v2-timeline { position: relative; padding-left: 20px; }
.v2-timeline::before { content: ''; position: absolute; left: 5px; top: 4px; bottom: 4px; width: 2px; background: linear-gradient(180deg, var(--c-gold), var(--c-jade)); opacity: 0.5; }
.v2-tl-item { position: relative; padding-bottom: 20px; }
.v2-tl-item::before { content: ''; position: absolute; left: -19px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--c-gold); box-shadow: 0 0 0 3px var(--c-gold-soft); }
.v2-tl-year { font-family: var(--f-serif); font-size: 0.84rem; color: var(--c-gold-dark); font-weight: 600; }
.v2-tl-text { font-size: 0.84rem; color: var(--c-charcoal); margin-top: 3px; line-height: 1.7; }

/* ---------- 谱牒文库 ---------- */
.v2-archive-list { display: grid; grid-template-columns: 1fr; gap: 12px; }
.v2-archive-card { display: flex; gap: 12px; padding: 12px; }
.v2-arch-cover {
  width: 74px;
  min-width: 74px;
  height: 100px;
  border-radius: 6px 10px 10px 6px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--f-serif);
  box-shadow: 3px 0 0 rgba(0,0,0,0.14) inset;
}
.v2-arch-cover span { font-size: 1.5rem; line-height: 1.2; }
.v2-arch-cover em { font-style: normal; font-size: 0.6rem; color: rgba(255,255,255,0.72); margin-top: 4px; writing-mode: vertical-rl; letter-spacing: 0.1em; }
.v2-arch-info { min-width: 0; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.v2-arch-title { font-family: var(--f-serif); font-size: 0.96rem; font-weight: 600; line-height: 1.4; }
.v2-arch-sum { font-size: 0.72rem; color: var(--c-gray); margin-top: 5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v2-arch-meta { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.v2-reader-toc { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; }
.v2-toc-item { border-bottom: 1px solid var(--c-line-2); }
.v2-toc-item:last-child { border-bottom: none; }
.v2-toc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  text-align: left;
  font-family: var(--f-serif);
  font-size: 0.92rem;
  color: var(--c-ink);
}
.v2-toc-head .n { color: var(--c-gold-dark); font-size: 0.72rem; margin-right: 8px; }
.v2-toc-body { padding: 0 16px 16px; font-size: 0.86rem; color: var(--c-charcoal); line-height: 1.95; text-align: justify; display: none; }
.v2-toc-item.open .v2-toc-body { display: block; }
.v2-toc-item.open .v2-toc-head { color: var(--c-gold-dark); }

/* ---------- 家族公益 ---------- */
.v2-charity-card { display: block; }
.v2-cc-cover { height: 88px; position: relative; display: flex; align-items: flex-end; padding: 12px; color: #fff; }
.v2-cc-cover::after { content: attr(data-cat); position: absolute; right: 10px; top: 8px; font-size: 0.64rem; padding: 2px 8px; border-radius: var(--r-full); background: rgba(255,255,255,0.18); }
.v2-charity-body { padding: 12px 13px 14px; }
.v2-charity-title { font-family: var(--f-serif); font-size: 0.92rem; font-weight: 600; line-height: 1.45; }
.v2-charity-sum { margin-top: 4px; font-size: 0.72rem; color: var(--c-gray); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v2-charity-foot { margin-top: 10px; display: flex; justify-content: space-between; font-size: 0.68rem; color: var(--c-gray-2); }
.v2-progress-wrap { margin-top: 10px; }
.v2-progress { height: 6px; border-radius: 6px; background: var(--c-line-2); overflow: hidden; }
.v2-progress-bar { height: 100%; border-radius: 6px; transition: width 0.5s ease; }
.v2-progress-meta { display: flex; justify-content: space-between; font-size: 0.66rem; color: var(--c-gray); margin-top: 5px; }
.v2-progress-meta b { color: var(--c-jade); font-size: 0.72rem; }
.v2-charity-hero { padding: 30px 0 22px; color: #fff; position: relative; overflow: hidden; }
.v2-ch-inner { position: relative; z-index: 2; }
.v2-ch-cat { display: inline-block; font-size: 0.68rem; letter-spacing: 0.08em; padding: 3px 10px; border-radius: var(--r-full); background: rgba(255,255,255,0.16); margin-bottom: 10px; }
.v2-ch-title { font-family: var(--f-serif); font-size: 1.45rem; line-height: 1.4; }
.v2-ch-sum { font-size: 0.8rem; color: rgba(255,255,255,0.76); margin-top: 6px; line-height: 1.7; }
.v2-donate-card { padding: 18px 16px; }
.v2-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.v2-amount { padding: 9px 0; border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-surface); color: var(--c-ink); font-size: 0.8rem; }
.v2-amount.active { border-color: var(--c-gold-dark); background: var(--c-gold-soft); color: var(--c-gold-dark); font-weight: 600; }
.v2-donor-wall { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.v2-donor { padding: 10px 12px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); }
.v2-donor-name { font-size: 0.78rem; color: var(--c-ink); display: flex; justify-content: space-between; gap: 6px; }
.v2-donor-msg { font-size: 0.68rem; color: var(--c-gray); margin-top: 3px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v2-update-item { padding: 12px 0; border-bottom: 1px dashed var(--c-line); }
.v2-update-date { font-size: 0.66rem; color: var(--c-gray-2); }
.v2-update-text { font-size: 0.82rem; color: var(--c-charcoal); margin-top: 4px; line-height: 1.7; }

/* ---------- 编修协同 ---------- */
.v2-compile-stat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.v2-cs-item { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 12px 6px; text-align: center; }
.v2-cs-num { font-family: var(--f-serif); font-size: 1.1rem; color: var(--c-jade); font-weight: 700; }
.v2-cs-label { font-size: 0.64rem; color: var(--c-gray); margin-top: 2px; }
.v2-task-card { padding: 14px; }
.v2-task-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.v2-task-title { font-family: var(--f-serif); font-size: 0.96rem; font-weight: 600; line-height: 1.4; }
.v2-task-desc { font-size: 0.74rem; color: var(--c-gray); line-height: 1.7; margin-top: 6px; }
.v2-task-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 8px; }
.v2-task-points { font-size: 0.68rem; color: var(--c-orange); }
.v2-leader-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--c-line); }
.v2-leader-rank { width: 22px; height: 22px; border-radius: 50%; background: var(--c-bg-2); color: var(--c-gray); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; flex: 0 0 auto; }
.v2-leader-item:nth-child(1) .v2-leader-rank { background: var(--c-gold); color: #fff; }
.v2-leader-item:nth-child(2) .v2-leader-rank { background: #C9C2B2; color: #fff; }
.v2-leader-item:nth-child(3) .v2-leader-rank { background: #C08A62; color: #fff; }
.v2-leader-name { flex: 1; font-size: 0.82rem; }
.v2-leader-count { font-size: 0.7rem; color: var(--c-gray); }
.v2-record { padding: 12px 0; border-bottom: 1px dashed var(--c-line); }
.v2-record-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.v2-record-status { font-size: 0.66rem; padding: 2px 8px; border-radius: var(--r-full); }
.v2-record-status.pending { background: #FBF1E2; color: var(--c-orange); }
.v2-record-status.approved { background: var(--c-jade-soft); color: var(--c-jade); }
.v2-record-status.rejected { background: #F8EAEA; color: var(--c-red); }
.v2-record-text { font-size: 0.76rem; color: var(--c-gray); line-height: 1.65; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 家族影像 ---------- */
.v2-gallery { column-count: 2; column-gap: 10px; }
.v2-gallery-item { break-inside: avoid; margin-bottom: 10px; position: relative; border-radius: var(--r-md); overflow: hidden; }
.v2-gallery-block { position: relative; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.9); font-family: var(--f-serif); padding: 18px 10px; min-height: 130px; }
.v2-gallery-block span { font-size: 1rem; letter-spacing: 0.08em; text-align: center; }
.v2-gallery-info { padding: 9px 10px 11px; background: var(--c-surface); }
.v2-gallery-title { font-size: 0.78rem; font-weight: 600; line-height: 1.5; }
.v2-gallery-meta { font-size: 0.64rem; color: var(--c-gray-2); margin-top: 3px; display: flex; justify-content: space-between; gap: 6px; }

/* ---------- 家族大数据 ---------- */
.v2-overview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.v2-ov-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 14px; }
.v2-ov-num { font-family: var(--f-serif); font-size: 1.3rem; color: var(--c-gold-dark); font-weight: 700; line-height: 1.2; }
.v2-ov-label { font-size: 0.68rem; color: var(--c-gray); margin-top: 2px; }
.v2-chart-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 16px; margin-bottom: 12px; }
.v2-chart-title { font-family: var(--f-serif); font-size: 0.94rem; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.v2-bars { display: flex; flex-direction: column; gap: 9px; }
.v2-bar-row { display: grid; grid-template-columns: 56px 1fr 34px; gap: 8px; align-items: center; }
.v2-bar-label { font-size: 0.7rem; color: var(--c-gray); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-bar-track { height: 8px; border-radius: 8px; background: var(--c-line-2); overflow: hidden; }
.v2-bar-fill { height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--c-gold), var(--c-jade)); }
.v2-bar-val { font-size: 0.68rem; color: var(--c-gray-2); text-align: right; }
.v2-gen-ladder { display: flex; flex-wrap: wrap; gap: 8px; }
.v2-gen-char { width: 42px; height: 42px; border-radius: 8px; background: var(--c-ink); color: var(--c-gold-light); font-family: var(--f-serif); font-size: 1.15rem; display: flex; align-items: center; justify-content: center; position: relative; }
.v2-gen-char em { position: absolute; right: 2px; bottom: 0; font-style: normal; font-size: 0.54rem; color: rgba(255,255,255,0.5); }
.v2-donut-wrap { display: flex; align-items: center; gap: 18px; }
.v2-donut { width: 118px; height: 118px; border-radius: 50%; position: relative; flex: 0 0 auto; }
.v2-donut::after { content: ''; position: absolute; inset: 22px; background: var(--c-surface); border-radius: 50%; }
.v2-donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 2; }
.v2-donut-center b { font-family: var(--f-serif); font-size: 1.1rem; color: var(--c-ink); }
.v2-donut-center span { font-size: 0.6rem; color: var(--c-gray-2); }
.v2-legend { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.v2-legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; color: var(--c-gray); }
.v2-legend-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.v2-migration { display: flex; flex-direction: column; gap: 0; }
.v2-mig-item { display: grid; grid-template-columns: 64px 1fr; gap: 12px; position: relative; padding-bottom: 18px; }
.v2-mig-era { font-size: 0.68rem; color: var(--c-gold-dark); text-align: right; padding-top: 2px; }
.v2-mig-body { border-left: 2px solid var(--c-line); padding-left: 14px; position: relative; }
.v2-mig-body::before { content: ''; position: absolute; left: -6px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--c-jade); }
.v2-mig-route { font-family: var(--f-serif); font-size: 0.9rem; }
.v2-mig-desc { font-size: 0.7rem; color: var(--c-gray); margin-top: 2px; }

/* ---------- 数字宗祠 ---------- */
.v2-hall-hero { padding: 32px 0 24px; color: #fff; position: relative; overflow: hidden; }
.v2-hall-hero::after { content: attr(data-seal); position: absolute; right: 10px; top: 4px; font-family: var(--f-brush); font-size: 7rem; color: rgba(201,169,98,0.14); }
.v2-hall-tag { display: inline-block; font-size: 0.66rem; padding: 2px 9px; border-radius: var(--r-full); background: rgba(255,255,255,0.16); margin: 0 4px 8px 0; }
.v2-hall-name { font-family: var(--f-serif); font-size: 1.55rem; line-height: 1.4; }
.v2-hall-loc { font-size: 0.74rem; color: rgba(255,255,255,0.66); margin-top: 6px; }
.v2-hall-intro { font-size: 0.84rem; color: rgba(255,255,255,0.78); line-height: 1.8; margin-top: 10px; }
.v2-couplet { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
.v2-couplet-col { background: var(--c-ink); color: var(--c-gold-light); font-family: var(--f-xiaowei); writing-mode: vertical-rl; text-align: center; padding: 18px 10px; border-radius: 8px; font-size: 0.86rem; letter-spacing: 0.16em; line-height: 1.8; }
.v2-hall-msg { padding: 11px 0; border-bottom: 1px dashed var(--c-line); }
.v2-hall-msg-head { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--c-gray-2); }
.v2-hall-msg-text { font-size: 0.82rem; color: var(--c-charcoal); line-height: 1.75; margin-top: 3px; }

/* ---------- 平台介绍 ---------- */
.v2-pillar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.v2-pillar { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 16px 13px; }
.v2-pillar-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--c-gold-soft); color: var(--c-gold-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 9px; }
.v2-pillar-title { font-family: var(--f-serif); font-size: 0.9rem; font-weight: 600; }
.v2-pillar-desc { font-size: 0.72rem; color: var(--c-gray); line-height: 1.65; margin-top: 4px; }
.v2-roadmap { position: relative; padding-left: 18px; }
.v2-roadmap::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--c-line); }
.v2-road-item { position: relative; padding-bottom: 18px; }
.v2-road-item::before { content: ''; position: absolute; left: -17px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--c-line); }
.v2-road-item.done::before { background: var(--c-jade); box-shadow: 0 0 0 3px var(--c-jade-soft); }
.v2-road-phase { font-size: 0.66rem; color: var(--c-gold-dark); }
.v2-road-title { font-family: var(--f-serif); font-size: 0.9rem; }
.v2-road-desc { font-size: 0.72rem; color: var(--c-gray); margin-top: 2px; line-height: 1.6; }
.v2-contact-card { background: var(--grad-ink); color: #fff; border-radius: var(--r-lg); padding: 22px 18px; text-align: center; }
.v2-contact-card h3 { font-family: var(--f-serif); font-size: 1.1rem; color: var(--c-gold-light); }
.v2-contact-card p { font-size: 0.76rem; color: rgba(255,255,255,0.66); margin-top: 6px; }

/* ---------- 骨架与空态 ---------- */
.v2-skeleton-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 20px 0; }
.v2-skeleton { height: 160px; border-radius: var(--r-lg); background: linear-gradient(90deg, #F0EBDF 25%, #F8F4EC 37%, #F0EBDF 63%); background-size: 400% 100%; animation: v2shimmer 1.4s ease infinite; }
@keyframes v2shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.v2-empty { text-align: center; padding: 44px 16px; color: var(--c-gray); }
.v2-empty-icon { color: var(--c-line); margin-bottom: 10px; display: flex; justify-content: center; }
.v2-empty h4 { font-family: var(--f-serif); font-size: 0.94rem; color: var(--c-charcoal); }
.v2-empty p { font-size: 0.74rem; color: var(--c-gray-2); margin-top: 4px; }

/* ---------- 桌面端适配（仅阅读端，后台另行设计） ---------- */
@media (min-width: 900px) {
  .v2-hero { padding: 56px 0 34px; }
  .v2-title { font-size: 2.2rem; }
  .v2-sub { font-size: 0.94rem; }
  .v2-hero-seal { width: 118px; height: 118px; font-size: 6rem; }
  .v2-hero-stats { grid-template-columns: repeat(6, 1fr); }
  .v2-stat-num { font-size: 1.5rem; }
  .v2-stat-label { font-size: 0.74rem; }
  .v2-section { padding: 40px 0; }
  .v2-sec-title { font-size: 1.44rem; }
  .v2-tabs { flex-wrap: wrap; overflow: visible; }
  .v2-culture-grid { grid-template-columns: repeat(3, 1fr); }
  .v2-culture-feature { grid-column: span 3; min-height: 220px; padding: 40px 34px; }
  .v2-cf-title { font-size: 1.7rem; }
  .v2-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .v2-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v2-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .v2-notable-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .v2-notable-card { padding: 24px 16px; }
  .v2-nc-seal { width: 68px; height: 68px; font-size: 1.6rem; }
  .v2-archive-list { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .v2-donor-wall { grid-template-columns: repeat(3, 1fr); }
  .v2-overview-grid { grid-template-columns: repeat(4, 1fr); }
  .v2-pillar-grid { grid-template-columns: repeat(3, 1fr); }
  .v2-gallery { column-count: 3; }
  .v2-compile-stat { grid-template-columns: repeat(4, 1fr); }
  .v2-article-hero { padding: 52px 0 38px; }
  .v2-ah-title { font-size: 2rem; }
  .v2-prose { max-width: 820px; }
  .v2-article-body .container { max-width: 820px; }
  .v2-notable-hero { padding: 48px 0 32px; }
  .v2-nh-seal { width: 96px; height: 96px; font-size: 2.6rem; }
  .v2-nh-name { font-size: 2.2rem; }
  .v2-charity-hero { padding: 48px 0 32px; }
  .v2-ch-title { font-size: 1.9rem; }
  .v2-hall-hero { padding: 50px 0 36px; }
  .v2-hall-name { font-size: 2rem; }
}

/* ============================================================
   内容卡片布局保底
   避免旧缓存 / 异常样式使卡片塌缩成窄竖条或竖排文字
   ============================================================ */
.v2-grid > *,
.v2-culture-grid > *,
.v2-notable-grid > *,
.v2-archive-list > * {
  min-width: 0;
  writing-mode: horizontal-tb;
}

.v2-card,
.v2-culture-card-body,
.v2-culture-card-cover,
.v2-cc-title,
.v2-cc-sum,
.v2-cc-foot {
  writing-mode: horizontal-tb;
}

.v2-cc-title,
.v2-cc-sum {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.v2-culture-card-cover span {
  writing-mode: horizontal-tb;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .v2-grid:not(.cols-1) {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
  }
  .v2-culture-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
  .v2-grid > * {
    min-width: 0 !important;
  }
  .v2-card {
    width: 100% !important;
  }
}
