/* ============================================================
 * 喵野·喵呜托邦 MeowUtopia — 全站样式
 * 方向：编辑部分栏 + 色块章节。
 * 底：暖纸白 / 夜绿（色场章节），墨：深炭棕，点缀：橘猫橙（<5%，只给动作）。
 * 禁渐变、禁静止阴影、方角默认、系统中文字体栈。
 * ============================================================ */

:root {
  --paper: #f7f3ec;        /* 暖纸白底 */
  --paper-2: #efe9de;      /* 色阶一步：面板底 */
  --night: #3f5d4c;        /* 苔绿：hero / 深色章节（比墨绿浅一档，暖一些） */
  --night-2: #4e6f5c;      /* 苔绿亮一档 */
  --ink: #2b241c;          /* 全墨正文 */
  --muted: #6f6355;        /* 次级文字（对纸白 4.5:1+） */
  --accent: #c96f2e;       /* 橘猫橙：只给按钮与至多一处 */
  --accent-ink: #a55517;   /* 橙的可读深版 */
  --line-strong: 4px solid var(--ink);   /* 粗条算图形元素 */
  --font: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --serif: "Noto Serif CJK SC", "Songti SC", serif;
  --pad-x: clamp(20px, 5vw, 64px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 16px; color: var(--ink); }

/* ---------- 品牌置顶条（每个页面都有） ---------- */
html { -webkit-tap-highlight-color: rgba(0,0,0,0); }
a, button, select, input, textarea, label, summary { -webkit-tap-highlight-color: transparent; }
.brandbar {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 6px 16px;
  padding: 10px var(--pad-x);
  background: var(--paper);
  border-bottom: var(--line-strong);
  position: sticky; top: 0; z-index: 50;
}
.brandbar .logo {
  font-size: 19px; font-weight: 800; letter-spacing: 0.02em;
  text-decoration: none; white-space: nowrap;
}
.brandbar .logo small { font-weight: 500; color: var(--muted); font-size: 12px; margin-left: 8px; }
.brandbar .btn-contact {
  margin-left: auto; order: 1;
  padding: 8px 18px; min-height: 40px; line-height: 22px; font-size: 14px;
}
.brandbar nav {
  order: 2; width: 100%;
  display: flex; gap: 4px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.brandbar nav::-webkit-scrollbar { display: none; }
.brandbar nav a {
  text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; white-space: nowrap;
}
.brandbar nav a:hover { background: var(--paper-2); }
.brandbar nav a.active { background: var(--ink); color: var(--paper); }
@media (min-width: 760px) {
  .brandbar nav { order: 0; width: auto; overflow: visible; margin-left: 12px; }
  .brandbar .btn-contact { order: 0; margin-left: auto; }
}
/* 键盘/读屏用户的焦点环（替代被去掉的蓝色轻拍块） */
a:focus-visible, button:focus-visible, select:focus-visible,
input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; text-align: center;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: 15px;
  padding: 10px 20px; border: none; border-radius: 999px;
  min-height: 44px; line-height: 1.4;
}
.btn:hover { background: var(--accent-ink); }
.btn.ghost {
  background: transparent; color: var(--ink);
  border: 2px solid var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- 首屏（夜绿色场） ---------- */
.hero {
  background: var(--night); color: #f2ede3;
  padding: clamp(72px, 12vw, 140px) var(--pad-x);
}
.hero .kicker { font-size: 15px; color: #c9c0ac; margin-bottom: 20px; }
.hero h1 {
  font-size: clamp(40px, 8vw, 88px);
  line-height: 1.02; letter-spacing: -0.02em; font-weight: 900;
  max-width: 12em;
}
.hero .intro {
  margin-top: 28px; max-width: 34em;
  font-size: 17px; color: #e0d9ca;
}
.hero .actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero .hero-num {
  margin-top: clamp(48px, 7vw, 84px);
  font-size: clamp(56px, 9vw, 120px); font-weight: 900;
  letter-spacing: -0.04em; line-height: 0.9; color: #f2ede3;
}
.hero .hero-num small {
  display: block; font-size: 16px; font-weight: 500;
  letter-spacing: 0; color: #c9c0ac; margin-top: 10px;
}
.hero .stat-line { display: flex; gap: 32px; margin-top: 26px; flex-wrap: wrap; }
.hero .stat-line div {
  font-size: clamp(24px, 3.4vw, 36px); font-weight: 900;
  letter-spacing: -0.02em; color: #f2ede3;
}
.hero .stat-line small {
  display: block; font-size: 13px; font-weight: 500;
  letter-spacing: 0; color: #c9c0ac; margin-top: 4px;
}
/* 阔屏机（√2:1 那类）：标题与统计左右两栏，首屏更矮更满 */
@media (min-width: 760px) {
  .hero { display: grid; grid-template-columns: 1.4fr 1fr; column-gap: 56px; align-items: end; }
  .hero .hero-num { margin-top: 0; text-align: right; }
  .hero .stat-line { justify-content: flex-end; }
}

/* ---------- 通用区块 ---------- */
.section { padding: clamp(72px, 10vw, 140px) var(--pad-x); }
.section.tight { padding-top: 48px; }
.section-head {
  display: grid; grid-template-columns: minmax(180px, 1fr) 2.2fr;
  gap: 24px; margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.1; letter-spacing: -0.02em; font-weight: 900;
}
.section-head .sub { color: var(--muted); font-size: 16px; max-width: 40em; }
@media (max-width: 720px) {
  .section-head { grid-template-columns: 1fr; gap: 12px; }
}

/* 深色章节 */
.section.dark { background: var(--night); color: #f2ede3; }
.section.dark .section-head .sub { color: #c9c0ac; }

/* ---------- 待领养：筛选 + 档案卡 ---------- */
/* 筛选：窄屏标签在上、选择框占满整格；宽屏一行横排 */
.filters {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  align-items: end; margin-bottom: 36px;
}
@media (min-width: 760px) {
  .filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; }
}
.f-item { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
@media (min-width: 760px) { .f-item { flex-direction: row; align-items: center; gap: 8px; } }
.f-item label { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.f-item select {
  flex: 1; min-width: 0; width: 100%;
  padding: 11px 34px 11px 14px;
  border: 2px solid var(--ink); border-radius: 0;
  background: var(--paper)
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232b241c' stroke-width='2' fill='none'/%3E%3C/svg%3E")
    no-repeat right 12px center;
  -webkit-appearance: none; appearance: none;
  font-weight: 600; min-height: 44px;
  text-overflow: ellipsis; overflow: hidden; white-space: nowrap;
}
.filters .count {
  grid-column: 1 / -1;
  font-size: 14px; color: var(--muted); font-weight: 600;
}
@media (min-width: 760px) {
  .filters .count { grid-column: auto; margin-left: auto; }
}

.cat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
@media (max-width: 960px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cat-grid { grid-template-columns: 1fr; } }

.cat-card {
  background: var(--paper-2);
  display: flex; flex-direction: column;
}
.cat-card .ph {
  aspect-ratio: 4 / 3; overflow: hidden; position: relative;
  background: var(--night-2);
}
.cat-card .ph img { width: 100%; height: 100%; object-fit: cover; }
/* 无照片：夜绿色场 + 大字名字（编辑式占位，不是灰块） */
.cat-card .ph.noimg {
  display: flex; align-items: center; justify-content: center;
}
.cat-card .ph.noimg::before {
  content: attr(data-name);
  font-size: clamp(40px, 6vw, 64px); font-weight: 900; color: #f2ede3;
  letter-spacing: -0.02em;
}
.cat-card .body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cat-card .row1 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cat-card h3 { font-size: 24px; font-weight: 900; letter-spacing: -0.01em; }
.cat-card .no { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cat-card .meta { font-size: 14px; color: var(--muted); }
.cat-card .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-card .tags span {
  font-size: 12px; font-weight: 700; padding: 4px 10px;
  background: var(--paper); border-radius: 999px;
}
.cat-card .story { font-size: 14px; color: var(--ink); }
.cat-card .story.clamp {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; cursor: pointer;
}
.cat-card .story.clamp::after {
  content: '…点开看全部'; color: var(--accent-ink); font-weight: 700;
}
.cat-card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.status {
  font-size: 13px; font-weight: 800; padding: 4px 12px; border-radius: 999px;
}
.status.ok { background: var(--night); color: #f2ede3; }
.status.done { background: var(--paper); color: var(--muted); }

/* ---------- 功课 ---------- */
.note-search { margin-bottom: 12px; max-width: 520px; }
.note-search input {
  width: 100%; padding: 14px 18px;
  border: 2px solid var(--ink); border-radius: 999px; background: #fff;
}
.hot-words { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.hot-words button {
  border: 2px solid var(--ink); background: transparent; border-radius: 999px;
  padding: 6px 14px; font-size: 14px; font-weight: 700;
}
.hot-words button:hover, .hot-words button.on { background: var(--ink); color: var(--paper); }

.note-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: var(--line-strong); }
@media (max-width: 820px) { .note-list { grid-template-columns: 1fr; } }
.note-item {
  padding: 26px 24px; border-bottom: var(--line-strong);
  cursor: pointer; background: transparent; text-align: left; width: 100%;
  border-left: none; border-right: none; border-top: none;
  display: block;
}
.note-item:nth-child(odd) { border-right: var(--line-strong); }
@media (max-width: 820px) { .note-item:nth-child(odd) { border-right: none; } }
.note-item:hover { background: var(--paper-2); }
.note-item .pin {
  font-size: 12px; font-weight: 900; color: var(--accent-ink);
  letter-spacing: 0.06em; margin-right: 8px;
}
.note-item h3 { font-size: 20px; font-weight: 800; display: inline; }
.note-item p {
  margin-top: 10px; font-size: 14px; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.note-item .tags { margin-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.note-item .tags span { font-size: 12px; color: var(--muted); background: var(--paper-2); padding: 3px 10px; border-radius: 999px; }
.note-item mark { background: #f5d9a8; padding: 0 2px; }
.note-empty { padding: 48px 0; color: var(--muted); }

/* 功课详情弹层 */
.overlay {
  position: fixed; inset: 0; background: rgba(63, 93, 76, 0.55);
  display: none; align-items: flex-start; justify-content: center;
  padding: 5vh 16px; z-index: 100; overflow-y: auto;
}
.overlay.open { display: flex; }
.sheet {
  background: var(--paper); max-width: 720px; width: 100%;
  padding: clamp(24px, 4vw, 48px);
  position: relative; margin-bottom: 5vh;
}
.sheet .close {
  position: absolute; top: 14px; right: 14px;
  width: 44px; height: 44px; border: none; background: var(--paper-2);
  font-size: 20px; font-weight: 700; border-radius: 999px;
}
.sheet h2 { font-size: clamp(24px, 4vw, 36px); font-weight: 900; letter-spacing: -0.01em; margin-bottom: 8px; }
.sheet .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.sheet .tags span { font-size: 12px; background: var(--paper-2); padding: 3px 10px; border-radius: 999px; color: var(--muted); }
.sheet .article-body { white-space: pre-wrap; font-size: 16px; }

/* 功课详情：滚动收进弹窗内，关闭钮钉在右上角（不跟内容滑走） */
#noteOverlay .sheet { max-height: 90vh; overflow-y: auto; }
#noteOverlay .sheet .close {
  position: sticky; top: 6px; float: right;
  margin-bottom: -50px; z-index: 2;
}

/* ---------- 求扩散横幅 / 批量选图 / 大图预览 ---------- */
.share-cta {
  background: var(--accent); color: #fff;
  padding: 14px 18px; margin-bottom: 28px;
  font-size: 15px; font-weight: 600; line-height: 1.5;
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.share-cta strong { font-weight: 900; font-size: 16px; white-space: nowrap; }
.cat-card .ph { cursor: pointer; }
.cat-card .ph .pick {
  display: none; position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 30px; height: 30px; border-radius: 999px;
  border: 2px solid #fff; background: rgba(0,0,0,0.25);
}
.cat-card .ph.pickable .pick { display: block; }
.cat-card .ph .pick::after {
  content: '✓'; color: #fff; font-weight: 900;
  display: none; line-height: 26px; text-align: center;
}
.cat-card .ph .pick.on { background: var(--accent); }
.cat-card .ph .pick.on::after { display: block; }
.batch-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--night); color: #f2ede3;
  padding: 12px var(--pad-x) calc(12px + env(safe-area-inset-bottom));
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.batch-bar[hidden] { display: none; }
.batch-bar .grow { flex: 1; font-weight: 800; }
.lightbox {
  max-width: min(92vw, 860px); width: auto; background: var(--paper);
  padding: 12px; position: relative;
}
.lightbox img {
  max-width: 100%; max-height: 62vh; width: auto; margin: 0 auto;
}
.lightbox-bar {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  padding: 12px 6px 2px;
}
.lightbox-bar .hint { font-size: 12px; color: var(--muted); }

.u {
  font-size: 0.28em; font-weight: 600; color: #c9c0ac;
  letter-spacing: 0; margin-left: 4px;
}
/* 功课目录夹：分类手风琴，点开收起 */
.note-folder { border-bottom: var(--line-strong); }
.note-folder summary {
  list-style: none; display: block;
  padding: 18px 4px; cursor: pointer; font-weight: 900; font-size: 18px;
  overflow: hidden;
}
.note-folder summary::-webkit-details-marker { display: none; }
.note-folder summary .cnt {
  float: right; font-size: 12px; color: var(--muted);
  font-weight: 600; margin-top: 5px; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.note-folder summary::after {
  content: '＋'; float: right; margin-left: 14px;
  font-weight: 900; color: var(--accent-ink); font-size: 20px; line-height: 1;
}
.note-folder[open] summary::after { content: '－'; }
.note-folder[open] summary .cat-name { color: var(--accent-ink); }
.note-folder[open] summary { color: var(--accent-ink); }
.note-folder .folder-empty { color: var(--muted); font-size: 14px; padding: 0 4px 18px; }
.note-folder .note-list { margin-top: -6px; padding-bottom: 18px; }
.feedback { margin-top: 48px; }
.feedback strong { font-size: 17px; font-weight: 900; color: #f2ede3; }
.feedback textarea {
  width: 100%; min-height: 88px; margin-top: 12px;
  padding: 14px; border: none; border-radius: 0; background: rgba(255,255,255,0.92);
  resize: vertical; font-size: 15px;
}
.fb-row { display: flex; gap: 14px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.fb-ok { font-size: 14px; color: #f2ede3; font-weight: 700; }

/* ---------- 申请表 ---------- */
.apply-wrap { max-width: 860px; }
.apply-note {
  background: var(--paper-2); padding: 20px 24px; margin-bottom: 32px;
  font-size: 14px; color: var(--ink);
}
.apply-note p + p { margin-top: 8px; }
details.primer {
  background: var(--paper-2); padding: 20px 24px; margin-bottom: 24px;
}
details.primer summary {
  font-weight: 900; font-size: 17px; cursor: pointer; list-style-position: inside;
}
details.primer p {
  margin-top: 16px; font-size: 15px; line-height: 2.1; color: var(--ink);
}
details.primer ul { margin-top: 10px; padding-left: 1.4em; }
details.primer li { font-size: 15px; line-height: 2.1; margin-top: 6px; }
footer .foot-grid {
  display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 40px;
}
@media (min-width: 760px) { footer .foot-grid { grid-template-columns: 1.4fr 1fr; } }
footer .contacts { font-size: 14px; line-height: 2.1; }
footer .contacts b { color: #f2ede3; font-weight: 800; }
footer .contacts .hl { color: #f2ede3; font-weight: 800; }
footer .foot-slogan {
  font-size: 15px; line-height: 2; color: #f2ede3; font-weight: 700;
  align-self: center;
}
fieldset {
  border: none; border-top: var(--line-strong);
  padding: 32px 0 8px; margin-top: 24px;
}
fieldset legend {
  font-size: clamp(20px, 3vw, 28px); font-weight: 900; letter-spacing: -0.01em;
  padding-right: 16px;
}
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin-top: 20px; }
@media (max-width: 620px) { .fgrid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field > span { font-size: 14px; font-weight: 700; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea, .field select {
  padding: 12px 14px; border: 2px solid var(--ink); border-radius: 0; background: #fff;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.choice-row { display: flex; gap: 6px 14px; flex-wrap: wrap; }
.choice-row label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; padding: 6px 0; cursor: pointer;
}
.choice-row input { width: 18px; height: 18px; accent-color: var(--accent); }
.q-item { padding: 18px 0; border-bottom: 1px solid var(--paper-2); }
.q-item > span { display: block; font-weight: 700; margin-bottom: 10px; font-size: 15px; }
.q-item .num { color: var(--accent-ink); font-variant-numeric: tabular-nums; margin-right: 6px; }
.apply-submit {
  margin-top: 40px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.apply-submit .agree { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); max-width: 30em; }
.apply-submit .agree input { width: 18px; height: 18px; accent-color: var(--accent); margin-top: 2px; }
.form-ok {
  display: none; background: var(--night); color: #f2ede3;
  padding: 32px; margin-top: 24px;
}
.form-ok.show { display: block; }
.form-ok strong { font-size: 20px; }

/* ---------- 领养条件 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: var(--line-strong); }
@media (max-width: 920px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 28px 22px; border-bottom: var(--line-strong); border-right: var(--line-strong); }
.step:last-child { border-right: none; }
@media (max-width: 920px) {
  .step:nth-child(2n) { border-right: none; }
  .step:nth-child(odd) { border-right: var(--line-strong); }
}
@media (max-width: 560px) { .step, .step:nth-child(odd) { border-right: none; } }
.step .n { font-size: 40px; font-weight: 900; letter-spacing: -0.03em; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 19px; font-weight: 800; margin-top: 10px; }
.step p { font-size: 14px; color: var(--muted); margin-top: 8px; }

.video-slot {
  background: var(--night-2); color: #f2ede3;
  aspect-ratio: 16 / 9; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; text-align: center;
  padding: 24px; margin-top: 40px;
}
.video-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.video-slot video {
  width: 100%; display: block; background: #000; margin-bottom: 18px;
}
.video-slot .play { font-size: 44px; line-height: 1; }
.video-slot p { color: #c9c0ac; font-size: 14px; max-width: 30em; }

/* 协议预览 */
.agreement-box {
  position: relative; overflow: hidden;
  background: #fff; border: var(--line-strong);
  padding: clamp(24px, 5vw, 64px);
  max-height: 70vh; overflow-y: auto;
}
.agreement-box .doc {
  font-family: var(--serif); font-size: 15px; line-height: 1.9;
  max-width: 44em;
}
.agreement-box .doc h3 { font-size: 17px; margin: 1.4em 0 0.5em; font-weight: 800; }
.agreement-box .doc p { margin: 0.4em 0; }
.agreement-box .doc ol { padding-left: 1.6em; }
.agreement-box .doc li { margin: 0.3em 0; }
/* 全屏淡淡水印：sticky 钉在预览框可视区，滚动时不留空白 */
.wm {
  position: sticky; top: 0; height: 0;
  pointer-events: none; z-index: 2;
}
.wm .wm-inner {
  position: absolute; left: 0; right: 0; top: 0;
  height: var(--wm-h, 100%); overflow: hidden;
}
.wm span {
  position: absolute;
  font-size: 15px; font-weight: 800; color: rgba(43, 36, 28, 0.07);
  white-space: nowrap; transform: rotate(-24deg);
  letter-spacing: 0.08em;
}

.agreement-note {
  margin-top: 16px; font-size: 14px; font-weight: 700;
  color: var(--accent-ink);
}

/* ---------- 联系我们弹窗 ---------- */
.contact-card { max-width: 380px; text-align: center; }
.contact-card img { width: 240px; height: 240px; margin: 20px auto; }
.contact-card p { font-size: 16px; font-weight: 700; }
.contact-card .close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: none; background: var(--paper-2); font-size: 20px; border-radius: 999px; }

/* ---------- 页脚 ---------- */
footer {
  background: var(--night); color: #c9c0ac;
  padding: 56px var(--pad-x) 72px;
}
footer .brand {
  font-size: clamp(28px, 5vw, 56px); font-weight: 900; color: #f2ede3;
  letter-spacing: -0.02em;
}
footer .brand small { display: block; font-size: 14px; font-weight: 500; color: #c9c0ac; margin-top: 6px; letter-spacing: 0; }
footer .foot-row {
  margin-top: 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 14px;
}
footer a { color: #e0d9ca; }

/* ---------- 管理后台 ---------- */
.admin-wrap { max-width: 1080px; margin: 0 auto; padding: 32px var(--pad-x) 96px; }
.login-box { max-width: 380px; margin: 12vh auto 0; text-align: center; }
.login-box input {
  width: 100%; padding: 14px; margin: 18px 0 12px;
  border: 2px solid var(--ink); font-size: 18px; text-align: center; letter-spacing: 0.3em;
}
.login-box .err { color: var(--accent-ink); font-size: 14px; min-height: 20px; margin-bottom: 8px; }
.admin-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 24px 0 32px; border-bottom: var(--line-strong); }
.admin-tabs button {
  border: none; background: transparent; font-size: 15px; font-weight: 700;
  padding: 12px 18px;
}
.admin-tabs button.on { background: var(--ink); color: var(--paper); }
.admin-tabs .badge {
  display: inline-block; background: var(--accent); color: #fff;
  font-size: 12px; border-radius: 999px; padding: 1px 8px; margin-left: 6px;
}
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-list { display: flex; flex-direction: column; }
.admin-row {
  display: flex; gap: 14px; align-items: center; padding: 16px 4px;
  border-bottom: 1px solid var(--paper-2); flex-wrap: wrap;
}
.admin-row .grow { flex: 1; min-width: 200px; }
.admin-row .t { font-weight: 800; }
.admin-row .s { font-size: 13px; color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 999px; background: var(--accent); display: inline-block; margin-right: 6px; }
.mini-btn {
  border: 2px solid var(--ink); background: transparent; font-weight: 700;
  padding: 7px 14px; font-size: 13px; border-radius: 999px;
}
.mini-btn:hover { background: var(--ink); color: var(--paper); }
.mini-btn.light { border-color: #fff; color: #fff; }
.mini-btn.light:hover { background: #fff; color: var(--ink); }
.mini-btn.warn { border-color: var(--accent-ink); color: var(--accent-ink); }
.mini-btn.warn:hover { background: var(--accent-ink); color: #fff; }
.admin-form { background: var(--paper-2); padding: 24px; margin: 20px 0; }
.admin-form h3 { margin-bottom: 16px; }
.admin-detail { background: var(--paper-2); padding: 24px; margin-top: 16px; }
.admin-detail dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; }
.admin-detail dt { font-weight: 800; font-size: 14px; }
.admin-detail dd { font-size: 14px; white-space: pre-wrap; word-break: break-all; }
@media (max-width: 620px) { .admin-detail dl { grid-template-columns: 1fr; } .admin-detail dt { margin-top: 8px; } }

/* ---------- 动效：transform + opacity only ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- 功课 Markdown 正文 ---------- */
.article-body.md { white-space: normal; font-size: 16px; line-height: 1.75; }
.article-body.md h2 { font-size: 20px; margin: 26px 0 10px; padding-left: 10px; border-left: 4px solid var(--accent-ink, #e8a4b8); }
.article-body.md h3 { font-size: 17px; margin: 20px 0 8px; }
.article-body.md h4 { font-size: 16px; margin: 16px 0 6px; }
.article-body.md p { margin: 8px 0; }
.article-body.md hr { border: none; border-top: 1.5px dashed var(--line, #e5dcd2); margin: 18px 0; }
.article-body.md blockquote { margin: 10px 0; padding: 10px 14px; background: var(--paper-2, #faf6f1); border-left: 3px solid var(--accent-ink, #e8a4b8); border-radius: 8px; }
.article-body.md blockquote p { margin: 4px 0; font-size: 15px; }
.article-body.md ul, .article-body.md ol { margin: 8px 0; padding-left: 22px; }
.article-body.md li { margin: 5px 0; }
.article-body.md img { display: block; max-width: 100%; max-height: 460px; width: auto; margin: 10px auto; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.article-body.md .md-table-wrap { overflow-x: auto; margin: 12px 0; }
.article-body.md table { border-collapse: collapse; width: 100%; font-size: 14px; }
.article-body.md th, .article-body.md td { border: 1px solid var(--line, #e5dcd2); padding: 7px 10px; text-align: left; word-break: break-word; }
.article-body.md th { background: var(--paper-2, #faf6f1); font-weight: 800; }
.article-body.md .md-check { display: flex; align-items: baseline; gap: 8px; }
.article-body.md .md-check input { accent-color: var(--accent-ink, #e8a4b8); }
.article-body.md code { background: var(--paper-2, #faf6f1); padding: 1px 6px; border-radius: 6px; font-size: 14px; }

/* ---------- 领养条件：四 part 版式 ---------- */
.part-title {
  font-size: 21px; font-weight: 900; margin: 34px 0 16px;
  padding: 10px 16px; background: var(--paper-2, #faf6f1);
  border-left: 5px solid var(--accent-ink, #e8a4b8); border-radius: 10px;
}
.lead { font-size: 15.5px; line-height: 1.8; margin-bottom: 16px; }
.lead strong { color: var(--accent-ink, #e8a4b8); }
.notice-card {
  background: linear-gradient(135deg, #fff7ee, #fdeef0);
  border: 1.5px solid var(--accent-ink, #e8a4b8); border-radius: 14px;
  padding: 16px 18px; margin: 16px 0 22px;
}
.notice-card strong { display: block; margin-bottom: 8px; font-size: 16px; }
.notice-card p { font-size: 15px; line-height: 1.75; margin: 0; }
.sub-title { font-size: 18px; font-weight: 900; margin: 24px 0 14px; }
.q-list { margin: 0 0 8px; padding-left: 0; list-style: none; counter-reset: q; }
.q-list > li {
  counter-increment: q; position: relative;
  padding: 12px 14px 12px 52px; margin-bottom: 10px;
  background: var(--paper-2, #faf6f1); border-radius: 12px;
  font-size: 15px; line-height: 1.75;
}
.q-list > li::before {
  content: counter(q); position: absolute; left: 14px; top: 14px;
  width: 26px; height: 26px; border-radius: 999px;
  background: var(--accent-ink, #e8a4b8); color: #fff;
  font-weight: 900; font-size: 14px; display: flex; align-items: center; justify-content: center;
}
.q-list .q { display: block; font-weight: 800; margin-bottom: 4px; }
.warn-tag {
  display: inline-block; font-style: normal; font-size: 12px; font-weight: 800;
  color: #c0392b; background: #fdecea; border-radius: 999px;
  padding: 2px 10px; margin-left: 6px; white-space: nowrap;
}
.pic-strip {
  display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 12px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.pic-strip img {
  height: 300px; width: auto; flex: 0 0 auto; border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.1); cursor: zoom-in; scroll-snap-align: start;
}
@media (max-width: 620px) { .pic-strip img { height: 240px; } }
.tujie { margin: 0 0 18px; text-align: center; }
.tujie img {
  width: 100%; max-width: 430px; border-radius: 12px; cursor: zoom-in;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
.tujie figcaption { font-size: 13px; color: var(--muted, #9a8f83); margin-top: 8px; }
.term-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 18px 0; }
.term-card {
  background: var(--paper-2, #faf6f1); border-radius: 14px; padding: 16px 18px;
}
.term-card h4 { font-size: 16px; font-weight: 900; margin-bottom: 10px; }
.term-card p { font-size: 14.5px; line-height: 1.75; margin: 6px 0; }
.term-card small { color: var(--muted, #9a8f83); }

/* 领养卡：新手推荐标签 */
.tag-rec {
  font-size: 12px; font-weight: 800; color: #8a5a00;
  background: linear-gradient(135deg, #ffe9b8, #ffd98a);
  border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}

/* 特别的TA 专区与等家角标 */
#btnSpecial.on { background: var(--accent-ink, #e8a4b8); color: #fff; border-color: var(--accent-ink, #e8a4b8); }
.special-note {
  font-size: 13px; line-height: 1.65; color: var(--muted, #9a8f83);
  background: var(--paper-2, #faf6f1); border-left: 3px solid var(--accent-ink, #e8a4b8);
  border-radius: 8px; padding: 8px 10px; margin: 8px 0;
}
.badge-wait {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: #6b4f9e; background: #efe9fb; border-radius: 999px;
  padding: 3px 10px; margin: 4px 0 2px;
}

/* ---------- 关于我们板块 ---------- */
.about-quote {
  margin: 10px 0 20px; padding: 16px 18px;
  background: linear-gradient(135deg, #fff7ee, #fdeef0);
  border-left: 4px solid var(--accent-ink, #e8a4b8); border-radius: 12px;
  font-size: 15px; line-height: 1.85;
}
.srv-list { list-style: none; padding-left: 0; margin: 8px 0 18px; }
.srv-list li { font-size: 14.5px; line-height: 1.75; margin: 6px 0; padding-left: 4px; }
#btnKeypu4 { font-size: 15px; padding: 10px 22px; }

/* ---------- 关于我们 v24 布局调整 ---------- */
/* 导航 5 项挤一挤：窄屏允许换行、缩紧内边距 */
.brandbar nav { flex-wrap: wrap; justify-content: center; }
.brandbar nav a { font-size: 13px; padding: 5px 9px; }
/* 大号 CTA 按钮 + 像素手指点动 */
.big-cta { font-size: 15px !important; padding: 12px 22px !important; font-weight: 900; white-space: nowrap; }
.px-hand {
  display: inline-block; width: 52px; height: 52px; vertical-align: middle;
  margin-left: 10px; animation: poke .8s ease-in-out infinite;
  background: url(/media/paw.png) center/contain no-repeat;
}
@keyframes poke { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .px-hand { animation: none; } }
/* 案例+判决书两图居中大图 */
.case-pics { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin: 12px 0 18px; }
.case-pics figure { margin: 0; text-align: center; }
.case-pics img { width: 100%; max-width: 460px; border-radius: 12px; cursor: zoom-in; box-shadow: 0 2px 10px rgba(0,0,0,.1); }
.case-pics figcaption { font-size: 13px; color: var(--muted, #9a8f83); margin-top: 6px; }
/* 表格样式通用化（about 板块直接用 md-table-wrap 类） */
.md-table-wrap { overflow-x: auto; margin: 12px 0; }
.md-table-wrap table { border-collapse: collapse; width: 100%; font-size: 14px; }
.md-table-wrap th, .md-table-wrap td { border: 1px solid var(--line, #e5dcd2); padding: 8px 11px; text-align: left; word-break: break-word; }
.md-table-wrap th { background: var(--paper-2, #faf6f1); font-weight: 800; }
.article-body.md .md-table-wrap { margin: 12px 0; }
/* debug 模式诊断行 */
.dbg { font-size: 11px; color: #b0567a; background: #fdeef5; border-radius: 6px; padding: 2px 8px; margin: 4px 0; font-family: monospace; }
/* 寄养表第一列不换行 */
#view-about .md-table-wrap th:first-child, #view-about .md-table-wrap td:first-child { min-width: 7em; }
/* 寄养表第一列不换行 */
#view-about .md-table-wrap th:first-child, #view-about .md-table-wrap td:first-child { min-width: 7em; }
/* md 弹窗表格第一列不换行（软便拉稀/兔兔寄养等短词不再折行） */
.article-body.md table td:first-child { white-space: nowrap; }
/* 申请领养页小科普下的功课按钮 */
.keypu-row { text-align: center; margin: 16px 0 6px; }
.keypu-btn { font-size: 14px; padding: 10px 16px; margin: 4px 6px; }
.keypu-btn .px-hand { margin-left: 6px; width: 44px; height: 44px; }
/* 功课弹窗 md 排版强化：小标题块 + 重点上色 */
.article-body.md h3 {
  font-size: 17px; font-weight: 900; margin: 22px 0 10px;
  padding: 8px 14px; background: var(--paper-2, #faf6f1);
  border-left: 4px solid var(--accent-ink, #e8a4b8); border-radius: 8px;
}
.article-body.md strong { color: var(--accent-ink, #e8a4b8); }
.article-body.md blockquote { margin: 12px 0; }
/* ICP 备案号 */
.beian { text-align: center; font-size: 12px; color: var(--muted, #9a8f83); padding: 10px 0 0; }
.beian a { color: var(--muted, #9a8f83); text-decoration: none; }
.beian a:hover { color: var(--accent-ink, #e8a4b8); }
