/* ==========================================================================
   Haste × The Boys Character Pack — showcase site
   纯静态站点样式：无外部依赖，离线双击 index.html 可用
   ========================================================================== */

:root {
  --bg: #06080d;
  --bg-2: #0a0e16;
  --panel: #0f141f;
  --panel-2: #141b29;
  --line: #1f2937;
  --line-2: #2c3a4f;
  --text: #eef1f6;
  --muted: #a3adc0;
  --red: #d92c35;
  --red-2: #f0434d;
  --red-dark: #8f1d24;
  --navy: #274690;
  --blue: #3f74e0;
  --gold: #d4a94e;
  --green: #3fbf7f;
  --radius: 16px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", Consolas, "SF Mono", Menlo,
    "Courier New", monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

/* ---- 中英切换：按 html[lang] 显示对应语言 ---- */
html[lang="en"] [data-lang="zh"] { display: none !important; }
html[lang="zh-CN"] [data-lang="en"] { display: none !important; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: rgba(217, 44, 53, 0.12);
  border: 1px solid rgba(217, 44, 53, 0.25);
  border-radius: 6px;
  padding: 0.08em 0.4em;
  color: #f3b8bb;
  word-break: break-all;
}

.container {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

/* ===================== Header ===================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(6, 8, 13, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(6, 8, 13, 0.92);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  white-space: nowrap;
}
.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--red);
  box-shadow: 0 0 14px rgba(217, 44, 53, 0.8);
  transform: rotate(45deg);
}
.brand-text em {
  font-style: normal;
  color: var(--red-2);
  margin-inline: 2px;
}

.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-nav a {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}
.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

#lang-toggle {
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text);
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 6px 18px;
  cursor: pointer;
  letter-spacing: 0.08em;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  flex: none;
}
#lang-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(217, 44, 53, 0.45);
}
#lang-toggle:active { transform: translateY(0); }

/* ===================== Hero ===================== */

.hero {
  position: relative;
  padding: 148px 0 96px;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(39, 70, 144, 0.28), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(143, 29, 36, 0.22), transparent 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 70%);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero-glow-red {
  width: 420px;
  height: 420px;
  right: -80px;
  top: -120px;
  background: rgba(217, 44, 53, 0.20);
}
.hero-glow-navy {
  width: 520px;
  height: 520px;
  left: -160px;
  bottom: -220px;
  background: rgba(39, 70, 144, 0.22);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 4px 14px;
  background: rgba(255, 255, 255, 0.03);
}
.badge-red {
  color: #ffd7d9;
  border-color: rgba(217, 44, 53, 0.55);
  background: rgba(217, 44, 53, 0.14);
}

.hero-title {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  animation: rise 0.7s ease both;
}
.t-haste {
  display: block;
  font-style: italic;
  color: var(--text);
  text-shadow: 0 0 40px rgba(63, 116, 224, 0.35);
}
.t-cross {
  display: block;
  color: var(--gold);
  font-size: 0.42em;
  margin: 0.1em 0 0.08em 0.12em;
  letter-spacing: 0.3em;
}
.t-boys {
  display: block;
  color: var(--red-2);
  text-shadow: 0 0 46px rgba(217, 44, 53, 0.5);
  letter-spacing: 0.02em;
}

.hero-tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 18px;
  animation: rise 0.7s 0.08s ease both;
}
.hero-lead {
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 28px;
  animation: rise 0.7s 0.16s ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
  animation: rise 0.7s 0.24s ease both;
}
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 12px;
  padding: 12px 26px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--red-dark), var(--red) 60%, #e8555f);
  box-shadow: 0 10px 30px rgba(217, 44, 53, 0.35);
}
.btn-primary:hover { box-shadow: 0 14px 38px rgba(217, 44, 53, 0.5); }
.btn-ghost {
  color: var(--text);
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { border-color: var(--muted); }

.hero-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
  animation: rise 0.7s 0.32s ease both;
}
.hero-stats li {
  background: rgba(15, 20, 31, 0.85);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-stats strong {
  font-family: var(--font-mono);
  font-size: 0.98rem;
  color: var(--text);
  letter-spacing: 0.02em;
}
.hero-stats span { font-size: 0.8rem; color: var(--muted); }

.hero-figure { text-align: center; animation: rise 0.8s 0.2s ease both; }
.poster-frame {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  background: #05080f;
  padding: 10px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(217, 44, 53, 0.12);
  max-width: 540px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
}
.poster-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  padding: 1px;
  background: linear-gradient(160deg, rgba(217, 44, 53, 0.55), transparent 40%, rgba(63, 116, 224, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.poster-frame img {
  width: calc(50% - 6px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.65));
}
.poster-frame img:first-child {
  background: radial-gradient(120% 90% at 50% 115%, rgba(217, 44, 53, 0.3), transparent 62%);
}
.poster-frame img:last-child {
  background: radial-gradient(120% 90% at 50% 115%, rgba(63, 116, 224, 0.3), transparent 62%);
}
.hero-figure figcaption {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--muted);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ===================== Sections ===================== */

.section { padding: 88px 0; }
.section-alt {
  background:
    radial-gradient(900px 400px at 50% -20%, rgba(39, 70, 144, 0.10), transparent 60%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}

.section-head { margin-bottom: 44px; }
.kicker {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red-2);
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  font-weight: 900;
  letter-spacing: 0.01em;
}
.stripe-bar {
  width: 132px;
  height: 6px;
  border-radius: 3px;
  margin-top: 14px;
  background: repeating-linear-gradient(
    -45deg,
    var(--red) 0 12px,
    #f2ede3 12px 24px
  );
}
.section-intro {
  margin-top: 18px;
  color: var(--muted);
  max-width: 72ch;
}

/* ===================== Character cards ===================== */

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 900px;
}

.card {
  --accent: var(--red);
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 40px color-mix(in srgb, var(--accent) 18%, transparent);
}
.c-homelander { --accent: var(--red-2); }
.c-atrain { --accent: var(--blue); }

.card-stage {
  position: relative;
  aspect-ratio: 1 / 0.92;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 90% at 50% 115%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 62%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  border-bottom: 1px solid var(--line);
}
.card-stage::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 65%, transparent), transparent);
}
.card-stage img {
  width: 72%;
  max-width: 256px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.65));
}
.chip {
  position: absolute;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 3px 12px;
}
.chip-id {
  top: 12px;
  left: 12px;
  font-family: var(--font-mono);
  color: #ffd7d9;
  background: rgba(217, 44, 53, 0.16);
  border: 1px solid rgba(217, 44, 53, 0.5);
}
.c-atrain .chip-id {
  color: #cfe0ff;
  background: rgba(63, 116, 224, 0.16);
  border-color: rgba(63, 116, 224, 0.5);
}

