/* ==========================================================================
   ao3链接入口 · ao3lianjierukou.cc
   设计令牌参考 DESIGN-e-chubu-jp.md：
   主色红 #ff1626 / 青 #49ebd2 / 黄 #fbff27，大字号、大圆角、暖光阴影。
   纯手写 CSS，无框架、无外链字体，首屏不依赖任何第三方资源。
   ========================================================================== */

:root {
  --red: #ff1626;
  --red-text: #c00c18;
  --teal: #49ebd2;
  --teal-ink: #05604f;
  --teal-dot: #12b79c;
  --yellow: #fbff27;
  --ink: #0b0b0b;
  --ink-soft: #2f2f2a;
  --muted: #6b6b63;
  --paper: #ffffff;
  --paper-2: #f7f6f1;
  --cream: #fbf8e7;
  --line: #e5e2d6;
  --line-strong: #dbdacc;
  --glow: rgba(223, 212, 159, 0.42);
  --shadow-card: 0 18px 60px -22px rgba(112, 102, 62, 0.42);
  --radius-sm: 11px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --radius-xl: 50px;
  --wrap: 1240px;
  --gutter: clamp(18px, 4vw, 40px);
  --header-h: 72px;
  --font: "Zen Kaku Gothic New", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --mono: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
h4 {
  margin: 0;
}

ul,
ol {
  margin: 0;
}

::selection {
  background: var(--yellow);
  color: #000;
}

h1,
h2,
h3,
b,
strong {
  font-weight: 800;
}

:focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
  border-radius: 4px;
}

.site-footer :focus-visible,
.panel-dark :focus-visible {
  outline-color: #fff;
}

[hidden] {
  display: none !important;
}

/* ---------- 布局工具 ---------- */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.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: 16px;
  top: -64px;
  z-index: 2000;
  padding: 10px 18px;
  border-radius: 10px;
  background: #000;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- 顶部状态条 ---------- */
.topbar {
  background: var(--ink);
  color: #e8e7df;
  font-size: 13px;
  line-height: 1.6;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  padding-block: 6px;
}

.topbar p {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.topbar b {
  color: var(--yellow);
  font-weight: 800;
}

.topbar time {
  color: #fff;
  font-weight: 700;
}

.topbar-link {
  flex: none;
  color: #fff;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  padding-bottom: 1px;
  white-space: nowrap;
}

.topbar-link:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}

.pulse {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 22, 38, 0.22);
}

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-size: 21px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--red-text);
}

.logo-mark {
  display: block;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: 0 5px 16px rgba(255, 22, 38, 0.26);
  transition: transform 0.3s var(--ease);
}

.logo-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.logo-text {
  color: var(--red-text);
  font-weight: 800;
}

.logo-text b {
  color: var(--ink);
  font-weight: 900;
}

.logo:hover .logo-mark {
  transform: rotate(-8deg);
}

.logo--light {
  color: #fff;
}

.logo--light .logo-text {
  color: #fff;
}

.logo--light .logo-text b {
  color: var(--yellow);
}

.logo--light .logo-mark {
  box-shadow: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  color: #3a3a35;
  transition: background 0.18s, color 0.18s;
}

.main-nav a:hover {
  background: var(--paper-2);
  color: var(--red-text);
}

.main-nav a[aria-current="page"] {
  background: var(--ink);
  color: #fff;
}

.header-cta {
  margin-left: 6px;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #111;
  border-radius: 2px;
  transition: transform 0.22s var(--ease), opacity 0.22s;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 10, 10, 0.38);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s;
}

body.nav-open .nav-backdrop {
  opacity: 1;
  visibility: visible;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 14px 26px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s,
    background 0.18s, color 0.18s, border-color 0.18s;
}

.btn-primary {
  background: var(--red);
  color: #000;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -10px rgba(255, 22, 38, 0.6);
}

.btn-primary:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

.btn-secondary {
  background: var(--teal);
  color: #000;
}

.btn-secondary:hover {
  background: #cf0010;
  color: #fff;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border-color: #000;
  color: #000;
}

.btn-ghost:hover {
  background: #000;
  color: #fff;
}

.btn-sm {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 14px;
  font-size: 14px;
}

.arw {
  transition: transform 0.18s var(--ease);
}

