/* ==========================================================================
   耀世娱乐 AI 论坛 · 耀世档案馆 The Yaoshi Archive
   视觉体系：冷灰新闻纸 / 墨蓝铅字 / 铬黄标记 / 文件夹标签 / 索引卡 / 图章
   全站直角、纸面横格纹理、无投影，与既有全部模板区隔
   ========================================================================== */

:root {
  --paper: #ece9df;
  --paper-2: #f5f3ec;
  --paper-3: #e2ded1;
  --paper-4: #d6d1c1;
  --white: #fbfaf6;
  --ink: #141a26;
  --ink-2: #3e4655;
  --ink-3: #747b89;
  --ink-4: #9aa0aa;
  --rule: #c6c0ae;
  --rule-2: #a49d88;
  --yellow: #f2c200;
  --yellow-2: #ffe37a;
  --yellow-3: #fff3c4;
  --blue: #1e56c8;
  --blue-2: #12327a;
  --red: #b93a28;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", "STSong", serif;
  --sans: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, "Courier New", monospace;
  --shell: 1180px;
  --rail-h: 34px;
  --nav-h: 46px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(20, 26, 38, .05) 31px 32px),
    radial-gradient(circle at 18% 6%, rgba(255, 255, 255, .5), transparent 55%);
  background-attachment: fixed;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--red); text-decoration: underline; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--serif); font-weight: 700; line-height: 1.3; letter-spacing: .01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--yellow); color: var(--ink); }

.ys-shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 28px; }
.ys-mono { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.ys-serif { font-family: var(--serif); }
.ys-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 顶部通栏 ---------- */
.ys-rail {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 3px solid var(--yellow);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  line-height: var(--rail-h);
}
.ys-rail-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.ys-rail-mid { color: var(--yellow); }
.ys-rail-links { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.ys-rail-links a { color: var(--paper); }
.ys-rail-links a:hover { color: var(--yellow); text-decoration: none; }
.ys-rail-links i { font-style: normal; color: var(--ink-4); }

/* ---------- 报头 ---------- */
.ys-mast { padding: 22px 0 20px; }
.ys-mast-in { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.ys-brand { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); }
.ys-brand:hover { text-decoration: none; color: var(--ink); }
.ys-brand img { width: 54px; height: 54px; flex: none; }
.ys-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.ys-brand-text strong {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--ink);
}
.ys-brand-text strong span { color: var(--blue-2); }
.ys-brand-text small {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .24em;
  color: var(--ink-3);
}
.ys-mast-side { display: flex; align-items: center; gap: 14px; }
.ys-search { display: flex; align-items: stretch; height: 40px; border: 1px solid var(--ink); background: var(--white); }
.ys-search input {
  width: 200px;
  padding: 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
}
.ys-search input::placeholder { color: var(--ink-4); }
.ys-search button {
  padding: 0 14px;
  border: 0;
  border-left: 1px solid var(--ink);
  background: var(--paper-3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--ink);
}
.ys-search button:hover { background: var(--yellow); }

/* ---------- 按钮 ---------- */
.ys-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper-2);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: center;
  transition: background .18s ease, color .18s ease;
}
.ys-btn:hover { background: var(--yellow); border-color: var(--ink); color: var(--ink); text-decoration: none; }
.ys-btn--gold { background: var(--yellow); color: var(--ink); }
.ys-btn--gold:hover { background: var(--ink); color: var(--yellow); }
.ys-btn--ghost { background: transparent; color: var(--ink); }
.ys-btn--ghost:hover { background: var(--ink); color: var(--yellow); }
.ys-btn--sm { min-height: 34px; padding: 6px 14px; font-size: 12px; }
.ys-btn--block { width: 100%; }

/* ---------- 标签式导航 ---------- */
.ys-nav {
  position: sticky;
  top: 0;
  z-index: 800;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  box-shadow: 0 1px 0 var(--paper-3);
}
.ys-tabs { display: flex; align-items: flex-end; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.ys-tabs::-webkit-scrollbar { display: none; }
.ys-tab {
  flex: none;
  position: relative;
  top: 2px;
  padding: 10px 18px;
  border: 1px solid var(--rule-2);
  border-bottom: 0;
  background: var(--paper-3);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
  line-height: 1.5;
}
.ys-tab:hover { background: var(--yellow-3); color: var(--ink); text-decoration: none; }
.ys-tab.is-active {
  background: var(--paper-2);
  color: var(--ink);
  border-color: var(--ink);
  border-top: 3px solid var(--yellow);
  padding-top: 8px;
  font-weight: 700;
}
.ys-nav-side { margin-left: auto; padding: 0 0 8px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.ys-nav-side a { color: var(--blue); }

/* ---------- 移动端抽屉 ---------- */
.ys-burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ink);
  background: var(--paper-2);
  padding: 0;
  position: relative;
}
.ys-burger span, .ys-burger span::before, .ys-burger span::after {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  background: var(--ink);
  content: "";
  transform: translateX(-50%);
  transition: transform .2s ease, opacity .2s ease;
}
.ys-burger span { top: 50%; margin-top: -1px; }
.ys-burger span::before { top: -6px; }
.ys-burger span::after { top: 6px; }
.ys-burger.is-open span { background: transparent; }
.ys-burger.is-open span::before { transform: translate(-50%, 6px) rotate(45deg); }
.ys-burger.is-open span::after { transform: translate(-50%, -6px) rotate(-45deg); }
.ys-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1000;
  width: min(86vw, 340px);
  height: 100vh;
  height: 100dvh;
  padding: 18px 20px 32px;
  background: var(--paper-2);
  border-left: 2px solid var(--ink);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform .28s ease, visibility .28s;
  overflow-y: auto;
}
.ys-drawer.is-open { transform: translateX(0); visibility: visible; }
.ys-drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.ys-drawer-head strong { font-family: var(--serif); font-size: 20px; letter-spacing: .12em; }
.ys-drawer-close { width: 34px; height: 34px; border: 1px solid var(--ink); background: var(--yellow); font-size: 18px; line-height: 1; }
.ys-drawer nav { display: flex; flex-direction: column; margin: 12px 0 18px; }
.ys-drawer nav a {
  padding: 12px 4px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}
