:root {
  --font-serif: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Serif CN", "Bodoni Moda", "Noto Serif CJK SC", "Songti SC", serif;
  --wine: #990000;
  --wine-dark: #6d0012;
  --night: #130f10;
  --night-raised: #1d1719;
  --night-soft: #bfb5b1;
  --brass: #c9a46b;
  --ink: #151515;
  --ink-soft: #4a4a4a;
  --paper: #fbfaf8;
  --surface: #f2f2f2;
  --surface-warm: #f4eeee;
  --line: #d8d5d2;
  --white: #fff;
  --page: 74rem;
  --heading-content-gap: 2.25rem;
  --shadow: 0 0.875rem 2.5rem rgb(41 20 20 / 10%);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dot-grid: radial-gradient(rgb(75 52 48 / 8%) 1px, transparent 1px);
  --dot-grid-size: 1.125rem 1.125rem;
}

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

html {
  scroll-behavior: smooth;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: var(--dot-grid);
  background-size: var(--dot-grid-size);
  font-family: var(--font-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
}

p,
figure,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

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

a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgb(153 0 0 / 45%);
  outline-offset: 4px;
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: min(calc(100% - 2rem), var(--page));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  isolation: isolate;
  /* margin-bottom: -5.25rem; */
  padding: 0.75rem max(1rem, calc((100vw - 76rem) / 2));
  /* background: transparent; */
}

.header-shell {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  width: min(100%, 74rem);
  min-height: 3.75rem;
  margin-inline: auto;
  padding: 0.375rem 0.625rem 0.375rem 1rem;
  overflow: hidden;
  border: 1px solid rgb(44 37 34 / 9%);
  border-radius: 999px;
  background: rgb(255 255 255 / 72%);
  box-shadow:
    0 1.125rem 3.5rem -1.75rem rgb(41 20 20 / 28%),
    inset 0 1px 0 rgb(255 255 255 / 82%);
  backdrop-filter: blur(1.25rem) saturate(1.08);
  -webkit-backdrop-filter: blur(1.25rem) saturate(1.08);
}

.header-shell::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgb(255 255 255 / 48%),
    transparent 46%,
    rgb(255 255 255 / 18%)
  );
  pointer-events: none;
}

.header-shell > * {
  position: relative;
  z-index: 1;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  line-height: 0;
}

.brand img {
  width: min(8.5rem, 38vw);
  height: auto;
  flex: none;
}

.site-nav {
  display: flex;
  align-items: center;
  margin-inline: auto;
  gap: clamp(1.125rem, 2vw, 1.75rem);
  color: #514d4b;
  font-size: 0.8125rem;
  font-weight: 750;
  font-family: var(--font-serif);
}

.site-nav a,
.footer-nav a {
  transition: color 160ms ease;
}

.site-nav a:hover,
.footer-nav a:hover {
  color: var(--wine);
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-serif);
  white-space: nowrap;
}

.header-action {
  min-height: 2.5rem;
  padding-inline: 1.125rem;
  gap: 0.375rem;
  border-radius: 999px;
  color: var(--wine);
  border: 1px solid rgb(153 0 0 / 18%);
  background: rgb(255 255 255 / 56%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 62%);
  font-size: 0.8125rem;
}

