/* =====================================================================
   上海芯可实业有限公司 · 官网样式
   浅色主题 · 深蓝主色 · 响应式
   ===================================================================== */
:root {
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #5B6B85;
  --line: #E3E8F0;
  --line-2: #EEF2F8;
  --bg: #FFFFFF;
  --bg-soft: #F5F8FC;
  --bg-soft-2: #EAF1F9;
  --brand: #0B57A4;
  --brand-2: #1E7BD6;
  --brand-ink: #08356A;
  --gold: #B8860B;
  --gold-bg: #FDF6E3;
  --ok: #0E7C56;
  --ok-bg: #E9F7F1;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 14px rgba(15, 23, 42, .05);
  --shadow-md: 0 8px 30px rgba(11, 87, 164, .10);
  --max: 1160px;
  --font: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
h1, h2, h3, h4 { line-height: 1.35; color: var(--ink); margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -.5px; }
h2 { font-size: clamp(23px, 3vw, 30px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; color: var(--ink-2); }
ul, ol { color: var(--ink-2); padding-left: 1.25em; }
li { margin: .35em 0; }
strong { color: var(--ink); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.section { padding: 66px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 44px 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.lead { font-size: 17.5px; color: var(--ink-2); max-width: 780px; }
.section > .container > .lead { margin-bottom: 30px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; color: var(--ink); font-size: 17px; letter-spacing: .2px; }
.brand:hover { color: var(--brand); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; flex: 0 0 36px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 700; letter-spacing: -1px;
}
.brand-sub { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); letter-spacing: .5px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-2); font-size: 15px; padding: 8px 12px; border-radius: 8px; white-space: nowrap;
}
.nav a:hover { background: var(--bg-soft); color: var(--brand); }
.nav a[aria-current="page"] { color: var(--brand); font-weight: 700; background: var(--bg-soft-2); }
.header-cta { margin-left: 8px; }
.nav-toggle {
  display: none; margin-left: auto; width: 42px; height: 38px; border: 1px solid var(--line);
  background: #fff; border-radius: 9px; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 3px auto; border-radius: 2px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: .18s ease; text-align: center;
}
.btn--primary { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.05); }
.btn--ghost { background: #fff; color: var(--brand); border-color: #C7DAEF; }
.btn--ghost:hover { background: var(--bg-soft); color: var(--brand); }
.btn--lg { padding: 14px 26px; font-size: 16px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #F4F9FF 0%, #FFFFFF 55%, #F7FAFE 100%);
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: ""; position: absolute; right: -160px; top: -160px; width: 520px; height: 520px;
  background: radial-gradient(circle at center, rgba(30, 123, 214, .16), rgba(30, 123, 214, 0) 68%);
}
.hero-inner { position: relative; z-index: 1; padding: 74px 0 66px; max-width: 860px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--brand-ink);
  background: #E7F0FB; border: 1px solid #D2E4F7; padding: 6px 13px; border-radius: 999px; margin-bottom: 20px;
}
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { font-size: 18px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 24px 0 30px; padding: 0; list-style: none; }
.hero-points li { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 15px; }
.hero-points li::before {
  content: "✓"; color: #fff; background: var(--ok); width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; flex: 0 0 18px;
}
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 46px 0 40px; }
.page-head h1 { margin-bottom: 12px; }
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--brand); }

