/* 笔趣阁 · 站点样式
   主题：旧书店 —— 沙纸底 / 墨褐字 / 陶土红 / 深墨带
*/

:root {
  --paper: #f4ecdf;
  --paper-2: #fbf6ec;
  --ink: #211a14;
  --ink-2: #3d332a;
  --muted: #7c6b58;
  --line: rgba(33, 26, 20, 0.15);
  --line-2: rgba(33, 26, 20, 0.08);
  --terra: #b4522c;
  --terra-d: #93401f;
  --forest: #2d4a3a;
  --band: #1d1712;
  --serif: "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 560px at 88% -8%, rgba(180, 82, 44, 0.10), transparent 64%),
    radial-gradient(900px 520px at -8% 6%, rgba(45, 74, 58, 0.08), transparent 62%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
dl, dd { margin: 0; }

.shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- 顶栏 ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 236, 223, 0.9);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}

.bar-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(33, 26, 20, 0.18);
}

.brand-txt { display: flex; flex-direction: column; line-height: 1; }
.brand-txt b { font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: 0.1em; }
.brand-txt i {
  margin-top: 6px;
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.34em;
  color: var(--muted);
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  position: relative;
  padding: 6px 0;
  color: var(--ink-2);
  font-size: 14.5px;
  text-decoration: none;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav a:hover::after,
.nav a.active::after { transform: scaleX(1); }
.nav a.active { color: var(--ink); font-weight: 600; }

.nav .cta {
  padding: 11px 24px;
  border-radius: 999px;
  background: var(--terra);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(180, 82, 44, 0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}
.nav .cta::after { display: none; }
.nav .cta:hover { background: var(--terra-d); transform: translateY(-1px); }

.burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-open .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- 首屏 ---------- */
.hero { padding: 74px 0 0; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 70px;
  align-items: center;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(180, 82, 44, 0.32);
  border-radius: 999px;
  color: var(--terra);
  font-size: 12px;
  letter-spacing: 0.18em;
}
.tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--terra);
}

.hero h1 {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(58px, 7.2vw, 92px);
  line-height: 1.02;
  letter-spacing: 0.06em;
}

.lede {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(21px, 2.1vw, 27px);
  color: var(--ink-2);
  letter-spacing: 0.02em;
}

.desc {
  margin-top: 20px;
  max-width: 42ch;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.95;
}

.acts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.btn-main {
  background: var(--terra);
  color: #fff;
  box-shadow: 0 8px 16px rgba(180, 82, 44, 0.22);
}
.btn-main:hover { background: var(--terra-d); transform: translateY(-1px); }
.btn-ghost { border: 1px solid rgba(33, 26, 20, 0.28); color: var(--ink); }
.btn-ghost:hover { background: rgba(33, 26, 20, 0.05); border-color: var(--ink); }

.spec-line {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 0 34px;
  margin: 42px 0 0;
  padding: 20px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.spec-line li { display: flex; flex-direction: column; gap: 5px; }
.spec-line span { font-size: 11px; letter-spacing: 0.16em; color: var(--muted); }
.spec-line b { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }

.hero-art { display: flex; justify-content: center; }

.shot { position: relative; width: min(100%, 358px); margin: 0; }

.shot-mat {
  padding: 12px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 18px 20px 0 rgba(33, 26, 20, 0.06), 0 24px 46px rgba(33, 26, 20, 0.13);
}
.shot-mat img { display: block; width: 100%; height: auto; border-radius: 2px; }

.shot-tag {
  position: absolute;
  left: -24px;
  top: 12px;
  font-size: 10.5px;
  letter-spacing: 0.3em;
  color: var(--muted);
  writing-mode: vertical-rl;
}

.shot figcaption {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: right;
}

/* ---------- 通用区块 ---------- */
.sec { padding-top: 108px; }

.sec-head { max-width: 720px; margin-bottom: 44px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--terra);
  font-size: 12px;
  letter-spacing: 0.22em;
}
.eyebrow i { display: block; width: 26px; height: 1px; background: var(--terra); }

.sec h2 {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(28px, 3.1vw, 40px);
  line-height: 1.32;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

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

/* ---------- 书库 ---------- */
.shelf {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 64px;
}
.shelf-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 20px;
  align-items: baseline;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.shelf-item:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }
