/* ==========================================================================
   天安信达财税 — 内页通用样式（页头横幅 + 面包屑 + 文章排版 + 双栏）
   仅承载内页壳层与文章排版，区块内容样式仍来自 home.css
   ========================================================================== */

/* ---------- 内页栏目标题：隐藏大号数字编号（首页保留，仅内页生效） ----------
   编号由 base.css 的 .sec-index::before { content: attr(data-num) } 生成；
   inner.css 仅内页引入，故在此覆盖，不影响首页。含两种变体以覆盖特异性。 */
.sec-index::before,
.sec-index--light::before,
.sec-head--center .sec-index::before { display: none; }

/* ---------- 页头横幅（实景夜景 + 中性压暗，红色仅留一丝品牌余韵） ---------- */
.page-banner {
  position: relative;
  background:
    linear-gradient(90deg, rgba(16,11,13,.78) 0%, rgba(16,11,13,.50) 48%, rgba(16,11,13,.32) 100%),
    linear-gradient(135deg, rgba(140,13,13,.12) 0%, rgba(110,0,0,.04) 100%),
    url('../assets/banner-inner.jpg') center/cover no-repeat;
  color: #fff;
  padding: 60px 0 52px;
  overflow: hidden;
}
.page-banner::after {
  content: ""; position: absolute; right: -70px; top: -70px;
  width: 260px; height: 260px; border-radius: 50%;
  background: rgba(255, 255, 255, .05); pointer-events: none;
}
.page-banner__inner { position: relative; z-index: 2; }

.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 9px;
  font-size: 13px; color: rgba(255, 255, 255, .72); margin-bottom: 18px;
}
.breadcrumb a { color: rgba(255, 255, 255, .82); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .cur { color: var(--c-gold-2); }

.page-banner__title {
  font-size: 36px; font-weight: 700; line-height: 1.25; margin: 0; color: #fff; letter-spacing: -.01em;
}
.page-banner__sub {
  margin-top: 14px; font-size: 15px; color: rgba(255, 255, 255, .8);
  max-width: 760px; line-height: 1.85;
}

/* ---------- 通用双栏（左文右卡 / 左卡右文） ---------- */
.split2 { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.split2__text h2 { font-size: 30px; line-height: 1.3; margin-bottom: 16px; }
.split2__text p { font-size: 16px; line-height: 1.9; color: var(--c-text); margin-bottom: 16px; }

/* ---------- 文章排版（资讯详情） ---------- */
.article { max-width: 860px; margin: 0 auto; }
.article__head { margin-bottom: 26px; }
.article__title { font-size: 30px; line-height: 1.35; margin: 0 0 16px; color: var(--c-ink); }
.article__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  font-size: 13.5px; color: var(--c-muted);
  padding-bottom: 20px; border-bottom: 1px solid var(--c-line);
}
.article__meta .news-card__cat { font-size: 12.5px; }
.article__body h2 { font-size: 23px; line-height: 1.4; margin: 36px 0 14px; color: var(--c-ink); }
.article__body h3 { font-size: 18px; line-height: 1.5; margin: 26px 0 10px; color: var(--c-ink); }
.article__body p { font-size: 16px; line-height: 1.95; color: var(--c-text); margin-bottom: 18px; }
.article__body ul, .article__body ol { margin: 0 0 20px; padding-left: 24px; }
.article__body ul li { list-style: disc; }
.article__body ol li { list-style: decimal; }
.article__body li { font-size: 16px; line-height: 1.9; margin-bottom: 10px; }
.article__body .lead { font-size: 18px; line-height: 1.95; color: var(--c-ink); margin-bottom: 22px; }
.article__body .callout {
  background: var(--c-brand-soft); border-left: 4px solid var(--c-brand);
  padding: 16px 20px; border-radius: 0 var(--r) var(--r) 0; margin: 24px 0;
  font-size: 15px; line-height: 1.85; color: var(--c-ink);
}
.article__body .callout b { color: var(--c-brand); }
.article__back { margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--c-line); }

/* ---------- 响应式（平板/窄屏覆盖）见文件末尾：必须在 .dsteps 等基础规则之后声明，否则被同权重后置规则覆盖 ---------- */

/* ==========================================================================
   独立详情页（服务线 / 资质行业）：每个页面只讲一件事，自成一篇
   ========================================================================== */
.detail .sec-head__desc { max-width: 860px; }
/* flex 换行网格：满行卡片与原 4 列等宽逐像素一致，末行卡片自动等分铺满——
   2/3 项页不再右侧留空列，5/6/7/9 项页尾部不再缺格，全部断点通用 */
