:root {
  --ink: #262327;
  --muted: #655f63;
  --paper: #fffaf4;
  --paper-deep: #f5eee6;
  --white: #ffffff;
  --red: #8b1e2d;
  --red-dark: #671521;
  --teal: #156b70;
  --gold: #c98b2e;
  --line: #ded4ca;
  --shadow: 0 18px 50px rgba(56, 32, 34, 0.12);
  --container: min(1160px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, Helvetica, sans-serif;
  line-height: 1.75;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(139, 30, 45, 0.16);
  background: rgba(255, 250, 244, 0.96);
  backdrop-filter: blur(14px);
}

.nav-shell {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--red-dark);
  font-size: 1.28rem;
  font-weight: 800;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 9px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 650;
}

.site-nav a:not(.button-link) {
  position: relative;
  color: #50494e;
}

.site-nav a:not(.button-link)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--red-dark);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.button-link,
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 22px;
  border: 1px solid var(--red);
  border-radius: 6px;
  background: var(--red);
  color: var(--white);
  font-weight: 750;
  box-shadow: 0 8px 20px rgba(139, 30, 45, 0.18);
  transition: transform 180ms ease, background 180ms ease;
}

.button-link:hover,
.button:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.button.secondary {
  border-color: var(--teal);
  background: transparent;
  color: var(--teal);
  box-shadow: none;
}

.button.secondary:hover {
  background: var(--teal);
  color: var(--white);
}

.hero {
  min-height: 690px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(139, 30, 45, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 30, 45, 0.055) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
}

.hero-grid {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  align-items: center;
  gap: 70px;
  padding: 70px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: #2d2529;
  line-height: 1.24;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.65rem, 5.7vw, 5.2rem);
}

