/* ============================================================
   排版与视觉美化增强层 — 在第二轮整改基础上进一步提升精致度
   保持深蓝+金配色体系与全部内容不变，仅优化排版节奏与视觉细节
   在所有样式表最后加载
   ============================================================ */

/* ---------- 全局：滚动与文字选中 ---------- */
html { scroll-behavior: smooth; }
::selection { background: rgba(196,154,70,.28); color: var(--navy-900, #0a2242); }

/* ---------- 通用区块标题：eyebrow 金色短线 + 标题字距 ---------- */
.sec-hd .eyebrow { position: relative; display: inline-block; letter-spacing: .16em; }
.sec-hd h2 { letter-spacing: .02em; }

/* ---------- 按钮：金色渐变 + 柔和投影 + 悬浮抬升 ---------- */
.btn-gold {
  background: linear-gradient(180deg, #a37a2b 0%, #8a641e 100%) !important;
  box-shadow: 0 4px 14px rgba(138,100,30,.22);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease !important;
}
.btn-gold:hover {
  background: linear-gradient(180deg, #8a641e 0%, #6f4f16 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(138,100,30,.32);
}
.btn-gold:active { transform: translateY(0); }

/* 次级描边按钮悬浮反馈 */
.btn-outline, .btn:not(.btn-gold) { transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.btn-outline:hover, .btn:not(.btn-gold):hover { transform: translateY(-2px); }

/* ---------- 服务流程卡片：编号金属质感 + 悬浮高亮 ---------- */
.flow-step { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.flow-step::before {
  background: linear-gradient(135deg, #c49a46, #a8802f);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #c49a46;
}
.flow-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(10,34,66,.10);
  border-color: var(--gold-500, #c49a46);
}

/* ---------- 核心优势卡片：悬浮抬升 + 图标点缀 ---------- */
.adv-card { transition: transform .25s ease, box-shadow .25s ease; }
.adv-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(10,34,66,.10); }
.adv-card .ico { transition: transform .25s ease, background .25s ease; }
.adv-card:hover .ico { transform: scale(1.08); background: #e8f0fa; }

/* ---------- 成果看板：数字字体与分隔线优化 ---------- */
.result-item b { letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.result-item { position: relative; }
.result-item + .result-item::before {
  content: ""; position: absolute; left: -10px; top: 22%; height: 56%; width: 1px;
  background: rgba(255,255,255,.14);
}
@media (max-width: 720px) { .result-item + .result-item::before { display: none; } }

/* ---------- 精选案例卡片：图片缩放 + 标题过渡 ---------- */
.pick-card { transition: transform .25s ease, box-shadow .25s ease; }
.pick-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(10,34,66,.12); }
.pick-card .pic img { transition: transform .45s ease; }
.pick-card:hover .pic img { transform: scale(1.06); }
.pick-card .metric { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #f7f1e4; }
.pick-card .more { transition: color .2s ease; }
.pick-card:hover .more { color: var(--gold-600, #a8802f); }

/* ---------- FAQ：悬浮底色 + 加号反馈 ---------- */
.faq-item summary { transition: color .2s ease; }
.faq-item:hover summary { color: var(--gold-600, #a8802f); }
.faq-item summary::after { transition: transform .2s ease, color .2s ease; }
/* 收起态：悬浮时加号旋转为叉 */
.faq-item:not([open]):hover summary::after { color: var(--gold-500, #c49a46); transform: translateY(-50%) rotate(90deg); }
/* 展开态：保持减号"−"水平显示，不旋转 */
.faq-item[open] summary::after { content: "−"; color: var(--gold-600, #a8802f); transform: translateY(-50%); }

/* ---------- 咨询表单：输入框聚焦反馈 + 按钮宽度 ---------- */
.inq-form input:focus, .inq-form select:focus, .inq-form textarea:focus {
  outline: none; border-color: var(--gold-500, #c49a46) !important;
  box-shadow: 0 0 0 3px rgba(196,154,70,.15);
}
.inq-form button[type=submit] { min-width: 180px; }

/* ---------- 资料清单卡片：悬浮抬升 + 序号点 ---------- */
.dl-card { transition: transform .25s ease, box-shadow .25s ease; }
.dl-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(10,34,66,.09); }
.dl-card h3 { position: relative; padding-left: 14px; }
.dl-card h3::before {
  content: ""; position: absolute; left: 0; top: .35em; bottom: .35em; width: 3px;
  background: var(--gold-500, #c49a46); border-radius: 2px;
}

/* ---------- 服务区域简图：容器底色 ---------- */
.area-map { background: linear-gradient(180deg, #fbfcfe, #f4f8fd); border: 1px solid var(--line, #e4e9f0); border-radius: 10px; padding: 10px; }

/* ---------- 页脚：链接悬浮反馈 ---------- */
.ft a { transition: color .2s ease; }
.ft a:hover { color: var(--gold-400, #d8b467); }
/* 页脚底栏：版权 / 备案 / 入口 */
.ft-btm { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }

/* ============================================================
   第二轮：板块间距重构 — 统一节奏、消除过大留白
   覆盖 fixes.css 中偏大的 clamp(56px, 8vw, 88px)
   ============================================================ */
/* 首页常规区块：上下统一为 52px（宽屏 60px 封顶），相邻区块约 104px，紧凑协调 */
body[data-page="home"] .sec {
  padding-top: clamp(44px, 5vw, 60px) !important;
  padding-bottom: clamp(44px, 5vw, 60px) !important;
}
/* 服务卡片区紧贴 Hero，下方留白略收，避免 Hero 与卡片间断层 */
body[data-page="home"] .sec-svc { padding-top: 34px !important; padding-bottom: 50px !important; }
/* 标题与内容的间距收紧，区块内部更聚拢 */
body[data-page="home"] .sec-hd { margin-bottom: 28px !important; }
/* 深色数据带与理念带：高度收紧，与相邻白区间距更均衡 */
body[data-page="home"] .result-band { padding: 44px 0 !important; }
body[data-page="home"] .stats-band { padding: 38px 0 !important; }
body[data-page="home"] .cta-band { padding: 40px 0 !important; }
/* 各新增模块内部网格顶部间距统一为 26px */
body[data-page="home"] .flow-grid,
body[data-page="home"] .adv-grid,
body[data-page="home"] .result-grid,
body[data-page="home"] .pick-grid,
body[data-page="home"] .faq-list { margin-top: 26px !important; }
/* 精选案例区与理念带之间不留额外空隙 */
body[data-page="home"] .stats-band { margin-top: 0; }

/* 内页区块同步收紧（仅首页专用规则不覆盖内页） */
body:not([data-page="home"]) .sec { padding-top: 34px !important; padding-bottom: 34px !important; }
body:not([data-page="home"]) .sec-hd { margin-bottom: 26px !important; }

/* ---------- 移动端微调 ---------- */
@media (max-width: 720px) {
  .flow-step:hover, .adv-card:hover, .pick-card:hover, .dl-card:hover { transform: none; }
  .sec-hd h2 { font-size: 22px; }
  body[data-page="home"] .sec { padding-top: 40px !important; padding-bottom: 40px !important; }
  body[data-page="home"] .sec-svc { padding-top: 26px !important; padding-bottom: 36px !important; }
  body[data-page="home"] .sec-hd { margin-bottom: 22px !important; }
}

/* ---------- 移动端 Hero：横图无法完整展示书法字，调整构图让主体与书法字兼顾 ---------- */
@media (max-width: 720px) {
  .hero-bg img { object-position: 62% center !important; opacity: .5; }
}

/* ---------- 2026-11-22 排版美化：业务覆盖范围三卡布局 ----------
   DOM 顺序已调整为 专业领域 → 服务内容 → 服务区域（服务区域 inline 保留 grid-column:1/-1 通栏）。
   桌面端：专业领域与服务内容两列并排等高，服务区域通栏置底并改为「左说明 / 右地图」横向分栏，
   消除原「窄-通栏-窄」错落造成的右半大片空白。移动端保持单列自然堆叠。 */
@media (min-width: 901px) {
  .ab-scope { grid-template-columns: 1fr 1fr; gap: 22px; }
  /* 服务区域通栏：左右分栏 */
  .ab-scope > .ab-panel[style*="grid-column"] {
    display: grid;
    grid-template-columns: 300px 1fr;
    grid-template-rows: auto auto 1fr auto;
    column-gap: 24px;
    align-items: center;
    padding: 26px 30px;
    margin-top: 0;
  }
  .ab-scope > .ab-panel[style*="grid-column"] h3 { grid-column: 1; grid-row: 1; align-self: end; }
  .ab-scope > .ab-panel[style*="grid-column"] .en { grid-column: 1; grid-row: 2; margin: 4px 0 0; align-self: start; }
  .ab-scope > .ab-panel[style*="grid-column"] > p:not(.area-note) {
    grid-column: 1; grid-row: 3; align-self: center; margin: 0; font-size: 14px; line-height: 1.9;
  }
  .ab-scope > .ab-panel[style*="grid-column"] .area-map { grid-column: 2; grid-row: 1 / 4; margin: 0; }
  .ab-scope > .ab-panel[style*="grid-column"] .area-note {
    grid-column: 1 / -1; grid-row: 4; text-align: left; margin: 14px 0 0;
  }
}

/* ---------- 2026-11-22 排版美化：咨询表单与 FAQ ---------- */
.inq-form { padding: 30px 34px; box-shadow: 0 10px 40px rgba(10, 34, 66, .06); border-radius: 14px; }
.inq-form .inq-row { gap: 20px; margin-bottom: 4px; }
.inq-form .inq-row > div { margin-bottom: 16px; }
.inq-form label { font-size: 13.5px; letter-spacing: .2px; }
.inq-form input, .inq-form select, .inq-form textarea {
  border-radius: 8px; border-color: #d9e2ec; background: #fbfcfe; font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.inq-form input:focus, .inq-form select:focus, .inq-form textarea:focus {
  border-color: #c49a46; box-shadow: 0 0 0 3px rgba(196, 154, 70, .12); background: #fff;
}
.inq-checks { gap: 10px; flex-wrap: wrap; }
.inq-checks label {
  border: 1px solid #d9e2ec; border-radius: 22px; padding: 7px 16px; background: #fff;
  font-weight: 500; font-size: 13px; cursor: pointer; transition: all .2s; margin: 0;
  display: inline-flex; align-items: center; gap: 6px;
}
.inq-checks label:has(input:checked) { border-color: #c49a46; background: #faf3e4; color: #8a641e; }
.inq-checks input { accent-color: #c49a46; width: 14px; height: 14px; }
.inq-privacy { font-size: 12.5px; color: #7d8794; margin: 6px 0 14px; }
.inq-form button[type=submit] {
  border-radius: 8px; padding: 13px 40px; font-size: 15px; letter-spacing: 1px;
  box-shadow: 0 6px 18px rgba(138, 100, 30, .25);
}
.faq-item summary { font-size: 15px; font-weight: 600; padding: 18px 4px; }
.faq-item .faq-a { font-size: 14px; line-height: 1.85; padding-left: 4px; }
@media (max-width: 720px) {
  .inq-form { padding: 22px 18px; }
  .ab-scope > .ab-panel[style*="grid-column"] { display: flex; }
}

/* 咨询表单蜜罐字段：对人类不可见（移出视口），机器人会误填 */
.inq-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}

/* ---------- 2026-11-22 二次排版：咨询左 / FAQ 右，卡片底部对齐 ---------- */
@media (min-width: 901px) {
  .contact-duo-grid {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 34px;
    align-items: stretch;
  }
  .contact-duo-grid .duo-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .contact-duo-grid .sec-hd { text-align: left; margin-bottom: 20px; }
  .contact-duo-grid .sec-hd .desc { margin-left: 0; margin-right: 0; max-width: none; }
  .contact-duo-grid .inq-form {
    margin: 0;
    max-width: none;
    flex: 1 1 auto;
    padding: 26px 26px 24px;
  }
  .contact-duo-grid .faq-list {
    max-width: none;
    margin: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e4e9f0;
    border-radius: 14px;
    padding: 6px 22px;
    box-shadow: 0 10px 40px rgba(10, 34, 66, .06);
  }
  .contact-duo-grid .faq-item:last-child { border-bottom: 0; }
}
@media (max-width: 900px) {
  .contact-duo-grid .inq-form { max-width: 760px; margin-left: auto; margin-right: auto; }
  .contact-duo-grid .faq-list { max-width: 820px; margin-left: auto; margin-right: auto; }
}
