﻿/* ============================================================
   AdoX Portal — Knowledge OS
   博客 · 产品文档 · 个人知识库
   ============================================================ */

:root {
  --sans: "Inter", "SF Pro Text", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --display: "Inter Tight", "Inter", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --serif: "Charter", "Iowan Old Style", Georgia, "Source Han Serif SC", "Noto Serif SC", "Songti SC", SimSun, serif;
  --mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Code", Consolas, "Courier New", monospace;

  --paper: #eef1ea;
  --paper-2: #e3e8de;
  --paper-3: #f4f6f1;
  --surface: #fbfcf8;
  --white: #ffffff;
  --ink: #101512;
  --ink-soft: #333d36;
  --muted: #626d65;
  --faint: #8c968d;
  --line: #d3d9cf;
  --line-strong: #aab4a9;
  --accent: #2b4bff;
  --accent-strong: #1a34d6;
  --accent-soft: rgba(43, 75, 255, .07);
  --lime: #d8ff5a;
  --lime-soft: rgba(216, 255, 90, .14);
  --dark: #0d1411;
  --dark-2: #131d18;
  --dark-line: rgba(238, 241, 234, .14);
  --ok: #2c7a4b;
  --danger: #c73a2c;
  --star: #9a7613;
  --shadow: 0 30px 70px -52px rgba(16, 21, 18, .55);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  background-color: var(--paper);
  background-image:
    linear-gradient(to right, rgba(16, 21, 18, .022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 21, 18, .022) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(43, 75, 255, .18); }
a { color: var(--accent); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent-strong); }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
h1, h2, h3, h4, p, dl, dd, ol, ul { margin-top: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 10px; z-index: 200;
  padding: 10px 14px; background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 11px;
}
.skip-link:focus { left: 12px; color: var(--paper); }

/* ---------- 品牌刊头 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 22px;
  min-height: 74px; padding: 12px 32px;
  background: rgba(238, 241, 234, .9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; flex: 0 0 auto; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-lockup { display: block; height: 31px; width: auto; }
.brand-meta {
  padding-left: 18px; border-left: 1px solid var(--line-strong);
  color: var(--faint); font-family: var(--mono); font-size: 8px;
  line-height: 1.5; letter-spacing: .18em; text-transform: uppercase;
}
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav > a {
  position: relative; padding: 8px 10px;
  color: var(--ink-soft); font-family: var(--mono);
  font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  transition: color .18s ease;
}
.nav > a::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform .26s cubic-bezier(.2, .7, .3, 1);
}
.nav > a:hover, .nav > a[aria-current="page"] { color: var(--accent); }
.nav > a:hover::after, .nav > a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.auth-links {
  display: flex; align-items: center; gap: 8px; flex: 0 0 auto;
  padding-left: 18px; border-left: 1px solid var(--line);
}
.who {
  max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--muted); font-family: var(--mono); font-size: 10px;
}
.link-button {
  padding: 8px 4px; border: 0; background: transparent; color: var(--muted);
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase;
  transition: color .18s ease;
}
.link-button:hover { color: var(--accent); background: transparent; }
.pill-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 14px; border: 1px solid var(--ink); background: var(--ink);
  color: var(--paper); font-family: var(--mono); font-size: 9.5px;
  letter-spacing: .12em; text-transform: uppercase;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.pill-button:hover {
  background: var(--accent); border-color: var(--accent); color: var(--white);
  transform: translateY(-1px);
}
.nav-button {
  padding: 8px 10px; border: 1px solid var(--line-strong); background: transparent;
  color: var(--ink-soft); font-family: var(--mono); font-size: 9px;
  letter-spacing: .1em; text-transform: uppercase;
}
.nav-button:hover { border-color: var(--ink); color: var(--ink); }

/* 账号菜单 */
.account-menu { position: relative; }
.account-menu summary {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink); cursor: pointer; list-style: none;
  transition: border-color .18s ease, color .18s ease;
}
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary svg { width: 19px; height: 19px; }
.account-menu summary:hover, .account-menu[open] summary { border-color: var(--accent); color: var(--accent); }
.account-menu-panel {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 80;
  display: flex; flex-direction: column; min-width: 220px; padding: 6px;
  border: 1px solid var(--ink); background: var(--surface);
  box-shadow: var(--shadow);
}
.account-menu-panel strong {
  padding: 11px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line);
  color: var(--ink); font-family: var(--mono); font-size: 11px;
  letter-spacing: .04em; overflow-wrap: anywhere;
}
.account-menu-panel a, .account-menu-panel button {
  display: block; width: 100%; padding: 9px 12px; border: 0; background: transparent;
  color: var(--ink-soft); font-family: var(--sans); font-size: 12.5px;
  letter-spacing: 0; text-align: left; text-transform: none;
}
.account-menu-panel a:hover, .account-menu-panel button:hover {
  background: var(--paper-2); color: var(--accent);
}
.saved-accounts { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.saved-accounts:empty { display: none; }
.saved-accounts > span {
  padding: 10px 12px 2px; color: var(--faint);
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase;
}

/* ---------- 通用按钮 ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 17px; border: 1px solid var(--line-strong); border-radius: 0;
  background: transparent; color: var(--ink);
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.button svg { width: 14px; height: 14px; }
.button:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: translateY(-1px); }
.button.primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.button.primary:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.button.accent { background: var(--accent); border-color: var(--accent); color: var(--white); }
.button.accent:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--white); }
.button.ghost { border-color: var(--line-strong); color: var(--ink-soft); background: transparent; }
.button.ghost:hover { background: var(--surface); border-color: var(--ink); color: var(--ink); }
button.button { cursor: pointer; }

/* ---------- 版面骨架 ---------- */
.shell { width: min(100% - 64px, 1200px); margin: 0 auto; padding: 0 0 100px; }
.kicker {
  display: flex; align-items: center; gap: 9px; margin: 0 0 18px;
  color: var(--muted); font-family: var(--mono); font-size: 9px;
  letter-spacing: .22em; text-transform: uppercase;
}
.kicker .dot {
  width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.kicker.on-dark { color: rgba(238, 241, 234, .55); }
.kicker.on-dark .dot { background: var(--lime); box-shadow: 0 0 0 4px var(--lime-soft); }

/* ---------- 首屏 ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
  gap: clamp(34px, 5vw, 76px); align-items: end;
  padding: clamp(52px, 7vw, 104px) 0 clamp(38px, 5vw, 66px);
  border-bottom: 1px solid var(--line-strong);
}
.hero-copy { min-width: 0; }
.hero h1 {
  margin: 0 0 26px; font-family: var(--display);
  font-size: clamp(44px, 5.9vw, 84px); font-weight: 700;
  line-height: .98; letter-spacing: -.055em;
}
.hero h1 .accent { color: var(--accent); }
.hero-lead {
  max-width: 54ch; margin: 0; color: var(--muted);
  font-family: var(--serif); font-size: 16.5px; line-height: 1.95;
}
.hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 30px; }

/* 首屏索引卡 */
.hero-side {
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 34px; align-self: stretch; min-width: 0;
}
.hero-side-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 12px; border-top: 1px solid var(--line-strong);
  color: var(--faint); font-family: var(--mono); font-size: 8px;
  letter-spacing: .16em; text-transform: uppercase;
}
.index-card {
  position: relative; overflow: hidden; padding: 22px 22px 18px;
  background: var(--dark); color: var(--paper); border: 1px solid var(--dark);
  box-shadow: var(--shadow);
}
.index-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(238, 241, 234, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(238, 241, 234, .045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}
.index-card-head, .index-card-foot {
  position: relative; z-index: 1; display: flex; align-items: center;
  justify-content: space-between; gap: 14px;
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(238, 241, 234, .5);
}
.index-card-head { padding-bottom: 13px; border-bottom: 1px solid var(--dark-line); }
.blink {
  width: 7px; height: 7px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 0 4px rgba(216, 255, 90, .12);
  animation: blink 2.4s ease-in-out infinite;
}
.index-list {
  position: relative; z-index: 1; margin: 0; padding: 0; list-style: none;
}
.index-list li { border-bottom: 1px solid var(--dark-line); }
.index-list a {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 11px; align-items: baseline; padding: 14px 0; color: var(--paper);
}
.index-list a:hover { color: var(--paper); }
.index-no { color: var(--lime); font-family: var(--mono); font-size: 9px; letter-spacing: .06em; }
.index-title {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 13.5px; font-weight: 500; transition: color .2s ease;
}
.index-list a:hover .index-title { color: var(--lime); }
.index-date { color: rgba(238, 241, 234, .4); font-family: var(--mono); font-size: 8.5px; white-space: nowrap; }
.index-loading { padding: 18px 0; color: rgba(238, 241, 234, .5); font-family: var(--mono); font-size: 10px; }
.index-card-foot { padding-top: 14px; }
.index-card-foot a { color: var(--lime); }
.index-card-foot a:hover { color: var(--paper); }

/* ---------- 数据条 ---------- */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.stat-strip > div { padding: 18px 20px 20px; border-right: 1px solid var(--line); }
.stat-strip > div:last-child { border-right: 0; }
.stat-label {
  display: block; margin-bottom: 7px; color: var(--faint);
  font-family: var(--mono); font-size: 8px; letter-spacing: .18em; text-transform: uppercase;
}
.stat-strip strong { font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: -.01em; }

/* ---------- 区块标题 ---------- */
.section { margin-top: clamp(58px, 8vw, 100px); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding-bottom: 16px; margin-bottom: 0; border-bottom: 1px solid var(--ink);
}
.section-head > div { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.section-index { color: var(--accent); font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; }
.section-head h2 {
  margin: 0; font-family: var(--display); font-weight: 700;
  font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -.035em; line-height: 1.1;
}
.section-note {
  margin: 0; color: var(--faint); font-family: var(--mono); font-size: 8.5px;
  letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.section-foot {
  margin: 16px 0 0; color: var(--faint);
  font-family: var(--mono); font-size: 9px; letter-spacing: .06em; line-height: 1.7;
}

/* ---------- 文章列表 ---------- */
.featured {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line-strong); border-top: 0;
  transition: border-color .24s ease, box-shadow .24s ease, transform .24s ease;
}
.featured:hover { border-color: var(--ink); box-shadow: var(--shadow); transform: translateY(-2px); }
.featured-link { display: block; padding: clamp(24px, 4vw, 44px); color: var(--ink); }
.featured-link:hover { color: var(--ink); }
.featured-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 20px; color: var(--faint);
  font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
}
.badge-live { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); }
.badge-live i { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.featured h3 {
  margin: 0 0 14px; font-family: var(--display); font-weight: 700;
  font-size: clamp(29px, 4.4vw, 54px); line-height: 1.05; letter-spacing: -.04em;
  overflow-wrap: anywhere; transition: color .2s ease;
}
.featured:hover h3 { color: var(--accent); }
.featured p {
  max-width: 72ch; margin: 0; color: var(--muted);
  font-family: var(--serif); font-size: 15.5px; line-height: 1.9;
  overflow-wrap: anywhere;
}
.more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 26px;
  color: var(--accent); font-family: var(--mono); font-size: 9.5px;
  letter-spacing: .14em; text-transform: uppercase;
}
.more svg { width: 13px; height: 13px; transition: transform .22s ease; }
.featured:hover .more svg { transform: translateX(4px); }
.featured-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 13px clamp(24px, 4vw, 44px);
  border-top: 1px solid var(--line); background: var(--paper-3);
  color: var(--faint); font-family: var(--mono); font-size: 9px;
}
.post-list { display: flex; flex-direction: column; }
.post-row {
  border-bottom: 1px solid var(--line);
  transition: background .18s ease;
}
.post-row:hover { background: var(--surface); }
.row-main {
  display: grid; grid-template-columns: 42px minmax(0, 1fr) 28px;
  gap: 18px; padding: 24px 10px 14px; color: var(--ink);
}
.row-main:hover { color: var(--ink); }
.row-index { padding-top: 2px; color: var(--faint); font-family: var(--mono); font-size: 10.5px; }
.row-meta {
  margin-bottom: 8px; color: var(--faint);
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase;
}
.row-main h3 {
  margin: 0 0 8px; font-family: var(--display); font-weight: 600;
  font-size: clamp(20px, 2.2vw, 25px); line-height: 1.25; letter-spacing: -.02em;
  overflow-wrap: anywhere; transition: color .18s ease;
}
.row-main:hover h3 { color: var(--accent); }
.row-main p {
  max-width: 76ch; margin: 0; color: var(--muted);
  font-family: var(--serif); font-size: 13.5px; line-height: 1.8;
  overflow-wrap: anywhere;
}
.row-arrow {
  display: grid; place-items: center; align-self: center;
  color: var(--line-strong); font-size: 18px; transition: color .2s ease, transform .2s ease;
}
.row-main:hover .row-arrow { color: var(--accent); transform: translateX(3px); }
.row-actions { display: flex; gap: 8px; padding: 0 10px 18px 70px; }