.ys-drawer nav a:hover { color: var(--blue); text-decoration: none; }
.ys-drawer .ys-btn { margin-top: 6px; }
.ys-drawer-key { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ys-drawer-key a { border: 1px solid var(--rule-2); padding: 5px 9px; font-size: 12px; color: var(--ink-2); }
.ys-overlay {
  position: fixed;
  inset: 0;
  z-index: 990;
  background: rgba(20, 26, 38, .55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.ys-overlay.is-open { opacity: 1; pointer-events: auto; }

/* ---------- 关键词通栏 ---------- */
.ys-kwbar {
  background: var(--yellow);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 2.6;
  letter-spacing: .04em;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.ys-kwbar::-webkit-scrollbar { display: none; }
.ys-kwbar .ys-shell { display: flex; align-items: center; gap: 12px; }
.ys-kwbar b { font-weight: 700; letter-spacing: .12em; }
.ys-kwbar a { color: var(--ink); }
.ys-kwbar a:hover { color: var(--red); text-decoration: underline; }
.ys-kwbar i { font-style: normal; color: rgba(20, 26, 38, .45); }

/* ---------- 首屏：报纸头版 ---------- */
.ys-hero {
  position: relative;
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
  isolation: isolate;
}
.ys-hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.ys-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 68% center; }
.ys-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, var(--paper) 0%, var(--paper) 33%, rgba(236, 233, 223, .92) 45%, rgba(236, 233, 223, .35) 60%, rgba(236, 233, 223, 0) 76%),
    linear-gradient(0deg, rgba(236, 233, 223, .9) 0%, transparent 24%);
}
.ys-hero-in { padding: 66px 0 54px; }
.ys-hero-main { max-width: 620px; }
.ys-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px;
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ys-kicker--light { background: var(--yellow); color: var(--ink); }
.ys-hero h1 {
  margin: 20px 0 16px;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.2;
  letter-spacing: .015em;
  text-wrap: balance;
}
.ys-mark {
  background-image: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 94%, transparent 94%);
  padding: 0 3px;
}
.ys-hero-lead { max-width: 520px; color: var(--ink-2); font-size: 15px; line-height: 1.9; }
.ys-hero-act { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.ys-stats { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 520px; border-top: 1px solid var(--ink-3); }
.ys-stat { padding: 12px 16px 0 0; }
.ys-stat + .ys-stat { padding-left: 18px; border-left: 1px solid var(--rule-2); }
.ys-stat strong { display: block; font-family: var(--serif); font-size: 26px; line-height: 1.2; letter-spacing: .02em; }
.ys-stat span { display: block; margin-top: 2px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--ink-3); }
.ys-stamp {
  position: absolute;
  right: 34px;
  bottom: 30px;
  padding: 8px 14px;
  border: 2px solid var(--red);
  color: var(--red);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  line-height: 1.5;
  text-align: center;
  transform: rotate(-7deg);
  opacity: .78;
  background: rgba(236, 233, 223, .35);
}
.ys-stamp b { display: block; font-size: 13px; }

