/* ==========================================================================
   archiveofourown镜像 — 全站样式
   基调：白底、粉色强调、20px 圆角卡片、1px 细边框分层
   断点：1200 / 1024 / 820 / 600 / 380
   ========================================================================== */

:root {
  --primary: #eb6ea5;
  --primary-dark: #e0659c;
  --primary-darker: #d65b93;
  --primary-ink: #a83a6b;
  --accent-red: #d0324d;
  --pink-50: #fdf2f7;
  --pink-100: #fbe3ee;
  --pink-200: #f3b8d0;

  --bg: #ffffff;
  --surface: #ededed;
  --surface-soft: #f7f7f7;

  --text: #333333;
  --text-2: #666666;
  --muted: #6f7579;
  --border: #dddddd;
  --border-soft: #eeeeee;

  --link: #0062b1;
  --link-hover: #eb6ea5;
  --focus: #ffc0cb;

  --radius-sm: 13px;
  --radius-md: 20px;
  --radius-full: 50px;

  --container: 1200px;
  --font-sans: "YakuHanJPs", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ease: ease;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3,
h4 {
  line-height: 1.3;
  letter-spacing: 0;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

button {
  font: inherit;
  color: inherit;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
}

::selection {
  background: #fbd5e5;
  color: #333;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* 跳转链接（无障碍） */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #fff;
  color: var(--text);
  padding: 12px 20px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ==========================================================================
   页头
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 80px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border);
  transition: height 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.header.is-scrolled {
  height: 60px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  min-height: 44px;
}

.logo:hover {
  color: var(--text);
  text-decoration: none;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  transition: width 0.4s var(--ease), height 0.4s var(--ease), border-radius 0.4s var(--ease);
}

.header.is-scrolled .logo__mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
}

.logo__text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.logo__accent {
  color: var(--primary-ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 10px 12px;
  color: var(--text);
  font-size: 15px;
  border-radius: 8px;
  min-height: 44px;
  line-height: 24px;
  text-decoration: none;
}

.nav__link:hover {
  color: var(--primary-ink);
  text-decoration: none;
}

.nav__link[aria-current="page"] {
  color: var(--primary-ink);
  font-weight: 500;
}

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  place-items: center;
  align-content: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   按钮
   ========================================================================== */

.c-button_primary,
.c-button_secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.c-button_primary {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: #fff;
}

.c-button_primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.c-button_primary:active {
  background: var(--primary-darker);
  border-color: var(--primary-darker);
  transform: translateY(0);
}

.c-button_primary[aria-disabled="true"],
.c-button_primary.is-disabled {
  background: var(--surface);
  border-color: var(--border);
  color: var(--muted);
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

.c-button_secondary {
  background: #fff;
  border: 1px solid var(--text);
  color: var(--text);
}

.c-button_secondary:hover {
  background: var(--surface-soft);
  border-color: var(--text);
  color: var(--text);
  text-decoration: none;
}

/* ==========================================================================
   首屏
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0;
  background:
    radial-gradient(900px 400px at 50% -18%, #fdeef5 0%, rgba(255, 255, 255, 0) 68%),
    #fff;
}

.hero__inner {
  max-width: 880px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--primary-ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex: none;
}

.hero__title {
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--text);
}

.hero__title-accent {
  display: block;
  margin-top: 4px;
  color: var(--accent-red);
}

.hero__lead {
  margin: 20px auto 0;
  max-width: 36em;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-2);
}

.hero__cta {
  margin-top: 28px;
  padding: 14px 28px;
  font-size: 16px;
}

.hero__cta span {
  transition: transform 0.2s var(--ease);
}

.hero__cta:hover span {
  transform: translateX(3px);
}


/* ==========================================================================
   通用区块
   ========================================================================== */

.section {
  padding: 48px 0;
}

.section--soft {
  background: var(--surface-soft);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.section__head {
  max-width: 760px;
  margin-bottom: 32px;
}

.section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section__head .eyebrow {
  margin-bottom: 12px;
}

.section__head h2 {
  font-size: clamp(24px, 3vw, 31px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.section__desc {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-2);
}

.section__foot {
  margin-top: 24px;
  font-size: 15px;
  color: var(--text-2);
}

.section__foot a {
  font-weight: 500;
}

/* ==========================================================================
   镜像列表
   ========================================================================== */

.mirror-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  -webkit-user-select: none;
  user-select: none;
}

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

.mirror-card:hover {
  border-color: #f0c6d8;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.mirror-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mirror-card__no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.mirror-card__tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--pink-50);
  color: var(--primary-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  white-space: nowrap;
}

.mirror-card__name {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.mirror-card__url {
  padding: 8px 12px;
  border: 1px solid #f0f0f0;
  border-radius: var(--radius-sm);
  background: #f7f7f7;
  color: #555;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  -webkit-user-select: none;
  user-select: none;
}

.mirror-card__desc {
  flex: 1;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
}

.mirror-card__go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid var(--primary);
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--primary-ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.mirror-card__go:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  text-decoration: none;
}

.mirror-card__go:active {
  background: var(--primary-darker);
  border-color: var(--primary-darker);
  color: #fff;
}

.mirror-card__go span {
  transition: transform 0.2s var(--ease);
}

.mirror-card__go:hover span {
  transform: translateX(3px);
}

.list-note {
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* ==========================================================================
   表格
   ========================================================================== */

.table-wrap {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}

.data-table th {
  background: #fafafa;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.data-table td {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
}

.data-table td:first-child {
  color: var(--text);
  font-weight: 500;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.table-caption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* ==========================================================================
   自查清单
   ========================================================================== */

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 32px;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 34px;
  font-size: 15px;
  line-height: 1.8;
  color: #444;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 3px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pink-50);
  color: var(--primary-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.checklist strong {
  color: var(--text);
  font-weight: 500;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq__list {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease);
}

.faq details[open] {
  border-color: #f0c6d8;
}

.faq summary {
  position: relative;
  padding: 18px 48px 18px 20px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-sm);
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-ink);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
}

.faq summary:hover {
  color: var(--primary-ink);
}

.faq details p {
  padding: 0 20px 18px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.85;
}

.faq details p + p {
  padding-top: 0;
}

/* ==========================================================================
   卡片网格
   ========================================================================== */

.grid {
  display: grid;
  gap: 24px;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

.info-card__label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--primary-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.info-card h3 {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 700;
}

.info-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-2);
}

.mini-list {
  display: grid;
  gap: 8px;
  list-style: none;
}

.mini-list li {
  position: relative;
  padding-left: 16px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-2);
}

.mini-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}

/* ==========================================================================
   内页
   ========================================================================== */

.page-head {
  padding: 40px 0 24px;
  background:
    radial-gradient(700px 260px at 92% 0%, #fdeef5 0%, rgba(255, 255, 255, 0) 70%),
    #fff;
  border-bottom: 1px solid var(--border-soft);
}

.breadcrumb {
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: #bbb;
}

.breadcrumb a {
  color: var(--text-2);
}

.breadcrumb a:hover {
  color: var(--primary-ink);
}

.page-head h1 {
  max-width: 900px;
  font-size: clamp(27px, 3.6vw, 36px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.page-head__lead {
  max-width: 760px;
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-2);
}

.page-head__meta {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

.prose {
  max-width: 860px;
}

.prose h2 {
  margin: 40px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
  font-size: clamp(21px, 2.4vw, 24px);
  font-weight: 700;
  line-height: 1.4;
}

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

.prose h3 {
  margin: 28px 0 10px;
  font-size: 18px;
  font-weight: 700;
}

.prose p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.9;
  color: #3f3f3f;
}

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

.prose ul,
.prose ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: #3f3f3f;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.85;
}

.prose li::marker {
  color: var(--primary);
}

.prose strong {
  font-weight: 700;
  color: var(--text);
}

.prose a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.callout {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--pink-50);
  font-size: 15px;
  line-height: 1.85;
  color: #5c3f4c;
}

.callout strong {
  color: var(--primary-ink);
}

.toc {
  max-width: 860px;
  margin-bottom: 32px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
}

.toc__title {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 24px;
  padding-left: 20px;
  list-style: decimal;
}

.toc li {
  font-size: 15px;
  line-height: 1.8;
}

.toc li::marker {
  color: var(--primary);
}

.related {
  max-width: 860px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}

.related__title {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 700;
}

.related__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
}

.related__links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.related__links a:hover {
  border-color: var(--primary);
  color: var(--primary-ink);
  text-decoration: none;
}

/* ==========================================================================
   中间页
   ========================================================================== */

.jump {
  padding: 40px 0 56px;
  background:
    radial-gradient(700px 300px at 50% -10%, #fdeef5 0%, rgba(255, 255, 255, 0) 70%),
    #fff;
}

.jump__inner {
  max-width: 620px;
  margin: 0 auto;
}

.jump__card {
  margin-top: 24px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.jump__label {
  margin-bottom: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.jump__domain {
  font-size: clamp(22px, 4vw, 27px);
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
  color: var(--text);
}

.jump__url {
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.jump__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.jump__actions .c-button_primary,
.jump__actions .c-button_secondary {
  flex: 1 1 auto;
  min-width: 150px;
}

.jump__home {
  margin-top: 20px;
  font-size: 14px;
  text-align: center;
}

.jump__home a {
  color: var(--text-2);
}

.jump__home a:hover {
  color: var(--primary-ink);
}

/* ==========================================================================
   404
   ========================================================================== */

.notfound {
  padding: 80px 0;
  text-align: center;
}

.notfound__code {
  color: var(--primary-ink);
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.2em;
}

.notfound h1 {
  margin-top: 12px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
}

.notfound p {
  max-width: 560px;
  margin: 14px auto 0;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.85;
}

.notfound__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

/* ==========================================================================
   页脚
   ========================================================================== */

.footer {
  padding: 48px 0 24px;
  background: #fafafa;
  border-top: 1px solid var(--border);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer__logo {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.footer__logo span {
  color: var(--primary-ink);
}

.footer__desc {
  margin-top: 12px;
  max-width: 34em;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-2);
}

.footer__meta {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

.footer__title {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.footer ul {
  list-style: none;
}

.footer__col li {
  margin-bottom: 8px;
}

.footer__col a {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.7;
}

.footer__col a:hover {
  color: var(--primary-ink);
}

.footer__plain li {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.footer__bottom a {
  color: var(--muted);
}

.footer__bottom a:hover {
  color: var(--primary-ink);
}

/* ==========================================================================
   返回顶部
   ========================================================================== */

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--primary-ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease),
    background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.to-top:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ==========================================================================
   平板
   ========================================================================== */

@media (max-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   手机 / 窄屏导航
   ========================================================================== */

@media (max-width: 820px) {
  .header {
    height: 64px;
  }

  .header.is-scrolled {
    height: 56px;
  }

  .logo__mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .logo__text {
    font-size: 17px;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .nav.is-open {
    display: flex;
  }

  .nav__link {
    padding: 12px;
    border-radius: 8px;
  }

  .nav__link[aria-current="page"] {
    background: var(--pink-50);
  }

  .nav__link[aria-current="page"]::after {
    display: none;
  }

  .hero {
    padding: 40px 0 44px;
  }

  .hero__lead {
    font-size: 16px;
  }

  .mirror-list,
  .grid--2,
  .grid--3,
  .grid--4,
  .checklist,
  .toc ol {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 40px 0;
  }

  .table-wrap {
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table thead {
    display: none;
  }

  .data-table tr {
    margin-bottom: 12px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
  }

  .data-table tr:last-child {
    margin-bottom: 0;
  }

  .data-table td {
    display: flex;
    gap: 12px;
    padding: 4px 0;
    border-bottom: 0;
    font-size: 15px;
  }

  .data-table td::before {
    content: attr(data-label);
    flex: none;
    width: 64px;
    color: var(--muted);
    font-size: 13px;
  }

  .data-table td:first-child {
    padding-bottom: 8px;
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .to-top {
    right: 16px;
    bottom: 16px;
  }

  .jump__card {
    padding: 24px 20px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .header__inner {
    gap: 8px;
  }

  .logo {
    gap: 8px;
  }

  .logo__text {
    font-size: 16px;
  }

  .hero__title {
    font-size: 27px;
  }

  .hero__cta {
    width: 100%;
  }

  .page-head {
    padding: 28px 0 20px;
  }

  .page-head h1 {
    font-size: 25px;
  }

  .section__head {
    margin-bottom: 24px;
  }

  .mirror-card {
    padding: 16px;
  }

  .mirror-card__name {
    font-size: 17px;
  }

  .jump__actions {
    flex-direction: column;
  }

  .jump__actions .c-button_primary,
  .jump__actions .c-button_secondary {
    width: 100%;
  }

  .footer {
    padding-top: 40px;
  }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__bottom {
    margin-top: 32px;
  }

  .notfound {
    padding: 56px 0;
  }
}

@media (max-width: 380px) {
  .logo__text {
    font-size: 15px;
  }

  .hero__title {
    font-size: 24px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   补充：代码片段、中间页标题、FAQ 提示块
   ========================================================================== */

.prose code {
  padding: 1px 6px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: #f7f7f7;
  color: #444;
  font-family: var(--font-mono);
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.jump .eyebrow {
  margin-bottom: 8px;
}

.callout--faq {
  max-width: 900px;
  margin-top: 32px;
}