/* 互动按钮 */
.post-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.reaction {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border: 1px solid var(--line); background: transparent;
  color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .06em;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}
.reaction svg { width: 13px; height: 13px; transition: transform .2s ease; }
.reaction:hover:not(:disabled) {
  border-color: var(--ink); color: var(--ink); background: var(--surface);
  transform: translateY(-1px);
}
.reaction.active { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.reaction.active svg { fill: currentColor; }
.reaction.star.active {
  color: var(--star); border-color: rgba(154, 118, 19, .55); background: rgba(216, 184, 74, .12);
}
.reaction:disabled { opacity: .45; cursor: not-allowed; }

.empty {
  padding: 58px 24px; border: 1px dashed var(--line-strong);
  color: var(--muted); font-family: var(--serif); font-size: 14px;
  line-height: 1.9; text-align: center; background: rgba(251, 252, 248, .5);
}
.preview-banner {
  margin: 24px 0 0; padding: 12px 16px; border: 1px solid var(--accent);
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
}
body.preview .post-actions,
body.preview .row-actions,
body.preview .reaction-bar,
body.preview .auth-links { display: none; }

/* ---------- 知识地图 ---------- */
.knowledge-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px; border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.knowledge-card {
  position: relative; min-height: 176px; padding: 24px 22px 26px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--surface); transition: background .2s ease, transform .2s ease;
}
.knowledge-card:hover { background: var(--paper-3); transform: translateY(-2px); }
.knowledge-code { color: var(--accent); font-family: var(--mono); font-size: 9px; letter-spacing: .14em; }
.knowledge-card h3 {
  margin: 16px 0 4px; font-family: var(--display);
  font-size: 19px; font-weight: 600; letter-spacing: -.02em;
}
.knowledge-en {
  color: var(--faint); font-family: var(--mono); font-size: 8px;
  letter-spacing: .14em; text-transform: uppercase;
}
.knowledge-card p {
  margin: 14px 0 0; color: var(--muted);
  font-family: var(--serif); font-size: 12.5px; line-height: 1.75;
}
.knowledge-count {
  position: absolute; top: 20px; right: 18px; padding: 3px 7px;
  border: 1px solid var(--line); color: var(--faint);
  font-family: var(--mono); font-size: 8px; letter-spacing: .08em;
}
.knowledge-count.has-posts { border-color: var(--accent); color: var(--accent); }

/* ---------- 个人知识库暗色区 ---------- */
.personal-band {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(30px, 5vw, 64px);
  margin-top: clamp(58px, 8vw, 100px);
  padding: clamp(30px, 5vw, 58px);
  background: var(--dark); color: var(--paper);
  box-shadow: var(--shadow);
}
.personal-band::after {
  content: "IDX"; position: absolute; right: -12px; bottom: -64px;
  color: rgba(238, 241, 234, .035); font-family: var(--display);
  font-size: clamp(180px, 24vw, 300px); font-weight: 700; line-height: 1;
  pointer-events: none; user-select: none;
}
.personal-copy { position: relative; z-index: 1; }
.personal-copy h2 {
  margin: 0 0 20px; font-family: var(--display); font-weight: 700;
  font-size: clamp(32px, 4.6vw, 58px); line-height: 1.02; letter-spacing: -.045em;
}
.personal-copy > p {
  max-width: 46ch; margin: 0; color: rgba(238, 241, 234, .64);
  font-family: var(--serif); font-size: 14.5px; line-height: 1.9;
}
.personal-status {
  display: inline-flex; align-items: center; gap: 9px; flex-wrap: wrap;
  margin-top: 26px; padding: 9px 12px; border: 1px solid var(--dark-line);
  color: rgba(238, 241, 234, .68);
  font-family: var(--mono); font-size: 9px; letter-spacing: .1em;
}
.personal-status a { color: var(--lime); }
.personal-status a:hover { color: var(--paper); }
.status-dot {
  flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 4px var(--lime-soft);
}
.personal-links {
  position: relative; z-index: 1; display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-self: start;
}
.personal-link {
  display: flex; flex-direction: column; gap: 8px; min-height: 124px;
  padding: 18px; border: 1px solid var(--dark-line);
  background: rgba(255, 255, 255, .022); color: var(--paper);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.personal-link:hover {
  border-color: var(--lime); background: var(--lime-soft);
  color: var(--paper); transform: translateY(-2px);
}
.pl-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  color: var(--lime); font-family: var(--mono); font-size: 8.5px;
  letter-spacing: .14em; text-transform: uppercase;
}
.pl-badge {
  padding: 2px 6px; border: 1px solid var(--dark-line);
  color: rgba(238, 241, 234, .45); font-size: 7.5px; letter-spacing: .1em;
}
.personal-link.is-unlocked .pl-badge { border-color: var(--lime); color: var(--lime); }
.pl-title { font-family: var(--display); font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.personal-link p {
  margin: 0; color: rgba(238, 241, 234, .5);
  font-family: var(--serif); font-size: 11.5px; line-height: 1.65;
}

/* ---------- 文章页 ---------- */
.doc-shell { padding-top: 28px; }
.reading-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  height: 2px; pointer-events: none;
}
.reading-progress span { display: block; width: 0; height: 100%; background: var(--accent); }
.breadcrumb {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding-bottom: 26px;
  color: var(--faint); font-family: var(--mono); font-size: 8.5px;
  letter-spacing: .12em; text-transform: uppercase;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.crumb-current {
  max-width: 62ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink);
}
.doc-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 258px;
  gap: clamp(34px, 6vw, 84px); align-items: start;
}
.doc-article { min-width: 0; max-width: 780px; }
.article-head { padding-bottom: 30px; margin-bottom: 38px; border-bottom: 1px solid var(--line-strong); }
.article-head h1 {
  margin: 14px 0 18px; font-family: var(--display); font-weight: 700;
  font-size: clamp(36px, 5.6vw, 66px); line-height: 1.04; letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.article-summary {
  max-width: 64ch; margin: 0 0 24px; color: var(--muted);
  font-family: var(--serif); font-size: 16px; line-height: 1.85; overflow-wrap: anywhere;
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  color: var(--faint); font-family: var(--mono); font-size: 9.5px;
}
.article-meta > span { display: inline-flex; align-items: baseline; gap: 8px; }
.meta-label {
  color: var(--faint); font-family: var(--mono); font-size: 7.5px;
  letter-spacing: .18em; text-transform: uppercase;
}
.article-meta code {
  padding: 2px 6px; border: 1px solid var(--line); background: var(--paper-2);
  color: var(--ink-soft); font-family: var(--mono); font-size: 9px;
}
.reaction-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.reaction-bar .reaction { padding: 8px 13px; font-size: 9.5px; }

.article {
  padding-top: 36px; color: var(--ink-soft);
  font-family: var(--serif); font-size: 17.5px; line-height: 1.9;
  overflow-wrap: anywhere; animation: rise .4s backwards;
}
.article > :first-child { margin-top: 0; }
.article h1, .article h2, .article h3, .article h4 {
  margin: 1.9em 0 .7em; color: var(--ink);
  font-family: var(--display); font-weight: 700;
  line-height: 1.2; letter-spacing: -.025em; scroll-margin-top: 100px;
}
.article h1 { margin-top: 0; padding-bottom: .35em; border-bottom: 1px solid var(--line-strong); font-size: 1.75em; }
.article h2 { padding-top: .8em; border-top: 1px solid var(--line-strong); font-size: 1.5em; }
.article h3 { font-size: 1.16em; }
.article p, .article ul, .article ol, .article table, .article pre { margin: 1.1em 0; }
.article ul, .article ol { padding-left: 1.5em; }
.article li { margin: .42em 0; }
.article li::marker { color: var(--accent); font-family: var(--mono); }
.article a { color: var(--accent); border-bottom: 1px solid rgba(43, 75, 255, .3); }
.article a:hover { color: var(--accent-strong); border-bottom-color: currentColor; }
.article strong { color: var(--ink); }
.article blockquote {
  margin: 1.6em 0; padding: 1em 1.2em; border-left: 3px solid var(--accent);
  background: var(--surface); color: var(--muted); font-style: italic;
}
.article blockquote > :first-child { margin-top: 0; }
.article blockquote > :last-child { margin-bottom: 0; }
.article code {
  padding: .08em .35em; border: 1px solid var(--line); background: var(--paper-2);
  color: var(--accent-strong); font-family: var(--mono); font-size: .85em;
}
.article pre {
  padding: 18px 20px; overflow: auto; border: 1px solid var(--dark);
  border-left: 3px solid var(--lime); background: var(--dark);
  box-shadow: var(--shadow);
}
.article pre code {
  padding: 0; border: 0; background: none; color: #dfe8d9;
  font-size: 13.5px; line-height: 1.7;
}
.article table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .88em; }
.article th, .article td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.article th {
  border-top: 1px solid var(--ink); border-bottom: 2px solid var(--ink);
  background: var(--paper-3); color: var(--ink);
  font-family: var(--mono); font-size: .72em; letter-spacing: .1em; text-transform: uppercase;
}
.article img {
  max-width: 100%; padding: 4px; border: 1px solid var(--line); background: var(--white);
  box-shadow: 0 10px 28px -18px rgba(16, 21, 18, .35);
}
.article hr { height: 1px; margin: 2.6em 0; border: 0; background: var(--line-strong); }
.article-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
}

/* 文章右侧栏 / 目录 */
.doc-rail {
  position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px;
}
.rail-block { padding: 18px; border: 1px solid var(--line); background: var(--surface); }
.rail-title {
  margin: 0 0 12px; color: var(--faint);
  font-family: var(--mono); font-size: 8px; letter-spacing: .2em; text-transform: uppercase;
}
.toc { display: flex; flex-direction: column; max-height: 48vh; overflow: auto; }
.toc a {
  display: block; padding: 7px 0 7px 12px; border-left: 1px solid var(--line);
  color: var(--muted); font-size: 11.5px; line-height: 1.5;
  transition: color .18s ease, border-color .18s ease;
}
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.toc a.toc-sub { padding-left: 24px; font-size: 10.5px; }
.toc-empty { margin: 0; color: var(--faint); font-size: 11px; line-height: 1.6; }
.rail-meta { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.rail-meta > div { display: flex; justify-content: space-between; gap: 12px; }
.rail-meta dt {
  color: var(--faint); font-family: var(--mono); font-size: 8px;
  letter-spacing: .12em; text-transform: uppercase;
}
.rail-meta dd {
  margin: 0; color: var(--ink-soft); font-size: 11px;
  text-align: right; overflow-wrap: anywhere;
}
.rail-link { display: block; padding: 4px 0; color: var(--ink-soft); font-size: 11.5px; }
.rail-link:hover { color: var(--accent); }

/* ---------- 登录 ---------- */
.auth-page { min-height: calc(100vh - 74px); display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-brand {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  justify-content: space-between; gap: 48px;
  padding: clamp(34px, 5vw, 72px);
  background: var(--dark); color: var(--paper);
}
.auth-brand::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(238, 241, 234, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(238, 241, 234, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(160deg, #000, transparent 75%);
}
.auth-brand::after {
  content: "ID"; position: absolute; right: -10px; bottom: -80px;
  color: rgba(238, 241, 234, .035); font-family: var(--display);
  font-size: clamp(200px, 30vw, 360px); font-weight: 700; line-height: 1;
  pointer-events: none; user-select: none;
}
.auth-lockup {
  position: relative; z-index: 1; display: block; height: 34px; width: auto;
  filter: brightness(0) invert(1);
}
.auth-brand-copy { position: relative; z-index: 1; max-width: 480px; }
.auth-brand-copy .kicker { color: rgba(238, 241, 234, .55); }
.auth-brand-copy h2 {
  margin: 0 0 18px; font-family: var(--display); font-weight: 700;
  font-size: clamp(36px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -.045em;
}
.auth-brand-copy p {
  margin: 0; color: rgba(238, 241, 234, .6);
  font-family: var(--serif); font-size: 14px; line-height: 1.85;
}
.auth-points {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  gap: 10px; margin: 26px 0 0; padding: 0; list-style: none;
}
.auth-points li {
  display: flex; align-items: baseline; gap: 10px;
  color: rgba(238, 241, 234, .72); font-family: var(--mono);
  font-size: 9.5px; letter-spacing: .06em;
}
.auth-points li::before { content: "■"; color: var(--lime); font-size: 6px; }
.auth-form-side { display: grid; place-items: center; padding: clamp(30px, 5vw, 68px); }
.auth-card { width: min(100%, 424px); }
.auth-card .kicker { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line-strong); }
.auth-card h1 {
  margin: 0 0 14px; font-family: var(--display); font-weight: 700;
  font-size: clamp(38px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -.045em;
}
.auth-hint { margin: 0 0 26px; color: var(--muted); font-family: var(--serif); font-size: 13.5px; line-height: 1.8; }
.auth-id-button {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px 16px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--white);
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.auth-id-button:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--white); transform: translateY(-1px); }
.auth-id-button svg { width: 15px; height: 15px; }
.auth-divider {
  display: flex; align-items: center; gap: 12px; margin: 26px 0 18px;
  color: var(--faint); font-family: var(--mono); font-size: 8px;
  letter-spacing: .18em; text-transform: uppercase;
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-admin-label {
  margin: 0 0 6px; color: var(--ink-soft);
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase;
}
.field {
  display: flex; flex-direction: column; gap: 8px; margin: 17px 0;
  color: var(--muted); font-family: var(--mono); font-size: 8.5px;
  letter-spacing: .16em; text-transform: uppercase;
}
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 13px; border: 1px solid var(--line-strong);
  border-radius: 0; background: var(--surface); color: var(--ink);
  font-family: var(--sans); font-size: 14px; letter-spacing: 0; text-transform: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 180px; resize: vertical; line-height: 1.75; font-family: var(--serif); }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--ink-soft); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--ink); background: var(--white);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.counter { align-self: flex-end; color: var(--faint); font-family: var(--mono); font-size: 9px; letter-spacing: .04em; text-transform: none; }
.form-error { margin: 12px 0 0; color: var(--danger); font-family: var(--sans); font-size: 12px; line-height: 1.6; }
.form-success { margin: 12px 0 0; color: var(--ok); font-family: var(--sans); font-size: 12px; line-height: 1.6; }
.primary-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; margin-top: 6px; padding: 13px 16px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.primary-action:hover:not(:disabled) {
  background: var(--accent); border-color: var(--accent); color: var(--white);
  transform: translateY(-1px);
}
.primary-action:disabled { opacity: .45; cursor: not-allowed; }
.auth-switch {
  margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line);
  color: var(--muted); font-family: var(--serif); font-size: 12.5px; line-height: 1.7;
}
.auth-switch a { border-bottom: 1px solid rgba(43, 75, 255, .3); }
.auth-switch a:hover { border-bottom-color: currentColor; }

