/* 传奇接单工作室 · 统一设计系统 */
:root {
  --bg: #070A0F;
  --panel: #0F1520;
  --panel-2: #121A28;
  --border: #1C2738;
  --border-soft: #243044;
  --text: #E8EEF7;
  --muted: #8B9BB0;
  --gold: #D4A017;
  --gold-dim: rgba(212, 160, 23, 0.18);
  --blue: #4C8DFF;
  --blue-dim: rgba(76, 141, 255, 0.14);
  --ok: #3DDC97;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --mono: "SF Mono", "Cascadia Code", "Consolas", monospace;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 15% -10%, rgba(76, 141, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(212, 160, 23, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(76, 141, 255, 0.05), transparent 60%);
}
a { color: var(--blue); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 10, 15, 0.82);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--gold), #a67c00 40%, var(--blue));
  box-shadow: 0 0 24px rgba(212, 160, 23, 0.35);
  position: relative;
}
.brand-mark::after {
  content: "CQ";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #070A0F;
  letter-spacing: -0.04em;
}
.brand span { font-size: 0.95rem; }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  font-size: 0.88rem;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--gold-dim);
  border: 1px solid rgba(212, 160, 23, 0.45);
  color: var(--gold) !important;
  font-size: 0.85rem;
  font-weight: 600;
}
.nav-cta:hover { background: rgba(212, 160, 23, 0.28); color: #f0c14a !important; }

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold);
}
.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  line-height: 1.25;
  font-weight: 750;
  letter-spacing: -0.02em;
  max-width: 18em;
}
.hero-lead {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 42em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.meta-row strong { color: var(--text); font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.72rem 1.25rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 650;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, background .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-gold {
  background: linear-gradient(180deg, #e0b12a, var(--gold));
  color: #1a1200 !important;
  box-shadow: 0 8px 28px rgba(212, 160, 23, 0.35);
}
.btn-gold:hover {
  background: linear-gradient(180deg, #f0c14a, #d4a017);
  color: #1a1200 !important;
}
.btn-ghost {
  background: transparent;
  border-color: var(--border-soft);
  color: var(--text) !important;
}
.btn-ghost:hover {
  border-color: var(--blue);
  background: var(--blue-dim);
  color: var(--text) !important;
}
.btn-blue {
  background: var(--blue-dim);
  border-color: rgba(76, 141, 255, 0.4);
  color: #9bbfff !important;
}
.btn-blue:hover { background: rgba(76, 141, 255, 0.25); }

/* Sections */
.section { padding: 3rem 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  letter-spacing: -0.01em;
}
.section-head p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 36em;
}

/* Cards / Grid */
.grid {
  display: grid;
  gap: 1rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: linear-gradient(165deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 160, 23, 0.45), transparent);
  opacity: 0.7;
}
.card:hover { border-color: var(--border-soft); transform: translateY(-2px); }
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.card .tag {
  display: inline-block;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--blue);
  background: var(--blue-dim);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}
.card-link {
  display: block;
  color: inherit;
  height: 100%;
}
.card-link:hover { color: inherit; }
.card-link .more {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
}

/* Feature list */
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.feature-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.feature-list .dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 0.55rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(212, 160, 23, 0.6);
}
.feature-list strong { display: block; color: var(--text); font-size: 0.95rem; }
.feature-list span { color: var(--muted); font-size: 0.88rem; }

/* Prose */
.prose {
  color: var(--muted);
  font-size: 1rem;
  max-width: 48em;
}
.prose p { margin: 0 0 1rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 650; }

/* CTA band */
.cta-band {
  margin: 2.5rem 0 0;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 160, 23, 0.35);
  background:
    linear-gradient(135deg, rgba(212, 160, 23, 0.1), rgba(76, 141, 255, 0.08)),
    var(--panel);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.cta-band h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}
.cta-band p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.qq-num {
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  counter-reset: step;
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  letter-spacing: 0.08em;
}
.step h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.88rem; }

/* Matrix home */
.matrix-group { margin-bottom: 2.25rem; }
.matrix-group h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.matrix-group h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Related */
.related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.related a {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  font-size: 0.85rem;
}
.related a:hover {
  border-color: rgba(76, 141, 255, 0.45);
  color: var(--text);
  background: var(--blue-dim);
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* Breadcrumb */
.breadcrumb {
  padding: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 0.4rem; opacity: 0.5; }

/* Quote table-ish */
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.price-table th, .price-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}
.price-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.price-table td { color: var(--text); }
.price-table tr:last-child td { border-bottom: none; }
.price-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

/* Misc */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: var(--blue-dim);
  color: #9bbfff;
  border: 1px solid rgba(76, 141, 255, 0.25);
}
.divider {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

/* FAQ blocks */
.faq-list { display: flex; flex-direction: column; gap: 0.85rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 1.1rem 1.25rem;
}
.faq-item h3 {
  margin: 0 0 0.55rem;
  font-size: 1.02rem;
  color: var(--text);
  font-weight: 650;
}
.faq-item h3::before {
  content: "问：";
  color: var(--gold);
  font-weight: 700;
  margin-right: 0.15rem;
}
.faq-item .faq-a {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}
.faq-item .faq-a::before {
  content: "答：";
  color: var(--blue);
  font-weight: 650;
}

/* Demand checklist template */
.demand-box {
  border: 1px solid rgba(212, 160, 23, 0.35);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(212,160,23,0.08), var(--panel));
  padding: 1.25rem 1.35rem;
}
.demand-box h2 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.demand-box > p { margin: 0 0 0.85rem; color: var(--muted); font-size: 0.92rem; }
.demand-box pre {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: #0A0E16;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: auto;
}

/* Footer boundary */
.footer-boundary {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.65;
  max-width: 52rem;
}
.footer-boundary strong { color: var(--gold); font-weight: 650; }

button.btn { font: inherit; cursor: pointer; }