h2 {
  margin-bottom: 34px;
  font-size: clamp(1.85rem, 3.2vw, 2.7rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.hero-copy > p {
  max-width: 650px;
  margin: 0 0 28px;
  color: #544e52;
  font-size: 1.08rem;
}

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

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.trust-line span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.hero-visual {
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-visual::before {
  content: "AO3 / READ / SAVE";
  position: absolute;
  top: 42px;
  right: 0;
  color: rgba(139, 30, 45, 0.11);
  font-size: 3.35rem;
  font-weight: 900;
  line-height: 1;
  writing-mode: vertical-rl;
}

.hero-frame {
  position: relative;
  width: 350px;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(139, 30, 45, 0.25);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-frame::after {
  content: "MOBILE READER";
  position: absolute;
  right: -42px;
  bottom: 26px;
  padding: 7px 12px;
  background: var(--teal);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-frame img {
  width: min(251px, 78%);
  max-width: 400px;
  height: auto;
  margin: auto 0;
  border-radius: 5px;
}

.signal-strip {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.signal-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.signal-list li {
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.signal-list li:first-child {
  border-left: 1px solid var(--line);
}

.signal-list strong {
  display: block;
  color: var(--red);
  font-size: 1.08rem;
}

.signal-list span {
  color: var(--muted);
  font-size: 0.84rem;
}

.section {
  padding: 92px 0;
}

.section.alt {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: 56px;
  margin-bottom: 40px;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.section-heading p {
  color: var(--muted);
}

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

.feature-item,
.path-card,
.quote,
.info-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.feature-item {
  min-height: 230px;
  padding: 28px;
}

.feature-index {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 38px;
  place-items: center;
  border: 1px solid var(--teal);
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 850;
}

.feature-item p,
.path-card p,
.quote p,
.info-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 24px;
}

.shot {
  margin: 0;
  text-align: center;
}

.shot img {
  width: auto;
  max-width: 400px;
  height: 430px;
  max-height: 62vw;
  margin: 0 auto;
  border: 10px solid #2d292c;
  border-radius: 26px;
  background: #ece8e4;
  object-fit: contain;
  box-shadow: var(--shadow);
}

.shot:nth-child(2) img {
  height: 475px;
}

.shot figcaption {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.path-card {
  position: relative;
  min-height: 230px;
  padding: 32px;
  overflow: hidden;
}

.path-card::after {
  content: "→";
  position: absolute;
  right: 28px;
  bottom: 20px;
  color: var(--red);
  font-size: 2rem;
}

.path-card .tag {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 800;
}

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

.quote {
  padding: 28px;
}

.quote blockquote {
  margin: 0 0 24px;
  color: #393136;
}

.quote footer {
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 750;
}

.faq-preview,
.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 750;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--red);
  font-size: 1.45rem;
}

.faq-item.open .faq-question::after {
  content: "−";
}

.faq-answer {
  display: none;
  max-width: 900px;
  padding: 0 4px 24px;
  color: var(--muted);
}

.faq-item.open .faq-answer {
  display: block;
}

.download-band {
  padding: 70px 0;
  background: var(--red-dark);
  color: var(--white);
}

.download-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
}

.download-band h2 {
  margin-bottom: 12px;
  color: var(--white);
}

.download-band p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.download-band .button {
  flex: 0 0 auto;
  border-color: var(--white);
  background: var(--white);
  color: var(--red-dark);
  box-shadow: none;
}

.download-band .button:hover {
  background: var(--paper-deep);
}

.page-hero {
  padding: 82px 0 72px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-deep);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  gap: 70px;
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(2.35rem, 5vw, 4.4rem);
}

.page-hero p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.page-mark {
  display: grid;
  width: 220px;
  height: 220px;
  place-items: center;
  border: 1px solid var(--red);
  color: var(--red);
  font-size: 5rem;
  font-weight: 900;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 62px;
}

.article-flow h2 {
  margin-top: 64px;
  margin-bottom: 24px;
  font-size: 1.8rem;
}

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

.article-flow h3 {
  margin-top: 32px;
}

.article-flow p {
  margin: 0 0 18px;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide-step;
}

.steps li {
  position: relative;
  min-height: 110px;
  padding: 0 0 34px 82px;
  counter-increment: guide-step;
}

.steps li::before {
  content: counter(guide-step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--red);
  color: var(--red);
  font-weight: 800;
}

.steps li::after {
  content: "";
  position: absolute;
  top: 61px;
  bottom: 7px;
  left: 27px;
  width: 1px;
  background: var(--line);
}

.steps li:last-child::after {
  display: none;
}

.steps strong {
  display: block;
  margin-bottom: 7px;
  font-size: 1.08rem;
}

.steps p {
  color: var(--muted);
}

.side-panel {
  position: sticky;
  top: 104px;
  padding: 26px;
  border-left: 4px solid var(--teal);
  background: var(--white);
  box-shadow: 0 14px 35px rgba(56, 32, 34, 0.08);
}

.side-panel h2 {
  margin-bottom: 18px;
  font-size: 1.18rem;
}

.side-panel ul {
  margin: 0 0 24px;
  padding-left: 20px;
  color: var(--muted);
}

.note {
  margin: 28px 0;
  padding: 24px 26px;
  border-left: 4px solid var(--gold);
  background: #fff6e8;
}

.note strong {
  color: #744e15;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #262126;
  color: rgba(255, 255, 255, 0.72);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 50px;
  padding: 52px 0 34px;
}

.footer-brand {
  color: var(--white);
}

.footer-brand img {
  width: 38px;
  height: 38px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--white);
}

.disclaimer,
.copyright {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.disclaimer {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.84rem;
}

.copyright {
  padding: 0 0 28px;
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  :root {
    --container: min(100% - 32px, 760px);
  }

  .site-header {
    backdrop-filter: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 74px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    display: none;
    align-content: start;
    overflow-y: auto;
    padding: 30px 24px;
    background: var(--paper);
  }

  .site-nav.open {
    display: grid;
  }

  .site-nav .button-link {
    width: 100%;
  }

  .hero,
  .hero-grid {
    min-height: auto;
  }

  .hero-grid,
  .page-hero-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 30px;
    padding: 68px 0 56px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-copy > p,
  .hero-actions,
  .trust-line {
    justify-content: center;
    margin-right: auto;
    margin-left: auto;
  }

  .hero-visual {
    min-height: 500px;
  }

  .hero-visual::before {
    display: none;
  }

  .signal-list,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .signal-list li:nth-child(3) {
    border-left: 1px solid var(--line);
  }

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

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

  .page-mark {
    display: none;
  }

  .side-panel {
    position: static;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 24px;
    padding: 48px 0;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-copy > p,
  .hero-actions,
  .trust-line {
    justify-content: flex-start;
    margin-right: 0;
    margin-left: 0;
  }

  .hero-visual {
    min-height: 420px;
  }

  .hero-frame {
    width: 270px;
    min-height: 400px;
  }
}

@media (max-width: 640px) {
  :root {
    --container: calc(100% - 24px);
  }

  .section {
    padding: 68px 0;
  }

  h1 {
    margin-bottom: 12px;
    font-size: 2.25rem;
  }

  .hero-grid {
    gap: 14px;
    padding: 34px 0 20px;
  }

  .hero-copy .eyebrow {
    margin-bottom: 8px;
  }

  .hero-copy > p {
    margin-bottom: 16px;
    font-size: 0.93rem;
    line-height: 1.65;
  }

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

  .hero-actions .button {
    min-height: 42px;
    padding: 8px 16px;
  }

  .trust-line {
    gap: 8px 16px;
    margin-top: 14px;
    font-size: 0.8rem;
  }

  .hero-visual {
    min-height: 250px;
  }

  .hero-frame {
    width: 210px;
    min-height: 245px;
  }

  .hero-frame img {
    width: 135px;
    max-height: 227px;
  }

  .hero-frame::after {
    right: -34px;
    bottom: 16px;
    padding: 5px 8px;
    font-size: 0.62rem;
  }

  .signal-list,
  .feature-grid,
  .gallery,
  .path-grid {
    grid-template-columns: 1fr;
  }

  .signal-list li,
  .signal-list li:first-child,
  .signal-list li:nth-child(3) {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .gallery {
    gap: 46px;
  }

  .shot img,
  .shot:nth-child(2) img {
    width: auto;
    height: auto;
    max-height: none;
  }

  .download-inner,
  .footer-main {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .download-inner {
    display: flex;
  }

  .download-inner .button {
    width: 100%;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .steps li {
    padding-left: 70px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
