:root {
  --red: #e1352b;
  --ink: #101114;
  --paper: #f6f4f1;
  --muted: #6b6a66;
  --line: rgba(16, 17, 20, 0.12);
  --card: #ffffff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
    "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { opacity: 0.85; }
.wrap { width: min(960px, calc(100% - 2.5rem)); margin: 0 auto; }
header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.logo {
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 700; letter-spacing: 0.04em; font-size: 0.95rem;
  color: var(--ink); text-decoration: none;
}
.logo span { color: var(--red); }
.header-right { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
nav {
  display: flex; gap: 1.05rem; flex-wrap: wrap;
  font-family: system-ui, sans-serif; font-size: 0.85rem;
}
nav a { color: var(--ink); text-decoration: none; }
nav a:hover, nav a.active { color: var(--red); }
.lang-toggle {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden; font-family: system-ui, sans-serif; font-size: 0.75rem;
  font-weight: 600;
}
.lang-toggle button {
  border: none; background: transparent; color: var(--muted);
  padding: 0.4rem 0.7rem; cursor: pointer; font: inherit;
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--ink); color: var(--paper);
}
.lang-zh .i18n-en { display: none !important; }
.lang-en .i18n-zh { display: none !important; }
.hero { padding: 3.2rem 0 2.4rem; }
.eyebrow {
  font-family: system-ui, sans-serif; font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--red); margin: 0 0 1rem;
}
h1 {
  font-size: clamp(1.85rem, 4.8vw, 3rem); line-height: 1.15; font-weight: 600;
  margin: 0 0 1.15rem; letter-spacing: -0.02em;
}
h1 em { font-style: normal; color: var(--red); }
.lead { font-size: 1.12rem; max-width: 40rem; color: #2a2a2e; margin: 0 0 1.6rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }
.btn {
  font-family: system-ui, sans-serif; font-size: 0.9rem; font-weight: 600;
  border: none; border-radius: 999px; padding: 0.85rem 1.35rem; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.4rem;
  line-height: 1.2;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { opacity: 0.92; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn[aria-disabled="true"], .btn:disabled {
  opacity: 0.55; cursor: not-allowed; pointer-events: none;
}
.cred {
  display: grid; gap: 0.55rem; padding: 1.2rem 0 0;
  border-top: 1px solid var(--line);
  font-family: system-ui, sans-serif; font-size: 0.88rem; color: var(--muted);
}
.cred strong { color: var(--ink); font-weight: 600; }
section { padding: 2.6rem 0; border-top: 1px solid var(--line); }
h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem); margin: 0 0 1rem;
  letter-spacing: -0.015em;
}
h3 {
  font-family: system-ui, sans-serif; font-size: 1rem; margin: 0 0 0.45rem;
}
p { margin: 0 0 1rem; }
.grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1.4rem;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.2rem 1.25rem;
}
.card p { margin: 0; font-size: 0.95rem; color: #3a3a3e; }
.book-hero {
  display: grid; gap: 2rem; align-items: start;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
}
.cover-wrap {
  margin: 0; border-radius: 10px; overflow: hidden;
  box-shadow: 0 18px 40px rgba(16,17,20,0.16);
  border: 1px solid var(--line); background: #111;
}
.cover-wrap img {
  display: block; width: 100%; height: auto;
}
.price-box {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.75rem 1.1rem;
  margin: 0.4rem 0 1.2rem;
}
.price {
  font-family: system-ui, sans-serif; font-size: 1.35rem; font-weight: 700;
  color: var(--ink);
}
.price-note {
  font-family: system-ui, sans-serif; font-size: 0.82rem; color: var(--muted);
}
.meta-list {
  list-style: none; padding: 0; margin: 0 0 1.25rem;
  font-family: system-ui, sans-serif; font-size: 0.9rem; color: #3a3a3e;
}
.meta-list li {
  display: flex; gap: 0.55rem; padding: 0.35rem 0;
  border-bottom: 1px dashed var(--line);
}
.meta-list li:last-child { border-bottom: none; }
.meta-list strong {
  flex: 0 0 7.5rem; color: var(--muted); font-weight: 500;
}
.parts {
  counter-reset: part;
  list-style: none; padding: 0; margin: 1rem 0 0;
}
.parts li {
  padding: 0.85rem 0; border-top: 1px solid var(--line);
  display: grid; gap: 0.2rem;
}
.parts .part-label {
  font-family: system-ui, sans-serif; font-size: 0.75rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--red);
}
.parts .part-title { font-weight: 600; }
.parts .part-desc { font-size: 0.95rem; color: #3a3a3e; margin: 0; }
.callout {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--red);
  border-radius: 10px; padding: 1.1rem 1.2rem; margin: 1rem 0 0;
  font-size: 0.95rem; color: #3a3a3e;
}
.callout strong { color: var(--ink); }
.waitlist {
  background: var(--ink); color: var(--paper); border-radius: 18px;
  padding: 1.6rem 1.4rem; margin-top: 0.35rem;
}
.waitlist h2 { color: #fff; }
.waitlist p { color: rgba(246, 244, 241, 0.78); }
form { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
input[type="email"] {
  flex: 1 1 220px; min-width: 0; border: none; border-radius: 999px;
  padding: 0.85rem 1.1rem; font-size: 0.95rem; font-family: system-ui, sans-serif;
  background: #fff; color: var(--ink);
}
.note {
  font-family: system-ui, sans-serif; font-size: 0.75rem;
  color: rgba(246, 244, 241, 0.55); margin: 0.85rem 0 0;
}
.legal {
  max-width: 42rem;
  font-size: 0.98rem;
}
.legal h2 { margin-top: 2rem; }
.draft-banner {
  font-family: system-ui, sans-serif; font-size: 0.8rem;
  background: #fff3cd; color: #5c4a00; border: 1px solid #e6d28a;
  border-radius: 10px; padding: 0.75rem 1rem; margin: 1.25rem 0 0;
}
footer {
  padding: 2rem 0 3rem; border-top: 1px solid var(--line);
  font-family: system-ui, sans-serif; font-size: 0.8rem; color: var(--muted);
}
footer .brand { color: var(--ink); font-weight: 600; margin-bottom: 0.35rem; }
footer .links { display: flex; flex-wrap: wrap; gap: 0.85rem; margin: 0.75rem 0 1rem; }
footer .links a { color: var(--muted); text-decoration: none; }
footer .links a:hover { color: var(--red); }
@media (max-width: 720px) {
  .book-hero { grid-template-columns: 1fr; }
  .cover-wrap { max-width: 220px; }
  .meta-list strong { flex-basis: 6rem; }
}
@media (max-width: 560px) {
  .nav-desktop { display: none; }
  .hero { padding-top: 2.2rem; }
}