/* ---------- 区块骨架 ---------- */
.ys-sec { padding: 56px 0; }
.ys-sec--tight { padding: 36px 0; }
.ys-sec--paper2 { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ys-sec--ink { background: var(--ink); color: var(--paper-2); }
.ys-sechead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}
.ys-sechead-l { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.ys-secno {
  display: inline-block;
  padding: 2px 8px;
  background: var(--yellow);
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  line-height: 1.7;
}
.ys-sechead h2 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: .03em; }
.ys-seclabel { font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; color: var(--ink-3); text-transform: uppercase; }
.ys-more { font-family: var(--mono); font-size: 12px; color: var(--ink); border-bottom: 1px solid var(--ink); white-space: nowrap; }
.ys-more:hover { color: var(--red); border-color: var(--red); text-decoration: none; }
.ys-lead { color: var(--ink-2); font-size: 14.5px; line-height: 1.9; }
.ys-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ys-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ys-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ---------- 版区索引卡 ---------- */
.ys-desks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ys-desk {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 20px;
  background: var(--paper-2);
  border: 1px solid var(--ink);
  border-top: 5px solid var(--ink);
  transition: background .18s ease, border-color .18s ease;
}
.ys-desk:hover { background: var(--white); border-top-color: var(--yellow); }
.ys-desk-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ys-desk-no {
  display: inline-block;
  padding: 1px 7px;
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
}
.ys-desk-count { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.ys-desk h3 { font-size: 19px; letter-spacing: .02em; }
.ys-desk h3 a { color: var(--ink); }
.ys-desk h3 a:hover { color: var(--blue); text-decoration: none; }
.ys-desk p { margin: 8px 0 14px; color: var(--ink-2); font-size: 13px; line-height: 1.8; }
.ys-desk-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.ys-desk-foot a { color: var(--ink); }
.ys-desk-foot a:hover { color: var(--red); text-decoration: none; }
.ys-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ys-tag {
  display: inline-block;
  padding: 1px 7px;
  border: 1px solid var(--rule-2);
  background: var(--paper);
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.8;
}
.ys-tag:hover { background: var(--yellow-3); color: var(--ink); border-color: var(--ink); text-decoration: none; }
.ys-tag--hot { background: var(--ink); border-color: var(--ink); color: var(--yellow); }

/* ---------- 主题目录（表格行） ---------- */
.ys-threads { border: 1px solid var(--ink); background: var(--paper-2); }
.ys-tr {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 118px 76px 76px 104px;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-top: 1px solid var(--rule);
}
.ys-tr--head {
  border-top: 0;
  padding: 9px 16px;
  background: var(--ink);
  color: var(--paper-3);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ys-tr:not(.ys-tr--head):hover { background: var(--yellow-3); }
.ys-tr-no { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.ys-tr-main { min-width: 0; }
.ys-tr-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; font-size: 14.5px; line-height: 1.5; }
.ys-tr-title a { color: var(--ink); }
.ys-tr-title a:hover { color: var(--blue); text-decoration: none; }
.ys-tr-sub { margin-top: 3px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: .03em; }
.ys-tr-author, .ys-tr-num, .ys-tr-time { font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }
.ys-tr-time { color: var(--ink-3); }
.ys-pin { display: inline-block; padding: 0 6px; background: var(--red); color: #fff; font-family: var(--mono); font-size: 10px; line-height: 1.7; }
.ys-pin--yellow { background: var(--yellow); color: var(--ink); }

/* ---------- 热议 ---------- */
.ys-hot { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.ys-hot-item { padding: 22px 24px 24px; }
.ys-hot-item + .ys-hot-item { border-left: 1px solid var(--rule-2); }
.ys-hot-rank { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--ink-4); }
.ys-hot-item h3 { margin: 10px 0 8px; font-size: 18px; line-height: 1.5; }
.ys-hot-item h3 a { color: var(--ink); }
.ys-hot-item h3 a:hover { color: var(--blue); text-decoration: none; }
.ys-hot-item p { color: var(--ink-2); font-size: 13px; line-height: 1.8; margin-bottom: 10px; }
.ys-hot-meta { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }

/* ---------- 公告 + 守则 ---------- */
.ys-notice { display: grid; grid-template-columns: 1.35fr .65fr; gap: 30px; }
.ys-notice-list { border-top: 2px solid var(--ink); }
.ys-notice-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 13px 2px; border-bottom: 1px solid var(--rule); }
.ys-notice-date { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.ys-notice-row a { color: var(--ink); font-weight: 600; font-size: 14px; }
.ys-notice-row a:hover { color: var(--blue); }
.ys-notice-kind { font-family: var(--mono); font-size: 10px; color: var(--ink-3); border: 1px solid var(--rule-2); padding: 0 6px; }
.ys-guide { padding: 24px; background: var(--ink); color: var(--paper-2); position: relative; overflow: hidden; }
.ys-guide::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(242, 194, 0, .35);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(242, 194, 0, .08), 0 0 0 46px rgba(242, 194, 0, .05);
  pointer-events: none;
}
.ys-guide h3 { color: var(--yellow); font-size: 20px; letter-spacing: .06em; }
.ys-guide .ys-mono { color: var(--ink-4); letter-spacing: .18em; }
.ys-guide ol { margin: 16px 0 20px; counter-reset: g; }
.ys-guide li {
  counter-increment: g;
  position: relative;
  padding: 7px 0 7px 30px;
  border-bottom: 1px solid rgba(236, 233, 223, .16);
  font-size: 13px;
  line-height: 1.7;
}
.ys-guide li::before {
  content: counter(g, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 7px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--yellow);
}
.ys-guide a:not(.ys-btn) { color: var(--yellow); }
.ys-guide .ys-btn--gold { color: var(--ink); }
.ys-guide .ys-btn--gold:hover { color: var(--yellow); }

/* ---------- 统一行动带 ---------- */
.ys-cta { position: relative; overflow: hidden; padding: 44px 48px; background: var(--ink); color: var(--paper-2); border: 1px solid var(--ink); }
.ys-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(242, 194, 0, .08) 0 2px, transparent 2px 14px);
  pointer-events: none;
}
.ys-cta-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.ys-cta h2 { font-size: clamp(23px, 2.8vw, 32px); line-height: 1.4; color: var(--paper-2); letter-spacing: .02em; text-wrap: balance; }
.ys-cta h2 em { font-style: normal; color: var(--yellow); }
.ys-cta p { margin: 8px 0 0; color: var(--ink-4); font-size: 13.5px; }
.ys-cta-act { display: flex; flex-wrap: wrap; gap: 12px; }
.ys-cta .ys-btn--ghost { color: var(--paper-2); border-color: var(--paper-3); }
.ys-cta .ys-btn--ghost:hover { color: var(--ink); background: var(--paper-3); }