.dlist { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 6px; }
.dlist__item {
  flex: 1 1 240px; min-width: 0;
  background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r);
  padding: 22px 24px; transition: all .25s var(--ease);
}
.dlist__item:hover { border-color: rgba(192,0,0,.35); box-shadow: 0 12px 32px rgba(0,0,0,.06); transform: translateY(-2px); }
.dlist__item h4 { font-size: 17px; color: var(--c-ink); margin-bottom: 8px; }
.dlist__item p { font-size: 14px; line-height: 1.8; color: var(--c-muted); }

.section--band { background: var(--c-band); }
.detail__sub {
  font-size: 22px; color: var(--c-ink); margin-bottom: 22px;
  position: relative; padding-left: 16px;
}
.detail__sub::before {
  content: ""; position: absolute; left: 0; top: 5px; bottom: 5px;
  width: 4px; background: var(--c-brand); border-radius: 2px;
}

.dwho { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; }
.dwho li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.8; color: var(--c-text); }
.dwho li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--c-brand); opacity: .55;
}

/* 办理流程：横向 5 步（与首页 .flow 同一横向节奏） */
.dsteps {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px;
  position: relative;
}
/* 连接线穿过编号圆心（42px 圆 → 圆心 21px），被编号实底盖住 */
.dsteps::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 21px; height: 2px;
  background: var(--c-brand); opacity: .32; z-index: 0;
}
.dsteps li {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 15px; padding: 0; border-bottom: 0;
}
.dsteps li:last-child { border-bottom: 0; }
.dsteps__no {
  flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-brand); color: #fff; font-family: var(--f-serif); font-weight: 700; font-size: 16px;
  box-shadow: 0 6px 18px rgba(192, 0, 0, .18);
  transition: transform .3s var(--ease);
}
.dsteps li:hover .dsteps__no { transform: translateY(-3px); }
.dsteps li h4 { font-size: 15.5px; color: var(--c-ink); margin-bottom: 6px; line-height: 1.45; }
.dsteps li p { font-size: 13.5px; line-height: 1.8; color: var(--c-muted); }

.faq__item {
  background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r);
  padding: 20px 22px; margin-bottom: 14px;
}
.faq__item h4 { font-size: 15.5px; color: var(--c-ink); margin-bottom: 9px; position: relative; padding-left: 26px; }
.faq__item h4::before {
  content: "Q"; position: absolute; left: 0; top: 0; color: var(--c-brand);
  font-weight: 700; font-family: var(--f-serif);
}
.faq__item p { font-size: 14px; line-height: 1.85; color: var(--c-muted); }

.drelated { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.drelated__card {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; background: var(--c-white); border: 1px solid var(--c-line);
  border-radius: var(--r); color: var(--c-ink); font-size: 15px; transition: all .25s var(--ease);
}
.drelated__card:hover { border-color: var(--c-brand); color: var(--c-brand); }
.drelated__card svg { width: 18px; height: 18px; flex: none; }

/* 索引/列表入口页 */
.idx-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 6px; }
.idx-card {
  display: block; background: var(--c-white); border: 1px solid var(--c-line);
  border-radius: var(--r); padding: 26px 28px; transition: all .25s var(--ease);
}
.idx-card:hover { border-color: rgba(192,0,0,.35); box-shadow: 0 12px 32px rgba(0,0,0,.06); transform: translateY(-2px); }
.idx-card__k { font-size: 12.5px; letter-spacing: .12em; color: var(--c-brand); text-transform: uppercase; }
.idx-card__t { font-size: 20px; color: var(--c-ink); margin: 8px 0 10px; }
.idx-card__d { font-size: 14px; line-height: 1.8; color: var(--c-muted); }
.idx-card__more { margin-top: 16px; font-size: 14px; color: var(--c-brand); display: inline-flex; align-items: center; gap: 6px; }
.idx-card__more svg { width: 16px; height: 16px; }

/* ==========================================================================
   详情页「深度版块」（对标 rtcpafirm 详情页：数据条 / 对比表 / 案例 / 法规 / 优势）
   ========================================================================== */

