:root {
  --green: #0b8f4d;
  --green-dark: #066b39;
  --green-soft: #eaf7f0;
  --teal-soft: #e7f6f5;
  --blue-soft: #eef5ff;
  --purple-soft: #f3efff;
  --orange-soft: #fff4e6;
  --text: #1d2930;
  --muted: #6b7a86;
  --line: #e6ecea;
  --bg: #f7faf8;
  --card: #ffffff;
  --shadow: 0 14px 35px rgba(12, 72, 45, 0.08);
  --radius: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 50%, #ffffff 100%);
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.header-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 260px; }
.brand-logo {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  color: var(--green); font-weight: 800; border: 3px solid var(--green); background: #fff;
}
.brand strong { display: block; font-size: 20px; letter-spacing: 0.02em; }
.brand-primary { color: var(--green); font-weight: 800; }
.brand-separator { color: #6b7a86; }
.brand-secondary { color: var(--text); font-weight: 800; }
.brand small { color: var(--muted); font-size: 12px; }
.nav-links { display: flex; gap: 40px; font-weight: 700; }
.nav-links a { padding: 26px 0 22px; border-bottom: 3px solid transparent; }
.nav-links a.active, .nav-links a:hover { color: var(--green); border-bottom-color: var(--green); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.primary-btn, .ghost-btn, .link-btn, .load-more, .back-btn {
  border: 0; cursor: pointer; border-radius: 12px; transition: 0.18s ease; white-space: nowrap;
}
.primary-btn { background: var(--green); color: #fff; padding: 12px 20px; box-shadow: 0 8px 18px rgba(11,143,77,0.18); }
.primary-btn:hover { background: var(--green-dark); transform: translateY(-1px); }
.primary-btn.small { padding: 10px 16px; }
.primary-btn.full { width: 100%; }
.ghost-btn { background: #fff; color: #41505b; border: 1px solid var(--line); padding: 10px 14px; }
.ghost-btn:hover { color: var(--green); border-color: #bfe4d0; background: #f7fffb; }
.hero {
  margin-top: 28px; min-height: 255px; display: grid; grid-template-columns: 1.55fr 0.95fr; gap: 0;
  background: linear-gradient(135deg, #f0fbf4 0%, #ffffff 55%, #f6fbff 100%);
  border: 1px solid var(--line); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow);
}
.hero-text { padding: 42px 38px 34px; }
.eyebrow { color: var(--green); font-weight: 700; margin: 0 0 10px; }
.hero h1 { margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.18; letter-spacing: -0.02em; }
.hero h1 span { color: var(--green); }
.hero-desc { color: var(--muted); font-size: 16px; line-height: 1.8; max-width: 780px; margin: 14px 0 24px; }
.search-panel { display: flex; gap: 10px; background: #fff; border: 1px solid #cfe5da; border-radius: 16px; padding: 8px; box-shadow: 0 8px 20px rgba(12,72,45,0.06); }
.search-panel input { flex: 1; border: 0; outline: 0; padding: 0 14px; font-size: 16px; min-width: 100px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: #475967; padding: 10px 18px; border-radius: 999px; cursor: pointer;
}
.chip.active, .chip:hover { background: var(--green); color: #fff; border-color: var(--green); }
.hero-card { position: relative; min-height: 255px; background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(234,247,240,0.9)); overflow: hidden; }
.hero-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 35% 20%, rgba(11,143,77,0.08), transparent 35%), linear-gradient(90deg, rgba(255,255,255,0.8), transparent 35%); }
.clinic-window { position: absolute; right: 40px; top: 30px; width: 180px; height: 120px; border-radius: 12px; background: linear-gradient(135deg, #ffffff, #eaf5f0); border: 10px solid #fff; box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
.rehab-bed { position: absolute; right: 65px; bottom: 52px; width: 240px; height: 28px; border-radius: 999px; background: #a6d6c4; box-shadow: 0 18px 0 #d7eee4; }
.ball { position: absolute; right: 300px; bottom: 38px; width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, #37bf7c, #a5e6c5); }
.plant { position: absolute; right: 18px; bottom: 30px; width: 60px; height: 110px; background: radial-gradient(circle at 30% 25%, #86cfa2 0 15px, transparent 16px), radial-gradient(circle at 65% 40%, #65b982 0 18px, transparent 19px), linear-gradient(#75a680, #75a680); background-size: 60px 70px, 60px 70px, 8px 55px; background-position: 0 0, 0 0, 27px 55px; background-repeat: no-repeat; }
.skeleton { position: absolute; left: 70px; top: 38px; width: 80px; height: 150px; border-radius: 40px; color: #9eb7aa; display: grid; place-items: center; font-size: 70px; opacity: .55; }
.section-block { margin-top: 22px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 16px; }
.section-title h2 { margin: 0; font-size: 21px; }
.section-title p { margin: 6px 0 0; color: var(--muted); }
.link-btn { background: transparent; color: var(--green); }
.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.topic-card { min-height: 160px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); display: flex; justify-content: space-between; align-items: flex-end; overflow: hidden; position: relative; box-shadow: var(--shadow); cursor: pointer; }
.topic-card h3 { margin: 0 0 8px; font-size: 20px; }
.topic-card p { margin: 0 0 16px; color: #536572; }
.topic-card button { border: 0; border-radius: 10px; padding: 8px 14px; color: var(--green); background: rgba(255,255,255,0.82); }
.topic-card span { font-size: 58px; font-weight: 900; opacity: .18; }
.topic-card.green { background: var(--green-soft); }
.topic-card.blue { background: var(--blue-soft); }
.topic-card.purple { background: var(--purple-soft); }
.topic-card.orange { background: var(--orange-soft); }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.main-column, .side-card, .detail-article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.main-column { padding: 20px; }
.sticky-title select { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; color: #4c5c66; background: #fff; }
.article-list { display: grid; gap: 14px; }
.article-card { display: grid; grid-template-columns: 140px 1fr auto; gap: 18px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: .18s ease; }
.article-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(12,72,45,0.08); border-color: #cae6d5; }
.thumb { height: 96px; border-radius: 16px; display: grid; place-items: center; color: rgba(0,0,0,0.35); font-weight: 900; font-size: 28px; background: linear-gradient(135deg, #eaf7f0, #f7fbff); position: relative; overflow: hidden; }
.thumb::after { content: ""; position: absolute; width: 76px; height: 76px; border-radius: 50%; right: -12px; bottom: -18px; background: rgba(11,143,77,0.08); }
.card-body h3 { margin: 0 0 8px; font-size: 18px; }
.card-body p { margin: 0 0 10px; color: var(--muted); line-height: 1.65; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: #7a8993; }
.tag { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 10px; background: #eef6f1; color: #18824c; }
.card-actions { display: flex; flex-direction: column; gap: 10px; min-width: 96px; }
.outline-btn { border: 1px solid #b8ddca; color: var(--green); background: #fff; padding: 10px 12px; border-radius: 12px; cursor: pointer; font-weight: 700; }
.text-btn { border: 0; background: transparent; color: var(--green); cursor: pointer; }
.load-more { width: 100%; margin-top: 16px; padding: 14px; background: #f8fcfa; border: 1px solid var(--line); color: var(--green); font-weight: 700; }
.sidebar { display: grid; gap: 16px; }
.side-card { padding: 20px; }
.side-card h3 { margin: 0 0 14px; font-size: 18px; }
.mini-item { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.mini-item:last-child { border-bottom: 0; }
.mini-thumb { border-radius: 12px; background: var(--green-soft); display: grid; place-items: center; font-weight: 800; color: var(--green); }
.mini-item strong { display: block; font-size: 14px; line-height: 1.45; }
.mini-item span { display: block; color: #80909a; font-size: 12px; margin-top: 4px; }
.latest-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.latest-row:last-child { border-bottom: 0; }
.latest-row time { color: #7b8b94; }
.about-card p { color: var(--muted); line-height: 1.7; }
.notice { background: #f7fbff; border: 1px solid #d7e9fa; padding: 12px; border-radius: 14px; }
.detail-view { padding: 26px 0; }
.hidden { display: none !important; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.detail-article { padding: 26px; }
.back-btn { background: #f4fbf7; color: var(--green); padding: 10px 14px; margin-bottom: 18px; }
.detail-title { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; margin: 0 0 14px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); margin-bottom: 16px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.key-box, .summary-box, .warning-box { border-radius: 18px; padding: 20px; margin: 18px 0; border: 1px solid var(--line); }
.key-box { background: linear-gradient(135deg, var(--green-soft), #fff); }
.summary-box { background: #fff; }
.warning-box { background: #fff8ec; border-color: #f2d7a9; color: #6f4f16; }
.detail-section { margin: 24px 0; }
.detail-section h2 { color: var(--green); font-size: 22px; margin: 0 0 10px; }
.detail-section p { color: #42505a; line-height: 1.9; margin: 0; }
.original-link { display: inline-flex; margin-top: 12px; }
.footer { margin-top: 28px; padding: 28px 0 20px; border-top: 1px solid var(--line); background: rgba(255,255,255,0.8); }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: center; }
.footer-grid div { padding: 18px; border-right: 1px solid var(--line); }
.footer-grid div:last-child { border-right: 0; }
.footer strong { display: block; color: var(--green); margin-bottom: 8px; }
.footer span, .disclaimer { color: var(--muted); font-size: 13px; }
.disclaimer { width: min(1180px, calc(100% - 40px)); margin: 12px auto 0; text-align: center; line-height: 1.8; }
.toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); background: rgba(0,0,0,0.78); color: #fff; padding: 12px 18px; border-radius: 999px; z-index: 99; }
@media (max-width: 980px) {
  .header-inner { height: auto; padding: 14px 0; flex-wrap: wrap; }
  .nav-links { order: 3; width: 100%; gap: 20px; justify-content: center; }
  .header-actions { display: none; }
  .hero, .content-layout, .detail-layout { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .article-card { grid-template-columns: 108px 1fr; }
  .card-actions { grid-column: 1 / -1; flex-direction: row; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1180px); }
  .brand { min-width: auto; }
  .brand strong { font-size: 17px; }
  .hero-text { padding: 26px 20px; }
  .search-panel { flex-direction: column; }
  .topic-grid { grid-template-columns: 1fr; }
  .article-card { grid-template-columns: 1fr; }
  .thumb { height: 120px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid div { border-right: 0; border-bottom: 1px solid var(--line); }
}
.brand-logo-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.modal-mask {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-mask.show {
  display: flex;
}

.modal-card {
  position: relative;
  width: min(92vw, 420px);
  background: #ffffff;
  border-radius: 24px;
  padding: 32px 28px 28px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.25);
}

.modal-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  color: #16212b;
}

.modal-card p {
  margin: 0 0 22px;
  color: #64748b;
  font-size: 15px;
}

.modal-qrcode {
  width: 260px;
  max-width: 100%;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #334155;
  font-size: 24px;
  cursor: pointer;
}

.modal-close:hover {
  background: #e2e8f0;
}
@media (max-width: 640px) {
  .header-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    margin-top: 14px;
  }

  .header-actions .ghost-btn,
  .header-actions .primary-btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    padding: 0 12px;
  }

  .header-actions .primary-btn {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .site-header .container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
  }

  .brand-logo-img {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .brand strong {
    font-size: 18px;
    line-height: 1.2;
  }

  .brand small {
    font-size: 12px;
  }

  .nav,
  .header-actions {
    transition: max-height 0.25s ease, opacity 0.2s ease, margin 0.25s ease;
    overflow: hidden;
  }

  .site-header.mobile-hide-extra .nav,
  .site-header.mobile-hide-extra .header-actions {
    max-height: 0 !important;
    opacity: 0;
    margin-top: 0 !important;
    pointer-events: none;
  }

  .site-header.mobile-show-extra .nav,
  .site-header.mobile-show-extra .header-actions {
    max-height: 160px;
    opacity: 1;
  }

  .header-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
  }

  .header-actions .ghost-btn,
  .header-actions .primary-btn {
    width: 100%;
    min-height: 42px;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    padding: 0 12px;
  }

  .header-actions .primary-btn {
    grid-column: 1 / -1;
  }
}
/* 手机端：滚动时压缩顶部，只保留品牌 logo 区 */
@media (max-width: 640px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
  }

  .site-header .container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0 !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0 !important;
    margin: 0 !important;
  }

  .brand-logo-img {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px;
  }

  .brand strong {
    font-size: 18px !important;
    line-height: 1.2;
  }

  .brand small {
    font-size: 12px !important;
    line-height: 1.2;
  }

  /* 默认展开时：导航和按钮显示 */
  .nav,
  .main-nav,
  .site-nav,
  .header-nav,
  .header-actions {
    transition: max-height 0.25s ease, opacity 0.2s ease, margin 0.25s ease, padding 0.25s ease;
    overflow: hidden;
  }

  /* 向下滑动时：隐藏首页/分类/专题/关于 + 收藏/关注/投稿 */
  .site-header.mobile-hide-extra .nav,
  .site-header.mobile-hide-extra .main-nav,
  .site-header.mobile-hide-extra .site-nav,
  .site-header.mobile-hide-extra .header-nav,
  .site-header.mobile-hide-extra .header-actions {
    max-height: 0 !important;
    opacity: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    pointer-events: none;
  }

  /* 向上滑动或回到顶部时：重新显示 */
  .site-header.mobile-show-extra .nav,
  .site-header.mobile-show-extra .main-nav,
  .site-header.mobile-show-extra .site-nav,
  .site-header.mobile-show-extra .header-nav {
    max-height: 80px;
    opacity: 1;
  }

  .site-header.mobile-show-extra .header-actions {
    max-height: 140px;
    opacity: 1;
  }

  /* 手机端按钮布局 */
  .header-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
  }

  .header-actions .ghost-btn,
  .header-actions .primary-btn {
    width: 100%;
    min-height: 42px;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    padding: 0 12px;
  }

  .header-actions .primary-btn {
    grid-column: 1 / -1;
  }

  /* 向下滑动后，顶部整体更紧凑 */
  .site-header.mobile-hide-extra .container {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }

  .site-header.mobile-hide-extra .brand {
    padding: 4px 0 !important;
  }
}

/* A版升级：两大入口 + 肌骨人体部位导航 */
.system-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.system-card {
  display: block;
  padding: 26px;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--text);
  background: #fff;
  transition: .18s ease;
}
.system-card:hover { transform: translateY(-2px); border-color: #bfe4d0; }
.system-card h3 { margin: 8px 0 10px; font-size: 24px; }
.system-card p { margin: 0 0 16px; color: var(--muted); line-height: 1.75; }
.system-card strong { color: var(--green); }
.system-kicker { color: var(--green); font-weight: 800; }
.msk-card { background: linear-gradient(135deg, #f0fbf4, #ffffff); }
.stroke-card { background: linear-gradient(135deg, #eef5ff, #ffffff); }
.sci-card { background: linear-gradient(135deg, #f3efff, #ffffff); }

.msk-hero {
  margin-top: 28px;
  padding: 34px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #f0fbf4 0%, #ffffff 60%, #eef5ff 100%);
  box-shadow: var(--shadow);
}
.msk-hero h1 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.2; }
.msk-hero p:not(.eyebrow) { color: var(--muted); line-height: 1.8; max-width: 760px; }
.body-map-section { margin-top: 22px; }
.body-map-card {
  position: relative;
  min-height: 620px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
  align-items: center;
  padding: 32px;
  border-radius: 28px;
  background: linear-gradient(180deg, #f8fffb, #ffffff);
  border: 1px solid #dbeee5;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}
.body-map-visual {
  position: relative;
  height: 500px;
  display: grid;
  place-items: center;
  color: rgba(11, 143, 77, .45);
  font-weight: 800;
}
.body-head, .body-torso, .body-arm, .body-leg { position: absolute; background: #e8f7ef; border: 1px solid #cdebd9; }
.body-head { top: 20px; width: 78px; height: 78px; border-radius: 50%; }
.body-torso { top: 110px; width: 138px; height: 210px; border-radius: 64px 64px 42px 42px; }
.body-arm { top: 130px; width: 42px; height: 180px; border-radius: 999px; }
.body-arm.left { left: 72px; transform: rotate(12deg); }
.body-arm.right { right: 72px; transform: rotate(-12deg); }
.body-leg { bottom: 28px; width: 48px; height: 185px; border-radius: 999px; }
.body-leg.left { left: 130px; transform: rotate(5deg); }
.body-leg.right { right: 130px; transform: rotate(-5deg); }
.body-map-visual span { position: relative; z-index: 2; margin-top: 250px; }
.body-button-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.body-point {
  display: block;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  border: 1px solid #d7eee2;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: .18s ease;
}
.body-point:hover { transform: translateY(-2px); border-color: #9edabb; }
.body-point b { display: block; color: var(--green); font-size: 18px; margin-bottom: 6px; }
.body-point small { display: block; color: var(--muted); line-height: 1.55; }

/* 修正手机端顶部滚动隐藏：当前代码真实导航类名是 nav-links */
@media (max-width: 640px) {
  .site-header .container.header-inner {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }
  .site-header.mobile-hide-extra .nav-links,
  .site-header.mobile-hide-extra .header-actions {
    max-height: 0 !important;
    opacity: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    pointer-events: none;
  }
  .site-header.mobile-show-extra .nav-links {
    max-height: 90px;
    opacity: 1;
  }
  .site-header.mobile-hide-extra .brand {
    padding: 2px 0 !important;
  }

  .system-entry-grid { grid-template-columns: 1fr; }
  .system-card { padding: 22px; }
  .body-map-card {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }
  .body-map-visual { display: none; }
  .body-button-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .body-point { padding: 13px 12px; border-radius: 16px; }
  .body-point b { font-size: 16px; margin-bottom: 4px; }
  .body-point small { font-size: 12px; line-height: 1.35; }
}

/* v4：首页精简 + 分类合集页优化 */
#categoryChips { display: none !important; }
#sortSelect { display: none !important; }
.category-page .hero,
.category-page #systemEntry {
  display: none !important;
}
.category-page #categories {
  margin-top: 28px;
}
.category-page .content-layout {
  grid-template-columns: 1fr !important;
}
.category-page .sidebar {
  display: none !important;
}
.category-page .main-column {
  max-width: 1040px;
  margin: 0 auto;
  width: 100%;
}
@media (max-width: 640px) {
  .system-entry-section .section-title {
    margin-bottom: 14px;
  }
  .system-entry-section .section-title h2 {
    font-size: 24px;
  }
  .category-page #categories {
    margin-top: 16px;
  }
}

/* v5：首页大合集 + 小分类 + 多合集归属 */
body.home-page #categories {
  display: none !important;
}
body.search-active #categories,
body.category-page #categories {
  display: grid !important;
}
body.category-page .hero,
body.category-page #systemEntry {
  display: none !important;
}
body.category-page #categories {
  margin-top: 28px;
}
body.category-page .content-layout {
  grid-template-columns: 1fr !important;
}
body.category-page .sidebar {
  display: none !important;
}
body.category-page .main-column {
  max-width: 1040px;
  margin: 0 auto;
  width: 100%;
}
.collection-grid.system-entry-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.home-collection-card {
  padding: 20px;
  min-height: 235px;
}
.collection-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #f0fbf4;
  font-size: 22px;
  margin-bottom: 8px;
}
.home-collection-card .system-kicker {
  display: block;
  font-size: 12px;
  line-height: 1.35;
}
.home-collection-card h3 {
  font-size: 20px;
  line-height: 1.28;
  margin: 8px 0 10px;
}
.home-collection-card p {
  font-size: 14px;
  line-height: 1.65;
}
.home-collection-card strong {
  font-size: 14px;
}
.collection-hero {
  margin-top: 28px;
  padding: 34px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #f0fbf4 0%, #ffffff 58%, #eef5ff 100%);
  box-shadow: var(--shadow);
}
.collection-hero h1 {
  margin: 6px 0 10px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
}
.collection-hero p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.8;
  max-width: 820px;
}
.back-home-link {
  display: inline-flex;
  color: var(--green);
  font-weight: 800;
  margin-bottom: 12px;
}
.collection-all-link {
  margin-top: 8px;
}
.subcategory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.subcategory-card {
  display: block;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: 0.18s ease;
}
.subcategory-card:hover {
  transform: translateY(-2px);
  border-color: #9edabb;
}
.subcategory-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #f0fbf4;
  font-size: 22px;
  margin-bottom: 10px;
}
.subcategory-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.3;
}
.subcategory-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}
.subcategory-card strong {
  color: var(--green);
}
.collection-tag {
  background: #ecfdf5 !important;
  color: #087443 !important;
  border-color: #bbf7d0 !important;
}
.nav-links a.active {
  color: var(--green);
  font-weight: 800;
}

/* 修正此前手机端隐藏逻辑：真实导航类名是 nav-links */
@media (max-width: 640px) {
  .site-header.mobile-hide-extra .nav-links,
  .site-header.mobile-hide-extra .header-actions {
    max-height: 0 !important;
    opacity: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    pointer-events: none;
    overflow: hidden;
  }
  .site-header.mobile-show-extra .nav-links {
    max-height: 90px;
    opacity: 1;
  }
  .site-header.mobile-hide-extra .brand {
    padding: 2px 0 !important;
  }

  .collection-grid.system-entry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 9px;
  }
  .home-collection-card {
    padding: 12px 8px;
    min-height: 138px;
    border-radius: 16px;
    text-align: center;
  }
  .collection-icon {
    width: 32px;
    height: 32px;
    border-radius: 11px;
    font-size: 18px;
    margin-bottom: 6px;
  }
  .home-collection-card .system-kicker,
  .home-collection-card p {
    display: none;
  }
  .home-collection-card h3 {
    font-size: 14px;
    line-height: 1.28;
    margin: 4px 0 8px;
  }
  .home-collection-card strong {
    display: block;
    font-size: 11px;
    line-height: 1.3;
  }
  .collection-hero {
    margin-top: 16px;
    padding: 22px 18px;
    border-radius: 20px;
  }
  .collection-hero h1 {
    font-size: 26px;
  }
  .collection-hero p:not(.eyebrow) {
    font-size: 14px;
  }
  .subcategory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .subcategory-card {
    padding: 14px 12px;
    border-radius: 16px;
  }
  .subcategory-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 18px;
    margin-bottom: 7px;
  }
  .subcategory-card h3 {
    font-size: 16px;
    line-height: 1.3;
  }
  .subcategory-card p {
    font-size: 12px;
    line-height: 1.45;
    margin-bottom: 10px;
  }
  .subcategory-card strong {
    font-size: 12px;
  }
  body.category-page #categories {
    margin-top: 16px;
  }
}

@media (min-width: 641px) and (max-width: 960px) {
  .collection-grid.system-entry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .subcategory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