/* ---------- 读者门户 ---------- */
.portal-shell {
  display: grid; grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(30px, 5vw, 64px); padding-top: clamp(30px, 5vw, 56px);
}
.portal-side { position: sticky; top: 96px; align-self: start; }
.side-kicker {
  margin: 0 0 14px; padding-top: 14px; border-top: 2px solid var(--ink);
  color: var(--faint); font-family: var(--mono); font-size: 8px;
  letter-spacing: .2em; text-transform: uppercase;
}
.portal-nav { display: flex; flex-direction: column; margin: 0 0 22px; }
.portal-nav a {
  padding: 10px 12px; border-left: 2px solid transparent;
  color: var(--ink-soft); font-size: 12.5px; line-height: 1.4;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.portal-nav a:hover { color: var(--ink); background: var(--paper-3); border-left-color: var(--line-strong); }
.portal-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); border-left-color: var(--accent); }
.side-note {
  display: flex; flex-direction: column; gap: 6px; padding: 14px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--faint); font-family: var(--mono); font-size: 8.5px;
  letter-spacing: .08em; line-height: 1.6;
}
.side-note strong { color: var(--ink); font-size: 11px; letter-spacing: .02em; }
.portal-main { min-width: 0; }
.view { animation: rise .32s ease both; }
.page-head { padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line-strong); }
.page-head h1 {
  margin: 0 0 12px; font-family: var(--display); font-weight: 700;
  font-size: clamp(32px, 4.6vw, 52px); line-height: 1.05; letter-spacing: -.045em;
}
.hint { max-width: 66ch; margin: 0; color: var(--muted); font-family: var(--serif); font-size: 14px; line-height: 1.85; }
.card { padding: clamp(22px, 4vw, 36px); border: 1px solid var(--line-strong); background: var(--surface); }
.card.narrow { width: min(100%, 560px); }
.actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.actions .quiet {
  padding: 8px 0; border: 0; background: transparent; color: var(--muted);
  font-family: var(--sans); font-size: 12px;
}
.actions .quiet:hover { color: var(--accent); background: transparent; }
.consent {
  display: flex; align-items: flex-start; gap: 9px; margin: 16px 0 4px;
  color: var(--muted); font-family: var(--serif); font-size: 12px; line-height: 1.7;
}
.consent input { margin-top: 3px; accent-color: var(--accent); }
.remember-choice { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); font-family: var(--sans); font-size: 12px; }
.remember-choice input { accent-color: var(--accent); }
.feedback-list { display: flex; flex-direction: column; gap: 12px; }
.feedback-card {
  padding: 22px 24px; border: 1px solid var(--line); background: var(--surface);
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.feedback-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.feedback-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.badge {
  display: inline-block; padding: 3px 8px 2px; border: 1px solid var(--line-strong);
  color: var(--muted); font-family: var(--mono); font-size: 8px;
  letter-spacing: .12em; text-transform: uppercase;
}
.badge.type { border-color: var(--ink); color: var(--ink); }
.status-pending { border-color: var(--accent); color: var(--accent); }
.status-processing { border-color: var(--star); color: var(--star); }
.status-resolved { border-color: var(--ok); color: var(--ok); }
.status-closed { border-color: var(--faint); color: var(--faint); }
.feedback-card h2 {
  margin: 0 0 8px; font-family: var(--display); font-weight: 600;
  font-size: 19px; line-height: 1.35; letter-spacing: -.015em; overflow-wrap: anywhere;
}
.feedback-card h2 a { color: var(--ink); }
.feedback-card h2 a:hover { color: var(--accent); }
.meta { margin: 0 0 14px; color: var(--faint); font-family: var(--mono); font-size: 9px; letter-spacing: .04em; }
.feedback-body {
  margin: 0; color: var(--ink-soft); font-family: var(--serif);
  font-size: 14px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere;
}
.reply {
  margin: 18px 0 0; padding: 14px 16px; border-left: 2px solid var(--accent);
  background: var(--accent-soft);
}
.reply strong {
  display: block; margin-bottom: 6px; color: var(--accent);
  font-family: var(--mono); font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase;
}
.reply p { margin: 0; font-family: var(--serif); font-size: 13.5px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.reply time { display: block; margin-top: 8px; color: var(--faint); font-family: var(--mono); font-size: 9px; }
.no-reply {
  margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line);
  color: var(--faint); font-family: var(--serif); font-size: 12px; font-style: italic;
}
.feedback-reference {
  margin: 14px 0 0; color: var(--faint); font-family: var(--mono);
  font-size: 9.5px; letter-spacing: .02em; overflow-wrap: anywhere;
}
.feedback-reference a { border-bottom: 1px solid rgba(43, 75, 255, .3); }
.feedback-reference a:hover { border-bottom-color: currentColor; }
.profile { margin: 20px 0 4px; border-top: 1px solid var(--line-strong); }
.profile div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.profile dt {
  color: var(--faint); font-family: var(--mono); font-size: 8px;
  letter-spacing: .16em; text-transform: uppercase;
}
.profile dd { margin: 0; color: var(--ink); font-family: var(--mono); font-size: 12.5px; text-align: right; overflow-wrap: anywhere; }
.danger { color: var(--danger); }
.danger:hover { color: #9d2318; }

/* ---------- 站点信息页 ---------- */
.legal-shell { padding-top: 28px; }
.legal-layout { grid-template-columns: 196px minmax(0, 1fr) 240px; }
.legal-nav { position: sticky; top: 96px; padding-top: 14px; border-top: 2px solid var(--ink); }
.legal-nav h2 {
  margin: 0 0 12px; color: var(--faint); font-family: var(--mono);
  font-size: 8px; letter-spacing: .2em; text-transform: uppercase;
}
.legal-nav a {
  display: block; padding: 9px 10px; border-left: 2px solid transparent;
  color: var(--ink-soft); font-size: 12px; line-height: 1.4;
}
.legal-nav a:hover { color: var(--ink); background: var(--paper-3); }
.legal-nav a[aria-current="page"] { color: var(--accent); border-left-color: var(--accent); background: var(--accent-soft); }
.legal-article { padding-top: 30px; }
.legal-article .article > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-article h2 { scroll-margin-top: 96px; }
.legal-article a { overflow-wrap: anywhere; }
.legal-head h1 { margin: 12px 0 16px; }
.legal-meta { margin: 0; color: var(--faint); font-family: var(--mono); font-size: 9.5px; letter-spacing: .04em; }

/* ---------- 404 ---------- */
.not-found { min-height: calc(100vh - 74px); display: grid; place-items: center; padding: clamp(40px, 8vw, 90px) 0; }
.not-found-inner { width: min(100% - 64px, 980px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(26px, 5vw, 64px); align-items: center; }
.not-found-code {
  font-family: var(--display); font-weight: 700; font-size: clamp(110px, 20vw, 220px);
  line-height: .8; letter-spacing: -.08em; color: var(--ink);
}
.not-found-code span { color: var(--accent); }
.not-found h1 {
  margin: 0 0 14px; font-family: var(--display); font-weight: 700;
  font-size: clamp(28px, 4vw, 44px); letter-spacing: -.04em; line-height: 1.1;
}
.not-found p { max-width: 46ch; margin: 0; color: var(--muted); font-family: var(--serif); font-size: 14px; line-height: 1.9; }
.not-found .hero-actions { margin-top: 26px; }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: clamp(64px, 9vw, 110px);
  border-top: 1px solid var(--line-strong); background: var(--paper-2);
}
.footer-inner { width: min(100% - 64px, 1200px); margin: 0 auto; padding: 42px 0 28px; }
.footer-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 32px;
  padding-bottom: 28px; border-bottom: 1px solid var(--line);
}
.footer-brand img { display: block; height: 26px; width: auto; }
.footer-top p { max-width: 44ch; margin: 0; color: var(--muted); font-family: var(--serif); font-size: 13px; line-height: 1.8; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 28px 0; }
.footer-grid h3 {
  margin: 0 0 12px; color: var(--faint); font-family: var(--mono);
  font-size: 8px; letter-spacing: .2em; text-transform: uppercase;
}
.footer-grid a {
  display: block; padding: 4px 0; color: var(--ink-soft);
  font-size: 12px; line-height: 1.5;
}
.footer-grid a:hover { color: var(--accent); }
.footer-grid span { display: block; padding: 4px 0; color: var(--muted); font-size: 12px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line);
  color: var(--faint); font-family: var(--mono); font-size: 8px;
  letter-spacing: .14em; text-transform: uppercase;
}

/* ---------- 轻提示 ---------- */
.toasts {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  min-width: 200px; max-width: 360px; padding: 11px 14px;
  background: var(--dark); color: var(--paper);
  border-left: 3px solid var(--lime); box-shadow: var(--shadow);
  font-family: var(--sans); font-size: 12px; overflow-wrap: anywhere;
  animation: rise .2s ease-out;
}
.toast.success { border-left-color: var(--lime); }
.toast.error { border-left-color: var(--danger); }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .index-card { max-width: 560px; }
  .knowledge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .personal-band { grid-template-columns: minmax(0, 1fr); }
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-article { max-width: none; }
  .doc-rail { position: static; flex-direction: row; flex-wrap: wrap; }
  .doc-rail .rail-block { flex: 1 1 260px; }
  .toc { max-height: none; }
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; gap: 2px; border-top: 1px solid var(--line); padding-top: 0; margin-bottom: 8px; }
  .legal-nav h2 { flex: 1 0 100%; margin: 14px 0 6px; }
  .legal-nav a { border-left: 0; border-bottom: 2px solid transparent; }
  .legal-nav a[aria-current="page"] { border-left: 0; border-bottom-color: var(--accent); }
}