.header-action svg {
  width: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.hero {
  position: relative;
  display: grid;
  min-height: clamp(36rem, 50vw, 40rem);
  grid-template-columns: minmax(18rem, 0.86fr) minmax(27rem, 1.14fr);
  overflow: hidden;
  padding: clamp(1.75rem, 3.25vw, 3.5rem) max(2rem, calc((100vw - 74rem) / 2))
    clamp(4.25rem, 7vw, 6.5rem);
  gap: clamp(2rem, 5vw, 6rem);
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 112%, rgb(153 0 0 / 13%), transparent 28rem),
    radial-gradient(circle at 68% 104%, rgb(201 164 107 / 15%), transparent 26rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  grid-column: 1;
  align-self: center;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero h1 {
  max-width: 36rem;
  margin-top: 1rem;
  color: var(--ink);
  font-size: clamp(2.65rem, 4.2vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
}

.hero h1 span {
  color: var(--wine);
}

.hero-intro {
  max-width: 33rem;
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.9;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  margin-top: 1.25rem;
  gap: 0.75rem;
}

.button {
  min-height: 3.125rem;
  padding-inline: 1.25rem;
  gap: 0.625rem;
  border: 1px solid transparent;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  transition:
    transform 180ms var(--ease-out),
    box-shadow 180ms var(--ease-out),
    background 180ms var(--ease-out),
    border-color 180ms var(--ease-out);
}

.button:hover,
.header-action:hover {
  transform: translateY(-2px);
}

.button svg {
  width: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-primary {
  color: var(--white);
  background: var(--wine);
  box-shadow: none;
}

.button-secondary {
  border-color: var(--line);
  color: var(--ink);
  background: var(--white);
}

/* Homepage introduction: an archive index rather than a simulated product screen. */
.hero {
  position: relative;
  isolation: isolate;
  display: block;
  min-height: 0;
  overflow: hidden;
  min-height: clamp(34rem, 43vw, 38rem);
  padding: clamp(2.5rem, 4vw, 4rem) 0 4rem;
  background: transparent;
}

.hero::before {
  content: none;
}

.hero-topic-strip {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  overflow: hidden;
  padding: 0.5rem 1.5rem;
  border-block: 1px solid rgb(153 0 0 / 16%);
  color: rgb(109 0 18 / 68%);
  background: rgb(255 255 255 / 72%);
  font-size: clamp(0.75rem, 0.9vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  white-space: nowrap;
}

.hero-topic-strip span::after {
  content: "·";
  margin-left: 0.75rem;
  color: rgb(153 0 0 / 42%);
}

.hero-topic-strip span:last-child::after {
  content: none;
}

.hero-layout {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  min-height: clamp(24rem, 29vw, 27rem);
  align-items: center;
  justify-content: center;
}

.hero-copy {
  display: block;
  width: min(100%, 44rem);
  grid-column: auto;
  text-align: center;
}

.hero-kicker {
  color: var(--wine);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero h1 {
  max-width: 38rem;
  margin: 1.25rem auto 0;
  font-size: clamp(2.65rem, 4.5vw, 4.35rem);
  line-height: 1.08;
}

.hero h1 span {
  display: inline-block;
}

.hero h1 .hero-title-ao3 {
  margin-right: 0.08em;
  font-size: 1.6em;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.8;
  vertical-align: -0.04em;
}

.hero-intro {
  max-width: 35rem;
  margin: 1.5rem auto 0;
  font-size: 1rem;
  line-height: 1.9;
}

.hero-actions {
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.hero-marks {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-marks i {
  position: absolute;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: rgb(153 0 0 / 18%);
}

.hero-marks i:nth-child(1) { top: 24%; left: 11%; }
.hero-marks i:nth-child(2) { top: 42%; right: 13%; width: 0.5rem; height: 0.5rem; }
.hero-marks i:nth-child(3) { bottom: 22%; left: 17%; width: 0.25rem; height: 0.25rem; }
.hero-marks i:nth-child(4) { bottom: 29%; right: 20%; width: 0.25rem; height: 0.25rem; }

.stats-strip {
  padding: 1.25rem 0;
  border-block: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
}

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

.stats-grid p {
  display: grid;
  justify-items: center;
  padding: 0.5rem 1rem;
  border-right: 1px solid var(--line);
  text-align: center;
}

.stats-grid p:last-child {
  border-right: 0;
}

.stats-grid strong {
  color: var(--wine);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.stats-grid span {
  margin-top: 0.25rem;
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-weight: 700;
}

.section {
  padding: clamp(5.5rem, 9vw, 7.5rem) 0 clamp(2.25rem, 3.5vw, 3.5rem);
}

.section[id] {
  scroll-margin-top: 5.5rem;
}

.section-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  max-width: none;
  margin: 0 0 clamp(2rem, 3.5vw, 2.75rem);
  column-gap: 1.25rem;
  row-gap: 0.35rem;
  margin-bottom: var(--heading-content-gap);
  text-align: left;
}

.section-heading.align-left {
  text-align: left;
}

.chapter-title {
  margin: 0;
  font-size: clamp(2.25rem, 3.6vw, 3.35rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

.closing-content h2 {
  margin: 0;
  font-size: clamp(2.6rem, 4.6vw, 4.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

.section-lead {
  max-width: min(100%, 30rem);
  margin: 0;
  color: #3b3533;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 700;
  line-height: 1.55;
  text-wrap: balance;
}

.section-heading > p:last-child:not(.section-lead) {
  flex-basis: 100%;
  max-width: 40rem;
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
  line-height: 1.85;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: start;
  column-gap: 7rem;
  row-gap: var(--heading-content-gap);
}

.about-grid .section-heading,
.search-layout .section-heading,
.safety-layout .section-heading,
.faq-layout .section-heading {
  grid-column: 1 / -1;
}

.about-grid .section-heading {
  margin-bottom: 0;
}

.about-copy {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  column-gap: clamp(2.5rem, 5vw, 5.5rem);
  border-radius: 1.5rem;
  background: rgb(255 255 255 / 84%);
  box-shadow: 0 0.375rem 0.75rem rgb(41 20 20 / 5%);
}

.about-copy > p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.85;
}

.about-points {
  margin: 0;
}

.about-points article {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  align-items: center;
  padding: 1.25rem 0;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.about-points article > b {
  display: block;
  color: var(--wine);
  font-family: Georgia, serif;
  font-size: 0.875rem;
  line-height: 1;
}

.about-points h3 {
  font-size: 1rem;
  margin-top: 0;
}

.about-points p {
  margin-top: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  line-height: 1.7;
}

.fandom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.fandom-grid article {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 12.5rem;
  align-content: space-between;
  padding: 1.25rem;
  gap: 0.75rem;
  overflow: hidden;
  border: 0;
  border-radius: 1.25rem;
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 0.375rem 0.75rem rgb(41 20 20 / 5%);
  transition:
    transform 180ms var(--ease-out),
    border-color 180ms var(--ease-out),
    background 180ms var(--ease-out);
}

.fandom-grid article:hover {
  transform: translateY(-0.25rem);
  background: #fff;
}

.category-icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 50%;
  color: var(--wine);
  background: var(--surface-warm);
  font-family: Georgia, "Songti SC", serif;
  font-size: 1.25rem;
  font-weight: 900;
}

.fandom-grid h3 {
  font-size: 1.0625rem;
}

.fandom-grid p {
  margin-top: 0.375rem;
  color: var(--ink-soft);
  font-size: 0.6875rem;
  line-height: 1.6;
}

.fandom-grid article > b {
  position: absolute;
  right: 0.625rem;
  bottom: 0.25rem;
  color: rgb(19 15 16 / 7%);
  font-family: "Source Han Serif CN", "Noto Serif CJK SC", serif;
  font-size: 4.75rem;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}

.search-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  column-gap: 6rem;
  row-gap: var(--heading-content-gap);
}

.search-layout .section-heading {
  margin-bottom: 0;
}

.search-copy {
  grid-column: 1;
  max-width: 34rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 1.5rem;
  background: rgb(255 255 255 / 82%);
  box-shadow: 0 0.375rem 0.75rem rgb(41 20 20 / 5%);
}

.search-copy > p {
  color: var(--ink-soft);
  line-height: 1.9;
}

.search-layout .tag-board {
  width: min(100%, 50rem);
  margin-left: auto;
  grid-column: 2;
}

.check-list {
  display: grid;
  margin-top: 2rem;
  gap: 0.875rem;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.8125rem;
}

.check-list span {
  display: grid;
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--wine);
  font-size: 0.625rem;
}

.tag-board {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transform: none;
  border: 0;
  border-radius: 1.5rem;
  background: var(--white);
  box-shadow: 0 0.5rem 1rem rgb(41 20 20 / 8%);
}

.tag-board-head,
.filter-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tag-board-head {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 900;
}

.tag-board-head b {
  padding: 0.35rem 0.625rem;
  border-radius: 999px;
  color: var(--wine);
  background: var(--surface-warm);
  font-size: 0.625rem;
}

.tag-field {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.625rem;
}

.tag-field small,
.tag-field strong {
  display: block;
}

.tag-field small {
  color: #888;
  font-size: 0.5625rem;
}

.tag-field strong {
  margin-top: 0.375rem;
  font-size: 0.75rem;
}

.tag-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.tag-pills {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  gap: 0.375rem;
}

.tag-pills span {
  padding: 0.35rem 0.625rem;
  border-radius: 999px;
  color: var(--wine);
  background: var(--surface-warm);
  font-size: 0.5625rem;
  font-weight: 800;
}

.filter-result {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.625rem;
  color: var(--white);
  background: var(--wine);
  font-size: 0.6875rem;
}

.filter-result span b {
  font-size: 1rem;
}

.filter-result i {
  font-style: normal;
  font-weight: 800;
}

.feature-section {
  position: relative;
  overflow: hidden;
}

.feature-section .chapter-title {
  color: var(--ink);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card {
  min-height: 27rem;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  border: 0;
  border-radius: 1.5rem;
  color: var(--ink);
  box-shadow: 0 0.375rem 0.75rem rgb(41 20 20 / 5%);
}

.feature-reader,
.feature-creator,
.feature-community {
  background: #fff;
}

.feature-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  color: #716a66;
  font-size: 0.625rem;
}

.feature-card-top b {
  color: var(--wine);
}

.feature-card h3 {
  margin-top: 3rem;
  font-size: 1.75rem;
  line-height: 1.3;
}

.feature-card > p {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  line-height: 1.8;
}

.feature-card ul {
  display: grid;
  margin-top: 1.75rem;
  gap: 0.25rem;
}

.feature-card li {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  color: #373230;
  font-size: 0.75rem;
}

.feature-card li::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  margin-right: 0.625rem;
  border-radius: 50%;
  background: var(--wine);
}

.safety-layout {
  display: block;
}

.safety-copy > p {
  max-width: 48rem;
  margin-top: 0;
  margin-inline: auto;
  color: var(--ink-soft);
  line-height: 1.9;
}

.safety-copy {
  display: block;
  padding: clamp(1.25rem, 2.5vw, 1.875rem);
  background: transparent;
  text-align: center;
}

.safety-note {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 1rem 0 0;
  gap: 0.875rem;
  border-top: 0;
  border-radius: 0;
  background: transparent;
}

.safety-note span {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--wine);
  font-weight: 900;
}

.safety-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.7;
  text-align: center;
}

.rating-list {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 1.5rem 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  gap: 0.875rem;
}

.rating-list article {
  display: flex;
  min-height: 9rem;
  align-items: flex-start;
  flex-direction: column;
  padding: 1.25rem;
  gap: 1rem;
  border: 0;
  border-left: 3px solid var(--line);
  border-radius: 1rem;
  background: rgb(255 255 255 / 86%);
  box-shadow: 0 0.25rem 0.625rem rgb(41 20 20 / 4%);
}

.rating-list article:last-child {
  border-bottom: 0;
}

.rating-list article:nth-child(1) {
  border-left-color: #2d7d46;
}

.rating-list article:nth-child(2) {
  border-left-color: #ca8500;
}

.rating-list article:nth-child(3) {
  border-left-color: #b03a2e;
}

.rating-list article:nth-child(4) {
  border-left-color: #8b1c1c;
}

.rating-list article:nth-child(5) {
  border-left-color: #666;
}

.badge {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid currentColor;
  border-radius: 0.625rem;
  color: var(--ink);
  background: transparent;
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: 1rem;
}

.badge-g {
  border-color: #2d7d46;
  color: #2d7d46;
  background: transparent;
}
.badge-t {
  border-color: #ca8500;
  color: #ca8500;
  background: transparent;
}
.badge-m {
  border-color: #b03a2e;
  color: #b03a2e;
  background: transparent;
}
.badge-e {
  border-color: #8b1c1c;
  color: #8b1c1c;
  background: transparent;
}
.badge-n {
  border-color: #666;
  color: #666;
  background: transparent;
}

.rating-list h3 {
  font-size: 0.875rem;
}

.rating-list p {
  margin-top: 0.25rem;
  color: var(--ink-soft);
  font-size: 0.6875rem;
}

.steps {
  --step-gap: clamp(1rem, 3vw, 3.5rem);
  --flow-arrow-width: 5.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--step-gap);
}

.guide-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
}

.flow-arrow {
  position: absolute;
  top: 1.75rem;
  right: calc((var(--flow-arrow-width) + var(--step-gap)) / -2);
  z-index: 1;
  width: var(--flow-arrow-width);
  height: auto;
  color: rgb(255 111 66 / 66%);
}

.flow-arrow--up {
  top: 2.55rem;
  transform: scaleY(-1);
}

.step-preview {
  display: grid;
  width: min(100%, 11rem);
  height: 8.25rem;
  padding: 0.875rem;
  overflow: hidden;
  border-radius: 1rem;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 0.5rem 1.25rem rgb(41 20 20 / 8%);
}

.steps h3 {
  margin-top: 1.5rem;
  font-size: 1rem;
}

.steps p {
  max-width: 15rem;
  margin-top: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.75;
  text-wrap: pretty;
}

.preview-tabs,
.preview-grid,
.preview-tags,
.preview-options,
.preview-reading-head,
.preview-reading-lines,
.preview-library {
  display: grid;
  gap: 0.375rem;
}

.preview-tabs {
  grid-template-columns: 1.15fr 0.8fr 0.95fr;
}

.preview-tabs i,
.preview-grid i,
.preview-options i,
.preview-reading-head i,
.preview-reading-lines i,
.preview-library-row b {
  display: block;
  border-radius: 999px;
  background: #dedede;
}

.preview-tabs i {
  height: 0.5rem;
}

.preview-tabs i:first-child,
.preview-reading-head i:first-child {
  background: #9de9d2;
}

.preview-grid {
  grid-template-columns: 1fr 1fr;
  margin-top: 0.75rem;
}

.preview-grid i {
  min-height: 2.25rem;
  border-radius: 0.375rem;
  background: #efefef;
}

.preview-grid i:nth-child(3) {
  outline: 1px solid #ff8b6f;
  background: #fff3ef;
}

.preview-filter {
  align-content: start;
}

.preview-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.375rem 0.5rem;
  border-radius: 0.375rem;
  background: #f0f0f0;
}

.preview-input i {
  width: 55%;
  height: 0.375rem;
  border-radius: 999px;
  background: #cfcfcf;
}

.preview-input b {
  padding: 0.15rem 0.3rem;
  border-radius: 0.2rem;
  color: #fff;
  background: #ff805c;
  font-size: 0.375rem;
}

.preview-tags {
  grid-template-columns: repeat(4, 1fr);
  margin-top: 0.75rem;
}

.preview-tags i {
  height: 1rem;
  border-radius: 999px;
  background: #b7eeda;
}

.preview-tags i:nth-child(2) {
  background: #f9dc71;
}

.preview-tags i:nth-child(3) {
  background: #b6ddf5;
}

.preview-tags i:nth-child(4) {
  background: #f8c2d2;
}

.preview-options {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 0.75rem;
}

.preview-options i {
  height: 2.5rem;
  border-radius: 0.25rem;
  background: #f0f0f0;
}

.preview-reading-head {
  grid-template-columns: 1fr 0.65fr 0.5fr;
}

.preview-reading-head i {
  height: 0.5rem;
}

.preview-reading-lines {
  margin-top: 1rem;
}

.preview-reading-lines i {
  height: 0.4rem;
}

.preview-reading-lines i:nth-child(2) {
  width: 82%;
}

.preview-reading-lines i:nth-child(3) {
  width: 92%;
}

.preview-reading-lines i:nth-child(4) {
  width: 70%;
}

.preview-library {
  align-content: start;
}

.preview-library-row {
  display: grid;
  grid-template-columns: 0.75rem 1fr;
  align-items: center;
  padding: 0.4rem;
  gap: 0.5rem;
  border-radius: 0.375rem;
  background: #f2f2f2;
}

.preview-library-row i {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 0.2rem;
  background: #ff8b6f;
}

.preview-library-row:nth-child(2) i {
  background: #91dfc8;
}

.preview-library-row:nth-child(3) i {
  background: #9fd7f4;
}

.official-address {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  margin-top: 2.25rem;
  padding: 1.5rem 1.75rem;
  gap: 2rem;
  border-radius: 1.5rem;
  color: var(--white);
  background: var(--wine);
}

.official-address div {
  display: grid;
}

.official-address span {
  color: #e7b9b9;
  font-size: 0.625rem;
  font-weight: 800;
}

.official-address strong {
  margin-top: 0.25rem;
  font-family: Georgia, serif;
  font-size: 1.5rem;
}

.official-address p {
  color: #f4dede;
  font-size: 0.75rem;
  line-height: 1.7;
}

.faq-layout {
  display: flex;
  align-items: start;
  gap: clamp(3rem, 7vw, 7rem);
}

.faq-context {
  display: flex;
  width: min(100%, 28rem);
  flex: 0 0 28rem;
  flex-direction: column;
}

.faq-context .section-heading {
  margin: 0;
}

.faq-list {
  min-width: 0;
  flex: 1;
  max-width: none;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.faq-list details {
  padding: 1.25rem 1.5rem;
  border: 0;
  border-radius: 1rem;
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 0.25rem 0.625rem rgb(41 20 20 / 4%);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 800;
  list-style: none;
  transition: color 180ms var(--ease-out);
}

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

.faq-list summary span {
  position: relative;
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}

.faq-list summary span::before,
.faq-list summary span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.875rem;
  height: 1px;
  transform: translate(-50%, -50%);
  background: var(--wine);
}

.faq-list summary span::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 160ms ease;
}

.faq-list details[open] summary span::after {
  transform: translate(-50%, -50%) rotate(0);
}

.faq-list summary:hover {
  color: var(--wine);
}

.faq-list details > p {
  max-width: 38rem;
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  line-height: 1.8;
}

.closing-section {
  position: relative;
  padding: clamp(4.5rem, 7vw, 6.5rem) 0;
}

.closing-card {
  display: grid;
  grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem);
  gap: clamp(2rem, 6vw, 6rem);
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 2rem;
  color: var(--white);
  background: var(--wine);
  box-shadow: 0 1.25rem 3rem rgb(109 0 18 / 20%);
}

.closing-card .official-address {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-right: 1px solid rgb(255 255 255 / 22%);
  border-radius: 0;
  color: var(--white);
  background: transparent;
}

.closing-card .official-address span {
  color: rgb(255 255 255 / 68%);
}

.closing-card .official-address p {
  max-width: 25rem;
  margin-top: 0.75rem;
  padding-right: 2rem;
  color: rgb(255 255 255 / 78%);
}

.closing-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 0;
  text-align: left;
}

