/* 宸初科技官网 · 全站样式
   色系：米纸底 + 墨色字 + 墨绿主色 + 砖红印章
   规矩：留白优先、细线分隔、单一主色、宋体标题；贴纸只做装饰 */

:root {
  --paper: #f7f3ea;
  --paper-deep: #ebe4d4;
  --card: #fffef9;
  --ink: #2c2416;
  --ink-muted: #5c5346;
  --accent: #3d6b4f;
  --accent-soft: #e8f0eb;
  --seal: #9b3d3d;
  --gold: #b08d4f;
  --line: #e3dbc9;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(44, 36, 22, 0.08);
  --shadow-sm: 0 2px 10px rgba(44, 36, 22, 0.06);
  --layout-max: 1080px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Courier New", monospace;
  --pad: 44px;
  --pad-sm: 32px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: #2c5340; }

h1, h2, h3 { font-family: var(--font-serif); line-height: 1.35; margin: 0 0 12px; }
h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 700; letter-spacing: 0.01em; }
h2 { font-size: clamp(22px, 4vw, 26px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
li { margin-bottom: 6px; }
strong { font-weight: 700; }
small { font-size: 13px; color: var(--ink-muted); }

.wrap { max-width: var(--layout-max); margin: 0 auto; padding: 0 20px; }
.section { padding: var(--pad) 0; }
.section--alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 860px; margin-bottom: 28px; }
/* 标题下那段话要求成一段显示时用：放宽行宽，避免被折成两行两句 */
.section-head--wide { max-width: 860px; }
.section-head p { margin: 0; color: var(--ink-muted); text-wrap: pretty; }
.lead, .fee-intro, .fee-note, .case-group__note { text-wrap: pretty; }
/* 桌面端短句均衡折行，避免第二行只剩两三个字；手机端保持自然换行 */
@media (min-width: 900px) {
  .section-head p { text-wrap: balance; }
}
/* 首页「我们在做什么」引导句：桌面整句一行，移动端回落自然换行（委托 GEO 优化 仍不拆词） */
@media (min-width: 1024px) {
  .lead-nowrap { white-space: nowrap; }
}
.lead { font-size: 18px; color: var(--ink-muted); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px;
  transition: top 0.2s;
}
.skip-link:focus { top: 10px; }

/* 顶部导航 */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 243, 234, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--paper-deep);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  max-width: var(--layout-max); margin: 0 auto; padding: 12px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-family: var(--font-serif); font-size: 18px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: var(--shadow-sm); }
.brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand .brand-sub { font-family: var(--font); font-size: 10px; font-weight: 400; color: var(--ink-muted); letter-spacing: 0.22em; }
.nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 4px 14px; font-size: 13.5px; }
.nav a { color: var(--ink-muted); text-decoration: none; padding: 5px 0; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav-cta { border: 1px solid var(--accent); color: var(--accent) !important; border-radius: 999px; padding: 6px 14px !important; }
.nav-cta:hover { background: var(--accent); color: #fff !important; }
.nav-toggle { display: none; }

/* 首页导语 */
.hero { padding: 56px 0 40px; }
.hero h1 { margin-bottom: 16px; }
.hero .hero-answer {
  font-size: 17px; max-width: 880px; margin-bottom: 24px;
}
/* 首屏导语：通栏（与标题同宽）+ 下方两栏，右侧不留大片空白 */
.hero .hero-answer--split { max-width: none; }
.hero .hero-answer--split p { margin: 0 0 12px; }
.hero .hero-answer--split .hero-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; align-items: start;
}
@media (max-width: 880px) {
  .hero .hero-answer--split .hero-cols { grid-template-columns: 1fr; gap: 0; }
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 999px; font-weight: 600;
  font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer;
  font-family: var(--font);
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: #325940; color: #fff; }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* 展厅编号 / 展签 / 贴纸 */
.booth {
  display: inline-block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  background: var(--accent-soft); color: var(--accent); padding: 2px 8px; border-radius: 4px;
}
.tag {
  display: inline-block; font-size: 12px; background: var(--paper-deep); color: var(--ink-muted);
  padding: 1px 8px; border-radius: 4px; border: 1px solid var(--line);
}

/* 栏目卡片 */
.halls { display: grid; gap: 14px; }
.hall-card {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm);
  transition: transform 0.24s, box-shadow 0.24s, border-color 0.24s;
}
.hall-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d8cdb3; text-decoration: none; }
.hall-card h3 { margin: 8px 0 6px; font-size: 18px; }
.hall-card p { margin: 0; font-size: 15px; color: var(--ink-muted); }
.hall-meta { display: flex; align-items: center; gap: 8px; }