/* ---------- FAQ 手风琴 ---------- */
.ys-faq { border-top: 2px solid var(--ink); }
.ys-faq-item { border-bottom: 1px solid var(--rule); }
.ys-faq-q {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 15px 4px;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
}
.ys-faq-q:hover { color: var(--blue); }
.ys-faq-q .ys-mono { color: var(--ink-3); flex: none; }
.ys-faq-q i { margin-left: auto; flex: none; position: relative; width: 22px; height: 22px; border: 1px solid var(--ink); background: var(--paper-2); }
.ys-faq-q i::before, .ys-faq-q i::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--ink); transform: translate(-50%, -50%); }
.ys-faq-q i::before { width: 10px; height: 1.5px; }
.ys-faq-q i::after { width: 1.5px; height: 10px; transition: transform .2s ease; }
.ys-faq-item.is-open .ys-faq-q i { background: var(--yellow); }
.ys-faq-item.is-open .ys-faq-q i::after { transform: translate(-50%, -50%) rotate(90deg); }
.ys-faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.ys-faq-a > div { overflow: hidden; }
.ys-faq-a p { margin: 0; padding: 0 4px 16px 42px; color: var(--ink-2); font-size: 13.5px; line-height: 1.9; }
.ys-faq-item.is-open .ys-faq-a { grid-template-rows: 1fr; }

/* ---------- 页脚 ---------- */
.ys-foot { background: var(--ink); color: var(--paper-3); }
.ys-foot-main { display: grid; grid-template-columns: 1.45fr .8fr .8fr 1fr; gap: 32px; padding: 46px 0 34px; }
.ys-foot h4 { margin: 0 0 14px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .18em; color: var(--yellow); text-transform: uppercase; }
.ys-foot-brand { display: flex; gap: 14px; }
.ys-foot-brand img { width: 50px; height: 50px; flex: none; filter: none; }
.ys-foot-brand strong { font-family: var(--serif); font-size: 21px; letter-spacing: .12em; color: var(--paper-2); }
.ys-foot-brand p { margin: 8px 0 0; font-size: 12.5px; line-height: 1.9; color: var(--ink-4); }
.ys-foot-links { display: flex; flex-direction: column; gap: 8px; }
.ys-foot-links a { color: var(--paper-3); font-size: 13px; }
.ys-foot-links a:hover { color: var(--yellow); text-decoration: none; }
.ys-foot-contact { display: flex; flex-direction: column; gap: 9px; font-size: 12.5px; color: var(--ink-4); }
.ys-foot-contact a { color: var(--paper-3); }
.ys-foot-contact .ys-mono { color: var(--yellow); }
.ys-foot-kw { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0; border-top: 1px solid rgba(236, 233, 223, .18); border-bottom: 1px solid rgba(236, 233, 223, .18); }
.ys-foot-kw span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--ink-4); padding-top: 4px; }
.ys-foot-kw a { border: 1px solid rgba(236, 233, 223, .28); padding: 3px 9px; font-size: 12px; color: var(--paper-3); }
.ys-foot-kw a:hover { border-color: var(--yellow); color: var(--yellow); text-decoration: none; }
.ys-foot-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 0 20px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; color: var(--ink-4); }
.ys-foot-bar a { color: var(--ink-4); }
.ys-foot-bar a:hover { color: var(--yellow); text-decoration: none; }

/* ---------- 内页页头 ---------- */
.ys-pagehead { padding: 40px 0 34px; background: var(--paper-2); border-bottom: 2px solid var(--ink); }
.ys-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 16px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: .04em; }
.ys-crumb a { color: var(--ink-2); }
.ys-crumb a:hover { color: var(--blue); }
.ys-crumb b { color: var(--ink); font-weight: 600; }
.ys-crumb i { font-style: normal; color: var(--ink-4); }
.ys-pagehead h1 { margin: 14px 0 12px; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.3; letter-spacing: .02em; text-wrap: balance; }
.ys-pagehead .ys-lead { max-width: 760px; }
.ys-pagehead-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.ys-pagehead-meta b { color: var(--ink); }

/* ---------- 通用两栏 / 侧栏 ---------- */
.ys-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; align-items: start; }
.ys-side { position: sticky; top: calc(var(--nav-h) + 18px); display: flex; flex-direction: column; gap: 18px; }
.ys-side-card { border: 1px solid var(--ink); background: var(--paper-2); }
.ys-side-head { padding: 9px 14px; background: var(--ink); color: var(--yellow); font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; }
.ys-side-body { padding: 14px 16px; }
.ys-side-list { display: flex; flex-direction: column; }
.ys-side-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rule); color: var(--ink); font-size: 13px; }
.ys-side-list a:last-child { border-bottom: 0; }
.ys-side-list a:hover { color: var(--blue); text-decoration: none; }
.ys-side-list .ys-mono { color: var(--ink-3); font-size: 10px; }
.ys-side-note { padding: 16px; background: var(--yellow-3); border: 1px solid var(--rule-2); font-size: 12.5px; line-height: 1.85; color: var(--ink-2); }
.ys-side-note strong { display: block; margin-bottom: 6px; font-family: var(--serif); font-size: 15px; color: var(--ink); }
.ys-side .ys-btn { width: 100%; }

