/* 法律文本页 v1 (2026-11-17) */
.lg-page{ font-family:inherit; color:#1a2b4a; }
.lg-wrap{ max-width:1260px; margin:0 auto; padding:0 20px; }

.lg-hero{ position:relative; padding:60px 0 66px; color:#fff; overflow:hidden; background:#00306e; }
.lg-hero-bg{ position:absolute; inset:0; opacity:.16;
  background-image:radial-gradient(circle at 80% 20%,#7fb0ee 0,transparent 45%),radial-gradient(circle at 15% 85%,#4a8fd8 0,transparent 42%); }
.lg-hero::after{ content:""; position:absolute; inset:0;
  background:linear-gradient(110deg,rgba(0,30,80,.92),rgba(0,64,152,.74) 60%,rgba(10,82,184,.55)); }
.lg-hero .lg-wrap{ position:relative; z-index:2; }
.lg-kicker{ display:inline-block; font-size:12px; font-weight:800; letter-spacing:1.5px; color:#9fc4f5;
  border-left:3px solid #e2231a; padding-left:12px; margin-bottom:16px; }
.lg-hero h1{ font-size:38px; font-weight:800; margin:0 0 12px; }
.lg-lead{ font-size:15px; line-height:1.75; color:#d3e3fa; max-width:760px; margin:0 0 18px; }
.lg-updated{ display:inline-block; font-size:12px; color:#9fc4f5; background:rgba(255,255,255,.1);
  padding:5px 12px; border-radius:14px; }

.lg-body{ padding:48px 0 80px; background:#f6f8fc; }
.lg-layout{ display:grid; grid-template-columns:270px 1fr; gap:40px; align-items:start; }

/* 目录 */
.lg-toc{ position:sticky; top:24px; }
.lg-toc-box{ background:#fff; border:1px solid #e6ecf5; border-radius:12px; padding:22px 20px;
  box-shadow:0 4px 16px rgba(0,40,98,.06); max-height:calc(100vh - 48px); overflow-y:auto; }
.lg-toc-box h3{ font-size:15px; margin:0 0 14px; color:#004098; padding-bottom:12px; border-bottom:1px solid #eef1f6; }
.lg-toc-box ol{ list-style:none; counter-reset:toc; margin:0; padding:0; display:flex; flex-direction:column; gap:2px; }
.lg-toc-box li{ counter-increment:toc; }
.lg-toc-box li a{ display:block; font-size:12.5px; line-height:1.5; color:#667; text-decoration:none;
  padding:8px 10px; border-radius:6px; border-left:2px solid transparent; transition:.15s; }
.lg-toc-box li a:hover,.lg-toc-box li a.active{ background:#eaf2fd; color:#004098; border-left-color:#004098; }
.lg-toc-box li.lg-toc-sub a{ padding-left:22px; font-size:12px; color:#8899b0; }

/* 正文 */
.lg-content{ background:#fff; border:1px solid #e6ecf5; border-radius:13px; padding:38px 42px;
  box-shadow:0 4px 18px rgba(0,40,98,.06); min-width:0; }
.lg-content h2,.lg-content h3,.lg-content h4{ color:#1a2b4a; font-weight:800; line-height:1.4; }
.lg-content h2{ font-size:22px; margin:0 0 18px; padding-left:14px; border-left:4px solid #004098; }
.lg-content h2:not(:first-child){ margin-top:38px; }
.lg-content h3{ font-size:18px; margin:28px 0 14px; }
.lg-content p{ font-size:14.5px; line-height:1.9; color:#556; margin:0 0 16px; }
.lg-content a{ color:#004098; text-decoration:none; word-break:break-all; }
.lg-content a:hover{ text-decoration:underline; }
.lg-content ol,.lg-content ul{ padding-left:24px; margin:0 0 20px; }
.lg-content li{ font-size:14.5px; line-height:1.9; color:#556; margin-bottom:14px; padding-left:4px; }
.lg-content li::marker{ color:#004098; font-weight:800; }
.lg-content strong{ color:#1a2b4a; }
.lg-content hr{ border:0; border-top:1px solid #eef1f6; margin:30px 0; }

.lg-totop{ display:inline-block; margin-top:30px; font-size:13px; font-weight:700; color:#004098;
  text-decoration:none; padding:10px 18px; border:1px solid #dce4f0; border-radius:8px; background:#fff; }
.lg-totop:hover{ background:#eaf2fd; }

body.page-template-page-legal-php .site-content,
body.page-template-page-legal-php #content.site-content{ padding-bottom:0 !important; }

@media (max-width:900px){ .lg-layout{ grid-template-columns:1fr; } .lg-toc{ position:static; } .lg-toc-box{ max-height:none; } }
@media (max-width:600px){
  .lg-hero{ padding:48px 0 54px; }
  .lg-hero h1{ font-size:28px; }
  .lg-content{ padding:26px 20px; }
}

/* v2: 重写版条款结构（引言/编号条款/子列表） */
.terms-intro{ background:#f4f8fe; border:1px solid #e4edf9; border-radius:10px; padding:20px 24px; margin-bottom:34px; }
.terms-intro p{ margin:0 0 12px; }
.terms-intro p:last-child{ margin-bottom:0; }
.lg-term{ padding:18px 0; border-bottom:1px dashed #e6ecf5; }
.lg-term:last-child{ border-bottom:0; }
.lg-content h2 + .lg-term{ border-top:0; padding-top:4px; }
.lg-content .lg-term h3{ font-size:15.5px; color:#004098; margin:0 0 10px; padding-left:12px; border-left:3px solid #e2231a; line-height:1.5; }
.lg-term p{ margin:0; }
.lg-sublist{ list-style:none; padding:0 !important; margin:12px 0 0 !important; display:flex; flex-direction:column; gap:9px; }
.lg-sublist li{ position:relative; padding-left:20px; margin:0; font-size:14px; line-height:1.75; color:#556; }
.lg-sublist li::before{ content:"•"; position:absolute; left:2px; top:0; color:#e2231a; font-weight:800; }

/* v3: 法务页列表美化 */
.lg-content ol{ list-style:decimal; }
.lg-content ol li::marker{ color:#004098; font-weight:800; }
.lg-content ul{ list-style:disc; }
.lg-content ul li::marker{ color:#e2231a; }

/* v4: 相关法律条款互链区 */
.lg-related{ margin-top:40px; padding-top:26px; border-top:1px solid #e6ecf5; }
.lg-related h3{ font-size:16px; color:#004098; margin:0 0 16px; }
.lg-related-links{ display:flex; flex-wrap:wrap; gap:10px; }
.lg-related-links a{ display:inline-block; font-size:13px; font-weight:700; color:#004098; text-decoration:none; padding:9px 16px; background:#f4f8fe; border:1px solid #dce8f7; border-radius:8px; transition:.2s; }
.lg-related-links a:hover{ background:#eaf2fd; border-color:#004098; }