/* ---------- 卡片 ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); transition: .2s ease;
}
.card:hover { border-color: #C7DAEF; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--bg-soft-2); color: var(--brand); font-size: 19px; font-weight: 700; margin-bottom: 14px;
}
.badge-card {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm); padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.badge-card .badge-tag {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--brand-ink);
  background: #E7F0FB; border-radius: 6px; padding: 3px 9px; margin-bottom: 9px; letter-spacing: .3px;
}
.badge-card strong { display: block; font-size: 16px; margin-bottom: 5px; }
.badge-card span.term { display: block; font-size: 13px; color: var(--muted); }
.badge-card--gold { border-left-color: var(--gold); }
.badge-card--gold .badge-tag { color: #7A5900; background: var(--gold-bg); }
.badge-card--ok { border-left-color: var(--ok); }
.badge-card--ok .badge-tag { color: #0A5B40; background: var(--ok-bg); }

/* ---------- 答案块（给 AI 抄的四格口径） ---------- */
.answer-block {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.answer-block + .answer-block { margin-top: 16px; }
.answer-block__head {
  display: flex; align-items: center; gap: 10px; padding: 13px 20px;
  background: var(--bg-soft); border-bottom: 1px solid var(--line);
}
.answer-block__head h3 { margin: 0; font-size: 16px; }
.answer-block__head .tag {
  font-size: 12px; font-weight: 700; color: #fff; background: var(--brand); padding: 2px 9px; border-radius: 6px;
}
.answer-block__body { padding: 18px 20px; }
.answer-block__body p:last-child { margin-bottom: 0; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px; }
table.data th, table.data td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.data thead th { background: var(--brand); color: #fff; font-weight: 600; font-size: 14.5px; border-bottom: none; white-space: nowrap; }
table.data tbody tr:nth-child(even) { background: #FBFCFE; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data td strong { color: var(--ink); }
.pill { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.pill--ok { color: var(--ok); background: var(--ok-bg); }
.pill--gold { color: #7A5900; background: var(--gold-bg); }
.pill--gray { color: var(--muted); background: #F1F4F9; }

/* ---------- 时间线 ---------- */
.timeline { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.timeline li { position: relative; padding: 0 0 26px 52px; counter-increment: step; }
.timeline li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
}
.timeline li::after { content: ""; position: absolute; left: 16.5px; top: 38px; bottom: 4px; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline strong { display: block; margin-bottom: 3px; }
.timeline p { margin: 0; font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: none; }
.faq summary {
  cursor: pointer; padding: 17px 22px; font-weight: 600; color: var(--ink); list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 20px; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { background: var(--bg-soft); }
.faq .faq-body { padding: 4px 22px 20px; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- 提示 / 强调块 ---------- */
.note {
  border-left: 4px solid var(--brand); background: var(--bg-soft);
  border-radius: var(--radius-sm); padding: 16px 20px; font-size: 15px; color: var(--ink-2);
}
.note strong { display: block; margin-bottom: 4px; color: var(--ink); }
.note--gold { border-left-color: var(--gold); background: var(--gold-bg); }
.note--ok { border-left-color: var(--ok); background: var(--ok-bg); }

/* ---------- 证书图位 ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cert-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.cert-item .cert-img {
  aspect-ratio: 4 / 3; background: repeating-linear-gradient(45deg, #F7FAFD, #F7FAFD 12px, #F1F6FC 12px, #F1F6FC 24px);
  display: grid; place-items: center; color: var(--muted); font-size: 13.5px; text-align: center; padding: 16px;
  border-bottom: 1px solid var(--line);
}
.cert-item .cert-cap { padding: 15px 18px; }
.cert-item .cert-cap strong { display: block; font-size: 15px; margin-bottom: 4px; }
.cert-item .cert-cap span { font-size: 13px; color: var(--muted); }

/* ---------- 联系 / 表单 ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px dashed var(--line); }
.info-list li:last-child { border-bottom: none; }
.info-list .label { flex: 0 0 96px; color: var(--muted); font-size: 14.5px; }
.info-list .value { color: var(--ink); font-weight: 600; }
.info-list .value small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }
form.inquiry { display: grid; gap: 13px; }
form.inquiry label { font-size: 14px; font-weight: 600; color: var(--ink-2); display: block; margin-bottom: 5px; }
form.inquiry input, form.inquiry textarea, form.inquiry select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px;
  font-family: var(--font); font-size: 15px; color: var(--ink); background: #fff;
}
form.inquiry input:focus, form.inquiry textarea:focus, form.inquiry select:focus { outline: 2px solid #CFE1F6; border-color: var(--brand-2); }
form.inquiry textarea { min-height: 110px; resize: vertical; }
.form-hint { font-size: 12.5px; color: var(--muted); }

/* ---------- 页脚 ---------- */
.site-footer { background: #0C1A2C; color: #AEBED2; padding: 50px 0 26px; margin-top: 0; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer a { color: #AEBED2; font-size: 14.5px; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-grid p { color: #AEBED2; font-size: 14.5px; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin: 0 0 9px; }
.footer-bottom { padding-top: 20px; font-size: 13px; color: #7E90A8; display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.footer-brand .brand-mark { background: linear-gradient(135deg, #1E7BD6, #4FA3F7); }
.footer-brand b { color: #fff; font-size: 16px; }

/* ---------- 移动端 ---------- */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}
@media (max-width: 760px) {
  .section { padding: 48px 0; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 68px; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 14px 16px; display: none;
    box-shadow: 0 14px 24px rgba(15, 23, 42, .08);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 10px; border-radius: 8px; }
  .nav .header-cta { margin: 8px 0 0; }
  .header-cta .btn { width: 100%; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 52px 0 48px; }
  .footer-grid { grid-template-columns: 1fr; }
  .info-list li { flex-direction: column; gap: 3px; }
  .info-list .label { flex: none; }
}