/* ---------- 正文排版 ---------- */
.ys-article { font-size: 15px; line-height: 1.95; color: var(--ink-2); }
.ys-article--reply { font-size: 14px; line-height: 1.9; }
.ys-article:not(.ys-article--reply) > p:first-of-type:not(.ys-nodrop)::first-letter {
  float: left;
  margin: 8px 10px 0 0;
  font-family: var(--serif);
  font-size: 54px;
  line-height: .85;
  color: var(--ink);
}
.ys-article h2 { margin: 34px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); font-size: 22px; color: var(--ink); }
.ys-article h2::before { content: "¶ "; color: var(--blue); font-family: var(--mono); font-size: 15px; }
.ys-article h3 { margin: 24px 0 8px; font-size: 17px; color: var(--ink); }
.ys-article p { margin: 0 0 16px; }
.ys-article ul, .ys-article ol { margin: 0 0 18px; padding-left: 4px; }
.ys-article ul li, .ys-article ol li { position: relative; padding: 3px 0 3px 20px; }
.ys-article ul li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 6px; height: 6px; background: var(--yellow); border: 1px solid var(--ink); }
.ys-article ol { counter-reset: a; }
.ys-article ol li { counter-increment: a; }
.ys-article ol li::before { content: counter(a, decimal-leading-zero); position: absolute; left: 0; top: 4px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.ys-article blockquote { margin: 22px 0; padding: 14px 20px; border-left: 4px solid var(--yellow); background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); color: var(--ink); font-family: var(--serif); font-size: 16px; line-height: 1.9; }
.ys-article blockquote p:last-child { margin: 0; }
.ys-article a { border-bottom: 1px solid rgba(30, 86, 200, .35); }
.ys-article strong { color: var(--ink); }
.ys-article img { margin: 22px 0; border: 1px solid var(--ink); padding: 6px; background: var(--white); }
.ys-note { margin: 22px 0; padding: 14px 16px; background: var(--yellow-3); border: 1px solid var(--rule-2); font-size: 13px; line-height: 1.85; color: var(--ink-2); }
.ys-note b { color: var(--ink); }
.ys-article-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 12px 0 14px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.ys-article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--rule); }
.ys-article-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 20px; padding: 16px 0; border-top: 2px solid var(--ink); font-size: 13px; }
.ys-article-foot a { color: var(--ink); font-weight: 600; }

/* ---------- 帖子 ---------- */
.ys-thread-head { padding: 18px 20px; background: var(--paper-2); border: 1px solid var(--ink); border-bottom: 0; }
.ys-thread-head h1 { margin: 8px 0 10px; font-size: clamp(24px, 3vw, 34px); line-height: 1.4; }
.ys-thread-head .ys-tags { margin-top: 4px; }
.ys-post { border: 1px solid var(--ink); border-bottom: 0; background: var(--paper-2); }
.ys-post-in { display: grid; grid-template-columns: 150px minmax(0, 1fr); }
.ys-post-user { padding: 20px 16px; border-right: 1px solid var(--rule); background: var(--white); }
.ys-avatar { width: 58px; height: 58px; display: grid; place-items: center; background: var(--ink); color: var(--yellow); font-family: var(--serif); font-size: 24px; margin-bottom: 10px; }
.ys-post-user strong { display: block; font-size: 13.5px; color: var(--ink); }
.ys-post-user .ys-mono { display: block; margin-top: 2px; color: var(--ink-3); font-size: 10px; }
.ys-post-user dl { margin: 12px 0 0; font-size: 11.5px; color: var(--ink-3); }
.ys-post-user dl div { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px dotted var(--rule); }
.ys-post-user dt, .ys-post-user dd { margin: 0; }
.ys-post-body { padding: 20px 24px 24px; }
.ys-post-bar { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--rule); font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.ys-post-body .ys-article { font-size: 14.5px; }
.ys-post-body .ys-article:not(.ys-article--reply) > p:first-of-type::first-letter { font-size: 44px; }
.ys-floor { display: flex; justify-content: space-between; align-items: center; padding: 10px 4px; font-family: var(--mono); font-size: 11px; color: var(--ink-3); border-bottom: 1px solid var(--ink); }
.ys-floor b { color: var(--ink); }
.ys-replybar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ys-replybar .ys-btn { flex: none; }

/* ---------- 开户步骤 ---------- */
.ys-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--ink); background: var(--paper-2); }
.ys-step { padding: 20px 20px 22px; }
.ys-step + .ys-step { border-left: 1px solid var(--rule); }
.ys-step-no { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: var(--yellow); border: 1px solid var(--ink); font-family: var(--mono); font-size: 12px; font-weight: 700; }
.ys-step h3 { margin: 12px 0 6px; font-size: 16px; }
.ys-step p { margin: 0; font-size: 12.5px; line-height: 1.8; color: var(--ink-2); }

