/* ==========================================================================
   飘雨百科网 · 样式
   纸 + 墨 + 雨：暖白纸底，黛青主色，朱砂点缀
   ========================================================================== */

:root {
  --paper:   #fbf9f5;
  --paper-2: #f4f0e7;
  --paper-3: #efeade;
  --ink:     #17262d;
  --ink-2:   #4b5f68;
  --ink-3:   #7d8f97;
  --teal:    #2b6b76;
  --teal-d:  #1b4a53;
  --teal-l:  #e8f0f1;
  --seal:    #b0483c;
  --line:    #e3ddd1;
  --line-2:  #d3cbbc;
  --serif: "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", "STSong", "SimSun", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* 广告脚本会在 body 末尾注入 iframe，避免页脚下方出现白带 */
body > iframe { background: var(--paper); border: 0; display: block; }

img { max-width: 100%; height: auto; }
a { color: var(--teal-d); text-decoration: none; }
a:hover { color: var(--seal); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.35em; }
li { margin: 0.25em 0; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: 0.01em; margin: 0; }
button { font-family: inherit; }
::selection { background: var(--teal-l); }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: -999px; top: 0; z-index: 99;
  background: var(--ink); color: #fff; padding: 8px 14px;
}
.skip:focus { left: 8px; top: 8px; color: #fff; }
.dot { color: var(--line-2); margin: 0 4px; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

/* ------------------------------------------------------------- 顶部 */

.topbar {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.03em;
}
.topbar-in {
  display: flex; justify-content: space-between; align-items: center;
  height: 34px;
}
.topbar-l { letter-spacing: 0.22em; }
.topbar-r { display: flex; align-items: center; gap: 16px; }
.topbar-r a { color: var(--ink-3); }
.topbar-r a:hover { color: var(--teal); }

.masthead {
  display: flex; align-items: center; gap: 22px;
  padding-top: 16px; padding-bottom: 16px;
}
.brand { display: block; flex: none; }
.brand img { display: block; width: 214px; height: auto; }

.mast-tag {
  margin: 0; padding-left: 22px; border-left: 1px solid var(--line-2);
  flex: 1 1 auto; min-width: 0;
}
.mast-tag span {
  font-family: var(--serif); font-size: 15px; letter-spacing: 0.2em;
  color: var(--ink-2); display: block;
}
.mast-tag em {
  display: block; font-style: normal; font-size: 12px;
  color: var(--ink-3); margin-top: 3px; letter-spacing: 0.04em;
}

.head-search {
  display: flex; align-items: center; flex: none;
  border: 1px solid var(--line-2); background: #fff;
}
.head-search input {
  border: 0; outline: 0; background: transparent;
  padding: 9px 12px; width: 186px; font-size: 13px; color: var(--ink);
  font-family: inherit;
}
.head-search input::placeholder { color: var(--ink-3); }
.head-search button {
  border: 0; background: transparent; color: var(--ink-2);
  padding: 0 11px; cursor: pointer; display: grid; place-items: center;
}
.head-search button:hover { color: var(--teal); }
.head-search-side { width: 100%; }
.head-search-side input { width: 100%; flex: 1; }

.nav-toggle { display: none; }

.nav-bar {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: stretch; }
.site-nav { display: flex; align-items: stretch; gap: 0; flex-wrap: nowrap; }
.site-nav > a {
  display: flex; flex-direction: column; justify-content: center; gap: 1px;
  padding: 12px 20px 11px; border-bottom: 2px solid transparent;
  color: var(--ink);
}
.site-nav > a b { font-size: 15px; font-weight: 600; letter-spacing: 0.02em; }
.site-nav > a i {
  font-style: normal; font-size: 9.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3);
}
.site-nav > a:hover { background: var(--paper); }
.site-nav > a.on { border-bottom-color: var(--teal); }
.site-nav > a.on b { color: var(--teal-d); }

.nav-more {
  margin-left: auto; display: flex; align-items: center; gap: 18px;
  font-size: 13px; color: var(--ink-2);
}
.nav-more a { color: var(--ink-2); padding: 4px 0; border-bottom: 1px solid transparent; }
.nav-more a:hover, .nav-more a.on { color: var(--teal); border-bottom-color: var(--teal); }

.announce { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.announce-in {
  display: flex; align-items: center; gap: 12px;
  padding-top: 9px; padding-bottom: 9px;
}
.announce-tag {
  flex: none; background: var(--seal); color: #fff;
  font-size: 10.5px; letter-spacing: 0.12em; padding: 2px 8px 1px;
}
.announce p {
  margin: 0; font-size: 13px; color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ------------------------------------------------------------- 首屏 */

.hero {
  background: linear-gradient(180deg, #f7f4ec 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-in {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 44px; align-items: center;
  padding-top: 58px; padding-bottom: 52px;
}
.eyebrow {
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--teal); margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.3; letter-spacing: 0.02em;
}
.hero-lead {
  margin: 20px 0 0; font-size: 15px; line-height: 1.95;
  color: var(--ink-2); max-width: 44ch;
}
.hero-search {
  display: flex; align-items: stretch; max-width: 430px;
  margin-top: 26px; border-bottom: 1.5px solid var(--ink);
}
.hero-search input {
  flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent;
  padding: 10px 2px; font-size: 15px; font-family: inherit; color: var(--ink);
}
.hero-search input::placeholder { color: var(--ink-3); }
.hero-search button {
  flex: none; border: 0; background: var(--ink); color: #fff;
  padding: 0 20px; font-size: 12.5px; letter-spacing: 0.12em; cursor: pointer;
}
.hero-search button:hover { background: var(--teal-d); }
.hero-search-line { max-width: 520px; }

.hero-chips {
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  margin-top: 18px; font-size: 12.5px; color: var(--ink-3);
}
.hero-chips a { color: var(--teal-d); border-bottom: 1px solid var(--teal-l); }
.hero-chips a:hover { border-bottom-color: var(--seal); }

.hero-art {
  position: relative; height: 372px;
  display: flex; align-items: center; justify-content: center;
}
.rain-lines { position: absolute; inset: 0; width: 100%; height: 100%; color: #a9c0c6; }
.slip {
  position: relative; z-index: 1;
  width: 178px; height: 300px;
  background: #fffdf7;
  border: 1px solid #e7ddc9;
  box-shadow: 0 22px 46px -26px rgba(23, 38, 45, 0.45), 0 1px 0 #fff inset;
  display: flex; flex-direction: column; align-items: center;
  padding: 20px 0 18px;
}
.slip::before {
  content: ""; position: absolute; left: 12px; right: 12px; top: 10px;
  border-top: 1px solid #e7ddc9;
}
.slip-k {
  margin-top: 8px; font-size: 10px; letter-spacing: 0.3em;
  color: var(--ink-3);
}
.slip-name {
  writing-mode: vertical-rl; text-orientation: upright;
  font-family: var(--serif); font-size: 50px; line-height: 1;
  letter-spacing: 0.16em; margin: 18px 0 12px; color: var(--ink);
}
.slip-note {
  writing-mode: vertical-rl; font-size: 12px; letter-spacing: 0.16em;
  color: var(--ink-3); margin: 0;
}
.slip-seal {
  position: absolute; right: 14px; bottom: 14px;
  width: 32px; height: 32px; background: var(--seal); color: #fff;
  font-size: 9.5px; line-height: 1.1; letter-spacing: 0.02em;
  display: grid; place-items: center; text-align: center;
  writing-mode: vertical-rl; padding: 3px;
}
.slip-shadow {
  position: absolute; z-index: 0; width: 178px; height: 300px;
  background: #efe7d6; transform: translate(14px, 12px) rotate(1.6deg);
}

/* ------------------------------------------------------------- 区块 */

.sec { padding-top: 54px; padding-bottom: 54px; }
.sec-head { margin-bottom: 24px; }
.sec-head h2 {
  font-size: 26px; letter-spacing: 0.02em;
  display: flex; align-items: baseline; gap: 10px;
}
.sec-head p {
  margin: 8px 0 0; font-size: 13.5px; color: var(--ink-3); max-width: 62ch;
}
.sec-head-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
}
.more {
  flex: none; font-size: 13px; color: var(--teal-d);
  border-bottom: 1px solid var(--teal-l); padding-bottom: 2px;
}
.more span { margin-left: 4px; }
.sec-n {
  font-family: var(--sans); font-size: 12px; color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* 分类卡 */
.cat-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
.cat-card {
  position: relative; min-width: 0; background: #fff;
  padding: 24px 22px 20px; color: var(--ink);
  transition: background 0.18s ease;
}
.cat-card:hover { background: #fffdf8; color: var(--ink); }
.cat-k {
  display: block; font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-3);
}
.cat-card b {
  display: block; font-family: var(--serif); font-size: 21px;
  margin: 9px 0 8px; font-weight: 600;
}
.cat-card i {
  display: block; font-style: normal; font-size: 12.5px;
  line-height: 1.8; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-n {
  position: absolute; right: 20px; top: 22px;
  font-size: 11px; color: var(--ink-3);
}
.cat-card-s { padding: 18px 18px 16px; }
.cat-card-s b { font-size: 18px; margin: 6px 0 0; }
.cat-card-s .cat-n { top: 18px; right: 16px; }

/* 网名列表 */
.name-list { list-style: none; margin: 0; padding: 0; }
.name-list-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; }
.name-row {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px; align-items: start;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.name-idx {
  font-size: 11px; color: var(--ink-3); padding-top: 5px;
  font-variant-numeric: tabular-nums; letter-spacing: 0.06em;
}
.name-main { min-width: 0; }
.name-text {
  font-family: var(--serif), "Microsoft Himalaya", "Segoe UI Historic", "Segoe UI Symbol", sans-serif; font-size: 19px; line-height: 1.5;
  font-weight: 600; color: var(--ink);
  margin: 0; cursor: pointer; word-break: break-word;
}
.name-text:hover { color: var(--teal-d); }
.name-note {
  font-size: 12.5px; color: var(--ink-3); line-height: 1.7; margin: 3px 0 0;
}
.name-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.chip {
  display: inline-block; font-size: 10.5px; color: var(--ink-2);
  background: var(--paper-2); border: 1px solid var(--line);
  padding: 1px 7px; line-height: 1.75;
}
a.chip:hover { border-color: var(--teal); color: var(--teal-d); }

.copy-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--ink-3); background: #fff;
  border: 1px solid var(--line-2); padding: 5px 9px;
  cursor: pointer; white-space: nowrap; flex: none;
  transition: color 0.15s, border-color 0.15s;
}
.copy-btn:hover { color: var(--teal); border-color: var(--teal); }
.copy-btn.done { color: #fff; background: var(--teal); border-color: var(--teal); }

/* 情侣配对 */
.pair-row {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px; align-items: start;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.pair-main { min-width: 0; }
.pair-names {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.pair-n {
  font-family: var(--serif); font-size: 18px; line-height: 1.5; font-weight: 600;
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--ink); text-align: left;
}
.pair-n:hover { color: var(--teal-d); }
.pair-x { color: var(--line-2); }

/* 签名 */
.quote-list { list-style: none; margin: 0; padding: 0; }
.quote-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px; align-items: start;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.quote-body { min-width: 0; }
.quote-t {
  font-family: var(--serif); font-size: 16.5px; line-height: 1.85; font-weight: 500;
  margin: 0; cursor: pointer; word-break: break-word;
}
.quote-t:hover { color: var(--teal-d); }
.quote-m {
  margin: 4px 0 0; font-size: 12.5px; color: var(--ink-3);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.quote-idx {
  font-size: 11px; color: var(--ink-3); padding-top: 4px;
  font-variant-numeric: tabular-nums;
}
.quote-list-plain .quote-item { grid-template-columns: minmax(0, 1fr); }
.quote-list-plain .quote-m { font-size: 12px; }

/* 工具条 */
.tool-strip {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.tool-card {
  background: #fff; padding: 20px 18px; min-width: 0; color: var(--ink);
  display: flex; flex-direction: column;
}
.tool-card:hover { background: #fffdf8; color: var(--ink); }
.tool-k {
  font-family: var(--serif); font-size: 12px; color: var(--seal);
  letter-spacing: 0.1em;
}
.tool-card b { font-family: var(--serif); font-size: 17px; margin: 8px 0 2px; }
.tool-sub { font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em; }
.tool-card i {
  font-style: normal; font-size: 12px; color: var(--ink-2);
  line-height: 1.75; margin-top: 10px;
}

/* 双栏 */
.sec-split {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 52px; align-items: start;
}
.split-main { min-width: 0; }
.split-side { min-width: 0; border-left: 1px solid var(--line); padding-left: 32px; }
.side-h {
  font-size: 15px; letter-spacing: 0.08em; margin-bottom: 14px;
  padding-bottom: 9px; border-bottom: 1px solid var(--ink);
  display: inline-block;
}
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.side-list a {
  display: block; font-size: 13.5px; line-height: 1.65; color: var(--ink);
}
.side-list a:hover { color: var(--teal-d); }
.side-list span { display: block; font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.side-more {
  display: inline-block; margin-top: 14px; font-size: 12.5px;
  color: var(--teal-d); border-bottom: 1px solid var(--teal-l);
}

/* 方法卡 */
.guide-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.guide-card {
  background: #fff; padding: 24px 24px 20px; min-width: 0; color: var(--ink);
  display: flex; flex-direction: column;
}
.guide-card:hover { background: #fffdf8; color: var(--ink); }
.guide-tag {
  font-size: 10.5px; letter-spacing: 0.16em; color: var(--seal);
  text-transform: uppercase;
}
.guide-card b {
  font-family: var(--serif); font-size: 19px; line-height: 1.6;
  margin: 8px 0 8px; font-weight: 600;
}
.guide-card i {
  font-style: normal; font-size: 12.5px; color: var(--ink-2);
  line-height: 1.8;
}
.guide-d { font-size: 11px; color: var(--ink-3); margin-top: 12px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.faq-item {
  padding: 15px 0; border-bottom: 1px solid var(--line); min-width: 0;
}
.faq-item summary {
  cursor: pointer; font-size: 14.5px; line-height: 1.7; color: var(--ink);
  list-style: none; position: relative; padding-right: 24px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 2px; top: -2px;
  color: var(--ink-3); font-size: 18px; line-height: 1.4;
}
.faq-item[open] summary::after { content: "−"; color: var(--teal); }
.faq-item summary:hover { color: var(--teal-d); }
.faq-item p {
  margin: 10px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.9;
}

/* 数字带 */
.sec-num {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 20px;
}
.num-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.num-grid > div { text-align: center; }
.num-grid b {
  display: block; font-family: var(--serif); font-size: 34px;
  color: var(--teal-d); line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.num-grid span {
  display: block; font-size: 12px; color: var(--ink-3);
  letter-spacing: 0.12em; margin-top: 4px;
}
.num-note {
  margin: 22px 0 0; font-size: 12px; color: var(--ink-3);
  text-align: center; line-height: 1.9;
}

/* ------------------------------------------------------------- 频道页 */

.crumbs {
  font-size: 12px; color: var(--ink-3); padding: 14px 0 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px;
}
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--teal); }
.crumbs .sep { margin: 0 6px; color: var(--line-2); }
.crumbs .cur { color: var(--ink-2); }

.ch-head { padding: 26px 0 30px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.ch-head-in {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px; align-items: end;
}
.ch-title { min-width: 0; }
.ch-title h1 { font-size: clamp(30px, 3.4vw, 42px); letter-spacing: 0.03em; }
.ch-lead {
  margin: 16px 0 0; font-size: 14.5px; line-height: 1.95;
  color: var(--ink-2); max-width: 62ch;
}
.ch-meta { display: flex; gap: 28px; flex: none; }
.ch-meta > div { text-align: right; }
.ch-meta b {
  display: block; font-family: var(--serif); font-size: 26px;
  color: var(--teal-d); line-height: 1.2;
}
.ch-meta span { font-size: 11px; color: var(--ink-3); letter-spacing: 0.1em; }

.ch-sec {
  display: grid; grid-template-columns: 236px minmax(0, 1fr);
  gap: 44px; padding: 40px 0; border-bottom: 1px solid var(--line);
  align-items: start;
}
.ch-sec-h { min-width: 0; }
.ch-sec-n {
  display: block; font-family: var(--serif); font-size: 12px;
  color: var(--seal); letter-spacing: 0.16em;
}
.ch-sec-h h2 { font-size: 22px; margin: 8px 0 6px; }
.ch-sec-h h2 a { color: var(--ink); }
.ch-sec-h h2 a:hover { color: var(--teal-d); }
.ch-sec-sub { margin: 0; font-size: 13px; color: var(--ink-2); }
.ch-sec-tag { margin: 6px 0 0; font-size: 11.5px; color: var(--ink-3); }
.ch-sec-link {
  display: inline-block; margin-top: 12px; font-size: 12.5px;
  color: var(--teal-d); border-bottom: 1px solid var(--teal-l);
}
.ch-sec-body { min-width: 0; }
.ch-sec-body .name-row:first-child { padding-top: 0; }
.ch-sec-more { margin: 14px 0 0; font-size: 12px; color: var(--ink-3); }
.ch-sec-more a { color: var(--teal-d); }

.tips-3 {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.tip { min-width: 0; border-top: 2px solid var(--ink); padding-top: 14px; }
.tip b {
  display: block; font-family: var(--serif); font-size: 16px; margin-bottom: 8px;
}
.tip p { margin: 0; font-size: 13px; line-height: 1.9; color: var(--ink-2); }

.sec-rel { border-top: 1px solid var(--line); }
.rel-links {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.rel-links a {
  background: #fff; padding: 18px 20px; min-width: 0; color: var(--ink);
}
.rel-links a:hover { background: #fffdf8; color: var(--ink); }
.rel-links b { display: block; font-family: var(--serif); font-size: 16px; margin-bottom: 6px; }
.rel-links span {
  display: block; font-size: 12px; color: var(--ink-3); line-height: 1.8;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

.rel-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.rel-grid-8 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rel-card {
  background: #fff; padding: 16px 18px; min-width: 0; color: var(--ink);
}
.rel-card:hover { background: #fffdf8; color: var(--ink); }
.rel-card b { display: block; font-family: var(--serif); font-size: 15.5px; }
.rel-card span { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.rel-card i { font-style: normal; font-size: 11px; color: var(--ink-3); }

/* ------------------------------------------------------------- 详情页 */

.art-head { padding-top: 22px; padding-bottom: 26px; }
.art-head-in { padding-top: 0; }
.art-head h1 {
  font-size: clamp(26px, 3.1vw, 38px); line-height: 1.45;
  letter-spacing: 0.02em; max-width: 30ch;
}
.art-dek {
  margin: 14px 0 0; font-size: 14.5px; line-height: 1.95;
  color: var(--ink-2); max-width: 66ch;
}
.art-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }

.art-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 292px;
  gap: 52px; align-items: start;
  padding-bottom: 60px;
}
.art-layout > * { min-width: 0; }
.art-layout-art { padding-top: 4px; }
.art-col { min-width: 0; }
.art-side { min-width: 0; position: sticky; top: 18px; }

.lead-block {
  border-left: 3px solid var(--teal);
  background: #fff;
  padding: 20px 24px 4px;
  margin-bottom: 26px;
  font-size: 14.5px; line-height: 2; color: var(--ink-2);
}

.prose { font-size: 15.5px; line-height: 2; color: var(--ink-2); }
.prose p { margin: 0 0 1.1em; }
.prose > p:first-child { color: var(--ink); }
.prose h2 {
  font-size: 21px; margin: 2em 0 0.7em; color: var(--ink);
  padding-left: 12px; border-left: 3px solid var(--seal);
  line-height: 1.5;
}
.prose h3 { font-size: 17px; margin: 1.6em 0 0.6em; color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.4em 0; }
.prose a { border-bottom: 1px solid var(--teal-l); }
.prose a:hover { border-bottom-color: var(--seal); }
.prose blockquote {
  margin: 1.4em 0; padding: 2px 0 2px 18px;
  border-left: 2px solid var(--line-2); color: var(--ink-3);
}

.art-body {
  background: #fff; border: 1px solid var(--line);
  padding: 30px 34px 14px;
}
.art-foot {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-3); line-height: 1.9;
}
.art-foot p { margin: 0 0 4px; }

.side-box {
  border: 1px solid var(--line); background: #fff;
  padding: 18px 18px 14px; margin-bottom: 20px;
}
.side-facts { list-style: none; margin: 0; padding: 0; }
.side-facts li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px dotted var(--line);
  font-size: 12.5px;
}
.side-facts li:last-child { border-bottom: 0; }
.side-facts span { color: var(--ink-3); flex: none; }
.side-facts b { font-weight: 500; text-align: right; color: var(--ink); }
.side-facts-list li { display: block; }
.side-facts-list b { display: block; text-align: left; margin-top: 3px; line-height: 1.7; }

.side-tools { list-style: none; margin: 0; padding: 0; }
.side-tools li { border-bottom: 1px solid var(--line); }
.side-tools li:last-child { border-bottom: 0; }
.side-tools a { display: block; padding: 9px 0; }
.side-tools b { display: block; font-size: 13px; color: var(--ink); font-weight: 500; }
.side-tools a:hover b { color: var(--teal-d); }
.side-tools span { font-size: 11px; color: var(--ink-3); }

.side-links { list-style: none; margin: 0; padding: 0; }
.side-links li { border-bottom: 1px solid var(--line); }
.side-links li:last-child { border-bottom: 0; }
.side-links a {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 9px 0; font-size: 13px; color: var(--ink);
}
.side-links a:hover, .side-links a.on { color: var(--teal-d); }
.side-links span { font-size: 11px; color: var(--ink-3); }

.toc ol { margin: 0; padding-left: 1.1em; }
.toc li { font-size: 12.5px; line-height: 1.8; margin: 5px 0; }
.toc a { color: var(--ink-2); }
.toc a:hover { color: var(--teal); }

.filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.filter-label { font-size: 12px; color: var(--ink-3); margin-right: 2px; }
.filter-btn {
  font-size: 12px; color: var(--ink-2); background: #fff;
  border: 1px solid var(--line-2); padding: 3px 10px; cursor: pointer;
}
.filter-btn:hover { border-color: var(--teal); color: var(--teal-d); }
.filter-btn.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.name-row[hidden] { display: none; }

.list-end {
  margin: 16px 0 0; font-size: 12px; color: var(--ink-3); line-height: 1.9;
}

/* ------------------------------------------------------------- 百科 */

.qa-cat { padding: 38px 0 8px; border-top: 1px solid var(--line); }
.qa-cat:first-of-type { border-top: 0; }
.qa-cat-h {
  display: grid; grid-template-columns: 40px auto 1fr auto;
  gap: 14px; align-items: baseline; margin-bottom: 14px;
}
.qa-cat-n {
  font-family: var(--serif); font-size: 12px; color: var(--seal);
  letter-spacing: 0.14em;
}
.qa-cat-h h2 { font-size: 24px; }
.qa-cat-h p { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.qa-cat-c { font-size: 11px; color: var(--ink-3); }

.qa-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.qa-list li { border-bottom: 1px solid var(--line); }
.qa-list a { display: block; padding: 14px 0; color: var(--ink); }
.qa-list a:hover { color: var(--ink); }
.qa-list b {
  display: block; font-family: var(--serif); font-size: 16.5px;
  line-height: 1.65; font-weight: 600;
}
.qa-list a:hover b { color: var(--teal-d); }
.qa-list span { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.7; }
.qa-list em { font-style: normal; font-size: 11px; color: var(--ink-3); }
.qa-list-rel b { font-size: 15px; }

/* ------------------------------------------------------------- 工具 */

.tool-page {
  display: grid; grid-template-columns: 330px minmax(0, 1fr);
  gap: 40px; align-items: start; padding-bottom: 10px;
}
.tool-page > * { min-width: 0; }
.tool-form {
  border: 1px solid var(--line); background: #fff;
  padding: 22px 22px 18px;
}
.field { margin-bottom: 18px; }
.field > label, .field > .label {
  display: block; font-size: 12px; color: var(--ink-2);
  letter-spacing: 0.06em; margin-bottom: 7px;
}
.field input[type=text], .field input[type=email], .field input[type=search], .field textarea {
  width: 100%; border: 1px solid var(--line-2); background: #fff;
  padding: 9px 11px; font-size: 14px; font-family: inherit;
  color: var(--ink); outline: 0;
}
.field input:focus, .field textarea:focus { border-color: var(--teal); }
.field textarea { resize: vertical; line-height: 1.8; }
.hint { margin: 6px 0 0; font-size: 11.5px; color: var(--ink-3); line-height: 1.7; }
.hint-safe { margin-top: 12px; }

.field-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.field-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row-2 .field { margin-bottom: 18px; }

.btn-primary {
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
  padding: 10px 22px; font-size: 13.5px; letter-spacing: 0.06em; cursor: pointer;
}
.btn-primary:hover { background: var(--teal-d); border-color: var(--teal-d); }
.btn-ghost {
  border: 1px solid var(--line-2); background: #fff; color: var(--ink-2);
  padding: 9px 18px; font-size: 13px; cursor: pointer;
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-d); }

/* 分段选择 */
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label {
  position: relative; display: inline-flex; cursor: pointer;
}
.seg input {
  position: absolute; opacity: 0; width: 1px; height: 1px; /* 防止撑破布局 */
}
.seg span {
  border: 1px solid var(--line-2); background: #fff; color: var(--ink-2);
  font-size: 12.5px; padding: 5px 12px; line-height: 1.6;
}
.seg input:checked + span {
  background: var(--teal); border-color: var(--teal); color: #fff;
}
.seg input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 1px; }

.tool-out {
  border: 1px solid var(--line); background: #fff; padding: 22px 26px 18px;
}
.out-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; border-bottom: 1px solid var(--ink); padding-bottom: 10px;
  margin-bottom: 4px;
}
.out-head h2 { font-size: 18px; }
.out-head span { font-size: 11.5px; color: var(--ink-3); }

.fh-list { list-style: none; margin: 0; padding: 0; }
.fh-row {
  display: grid; grid-template-columns: 88px minmax(0, 1fr) 58px auto;
  gap: 12px; align-items: center; padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.fh-name { font-size: 11.5px; color: var(--ink-3); }
.fh-val {
  font-size: 15px; color: var(--ink); word-break: break-all;
  cursor: pointer; line-height: 1.6;
}
.fh-ok { font-size: 10.5px; text-align: center; padding: 1px 0; }
.fh-ok.ok { color: #2f7a52; background: #eef6f0; }
.fh-ok.warn { color: #9a7220; background: #fbf4e2; }

.tj-score {
  display: flex; align-items: center; gap: 20px;
  padding: 18px 20px; margin-bottom: 18px; border: 1px solid var(--line);
  background: var(--paper);
}
.tj-num {
  font-family: var(--serif); font-size: 44px; line-height: 1;
  color: var(--teal-d); font-variant-numeric: tabular-nums;
}
.tj-num span { font-size: 13px; color: var(--ink-3); }
.tj-v b { display: block; font-family: var(--serif); font-size: 18px; }
.tj-v em { font-style: normal; font-size: 12.5px; color: var(--ink-2); }
.tj-score.warn .tj-num { color: #9a7220; }
.tj-score.bad .tj-num { color: var(--seal); }

.tj-bars { margin-bottom: 4px; }
.tj-bar {
  display: grid; grid-template-columns: 62px minmax(0, 1fr) 120px;
  gap: 12px; align-items: center; padding: 7px 0;
}
.tj-bar-n { font-size: 12px; color: var(--ink-2); }
.tj-bar-t { height: 6px; background: var(--paper-3); display: block; }
.tj-bar-t i { display: block; height: 6px; background: var(--teal); }
.tj-bar-v { font-size: 11.5px; color: var(--ink-3); text-align: right; }
.tj-tips { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.tj-tips h3 { font-size: 14px; margin-bottom: 8px; }
.tj-tips ul { margin: 0; padding-left: 1.2em; }
.tj-tips li { font-size: 13px; color: var(--ink-2); line-height: 1.85; }

.tool-notes { padding-top: 0; }
.tool-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.tool-big {
  background: #fff; padding: 24px 22px; min-width: 0; color: var(--ink);
  display: flex; flex-direction: column;
}
.tool-big:hover { background: #fffdf8; color: var(--ink); }
.tool-big b { font-family: var(--serif); font-size: 20px; margin: 8px 0 2px; }
.tool-big p { font-size: 12.5px; color: var(--ink-2); line-height: 1.8; margin: 10px 0 14px; }
.tool-go { margin-top: auto; font-size: 12px; color: var(--teal-d); }

/* ------------------------------------------------------------- 表单 */

.notice {
  padding: 14px 18px; margin-bottom: 20px; border: 1px solid var(--line);
  font-size: 13.5px;
}
.notice b { display: block; margin-bottom: 4px; font-size: 14px; }
.notice p { margin: 0; font-size: 13px; color: var(--ink-2); }
.notice ul { margin: 4px 0 0; padding-left: 1.2em; font-size: 13px; }
.notice-ok { background: #eef6f0; border-color: #cfe4d6; }
.notice-err { background: #fbeeec; border-color: #e8c9c4; }
.notice-err b { color: var(--seal); }

.lead-form { border: 1px solid var(--line); background: #fff; padding: 26px 26px 20px; }
.hp {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

/* ------------------------------------------------------------- 广告位 */

.ad {
  border: 1px dashed var(--line-2);
  background: repeating-linear-gradient(45deg, #faf7f0, #faf7f0 8px, #f5f1e7 8px, #f5f1e7 16px);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--ink-3); font-size: 11.5px;
  margin: 26px 0;
}
.ad-banner { min-height: 90px; }
.ad-inline { min-height: 88px; }
.ad-box { min-height: 200px; margin: 18px 0 0; }
.ad-tag {
  border: 1px solid var(--line-2); background: #fff;
  padding: 1px 7px; font-size: 10.5px; letter-spacing: 0.1em;
}
.ad-note { font-size: 10.5px; color: var(--ink-3); }

/* ------------------------------------------------------------- 页脚 */

.site-foot {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  margin-top: 20px;
}
.foot-grid {
  display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 0.8fr));
  gap: 40px; padding-top: 46px; padding-bottom: 34px;
}
.foot-brand img { width: 190px; height: auto; margin-bottom: 14px; }
.foot-brand p { font-size: 12px; color: var(--ink-2); line-height: 1.9; margin: 0 0 10px; }
.foot-note { color: var(--ink-3) !important; font-size: 11.5px !important; }
.foot-col h3 {
  font-size: 13px; letter-spacing: 0.14em; margin-bottom: 12px;
  color: var(--ink); font-family: var(--sans); font-weight: 600;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin: 7px 0; }
.foot-col a { font-size: 12.5px; color: var(--ink-2); }
.foot-col a:hover { color: var(--teal-d); }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line-2); padding-top: 14px; padding-bottom: 20px;
  font-size: 11.5px; color: var(--ink-3);
}
.foot-bottom p { margin: 0; }
.foot-bottom a { color: var(--ink-3); }
.foot-bottom a:hover { color: var(--teal-d); }

/* ------------------------------------------------------------- 响应式 */

@media (max-width: 1080px) {
  .hero-in { gap: 30px; }
  .site-nav > a { padding-left: 15px; padding-right: 15px; }
  .nav-more { gap: 14px; }
  .tool-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tool-strip .tool-card:nth-child(n+4) { border-top: 1px solid var(--line); }
}

@media (max-width: 960px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .hero-in { grid-template-columns: minmax(0, 1fr); padding-top: 44px; padding-bottom: 40px; }
  .hero-art { display: none; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .name-list-2 { grid-template-columns: minmax(0, 1fr); }
  .sec-split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .split-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
  .art-layout { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .art-side { position: static; }
  .art-side .side-box { display: inline-block; vertical-align: top; width: calc(50% - 12px); margin-right: 14px; }
  .art-side .side-box:nth-child(2n) { margin-right: 0; }
  .art-side .ad { width: 100%; }
  .ch-sec { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .ch-sec-h { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: baseline; }
  .ch-sec-h h2 { margin: 0; }
  .ch-sec-sub, .ch-sec-tag, .ch-sec-link { grid-column: 2; }
  .tool-page { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .mast-tag { display: none; }
  .head-search input { width: 150px; }
}

/* 导航折叠 */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
    width: 38px; height: 34px; margin-left: auto; padding: 0 8px;
    background: #fff; border: 1px solid var(--line-2); cursor: pointer;
  }
  .nav-toggle span { display: block; height: 1.5px; background: var(--ink); }
  .masthead { flex-wrap: wrap; gap: 12px; }
  .brand img { width: 168px; }
  .head-search { order: 3; width: 100%; }
  .head-search input { flex: 1; width: auto; }
  .nav-bar { display: none; }
  .nav-bar.open { display: block; }
  .nav-in { padding-top: 0; }
  .site-nav { flex-wrap: wrap; }
  .site-nav > a { width: 33.33%; border-bottom: 1px solid var(--line); padding: 12px 10px; }
  .site-nav > a.on { border-bottom-color: var(--teal); }
  .nav-more {
    width: 100%; border-top: 1px solid var(--line); gap: 22px;
    padding: 10px 10px; margin-left: 0; font-size: 12.5px;
  }
  .ch-head-in { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .ch-meta { justify-content: flex-start; }
  .ch-meta > div { text-align: left; }
  .qa-cat-h { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .qa-cat-h p { grid-column: 2 / -1; margin-top: -4px; }
  .rel-links { grid-template-columns: minmax(0, 1fr); }
  .rel-grid-8 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tips-3 { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .hero h1 { font-size: 30px; }
  .hero-lead { font-size: 14px; }
  .sec { padding-top: 38px; padding-bottom: 38px; }
  .sec-head h2 { font-size: 22px; }
  .sec-head-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cat-grid { grid-template-columns: minmax(0, 1fr); }
  .cat-card i { -webkit-line-clamp: 2; }
  .tool-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-grid { grid-template-columns: minmax(0, 1fr); }
  .rel-grid-8 { grid-template-columns: minmax(0, 1fr); }
  .num-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .num-grid b { font-size: 28px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .foot-bottom { flex-direction: column; gap: 6px; }
  .name-row, .pair-row, .quote-item {
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 8px;
  }
  .name-text { font-size: 17px; }
  .pair-n { font-size: 16px; }
  .quote-t { font-size: 15.5px; }
  .copy-btn span { display: none; }
  .copy-btn { padding: 6px 7px; }
  .art-body { padding: 22px 18px 8px; }
  .prose { font-size: 15px; }
  .prose h2 { font-size: 19px; }
  .art-side .side-box { display: block; width: 100%; margin-right: 0; }
  .fh-row { grid-template-columns: 74px minmax(0, 1fr) auto; }
  .fh-ok { display: none; }
  .tj-bar { grid-template-columns: 54px minmax(0, 1fr); }
  .tj-bar-v { grid-column: 2; text-align: left; margin-top: -4px; }
  .tool-form, .tool-out { padding: 18px 16px; }
  .lead-form { padding: 18px 16px; }
  .field-row-2 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .announce p { font-size: 12px; white-space: normal; line-height: 1.6; }
  .announce-in { align-items: flex-start; }
  .announce-tag { margin-top: 1px; }
  .topbar-r .hide-s { display: none; }
  .site-nav > a { width: 50%; }
  .site-nav > a b { font-size: 14px; }
  .brand img { width: 148px; }
  .ch-title h1 { font-size: 27px; }
  .art-head h1 { font-size: 24px; }
}

/* 打印 */
@media print {
  .site-head, .site-foot, .ad, .tool-form, .art-side, .copy-btn, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .art-layout { display: block; }
  .art-body { border: 0; padding: 0; }
}