.btn:hover .arw {
  transform: translateX(3px);
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 6vw, 78px) clamp(44px, 6vw, 74px);
  background:
    radial-gradient(58% 68% at 90% 4%, rgba(251, 255, 39, 0.5), transparent 62%),
    radial-gradient(38% 46% at 2% 96%, rgba(73, 235, 210, 0.18), transparent 72%),
    var(--paper);
}

.hero-word {
  position: absolute;
  right: -1.5%;
  bottom: -4%;
  z-index: 0;
  font-size: clamp(92px, 17vw, 228px);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.07);
  white-space: nowrap;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(280px, 0.68fr);
  gap: clamp(28px, 4vw, 54px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--red-text);
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--red);
}

.hero h1 {
  margin-top: 18px;
  max-width: 16em;
  font-size: clamp(2.1rem, 4.8vw, 3.95rem);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.022em;
}

.mark {
  padding: 0 0.06em;
  color: var(--ink);
  background: linear-gradient(
    180deg,
    transparent 60%,
    var(--yellow) 60%,
    var(--yellow) 94%,
    transparent 94%
  );
}

.lead {
  margin-top: 22px;
  max-width: 53ch;
  font-size: clamp(16px, 1.5vw, 17.5px);
  line-height: 1.9;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  font-weight: 700;
  color: #4a4a44;
}

.hero-chips li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-chips svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--teal-ink);
}

.hero-card {
  position: relative;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 22px 70px -26px rgba(112, 102, 50, 0.5);
  transform: rotate(1.4deg);
  transition: transform 0.35s var(--ease);
}

.hero-card:hover {
  transform: rotate(0);
}

.hc-sticker {
  position: absolute;
  top: -15px;
  right: 20px;
  padding: 5px 13px;
  border: 2px solid #000;
  border-radius: 999px;
  background: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  box-shadow: 2px 2px 0 #000;
  transform: rotate(-3deg);
}

.hc-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--red-text);
}

.hc-num {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
  font-size: clamp(62px, 7.2vw, 84px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.hc-num small {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.hc-sub {
  margin-top: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: #3d3d37;
}

.hc-dots {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 18px;
}

.hc-dots i {
  height: 14px;
  border-radius: 4px;
  background: var(--teal);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.hc-dots i:nth-child(3n) {
  background: var(--yellow);
}

.hc-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- 数据条 ---------- */
.stats {
  border-block: 1px solid var(--line);
  background: var(--paper-2);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 26px 8px;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  border-left: 0;
}

.stat-num {
  display: block;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #4a4a44;
}

/* ---------- 通用区块 ---------- */
.section {
  padding-block: clamp(52px, 7vw, 92px);
}

.section--alt {
  background: var(--paper-2);
}

.section--tight {
  padding-block: clamp(40px, 5vw, 64px);
}

.section-head {
  max-width: 820px;
  margin-bottom: clamp(26px, 3.6vw, 42px);
}

.section-head h2 {
  margin-top: 12px;
  font-size: clamp(1.68rem, 3.2vw, 2.5rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.022em;
}

.section-head p {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted);
}

.section-head a {
  font-weight: 700;
  border-bottom: 1.5px solid var(--red);
}

.section-head a:hover {
  color: var(--red-text);
}

.type-note {
  max-width: 72ch;
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

/* ---------- 简介 ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 0.58fr);
  gap: clamp(26px, 4vw, 52px);
  align-items: start;
}

.prose p {
  margin-bottom: 18px;
  font-size: 16.5px;
  line-height: 1.95;
  color: #33332e;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose strong {
  font-weight: 800;
  background: linear-gradient(
    180deg,
    transparent 64%,
    rgba(251, 255, 39, 0.9) 64%,
    rgba(251, 255, 39, 0.9) 96%,
    transparent 96%
  );
  padding: 0 2px;
}

.quote-card {
  padding: 26px;
  border: 1px solid #e7dfb7;
  border-radius: var(--radius-md);
  background: var(--cream);
  box-shadow: var(--shadow-card);
}

.quote-card .qmark {
  display: block;
  font-size: 46px;
  font-weight: 900;
  line-height: 0.7;
  color: var(--red);
}

.quote-card blockquote {
  margin: 12px 0 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.quote-card .qlabel {
  display: block;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #ded4a4;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #7d7650;
}

/* ---------- 入口列表 ---------- */
.mirror-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 28px;
  margin-bottom: 22px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #4a4a44;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

.legend .lg-hot {
  background: var(--yellow);
}

.legend .lg-alt {
  background: var(--teal);
}

.nocopy-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
  padding: 12px 16px;
  border: 1px solid #e8e2b8;
  border-radius: 14px;
  background: #fffce4;
  font-size: 13px;
  line-height: 1.7;
  color: #5b5940;
}

.nocopy-note svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 3px;
  color: #8a8146;
}

.mirror-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(318px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mirror-card {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  transition: transform 0.25s var(--ease), box-shadow 0.25s,
    border-color 0.25s;
}

.mirror-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}

.mc-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.mc-no {
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(0, 0, 0, 0.55);
  font-variant-numeric: tabular-nums;
}

.mc-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
}

.tag-hot {
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: var(--yellow);
  color: #000;
}

.tag-alt {
  border: 1px solid #c9f3e9;
  background: #eefbf7;
  color: var(--teal-ink);
}

.mc-title {
  margin-top: 12px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.mc-addr {
  margin-top: 10px;
}

.mc-domain {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.mc-url {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.65;
  color: #77776e;
  overflow-wrap: anywhere;
}

.lock {
  width: 12px;
  height: 12px;
  flex: none;
  color: #a8a89c;
}

.mc-note {
  flex: 1;
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.8;
  color: #4d4d46;
}

.mc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: #6f6f66;
}

.mc-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mc-check::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-dot);
}

.go-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 2px;
  border-bottom: 2px solid var(--red);
  font-size: 13.5px;
  font-weight: 900;
  color: var(--ink);
  transition: color 0.18s;
}

