/* ============================================================
   康冠时代官网 · 组件样式
   依赖 styles/tokens.css。页面布局与响应式在 styles/main.css。
   ============================================================ */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding-left: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { scroll-margin-top: 84px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn-light { background: #fff; color: var(--accent); }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.btn .btn-ico { flex: none; display: inline-flex; }
.btn-block { width: 100%; margin-top: auto; }

a:focus-visible,
.btn:focus-visible,
.theme-toggle-label:focus-visible,
.faq-item summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 3px;
}

/* ---------------- 顶部导航 ---------------- */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.top-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand-logo { height: 32px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  margin-right: 8px;
}
.nav-links a {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color .18s ease;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.is-active { color: var(--accent); font-weight: 700; }
.nav-links a .nav-ext {
  font-size: 11px;
  vertical-align: super;
  opacity: .7;
}
.nav-right { display: flex; align-items: center; gap: 12px; }

.theme-toggle-label {
  appearance: none;
  border: 0;
  background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  color: var(--text-muted); cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.theme-toggle-label:hover { background: var(--surface-2); color: var(--accent); }

/* ---------------- 徽章与图标 ---------------- */
.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 22px;
}
.icon-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none;
  border-radius: 12px;
  background: var(--icon-bg);
  color: var(--accent);
}
.icon-tile.icon-lg { width: 48px; height: 48px; }
.card-title { font-size: 18px; font-weight: 700; color: var(--ink); }
.card-desc { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin-top: 10px; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.hero-points li {
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

/* ---------------- 区块标题 ---------------- */
.eyebrow {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .04em;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.28;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.01em;
  max-width: 760px;
  margin-bottom: 48px;
}
.section-lead {
  max-width: 710px;
  margin: -30px 0 40px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
}
.section-link { margin-top: 30px; color: var(--accent); font-size: 15px; font-weight: 700; }
.section-link a:hover { text-decoration: underline; }
.section-sub {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
  max-width: 720px;
  margin: -28px 0 40px;
}

/* ---------------- 卡片族 ---------------- */
.cap-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.cap-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.scn-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.scn-num {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: .02em;
  margin-bottom: 12px;
}

.why-card, .pillar {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.why-title, .pillar-title { font-size: 20px; font-weight: 700; color: var(--ink); margin: 18px 0 16px; }
.why-list li, .pillar-list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 10px;
}
.why-list li::before, .pillar-list li::before {
  content: "";
  position: absolute; left: 4px; top: 11px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}

/* ---------------- 浏览器框架截图 ---------------- */
.browser-frame {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots i {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border);
}
.browser-url {
  flex: 1;
  max-width: 380px;
  margin: 0 auto;
  padding: 5px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 12.5px;
  font-family: var(--font-mono);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.browser-frame img { width: 100%; height: auto; display: block; }
.ai-badge {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 3;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink, #0F172A);
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--border, rgba(15, 23, 42, .12));
  border-radius: 999px;
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow-sm, 0 1px 4px rgba(15, 23, 42, .10));
}

/* ---------------- 流程（How It Works / Engineering Workflow） ---------------- */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  counter-reset: flow;
}
.flow-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 18px;
}
.flow-step-no {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
}
.flow-step h3 { font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.flow-step p { margin-top: 8px; font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.flow-arrow {
  position: absolute;
  top: 34px;
  right: -13px;
  z-index: 2;
  color: var(--accent);
}

.workflow {
  display: grid;
  gap: 0;
  max-width: 720px;
  counter-reset: wf;
}
.workflow-step {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  padding: 0 0 26px;
}
.workflow-step::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.workflow-step:last-child::before { display: none; }
.workflow-no {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  z-index: 1;
}
.workflow-step h3 { font-size: 17px; font-weight: 700; color: var(--ink); }
.workflow-step h3 .wf-en {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .04em;
}
.workflow-step p { margin-top: 6px; font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ---------------- 部署选项 / 通用双卡 ---------------- */
.deploy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.deploy-card {
  display: flex;
  flex-direction: column;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}
.deploy-card.is-primary {
  border-color: color-mix(in srgb, var(--accent) 38%, var(--border));
  box-shadow: var(--shadow-md);
}
.deploy-kicker {
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.deploy-card h3 { margin-top: 10px; font-size: 22px; font-weight: 800; color: var(--ink); }
.deploy-card .deploy-price { margin-top: 14px; font-size: 15px; color: var(--text-muted); }
.deploy-card .deploy-price strong { color: var(--ink); font-size: 20px; }
.deploy-list { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 30px; }
.deploy-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
}
.deploy-list li::before {
  position: absolute;
  top: 4px;
  left: 0;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  content: "✓";
  font-size: 10px;
  font-weight: 800;
  line-height: 15px;
  text-align: center;
}

/* ---------------- 统计带（工程证据） ---------------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.stat-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  text-align: left;
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.stat-label { margin-top: 8px; font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.evidence-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 10px;
}
.evidence-list li::before {
  position: absolute;
  top: 4px;
  left: 0;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  content: "✓";
  font-size: 10px;
  font-weight: 800;
  line-height: 15px;
  text-align: center;
}
.evidence-list a { color: var(--accent); font-weight: 600; }
.evidence-list a:hover { text-decoration: underline; }

.status-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 760px;
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
}
.status-note .status-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.status-note strong { color: var(--ink); }

/* ---------------- 定价 ---------------- */
.pricing-card {
  display: flex;
  flex-direction: column;
  padding: 34px;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--border));
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.pricing-label {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 20px;
  color: var(--ink);
}
.pricing-price span { font-size: 54px; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.pricing-price small { color: var(--text-muted); font-size: 15px; font-weight: 700; }
.pricing-summary { margin-top: 12px; color: var(--text-muted); font-size: 15px; }
.pricing-list { display: flex; flex-direction: column; gap: 12px; margin: 26px 0 30px; }
.pricing-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}
.pricing-list li::before {
  position: absolute;
  top: 4px;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  content: "✓";
  font-size: 10px;
  font-weight: 800;
  line-height: 15px;
  text-align: center;
}
.pricing-rules { display: grid; gap: 14px; }
.pricing-rule {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.pricing-rule-no {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: var(--icon-bg);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}
.pricing-rule h3 { color: var(--ink); font-size: 17px; }
.pricing-rule p { margin-top: 6px; color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* ---------------- FAQ ---------------- */
.faq-list { display: grid; gap: 12px; max-width: 900px; }
.faq-item { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.faq-item summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 19px 22px;
  color: var(--ink);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  width: 20px;
  height: 20px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--accent);
  content: "+";
  font-size: 18px;
  font-weight: 500;
  line-height: 19px;
  text-align: center;
}
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 17px 22px 20px; color: var(--text-muted); font-size: 14px; line-height: 1.8; }

/* ---------------- CTA ---------------- */
.cta { background: var(--cta-bg); padding: 84px 0; }
.cta-inner { text-align: center; max-width: 760px; margin: 0 auto; }
.cta-title { font-size: clamp(24px, 3.2vw, 32px); font-weight: 800; color: var(--cta-text); line-height: 1.3; }
.cta-sub { margin: 16px auto 28px; font-size: 16px; color: var(--cta-text-muted); line-height: 1.7; max-width: 620px; }
.cta-disc { margin-top: 14px; font-size: 12px; color: var(--cta-text); }

/* ---------------- 页脚 ---------------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 56px 0 30px; }
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-logo { height: 32px; width: auto; }
.footer-tagline { margin-top: 12px; font-size: 13px; color: var(--footer-muted); }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--footer-muted);
  margin-bottom: 10px;
  transition: color .18s ease;
}
.footer-col a:hover { color: #fff; }
.footer-sep { height: 1px; background: var(--footer-line); margin: 36px 0 22px; }
.footer-bottom { display: flex; flex-direction: column; gap: 6px; }
.footer-copy { font-size: 12.5px; color: var(--footer-muted); }
.footer-beian { font-size: 12.5px; color: var(--footer-muted); }
.footer-beian a { color: var(--footer-muted); }
.footer-beian a:hover { color: #fff; }
.footer-disc { font-size: 12px; color: #7E90AE; }

/* Language links use the existing component palette. */
.footer-language { margin-bottom: 10px; }
.language-link { display: inline-block; color: var(--footer-text); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.locale-note { margin: 12px auto; padding: 0 24px; text-align: center; color: var(--text-muted); font-size: 13px; }
.locale-accent-link { color: var(--accent); font-weight: 600; }
.locale-supporting-copy { font-size: 13px; color: var(--text-muted); font-weight: 600; }
