/* ============================================================
   码农科技 — 内页通用组件库 (pages.css)
   依赖 style.css 的设计变量与基础组件(.wrap/.btn/.section/.sh-heading…)
   约定:hover 一律克制(边框/文字变色),不做抬起+重阴影
   ============================================================ */

/* ---------- 内页首屏(深色,上拉到透明页眉之下) ---------- */
.page-hero {
  position: relative;
  margin-top: calc(-1 * var(--header-h));
  padding-top: calc(var(--header-h) + clamp(46px, 5.5vw, 80px));
  padding-bottom: clamp(46px, 5.5vw, 76px);
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(90% 130% at 82% 6%, rgba(232,38,44,.34), rgba(232,38,44,0) 56%),
    linear-gradient(120deg, #1b0508 0%, #2a0a0d 42%, var(--ink-2) 100%);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(78% 80% at 50% 24%, #000 0%, transparent 82%);
  mask-image: radial-gradient(78% 80% at 50% 24%, #000 0%, transparent 82%);
}
.page-hero .wrap { position: relative; z-index: 1; }

.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 20px; }
.crumb a { color: rgba(255,255,255,.66); transition: color .2s; }
.crumb a:hover { color: #fff; }
.crumb i { font-style: normal; color: rgba(255,255,255,.3); }
.crumb b { color: var(--red-bright); font-weight: 600; }

.page-eyebrow { display: inline-block; font-family: var(--font-en); font-size: 12px; font-weight: 700; letter-spacing: .28em; color: var(--red-bright); margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 900; line-height: 1.16; letter-spacing: .01em; margin: 0 0 18px; }
.page-hero h1 em { font-style: normal; color: var(--red-bright); }
.page-lead { max-width: 62ch; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.9; color: rgba(255,255,255,.76); margin: 0; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.page-hero-stats { display: flex; flex-wrap: wrap; gap: clamp(26px, 4vw, 60px); margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14); }
.page-hero-stats div { display: flex; flex-direction: column; gap: 4px; }
.page-hero-stats b { font-family: var(--font-cn); font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; color: #fff; line-height: 1; }
.page-hero-stats span { font-size: 13px; color: rgba(255,255,255,.6); }

/* ---------- 页内锚点导航 ---------- */
.anchor-nav { position: sticky; top: var(--header-h); z-index: 60; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); }
.anchor-nav .wrap { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 12px; }
.anchor-nav a { padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--gray); border: 1px solid transparent; transition: color .22s, border-color .22s, background .22s; }
.anchor-nav a:hover { color: var(--red); border-color: rgba(214,31,38,.4); }
.anchor-nav a.is-active { color: #fff; background: var(--red); border-color: var(--red); }

/* ---------- 通用栅格 ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* ---------- 图标卡(浅色) ---------- */
.icard { display: flex; flex-direction: column; padding: 30px 28px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-card); transition: border-color .28s ease; }
.icard:hover { border-color: var(--red); }
.icard-ic { margin-bottom: 18px; color: var(--red); }
.icard-ic svg { width: 30px; height: 30px; stroke: var(--red); }
.icard h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin: 0 0 10px; }
.icard p { font-size: 14.5px; line-height: 1.85; color: var(--gray); margin: 0; }
.icard .card-link { margin-top: 18px; }

/* 深色图标卡 */
.icard-dark { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); box-shadow: none; }
.icard-dark h3 { color: #fff; }
.icard-dark p { color: rgba(255,255,255,.68); }
.icard-dark:hover { border-color: rgba(232,38,44,.55); background: rgba(232,38,44,.07); }

/* ---------- 编号流程 ---------- */
.step-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 30px 26px 28px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-card); transition: border-color .28s ease; }
.step:hover { border-color: var(--red); }
.step-no { display: block; font-family: var(--font-en); font-size: 30px; font-weight: 800; line-height: 1; color: rgba(214,31,38,.28); margin-bottom: 14px; }
.step h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 0 0 10px; }
.step p { font-size: 14px; line-height: 1.8; color: var(--gray); margin: 0; }