/* 信息卡与列表 */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 14px; }
.grid-2 { display: grid; gap: 16px; }
.grid-3 { display: grid; gap: 14px; }
/* 纵向卡片堆叠：用 gap 控制间距，抵消 .card + .card 的 margin，避免双份间隔 */
.stack { display: grid; gap: 14px; }
.stack > .card + .card { margin-top: 0; }
/* 手机端防溢出：grid 子项默认 min-width:auto（=min-content），
   卡内若有 min-width:560px 的表格会把整列撑破页面。置 0 让表格退回
   .table-wrap 的横向滚动，不撑破页面。 */
.grid-2 > *, .grid-3 > *, .stack > *, .halls > *, .footer-grid > * { min-width: 0; }

/* 事实清单 dl */
.facts { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 22px; }
.facts-row { display: grid; grid-template-columns: 132px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--paper-deep); }
.facts-row:last-child { border-bottom: none; }
.facts-row dt { margin: 0; font-size: 14px; color: var(--ink-muted); }
.facts-row dd { margin: 0; font-size: 15px; }

/* 表格 */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
caption { text-align: left; padding: 12px 16px 0; font-size: 13px; color: var(--ink-muted); }
th, td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--paper-deep); }
thead th { background: var(--paper-deep); color: var(--ink); font-size: 13px; font-weight: 700; white-space: nowrap; }
tbody th[scope="row"] { background: #fbf8ef; font-weight: 700; white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: none; }
td strong { color: var(--accent); }

/* 一问一答 */
.qa { border-top: 1px solid var(--line); }
.qa dt { font-weight: 700; padding: 16px 0 6px; font-size: 16px; }
.qa dd { margin: 0 0 16px; color: var(--ink-muted); font-size: 15px; }
.qa dd p:last-child { margin-bottom: 0; }

/* 面包屑 */
.crumb { font-size: 13px; color: var(--ink-muted); padding: 18px 0 0; }
.crumb a { color: var(--ink-muted); }
.crumb span[aria-hidden] { margin: 0 6px; }

/* 学习路径演示 */
.sim-step { margin-bottom: 22px; }
.sim-step h2 { font-size: 19px; margin-bottom: 10px; }
.sim-options { display: flex; flex-wrap: wrap; gap: 10px; }
.sim-opt {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 16px; font-size: 15px; cursor: pointer; font-family: var(--font); color: var(--ink);
  min-height: 44px; text-align: left;
}
.sim-opt:hover { border-color: var(--accent); }
.sim-opt[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.sim-result { margin-top: 8px; }
.sim-result .card h3:first-child { margin-top: 0; }
.sim-timeline { counter-reset: step; list-style: none; padding: 0; }
.sim-timeline li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px solid var(--paper-deep); }
.sim-timeline li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 12px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.sim-empty { color: var(--ink-muted); font-size: 15px; }

/* 页脚 */
.site-footer { border-top: 1px solid var(--line); background: var(--card); padding: 36px 0 44px; font-size: 13px; color: var(--ink-muted); }
.footer-grid { display: grid; gap: 20px; }
.footer-grid h4 { font-family: var(--font); font-size: 13px; margin: 0 0 8px; color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer-links a { color: var(--ink-muted); text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--paper-deep); margin-top: 24px; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* 复制按钮提示 */
.copy-phone { display: inline-flex; align-items: center; gap: 8px; }
.copy-tip { font-size: 13px; color: var(--accent); min-height: 1em; }

/* 入场动效 */
.reveal { opacity: 0; transform: translateY(6px); transition: opacity 0.42s ease, transform 0.42s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* 固定联系入口：移动端底部吸底
   桌面端不做悬浮按钮——电话在页脚与正文已写明，用户自行复制 */
.contact-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--card); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(44, 36, 22, 0.08);
}
.contact-bar a {
  flex: 1; text-align: center; padding: 11px 10px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
}
.contact-bar .cb-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (min-width: 900px) {
  .contact-bar { display: none; }
  body.has-contact-bar { padding-bottom: 0; }
}
@media (max-width: 899px) {
  body.has-contact-bar { padding-bottom: 68px; }
}

/* 断点 */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .halls { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  :root { --pad: 64px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .halls { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 72px 0 48px; }
}

@media (max-width: 639px) {
  :root { --pad: 40px; }
  body { font-size: 16px; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 14px; font-family: var(--font); color: var(--ink); cursor: pointer; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--card); border-bottom: 1px solid var(--line); padding: 6px 20px 14px; font-size: 15px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 10px 0; border-bottom: 1px solid var(--paper-deep); }
  .nav-cta { margin-top: 10px; text-align: center; border-bottom: none !important; }
  .facts-row { grid-template-columns: 1fr; gap: 2px; }
  .site-header .inner { position: relative; }
  table { min-width: 520px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hall-card { transition: none; }
  .hall-card:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .skip-link, .hero-actions, .nav, .copy-phone, .tag { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .section { padding: 12px 0; }
  .card, .table-wrap, .facts { box-shadow: none; border-color: #999; }
  .table-wrap { overflow: visible; }
  table { min-width: 0; }
  a { color: #000; text-decoration: none; }
}

/* 收集表（需求表 / 报名表）：纯本地组装，不提交服务器 */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 22px; }
.form-grid { display: grid; gap: 18px; margin: 0; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field > label { font-weight: 600; font-size: 15px; }
.form-field .hint { font-size: 13px; color: var(--ink-muted); font-weight: 400; }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font); font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; width: 100%;
}
.form-field textarea { min-height: 96px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 0; list-style: none; }
.form-checks label { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 400; }
.form-checks input { width: auto; }
.form-output { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--gold); }
.form-output h3 { margin: 0 0 10px; }
.form-output textarea {
  width: 100%; min-height: 210px; font-family: var(--font-mono); font-size: 13px; line-height: 1.6;
  background: var(--paper-deep); border: 1px dashed var(--gold); border-radius: 10px;
  padding: 14px; color: var(--ink);
}
.form-note { font-size: 13px; color: var(--ink-muted); }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid .span-2 { grid-column: 1 / -1; }
}

/* 委托服务两栏（2026-11-04）：两卡内容量不同，不做等高拉伸，
   右栏略宽以压短行数；收费改用自适应档位卡，去掉半宽表格的横向滚动。 */
/* 640–899px：栏宽不够，并排会把文字挤成窄条，改为上下堆叠 */
@media (min-width: 640px) and (max-width: 899px) {
  .service-grid { grid-template-columns: 1fr; }
}
/* 桌面端：右栏略宽，两卡不做等高拉伸 */
@media (min-width: 900px) {
  .service-grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
}
.service-grid .card h3 { margin-top: 0; }
.service-grid .steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.service-grid .steps li {
  counter-increment: step; position: relative; padding: 22px 0 22px 36px;
  border-bottom: 1px solid var(--paper-deep); font-size: 15px;
}
.service-grid .steps li:last-child { border-bottom: none; }
.service-grid .steps li::before {
  content: counter(step); position: absolute; left: 0; top: 23px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.fee-intro { margin: 0 0 14px; font-size: 14px; color: var(--ink-muted); }
.fee-block {
  border: 1px solid var(--line); border-radius: 10px;
  background: #fbf8ef; padding: 12px 16px; margin-bottom: 10px;
}
.fee-block--note { background: var(--card); margin-bottom: 0; }
.fee-block--note h4 { color: var(--accent); }
.fee-block h4 { margin: 0 0 6px; font-size: 15px; font-family: var(--font); }
.fee-block p { margin: 0 0 8px; font-size: 14px; color: var(--ink-muted); }
.fee-block p:last-child { margin-bottom: 0; }
.fee-block .fee-price { font-size: 16px; font-weight: 700; color: var(--accent); }
.fee-price small { font-size: 12px; font-weight: 400; color: var(--ink-muted); }
.fee-list { margin: 8px 0 0; padding-left: 20px; font-size: 14px; }
.fee-list li { margin-bottom: 5px; }
.fee-list strong { color: var(--accent); }
.fee-list s { color: var(--ink-muted); font-size: 13px; }
.fee-block .fee-note { font-size: 12.5px; }

/* 2026-11-04 第七轮：标题＋四条步骤作为一组垂直居中，标题紧跟第一条。
   上一版只把 .steps 用 auto margin 推到卡片中部，标题留在顶部，中间空出一大片。
   同时抵消 .card + .card 的 14px margin，避免两卡顶部错开。 */
.service-grid > .card + .card { margin-top: 0; }
.service-grid > .card:first-child { display: flex; flex-direction: column; justify-content: center; }
.service-grid > .card:first-child .steps { margin: 10px 0 0; }

/* 品牌调查交付清单（16 张表，整宽卡） */
.survey-deliver { margin-top: 16px; }
.survey-deliver h3 { margin-top: 0; }
.survey-deliver p { font-size: 14px; color: var(--ink-muted); }
.survey-grid { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 10px 24px; }
.survey-grid li { font-size: 14px; }
.survey-deliver .survey-note { font-size: 13px; margin-bottom: 0; }
@media (min-width: 900px) {
  .survey-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 案例分组（2026-11-04）：自营作品 / 受托项目案例 两栏之上加组标题与导语 */
.case-groups { display: grid; gap: 28px; }
.case-group__title {
  font-size: 18px; font-family: var(--font);
  color: var(--accent); margin: 0 0 4px;
  padding-left: 12px; border-left: 4px solid var(--accent-soft);
}
.case-group__note {
  margin: 0 0 16px; font-size: 14px; color: var(--ink-muted);
}
.case-group .grid-2 { margin-top: 0; }

/* 八维诊断（2026-11-04）：雷达图 + 维度清单并排 */
.diag { display: grid; gap: 22px; align-items: center; }
.diag__chart {
  margin: 0; background: #FAF7F2; border: 1px solid var(--line);
  border-radius: 12px; padding: 14px; text-align: center;
}
.diag__chart svg { width: 100%; max-width: 360px; height: auto; }
.diag__chart figcaption { margin-top: 8px; font-size: 12.5px; color: var(--ink-muted); }
.diag__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.diag__list li { font-size: 14.5px; padding-left: 16px; position: relative; }
.diag__list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent-soft);
}
.diag__list strong { color: var(--accent); }
.diag__note {
  margin: 22px 0 0; font-size: 14.5px; color: var(--ink);
  background: #fbf8ef; border: 1px solid var(--line);
  border-radius: 10px; padding: 14px 16px;
}
@media (min-width: 820px) {
  .diag { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}

/* 价格表档位（2026-11-05 第 34 轮）：窄列里也要一行一档。
   左侧规格 + 右侧「现价 划线原价」，整块不再拆成三四行。 */
.fee-list--compact { list-style: none; margin: 8px 0 0; padding: 0; }
.fee-list--compact li {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 2px 10px;
  margin: 0; padding: 5px 0;
  border-bottom: 1px dashed var(--line); font-size: 13.5px;
}
.fee-list--compact li:last-child { border-bottom: none; }
.fee-list--compact .plan-price { white-space: nowrap; }
.fee-list--compact strong { color: var(--accent); font-size: 14.5px; }
.fee-list--compact s { color: var(--ink-muted); font-size: 12.5px; margin-left: 6px; }
.fee-block--plans { margin: 16px 0 0; }
.fee-block--plans .fee-note { margin-bottom: 2px; }
.fee-block--plans .fee-list--compact { margin-top: 2px; }

/* 受托客户反馈要点（2026-11-04） */
.voice-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.voice-list li {
  font-size: 15px; color: var(--ink); position: relative;
  padding: 12px 16px 12px 44px; background: #fbf8ef;
  border: 1px solid var(--line); border-radius: 10px;
}
.voice-list li::before {
  content: "\201C"; position: absolute; left: 14px; top: 4px;
  font-size: 30px; line-height: 1; color: var(--accent); font-family: Georgia, serif;
}