.shelf dt {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.shelf dd { color: var(--muted); font-size: 14.5px; line-height: 1.8; }

/* ---------- 功能 ---------- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 44px;
}
.feat { padding: 30px 0 34px; border-top: 1px solid var(--line); }
.feat-no {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--terra);
}
.feat h3 {
  margin: 12px 0 10px;
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.04em;
}
.feat p:last-child { color: var(--muted); font-size: 14.5px; line-height: 1.85; }

/* ---------- 界面 ---------- */
.ui-row {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 64px;
  align-items: center;
}
.ui-card {
  max-width: 400px;
  margin: 0;
  padding: 10px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 14px 16px 0 rgba(33, 26, 20, 0.055);
}
.ui-card img { display: block; width: 100%; height: auto; border-radius: 2px; }
.ui-card figcaption {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: center;
}

.ui-list { list-style: none; margin: 0; padding: 0; }
.ui-list li {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 22px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.ui-list li:last-child { border-bottom: 1px solid var(--line); }
.ui-list b { font-size: 14.5px; font-weight: 700; }
.ui-list span { color: var(--muted); font-size: 14.5px; line-height: 1.8; }

/* ---------- 上手 ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.step { position: relative; padding-top: 26px; border-top: 1px solid rgba(33, 26, 20, 0.3); }
.step::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terra);
}
.step-no {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--terra);
}
.step h3 { margin: 8px 0 10px; font-family: var(--serif); font-size: 24px; }
.step p:last-child { max-width: 34ch; color: var(--muted); font-size: 14.5px; line-height: 1.85; }

/* ---------- 场景 ---------- */
.strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.strip figure { margin: 0; }
.strip img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  filter: saturate(0.94);
}
.strip figcaption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.strip figcaption::before { content: ""; width: 14px; height: 1px; background: var(--terra); }

/* ---------- 金句带 ---------- */
.band {
  margin-top: 108px;
  padding: 88px 0;
  background: var(--band);
  color: #f3ead9;
}
.band-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
}
.quote {
  font-family: var(--serif);
  font-size: clamp(30px, 3.7vw, 48px);
  line-height: 1.42;
  letter-spacing: 0.04em;
}
.band-sub {
  margin-top: 22px;
  max-width: 34ch;
  color: rgba(243, 234, 217, 0.62);
  font-size: 15px;
  line-height: 1.9;
}
.band-pic { max-width: 320px; margin: 0; justify-self: end; transform: rotate(1.6deg); }
.band-pic img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(243, 234, 217, 0.16);
  border-radius: 3px;
}
.band-pic figcaption {
  margin-top: 12px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: rgba(243, 234, 217, 0.45);
  text-align: right;
}

/* ---------- 下载 ---------- */
.dl {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  padding: 48px;
  background: var(--paper-2);
  border: 1px solid var(--ink);
  border-radius: 4px;
  box-shadow: 12px 12px 0 rgba(33, 26, 20, 0.88);
}
.dl-brand { display: flex; align-items: center; gap: 12px; }
.dl-brand img { width: 40px; height: 40px; border-radius: 10px; }
.dl-brand b { font-family: var(--serif); font-size: 20px; letter-spacing: 0.08em; }
.dl-brand i {
  padding-left: 12px;
  border-left: 1px solid var(--line);
  font-style: normal;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.dl h2 { margin-top: 26px; font-size: clamp(26px, 2.8vw, 34px); line-height: 1.34; }
.dl-desc { margin-top: 14px; max-width: 40ch; color: var(--muted); font-size: 14.5px; line-height: 1.85; }
.btn-wide { width: 100%; max-width: 320px; margin-top: 26px; padding: 15px 24px; }
.dl-note { margin-top: 14px; font-size: 12.5px; color: var(--muted); }

.dl-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 24px;
  align-content: center;
}
.dl-specs div { padding-top: 12px; border-top: 1px solid var(--line); }
.dl-specs dt { font-size: 11px; letter-spacing: 0.16em; color: var(--muted); }
.dl-specs dd { margin-top: 7px; font-size: 14.5px; font-weight: 600; }

