/* ============================================================
   qideai.cn 生产站样式 · 浅色专业企业风
   ============================================================ */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --ink: #16233d;
  --ink-2: #41506b;
  --muted: #6b7a95;
  --line: #e2e8f1;
  --line-strong: #cdd7e6;
  --brand: #0b5fff;
  --brand-deep: #0a2e5c;
  --brand-soft: #eaf2ff;
  --ok: #0a8f5f;
  --warn: #b45309;
  --max: 1160px;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(16, 35, 61, 0.05), 0 8px 24px rgba(16, 35, 61, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 300px;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 0.6em; color: var(--ink); }
h1 { font-size: clamp(28px, 4.2vw, 40px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: 19px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; border: 0; clip: rect(0 0 0 0); overflow: hidden;
}

.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--brand-deep); color: #fff; padding: 10px 14px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-inner { min-height: 68px; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: max-content; color: var(--ink); }
.brand img { width: 42px; height: 28px; object-fit: contain; }
.brand strong { display: block; font-size: 15px; line-height: 1.2; letter-spacing: 0.01em; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; letter-spacing: 0.16em; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  position: relative; display: inline-block; padding: 9px 12px;
  color: var(--ink-2); font-size: 14.5px; border-radius: 6px;
}
.site-nav a:hover { color: var(--brand); text-decoration: none; background: var(--brand-soft); }
.site-nav a.active { color: var(--brand); font-weight: 700; }
.site-nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--brand); border-radius: 2px;
}
.site-nav a.nav-cta {
  margin-left: 8px; color: #fff; background: var(--brand);
}
.site-nav a.nav-cta:hover { background: var(--brand-deep); color: #fff; }
.menu-button {
  display: none; margin-left: auto; width: 46px; height: 46px;
  border: 1px solid var(--line-strong); background: #fff; border-radius: 8px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0;
}
.menu-button .bar { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.menu-button[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 8px; font-weight: 700; font-size: 15.5px;
  background: var(--brand); color: #fff; border: 1px solid var(--brand);
}
.button:hover { background: var(--brand-deep); border-color: var(--brand-deep); text-decoration: none; }
.button.secondary { background: #fff; color: var(--brand-deep); border-color: var(--line-strong); }
.button.secondary:hover { border-color: var(--brand); background: var(--brand-soft); }
.button.large { min-height: 52px; padding: 0 28px; font-size: 16.5px; }

/* ---------- Hero ---------- */
.hero { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #f2f7ff 0%, #ffffff 70%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 72px 0 64px; }
.eyebrow { display: inline-block; margin-bottom: 14px; color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { font-size: 17.5px; color: var(--ink-2); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.assurance-row { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 14px; }
.assurance-row span { display: inline-flex; align-items: center; gap: 7px; }
.assurance-row span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

.hero-visual { position: relative; }
.compute-stage {
  border: 1px solid var(--line-strong); border-radius: 12px; background: #fff;
  box-shadow: var(--shadow); overflow: hidden;
}
.compute-stage .stage-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 11px; letter-spacing: 0.12em;
}
.compute-stage .stage-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.node-row { display: flex; gap: 10px; align-items: center; }
.node {
  flex: 1; border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px;
  background: var(--bg-soft); font-size: 13px; color: var(--ink-2);
}
.node b { display: block; color: var(--brand-deep); font-size: 14px; }
.node .tag { display: inline-block; margin-top: 4px; font-size: 11px; color: var(--muted); background: #fff; border: 1px solid var(--line); padding: 1px 7px; border-radius: 10px; }
.stage-link { display: flex; align-items: center; justify-content: center; color: var(--brand); font-size: 13px; font-weight: 700; }
.stage-note { display: flex; justify-content: space-between; padding: 12px 16px; background: var(--bg-soft); border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head p { color: var(--ink-2); }
.section-head.center { margin-inline: auto; text-align: center; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 1px 2px rgba(16, 35, 61, 0.04);
}
.section.alt .card { box-shadow: var(--shadow); }
.card .icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 10px; background: var(--brand-soft); margin-bottom: 14px; }
.card .icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 17.5px; }
.card p { color: var(--ink-2); font-size: 15px; margin-bottom: 0; }
.card .more { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 14px; }

.step-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 24px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: 0.1em; margin-bottom: 10px; }
.step h3 { font-size: 17px; }
.step p { color: var(--ink-2); font-size: 14.5px; margin-bottom: 0; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.matrix { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
table.matrix th, table.matrix td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.matrix thead th { background: var(--bg-soft); color: var(--brand-deep); font-size: 13.5px; }
table.matrix tbody tr:last-child th, table.matrix tbody tr:last-child td { border-bottom: 0; }
table.matrix th { font-weight: 700; color: var(--ink); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.badge.verified { background: #e6f6ee; color: var(--ok); }
.badge.planning { background: #fdf3e3; color: var(--warn); }
.badge.pending { background: #eef1f6; color: var(--muted); }

/* ---------- Boundary / CTA band ---------- */
.boundary { display: flex; align-items: center; justify-content: space-between; gap: 28px; background: var(--brand-deep); color: #fff; border-radius: 12px; padding: 40px 44px; }
.boundary h2 { color: #fff; margin-bottom: 6px; }
.boundary p { color: #c8d7f0; margin-bottom: 0; }
.boundary .button { background: #fff; color: var(--brand-deep); border-color: #fff; }
.boundary .button:hover { background: var(--brand-soft); }

/* ---------- Notices ---------- */
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink-2); font-size: 14px; margin-bottom: 22px; }
.notice strong { color: var(--ink); }
.notice.scheme { border-left: 4px solid var(--brand); }
.notice.warn { border-left: 4px solid var(--warn); background: #fffbf3; border-color: #f1e3c8; }
.notice .dot { flex: 0 0 auto; }

/* ---------- Contact / Forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-info .item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-info .item:last-child { border-bottom: 0; }
.contact-info .icon { flex: 0 0 auto; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--brand-soft); }
.contact-info .icon svg { width: 22px; height: 22px; }
.contact-info h3 { font-size: 16px; margin-bottom: 2px; }
.contact-info p { color: var(--muted); font-size: 14.5px; margin-bottom: 0; }
.contact-info a { font-weight: 700; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px; box-shadow: var(--shadow); }
.form-card h2 { margin-bottom: 6px; }
.form-card .form-note { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 6px; }
.form-row label .req { color: var(--brand); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; font: inherit; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 8px; background: #fff;
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand);
}
.form-row .hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); }
.consent input { min-height: auto; width: 18px; height: 18px; margin-top: 3px; }
.form-message { display: none; margin-top: 16px; padding: 12px 14px; border-radius: 8px; font-size: 14px; }
.form-message.ok { display: block; background: #e6f6ee; color: var(--ok); border: 1px solid #bfe6d3; }
.form-message.err { display: block; background: #fdecec; color: #b42318; border: 1px solid #f5c6c1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-deep); color: #c8d7f0; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding: 48px 0 36px; }
.site-footer h3 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer a { color: #c8d7f0; display: inline-block; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.site-footer p { color: #9fb2d4; font-size: 13.5px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; justify-content: space-between; border-top: 1px solid rgba(200, 215, 240, 0.18); padding: 18px 0 26px; color: #9fb2d4; font-size: 13px; }
.footer-legal a { color: #c8d7f0; padding: 0; }
#icpSlot a { color: #fff; }

/* ---------- Article / Legal pages ---------- */
.article { max-width: 860px; margin-inline: auto; padding: 48px 0 64px; }
.article h1 { margin-bottom: 10px; }
.article .updated { color: var(--muted); font-size: 13.5px; margin-bottom: 26px; }
.article h2 { font-size: 21px; margin-top: 34px; }
.article h3 { font-size: 17px; margin-top: 24px; }
.article ul, .article ol { padding-left: 22px; color: var(--ink-2); }
.article li { margin-bottom: 6px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(180deg, #f2f7ff 0%, #ffffff 80%); border-bottom: 1px solid var(--line); }
.page-hero .shell { padding: 52px 0 40px; }
.page-hero h1 { margin-bottom: 10px; }
.page-hero p { color: var(--ink-2); max-width: 42em; margin-bottom: 0; }
.breadcrumb { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 96px 0 110px; }
.notfound .code { font-size: clamp(64px, 12vw, 120px); font-weight: 800; color: var(--brand-soft); line-height: 1; }
.notfound h1 { margin: 8px 0 12px; }
.notfound p { color: var(--ink-2); max-width: 30em; margin: 0 auto 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .step-list { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; padding: 52px 0 48px; }
  .hero-visual { max-width: 560px; }
}

@media (max-width: 900px) {
  .menu-button { display: flex; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 2px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 12px; font-size: 16px; border-radius: 8px; }
  .site-nav a.active::after { display: none; }
  .site-nav a.nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }
  .grid-3, .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .boundary { flex-direction: column; align-items: flex-start; padding: 30px 26px; }
}

@media (max-width: 560px) {
  .shell { width: min(calc(100% - 32px), var(--max)); }
  .grid-4 { grid-template-columns: 1fr; }
  .step-list { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding: 36px 0 24px; }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 6px; }
  .form-card { padding: 22px; }
  .hero .lead { font-size: 16.5px; }
}