@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; gap: 12px 18px; padding: 12px 18px; }
  .brand-lockup { height: 28px; }
  .brand-meta { display: none; }
  .nav {
    order: 3; width: 100%; margin-left: 0; gap: 14px;
    padding-top: 10px; border-top: 1px solid var(--line);
    overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav > a { white-space: nowrap; padding: 6px 2px; }
  .auth-links { margin-left: auto; padding-left: 0; border-left: 0; }
  .shell { width: min(100% - 40px, 1200px); }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip > div:nth-child(2) { border-right: 0; }
  .stat-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .portal-shell { grid-template-columns: minmax(0, 1fr); }
  .portal-side { position: static; }
  .portal-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .portal-nav a { border-left: 0; border-bottom: 2px solid transparent; padding: 8px 10px; }
  .portal-nav a[aria-current="page"] { border-left: 0; border-bottom-color: var(--accent); }
  .side-note { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .auth-page { grid-template-columns: minmax(0, 1fr); }
  .auth-brand { min-height: 300px; gap: 28px; }
  .auth-points { flex-direction: row; flex-wrap: wrap; gap: 8px 18px; }
  .footer-top { flex-direction: column; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .not-found-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 28px, 1200px); padding-bottom: 70px; }
  .hero { padding-top: 38px; }
  .hero h1 { font-size: clamp(38px, 11.5vw, 58px); }
  .hero-lead { font-size: 15px; }
  .index-card { padding: 18px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .section-note { white-space: normal; }
  .featured-link { padding: 22px 20px; }
  .featured-foot { padding: 12px 20px; }
  .row-main { grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 20px 6px 12px; }
  .row-arrow { display: none; }
  .row-actions { padding: 0 6px 16px 46px; }
  .knowledge-grid { grid-template-columns: minmax(0, 1fr); }
  .personal-band { padding: 26px 20px; }
  .personal-links { grid-template-columns: minmax(0, 1fr); }
  .personal-link { min-height: auto; }
  .article-head h1 { font-size: clamp(32px, 9vw, 46px); }
  .article { font-size: 16.5px; }
  .article pre { padding: 15px 16px; }
  .article pre code { font-size: 12.5px; }
  .auth-brand { padding: 30px 22px; min-height: 260px; }
  .auth-form-side { padding: 28px 22px 48px; }
  .footer-inner { width: min(100% - 28px, 1200px); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .toasts { right: 12px; bottom: 12px; left: 12px; }
  .toast { max-width: none; }
  .not-found-inner { width: min(100% - 28px, 980px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
/* 2026 AdoX：阅读、产品文档与私人空间的统一视觉 */
:root {
  --paper: #f7f8fb; --paper-2: #eef0f6; --paper-3: #fafbfe;
  --surface: #fff; --white: #fff; --ink: #172033; --ink-soft: #354057;
  --muted: #68738a; --faint: #8992a4; --line: #e2e6ef;
  --line-strong: #cbd2df; --accent: #5558bc; --accent-strong: #383c99;
  --accent-soft: rgba(85,88,188,.08); --lime: #b9b9f3;
  --lime-soft: rgba(185,185,243,.16); --dark: #202942; --dark-2: #2b3550;
  --dark-line: rgba(255,255,255,.17); --shadow: 0 24px 70px -48px rgba(29,40,74,.32);
  --sans: "SF Pro Display", "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "SF Pro Display", "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
}
body { background: var(--paper); background-image: none; }
::selection { background: #dfe0fa; }
.topbar { min-height: 76px; padding-inline: max(28px, calc((100vw - 1260px)/2)); background: rgba(250,251,254,.88); border-bottom-color: var(--line); backdrop-filter: blur(22px); }
.brand-lockup { height: 30px; }
.brand-meta { font-family: var(--sans); font-size: 10px; letter-spacing: .02em; text-transform: none; color: var(--muted); }
.nav > a, .link-button, .pill-button, .nav-button { font-family: var(--sans); font-size: 13px; font-weight: 550; letter-spacing: 0; text-transform: none; }
.nav > a { padding: 10px 14px; border-radius: 10px; }
.nav > a::after { display: none; }
.nav > a:hover, .nav > a[aria-current="page"] { color: var(--accent-strong); background: var(--accent-soft); }
.pill-button, .button.primary, .button.accent { border-radius: 11px; background: var(--accent); border-color: var(--accent); color: white; }
.pill-button:hover, .button.primary:hover, .button.accent:hover { background: var(--accent-strong); border-color: var(--accent-strong); transform: none; }
.button, .nav-button, .account-menu summary { border-radius: 11px; }
.button { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; padding: 12px 18px; }
.button:hover { transform: none; }
.account-menu-panel, .card { border-radius: 16px; border-color: var(--line); }
.shell { width: min(100% - 56px, 1180px); }
.hero { grid-template-columns: minmax(0, 1.18fr) minmax(310px,.82fr); align-items: center; padding-block: clamp(76px,10vw,140px) clamp(64px,8vw,105px); border-bottom-color: var(--line); }
.hero h1 { max-width: 12ch; font-size: clamp(48px,5.6vw,76px); line-height: 1.13; letter-spacing: -.052em; font-weight: 650; }
.hero h1 .accent { color: var(--ink); }
.hero-lead { max-width: 47ch; font-family: var(--sans); font-size: 17px; line-height: 1.85; color: var(--muted); }
.kicker, .section-index, .section-note, .hero-side-top, .stat-label, .knowledge-code, .knowledge-en, .side-kicker { font-family: var(--sans); letter-spacing: .03em; text-transform: none; }
.kicker .dot { box-shadow: none; }
.hero-side-top { color: var(--muted); font-size: 11px; }
.index-card { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.index-card * { border-color: var(--line); }
.index-card a { color: var(--accent); }
.stat-strip { border-color: var(--line); }
.section { padding-block: 76px; }
.section-head { border-color: var(--line); }
.section-index { color: var(--accent); }
.knowledge-card, .post-row, .featured-card, .portal-side, .side-note, .card { border-color: var(--line); background: var(--surface); box-shadow: none; }
.knowledge-card { border-radius: 16px; }
.portal-side { border-radius: 16px; }
.portal-nav a { border-radius: 9px; }
.portal-nav a:hover, .portal-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-strong); }
input, select, textarea { border-radius: 10px; border-color: var(--line-strong); background: #fff; }
@media (max-width: 760px) { .topbar { padding-inline: 18px; } .shell { width: min(100% - 36px, 1180px); } .hero { padding-block: 64px 52px; } }

/* 独立门户：白色界面与品牌绿，阅读页沿用相同色系。 */
:root { --paper: #fff; --paper-2: #f6f8f6; --paper-3: #fbfcfb; --surface: #fff; --ink: #101512; --ink-soft: #33473b; --muted: #617168; --faint: #8a988f; --line: #e3eae5; --line-strong: #cbd8cf; --accent: #236946; --accent-strong: #174c32; --accent-soft: rgba(35,105,70,.08); --dark: #101512; --dark-2: #1a3024; }
body.landing-page { background: #fff; color: #101512; font-family: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif; }
.landing-page a { color: inherit; }
.landing-topbar { position: sticky; top: 0; z-index: 30; min-height: 76px; display: flex; align-items: center; gap: clamp(24px,4vw,76px); padding: 12px clamp(24px,4.5vw,72px); background: rgba(255,255,255,.94); backdrop-filter: blur(18px); border-bottom: 1px solid #e8ece9; }
.landing-brand { flex: none; display: flex; align-items: center; }
.landing-brand img { width: 112px; height: auto; }
.landing-topbar nav { display: flex; gap: clamp(18px,2.5vw,42px); align-items: center; margin-right: auto; }
.landing-topbar nav a, .landing-account a { font-size: 14px; font-weight: 550; white-space: nowrap; }
.landing-topbar nav a:hover, .landing-account a:hover { color: #236946; }
.landing-account { display: flex; align-items: center; gap: 14px; }
.landing-account a:first-child { padding: 10px 18px; border: 1px solid #ccd8d0; border-radius: 999px; }
.landing-account .landing-signup { padding: 11px 19px; border-radius: 999px; background: #101512; color: white; }
.landing-account .landing-signup:hover { color: #fff; background: #236946; }
.landing-hero { position: relative; min-height: min(820px,calc(100svh - 76px)); overflow: hidden; background: radial-gradient(ellipse at 75% 50%,#f1f8f0 0%,#fff 55%); }
.landing-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.landing-hero-content { position: relative; z-index: 1; width: min(100% - 9vw,1370px); margin: auto; padding: clamp(125px,17vh,190px) 0 110px; pointer-events: none; }
.landing-hero-content a { pointer-events: auto; }
.landing-overline { display: flex; align-items: center; gap: 11px; margin-bottom: 28px; color: #526d5c; font-size: 13px; font-weight: 600; }
.landing-overline img { width: 21px; height: 21px; }
.landing-hero h1 { max-width: 12ch; margin: 0 0 25px; font-size: clamp(54px,6.4vw,98px); font-weight: 540; letter-spacing: -.075em; line-height: 1.13; }
.landing-hero-content > p:not(.landing-overline) { max-width: 42ch; color: #617168; font-size: 17px; line-height: 1.8; }
.landing-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.landing-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.landing-primary { background: #101512; color: #fff !important; }
.landing-primary:hover { background: #236946; }
.landing-secondary { border: 1px solid #b9c8bd; background: rgba(255,255,255,.78); }
.landing-secondary:hover { border-color: #236946; color: #236946; }
.landing-particle-label { position: absolute; z-index: 1; right: 4.5vw; bottom: 33px; display: flex; gap: 24px; font-size: 12px; font-weight: 650; color: #387b52; }
.landing-logo-band { overflow: hidden; border-block: 1px solid #e5ebe6; padding: 30px 0; background: #fff; }
.landing-logo-track { display: flex; width: max-content; animation: landing-marquee 42s linear infinite; }
.landing-logo-group { display: flex; align-items: center; gap: clamp(56px,7vw,110px); padding-right: clamp(56px,7vw,110px); }
.landing-logo-group img { width: auto; height: 30px; max-width: 160px; object-fit: contain; opacity: .62; filter: grayscale(1); }
.landing-logo-band:hover .landing-logo-track { animation-play-state: paused; }
@keyframes landing-marquee { to { transform: translateX(-50%); } }
.landing-paths { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; width: min(100% - 9vw,1370px); margin: auto; padding: 100px 0 120px; }
.landing-paths a { position: relative; min-height: 245px; padding: 34px; border: 1px solid #e0e9e2; border-radius: 20px; background: #f9fbf9; }
.landing-paths a:hover { border-color: #8eb59a; background: #f2f8f3; }
.landing-paths span { color: #347b50; font-size: 12px; font-weight: 650; }
.landing-paths h2 { margin: 24px 0 10px; font-size: 30px; letter-spacing: -.04em; }
.landing-paths p { max-width: 36ch; color: #647368; font-size: 15px; line-height: 1.7; }
.landing-paths b { position: absolute; right: 32px; top: 30px; color: #347b50; font-size: 23px; font-weight: 400; }
.landing-footer { display: flex; gap: 26px; padding: 28px 4.5vw; border-top: 1px solid #e5ebe6; color: #7b8880; font-size: 12px; }
.landing-footer span { margin-right: auto; }
@media (max-width: 760px) { .landing-topbar { min-height: 68px; flex-wrap: wrap; gap: 8px 20px; padding: 12px 18px; } .landing-brand img { width: 94px; } .landing-topbar nav { order: 3; width: 100%; gap: 20px; overflow-x: auto; } .landing-topbar nav a { font-size: 12px; } .landing-account { margin-left: auto; gap: 8px; } .landing-account a { font-size: 12px; } .landing-account a:first-child { padding: 7px 10px; } .landing-account .landing-signup { padding: 8px 11px; } .landing-hero { min-height: 790px; } .landing-hero-content { width: calc(100% - 36px); padding-top: 350px; padding-bottom: 95px; } .landing-hero h1 { font-size: clamp(49px,11vw,66px); } .landing-hero-content > p:not(.landing-overline) { font-size: 15px; } .landing-particle-label { top: 285px; bottom: auto; } .landing-paths { width: calc(100% - 36px); grid-template-columns: 1fr; padding-block: 60px; } .landing-paths a { min-height: 200px; } }
@media (prefers-reduced-motion: reduce) { .landing-logo-track { animation: none; } }
/* ============================================================
   首页 2026 重构
   Apple 白底 + 品牌双绿（#101512 / #d8ff5a）+ 3D 粒子 logo
   仅作用于 body.home-page，其余页面沿用原有视觉
   ============================================================ */
body.home-page {
  --hp-bg: #fbfbfd;
  --hp-surface: #ffffff;
  --hp-ink: #1d1d1f;
  --hp-ink-soft: #424245;
  --hp-muted: #6e6e73;
  --hp-faint: #86868b;
  --hp-line: rgba(16, 21, 18, .1);
  --hp-line-soft: rgba(16, 21, 18, .06);
  --hp-green: #101512;
  --hp-lime: #d8ff5a;
  --hp-radius: 24px;
  margin: 0;
  color: var(--hp-ink);
  background: var(--hp-bg);
  background-image: none;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
body.home-page ::selection { background: rgba(216, 255, 90, .55); }
body.home-page a { color: inherit; }
body.home-page a:focus-visible,
body.home-page button:focus-visible { outline-color: var(--hp-green); }

/* ---------- 顶栏：固定、滚动后玻璃态 ---------- */
body.home-page .topbar.home-topbar {
  position: fixed; inset: 0 0 auto; z-index: 90;
  display: flex; align-items: center; gap: clamp(10px, 2vw, 30px);
  min-height: 64px;
  padding: 10px max(24px, calc((100vw - 1240px) / 2));
  background: transparent; border: 0; box-shadow: none;
  transition: background-color .3s ease, box-shadow .3s ease;
}
body.home-page .topbar.home-topbar.is-glass {
  background: rgba(251, 251, 253, .74);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(16, 21, 18, .08);
}
body.home-page .brand { color: var(--hp-green); }
body.home-page .brand-lockup { display: block; height: 27px; width: auto; }
body.home-page .home-nav {
  display: flex; align-items: center; gap: clamp(10px, 2vw, 26px);
  margin-left: clamp(4px, 1.6vw, 20px); margin-right: auto;
}
body.home-page .home-nav > a {
  position: relative; padding: 8px 2px;
  color: var(--hp-ink); background: transparent; border-radius: 0;
  font-family: var(--sans); font-size: 13px;
  font-weight: 500; letter-spacing: 0; text-transform: none;
  opacity: .72; transition: opacity .2s ease, color .2s ease;
}
body.home-page .home-nav > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .28s cubic-bezier(.2, .7, .3, 1);
}
body.home-page .home-nav > a:hover,
body.home-page .home-nav > a[aria-current="page"] { opacity: 1; color: var(--hp-green); }
body.home-page .home-nav > a:hover::after,
body.home-page .home-nav > a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
body.home-page .home-tools {
  display: flex; align-items: center; gap: 8px;
  margin-left: auto; padding: 0; border: 0;
}
body.home-page .home-icon-button {
  display: grid; place-items: center; width: 38px; height: 38px;
  padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--hp-ink);
  transition: background-color .2s ease, transform .2s ease;
}
body.home-page .home-icon-button:hover { background: rgba(16, 21, 18, .06); }
body.home-page .home-icon-button svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }
body.home-page .nav-toggle { display: none; }
body.home-page .auth-links {
  display: flex; align-items: center; gap: 8px;
  padding: 0; border: 0; background: none;
}
body.home-page .home-auth-pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 19px; border-radius: 999px;
  background: var(--hp-green); color: #fff;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: 0; text-transform: none;
  transition: background-color .2s ease, transform .2s ease;
}
body.home-page .home-auth-pill:hover { background: #000; color: #fff; transform: translateY(-1px); }
body.home-page .account-menu summary {
  width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--hp-ink);
  transition: background-color .2s ease;
}
body.home-page .account-menu summary svg { width: 20px; height: 20px; }
body.home-page .account-menu summary:hover,
body.home-page .account-menu[open] summary { background: rgba(16, 21, 18, .06); color: var(--hp-ink); }
body.home-page .account-menu-panel {
  top: calc(100% + 12px); min-width: 224px; padding: 8px;
  border: 1px solid var(--hp-line-soft); border-radius: 16px;
  background: rgba(251, 251, 253, .96);
  box-shadow: 0 24px 60px -24px rgba(16, 21, 18, .35);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
body.home-page .account-menu-panel strong {
  padding: 10px 12px; margin-bottom: 4px;
  border-bottom: 1px solid var(--hp-line-soft);
  font-family: var(--sans); font-size: 13px; letter-spacing: 0;
}
body.home-page .account-menu-panel a,
body.home-page .account-menu-panel button {
  padding: 10px 12px; border-radius: 9px;
  font-family: var(--sans); font-size: 13px; color: var(--hp-ink-soft);
}
body.home-page .account-menu-panel a:hover,
body.home-page .account-menu-panel button:hover { background: rgba(16, 21, 18, .06); color: var(--hp-ink); }
body.home-page .saved-accounts { border-top-color: var(--hp-line-soft); }
body.home-page .saved-accounts > span { font-family: var(--sans); letter-spacing: .04em; }

/* ---------- 首屏 ---------- */
body.home-page .home-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  min-height: max(660px, 100svh);
  padding: 132px max(24px, calc((100vw - 1240px) / 2)) 112px;
}
body.home-page .home-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 68% 47%, rgba(216, 255, 90, .16), rgba(216, 255, 90, 0) 46%);
}
body.home-page .hero-canvas {
  position: absolute; inset: 0; z-index: 0;
  display: block; width: 100%; height: 100%;
  pointer-events: none;
}
body.home-page .hero-inner {
  position: relative; z-index: 1;
  max-width: 610px;
}
body.home-page .hero-inner::before {
  content: ""; position: absolute; inset: -56px -72px -56px -56px; z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 36% 50%, rgba(251, 251, 253, .96) 0%, rgba(251, 251, 253, .78) 48%, rgba(251, 251, 253, 0) 74%);
}
body.home-page .hero-eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 26px;
  color: var(--hp-muted);
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
}
body.home-page .hero-eyebrow img {
  width: 20px; height: 20px; border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(16, 21, 18, .08);
}
body.home-page .hero-inner h1 {
  margin: 0 0 26px;
  color: var(--hp-ink);
  font-family: var(--display);
  font-size: clamp(50px, 7vw, 92px);
  font-weight: 650; line-height: 1.03; letter-spacing: -.05em;
}
body.home-page .hero-inner h1 .mark { position: relative; display: inline-block; z-index: 0; }
body.home-page .hero-inner h1 .mark::before {
  content: ""; position: absolute; z-index: -1;
  left: -.06em; right: -.07em; bottom: .035em; height: .34em;
  border-radius: 3px; background: var(--hp-lime);
  transform: skewX(-8deg) rotate(-.7deg);
}
body.home-page .hero-lead {
  max-width: 46ch; margin: 0 0 36px;
  color: #58585d;
  font-family: var(--sans); font-size: clamp(16px, 1.45vw, 18px);
  line-height: 1.8; letter-spacing: -.005em;
}
body.home-page .hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
body.home-page .home-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border: 1px solid transparent; border-radius: 999px;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  letter-spacing: 0; text-transform: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
body.home-page .home-button svg { width: 15px; height: 15px; transition: transform .22s ease; }
body.home-page .home-button.primary { background: var(--hp-green); border-color: var(--hp-green); color: #fff; }
body.home-page .home-button.primary:hover { background: #000; border-color: #000; color: #fff; transform: translateY(-1px); }
body.home-page .home-button.primary:hover svg { transform: translateX(3px); }
body.home-page .home-button.ghost { border-color: rgba(16, 21, 18, .18); color: var(--hp-ink); background: rgba(255, 255, 255, .6); }
body.home-page .home-button.ghost:hover { border-color: var(--hp-green); background: #fff; color: var(--hp-green); }
body.home-page .hero-status {
  position: absolute; z-index: 1;
  right: max(24px, calc((100vw - 1240px) / 2)); bottom: 88px;
  display: flex; align-items: center; gap: 12px;
  color: var(--hp-faint);
  font-family: var(--sans); font-size: 10.5px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
}
body.home-page .hero-status-label { color: var(--hp-green); }
body.home-page .hero-status-bars { display: flex; gap: 4px; }
body.home-page .hero-status-bars span {
  width: 16px; height: 2px; border-radius: 2px;
  background: rgba(16, 21, 18, .16);
  transition: background-color .3s ease;
}
body.home-page .hero-status-bars span.on { background: var(--hp-green); }
body.home-page .hero-status-index { color: var(--hp-faint); font-variant-numeric: tabular-nums; }

/* ---------- 产品 logo 滚动墙 ---------- */
body.home-page .logo-band {
  position: relative; overflow: hidden;
  padding: 30px 0;
  border-top: 1px solid var(--hp-line-soft);
  border-bottom: 1px solid var(--hp-line-soft);
  background: var(--hp-bg);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
}
body.home-page .logo-track {
  display: flex; width: max-content;
  animation: home-marquee 46s linear infinite;
  will-change: transform;
}
body.home-page .logo-group {
  display: flex; align-items: center;
  gap: clamp(52px, 7vw, 100px);
  padding-right: clamp(52px, 7vw, 100px);
}
body.home-page .logo-group img {
  display: block; height: 24px; width: auto;
  opacity: .34; filter: grayscale(1);
  transition: opacity .3s ease;
}
body.home-page .logo-group img:hover { opacity: .72; }
body.home-page .logo-band:hover .logo-track { animation-play-state: paused; }
@keyframes home-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 数据条 ---------- */
body.home-page .home-stats { padding: 0 max(24px, calc((100vw - 1240px) / 2)); }
body.home-page .home-stats-inner {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--hp-line-soft);
}
body.home-page .home-stats-inner > div { padding: 28px 0 30px; }
body.home-page .home-stats-inner > div + div { padding-left: clamp(16px, 3vw, 38px); }
body.home-page .home-stats-inner span {
  display: block; margin-bottom: 10px;
  color: var(--hp-faint); font-family: var(--sans);
  font-size: 11.5px; letter-spacing: .02em;
}
body.home-page .home-stats-inner strong {
  color: var(--hp-ink); font-family: var(--display);
  font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

/* ---------- 区块骨架 ---------- */
body.home-page .home-section {
  width: min(100% - 48px, 1200px);
  margin: 0 auto; padding: clamp(72px, 9vw, 118px) 0 0;
  scroll-margin-top: 76px;
}
body.home-page .home-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; padding-bottom: 20px; margin-bottom: 32px;
  border-bottom: 1px solid var(--hp-line);
}
body.home-page .home-kicker {
  display: block; margin-bottom: 10px;
  color: var(--hp-faint); font-family: var(--sans);
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
body.home-page .home-section-head h2 {
  margin: 0; color: var(--hp-ink);
  font-family: var(--display); font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 650; line-height: 1.05; letter-spacing: -.04em;
}
body.home-page .home-section-head > p {
  margin: 0 0 4px; color: var(--hp-faint);
  font-family: var(--sans); font-size: 13.5px;
}
body.home-page .section-foot {
  margin: 18px 0 0; color: var(--hp-faint);
  font-family: var(--sans); font-size: 12px; letter-spacing: 0; line-height: 1.7;
}

/* ---------- 文章 ---------- */
body.home-page .featured {
  background: var(--hp-surface);
  border: 1px solid var(--hp-line-soft); border-top: 1px solid var(--hp-line-soft);
  border-radius: var(--hp-radius);
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .3s ease, transform .3s ease;
}
body.home-page .featured:hover {
  border-color: rgba(16, 21, 18, .16);
  box-shadow: 0 34px 70px -46px rgba(16, 21, 18, .42);
  transform: translateY(-2px);
}
body.home-page .featured-link { display: block; padding: clamp(26px, 4vw, 48px); color: var(--hp-ink); }
body.home-page .featured-link:hover { color: var(--hp-ink); }
body.home-page .featured-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 22px; color: var(--hp-faint);
  font-family: var(--sans); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
}
body.home-page .badge-live { display: inline-flex; align-items: center; gap: 7px; color: var(--hp-green); font-weight: 600; }
body.home-page .badge-live i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--hp-lime); border: 1px solid var(--hp-green);
}
body.home-page .featured h3 {
  margin: 0 0 14px; color: var(--hp-ink);
  font-family: var(--display); font-size: clamp(28px, 4.2vw, 52px);
  font-weight: 650; line-height: 1.06; letter-spacing: -.04em;
  overflow-wrap: anywhere; transition: color .2s ease;
}
body.home-page .featured:hover h3 { color: var(--hp-green); }
body.home-page .featured p {
  max-width: 68ch; margin: 0; color: var(--hp-muted);
  font-family: var(--sans); font-size: 15px; line-height: 1.8; overflow-wrap: anywhere;
}
body.home-page .more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px;
  color: var(--hp-green); font-family: var(--sans);
  font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: none;
}
body.home-page .more svg { width: 13px; height: 13px; transition: transform .22s ease; }
body.home-page .featured:hover .more svg { transform: translateX(4px); }
body.home-page .featured-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(26px, 4vw, 48px);
  border-top: 1px solid var(--hp-line-soft);
  background: #fafafc; color: var(--hp-faint);
  font-family: var(--sans); font-size: 12px;
}
body.home-page .post-list {
  margin-top: 18px; overflow: hidden;
  border: 1px solid var(--hp-line-soft); border-radius: var(--hp-radius);
  background: var(--hp-surface);
}
body.home-page .post-row { border-bottom: 1px solid var(--hp-line-soft); background: transparent; transition: background-color .2s ease; }
body.home-page .post-row:last-child { border-bottom: 0; }
body.home-page .post-row:hover { background: #fafafc; }
body.home-page .row-main {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 28px;
  gap: 16px; padding: 26px 28px 16px; color: var(--hp-ink);
}
body.home-page .row-main:hover { color: var(--hp-ink); }
body.home-page .row-index { padding-top: 1px; color: #c3c3c8; font-family: var(--sans); font-size: 12px; font-variant-numeric: tabular-nums; }
body.home-page .row-meta {
  margin-bottom: 8px; color: var(--hp-faint);
  font-family: var(--sans); font-size: 11px; letter-spacing: .02em; text-transform: none;
}
body.home-page .row-main h3 {
  margin: 0 0 8px; color: var(--hp-ink);
  font-family: var(--display); font-size: clamp(19px, 2vw, 24px);
  font-weight: 600; line-height: 1.3; letter-spacing: -.022em;
  overflow-wrap: anywhere; transition: color .2s ease;
}
body.home-page .row-main:hover h3 { color: var(--hp-green); }
body.home-page .row-main p {
  max-width: 72ch; margin: 0; color: var(--hp-muted);
  font-family: var(--sans); font-size: 13.5px; line-height: 1.7; overflow-wrap: anywhere;
}
body.home-page .row-arrow { color: #c3c3c8; font-size: 17px; transition: color .2s ease, transform .2s ease; }
body.home-page .row-main:hover .row-arrow { color: var(--hp-green); transform: translateX(3px); }
body.home-page .row-actions { padding: 0 28px 20px 88px; }
body.home-page .empty {
  margin-top: 18px; padding: 56px 24px;
  border: 1px dashed rgba(16, 21, 18, .18); border-radius: var(--hp-radius);
  background: #fff; color: var(--hp-muted);
  font-family: var(--sans); font-size: 14px; line-height: 1.8;
}
body.home-page .preview-banner {
  margin: 84px auto 0; width: min(100% - 48px, 1200px);
  padding: 12px 16px; border: 1px solid var(--hp-line);
  border-radius: 12px; background: #fff; color: var(--hp-green);
  font-family: var(--sans); font-size: 12px; letter-spacing: 0; text-transform: none;
}

/* 互动按钮 */
body.home-page .post-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body.home-page .reaction {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border: 1px solid rgba(16, 21, 18, .12); border-radius: 999px;
  background: transparent; color: var(--hp-muted);
  font-family: var(--sans); font-size: 12px; letter-spacing: 0;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
body.home-page .reaction svg { width: 14px; height: 14px; }
body.home-page .reaction:hover:not(:disabled) {
  border-color: rgba(16, 21, 18, .34); background: #fff; color: var(--hp-green); transform: none;
}
body.home-page .reaction.active {
  color: var(--hp-green); border-color: rgba(16, 21, 18, .32);
  background: rgba(216, 255, 90, .38);
}
body.home-page .reaction.star.active {
  color: var(--hp-green); border-color: rgba(16, 21, 18, .32);
  background: rgba(216, 255, 90, .38);
}
body.home-page .reaction:disabled { opacity: .45; }

/* ---------- 知识地图 ---------- */
body.home-page .knowledge-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px; margin-top: 0; border: 0;
}
body.home-page .knowledge-card {
  position: relative; min-height: 192px;
  padding: 26px 24px 28px;
  border: 1px solid var(--hp-line-soft); border-radius: 22px;
  background: var(--hp-surface);
  transition: border-color .2s ease, transform .25s ease, box-shadow .25s ease;
}
body.home-page .knowledge-card:hover {
  background: var(--hp-surface);
  border-color: rgba(16, 21, 18, .18);
  transform: translateY(-3px);
  box-shadow: 0 26px 54px -40px rgba(16, 21, 18, .4);
}
body.home-page .knowledge-code {
  color: var(--hp-faint); font-family: var(--sans);
  font-size: 12px; letter-spacing: .08em; font-variant-numeric: tabular-nums;
}
body.home-page .knowledge-code::after {
  content: ""; display: inline-block; width: 6px; height: 6px;
  margin-left: 9px; border-radius: 50%; background: var(--hp-lime);
  box-shadow: 0 0 0 1px rgba(16, 21, 18, .28);
  vertical-align: 1px;
}
body.home-page .knowledge-card h3 {
  margin: 16px 0 4px; color: var(--hp-ink);
  font-family: var(--display); font-size: 20px;
  font-weight: 600; letter-spacing: -.02em;
}
body.home-page .knowledge-en {
  color: #a1a1a6; font-family: var(--sans);
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
}
body.home-page .knowledge-card p {
  margin: 14px 0 0; color: var(--hp-muted);
  font-family: var(--sans); font-size: 13px; line-height: 1.7;
}
body.home-page .knowledge-count {
  position: absolute; top: 24px; right: 22px;
  padding: 4px 9px; border: 1px solid rgba(16, 21, 18, .1); border-radius: 999px;
  color: var(--hp-faint); font-family: var(--sans);
  font-size: 10.5px; letter-spacing: .02em;
}
body.home-page .knowledge-count.has-posts {
  border-color: rgba(16, 21, 18, .24); color: var(--hp-green);
  background: rgba(216, 255, 90, .32);
}

/* ---------- 个人空间 ---------- */
body.home-page .personal-band {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 64px);
  width: min(100% - 48px, 1200px);
  margin: clamp(72px, 9vw, 118px) auto 0;
  padding: clamp(34px, 5vw, 62px);
  background: #f5f5f7; color: var(--hp-ink);
  border-radius: 32px; box-shadow: none;
}
body.home-page .personal-band::after {
  content: "IDX"; position: absolute; right: -10px; bottom: -58px;
  color: rgba(16, 21, 18, .035);
  font-family: var(--display); font-size: clamp(170px, 23vw, 290px);
  font-weight: 700; line-height: 1; pointer-events: none; user-select: none;
}
body.home-page .personal-copy { position: relative; z-index: 1; }
body.home-page .personal-copy .home-kicker { color: #86868b; }
body.home-page .personal-copy h2 {
  margin: 0 0 20px; color: var(--hp-ink);
  font-family: var(--display); font-size: clamp(32px, 4.3vw, 54px);
  font-weight: 650; line-height: 1.04; letter-spacing: -.045em;
}
body.home-page .personal-copy > p {
  max-width: 44ch; margin: 0; color: var(--hp-muted);
  font-family: var(--sans); font-size: 14.5px; line-height: 1.85;
}
body.home-page .personal-status {
  display: inline-flex; align-items: center; gap: 9px; flex-wrap: wrap;
  margin-top: 26px; padding: 9px 14px;
  border: 1px solid rgba(16, 21, 18, .1); border-radius: 999px;
  background: #fff; color: var(--hp-muted);
  font-family: var(--sans); font-size: 12px; letter-spacing: 0;
  box-shadow: 0 1px 0 rgba(16, 21, 18, .03);
}
body.home-page .personal-status a { color: var(--hp-green); font-weight: 600; }
body.home-page .personal-status a:hover { color: #000; }
body.home-page .status-dot {
  flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%;
  background: var(--hp-lime); border: 1px solid var(--hp-green); box-shadow: none;
}
body.home-page .personal-links {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  align-self: start;
}
body.home-page .personal-link {
  display: flex; flex-direction: column; gap: 8px; min-height: 128px;
  padding: 18px; border: 1px solid rgba(16, 21, 18, .07); border-radius: 18px;
  background: #fff; color: var(--hp-ink);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
body.home-page .personal-link:hover {
  border-color: rgba(16, 21, 18, .16); background: #fff;
  color: var(--hp-ink); transform: translateY(-2px);
  box-shadow: 0 22px 44px -34px rgba(16, 21, 18, .35);
}
body.home-page .pl-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  color: var(--hp-faint); font-family: var(--sans);
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
}
body.home-page .pl-badge {
  padding: 3px 8px; border: 1px solid rgba(16, 21, 18, .1); border-radius: 999px;
  color: var(--hp-faint); font-size: 9.5px; letter-spacing: .04em; text-transform: none;
}
body.home-page .personal-link.is-unlocked .pl-badge {
  border-color: rgba(16, 21, 18, .22); color: var(--hp-green);
  background: rgba(216, 255, 90, .38);
}
body.home-page .pl-title {
  color: var(--hp-ink); font-family: var(--sans);
  font-size: 17px; font-weight: 600; letter-spacing: -.01em;
}
body.home-page .personal-link p {
  margin: 0; color: var(--hp-muted);
  font-family: var(--sans); font-size: 12.5px; line-height: 1.65;
}

/* ---------- 页脚 ---------- */
body.home-page .site-footer {
  margin-top: clamp(72px, 9vw, 118px);
  border-top: 1px solid var(--hp-line-soft);
  background: var(--hp-bg);
}
body.home-page .footer-inner {
  width: min(100% - 48px, 1200px);
  padding: 48px 0 30px;
}
body.home-page .footer-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 32px; padding-bottom: 28px;
  border-bottom: 1px solid var(--hp-line-soft);
}
body.home-page .footer-brand img { display: block; height: 24px; width: auto; }
body.home-page .footer-top p {
  max-width: 44ch; margin: 0; color: var(--hp-muted);
  font-family: var(--sans); font-size: 13px; line-height: 1.75;
}
body.home-page .footer-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px; padding: 30px 0;
}
body.home-page .footer-grid h3 {
  margin: 0 0 12px; color: var(--hp-faint);
  font-family: var(--sans); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase;
}
body.home-page .footer-grid a {
  display: block; padding: 4px 0; color: var(--hp-ink);
  font-size: 12.5px; line-height: 1.5; opacity: .72;
  transition: opacity .2s ease;
}
body.home-page .footer-grid a:hover { color: var(--hp-green); opacity: 1; }
body.home-page .footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-top: 20px;
  border-top: 1px solid var(--hp-line-soft);
  color: var(--hp-faint); font-family: var(--sans);
  font-size: 11px; letter-spacing: 0; text-transform: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  body.home-page .knowledge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.home-page .personal-band { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  body.home-page .home-topbar { gap: 10px; }
  body.home-page .nav-toggle { display: grid; }
  body.home-page .home-nav {
    position: fixed; top: 70px; left: 12px; right: 12px;
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    margin: 0; padding: 10px; border-radius: 18px;
    background: rgba(251, 251, 253, .97);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    backdrop-filter: saturate(180%) blur(24px);
    box-shadow: 0 30px 70px -24px rgba(16, 21, 18, .4), 0 0 0 1px rgba(16, 21, 18, .07);
  }
  body.home-page .home-nav.is-open { display: flex; animation: home-nav-pop .24s cubic-bezier(.2, .75, .25, 1) both; }
  body.home-page .home-nav > a {
    padding: 13px 14px; border-radius: 10px; font-size: 15px; opacity: 1;
  }
  body.home-page .home-nav > a::after { display: none; }
  body.home-page .home-nav > a:hover,
  body.home-page .home-nav > a[aria-current="page"] { background: rgba(16, 21, 18, .05); }
  body.home-page .home-hero {
    align-items: flex-end;
    padding: 118px 24px 100px;
  }
  body.home-page .hero-inner { max-width: 560px; }
  body.home-page .hero-inner::before {
    inset: -40px -28px;
    background: linear-gradient(to top, rgba(251, 251, 253, .97) 24%, rgba(251, 251, 253, .72) 58%, rgba(251, 251, 253, 0) 92%);
  }
  body.home-page .hero-status { top: 84px; bottom: auto; right: 24px; }
}
@media (max-width: 760px) {
  body.home-page .home-stats-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.home-page .home-stats-inner > div { padding: 22px 0; border-bottom: 1px solid var(--hp-line-soft); }
  body.home-page .home-stats-inner > div:nth-child(2n) { padding-left: 20px; }
  body.home-page .home-stats-inner > div:nth-last-child(-n+2) { border-bottom: 0; }
  body.home-page .home-section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  body.home-page .home-section-head > p { margin-bottom: 0; }
  body.home-page .logo-group img { height: 20px; }
  body.home-page .knowledge-grid { grid-template-columns: minmax(0, 1fr); }
  body.home-page .personal-links { grid-template-columns: minmax(0, 1fr); }
  body.home-page .personal-link { min-height: auto; }
  body.home-page .footer-top { flex-direction: column; }
  body.home-page .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body.home-page .home-hero { min-height: max(600px, 100svh); padding: 112px 20px 88px; }
  body.home-page .hero-inner h1 { font-size: clamp(40px, 11.5vw, 58px); }
  body.home-page .hero-lead { font-size: 15.5px; }
  body.home-page .hero-status { left: 20px; right: auto; top: 80px; gap: 9px; font-size: 9.5px; }
  body.home-page .hero-status-bars span { width: 12px; }
  body.home-page .home-button { padding: 12px 20px; }
  body.home-page .home-section { width: min(100% - 36px, 1200px); }
  body.home-page .row-main { grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 22px 20px 12px; }
  body.home-page .row-arrow { display: none; }
  body.home-page .row-actions { padding: 0 20px 18px 62px; }
  body.home-page .featured-link { padding: 24px 22px; }
  body.home-page .featured-foot { padding: 12px 22px; }
  body.home-page .personal-band { width: min(100% - 36px, 1200px); padding: 26px 20px; border-radius: 24px; }
  body.home-page .footer-inner { width: min(100% - 36px, 1200px); }
  body.home-page .preview-banner { width: min(100% - 36px, 1200px); }
}
@keyframes home-nav-pop {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  body.home-page .logo-track { animation: none; }
  body.home-page .home-nav.is-open { animation: none; }
}

/* 门户在桌面视口内完整展示；暗色模式只改变色彩，不改变信息层级。 */
body.landing-page { --landing-bg:#fff; --landing-fg:#101512; --landing-muted:#607168; --landing-rule:#e5ebe6; --landing-hero:#f2f9f4; --landing-button:#101512; min-height:100svh; display:flex; flex-direction:column; background:var(--landing-bg); color:var(--landing-fg); }
html[data-theme="dark"] body.landing-page { --landing-bg:#080d0a; --landing-fg:#f5faf6; --landing-muted:#a8b9ac; --landing-rule:#263b2c; --landing-hero:#10261a; --landing-button:#f5faf6; }
.landing-page .landing-topbar { flex:0 0 72px; min-height:72px; background:var(--landing-bg); border-bottom-color:var(--landing-rule); }
.landing-page .landing-topbar nav a, .landing-page .landing-account a { color:var(--landing-fg); }
.landing-page .landing-account a:first-of-type { border-color:var(--landing-rule); }
.landing-page .landing-account .landing-signup { color:var(--landing-bg); background:var(--landing-button); }
.landing-page .landing-theme-toggle { display:inline-flex; align-items:center; gap:7px; padding:8px 10px; border:0; background:transparent; color:var(--landing-fg); font-size:13px; }
.landing-page .landing-theme-toggle:hover { color:#3da56b; }
.landing-page .landing-brand img { filter:brightness(0) saturate(100%); }
html[data-theme="dark"] .landing-page .landing-brand img { filter:brightness(0) invert(1); }
.landing-page main { display:flex; flex:1; flex-direction:column; min-height:0; }
.landing-page .landing-hero { flex:1; min-height:0; background:radial-gradient(ellipse at 73% 40%,var(--landing-hero),var(--landing-bg) 58%); }
.landing-page .landing-hero-content { display:flex; flex-direction:column; justify-content:flex-end; min-height:100%; padding-top:clamp(140px,23vh,250px); padding-bottom:clamp(54px,8vh,110px); }
.landing-page .landing-overline { color:var(--landing-muted); }
.landing-page .landing-hero h1 { max-width:18ch; font-size:clamp(50px,5.9vw,91px); line-height:1.09; margin-bottom:20px; }
.landing-page .landing-hero-content > p:not(.landing-overline) { color:var(--landing-muted); margin-bottom:0; }
.landing-page .landing-primary { background:var(--landing-button); color:var(--landing-bg) !important; }
.landing-page .landing-secondary { color:var(--landing-fg); background:transparent; border-color:var(--landing-rule); }
.landing-page .landing-secondary:hover { border-color:#5dbb7a; color:#5dbb7a; }
.landing-page .landing-logo-band { flex:0 0 105px; display:flex; align-items:center; padding:0; background:var(--landing-bg); border-block-color:var(--landing-rule); }
.landing-page .landing-logo-group img { height:28px; filter:grayscale(1) brightness(.35); opacity:.65; }
html[data-theme="dark"] .landing-page .landing-logo-group img { filter:grayscale(1) brightness(0) invert(1); opacity:.58; }
.landing-page .landing-footer { flex:0 0 44px; align-items:center; padding-block:9px; background:var(--landing-bg); border-top:0; color:var(--landing-muted); }
.landing-page .landing-footer a { color:var(--landing-muted); }
html[data-theme="dark"] .landing-page .landing-account .landing-signup:hover { background:#d8ff5a; color:#101512; }
@media (max-width:760px) { body.landing-page { min-height:100svh; } .landing-page .landing-topbar { flex-basis:auto; } .landing-page .landing-hero { min-height:680px; } .landing-page .landing-hero-content { padding-top:350px; padding-bottom:65px; } .landing-page .landing-hero h1 { font-size:clamp(43px,10vw,62px); } .landing-page .landing-logo-band { flex-basis:88px; } .landing-page .landing-footer { flex-basis:auto; } }
@media (max-height:740px) and (min-width:761px) { .landing-page .landing-hero-content { padding-top:115px; padding-bottom:40px; } .landing-page .landing-hero h1 { font-size:clamp(46px,5vw,70px); } .landing-page .landing-hero-content > p:not(.landing-overline) { font-size:15px; } .landing-page .landing-logo-band { flex-basis:78px; } .landing-page .landing-footer { flex-basis:36px; } }
/* 门户固定为一个视口，窄屏也不出现第二屏内容。 */
body.landing-page { height:100svh; min-height:0; overflow:hidden; }
.landing-page .landing-hero-content { padding-top:clamp(80px,16vh,180px); padding-bottom:clamp(38px,7vh,86px); }
.landing-page .landing-hero h1 { max-width:none; font-family:"SF Pro Display","Helvetica Neue","PingFang SC","Microsoft YaHei",sans-serif; font-size:clamp(52px,5.7vw,86px); font-weight:650; line-height:1.18; letter-spacing:-.035em; }
.landing-page .landing-hero-content > p:not(.landing-overline) { max-width:44ch; }
@media (max-width:760px) {
  body.landing-page { height:100svh; }
  .landing-page .landing-topbar { flex:0 0 auto; }
  .landing-page .landing-topbar nav { gap:14px; }
  .landing-page .landing-hero { flex:1; min-height:0; }
  .landing-page .landing-hero-content { justify-content:flex-end; padding-top:0; padding-bottom:clamp(24px,5vh,44px); }
  .landing-page .landing-hero h1 { font-size:clamp(40px,9vw,56px); line-height:1.2; margin-bottom:14px; }
  .landing-page .landing-overline { margin-bottom:12px; font-size:11px; }
  .landing-page .landing-hero-content > p:not(.landing-overline) { font-size:13px; line-height:1.5; }
  .landing-page .landing-actions { gap:8px; margin-top:18px; }
  .landing-page .landing-actions a { min-height:42px; padding:9px 14px; font-size:12px; }
  .landing-page .landing-particle-label { top:25%; right:18px; }
  .landing-page .landing-logo-band { flex:0 0 64px; }
  .landing-page .landing-logo-group img { height:21px; }
  .landing-page .landing-footer { flex:0 0 30px; padding:5px 18px; font-size:10px; }
}
@media (max-height:620px) {
  .landing-page .landing-topbar { min-height:58px; }
  .landing-page .landing-logo-band { flex-basis:58px; }
  .landing-page .landing-footer { flex-basis:28px; }
  .landing-page .landing-hero h1 { font-size:clamp(37px,4.8vw,62px); }
  .landing-page .landing-hero-content { padding-top:0; padding-bottom:24px; }
  .landing-page .landing-overline { margin-bottom:10px; }
  .landing-page .landing-actions { margin-top:14px; }
}
body.landing-page, .landing-page .landing-topbar, .landing-page .landing-hero, .landing-page .landing-logo-band, .landing-page .landing-footer, .landing-page .landing-account a, .landing-page .landing-actions a, .landing-page .landing-topbar nav a, .landing-page .landing-theme-toggle, .landing-page .landing-hero h1, .landing-page .landing-hero p, .landing-page .landing-footer a { transition:background-color .55s ease,color .55s ease,border-color .55s ease,filter .55s ease; }
.landing-page .landing-hero { transition:background .55s ease; }
@media (prefers-reduced-motion:reduce) { body.landing-page, .landing-page * { transition-duration:0s !important; } }
.landing-page .landing-account { gap:8px; }
.landing-page .landing-menu { position:relative; display:flex; align-items:center; }
.landing-page .landing-icon-button { display:grid; place-items:center; width:38px; height:38px; padding:7px; border:0; border-radius:50%; background:transparent; color:var(--landing-fg); transition:background .2s ease,transform .2s ease; }
.landing-page .landing-icon-button:hover, .landing-page .landing-icon-button[aria-expanded="true"] { background:color-mix(in srgb,var(--landing-fg) 10%,transparent); }
.landing-page .landing-icon-button:hover { transform:translateY(-1px); }
.landing-page .landing-icon-button svg { width:23px; height:23px; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.landing-page .landing-dropdown { position:absolute; top:calc(100% + 13px); right:0; z-index:60; min-width:186px; padding:7px; border:1px solid var(--landing-rule); border-radius:13px; background:var(--landing-bg); color:var(--landing-fg); box-shadow:0 20px 48px #0003; backdrop-filter:blur(20px); transform-origin:top right; animation:landing-menu-open .22s cubic-bezier(.2,.75,.25,1) both; }
.landing-page .landing-dropdown[hidden] { display:none; }
.landing-page .landing-dropdown button, .landing-page .landing-dropdown a { display:flex; width:100%; min-height:39px; align-items:center; padding:9px 12px; border:0; border-radius:8px; background:transparent; color:var(--landing-fg); text-align:left; font:500 13px "Helvetica Neue","PingFang SC",sans-serif; }
.landing-page .landing-account .landing-dropdown a:first-of-type { border:0; border-radius:8px; padding:9px 12px; }
.landing-page .landing-dropdown button:hover, .landing-page .landing-dropdown a:hover, .landing-page .landing-dropdown [aria-current] { background:color-mix(in srgb,var(--landing-fg) 10%,transparent); color:var(--landing-fg); }
.landing-page .landing-menu-name { padding:10px 12px; margin-bottom:4px; border-bottom:1px solid var(--landing-rule); color:var(--landing-muted); font-size:12px; }
.landing-page .landing-theme-toggle { gap:10px; border-top:1px solid var(--landing-rule) !important; margin-top:5px; border-radius:0; }
@keyframes landing-menu-open { from { opacity:0; transform:translateY(-6px) scale(.98); } to { opacity:1; transform:translateY(0) scale(1); } }
@media (prefers-reduced-motion:reduce) { .landing-page .landing-dropdown { animation:none; } }

/* 首页视觉系统延伸到阅读、文章、账户与静态页面。 */
html[data-theme="dark"] { --paper:#080d0a; --paper-2:#102018; --paper-3:#0d1811; --surface:#111c15; --white:#f5faf6; --ink:#f5faf6; --ink-soft:#d2dfd5; --muted:#a8b9ac; --faint:#829889; --line:#263b2c; --line-strong:#365541; --accent:#78d99c; --accent-strong:#a5e9b7; --accent-soft:rgba(120,217,156,.12); --dark:#080d0a; --dark-2:#102018; --dark-line:#2b4735; --lime:#d8ff5a; }
html[data-theme="light"] { --paper:#fff; --paper-2:#f4f8f5; --paper-3:#fbfdfb; --surface:#fff; --ink:#101512; --ink-soft:#33473b; --muted:#617168; --faint:#8a988f; --line:#e3eae5; --line-strong:#cbd8cf; --accent:#236946; --accent-strong:#174c32; --accent-soft:rgba(35,105,70,.08); }
html[data-theme] body:not(.landing-page) { background:var(--paper); background-image:none; color:var(--ink); transition:background-color .45s ease,color .45s ease; }
html[data-theme] .topbar { background:var(--paper); border-bottom:1px solid var(--line); box-shadow:none; }
html[data-theme="dark"] .brand-lockup, html[data-theme="dark"] .footer-brand img { filter:brightness(0) invert(1); }
html[data-theme] .brand-meta { color:var(--muted); }
html[data-theme] .nav > a { color:var(--ink-soft); }
html[data-theme] .nav > a:hover, html[data-theme] .nav > a[aria-current="page"] { color:var(--accent); background:var(--accent-soft); }
html[data-theme] .pill-button, html[data-theme] .button.primary, html[data-theme] .button.accent { background:var(--ink); border-color:var(--ink); color:var(--paper); border-radius:999px; }
html[data-theme] .pill-button:hover, html[data-theme] .button.primary:hover, html[data-theme] .button.accent:hover { background:var(--accent); border-color:var(--accent); color:var(--paper); }
html[data-theme] .button, html[data-theme] .reaction, html[data-theme] .nav-button { border-radius:999px; font-family:var(--sans); font-size:13px; font-weight:600; letter-spacing:0; text-transform:none; }
html[data-theme] .account-menu summary { border-radius:50%; background:transparent; color:var(--ink); }
html[data-theme] .account-menu-panel { border:1px solid var(--line); border-radius:14px; background:var(--surface); color:var(--ink); box-shadow:0 20px 50px #0003; }
html[data-theme] .account-menu-panel a, html[data-theme] .account-menu-panel button { color:var(--ink-soft); border-radius:8px; }
html[data-theme] .account-menu-panel a:hover, html[data-theme] .account-menu-panel button:hover { color:var(--accent); background:var(--accent-soft); }
html[data-theme] .page-head h1, html[data-theme] .article-head h1 { font-family:"SF Pro Display","Helvetica Neue","PingFang SC",sans-serif; font-weight:650; letter-spacing:-.045em; line-height:1.15; }
html[data-theme] .article { max-width:76ch; font-family:"PingFang SC","Helvetica Neue",sans-serif; font-size:16px; line-height:1.85; }
html[data-theme] .article h1, html[data-theme] .article h2, html[data-theme] .article h3 { font-family:"SF Pro Display","PingFang SC",sans-serif; letter-spacing:-.025em; }
html[data-theme] .article pre, html[data-theme] .article code { border-radius:10px; }
html[data-theme] .article blockquote { border-left-color:var(--accent); background:var(--paper-2); border-radius:0 12px 12px 0; }
html[data-theme] .article a { border-bottom-color:var(--line-strong); }
html[data-theme] .card, html[data-theme] .portal-side, html[data-theme] .knowledge-card, html[data-theme] .featured, html[data-theme] .post-row { background:var(--surface); border-color:var(--line); border-radius:18px; box-shadow:none; }
html[data-theme] .portal-nav a { color:var(--ink-soft); border-radius:9px; }
html[data-theme] .portal-nav a:hover, html[data-theme] .portal-nav a[aria-current="page"] { color:var(--accent); background:var(--accent-soft); }
html[data-theme] .field input, html[data-theme] .field textarea, html[data-theme] .field select { background:var(--paper); border-color:var(--line-strong); color:var(--ink); border-radius:11px; }
html[data-theme] .site-footer { background:var(--paper); color:var(--muted); border-top:1px solid var(--line); }
html[data-theme] .site-footer a { color:var(--ink-soft); }
html[data-theme] .site-footer a:hover { color:var(--accent); }
html[data-theme] .not-found-code { color:var(--accent); }
html[data-theme] .auth-brand { background:var(--paper-2); color:var(--ink); }
html[data-theme] .auth-brand::before, html[data-theme] .auth-brand::after { opacity:.12; }
html[data-theme] .auth-brand-copy h2, html[data-theme] .auth-brand-copy p, html[data-theme] .auth-points { color:var(--ink); }
html[data-theme] .auth-form-side { background:var(--paper); }
html[data-theme] .auth-id-button { border-radius:999px; }
html[data-theme] .auth-card h1 { font-family:"SF Pro Display","PingFang SC",sans-serif; font-weight:650; }
html[data-theme] input:focus-visible, html[data-theme] textarea:focus-visible, html[data-theme] button:focus-visible, html[data-theme] a:focus-visible { outline-color:var(--accent); }
html[data-theme="dark"] body.home-page { --hp-bg:#080d0a; --hp-paper:#080d0a; --hp-paper-2:#102018; --hp-surface:#111c15; --hp-ink:#f5faf6; --hp-ink-soft:#d2dfd5; --hp-muted:#a8b9ac; --hp-faint:#829889; --hp-line:#263b2c; --hp-line-soft:#263b2c; --hp-green:#78d99c; --hp-lime:#d8ff5a; background:#080d0a; color:#f5faf6; }
html[data-theme="dark"] body.home-page .home-topbar, html[data-theme="dark"] body.home-page .home-topbar.is-glass { background:rgba(8,13,10,.92); border-bottom-color:#263b2c; }
html[data-theme="dark"] body.home-page .home-hero { background:#080d0a; }
html[data-theme="dark"] body.home-page .hero-inner::before { background:radial-gradient(ellipse at 36% 50%,rgba(8,13,10,.96),rgba(8,13,10,.78) 48%,transparent 74%); }
html[data-theme="dark"] body.home-page .home-button.ghost, html[data-theme="dark"] body.home-page .account-menu-panel, html[data-theme="dark"] body.home-page .personal-link { background:#111c15; color:#f5faf6; border-color:#365541; }
html[data-theme="dark"] body.home-page .home-button.primary { background:#f5faf6; border-color:#f5faf6; color:#080d0a; }
html[data-theme="dark"] body.home-page .home-button.primary:hover { background:#78d99c; border-color:#78d99c; color:#080d0a; }
html[data-theme="dark"] body.home-page .home-nav { color:#f5faf6; }
html[data-theme="dark"] body.home-page .home-nav > a { color:#d2dfd5; }
html[data-theme="dark"] body.home-page .featured, html[data-theme="dark"] body.home-page .knowledge-card, html[data-theme="dark"] body.home-page .post-row { background:#111c15; border-color:#263b2c; }
html[data-theme="dark"] body.home-page .site-footer { background:#080d0a; }
@media (max-width:960px) { html[data-theme="dark"] body.home-page .home-nav { background:#111c15; box-shadow:0 24px 50px #0008; } }

/* 各公开页面顶栏与门户统一。 */
html[data-theme] body:not(.landing-page) .topbar { min-height:72px; padding:12px clamp(24px,4.5vw,72px); gap:clamp(20px,4vw,60px); background:var(--paper); backdrop-filter:blur(18px); }
html[data-theme] body:not(.landing-page) .brand-lockup { height:auto; width:94px; }
html[data-theme] body:not(.landing-page) .brand-meta { display:none; }
html[data-theme] body:not(.landing-page) .nav { margin-left:auto; gap:clamp(10px,2vw,28px); }
html[data-theme] body:not(.landing-page) .nav > a { padding:8px 2px; background:transparent; font-size:14px; font-weight:550; }
html[data-theme] body:not(.landing-page) .nav > a:hover, html[data-theme] body:not(.landing-page) .nav > a[aria-current="page"] { color:var(--accent); background:transparent; }
html[data-theme] body:not(.landing-page) .auth-links { padding-left:14px; border-left:1px solid var(--line); }
@media (max-width:760px) { html[data-theme] body:not(.landing-page) .topbar { min-height:68px; padding:12px 18px; gap:12px; } html[data-theme] body:not(.landing-page) .brand-lockup { width:80px; } html[data-theme] body:not(.landing-page) .nav { gap:8px; } html[data-theme] body:not(.landing-page) .nav > a { font-size:12px; } }
html[data-theme] body.home-page .topbar.home-topbar, html[data-theme] body.home-page .topbar.home-topbar.is-glass { min-height:72px; background:var(--paper); border-bottom:1px solid var(--line); box-shadow:none; }
html[data-theme] body.home-page .home-nav { margin-left:auto; margin-right:0; gap:clamp(10px,2vw,28px); }
html[data-theme] body.home-page .home-nav > a { opacity:1; font-size:14px; font-weight:550; color:var(--ink-soft); }
html[data-theme] body.home-page .home-nav > a::after { display:none; }
html[data-theme] body.home-page .home-nav > a:hover, html[data-theme] body.home-page .home-nav > a[aria-current="page"] { color:var(--accent); }
html[data-theme] body.home-page .home-tools { margin-left:0; }
@media (max-width:960px) { html[data-theme] body.home-page .home-nav { position:fixed; top:72px; left:12px; right:12px; margin:0; background:var(--surface); border:1px solid var(--line); border-radius:14px; } }
@media (max-width:760px) { html[data-theme] body.home-page .topbar.home-topbar, html[data-theme] body.home-page .topbar.home-topbar.is-glass { min-height:68px; } html[data-theme] body.home-page .home-nav { top:68px; } html[data-theme] body.home-page .home-nav > a { font-size:13px; } }

/* 门户标题与入口作为一组，在可用主视觉空间内垂直居中。 */
.landing-page .landing-brand img { width:94px; }
.landing-page .landing-hero-content { justify-content:center; padding-top:24px; padding-bottom:24px; }
@media (max-width:760px) {
  .landing-page .landing-brand img { width:80px; }
  .landing-page .landing-hero-content { justify-content:center; padding-top:20px; padding-bottom:20px; }
}
@media (max-height:620px) {
  .landing-page .landing-hero-content { justify-content:center; padding-top:12px; padding-bottom:12px; }
}

/* 滚动带沿用 ArasakaToru Portal 的产品标识比例，整体缩至基准 33px。 */
body.landing-page .landing-logo-group img { flex:none; width:auto; height:33px; max-width:none; object-fit:contain; }
body.landing-page .landing-logo-group img[data-product="atrip"] { height:43.08px; }
body.landing-page .landing-logo-group img[data-product="adocx"] { height:31.02px; }
body.landing-page .landing-logo-group img[data-product="arahome"] { height:64.63px; }
body.landing-page .landing-logo-group img[data-product="aeris"] { height:29.7px; }
body.landing-page .landing-logo-group img[data-product="acafe"] { height:56.01px; }
body.landing-page .landing-logo-group img[data-product="arasakatoru"] { width:140px; height:auto; max-height:64px; }
body.landing-page .landing-logo-group img:not([data-product="arasakatoru"]) { transform:scale(.8); transform-origin:center; }
@media (max-width:760px) {
  body.landing-page .landing-logo-group img { height:26.58px; }
  body.landing-page .landing-logo-group img[data-product="atrip"] { height:34.7px; }
  body.landing-page .landing-logo-group img[data-product="adocx"] { height:24.98px; }
  body.landing-page .landing-logo-group img[data-product="arahome"] { height:52.05px; }
  body.landing-page .landing-logo-group img[data-product="aeris"] { height:23.92px; }
  body.landing-page .landing-logo-group img[data-product="acafe"] { height:45.13px; }
  body.landing-page .landing-logo-group img[data-product="arasakatoru"] { width:120px; height:auto; max-height:52px; }
}

/* 传送带只保留上边界，版权区域不再重复画线。 */
.landing-page .landing-logo-band { border-top:1px solid var(--landing-rule); border-bottom:0; }
.landing-page .landing-footer { border-top:0; }

/* 品牌标识：悬停/聚焦时变白并放大 15%，点击跳转对应站点。 */
.landing-page .landing-logo-link { display:flex; flex:none; align-items:center; text-decoration:none; transition:transform .22s ease; }
.landing-page .landing-logo-group .landing-logo-link:hover,
.landing-page .landing-logo-group .landing-logo-link:focus-visible { transform:scale(1.15); }
.landing-page .landing-logo-link img { transition:filter .22s ease, opacity .22s ease; }
.landing-page .landing-logo-group .landing-logo-link:hover img,
.landing-page .landing-logo-group .landing-logo-link:focus-visible img { filter:grayscale(1) brightness(0) invert(1); opacity:1; }
/* 浅色主题下白色标识会隐入白底，改为加深到纯黑以保持可见。 */
html[data-theme="light"] .landing-page .landing-logo-group .landing-logo-link:hover img,
html[data-theme="light"] .landing-page .landing-logo-group .landing-logo-link:focus-visible img { filter:grayscale(1) brightness(0); }
.landing-page .landing-logo-group .landing-logo-link:focus-visible { outline:2px solid #5dbb7a; outline-offset:4px; border-radius:4px; }

/* ?????????????????????????? */
body.landing-page .pt-topbar { flex:0 0 72px; min-height:72px; padding:12px clamp(24px,4.5vw,72px); gap:clamp(20px,4vw,60px); background:var(--pt-bg); border-bottom:1px solid var(--pt-line); box-shadow:none; }
body.landing-page .pt-lockup { width:94px; height:auto; }
body.landing-page .pt-nav { margin-left:0; margin-right:auto; gap:clamp(10px,2vw,28px); }
@media (max-width:760px) { body.landing-page .pt-topbar { flex-basis:68px; min-height:68px; padding:12px 18px; gap:12px; } body.landing-page .pt-lockup { width:80px; } body.landing-page .pt-nav { top:68px; } }