/* ---------- 图文分栏(可交替) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 4vw, 60px); align-items: center; }
.split + .split { margin-top: clamp(46px, 6vw, 88px); }
.split-media { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-card); }
.split-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split.is-rev .split-media { order: 2; }
.split-body h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; color: var(--ink); line-height: 1.3; margin: 0 0 16px; }
.split-body p { font-size: 15px; line-height: 1.9; color: var(--gray); margin: 0 0 14px; }

/* ---------- 勾选清单 ---------- */
.check-list { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 30px; font-size: 14.5px; line-height: 1.8; color: var(--ink-soft); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(214,31,38,.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d61f26' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.check-list.on-dark li { color: rgba(255,255,255,.8); }

/* ---------- 数据指标 ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat-box { padding: 28px 24px; border-radius: 16px; background: #fff; border: 1px solid var(--line); text-align: center; }
.stat-box b { display: block; font-family: var(--font-cn); font-size: clamp(26px, 3vw, 38px); font-weight: 800; color: var(--red); line-height: 1; margin-bottom: 10px; }
.stat-box span { font-size: 13.5px; color: var(--gray); }

/* ---------- FAQ(纯 CSS 折叠) ---------- */
.faq { display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; transition: border-color .25s ease; }
.faq-item[open] { border-color: rgba(214,31,38,.45); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 20px 24px; font-size: 16px; font-weight: 700; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; margin-left: auto; font-family: var(--font-en); font-size: 22px; font-weight: 600; color: var(--red); transition: transform .28s ease; }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: var(--red); }
.faq-body { padding: 0 24px 22px; font-size: 14.5px; line-height: 1.9; color: var(--gray); }

/* ---------- 发展历程 ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--red), rgba(214,31,38,.12)); border-radius: 2px; }
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -34px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--red); }
.tl-year { font-family: var(--font-en); font-size: 15px; font-weight: 800; color: var(--red); letter-spacing: .06em; }
.tl-item h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 8px 0 8px; }
.tl-item p { font-size: 14.5px; line-height: 1.85; color: var(--gray); margin: 0; }

/* ---------- 资质荣誉 ---------- */
.honor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.honor { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 14.5px; font-weight: 600; color: var(--ink-soft); transition: border-color .25s ease; }
.honor:hover { border-color: var(--red); }
.honor svg { width: 22px; height: 22px; stroke: var(--red); flex: 0 0 auto; }

/* ---------- 表格 ---------- */
.tablewrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.spec-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.spec-table th, .spec-table td { padding: 15px 20px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.spec-table thead th { background: var(--bg); color: var(--ink); font-weight: 700; white-space: nowrap; }
.spec-table td { color: var(--gray); }
.spec-table tbody tr:last-child td { border-bottom: none; }
.spec-table td strong { color: var(--ink); font-weight: 700; }

/* ---------- 表单 ---------- */
.form-card { padding: clamp(26px, 3vw, 40px); border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.field label i { color: var(--red); font-style: normal; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 14.5px; color: var(--ink);
  padding: 13px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-alt);
  transition: border-color .22s, background .22s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); background: #fff; }
.field input::placeholder, .field textarea::placeholder { color: var(--gray-faint); }
.form-note { font-size: 12.5px; color: var(--gray-soft); margin-top: 14px; line-height: 1.7; }
.form-tip { display: block; font-size: 13.5px; font-weight: 600; margin-top: 14px; }
.form-tip.is-ok { color: #1a9c5b; }
.form-tip.is-err { color: var(--red); }

/* ---------- 联系方式卡 ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ccard { padding: 28px 26px; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: border-color .28s ease; }
.ccard:hover { border-color: var(--red); }
.ccard-ic { margin-bottom: 16px; }
.ccard-ic svg { width: 26px; height: 26px; stroke: var(--red); }
.ccard h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.ccard p { font-size: 14.5px; line-height: 1.8; color: var(--gray); margin: 0; }
.ccard b { display: block; font-family: var(--font-cn); font-size: 22px; font-weight: 800; color: var(--red); margin-top: 4px; letter-spacing: .01em; }

.map-box { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(135deg, #e9e9ee, #f7f6f6); min-height: 320px; display: grid; place-items: center; text-align: center; padding: 30px; }
.map-box span { font-size: 14px; color: var(--gray-soft); line-height: 1.9; }

/* ---------- 分页 ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 46px; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; color: var(--gray); transition: border-color .22s, color .22s; }
.pager a:hover { border-color: var(--red); color: var(--red); }
.pager .is-current { background: var(--red); border-color: var(--red); color: #fff; }
.pager .is-dots { border: none; background: none; }

/* ---------- 底部 CTA 条 ---------- */
.cta-band { position: relative; overflow: hidden; color: #fff; padding-block: clamp(52px, 6vw, 86px); background: radial-gradient(90% 140% at 88% 10%, rgba(232,38,44,.4), rgba(232,38,44,0) 55%), linear-gradient(105deg, #360608 0%, #6d1013 46%, #b8181f 100%); }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(24px, 3vw, 38px); font-weight: 900; line-height: 1.25; margin: 0 0 10px; }
.cta-band p { font-size: 15.5px; color: rgba(255,255,255,.82); margin: 0; }
.cta-band .page-hero-actions { margin-top: 0; }

/* ---------- 小工具 ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-size: 13px; font-weight: 600; color: var(--red); background: rgba(214,31,38,.08); padding: 6px 14px; border-radius: 999px; }
.chip-dark { color: #fff; background: rgba(255,255,255,.1); }
.sec-alt { background: var(--white); }
.sec-gray { background: var(--bg); }
.lead-center { max-width: 70ch; margin-inline: auto; text-align: center; color: var(--gray); font-size: 15.5px; line-height: 1.9; }

/* ============================================================
   响应式(断点对齐 style.css)
   ============================================================ */
@media (max-width: 1080px) {
  .grid-4, .step-flow, .stat-row, .honor-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .contact-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.is-rev .split-media { order: 0; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4, .step-flow, .stat-row, .honor-grid, .contact-cards, .form-row { grid-template-columns: 1fr; }
  .anchor-nav { position: static; }
  .page-hero-stats { gap: 22px 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .icard, .step, .faq-item, .honor, .ccard, .anchor-nav a, .pager a { transition: none; }
}