.go-link:hover {
  color: var(--red-text);
}

.go-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.18s var(--ease);
}

.go-link:hover svg {
  transform: translateX(3px);
}

/* 禁止复制区域：去掉选中高亮与长按菜单，视觉上保持可读 */
.no-copy {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  cursor: default;
}

.no-copy::selection,
.no-copy *::selection {
  background: transparent;
  color: inherit;
}

/* ---------- 原则 / 步骤 ---------- */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.principle {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.principle .p-no {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--red-text);
}

.principle h3 {
  margin-top: 10px;
  font-size: 18.5px;
  line-height: 1.45;
}

.principle p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--red-text);
}

.step h3 {
  margin-top: 12px;
  font-size: 19px;
  line-height: 1.4;
}

.step p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

/* ---------- 表格 ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  text-align: left;
}

th {
  padding: 16px 20px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

td {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.75;
  vertical-align: top;
  color: #3a3a34;
}

tbody tr:nth-child(even) {
  background: #fbfaf4;
}

td:first-child {
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.table-hint {
  display: none;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- 安全面板 ---------- */
.panel-dark {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  border-radius: clamp(26px, 4vw, 50px);
  background: var(--ink);
  color: #f4f3ec;
}

.panel-dark::after {
  content: "安全";
  position: absolute;
  right: -8px;
  bottom: -66px;
  font-size: clamp(120px, 18vw, 220px);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.09);
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

.panel-dark .eyebrow {
  color: var(--yellow);
}

.panel-dark .eyebrow::before {
  background: var(--yellow);
}

.panel-dark h2 {
  margin-top: 12px;
  font-size: clamp(1.68rem, 3.2vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.022em;
  color: #fff;
}

.panel-dark .panel-lead {
  max-width: 60ch;
  margin-top: 14px;
  font-size: 15.5px;
  line-height: 1.9;
  color: #b9b7ab;
}

.safety-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
  margin-top: 30px;
}

.safety-item {
  display: flex;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.85;
  color: #dedcd2;
}

.safety-item .ic {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  margin-top: 3px;
  border-radius: 50%;
  background: rgba(73, 235, 210, 0.14);
  color: var(--teal);
}

.safety-item .ic svg {
  width: 13px;
  height: 13px;
}

.not-provided {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.not-provided span {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 12.5px;
  color: #b9b7ab;
  text-decoration: line-through;
}

.not-provided .np-label {
  padding-left: 0;
  border-color: transparent;
  color: var(--yellow);
  font-weight: 800;
  text-decoration: none;
}

/* ---------- 复检与日志 ---------- */
.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.method-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.method-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.method-item .m-dot {
  width: 10px;
  height: 10px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--red);
}

