:root {
  --ink: #23241f;
  --muted: #62645b;
  --paper: #f7f7f2;
  --surface: #ffffff;
  --line: #d9dbd0;
  --olive: #565f39;
  --olive-dark: #3f4729;
  --gold: #c28c2c;
  --burgundy: #7a3640;
  --soft-gold: #f4ead6;
}

* {
  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.7;
  letter-spacing: 0;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 247, 242, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner,
.section-inner,
.hero-inner,
.footer-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
}

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

.site-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.site-nav a {
  position: relative;
  padding: 23px 0 20px;
  color: #4e5048;
  font-size: 15px;
}

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

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.site-nav a.active {
  color: var(--ink);
  font-weight: 700;
}

.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-action,
.secondary-action,
.text-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 180ms ease, background 180ms ease;
}

.primary-action {
  color: #ffffff;
  background: var(--olive);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-1px);
}

.primary-action:hover {
  background: var(--olive-dark);
}

.secondary-action,
.text-action {
  color: var(--olive-dark);
  background: transparent;
  border: 1px solid #b9bda9;
}

.text-action {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

.large {
  min-width: 128px;
  min-height: 48px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 22px;
  cursor: pointer;
}

.hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(500px, 0.98fr);
  align-items: center;
  gap: 70px;
  padding: 42px 0 44px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--burgundy);
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1,
.inner-hero h1 {
  margin-bottom: 20px;
  max-width: 660px;
  font-size: 52px;
  line-height: 1.18;
  font-weight: 850;
}

.hero-copy > p,
.inner-hero p {
  max-width: 620px;
  margin-bottom: 26px;
  color: #4f5149;
  font-size: 17px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 500px;
  margin: 28px 0 0;
  border-top: 1px solid var(--line);
}

.hero-facts div {
  padding: 15px 18px 0 0;
}

.hero-facts div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.hero-facts dt {
  color: var(--muted);
  font-size: 12px;
}