/* ---------- 问答 ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.sign {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(180, 82, 44, 0.5);
  border-radius: 50%;
}
.sign::before,
.sign::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--terra);
}
.sign::before { width: 8px; height: 1px; transform: translate(-50%, -50%); }
.sign::after { width: 1px; height: 8px; transform: translate(-50%, -50%); transition: opacity 0.2s ease; }
details[open] .sign::after { opacity: 0; }
.faq details p {
  max-width: 74ch;
  padding: 0 60px 24px 4px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.9;
}

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 108px;
  padding: 48px 0 44px;
  background: rgba(33, 26, 20, 0.03);
  border-top: 2px solid var(--ink);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 48px;
}
.foot-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.foot-logo img { width: 34px; height: 34px; border-radius: 9px; }
.foot-logo b { font-family: var(--serif); font-size: 18px; letter-spacing: 0.08em; }
.foot-brand p:last-child { max-width: 34ch; color: var(--muted); font-size: 13.5px; line-height: 1.85; }

.foot-links,
.foot-note { display: flex; flex-direction: column; gap: 8px; }
.foot-links p,
.foot-note p:first-child {
  margin-bottom: 4px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.foot-links a { color: var(--ink-2); font-size: 13.5px; text-decoration: none; }
.foot-links a:hover { color: var(--terra); }
.foot-note p:not(:first-child) { max-width: 38ch; color: var(--muted); font-size: 13px; line-height: 1.8; }

/* ---------- 平板 ---------- */
@media (max-width: 1080px) {
  .shell { padding: 0 32px; }
  .hero-grid { gap: 48px; }
  .spec-line { gap: 0 24px; }
  .shelf { column-gap: 40px; }
  .ui-row { gap: 44px; }
  .dl { gap: 40px; padding: 40px 36px; }
  .band-inner { gap: 44px; }
}

@media (max-width: 960px) {
  .bar-inner { height: 70px; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 32px 20px;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 32px rgba(33, 26, 20, 0.14);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; font-size: 15px; border-bottom: 1px solid var(--line-2); }
  .nav a::after { display: none; }
  .nav .cta { margin-top: 16px; padding: 12px 20px; text-align: center; border-bottom: 0; }
  .burger { display: flex; }

  .hero { padding-top: 52px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 46px; }
  .hero-art { justify-content: center; }
  .shot { width: min(100%, 336px); }
  .shot figcaption { text-align: center; }
  .spec-line { margin-top: 34px; }

  .sec { padding-top: 88px; }
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; }
  .ui-row { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ui-card { max-width: 440px; margin-inline: auto; }
  .band-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .band-pic { justify-self: start; max-width: 260px; }
  .dl { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .foot-grid { grid-template-columns: 1.2fr 1fr; gap: 36px; }
  .foot-note { grid-column: 1 / -1; }
}

/* ---------- 手机 ---------- */
@media (max-width: 720px) {
  .hero h1 { font-size: clamp(52px, 15vw, 72px); }
  .hero-art { padding-left: 0; }
  .shot { width: min(100%, 300px); }
  .shot-tag { display: none; }

  .shelf { grid-template-columns: minmax(0, 1fr); }
  .shelf-item:nth-last-child(-n + 2) { border-bottom: 0; }
  .shelf-item:last-child { border-bottom: 1px solid var(--line); }
  .feat-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .strip { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .strip img { aspect-ratio: 3 / 2; }

  .band { margin-top: 84px; padding: 64px 0; }
  .sec { padding-top: 76px; }
  .foot { margin-top: 84px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
}

@media (max-width: 440px) {
  .shell { padding: 0 20px; }
  .bar-inner { height: 66px; }
  .brand img { width: 34px; height: 34px; border-radius: 9px; }
  .brand-txt b { font-size: 19px; }

  .hero { padding-top: 44px; }
  .desc { font-size: 15px; }
  .acts { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .spec-line { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }

  .shelf-item { grid-template-columns: 68px minmax(0, 1fr); gap: 14px; padding: 17px 0; }
  .shelf dt { font-size: 20px; }

  .ui-list li { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 16px 0; }
  .ui-card figcaption { font-size: 11.5px; }

  .dl { padding: 30px 20px 28px; box-shadow: 8px 8px 0 rgba(33, 26, 20, 0.88); }
  .dl-brand i { display: none; }
  .dl-specs { gap: 20px 18px; }
  .btn-wide { max-width: 100%; }

  .faq summary { font-size: 15px; padding: 19px 2px; }
  .faq details p { padding: 0 34px 22px 2px; }
  .band-pic { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition: none !important; animation: none !important; }
}