.closing-content > p {
  color: rgb(255 255 255 / 68%);
  font-size: 0.75rem;
  font-weight: 800;
}

.closing-content h2 {
  margin-top: 1rem;
}

.button-light {
  margin-top: 2rem;
  color: var(--wine);
  background: var(--white);
}

.site-footer {
  /* border-top: 1px solid var(--line);
  background: #f7f5f1; */
  color: var(--ink-soft);
}

/* Keep Chinese utility copy legible at normal reading distance. */
.fandom-grid p,
.tag-board-head,
.tag-board-head b,
.tag-field small,
.tag-field strong,
.tag-pills span,
.filter-result,
.feature-card-top,
.rating-list p,
.official-address span {
  font-size: 0.75rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding-block: 2.75rem;
  column-gap: clamp(2rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
}

.footer-brand .brand img {
  width: min(11rem, 52vw);
}

.footer-brand > p {
  max-width: 29rem;
  margin-top: 0.875rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.7;
}

.footer-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.625rem 1.25rem;
  font-size: 0.75rem;
}

.footer-nav a {
  color: var(--ink-soft);
}

@media (max-width: 62rem) {
  :root {
    --heading-content-gap: 2rem;
  }

  .section {
    padding: 3rem 0 2.5rem;
  }

  .section[id] {
    scroll-margin-top: 4rem;
  }

  .hero {
    display: block;
    min-height: 0;
    padding: 5rem 2rem 4rem;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 3.8vw, 2.7rem);
  }

  .hero-copy {
    width: min(100%, 43rem);
    margin-inline: auto;
    align-items: center;
    text-align: center;
  }

  .site-nav {
    gap: 1rem;
  }

  .about-grid,
  .search-layout,
  .safety-layout,
  .faq-layout {
    gap: 3.5rem;
  }

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

  .faq-layout {
    display: block;
  }

  .faq-context {
    width: 100%;
    max-width: none;
    flex-basis: auto;
  }

  .faq-list {
    width: 100%;
    margin-top: 2.25rem;
  }

  .safety-copy {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .safety-note {
    padding: 1rem 0 0;
    border-top: 0;
    border-left: 0;
  }

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

  .footer-grid {
    column-gap: 2.5rem;
  }
}