.hero-facts dd {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.hero-media {
  min-height: 532px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 156px;
  align-items: center;
  gap: 20px;
}

.hero-screen {
  position: relative;
  height: 508px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: #eceee4;
  border: 1px solid #cfd2c3;
  border-radius: 8px;
}

.hero-screen::before {
  content: "DETAIL / CHAPTER";
  position: absolute;
  top: 12px;
  left: 14px;
  color: #727669;
  font-size: 10px;
  font-weight: 800;
}

.hero-screen img {
  width: auto;
  max-width: 400px;
  height: 446px;
  object-fit: contain;
  border-radius: 5px;
  box-shadow: 0 14px 30px rgba(35, 36, 31, 0.14);
}

.annotation-rail {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.annotation-rail span,
.info-grid article > span,
.faq-preview-grid span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.annotation-rail strong {
  margin-top: 4px;
  font-size: 14px;
}

.annotation-rail p {
  margin: 3px 0 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.info-band {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.info-band .section-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 52px;
  padding: 50px 0;
}

.section-heading h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.3;
}

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

.info-grid article {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.info-grid h3,
.feature-grid h3 {
  margin: 7px 0 6px;
  font-size: 17px;
}

.info-grid p,
.feature-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.gallery-section,
.advanced-section,
.feature-section,
.faq-preview,
.guide-body,
.faq-body {
  padding: 88px 0;
}

.gallery-section .section-heading,
.feature-section .section-heading,
.faq-preview .section-heading {
  margin-bottom: 34px;
}

.reading-rail {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.9fr;
  gap: 20px;
  align-items: end;
}

.rail-item {
  margin: 0;
}

.shot-frame {
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: #eceee6;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.shot-frame.compact {
  min-height: 420px;
  background: #f2eadc;
}

.shot-frame img {
  width: auto;
  max-width: 400px;
  max-height: 458px;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 12px 25px rgba(35, 36, 31, 0.12);
}

.shot-frame.compact img {
  max-height: 390px;
}

.rail-item figcaption {
  display: grid;
  gap: 4px;
  padding-top: 14px;
}

.rail-item figcaption span {
  color: var(--burgundy);
  font-size: 12px;
  font-weight: 800;
}

.rail-item figcaption strong {
  font-size: 14px;
}

.advanced-section {
  color: #f7f7f2;
  background: #2c2e28;
}

.advanced-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 70px;
}

.sticky-heading {
  align-self: start;
  position: sticky;
  top: 112px;
}

.step-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid #55584f;
}

.step-list article:last-child {
  border-bottom: 1px solid #55584f;
}

.step-list > article > span {
  color: #d3a953;
  font-size: 13px;
  font-weight: 800;
}

.step-list h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.step-list p {
  margin-bottom: 0;
  color: #c9cbc2;
  font-size: 14px;
}

.feature-section {
  background: var(--surface);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature-grid article {
  min-height: 190px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-grid article::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin-bottom: 20px;
  background: var(--gold);
}

.faq-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.faq-preview-grid a {
  display: grid;
  gap: 10px;
  min-height: 175px;
  padding: 24px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.faq-preview-grid a:first-child {
  border-left: 1px solid var(--line);
}

.faq-preview-grid strong {
  font-size: 17px;
}

.faq-preview-grid em {
  align-self: end;
  color: var(--olive);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.closing-cta {
  padding: 54px 0;
  background: var(--soft-gold);
  border-top: 1px solid #e3d0ad;
}

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

.closing-inner h2 {
  margin-bottom: 0;
  font-size: 30px;
}

.site-footer {
  padding: 46px 0;
  color: #dedfd8;
  background: #252620;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-brand {
  color: #ffffff;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 7px;
}

.site-footer nav {
  display: flex;
  gap: 24px;
  margin: 24px 0 18px;
  font-size: 14px;
}

.site-footer p {
  max-width: 800px;
  margin: 0 auto 8px;
  color: #bfc1b8;
  font-size: 13px;
  text-align: center;
}

.site-footer small {
  color: #9b9d94;
  text-align: center;
}

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

.inner-hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: center;
  gap: 72px;
}

.inner-hero h1 {
  font-size: 46px;
}

.guide-summary {
  padding: 26px;
  background: #eceee4;
  border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0;
}

.guide-summary strong {
  font-size: 17px;
}

.guide-summary ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: #55574f;
  font-size: 14px;
}

.guide-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 78px;
}

.guide-index {
  align-self: start;
  position: sticky;
  top: 106px;
  display: grid;
  gap: 10px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.guide-index span {
  margin-bottom: 4px;
  color: var(--burgundy);
  font-size: 12px;
  font-weight: 800;
}

.guide-index a {
  color: #56584f;
  font-size: 14px;
}

.guide-index a:hover {
  color: var(--olive);
}

.guide-content {
  max-width: 780px;
}

.guide-content article {
  position: relative;
  padding: 0 0 52px 70px;
  border-left: 1px solid var(--line);
}

.guide-content article:last-child {
  padding-bottom: 0;
}

.step-number {
  position: absolute;
  top: 0;
  left: -23px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--olive);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.guide-content h2 {
  margin-bottom: 16px;
  font-size: 26px;
}

.guide-content p {
  color: #53554d;
}

.guide-content a,
.faq-note a {
  color: var(--burgundy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 220px;
  gap: 34px;
  align-items: start;
}

.faq-tools {
  position: sticky;
  top: 106px;
  display: grid;
  gap: 8px;
}

.faq-tools span {
  margin-bottom: 5px;
  color: var(--burgundy);
  font-size: 12px;
  font-weight: 800;
}

.filter-button {
  width: 100%;
  padding: 10px 12px;
  color: #505249;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 5px;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.filter-button.active,
.filter-button:hover {
  color: #ffffff;
  background: var(--olive);
  border-color: var(--olive);
}

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

.faq-list details {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.faq-list details[hidden] {
  display: none;
}

.faq-list summary {
  position: relative;
  padding: 20px 54px 20px 22px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 18px;
  right: 22px;
  color: var(--gold);
  font-size: 22px;
  line-height: 1;
}

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

.faq-list details p {
  margin: 0;
  padding: 0 22px 22px;
  color: #585a52;
  font-size: 14px;
}

.faq-note {
  position: sticky;
  top: 106px;
  padding: 20px;
  background: var(--soft-gold);
  border: 1px solid #e3d0ad;
  border-radius: 6px;
}

.faq-note p {
  color: #5c574d;
  font-size: 13px;
}

.faq-note a {
  font-size: 13px;
}

@media (max-width: 1020px) {
  .header-actions {
    display: none;
  }

  .header-inner {
    grid-template-columns: auto 1fr;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
    gap: 36px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-media {
    grid-template-columns: 1fr 130px;
  }

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

  .faq-layout {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .faq-note {
    display: none;
  }
}

@media (max-width: 760px) {
  .header-inner,
  .section-inner,
  .hero-inner,
  .footer-inner {
    width: min(100% - 32px, 1180px);
  }

  .header-inner {
    min-height: 60px;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    grid-column: 3;
  }

  .site-nav {
    position: absolute;
    top: 60px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 14px 30px rgba(35, 36, 31, 0.12);
  }

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

  .site-nav a {
    padding: 10px 12px;
  }

  .site-nav a::after {
    display: none;
  }

  .hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 0 30px;
  }

  .hero h1,
  .inner-hero h1 {
    margin-bottom: 12px;
    font-size: 34px;
    line-height: 1.2;
  }

  .hero-copy > p,
  .inner-hero p {
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.65;
  }

  .eyebrow {
    margin-bottom: 9px;
  }

  .hero-facts {
    display: none;
  }

  .hero-media {
    min-height: 300px;
    grid-template-columns: minmax(0, 1fr) 110px;
    gap: 10px;
  }

  .hero-screen {
    height: 300px;
    padding: 12px;
  }

  .hero-screen img {
    height: 260px;
  }

  .annotation-rail {
    padding-left: 10px;
  }

  .annotation-rail p {
    margin-bottom: 12px;
    font-size: 10px;
  }

  .annotation-rail strong {
    font-size: 12px;
  }

  .info-band .section-inner,
  .advanced-layout,
  .inner-hero-grid,
  .guide-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .info-band .section-inner {
    gap: 22px;
    padding: 36px 0;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .gallery-section,
  .advanced-section,
  .feature-section,
  .faq-preview,
  .guide-body,
  .faq-body {
    padding: 58px 0;
  }

  .reading-rail {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .shot-frame,
  .shot-frame.compact {
    min-height: 390px;
  }

  .shot-frame img,
  .shot-frame.compact img {
    max-height: 360px;
  }

  .advanced-layout {
    gap: 26px;
  }

  .sticky-heading,
  .guide-index,
  .faq-tools,
  .faq-note {
    position: static;
  }

  .step-list article {
    grid-template-columns: 42px 1fr;
  }

  .feature-grid,
  .faq-preview-grid {
    grid-template-columns: 1fr;
  }

  .faq-preview-grid a {
    min-height: 130px;
    border-left: 1px solid var(--line);
  }

  .closing-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .closing-inner h2 {
    font-size: 26px;
  }

  .inner-hero {
    padding: 48px 0 42px;
  }

  .inner-hero-grid {
    gap: 24px;
  }

  .guide-layout {
    gap: 36px;
  }

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

  .guide-index span {
    grid-column: 1 / -1;
  }

  .guide-content article {
    padding-left: 42px;
  }

  .step-number {
    left: -18px;
    width: 36px;
    height: 36px;
  }

  .faq-tools {
    display: flex;
    flex-wrap: wrap;
  }

  .faq-tools span {
    width: 100%;
  }

  .filter-button {
    width: auto;
    text-align: center;
  }

  .site-footer nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 410px) {
  .hero h1,
  .inner-hero h1 {
    font-size: 31px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .large {
    min-width: 0;
    flex: 1;
  }

  .hero-media {
    grid-template-columns: minmax(0, 1fr) 96px;
  }
}