.card-body { padding: 22px 22px 24px; }
.card-body h3 {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}
.card-sub {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin: 2px 0 12px;
}
.card-desc {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.meta { border-top: 1px dashed var(--line-2); }
.meta > div {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-2);
  font-size: 0.84rem;
}
.meta > div:last-child { border-bottom: 0; }
.meta dt {
  flex: none;
  color: var(--muted);
  font-weight: 600;
  min-width: 3.5em;
}
.meta dd { color: var(--text); }

/* ===================== Dependency ===================== */

.dep-panel {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.dep-copy {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.dep-copy p { color: var(--muted); }
.dep-copy strong { color: var(--text); }
.dep-note {
  font-size: 0.88rem;
  padding-left: 14px;
  border-left: 3px solid var(--navy);
}

.dep-id {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(217, 44, 53, 0.14), transparent 60%),
    var(--panel-2);
  border-left: 1px solid var(--line);
}
.dep-id-label {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.dep-id-value {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--red-2);
  letter-spacing: 0.06em;
}
.dep-id .btn { margin-top: 8px; }

/* ===================== Install steps ===================== */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  display: flex;
  gap: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s ease;
}
.step:hover { border-color: var(--line-2); }
.step-num {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  box-shadow: 0 8px 22px rgba(217, 44, 53, 0.3);
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { font-size: 0.9rem; color: var(--muted); }

.note {
  margin-top: 22px;
  font-size: 0.88rem;
  color: var(--muted);
  padding: 14px 18px;
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.faq { margin-top: 44px; }
.faq-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 15px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  font-size: 1.2rem;
  color: var(--red-2);
  font-weight: 700;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--red-2); }
.faq-item p {
  padding: 0 20px 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ===================== Progress ===================== */

.pipeline {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 40px;
}
.pipeline-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 22px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.pipeline-step strong { font-size: 0.98rem; }
.pipeline-step em {
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}
.pipeline-step.is-done {
  border-color: rgba(63, 191, 127, 0.45);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(63, 191, 127, 0.12), transparent 60%),
    var(--panel);
}
.pipeline-step.is-done em { color: var(--green); }
.pipeline-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  border: 2px solid var(--line-2);
  color: var(--muted);
  font-family: var(--font-mono);
}
.pipeline-step.is-done .pipeline-dot {
  border-color: var(--green);
  color: var(--green);
  background: rgba(63, 191, 127, 0.12);
  box-shadow: 0 0 24px rgba(63, 191, 127, 0.25);
}
.pipeline-link {
  align-self: center;
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, var(--line-2), var(--red-dark));
  border-radius: 1px;
}