.method-item b {
  display: block;
  font-size: 15.5px;
}

.method-item p {
  margin-top: 4px;
  font-size: 13.8px;
  line-height: 1.8;
  color: var(--muted);
}

.log-card {
  padding: 26px;
  border: 1px solid #e7dfb7;
  border-radius: var(--radius-md);
  background: var(--cream);
}

.log-card h3 {
  font-size: 17px;
  letter-spacing: -0.01em;
}

.log-list {
  margin: 18px 0 0 6px;
  padding: 0 0 0 0;
  border-left: 2px dashed #d9cfa0;
  list-style: none;
}

.log-item {
  position: relative;
  padding: 0 0 18px 20px;
}

.log-item:last-child {
  padding-bottom: 0;
}

.log-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--cream);
}

.log-date {
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--red-text);
}

.log-item p {
  margin-top: 4px;
  font-size: 13.8px;
  line-height: 1.8;
  color: #41413a;
}

.log-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed #ded4a4;
  font-size: 12.5px;
  font-weight: 700;
  color: #7d7650;
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 10px;
  max-width: 940px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq details[open] {
  border-color: #cbc7b6;
  box-shadow: var(--shadow-card);
}

.faq summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--red-text);
}

.faq summary::after {
  content: "+";
  margin-left: auto;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  color: var(--red-text);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .answer {
  padding: 0 22px 20px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}

.faq .answer p {
  margin-bottom: 10px;
}

.faq .answer p:last-child {
  margin-bottom: 0;
}

/* ---------- 收尾区 ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 56px);
  border: 1px solid #e7dfb7;
  border-radius: var(--radius-xl);
  background: var(--cream);
}

.cta-band h2 {
  max-width: 20em;
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  line-height: 1.25;
  letter-spacing: -0.022em;
}

.cta-band p {
  max-width: 58ch;
  margin-top: 14px;
  font-size: 15.5px;
  line-height: 1.9;
  color: #5b5741;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.related a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  font-size: 14.5px;
  font-weight: 800;
  transition: border-color 0.18s, transform 0.18s var(--ease);
}

.related a:hover {
  border-color: #000;
  transform: translateY(-2px);
}

.related svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--red-text);
}

.rel-body {
  display: grid;
  gap: 2px;
}

.rel-body b {
  font-size: 14.5px;
  font-weight: 800;
}

.rel-body small {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.related a:hover .rel-body small {
  color: #4a4a44;
}

.update-line {
  margin-top: 26px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- 页脚 ---------- */
.site-footer {
  padding-top: clamp(40px, 6vw, 64px);
  background: var(--ink);
  color: #cfcdc3;
  font-size: 14px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand p {
  max-width: 36ch;
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 1.85;
  color: #a9a79d;
}

.footer-note {
  font-size: 12.5px !important;
  color: #8a887e !important;
}

.footer-col h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #8a887e;
}

.footer-col h2::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--red);
}

.footer-col ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  font-size: 13.5px;
  color: #d8d6cc;
}

.footer-col a:hover {
  color: var(--yellow);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 44px;
  padding: 20px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12.5px;
  color: #8a887e;
}

.ad-slot {
  display: none;
}

.ad-slot--on {
  display: block;
  margin-top: 32px;
}

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s, background 0.18s, color 0.18s;
}

.back-top.is-show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-top:hover {
  background: var(--red);
  border-color: transparent;
  color: #000;
}

.back-top svg {
  width: 20px;
  height: 20px;
}

/* ---------- 内页头 ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(32px, 5vw, 56px) 0;
  background:
    radial-gradient(46% 70% at 92% 0%, rgba(251, 255, 39, 0.36), transparent 66%),
    var(--paper);
}

.page-hero h1 {
  max-width: 20em;
  font-size: clamp(1.9rem, 4.1vw, 3.1rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.022em;
}

.page-hero .lead {
  margin-top: 16px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 12.5px;
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--red-text);
  text-decoration: underline;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--muted);
}

.meta-line span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-line span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
}

/* ---------- 文章排版 ---------- */
.article {
  max-width: 840px;
}