@media (max-width: 48rem) {
  :root {
    --heading-content-gap: 1.75rem;
  }

  .section {
    padding: 3.75rem 0 2rem;
  }

  .section[id] {
    scroll-margin-top: 4rem;
  }

  .closing-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .closing-card .official-address {
    padding-bottom: 2rem;
    border-right: 0;
    border-bottom: 1px solid rgb(255 255 255 / 22%);
  }

  .closing-card .official-address p {
    padding-right: 0;
  }

  .site-header {
    margin-bottom: -4.25rem;
    padding: 0.5rem;
  }

  .site-nav {
    display: none;
  }

  .header-action {
    margin-left: auto;
  }

  .hero {
    display: block;
    min-height: 0;
    padding: 4.5rem 1rem 4.5rem;
    color: var(--ink);
  }

  .hero::before {
    display: none;
  }

  .hero-copy {
    display: flex;
    width: min(calc(100% - 2rem), var(--page));
    margin-inline: auto;
    align-items: center;
    text-align: center;
  }

  .hero h1 {
    color: var(--ink);
  }

  .hero-intro {
    color: var(--ink-soft);
  }

  .stats-grid,
  .fandom-grid,
  .feature-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-arrow {
    display: none;
  }

  .stats-grid p:nth-child(2) {
    border-right: 0;
  }

  .stats-grid p:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .about-grid,
  .search-layout,
  .safety-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-layout {
    display: block;
    grid-template-areas: none;
  }

  .faq-context {
    width: 100%;
    flex-basis: auto;
  }

  .faq-list {
    margin-top: 2.25rem;
  }

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

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

  .about-copy,
  .search-copy,
  .safety-copy,
  .search-layout .tag-board,
  .rating-list,
  .faq-list {
    grid-area: auto;
    grid-column: 1;
    margin-left: 0;
  }

  .about-copy {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-heading.align-left {
    max-width: 40rem;
  }

  .feature-grid article:last-child {
    grid-column: 1 / -1;
    min-height: 24rem;
  }

  .official-address {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

}

@media (max-width: 36rem) {
  :root {
    --heading-content-gap: 1.5rem;
  }

  .page-shell {
    width: min(calc(100% - 2rem), var(--page));
  }

  .brand img {
    width: min(8.75rem, 48vw);
    height: auto;
  }

  .header-shell {
    min-height: 3.25rem;
    border-radius: 999px;
  }

  .header-action {
    min-height: 2.5rem;
    padding-inline: 0.75rem;
    font-size: 0.75rem;
  }

  .hero {
    padding-top: 4.25rem;
  }

  .hero h1 {
    max-width: 100%;
    margin-top: 0.875rem;
    font-size: clamp(2rem, 9.25vw, 2.2rem);
    letter-spacing: -0.025em;
    line-height: 1.16;
  }

  .hero h1 br {
    display: none;
  }

  .hero-intro {
    max-width: 21.75rem;
    margin-top: 0.875rem;
    font-size: 0.875rem;
    line-height: 1.75;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    margin-top: 1.125rem;
    gap: 0.625rem;
  }

  .button {
    width: 100%;
    min-height: 3rem;
    padding-inline: 0.75rem;
    font-size: 0.875rem;
  }

  .stats-strip {
    padding-top: 1.25rem;
  }

  .stats-grid strong {
    font-size: 1.4rem;
  }

  .stats-grid p {
    padding: 1rem 0.5rem;
  }

  .section {
    padding: 3.5rem 0 1.75rem;
  }

  .section[id] {
    scroll-margin-top: 3.75rem;
  }

  .section-heading {
    margin-bottom: var(--heading-content-gap);
  }

  .chapter-title {
    font-size: 2.1rem;
    line-height: 1.13;
  }

  .closing-content h2 {
    font-size: 2.35rem;
    line-height: 1.13;
  }

  .section-lead,
  .section-heading > p:last-child:not(.section-lead),
  .about-copy > p,
  .safety-copy > p {
    font-size: 0.875rem;
    line-height: 1.8;
  }

  .section-lead {
    font-size: 0.875rem;
    line-height: 1.55;
  }

  .about-grid,
  .search-layout,
  .safety-layout,
  .faq-layout {
    gap: 2.25rem;
  }

  .fandom-grid,
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .fandom-grid article {
    min-height: 7.5rem;
  }

  .tag-board {
    padding: 1rem;
    transform: none;
  }

  .feature-grid article:last-child {
    grid-column: auto;
  }

  .feature-card,
  .feature-grid article:last-child {
    min-height: 25rem;
  }

  .feature-card h3 {
    margin-top: 2rem;
    font-size: 1.5rem;
  }

  .rating-list {
    padding-inline: 1rem;
  }

  .steps article {
    min-height: 0;
  }

  .official-address {
    padding: 1.25rem;
  }

  .official-address strong {
    font-size: 1.15rem;
    overflow-wrap: anywhere;
  }

  .closing-section {
    padding: 4.5rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    justify-items: start;
    padding-block: 2.5rem;
    gap: 1.75rem;
  }

  .footer-nav {
    justify-content: flex-start;
  }


}

/* Mobile-first reading scale for the homepage introduction. */
@media (max-width: 48rem) {
  .hero {
    padding: 5rem 0 5.25rem;
  }

  .hero-kicker {
    font-size: 0.875rem;
  }

  .hero h1 {
    max-width: 22rem;
    font-size: clamp(2.4rem, 9vw, 3.05rem);
  }

  .hero-intro {
    max-width: 22rem;
    font-size: 0.9375rem;
    line-height: 1.85;
  }

  .hero-actions {
    margin-top: 1.75rem;
  }

  .hero-actions .button {
    min-height: 3.25rem;
    font-size: 0.9375rem;
  }

  .hero-topic-strip {
    font-size: 0.6875rem;
  }
}

@media (max-width: 48rem) {
  .feature-grid {
    display: flex;
    width: 100%;
    overflow-x: auto;
    padding: 0.25rem 0 1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .feature-grid::-webkit-scrollbar {
    display: none;
  }

  .feature-grid article,
  .feature-grid article:last-child {
    min-width: min(78vw, 21rem);
    flex: 0 0 min(78vw, 21rem);
    scroll-snap-align: start;
  }
}

/* Keep grid-based sections aligned with the shared heading-to-content rhythm. */
.about-grid,
.search-layout {
  row-gap: var(--heading-content-gap);
}

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

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

@media (max-width: 62rem) {
  .hero {
    min-height: 0;
    padding: 4rem 0 5rem;
  }

  .hero-layout {
    min-height: 0;
    gap: 2.75rem;
  }

  .hero-copy {
    width: 100%;
    margin: 0;
    align-items: initial;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 6vw, 4rem);
  }

  .hero-topic-strip {
    display: block;
    min-height: auto;
    padding-inline: 1rem;
    font-size: 0.625rem;
    text-align: center;
  }
}

@media (max-width: 36rem) {
  .hero {
    padding: 3.25rem 0 4rem;
  }

  .hero h1 {
    margin-top: 1rem;
    font-size: clamp(2.4rem, 11vw, 3rem);
    line-height: 1.12;
  }

  .hero h1 br {
    display: none;
  }

  .hero-actions {
    display: flex;
    width: auto;
    gap: 1rem;
  }

  .hero-topic-strip {
    display: block;
    min-height: auto;
    padding-inline: 0.75rem;
    font-size: 0.5rem;
    letter-spacing: 0.04em;
  }

  .hero-marks {
    display: none;
  }

}

/* Final mobile overrides for the homepage introduction. */
@media (max-width: 48rem) {
  .hero {
    padding: 5rem 0 5.25rem;
  }

  .hero-kicker {
    font-size: 0.875rem;
  }

  .hero h1 {
    max-width: 22rem;
    font-size: clamp(2.65rem, 10vw, 3.4rem);
  }

  .hero-intro {
    max-width: 22rem;
    font-size: 0.9375rem;
    line-height: 1.85;
  }

  .hero-actions {
    margin-top: 1.75rem;
  }

  .hero-actions .button {
    min-height: 3.25rem;
    font-size: 0.9375rem;
  }

  .hero-topic-strip {
    font-size: 0.6875rem;
  }
}
