/* 骂了吗 · WouldItShip — accent-driven, same design family as hub/drama/finance.
   Single --accent (orange) drives all tones. --shell 1100, --pad clamp(14-22), --radius 14. */
:root {
  color-scheme: light;
  --paper: #f7efe6;
  --paper-soft: #fffaf3;
  --ink: #241a12;
  --ink-soft: #3e3024;
  --muted: #74655a;
  --line: rgba(120, 70, 30, 0.2);
  --line-soft: rgba(120, 70, 30, 0.1);
  --accent: #e0712b;
  --accent-deep: #b4561a;
  --accent-soft: #f0a96f;
  --term-bg: #1d140d;
  --term-ink: #f3e3d3;
  --good: #3f9d6b;
  --bad: #d4452f;
  --card: rgba(255, 250, 243, 0.9);
  --shell: 1100px;
  --pad: clamp(14px, 1.4vw, 22px);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100vw; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Noto Serif SC", "Songti SC", "Microsoft YaHei", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -8rem, rgba(224, 113, 43, 0.16), transparent 32rem),
    radial-gradient(circle at 86% 28%, rgba(240, 169, 111, 0.12), transparent 28rem),
    radial-gradient(circle at 10% 82%, rgba(180, 86, 26, 0.07), transparent 26rem),
    linear-gradient(rgba(36, 26, 18, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, auto, 28px 28px, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  background-image: radial-gradient(circle, rgba(36, 26, 18, 0.18) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  mix-blend-mode: multiply;
}

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

.shell, .header-shell {
  width: min(100% - var(--pad) * 2, var(--shell));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(120, 70, 30, 0.26);
  background: rgba(247, 239, 230, 0.92);
  backdrop-filter: blur(18px);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 60px; height: 40px; object-fit: contain; object-position: right center; }
.brand span { display: flex; flex-direction: column; gap: 2px; line-height: 1.1; }
.brand strong { font-size: 16px; letter-spacing: 0.04em; }
.brand em {
  font-style: normal; font-size: 12px; letter-spacing: 0.24em; color: var(--accent);
  font-family: "Inter", "Trebuchet MS", sans-serif; font-weight: 700;
}

nav { display: flex; gap: clamp(16px, 2.2vw, 28px); color: var(--muted); font-size: 14px; }
nav a:hover { color: var(--accent-deep); }

.hero { position: relative; padding: clamp(60px, 8vw, 96px) 0 clamp(48px, 7vw, 80px); overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.32; pointer-events: none; }

.hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}

.eyebrow {
  margin: 0 0 16px; color: var(--accent); font-weight: 800; font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase;
  font-family: "Inter", "Trebuchet MS", sans-serif;
}

h1, h2, p { margin-top: 0; }
h1 {
  margin-bottom: 22px; max-width: none;
  font-size: clamp(28px, 4.6vw, 58px); line-height: 1.08; letter-spacing: -0.01em;
  word-break: normal; overflow-wrap: anywhere;
}

.summary { max-width: 600px; margin-bottom: 0; color: var(--ink-soft); font-size: clamp(16px, 1.8vw, 20px); line-height: 1.78; }
.summary strong { color: var(--ink); font-weight: 700; }
.summary code {
  font-family: "Cascadia Mono", "JetBrains Mono", monospace; font-size: 0.9em;
  padding: 2px 6px; border-radius: 4px; background: rgba(224, 113, 43, 0.12);
  color: var(--accent-deep); border: 1px solid rgba(224, 113, 43, 0.24);
}

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

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border: 1px solid var(--line); border-radius: 10px;
  font-weight: 800; font-size: 15px; transition: transform 180ms ease, box-shadow 180ms ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(180, 86, 26, 0.18); }
.button.primary {
  color: var(--term-ink); background: var(--term-bg); border-color: var(--term-bg);
  font-family: "Cascadia Mono", "JetBrains Mono", monospace; gap: 8px;
}
.button.primary::before { content: "$"; color: var(--accent-soft); }
.button.ghost { color: var(--ink); background: rgba(255, 255, 255, 0.78); border-color: rgba(180, 86, 26, 0.3); }
.button.ghost:hover { background: #fff; border-color: rgba(180, 86, 26, 0.55); }

/* roast card (hero right) — 终端样张 */
.roast {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 32px 80px rgba(180, 86, 26, 0.18); background: var(--term-bg);
  font-family: "Cascadia Mono", "JetBrains Mono", "Microsoft YaHei", monospace;
}
.roast-bar {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  background: #2a1d12; border-bottom: 1px solid rgba(243, 227, 211, 0.12);
}
.roast-bar i { width: 11px; height: 11px; border-radius: 50%; background: #5a4636; }
.roast-bar i:nth-child(1) { background: #d4452f; }
.roast-bar i:nth-child(2) { background: #e0a13a; }
.roast-bar i:nth-child(3) { background: #3f9d6b; }
.roast-bar span { margin-left: auto; color: #9b8470; font-size: 11px; letter-spacing: 0.06em; }
.roast-body { padding: 18px 18px 22px; font-size: 13px; line-height: 1.65; color: var(--term-ink); }
.roast-body .ln { margin: 0 0 6px; white-space: pre-wrap; word-break: break-word; }
.roast-body .cmd { color: var(--accent-soft); }
.roast-body .cmd::before { content: "$ "; color: #9b8470; }
.roast-body .ok { color: var(--good); }
.roast-body .err { color: var(--bad); }
.roast-body .dim { color: #a89080; }
.roast-body .verdict {
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(243, 227, 211, 0.16);
  color: #f3d9c0; font-style: italic;
}
.roast-body .verdict b { color: var(--accent-soft); font-style: normal; }

.section { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.section-heading { max-width: 920px; margin: 0 auto 44px; text-align: center; }
.section-heading h2 { margin-bottom: 14px; }
.section-sub { margin: 0; color: var(--ink); font-size: 16px; font-weight: 500; line-height: 1.7; }

h2 {
  max-width: 980px; margin: 0 auto;
  font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -0.005em; word-break: keep-all;
}

.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 16px; }
.why-grid article {
  display: flex; flex-direction: column; gap: 10px; padding: 26px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.why-grid article:hover { transform: translateY(-3px); box-shadow: 0 22px 48px rgba(180, 86, 26, 0.12); }
.why-tag {
  align-self: flex-start; padding: 4px 10px; border-radius: 999px;
  font-family: "Inter", "Trebuchet MS", sans-serif; font-size: 11px; font-weight: 800; letter-spacing: 0.12em;
  color: var(--accent-deep); background: rgba(224, 113, 43, 0.14); border: 1px solid rgba(224, 113, 43, 0.3);
}
.why-grid strong { font-size: 17px; color: var(--ink); line-height: 1.4; }
.why-grid p { margin: 0; color: var(--ink-soft); line-height: 1.7; font-size: 14px; }
.why-grid em { font-style: normal; color: var(--accent-deep); font-weight: 600; }

.flow-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 16px;
}
.flow-grid li {
  display: flex; flex-direction: column; gap: 10px; padding: 26px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.flow-grid li:hover { transform: translateY(-3px); box-shadow: 0 22px 48px rgba(180, 86, 26, 0.12); }
.flow-num { font-family: "Inter", "Trebuchet MS", sans-serif; font-size: 11px; font-weight: 800; letter-spacing: 0.18em; color: var(--accent); }
.flow-grid strong { font-size: 20px; color: var(--accent-deep); }
.flow-grid strong code {
  font-family: "Cascadia Mono", "JetBrains Mono", monospace; font-size: 0.7em;
  color: var(--accent-deep); background: rgba(224, 113, 43, 0.1); padding: 2px 6px; border-radius: 4px;
  border: 1px solid rgba(224, 113, 43, 0.2); margin-left: 6px; letter-spacing: 0;
}
.flow-grid p { margin: 0; color: var(--ink-soft); line-height: 1.7; font-size: 14px; flex: 1; }

.install-block { max-width: 880px; margin: 0 auto; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.install-block pre {
  margin: 0; padding: 20px; border-radius: 10px; background: var(--term-bg);
  border: 1px solid rgba(180, 86, 26, 0.32); overflow-x: auto;
  font-family: "Cascadia Mono", "JetBrains Mono", monospace; font-size: 14px; line-height: 1.75; color: var(--term-ink);
}
.install-block pre code { background: transparent; border: none; padding: 0; color: inherit; font-size: inherit; }
.install-block .c { color: #a89080; }
.install-note { margin: 18px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
.install-note code {
  font-family: "Cascadia Mono", "JetBrains Mono", monospace; font-size: 0.92em;
  padding: 2px 6px; border-radius: 4px; background: rgba(224, 113, 43, 0.1);
  color: var(--accent-deep); border: 1px solid rgba(224, 113, 43, 0.2);
}

.stack-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 900px; margin: 0 auto; }
.stack-grid article {
  padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.stack-grid article:hover { transform: translateY(-3px); box-shadow: 0 22px 48px rgba(180, 86, 26, 0.12); }
.stack-grid strong { display: block; font-size: 18px; color: var(--accent-deep); letter-spacing: 0.02em; }
.stack-grid code {
  display: inline-block; margin-top: 8px;
  font-family: "Cascadia Mono", "JetBrains Mono", monospace; font-size: 12px; color: var(--ink-soft);
}
.stack-foot { margin: 22px auto 0; max-width: 720px; text-align: center; color: var(--muted); font-size: 13px; }

.safety { background: rgba(212, 69, 47, 0.05); }
.safety-block { max-width: 880px; margin: 0 auto; padding: 28px 30px; border: 1px solid rgba(212, 69, 47, 0.35); border-radius: var(--radius); background: rgba(255, 250, 243, 0.7); }
.safety-block h2 { text-align: left; max-width: none; margin: 0 0 14px; font-size: clamp(22px, 2.6vw, 30px); }
.safety-block .warn { color: var(--bad); font-weight: 800; }
.safety-block p { margin: 0 0 12px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.78; }
.safety-block p:last-child { margin-bottom: 0; }
.safety-block strong { color: var(--ink); }
.safety-block code {
  font-family: "Cascadia Mono", "JetBrains Mono", monospace; font-size: 0.9em;
  padding: 2px 6px; border-radius: 4px; background: rgba(212, 69, 47, 0.1);
  color: var(--bad); border: 1px solid rgba(212, 69, 47, 0.24);
}

.scene-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: clamp(28px, 4vw, 56px); align-items: start; }
.scene-panel h2 { text-align: left; margin: 0 0 18px; max-width: 720px; }
.scene-panel p { color: var(--ink-soft); line-height: 1.8; font-size: 17px; max-width: 620px; }
.scene-panel p strong { color: var(--ink); font-weight: 700; }
.step-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.step-list li { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 16px; align-items: baseline; color: var(--ink); }
.step-list span { color: var(--accent); font-weight: 800; font-family: "Inter", "Trebuchet MS", sans-serif; font-size: 13px; letter-spacing: 0.16em; min-width: 56px; }

.note { background: rgba(255, 250, 243, 0.6); }
.note p { max-width: 820px; margin: 0 auto; color: var(--ink-soft); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.75; text-align: center; }
.note strong { color: var(--ink); }

.footer { padding: 36px 0 30px; color: var(--muted); border-top: 1px solid var(--line); font-size: 14px; }
.footer-shell { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(20px, 4vw, 40px); }
.footer-brand { display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
.footer-brand strong { font-size: 15px; letter-spacing: 0.04em; }
.footer-brand span { color: var(--muted); font-size: 13px; }
.footer-nav { justify-self: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; font-size: 13px; }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.footer-meta a { color: var(--ink); font-weight: 600; }

@media (max-width: 1100px) {
  .why-grid, .flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .hero-shell, .scene-panel { grid-template-columns: 1fr; }
  .scene-panel h2 { text-align: center; }
}
@media (max-width: 720px) {
  .footer-shell { grid-template-columns: 1fr; text-align: center; }
  .footer-meta { align-items: center; }
}
@media (max-width: 620px) {
  :root { --pad: 14px; }
  .header-shell { flex-wrap: wrap; gap: 12px; }
  nav { width: 100%; justify-content: space-between; gap: 12px; }
  .why-grid, .flow-grid, .stack-grid { grid-template-columns: 1fr; }
}

/* mobile overflow safety */
p, dd, em, strong, .summary, .section-sub, .why-grid p, .flow-grid p, .roast-body .ln, .install-note, .safety-block p {
  word-break: break-word;
  overflow-wrap: anywhere;
}

@media (max-width: 360px) {
  :root { --pad: 12px; }
  h1 { font-size: clamp(26px, 7vw, 40px); }
  .roast-body, .install-block { padding: 16px; }
  .safety-block { padding: 20px 18px; }
}