.article h2 {
  margin: 2.1em 0 0.65em;
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  scroll-margin-top: 100px;
}

.article h2:first-child {
  margin-top: 0;
}

.article h3 {
  margin: 1.7em 0 0.5em;
  font-size: 1.16rem;
  line-height: 1.45;
}

.article p {
  margin-bottom: 1.15em;
  font-size: 16.5px;
  line-height: 1.95;
  color: #33332e;
}

.article ul,
.article ol {
  margin: 0 0 1.25em;
  padding-left: 1.35em;
  color: #33332e;
}

.article li {
  margin: 0.45em 0;
  font-size: 16px;
  line-height: 1.9;
}

.article a {
  font-weight: 700;
  border-bottom: 1.5px solid var(--red);
}

.article a:hover {
  color: var(--red-text);
}

.article strong {
  font-weight: 800;
  background: linear-gradient(
    180deg,
    transparent 64%,
    rgba(251, 255, 39, 0.85) 64%,
    rgba(251, 255, 39, 0.85) 96%,
    transparent 96%
  );
  padding: 0 2px;
}

.article .updated {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.note {
  margin: 22px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--red);
  border-radius: 0 14px 14px 0;
  background: var(--cream);
  font-size: 14.5px;
  line-height: 1.85;
  color: #4c4832;
}

.note b {
  color: #000;
}

.toc {
  margin: 26px 0 8px;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-2);
}

.toc h2 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 36px;
  font-size: 14px;
}

.toc li {
  margin: 0.35em 0;
  break-inside: avoid;
}

.toc a {
  border-bottom: 0;
  font-weight: 600;
}

.toc a:hover {
  color: var(--red-text);
  border-bottom: 1.5px solid var(--red);
}

.article-cta {
  margin-top: 36px;
}