/* ---------- 表单 ---------- */
.ys-form-card { border: 1px solid var(--ink); background: var(--paper-2); }
.ys-form-head { padding: 14px 20px; background: var(--ink); color: var(--paper-2); display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ys-form-head strong { font-family: var(--serif); font-size: 18px; letter-spacing: .06em; }
.ys-form-head span { font-family: var(--mono); font-size: 10px; color: var(--yellow); letter-spacing: .14em; }
.ys-form { padding: 22px 20px 24px; }
.ys-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ys-field { display: flex; flex-direction: column; gap: 6px; }
.ys-field--full { grid-column: 1 / -1; }
.ys-field label { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--ink-2); }
.ys-field label b { color: var(--red); }
.ys-field input, .ys-field select, .ys-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--rule-2);
  background: var(--white);
  font-size: 14px;
  outline: 0;
  border-radius: 0;
}
.ys-field input:focus, .ys-field select:focus, .ys-field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 2px var(--yellow); }
.ys-field textarea { min-height: 108px; resize: vertical; }
.ys-form-note { margin-top: 12px; font-size: 11.5px; line-height: 1.8; color: var(--ink-3); }
.ys-form-note a { color: var(--blue); }
.ys-form .ys-btn { margin-top: 16px; }

/* ---------- 表格 ---------- */
.ys-table { width: 100%; border-collapse: collapse; border: 1px solid var(--ink); background: var(--paper-2); font-size: 13px; }
.ys-table th, .ys-table td { padding: 10px 12px; border: 1px solid var(--rule); text-align: left; vertical-align: top; }
.ys-table th { background: var(--ink); color: var(--paper-3); font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; font-weight: 600; }
.ys-table tbody tr:nth-child(even) { background: var(--white); }
.ys-table .ys-mono { color: var(--ink-2); }

/* ---------- 数据条 ---------- */
.ys-statgrid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--ink); background: var(--paper-2); }
.ys-statgrid > div { padding: 18px 20px; }
.ys-statgrid > div + div { border-left: 1px solid var(--rule); }
.ys-statgrid strong { display: block; font-family: var(--serif); font-size: 30px; line-height: 1.2; }
.ys-statgrid span { display: block; margin-top: 2px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--ink-3); }

/* ---------- 档案图框 ---------- */
.ys-archive { position: relative; padding: 10px; background: var(--white); border: 1px solid var(--ink); }
.ys-archive::before { content: ""; position: absolute; inset: 4px; border: 1px solid var(--rule); pointer-events: none; }
.ys-archive img { width: 100%; }
.ys-archive figcaption { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); letter-spacing: .04em; }
.ys-archive .ys-stamp { right: 18px; bottom: 44px; }

/* ---------- 时间线 ---------- */
.ys-timeline { border-left: 2px solid var(--ink); margin-left: 8px; padding-left: 24px; }
.ys-timeline li { position: relative; padding: 0 0 22px; }
.ys-timeline li::before { content: ""; position: absolute; left: -31px; top: 5px; width: 12px; height: 12px; background: var(--yellow); border: 1px solid var(--ink); }
.ys-timeline time { display: block; font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: .08em; }
.ys-timeline strong { display: block; margin: 2px 0 4px; font-family: var(--serif); font-size: 17px; }
.ys-timeline p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.8; }

/* ---------- 话题卡片 ---------- */
.ys-topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ys-topic-card { display: flex; flex-direction: column; border: 1px solid var(--ink); background: var(--paper-2); transition: background .18s ease; }
.ys-topic-card:hover { background: var(--white); }
.ys-topic-media { position: relative; border-bottom: 1px solid var(--ink); overflow: hidden; }
.ys-topic-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s ease; }
.ys-topic-card:hover .ys-topic-media img { transform: scale(1.02); }
.ys-topic-media .ys-topic-no { position: absolute; left: 0; top: 0; padding: 2px 9px; background: var(--ink); color: var(--yellow); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; }
.ys-topic-body { display: flex; flex-direction: column; flex: 1; padding: 15px 17px 17px; }
.ys-topic-body h3 { font-size: 17px; line-height: 1.55; }
.ys-topic-body h3 a { color: var(--ink); }
.ys-topic-body h3 a:hover { color: var(--blue); text-decoration: none; }
.ys-topic-body p { margin: 7px 0 12px; font-size: 12.5px; line-height: 1.8; color: var(--ink-2); }
.ys-topic-meta { margin-top: auto; display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); }
.ys-topic-text { display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--ink); color: var(--yellow); border-bottom: 1px solid var(--ink); }
.ys-topic-text span { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 40px); letter-spacing: .18em; }
.ys-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.ys-filter a { padding: 5px 12px; border: 1px solid var(--rule-2); background: var(--paper-2); color: var(--ink-2); font-size: 12.5px; }
.ys-filter a:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.ys-filter a.is-active { background: var(--ink); border-color: var(--ink); color: var(--yellow); }