.progress-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.progress-col {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.progress-col h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.progress-done { border-top: 3px solid var(--green); }
.progress-next { border-top: 3px solid var(--gold); }
.ico {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  color: var(--green);
  background: rgba(63, 191, 127, 0.14);
  border: 1px solid rgba(63, 191, 127, 0.45);
}
.ico-clock {
  color: var(--gold);
  background: rgba(212, 169, 78, 0.12);
  border-color: rgba(212, 169, 78, 0.45);
}
.progress-col ul { list-style: none; }
.progress-col li {
  position: relative;
  padding: 9px 0 9px 30px;
  font-size: 0.92rem;
  color: var(--muted);
  border-bottom: 1px dashed var(--line);
}
.progress-col li:last-child { border-bottom: 0; }
.progress-done li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--green);
  font-weight: 800;
}
.progress-next li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 1.05em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--gold);
}

/* ===================== Tech ===================== */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.tech-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  transition: border-color 0.2s ease;
}
.tech-card:hover { border-color: var(--line-2); }
.tech-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--gold);
}
.tech-card p { font-size: 0.9rem; color: var(--muted); }

/* ===================== Credits ===================== */

.credits-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}
.credits-list li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: baseline;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 22px;
}
.credit-name { font-weight: 800; font-size: 0.95rem; }
.credit-body {
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
}
.credit-body a {
  color: #9ec1ff;
  font-size: 0.85rem;
  border-bottom: 1px dotted rgba(158, 193, 255, 0.5);
}
.credit-body a:hover { color: #c7dbff; }

.disclaimer {
  border: 1px solid rgba(217, 44, 53, 0.4);
  border-left: 4px solid var(--red);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(217, 44, 53, 0.08), transparent 40%),
    var(--panel);
  padding: 24px 28px;
}
.disclaimer h3 {
  color: var(--red-2);
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.disclaimer p { font-size: 0.9rem; color: var(--muted); }

/* ===================== Footer ===================== */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 40px 0 44px;
  text-align: center;
}
.footer-brand {
  font-weight: 900;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.footer-brand span { color: var(--red-2); }
.footer-line {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-ai {
  font-size: 0.88rem;
  color: var(--text);
  letter-spacing: 0.12em;
}

/* ===================== 反馈入口（页脚链接 + 悬浮按钮） ===================== */

.footer-feedback {
  font-size: 0.88rem;
  margin-bottom: 14px;
}
.footer-feedback a {
  color: var(--red-2);
  font-weight: 600;
  padding-bottom: 1px;
  border-bottom: 1px dashed rgba(240, 67, 77, 0.5);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.footer-feedback a:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

.feedback-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(160deg, var(--red-2), var(--red) 60%, var(--red-dark));
  border: 1px solid rgba(240, 67, 77, 0.6);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 22px rgba(217, 44, 53, 0.45), 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.feedback-fab:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 10px 26px rgba(217, 44, 53, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4);
}
.feedback-fab:active { transform: translateY(0); }
.feedback-fab svg { flex: 0 0 auto; }

/* ===================== Responsive ===================== */

@media (max-width: 1020px) {
  .cards { max-width: none; }
}

@media (max-width: 880px) {
  /* 移动端单栏适配 */
  .hero { padding-top: 120px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .poster-frame { max-width: 440px; }

  .site-nav { display: none; }
  .header-inner { height: 58px; }
  #lang-toggle { margin-left: auto; }

  .section { padding: 64px 0; }

  .cards { grid-template-columns: 1fr; max-width: 560px; }

  .dep-panel { grid-template-columns: 1fr; }
  .dep-id { border-left: 0; border-top: 1px solid var(--line); }

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

  .pipeline { flex-direction: column; }
  .pipeline-link {
    width: 2px;
    height: 26px;
    background: linear-gradient(180deg, var(--line-2), var(--red-dark));
  }

  .progress-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .credits-list li { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.35rem; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .dep-copy { padding: 26px 22px; }
  .step { padding: 18px; }

  /* 悬浮反馈按钮：小屏略收紧，保持 44px 以上可点高度 */
  .feedback-fab {
    right: 14px;
    bottom: 14px;
    padding: 11px 14px;
    font-size: 0.86rem;
  }
}