/* Hero 内联数据条（白字，置于实景夜景 page-banner 内，靠中性压暗保证对比） */
.pb-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: 36px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .2);
}
.pb-stats__v { font-family: var(--f-serif); font-size: 34px; font-weight: 700; color: #fff; line-height: 1; }
.pb-stats__v span { font-size: 16px; margin-left: 2px; }
.pb-stats__l { margin-top: 9px; font-size: 13px; color: rgba(255, 255, 255, .82); }

/* 服务对比表（核心权威块：时效 / 适用情形 / 法规依据） */
.dcmp { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 4px; }
/* 横滑可发现性提示：DOM 由 common.js 注入，仅在表格实际溢出时显示；
   与资讯页 p.art-scroll-hint 同一套视觉，避免 390px 下用户以为表格只有两列 */
.dcmp-hint { display: none; }
.dcmp-hint.is-overflow {
  display: block; font-size: 12.5px; color: var(--c-muted-2);
  margin: 0 0 8px; padding-left: 15px; position: relative;
}
.dcmp-hint.is-overflow::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; border-top: 1.5px solid var(--c-brand);
  border-right: 1.5px solid var(--c-brand); transform: rotate(45deg);
}
.dcmp table { width: 100%; min-width: 700px; border-collapse: collapse; font-size: 14px; }
.dcmp th, .dcmp td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.dcmp thead th { background: var(--c-brand); color: #fff; font-weight: 600; font-size: 13.5px; letter-spacing: .02em; }
.dcmp tbody tr:nth-child(even) { background: rgba(192, 0, 0, .03); }
.dcmp td:first-child { font-weight: 600; color: var(--c-ink); white-space: nowrap; }
.dcmp .dcmp__note { margin-top: 14px; font-size: 13px; color: var(--c-muted); }

/* 代表性案例（类型化场景，不编造具体客户） */
.dcases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dcases__card {
  background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r);
  padding: 24px; transition: all .3s var(--ease);
}
.dcases__card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 0, 0, .08); border-color: rgba(192, 0, 0, .3); }
.dcases__tag { display: inline-block; font-size: 12px; color: var(--c-brand); background: var(--c-brand-soft); padding: 4px 11px; border-radius: 999px; margin-bottom: 12px; }
.dcases__t { font-size: 16px; font-weight: 700; color: var(--c-ink); margin-bottom: 8px; line-height: 1.45; }
.dcases__p { font-size: 13.5px; color: #565656; line-height: 1.8; }

/* 法规依据卡 */
.dlaw { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.dlaw__card { padding: 20px 22px; border: 1px solid var(--c-line); border-left: 3px solid var(--c-brand); border-radius: 12px; background: var(--c-white); }
.dlaw__t { font-size: 14.5px; font-weight: 700; color: var(--c-ink); margin-bottom: 7px; }
.dlaw__p { font-size: 13px; color: #565656; line-height: 1.75; }
.dlaw__promise {
  margin-top: 18px; padding: 16px 20px; background: var(--c-brand-soft);
  border-left: 4px solid var(--c-brand); border-radius: 0 var(--r) var(--r) 0;
  font-size: 14px; line-height: 1.85; color: var(--c-ink);
}
.dlaw__promise b { color: var(--c-brand); }

/* 为什么选择 */
.dwhy { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.dwhy__item { display: flex; gap: 15px; align-items: flex-start; padding: 22px; background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r); }
.dwhy__no { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-family: var(--f-serif); font-weight: 700; color: #fff; background: var(--c-brand); font-size: 16px; }
.dwhy__txt h4 { font-size: 16px; font-weight: 700; color: var(--c-ink); margin-bottom: 6px; }
.dwhy__txt p { font-size: 13.5px; color: #565656; line-height: 1.75; }

/* 服务清单已改 flex 换行网格（见上文 .dlist），列数随容器宽度自适应，无需再覆盖 */

@media (max-width: 880px) {
  .dcases, .dlaw, .dwhy { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .dwho, .idx-grid { grid-template-columns: 1fr; }
  .dlist__item { flex-basis: 100%; }
  .pb-stats { grid-template-columns: 1fr 1fr; gap: 20px 0; }
  .pb-stats__v { font-size: 28px; }
  .dcases, .dlaw, .dwhy { grid-template-columns: 1fr; }
}

/* ==========================================================================
   B 方案样张：服务清单「常见交付」+ 费用构成卡
   只在挂了对应数据的详情页出现；样式随 inner.css 走，首页不引用
   ========================================================================== */
.dlist__out {
  margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--c-line-2);
  font-size: 12.5px; line-height: 1.7; color: var(--c-muted);
}
.dlist__out b {
  display: inline-block; margin-right: 8px; padding: 1px 7px;
  font-size: 12px; font-weight: 600; color: var(--c-brand);
  background: var(--c-brand-soft); border-radius: 3px; vertical-align: 1px;
}
.dlist__note {
  margin-top: 18px; font-size: 12.5px; line-height: 1.8; color: var(--c-muted-2);
}

.dfee { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 4px; }
.dfee__card {
  background: var(--c-white); border: 1px solid var(--c-line);
  border-radius: var(--r); padding: 22px 24px;
}
.dfee__card h4 {
  font-size: 16px; color: var(--c-ink); margin-bottom: 9px;
  position: relative; padding-left: 15px;
}
.dfee__card h4::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 4px; border-radius: 2px; background: var(--c-brand);
}
.dfee__card p { font-size: 14px; line-height: 1.85; color: var(--c-muted); }
.dfee__note {
  margin-top: 16px; padding: 12px 16px;
  background: var(--c-brand-soft); border-left: 3px solid var(--c-brand);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 13px; line-height: 1.8; color: var(--c-text);
}

@media (max-width: 880px) { .dfee { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .dfee { grid-template-columns: 1fr; } }

/* ==========================================================================
   A 方案 · 内页行业实景图带 / 索引卡缩略图
   inner.css 仅内页引入，首页不受影响
   ========================================================================== */
.ind-photo-sec { padding: 34px 0 0; background: var(--c-white); }
.ind-photo {
  margin: 0; position: relative; border-radius: var(--r-lg);
  overflow: hidden; background: var(--c-paper);
}
.ind-photo__img {
  display: block; width: 100%; height: 300px;
  object-fit: cover; object-position: center;
}
.ind-photo__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 24px 22px 14px; font-size: 12.5px; color: #fff;
  background: linear-gradient(180deg, rgba(16,11,13,0) 0%, rgba(16,11,13,.74) 100%);
}
.ind-photo__tag {
  padding: 3px 9px; border: 1px solid rgba(255,255,255,.6); border-radius: 3px;
  font-size: 12px; letter-spacing: .06em; color: #fff;
}

.idx-guide {
  margin: 0 0 18px; padding: 11px 16px;
  background: var(--c-brand-soft); border-left: 3px solid var(--c-brand);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 13.5px; line-height: 1.8; color: var(--c-text);
}
.idx-card--thumb { display: flex; align-items: flex-start; gap: 18px; padding: 20px 22px; }
.idx-card__thumb {
  flex: none; width: 132px; aspect-ratio: 4 / 3;
  border-radius: var(--r); overflow: hidden; background: var(--c-paper);
}
.idx-card__thumb img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s var(--ease);
}
.idx-card--thumb:hover .idx-card__thumb img { transform: scale(1.06); }
.idx-card__body { flex: 1; min-width: 0; }
.idx-card--thumb .idx-card__t { font-size: 19px; margin: 6px 0 8px; }
.idx-card--thumb .idx-card__d { font-size: 13.5px; line-height: 1.75; }
.idx-card--thumb .idx-card__more { margin-top: 12px; }

@media (max-width: 1024px) {
  .idx-card__thumb { width: 110px; }
}
@media (max-width: 680px) {
  .ind-photo-sec { padding-top: 22px; }
  .ind-photo__img { height: 190px; }
  .ind-photo__cap { padding: 18px 14px 11px; font-size: 12px; gap: 8px; }
  .idx-card--thumb { gap: 13px; padding: 16px; }
  .idx-card__thumb { width: 92px; }
  .idx-card--thumb .idx-card__t { font-size: 17px; }
}

/* 关于页服务理念共 5 项：末项为奇数时通栏占满，避免半行留白 */
.dwhy--about .dwhy__item:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* 关于页资质信息卡：整宽容器下两列（首页联系区在两栏布局内，不受影响） */
.contact__cards--grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 880px) { .contact__cards--grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   响应式覆盖（必须放在所有基础规则之后，否则会被同权重后置规则覆盖）
   ========================================================================== */

/* ---------- 平板：办理流程降为两列，连接线隐藏（与首页 .flow 同断点） ---------- */
@media (max-width: 1024px) {
  .dsteps { grid-template-columns: repeat(2, 1fr); gap: 30px 24px; }
  .dsteps::before { display: none; }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 680px) {
  .page-banner { padding: 44px 0 40px; }
  .page-banner__title { font-size: 27px; }
  .split2 { grid-template-columns: 1fr; gap: 30px; }
  .dsteps { grid-template-columns: 1fr; }
}