/* ---------- 资讯 ---------- */
.ys-news-feature { display: grid; grid-template-columns: 1.05fr 1fr; border: 1px solid var(--ink); background: var(--paper-2); }
.ys-news-feature-img { position: relative; border-right: 1px solid var(--ink); }
.ys-news-feature-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 11; }
.ys-news-feature-img span { position: absolute; left: 0; top: 0; padding: 3px 10px; background: var(--yellow); border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; }
.ys-news-feature-body { padding: 24px 26px; display: flex; flex-direction: column; justify-content: center; }
.ys-news-feature-body h3 { margin: 6px 0 10px; font-size: 23px; line-height: 1.5; }
.ys-news-feature-body h3 a { color: var(--ink); }
.ys-news-feature-body h3 a:hover { color: var(--blue); text-decoration: none; }
.ys-news-feature-body p { color: var(--ink-2); font-size: 13.5px; line-height: 1.85; }
.ys-news-list { border-top: 1px solid var(--ink); }
.ys-news-row { display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.ys-news-row img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--ink); padding: 4px; background: var(--white); }
.ys-news-row h3 { font-size: 18px; line-height: 1.55; margin: 5px 0 6px; }
.ys-news-row h3 a { color: var(--ink); }
.ys-news-row h3 a:hover { color: var(--blue); text-decoration: none; }
.ys-news-row p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.8; }
.ys-news-row .ys-mono { display: block; color: var(--ink-3); font-size: 10.5px; }
.ys-pager { display: flex; justify-content: center; gap: 6px; margin-top: 26px; font-family: var(--mono); font-size: 12px; }
.ys-pager a, .ys-pager span { min-width: 34px; padding: 5px 9px; border: 1px solid var(--rule-2); text-align: center; color: var(--ink-2); background: var(--paper-2); }
.ys-pager a:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.ys-pager .is-current { background: var(--ink); border-color: var(--ink); color: var(--yellow); }

/* ---------- 联系 ---------- */
.ys-infolist { border-top: 2px solid var(--ink); }
.ys-infolist > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 13.5px; }
.ys-infolist dt { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: .06em; }
.ys-infolist dd { margin: 0; color: var(--ink); }
.ys-infolist dd a { color: var(--blue); }
.ys-map { position: relative; min-height: 240px; border: 1px solid var(--ink); background: var(--paper-3); overflow: hidden; }
.ys-map::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(0deg, transparent 0 27px, rgba(20, 26, 38, .18) 27px 28px), repeating-linear-gradient(90deg, transparent 0 27px, rgba(20, 26, 38, .18) 27px 28px); }
.ys-map::after { content: "档案馆位置示意图 · 到访请提前预约"; position: absolute; left: 16px; bottom: 14px; padding: 4px 9px; background: var(--paper-2); border: 1px solid var(--ink); font-family: var(--mono); font-size: 10.5px; }
.ys-map span { position: absolute; left: 50%; top: 48%; width: 16px; height: 16px; margin: -8px 0 0 -8px; background: var(--red); border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--ink); }

/* ---------- 404 ---------- */
.ys-404 { padding: 80px 0 90px; text-align: center; }
.ys-404 .ys-mono { color: var(--ink-3); letter-spacing: .3em; }
.ys-404 h1 { margin: 10px 0 4px; font-family: var(--serif); font-size: clamp(88px, 16vw, 180px); line-height: 1; letter-spacing: .06em; }
.ys-404 h2 { font-size: 26px; margin-bottom: 10px; }
.ys-404 p { color: var(--ink-2); }
.ys-404 .ys-stamp { position: static; display: inline-block; margin: 18px auto 26px; }
.ys-404-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }

/* ---------- 返回顶部 ---------- */
.ys-top {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 700;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--paper-2);
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.ys-top.is-show { opacity: 1; visibility: visible; transform: translateY(0); }
.ys-top:hover { background: var(--yellow); }

/* ---------- 入场动画（默认可见，JS 才隐藏） ---------- */
.ys-reveal.ys-pending { opacity: 0; transform: translateY(14px); }
.ys-reveal.is-in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .ys-hero-bg img { object-position: 74% center; }
  .ys-hero-main { max-width: 560px; }
  .ys-desks { grid-template-columns: repeat(2, 1fr); }
  .ys-tr { grid-template-columns: 46px minmax(0, 1fr) 90px 60px 60px 90px; }
  .ys-cols { grid-template-columns: minmax(0, 1fr) 280px; gap: 26px; }
  .ys-foot-main { grid-template-columns: 1.2fr .8fr .8fr; }
  .ys-foot-contact { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 18px; }
}

