:root {
  --brand-primary: #0b1227;
  --brand-primary-dark: #020617;
  --brand-accent: #ca8a04;
  --bg-page: #f8fafc;
  --text-main: #020617;
  --text-sub: #334155;
  --border-color: #dbe5f1;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-soft: 0 12px 28px rgba(11, 18, 39, 0.1);
  --shadow-strong: 0 24px 54px rgba(11, 18, 39, 0.18);
  /* ui-ux-pro-max: 8px 栅格间距 */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --surface-elevated: rgba(255, 255, 255, 0.92);
  --hairline: rgba(203, 213, 225, 0.85);
}

* { box-sizing: border-box; margin: 0; }
body {
  color: var(--text-main);
  background:
    radial-gradient(circle at 10% 0%, rgba(245, 158, 11, 0.16), rgba(245, 158, 11, 0)),
    radial-gradient(circle at 90% 8%, rgba(29, 78, 216, 0.12), rgba(29, 78, 216, 0)),
    var(--bg-page);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1240px, 92vw); margin: 0 auto; }
.section { padding: var(--space-6) 0; }
.section-muted { background: linear-gradient(180deg, #fafaf9, #f5f5f4); }
.section h2 { margin: 0 0 var(--space-3); font-size: 34px; letter-spacing: -0.02em; }
.section-desc { margin: 0 0 var(--space-3); color: var(--text-sub); max-width: 72ch; }
.section-desc--tight { margin-bottom: 0; }

/* 首页 · 文章区块：标题区与卡片、CTA 分层留白 */
.section-posts .section-head h2 {
  margin-bottom: var(--space-2);
}
.section-posts .section-head .section-desc {
  margin-top: 0;
  margin-bottom: 0;
}
.section-posts .section-head {
  margin-bottom: var(--space-4);
}
.section-posts #latestPosts {
  margin-bottom: 0;
}
.section-cta {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
}
.btn-cta {
  min-width: 200px;
  min-height: 48px;
  padding: 0 var(--space-4);
  box-shadow: 0 10px 24px rgba(30, 58, 138, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(30, 58, 138, 0.18);
}
.btn-cta:focus-visible {
  outline: 2px solid #ca8a04;
  outline-offset: 3px;
}

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); border-bottom: 1px solid #e2e8f0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 12px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
}
/* 顶栏徽标与站点图标同源：/assets/logo.png */
.brand::before {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: url("/assets/logo.png") center / contain no-repeat;
  box-shadow: 0 4px 10px rgba(30, 58, 138, 0.18);
}
.nav { display: flex; gap: 8px; font-size: 14px; color: #1e293b; flex-wrap: wrap; }
.nav a { padding: 6px 10px; border-radius: 999px; }
.nav a:hover { background: rgba(15,23,42,.06); color: var(--brand-primary); }

.btn { border: 1px solid transparent; border-radius: var(--radius-md); min-height: 44px; padding: 0 20px; font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.btn-primary { color: #fff; background: linear-gradient(135deg, #0b1227, #1e3a8a); box-shadow: 0 10px 22px rgba(29, 78, 216, 0.22); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-secondary { color: #1e3a8a; background: rgba(255,255,255,.92); border-color: #cbd5e1; }
.btn-secondary:hover { transform: translateY(-1px); }

.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: stretch; }
.eyebrow { display:inline-flex; margin-bottom:14px; color:#92400e; font-size:12px; font-weight:700; border:1px solid #fcd34d; border-radius:999px; padding:5px 12px; background:#fffbeb; }
.hero-title { font-size: 48px; line-height: 1.2; margin-bottom: 14px; }
.hero-title span { background: linear-gradient(115deg, #1d4ed8, #f59e0b 56%, #0b1227); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-desc { color: var(--text-sub); max-width: 62ch; font-size: 18px; line-height: 1.8; }
.hero-actions { margin-top: 20px; display: flex; gap: 12px; }
.hero-panel { background: linear-gradient(145deg, #0b1227, #1f3b8f 45%, #1d4ed8); color: #fff; border-radius: var(--radius-xl); padding: 24px; box-shadow: var(--shadow-strong); }
.panel-row { display:flex; justify-content:space-between; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.22); }

.card-grid { display: grid; gap: var(--space-2); }
.card-grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.card-grid.four { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.card { background: #fff; border: 1px solid #d8e2f1; border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-soft); }
a.card { cursor: pointer; color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 10px; height: 100%; }
a.card:hover { transform: translateY(-4px); border-color: #b8c8e6; box-shadow: var(--shadow-strong); }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p, .card li { color: var(--text-sub); }

.post-cover,
.article-cover {
  width: 100%;
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid #dbe5f1;
}
.post-category {
  width: fit-content;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  background: #e2e8f0;
  border-radius: 999px;
  padding: 2px 10px;
}
.post-link {
  color: #0f172a;
  font-weight: 600;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.post-link:hover { text-decoration: underline; }
.inline-arrow { width: 14px; height: 14px; }
.inline-arrow * { stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* 文章洞察页 · 筛选条：独立卡片，与上下区块明确分隔 */
.main-insights {
  padding: var(--space-4) 0 var(--space-6);
}
.page-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: var(--space-1);
}
.page-hero-card--insights {
  margin-bottom: var(--space-4);
}
.page-hero-card--insights .page-title {
  margin-bottom: var(--space-2);
}
.page-hero-card--insights .section-desc {
  margin-bottom: var(--space-2);
}
.page-meta-line {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px dashed var(--hairline);
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 600;
}

.filters-toolbar {
  margin-bottom: var(--space-4);
  padding: var(--space-3);
  border-radius: var(--radius-xl);
  border: 1px solid var(--hairline);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.filters-toolbar__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.filters-toolbar__row--chips {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
}
.filters-label {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  padding-top: 6px;
  min-width: 3em;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  flex: 1;
  min-width: 0;
}
.chip {
  border: 1px solid var(--border-color);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.2;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.chip:focus-visible {
  outline: 2px solid #ca8a04;
  outline-offset: 2px;
}
.chip.active {
  border-color: #93c5fd;
  color: #1e3a8a;
  background: #eff6ff;
}
.chip:hover {
  border-color: #93c5fd;
  color: #1e3a8a;
}
.search-field {
  display: block;
  width: 100%;
}
.search-input--insights {
  max-width: 100%;
  min-height: 48px;
  padding: 0 16px;
  font-size: 15px;
  border-color: #cbd5e1;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}
.search-input--insights:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.35);
}
.search-input--insights:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}

.article-list-section {
  margin-top: var(--space-2);
  padding-top: var(--space-1);
}

.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;
}

.section-actions { margin-top: var(--space-3); }

.delivery-timeline { list-style:none; border-left:2px solid #d8e1ef; margin-left: 10px; padding-left:24px; display:grid; gap:14px; }
.delivery-timeline li { background:#fff; border:1px solid #dde4ef; border-radius:var(--radius-lg); padding:16px 18px; box-shadow: var(--shadow-soft); }

.page-title { font-size: 44px; line-height: 1.2; margin-bottom: var(--space-2); color: #0b1227; }
.page-hero-card {
  margin-bottom: var(--space-3);
  border: 1px solid #cfe0f6;
  border-radius: var(--radius-xl);
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(180deg, #fff, #f4f8ff);
  box-shadow: var(--shadow-soft);
}

.article { display: flex; flex-direction: column; gap: var(--space-3); }
.post-meta { display: flex; gap: 12px; color: var(--text-sub); font-size: 13px; }
.article-body { background:#fff; border:1px solid #dbe5f1; border-radius:var(--radius-lg); padding:28px; line-height:1.85; box-shadow: var(--shadow-soft); }
.article-body h2, .article-body h3 { margin: 14px 0 8px; }

/* —— 法律页（隐私政策 / 服务条款）—— */
.page-legal {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(29, 78, 216, 0.08), transparent),
    var(--bg-page);
}

.legal-progress {
  position: sticky;
  top: 72px;
  z-index: 14;
  width: min(1240px, 92vw);
  margin: 0 auto;
  padding: var(--space-2) 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(248, 250, 252, 0.88));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.legal-progress-track {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.legal-progress-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #1e3a8a, #3b82f6 50%, #f59e0b);
  transition: width 0.2s ease;
}
.legal-progress span {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #64748b;
  min-width: 40px;
  text-align: right;
}

.legal-main {
  padding: var(--space-3) 0 var(--space-6);
}

.legal-hero-wrap {
  margin-bottom: var(--space-4);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-3);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  background: #fff;
  border: 1px solid var(--hairline);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.legal-back:hover {
  color: #1e3a8a;
  border-color: #93c5fd;
  transform: translateX(-2px);
}
.legal-back:focus-visible {
  outline: 2px solid #ca8a04;
  outline-offset: 2px;
}
.legal-back svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.legal-back svg * {
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.legal-hero {
  position: relative;
  padding: var(--space-4) var(--space-4);
  border-radius: var(--radius-xl);
  border: 1px solid var(--hairline);
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 48%, #eff6ff 100%);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.legal-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #1e3a8a, #3b82f6, #f59e0b);
  border-radius: 4px 0 0 4px;
}
.legal-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: var(--space-2);
}
.legal-hero .legal-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.25;
  margin: 0 0 var(--space-3);
}
.legal-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}
.legal-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}
.legal-pill--muted {
  background: #f8fafc;
  color: #64748b;
  border-color: #e2e8f0;
}

.legal-toc-card {
  margin-bottom: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-xl);
  border: 1px solid var(--hairline);
  background: var(--surface-elevated);
  box-shadow: var(--shadow-soft);
}
.legal-toc-title {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  margin: 0 0 var(--space-2);
  letter-spacing: 0.02em;
}
.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.legal-toc a {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 8px 14px;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.legal-toc a:hover {
  border-color: #93c5fd;
  color: #1e3a8a;
  background: #f8fafc;
}
.legal-toc a.active {
  color: #92400e;
  background: linear-gradient(180deg, #fffbeb, #fef3c7);
  border-color: #fcd34d;
  box-shadow: 0 4px 12px rgba(202, 138, 4, 0.15);
}

.article-body.legal-prose {
  padding: var(--space-4) var(--space-4);
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid var(--hairline);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.legal-prose h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  margin: var(--space-5) 0 var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid #e2e8f0;
  scroll-margin-top: 120px;
}
.legal-prose h2:first-of-type {
  margin-top: 0;
}
.legal-prose p {
  color: #334155;
  font-size: 15px;
  line-height: 1.85;
  margin: 0 0 var(--space-3);
}
.legal-prose ul {
  margin: 0 0 var(--space-3);
  padding-left: 1.25rem;
  color: #334155;
  font-size: 15px;
  line-height: 1.85;
}
.legal-prose li {
  margin-bottom: var(--space-1);
}
.legal-prose li::marker {
  color: #3b82f6;
}

.legal-kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2) var(--space-4);
  margin: var(--space-2) 0 var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #f8fafc, #fff);
  border: 1px solid #e2e8f0;
  font-size: 14px;
}
.legal-kv dt {
  font-weight: 600;
  color: #64748b;
  margin: 0;
}
.legal-kv dd {
  margin: 0;
  color: #0f172a;
}

@media (max-width: 640px) {
  .legal-kv {
    grid-template-columns: 1fr;
  }
  .legal-toc a {
    font-size: 12px;
    padding: 6px 10px;
  }
}

.site-footer { background: linear-gradient(180deg, #020617, #0f172a); color: #cbd5e1; padding: 64px 0 24px; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr; gap:18px; }
.footer-bottom { margin-top: 18px; padding-top: 14px; border-top: 1px solid #57534e; font-size: 13px; color:#fafaf9; display:flex; flex-wrap:wrap; gap:8px; }
.footer-link { color:#fef3c7; text-decoration: underline; text-underline-offset:2px; }
.footer-sep { color:#d6d3d1; }

.floating-consult-btn { position: fixed; right: 24px; bottom: 24px; z-index: 30; border:none; border-radius:999px; min-height:46px; padding:0 20px; color:#fff; background:linear-gradient(135deg,#1d4ed8,#f59e0b); box-shadow: var(--shadow-strong); cursor:pointer; }
.consult-modal-mask { position: fixed; inset:0; z-index:40; background: rgba(12,10,9,.58); display:grid; place-items:center; padding:16px; }
.consult-modal-mask.hidden, .consult-toast.hidden { display: none; }
.consult-modal { width:min(640px,100%); background:#fff; border:1px solid #e7e5e4; border-radius: var(--radius-xl); padding:20px; box-shadow: var(--shadow-strong); }
.consult-form-grid { margin-top:12px; display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.consult-form-grid .full { grid-column: 1 / -1; }
.search-input { width:100%; border:1px solid #cbd5e1; border-radius:var(--radius-md); min-height:42px; padding:0 12px; background:#fff; }
.textarea { padding: 10px 12px; resize: vertical; }
.consult-modal-actions { margin-top:12px; display:flex; justify-content:flex-end; gap:8px; }
.consult-toast { position:fixed; left:50%; bottom:24px; transform:translateX(-50%); z-index:45; color:#fff; background:#292524; border:1px solid #57534e; border-radius:999px; padding:8px 14px; box-shadow: var(--shadow-soft); }

@media (max-width: 1100px) {
  .hero-grid, .card-grid.four, .card-grid.three, .card-grid.two, .footer-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 40px; }
  .page-title { font-size: 32px; }
  .nav { display: none; }
  .filters-toolbar__row--chips {
    flex-direction: column;
    align-items: stretch;
  }
  .filters-label {
    padding-top: 0;
  }
  .section-cta {
    margin-top: var(--space-4);
    padding-top: var(--space-3);
  }
}