.article-cta .cta-band h2 {
  margin-top: 10px;
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.article-cta .cta-band p {
  font-size: 14.5px;
  color: #5b5741;
}

.article .principles {
  margin: 24px 0 8px;
}

.article .principle h3 {
  margin-top: 8px;
  font-size: 18px;
}

.article .principle p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- 中间页 ---------- */
.jump {
  padding-block: clamp(36px, 6vw, 72px) clamp(48px, 6vw, 80px);
  background:
    radial-gradient(52% 60% at 88% 0%, rgba(251, 255, 39, 0.42), transparent 64%),
    radial-gradient(40% 40% at 6% 100%, rgba(73, 235, 210, 0.16), transparent 70%),
    var(--paper);
}

.jump-wrap {
  max-width: 780px;
}

.jump h1 {
  margin-top: 14px;
  font-size: clamp(1.95rem, 4.4vw, 2.9rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.022em;
}

.jump-lead {
  max-width: 54ch;
  margin-top: 16px;
  font-size: 15.5px;
  line-height: 1.9;
  color: var(--muted);
}

.jump-lead strong {
  color: var(--ink);
  font-weight: 800;
}

.jump-card {
  margin-top: 26px;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.jump-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--red-text);
}

.jump-domain {
  margin-top: 8px;
  font-size: clamp(21px, 3.4vw, 27px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.jump-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.jump-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.jump-hint {
  margin-top: 14px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.jump-error {
  margin-top: 26px;
  padding: 22px 24px;
  border: 1px solid #f0c8c8;
  border-radius: var(--radius-md);
  background: #fff5f5;
  font-size: 14.5px;
  line-height: 1.8;
  color: #7a2020;
}

.jump-error a {
  font-weight: 800;
  text-decoration: underline;
}

.jump-safety {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.8;
  color: #4a4a44;
}

.jump-safety li {
  display: flex;
  gap: 10px;
}

.jump-safety svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 4px;
  color: var(--teal-ink);
}

.jump-fallback {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--muted);
}

.jump-fallback a {
  font-weight: 800;
  color: var(--ink);
  border-bottom: 1.5px solid var(--red);
}

.jump-noscript {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #e0d6a8;
  border-radius: 12px;
  background: #fffbdc;
  font-size: 13.5px;
  line-height: 1.7;
}

/* ---------- 404 ---------- */
.error-page {
  padding-block: clamp(48px, 8vw, 100px);
  background:
    radial-gradient(46% 60% at 80% 10%, rgba(251, 255, 39, 0.45), transparent 62%),
    var(--paper);
  overflow: hidden;
}

.error-code {
  font-size: clamp(100px, 22vw, 200px);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 2px #000;
}

.error-page h1 {
  margin-top: 18px;
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  line-height: 1.3;
}

.error-page p {
  max-width: 52ch;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.9;
}

/* ---------- 内页补充 ---------- */
.section-head--flush {
  margin-bottom: 0;
}

.intro-copy h2 {
  max-width: 22em;
  margin-top: 12px;
  font-size: clamp(1.68rem, 3.2vw, 2.4rem);
  line-height: 1.22;
  letter-spacing: -0.022em;
}

.intro-copy .prose {
  margin-top: 22px;
}

.list-foot {
  max-width: 72ch;
  margin-top: 22px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- 动效 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s var(--ease);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* 不支持文字描边时的兜底：避免大号空心字完全透明 */
@supports not ((-webkit-text-stroke: 1px #000) or (text-stroke: 1px #000)) {
  .mc-no {
    color: rgba(0, 0, 0, 0.3);
  }

  .hero-word {
    color: rgba(0, 0, 0, 0.05);
  }

  .error-code {
    color: rgba(0, 0, 0, 0.12);
  }

  .panel-dark::after {
    color: rgba(255, 255, 255, 0.06);
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 420px;
    transform: none;
  }

  .hero-word {
    right: -6%;
    bottom: 2%;
    opacity: 0.7;
  }

  .footer-top {
    grid-template-columns: 1.4fr 1fr 1fr;
    row-gap: 34px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 10px);
    z-index: 120;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.22s, transform 0.22s var(--ease),
      visibility 0.22s;
  }

  body.nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .main-nav a {
    padding: 13px 16px;
    border-radius: 16px;
    font-size: 16px;
  }

  .main-nav a[aria-current="page"] {
    background: #f1f0ea;
    color: var(--red-text);
  }

  .header-cta {
    display: none;
  }

  .split,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .principles,
  .steps,
  .related {
    grid-template-columns: 1fr;
  }

  .principle,
  .step {
    padding: 22px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .topbar-link {
    display: none;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 16px;
  }

  .topbar {
    font-size: 12px;
  }

  .topbar-inner {
    min-height: 38px;
  }

  .hero {
    padding-block: 32px 40px;
  }

  .hero h1 {
    margin-top: 14px;
  }

  .lead {
    margin-top: 16px;
    line-height: 1.85;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .hero-word {
    font-size: 96px;
    right: -12%;
    bottom: 1%;
    opacity: 0.6;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    padding: 20px 6px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .stat:nth-child(n + 3) {
    border-bottom: 0;
  }

  .stat-label {
    font-size: 12px;
  }

  .section {
    padding-block: 46px;
  }

  .mirror-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mirror-card {
    padding: 20px 18px 16px;
  }

  .mc-title {
    font-size: 18px;
  }

  .safety-grid {
    grid-template-columns: 1fr;
  }

  .panel-dark {
    border-radius: 26px;
  }

  .table-hint {
    display: block;
  }

  table {
    min-width: 640px;
  }

  th,
  td {
    padding: 13px 15px;
  }

  .faq summary {
    padding: 16px 18px;
    font-size: 15px;
  }

  .faq .answer {
    padding: 0 18px 18px;
    font-size: 14.5px;
  }

  .cta-band {
    border-radius: 26px;
  }

  .cta-actions .btn {
    flex: 1 1 auto;
  }

  .jump-actions .btn {
    flex: 1 1 auto;
  }

  .jump-card {
    border-radius: 26px;
  }

  .toc {
    padding: 18px 20px;
  }

  .toc ol {
    columns: 1;
  }

  .article p,
  .article li {
    font-size: 15.5px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 26px 20px;
  }

  .footer-bottom {
    margin-top: 32px;
    padding-bottom: 22px;
  }

  .back-top {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 420px) {
  .hero-chips {
    gap: 6px 12px;
    font-size: 12.5px;
  }

  .footer-top {
    gap: 24px 16px;
  }

  .mc-foot {
    flex-wrap: wrap;
  }
}

/* ---------- 窄屏首屏微调 ---------- */
.nw {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.72rem;
    line-height: 1.22;
  }
}