@media (max-width: 900px) {
  .ys-search { display: none; }
  .ys-burger { display: block; }
  .ys-mast { padding: 16px 0; }
  .ys-brand img { width: 46px; height: 46px; }
  .ys-brand-text strong { font-size: 27px; }
  .ys-brand-text small { font-size: 9px; letter-spacing: .18em; }
  .ys-hero-in { padding: 46px 0 40px; }
  .ys-hero::after { background: linear-gradient(90deg, var(--paper) 0%, rgba(236, 233, 223, .94) 52%, rgba(236, 233, 223, .72) 100%); }
  .ys-hero-bg img { object-position: 70% center; opacity: .55; }
  .ys-hero-main { max-width: 100%; }
  .ys-stamp { display: none; }
  .ys-grid2, .ys-grid3, .ys-topics { grid-template-columns: 1fr 1fr; }
  .ys-hot { grid-template-columns: 1fr; }
  .ys-hot-item + .ys-hot-item { border-left: 0; border-top: 1px solid var(--rule-2); }
  .ys-notice { grid-template-columns: 1fr; }
  .ys-cols { grid-template-columns: 1fr; }
  .ys-side { position: static; }
  .ys-steps { grid-template-columns: 1fr 1fr; }
  .ys-step + .ys-step { border-left: 0; }
  .ys-step:nth-child(even) { border-left: 1px solid var(--rule); }
  .ys-step:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .ys-statgrid { grid-template-columns: 1fr 1fr; }
  .ys-statgrid > div:nth-child(3) { border-left: 0; }
  .ys-statgrid > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .ys-news-feature { grid-template-columns: 1fr; }
  .ys-news-feature-img { border-right: 0; border-bottom: 1px solid var(--ink); }
  .ys-news-row { grid-template-columns: 140px minmax(0, 1fr); }
  .ys-news-row .ys-mono { grid-column: 2; }
  .ys-tr { grid-template-columns: 40px minmax(0, 1fr) 74px; padding: 12px 12px; }
  .ys-tr > .ys-tr-author, .ys-tr > .ys-tr-views, .ys-tr > .ys-tr-time { display: none; }
  .ys-tr--head > span:nth-child(3), .ys-tr--head > span:nth-child(5), .ys-tr--head > span:nth-child(6) { display: none; }
  .ys-cta { padding: 30px 24px; }
  .ys-cta-in { align-items: flex-start; }
  .ys-post-in { grid-template-columns: 1fr; }
  .ys-post-user { display: grid; grid-template-columns: 48px 1fr; gap: 0 12px; align-items: center; border-right: 0; border-bottom: 1px solid var(--rule); padding: 12px 16px; }
  .ys-avatar { width: 44px; height: 44px; font-size: 19px; margin: 0; grid-row: span 2; }
  .ys-post-user dl { display: none; }
  .ys-post-user .ys-mono { margin: 0; }
  .ys-post-body { padding: 16px; }
  .ys-foot-main { grid-template-columns: 1fr 1fr; gap: 24px; }
  .ys-foot-brand { grid-column: 1 / -1; }
  .ys-archive .ys-stamp { display: block; right: 12px; bottom: 40px; }
}

@media (max-width: 640px) {
  .ys-shell { padding: 0 18px; }
  body { font-size: 14.5px; }
  .ys-rail-in { justify-content: center; }
  .ys-rail-date, .ys-rail-mid { display: none; }
  .ys-rail-links { font-size: 10.5px; }
  .ys-mast-side .ys-btn { display: none; }
  .ys-brand-text strong { font-size: 24px; }
  .ys-nav { position: relative; }
  .ys-tabs { gap: 2px; }
  .ys-tab { padding: 8px 12px; font-size: 12.5px; }
  .ys-nav-side { display: none; }
  .ys-kwbar { white-space: normal; overflow-x: visible; font-size: 11px; line-height: 2.1; }
  .ys-kwbar .ys-shell { flex-wrap: wrap; gap: 0 9px; }
  .ys-hero h1 { font-size: clamp(30px, 8vw, 40px); }
  .ys-hero-lead { font-size: 14px; }
  .ys-hero-act .ys-btn { flex: 1 1 auto; }
  .ys-stats { grid-template-columns: 1fr 1fr 1fr; }
  .ys-stat { padding-right: 8px; }
  .ys-stat + .ys-stat { padding-left: 10px; }
  .ys-stat strong { font-size: 21px; }
  .ys-sec { padding: 38px 0; }
  .ys-sechead { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ys-desks, .ys-grid2, .ys-grid3, .ys-grid4, .ys-topics { grid-template-columns: 1fr; }
  .ys-hot-rank { font-size: 30px; }
  .ys-notice-row { grid-template-columns: 74px minmax(0, 1fr); }
  .ys-notice-kind { display: none; }
  .ys-cta-act { width: 100%; }
  .ys-cta-act .ys-btn { flex: 1 1 auto; }
  .ys-news-row { grid-template-columns: 1fr; }
  .ys-news-row img { max-width: 100%; }
  .ys-news-row .ys-mono { grid-column: auto; }
  .ys-news-feature-body { padding: 18px; }
  .ys-news-feature-body h3 { font-size: 19px; }
  .ys-form-grid { grid-template-columns: 1fr; }
  .ys-steps { grid-template-columns: 1fr; }
  .ys-step + .ys-step { border-left: 0; border-top: 1px solid var(--rule); }
  .ys-step:nth-child(even) { border-left: 0; }
  .ys-statgrid { grid-template-columns: 1fr 1fr; }
  .ys-foot-main { grid-template-columns: 1fr; }
  .ys-foot-bar { flex-direction: column; align-items: flex-start; }
  .ys-timeline { padding-left: 18px; }
  .ys-timeline li::before { left: -25px; }
  .ys-404 { padding: 54px 0 64px; }
  .ys-top { right: 12px; bottom: 14px; width: 40px; height: 40px; }
  .ys-article { font-size: 14.5px; }
  .ys-article:not(.ys-article--reply) > p:first-of-type::first-letter { font-size: 42px; }
  .ys-thread-head { padding: 14px; }
  .ys-infolist > div { grid-template-columns: 84px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .ys-reveal.ys-pending { opacity: 1; transform: none; }
}
