/* ============================================================
   法律专题页专用样式  topics-ui.css
   挂载方式：page-topics.php 页面模板条件入队
   作用：与费用计算器 / 联系我们页统一的全宽主视觉 + 吸顶锚点导航 + 卡片化清单
   说明：所有选择器以 .tp-page 为作用域；通栏需抵消 header.php 开启的 main.container
   ============================================================ */
.tp-page{--tp-navy:#16223d;--tp-blue:#0d6efd;--tp-blue-dark:#0b5ed7;--tp-gold:#c9a227;--tp-bg:#eef2f9;--tp-line:#e3e8f2;--tp-mut:#5b6b84;--tp-soft:#f6f8fb;--tp-ink:#1f2937;font-family:"PingFang SC","Microsoft YaHei","Noto Sans SC",sans-serif;color:var(--tp-ink);line-height:1.7;background:var(--tp-bg)}
.tp-page *,.tp-page *::before,.tp-page *::after{box-sizing:border-box}
.tp-page a{text-decoration:none}

/* ===== 全宽通栏主视觉 ===== */
.tp-hero-wrap{width:100%;background:linear-gradient(135deg,#111f3f 0%,#1a3a6e 42%,#1f6ae0 125%);color:#fff;position:relative;overflow:hidden;padding:96px 24px 72px}
.tp-hero-wrap::before{content:"";position:absolute;right:-80px;top:-80px;width:300px;height:300px;border:2px solid rgba(255,255,255,.12);border-radius:50%}
.tp-hero-wrap::after{content:"";position:absolute;left:-60px;bottom:-110px;width:220px;height:220px;border:2px solid rgba(255,255,255,.07);border-radius:50%}
.tp-hero{max-width:1120px;margin:0 auto;text-align:center;position:relative;z-index:1}
.tp-eyebrow{letter-spacing:.35em;font-size:12px;color:var(--tp-gold);font-weight:600;text-transform:uppercase;margin-bottom:12px}
.tp-hero-title{font-size:clamp(36px,5vw,54px);font-weight:800;letter-spacing:.04em;margin:0 0 14px}
.tp-hero-sub{max-width:700px;margin:0 auto;color:rgba(255,255,255,.88);font-size:16px}
.tp-hero-meta{margin-top:16px;font-size:13px;color:rgba(255,255,255,.6);letter-spacing:.12em}

/* ===== 吸顶锚点导航 ===== */
.tp-nav{position:sticky;top:84px;z-index:40;display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:-26px auto 8px;padding:10px;background:#fff;backdrop-filter:blur(8px);border:1px solid var(--tp-line);border-radius:999px;box-shadow:0 10px 28px rgba(20,35,60,.13);max-width:1180px}
.tp-nav-link{font-size:14px;color:var(--tp-navy);font-weight:600;padding:8px 16px;border-radius:999px;transition:.22s ease;border:1px solid transparent}
.tp-nav-link:hover{color:var(--tp-blue);background:#eef4ff}
.tp-nav-cta{background:var(--tp-blue);color:#fff}
.tp-nav-cta:hover{color:#fff;background:#0b5ed7}

/* 锚点目标滚动补偿：抵消固定导航 + 吸顶导航 */
.tp-page section[id]{scroll-margin-top:205px}

/* ===== 页面容器 ===== */
.tp-pagewrap{max-width:1160px;margin:0 auto;padding:26px 16px 8px}
.tp-wrap{padding:6px 2px 8px}

/* ===== 专题卡片 ===== */
.tp-area{background:#fff;border:1px solid var(--tp-line);border-radius:16px;padding:28px 30px 34px;margin:26px 0;box-shadow:0 10px 34px rgba(20,35,60,.06)}
.tp-area-alt{background:linear-gradient(180deg,#ffffff,#f6f9ff)}
.tp-area-head{display:flex;gap:18px;align-items:flex-start;margin-bottom:22px}
.tp-area-ico{flex:0 0 52px;width:52px;height:52px;border-radius:14px;display:flex;align-items:center;justify-content:center;color:#fff;box-shadow:0 8px 18px rgba(13,110,253,.26)}
.tp-area-ico svg{width:30px;height:30px}
.tp-i-1{background:linear-gradient(135deg,#1d4ed8,#3b82f6)}
.tp-i-2{background:linear-gradient(135deg,#7c3aed,#a855f7)}
.tp-i-3{background:linear-gradient(135deg,#0f766e,#14b8a6)}
.tp-i-4{background:linear-gradient(135deg,#8a2b2b,#c0392b)}
.tp-i-5{background:linear-gradient(135deg,#b45309,#f59e0b)}
.tp-i-6{background:linear-gradient(135deg,#1e3a8a,#2563eb)}
.tp-i-7{background:linear-gradient(135deg,#be123c,#e11d48)}
.tp-i-8{background:linear-gradient(135deg,#4338ca,#6366f1)}
.tp-i-9{background:linear-gradient(135deg,#0369a1,#0ea5e9)}
.tp-area-txt{min-width:0;flex:1}
.tp-area-tt{font-size:26px;font-weight:800;color:var(--tp-navy);margin:0;display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.tp-num{font-size:14px;font-weight:700;color:var(--tp-gold);letter-spacing:.1em}
.tp-area-desc{color:var(--tp-mut);margin:6px 0 0;font-size:14.5px}
.tp-count{display:inline-block;margin:0 0 16px;padding:3px 12px;border-radius:999px;background:#eef4ff;color:var(--tp-blue-dark);font-size:12.5px;font-weight:600}

/* ===== 文章清单：宽屏两列，窄屏单列 ===== */
.tp-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 26px}
.tp-list li{position:relative;padding:8px 0 8px 26px;border-bottom:1px solid var(--tp-line);font-size:14.5px;line-height:1.6;counter-increment:tp-item}
.tp-list li::before{content:counter(tp-item);position:absolute;left:0;top:8px;font-size:11.5px;font-weight:700;color:#a9b4c3;font-variant-numeric:tabular-nums}
.tp-list{counter-reset:tp-item}
.tp-list a{color:#23374f;transition:.18s ease}
.tp-list a:hover{color:var(--tp-blue)}

/* ===== 预约咨询 CTA ===== */
.tp-consult{margin:36px auto 10px;padding:40px 30px;border-radius:18px;text-align:center;color:#fff;background:linear-gradient(120deg,#16223d,#1f6ae0);box-shadow:0 18px 44px rgba(20,35,60,.22)}
.tp-consult-tt{font-size:28px;font-weight:800;margin:0 0 8px}
.tp-consult-sub{color:rgba(255,255,255,.85);max-width:620px;margin:0 auto 24px;font-size:15px}
.tp-consult-actions{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}
.tp-btn{display:inline-block;background:var(--tp-gold);color:#16223d;font-weight:700;padding:13px 30px;border-radius:999px;transition:.22s ease;box-shadow:0 8px 22px rgba(201,162,39,.35)}
.tp-btn:hover{background:#d9b234;color:#16223d;transform:translateY(-2px)}
.tp-btn-ghost{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.6);box-shadow:none}
.tp-btn-ghost:hover{background:rgba(255,255,255,.12);color:#fff}

/* ===== 响应式 ===== */
@media (max-width:900px){
  .tp-list{grid-template-columns:1fr}
}
@media (max-width:640px){
  .tp-hero-wrap{padding:84px 18px 60px}
  .tp-hero-title{font-size:32px}
  .tp-hero-sub{font-size:15px}
  .tp-nav{top:64px;border-radius:18px;padding:8px;margin-top:-20px}
  .tp-nav-link{font-size:13px;padding:7px 12px}
  .tp-pagewrap{padding:20px 12px 8px}
  .tp-area{padding:22px 18px 26px}
  .tp-area-tt{font-size:22px}
  .tp-area-ico{flex-basis:44px;width:44px;height:44px}
  .tp-area-ico svg{width:26px;height:26px}
  .tp-consult{padding:32px 20px}
  .tp-consult-tt{font-size:24px}
  .tp-btn{width:100%;padding:13px 22px}
}

/* 主视觉需通栏：抵消 .container 的最大宽度/内边距（主地标仍由 header.php 统一开启） */
body.page-id-4902 main.container{
  max-width:100% !important;
  min-height:0 !important;
  padding:0 !important;
  margin:0 !important;
}
