/* ============================================================
   清朗盾 · 设计系统（依据组长 DESIGN.md 还原）
   主色 深空蓝 #1e3a5f / 辅色 青碧 #0ea5e9 / 强调 暖橙 #f59e0b
   背景 #f0f7ff / 文字 #1e293b / 成功 #10b981
   高风险 柔红 #ef4444 / 中风险 琥珀 #f59e0b / 低风险 青绿 #06b6d4
   ============================================================ */

@import url('https://fonts.googleapis.cn/css2?family=Noto+Sans+SC:wght@300;400;500;600;700;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --brand-deep: #1e3a5f;
  --brand-deep-2: #1a4971;
  --brand-blue: #0ea5e9;
  --brand-cyan: #06b6d4;
  --brand-amber: #f59e0b;
  --brand-green: #10b981;
  --brand-light: #f0f7ff;
  --brand-danger: #ef4444;

  --background: #f0f7ff;
  --foreground: #1e293b;
  --card: #ffffff;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --secondary: #e8f4fd;
  --border: #e2e8f0;

  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-xl: 16px;

  --shadow-sm: 0 1px 3px rgba(30, 58, 95, 0.08), 0 4px 12px rgba(30, 58, 95, 0.04);
  --shadow-md: 0 4px 12px rgba(30, 58, 95, 0.1), 0 8px 24px rgba(30, 58, 95, 0.06);
  --shadow-lg: 0 8px 24px rgba(30, 58, 95, 0.12), 0 16px 40px rgba(30, 58, 95, 0.08);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Noto Sans SC', 'Inter', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* ---------------- Reset / Base ---------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
img { max-width: 100%; display: block; }
::selection { background: rgba(14, 165, 233, 0.2); }

/* ---------------- Utilities ---------------- */
.container { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.shrink-0 { flex-shrink: 0; }
.min-w-0 { min-width: 0; }

.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.gap-2 { gap: 0.5rem; } .gap-3 { gap: 0.75rem; } .gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; } .gap-6 { gap: 1.5rem; } .gap-8 { gap: 2rem; }

.mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; } .mt-12 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; } .mb-12 { margin-bottom: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-xs { font-size: 0.75rem; line-height: 1.6; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.leading-tight { line-height: 1.2; }
.leading-relaxed { line-height: 1.75; }
.tracking-tight { letter-spacing: -0.02em; }

.text-foreground { color: var(--foreground); }
.text-muted { color: var(--muted-foreground); }
.text-brand-deep { color: var(--brand-deep); }
.text-brand-blue { color: var(--brand-blue); }
.text-brand-green { color: var(--brand-green); }
.text-brand-amber { color: var(--brand-amber); }
.text-brand-danger { color: var(--brand-danger); }
.text-brand-cyan { color: var(--brand-cyan); }
.text-white { color: #fff; }
.opacity-70 { opacity: 0.7; }

.hidden { display: none !important; }
.relative { position: relative; }
.absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }
.cursor-pointer { cursor: pointer; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: var(--radius-btn); font-weight: 600; font-size: 0.875rem;
  padding: 0.625rem 1.25rem; transition: all 0.2s var(--ease);
  border: 1px solid transparent; white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-blue));
  color: #fff; box-shadow: 0 4px 12px rgba(30, 58, 95, 0.2);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35); }
.btn-cyan {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  color: #fff; box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}
.btn-cyan:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35); }
.btn-white { background: #fff; color: var(--brand-deep); box-shadow: var(--shadow-md); }
.btn-white:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline { border-color: var(--border); color: var(--foreground); background: #fff; }
.btn-outline:hover:not(:disabled) { border-color: var(--brand-blue); color: var(--brand-deep); background: var(--brand-light); }
.btn-ghost { color: rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); }
.btn-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.2); color: #fff; }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }
.btn-danger:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3); }
.btn-amber { background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; }
.btn-amber:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3); }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; border-radius: var(--radius-xl); }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.75rem; }
.btn-block { width: 100%; }

/* ---------------- Cards ---------------- */
.card {
  background: var(--card); border-radius: var(--radius-card);
  border: 1px solid rgba(226, 232, 240, 0.6); box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease);
}
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card-body { padding: 1.5rem; }
.card-title { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }

/* ---------------- Badges ---------------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  border-radius: 999px; padding: 0.125rem 0.625rem;
  font-size: 0.75rem; font-weight: 600; line-height: 1.6;
}
.badge-blue { background: rgba(14, 165, 233, 0.1); color: var(--brand-blue); }
.badge-deep { background: rgba(30, 58, 95, 0.1); color: var(--brand-deep); }
.badge-green { background: rgba(16, 185, 129, 0.1); color: var(--brand-green); }
.badge-amber { background: rgba(245, 158, 11, 0.12); color: #b45309; }
.badge-danger { background: rgba(239, 68, 68, 0.1); color: #b91c1c; }
.badge-cyan { background: rgba(6, 182, 212, 0.1); color: #0e7490; }
.badge-muted { background: var(--muted); color: var(--muted-foreground); }

/* ---------------- Forms ---------------- */
.input, .textarea, .select {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius-btn);
  background: #fff; padding: 0.625rem 0.875rem; font-size: 0.875rem;
  color: var(--foreground); transition: all 0.2s var(--ease); outline: none;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.textarea { resize: none; line-height: 1.75; }
.label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem; }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--muted-foreground); }
.input-icon .input { padding-left: 2.25rem; }

/* ---------------- Navbar ---------------- */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.navbar-logo { display: flex; align-items: center; gap: 0.625rem; }
.navbar-logo-icon {
  width: 2.25rem; height: 2.25rem; border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-blue));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.2); transition: box-shadow 0.2s var(--ease);
}
.navbar-logo:hover .navbar-logo-icon { box-shadow: 0 6px 16px rgba(14, 165, 233, 0.35); }
.navbar-logo-name { font-size: 1.125rem; font-weight: 700; color: var(--brand-deep); line-height: 1.2; }
.navbar-logo-sub { font-size: 10px; color: var(--muted-foreground); line-height: 1.2; }
.navbar-nav { display: none; align-items: center; gap: 0.25rem; }
.navbar-link {
  padding: 0.5rem 0.875rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500;
  color: rgba(30, 41, 59, 0.7); transition: all 0.2s var(--ease);
}
.navbar-link:hover { color: var(--brand-deep); background: var(--brand-light); }
.navbar-link.active { background: var(--brand-deep); color: #fff; box-shadow: 0 4px 12px rgba(30, 58, 95, 0.2); }
.navbar-cta { display: none; }
.navbar-toggle { display: flex; padding: 0.5rem; border-radius: 0.5rem; }
.navbar-toggle:hover { background: var(--muted); }
.navbar-mobile { display: none; border-top: 1px solid rgba(226, 232, 240, 0.6); background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(16px); }
.navbar-mobile.open { display: block; }
.navbar-mobile nav { display: flex; flex-direction: column; gap: 0.25rem; padding: 1rem 0; }
@media (min-width: 768px) {
  .navbar-nav { display: flex; }
  .navbar-cta { display: flex; align-items: center; gap: 0.75rem; }
  .navbar-toggle { display: none; }
}

/* ---------------- Footer ---------------- */
.footer { background: var(--brand-deep); color: rgba(255, 255, 255, 0.9); margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-title { font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; color: rgba(255, 255, 255, 0.8); }
.footer-link { font-size: 0.875rem; color: rgba(255, 255, 255, 0.6); transition: color 0.2s; display: block; padding: 0.3rem 0; }
.footer-link:hover { color: var(--brand-blue); }
.footer-text { font-size: 0.875rem; color: rgba(255, 255, 255, 0.6); line-height: 1.75; }
.footer-contact { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: rgba(255, 255, 255, 0.6); padding: 0.3rem 0; }
.footer-bottom {
  margin-top: 0.5rem; padding: 2rem 0; border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; color: rgba(255, 255, 255, 0.4);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

/* ---------------- Page Hero（内页头部） ---------------- */
.page-hero {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-deep-2), var(--brand-blue));
  padding: 4rem 0; text-align: center; position: relative; overflow: hidden;
}
.page-hero::before, .page-hero::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(64px);
}
.page-hero::before { width: 18rem; height: 18rem; background: rgba(14, 165, 233, 0.18); top: -6rem; right: -4rem; }
.page-hero::after { width: 14rem; height: 14rem; background: rgba(6, 182, 212, 0.14); bottom: -5rem; left: -3rem; }
.page-hero-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 1rem; margin: 0 auto 1.5rem;
  background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.page-hero h1 { font-size: 1.875rem; font-weight: 900; color: #fff; margin-bottom: 1rem; position: relative; }
@media (min-width: 640px) { .page-hero h1 { font-size: 2.25rem; } }
.page-hero p { color: rgba(255, 255, 255, 0.7); max-width: 36rem; margin: 0 auto; position: relative; }

/* ---------------- Home Hero ---------------- */
.home-hero { position: relative; min-height: 90vh; display: flex; align-items: center; overflow: hidden; }
.home-hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, var(--brand-deep), var(--brand-deep-2) 50%, var(--brand-blue)); }
.home-hero-bg::before {
  content: ''; position: absolute; inset: 0; opacity: 0.16;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.5) 0 2px, transparent 3px),
    radial-gradient(circle at 68% 62%, rgba(255, 255, 255, 0.35) 0 2px, transparent 3px),
    radial-gradient(circle at 22% 78%, rgba(255, 255, 255, 0.4) 0 2px, transparent 3px),
    radial-gradient(circle at 42% 28%, rgba(255, 255, 255, 0.3) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.3) 0 1.5px, transparent 2.5px);
  background-size: 220px 220px;
}
.home-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30, 58, 95, 0.85), transparent 45%, rgba(30, 58, 95, 0.35));
}
.home-hero-blob { position: absolute; border-radius: 50%; filter: blur(72px); }
.home-hero-blob.b1 { width: 18rem; height: 18rem; background: rgba(14, 165, 233, 0.2); top: 5rem; left: 2.5rem; }
.home-hero-blob.b2 { width: 24rem; height: 24rem; background: rgba(6, 182, 212, 0.15); bottom: 5rem; right: 2.5rem; }
.home-hero-content { position: relative; padding: 5rem 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2); padding: 0.375rem 1rem; margin-bottom: 2rem;
  font-size: 0.875rem; color: rgba(255, 255, 255, 0.9);
}
.hero-badge .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--brand-green); animation: pulse 2s infinite; }
.hero-title { font-size: 2.25rem; font-weight: 900; color: #fff; line-height: 1.2; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.75rem; } }
.hero-title .gradient {
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan), var(--brand-green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-desc { font-size: 1.125rem; color: rgba(255, 255, 255, 0.7); line-height: 1.75; margin-bottom: 2.5rem; max-width: 42rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-trust { margin-top: 3rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.hero-trust span { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: rgba(255, 255, 255, 0.5); }

/* ---------------- Section common ---------------- */
.section { padding: 5rem 0; }
@media (min-width: 640px) { .section { padding: 7rem 0; } }
.section-light { background: linear-gradient(to bottom, var(--brand-light), #fff); }
.section-white { background: linear-gradient(to bottom, #fff, var(--brand-light)); }
.section-head { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
  display: inline-block; font-size: 0.875rem; font-weight: 600; border-radius: 999px;
  padding: 0.375rem 1rem; margin-bottom: 1rem;
}
.section-tag.blue { color: var(--brand-blue); background: rgba(14, 165, 233, 0.1); }
.section-tag.amber { color: var(--brand-amber); background: rgba(245, 158, 11, 0.1); }
.section-tag.green { color: var(--brand-green); background: rgba(16, 185, 129, 0.1); }
.section-tag.deep { color: var(--brand-deep); background: rgba(30, 58, 95, 0.1); }
.section-title { font-size: 1.875rem; font-weight: 900; margin-bottom: 1rem; }
@media (min-width: 640px) { .section-title { font-size: 2.25rem; } }
.section-desc { color: var(--muted-foreground); max-width: 42rem; margin: 0 auto; }

/* ---------------- Stats ---------------- */
.stats-row { position: relative; z-index: 10; margin-top: -4rem; }
.stat-card {
  background: #fff; border-radius: var(--radius-xl); padding: 1.25rem;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(226, 232, 240, 0.6); text-align: center;
}
.stat-card .stat-icon { width: 1.25rem; height: 1.25rem; color: var(--brand-blue); margin: 0 auto 0.5rem; }
.stat-value { font-size: 1.5rem; font-weight: 900; color: var(--brand-deep); }
@media (min-width: 640px) { .stat-value { font-size: 1.875rem; } }
.stat-label { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.25rem; }

/* ---------------- Feature cards ---------------- */
.feature-card {
  background: #fff; border-radius: var(--radius-xl); padding: 1.5rem;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.3s var(--ease); height: 100%;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 3rem; height: 3rem; border-radius: 0.75rem; display: inline-flex;
  align-items: center; justify-content: center; margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.15); color: #fff;
}
.feature-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-desc { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.75; }

.grad-deep-blue { background: linear-gradient(135deg, var(--brand-deep), var(--brand-blue)); }
.grad-blue-cyan { background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan)); }
.grad-amber { background: linear-gradient(135deg, var(--brand-amber), #f97316); }
.grad-green { background: linear-gradient(135deg, var(--brand-green), #059669); }
.grad-purple { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.grad-rose { background: linear-gradient(135deg, #f43f5e, #db2777); }

/* ---------------- Risk level cards ---------------- */
.risk-card {
  background: #fff; border-radius: var(--radius-xl); padding: 1.5rem;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(226, 232, 240, 0.6);
  border-left: 4px solid; transition: box-shadow 0.3s var(--ease);
}
.risk-card:hover { box-shadow: var(--shadow-lg); }
.risk-card.high { border-left-color: var(--brand-danger); }
.risk-card.medium { border-left-color: var(--brand-amber); }
.risk-card.low { border-left-color: var(--brand-cyan); }
.risk-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.risk-head-icon { width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; }
.risk-card.high .risk-head-icon { background: #fef2f2; color: var(--brand-danger); }
.risk-card.medium .risk-head-icon { background: #fffbeb; color: var(--brand-amber); }
.risk-card.low .risk-head-icon { background: #ecfeff; color: var(--brand-cyan); }
.risk-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: rgba(30, 41, 59, 0.8); padding: 0.25rem 0; }
.risk-item svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.risk-card.high .risk-item svg { color: var(--brand-danger); }
.risk-card.medium .risk-item svg { color: var(--brand-amber); }
.risk-card.low .risk-item svg { color: var(--brand-cyan); }

/* ---------------- Comparison table ---------------- */
.compare-table { background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); border: 1px solid rgba(226, 232, 240, 0.6); overflow: hidden; }
.compare-row { display: grid; grid-template-columns: 1fr 1.2fr 1.3fr; }
.compare-row > div { padding: 1rem; font-size: 0.875rem; }
.compare-row.head > div { font-weight: 600; background: var(--brand-deep); color: #fff; }
.compare-row.head > div:nth-child(2) { background: var(--muted); color: var(--muted-foreground); }
.compare-row:not(.head) { border-top: 1px solid rgba(226, 232, 240, 0.6); }
.compare-row:not(.head) > div:first-child { font-weight: 500; }
.compare-row:not(.head) > div:nth-child(2) { color: var(--muted-foreground); }
.compare-row:not(.head) > div:nth-child(3) { color: var(--brand-deep); font-weight: 500; background: rgba(14, 165, 233, 0.05); }

/* ---------------- CTA banner ---------------- */
.cta-banner { position: relative; border-radius: 1.5rem; overflow: hidden; }
.cta-banner-bg { position: absolute; inset: 0; background: linear-gradient(135deg, var(--brand-deep), var(--brand-deep-2), var(--brand-blue)); }
.cta-banner-blob { position: absolute; border-radius: 50%; filter: blur(64px); }
.cta-banner-blob.b1 { width: 16rem; height: 16rem; background: rgba(14, 165, 233, 0.2); top: 0; right: 0; }
.cta-banner-blob.b2 { width: 12rem; height: 12rem; background: rgba(6, 182, 212, 0.2); bottom: 0; left: 0; }
.cta-banner-content { position: relative; padding: 4rem 2rem; text-align: center; }
@media (min-width: 640px) { .cta-banner-content { padding: 4rem; } }

/* ---------------- Tabs ---------------- */
.tabs-list { display: inline-flex; gap: 0.25rem; background: var(--muted); border-radius: 0.75rem; padding: 0.25rem; }
.tabs-list.full { display: grid; width: 100%; }
.tabs-list.cols-2 { grid-template-columns: repeat(2, 1fr); }
.tabs-list.cols-3 { grid-template-columns: repeat(3, 1fr); }
.tabs-trigger {
  padding: 0.5rem 1rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500;
  color: var(--muted-foreground); transition: all 0.2s var(--ease);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem;
}
.tabs-trigger:hover { color: var(--foreground); }
.tabs-trigger.active { background: #fff; color: var(--brand-deep); box-shadow: var(--shadow-sm); font-weight: 600; }
.tabs-panel { display: none; }
.tabs-panel.active { display: block; animation: fadeIn 0.4s var(--ease); }

/* ---------------- Detect page ---------------- */
.detect-result { animation: fadeIn 0.5s var(--ease); }
.result-head { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.result-icon { width: 3rem; height: 3rem; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.result-icon.high { background: #fef2f2; color: var(--brand-danger); }
.result-icon.medium { background: #fffbeb; color: var(--brand-amber); }
.result-icon.low { background: #ecfeff; color: var(--brand-cyan); }
.result-icon.safe { background: #ecfdf5; color: var(--brand-green); }
.score-bar { height: 0.5rem; background: #f1f5f9; border-radius: 999px; overflow: hidden; margin-top: 0.5rem; }
.score-bar-fill { height: 100%; border-radius: 999px; transition: width 1s var(--ease); }
.score-bar-fill.high { background: linear-gradient(90deg, #f87171, #ef4444); }
.score-bar-fill.medium { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.score-bar-fill.low { background: linear-gradient(90deg, #22d3ee, #06b6d4); }
.score-bar-fill.safe { background: linear-gradient(90deg, #34d399, #10b981); }

.dim-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.dim-box { border-radius: 0.75rem; padding: 0.875rem 1rem; }
.dim-box.harm { background: #fff7ed; border: 1px solid #fed7aa; }
.dim-box.malice { background: #eff6ff; border: 1px solid #bfdbfe; }
.dim-box .dim-label { font-size: 0.75rem; font-weight: 600; display: flex; align-items: center; gap: 0.375rem; }
.dim-box.harm .dim-label { color: #c2410c; }
.dim-box.malice .dim-label { color: #1d4ed8; }
.dim-box .dim-value { font-size: 1.25rem; font-weight: 900; }
.dim-box .dim-desc { font-size: 0.6875rem; color: var(--muted-foreground); line-height: 1.5; margin-top: 0.25rem; }

.highlight-box {
  background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 0.75rem;
  padding: 1rem; font-size: 0.9375rem; line-height: 2;
}
.hl { border-radius: 3px; padding: 1px 2px; font-weight: 600; }
.hl-high { background: #fee2e2; color: #b91c1c; border-bottom: 2px solid #ef4444; }
.hl-medium { background: #fef3c7; color: #b45309; border-bottom: 2px solid #f59e0b; }
.hl-low { background: #cffafe; color: #0e7490; border-bottom: 2px solid #06b6d4; }

.signal-item { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); padding: 0.375rem 0; }
.signal-item .sig-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; margin-top: 0.5rem; flex-shrink: 0; }
.sig-dot.high { background: var(--brand-danger); }
.sig-dot.medium { background: var(--brand-amber); }
.sig-dot.low { background: var(--brand-cyan); }

.emergency-box { background: #fef2f2; border: 1px solid #fecaca; border-radius: 0.75rem; padding: 1rem; }
.help-box { background: linear-gradient(135deg, #ecfdf5, #f0fdfa); border: 1px solid #a7f3d0; border-radius: 0.75rem; padding: 1rem; }

.sample-btn {
  font-size: 0.75rem; padding: 0.25rem 0.625rem; border-radius: 999px;
  border: 1px solid var(--border); background: #fff; color: var(--muted-foreground);
  transition: all 0.2s var(--ease);
}
.sample-btn:hover { border-color: var(--brand-blue); color: var(--brand-blue); }

/* Monitor feed */
.monitor-panel { background: #0f172a; border-radius: var(--radius-xl); overflow: hidden; }
.monitor-header { display: flex; align-items: center; justify-content: space-between; padding: 0.875rem 1.25rem; background: rgba(30, 41, 59, 0.8); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.monitor-header .live { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; font-weight: 600; color: #4ade80; }
.monitor-header .live .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #4ade80; animation: pulse 1.5s infinite; }
.monitor-header .meta { font-size: 0.75rem; color: rgba(148, 163, 184, 0.8); }
.monitor-list { max-height: 26rem; overflow-y: auto; padding: 0.5rem; }
.monitor-item {
  display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem;
  border-radius: 0.625rem; transition: background 0.2s; animation: slideIn 0.4s var(--ease);
}
.monitor-item:hover { background: rgba(255, 255, 255, 0.04); }
.monitor-item + .monitor-item { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.monitor-item .m-time { font-size: 0.6875rem; color: rgba(148, 163, 184, 0.7); font-family: ui-monospace, monospace; white-space: nowrap; padding-top: 0.125rem; }
.monitor-item .m-body { flex: 1; min-width: 0; }
.monitor-item .m-text { font-size: 0.8125rem; color: #e2e8f0; line-height: 1.6; word-break: break-all; }
.monitor-item .m-meta { font-size: 0.6875rem; color: rgba(148, 163, 184, 0.7); margin-top: 0.25rem; }
.m-level { font-size: 0.625rem; font-weight: 700; padding: 0.0625rem 0.5rem; border-radius: 999px; white-space: nowrap; }
.m-level.high { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.m-level.medium { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
.m-level.low { background: rgba(6, 182, 212, 0.2); color: #67e8f9; }
.m-level.safe { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }

/* ---------------- Dashboard ---------------- */
.stat-trend { font-size: 0.75rem; font-weight: 500; display: inline-flex; align-items: center; gap: 0.125rem; }
.stat-trend.up { color: var(--brand-green); }
.stat-trend.down { color: var(--brand-amber); }

.dist-row { margin-bottom: 1rem; }
.dist-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.375rem; }
.dist-label { font-size: 0.875rem; font-weight: 500; }
.dist-value { font-size: 0.875rem; color: var(--muted-foreground); }
.dist-bar { height: 0.75rem; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
.dist-bar-fill { height: 100%; border-radius: 999px; transition: width 1s var(--ease); }

.trend-chart { height: 12rem; display: flex; align-items: flex-end; justify-content: space-between; gap: 2px; padding: 0 0.5rem; }
.trend-bar { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(to top, var(--brand-blue), var(--brand-cyan)); opacity: 0.8; transition: opacity 0.2s; min-height: 4%; }
.trend-bar:hover { opacity: 1; }

.data-table { width: 100%; font-size: 0.875rem; }
.data-table th { text-align: left; padding: 0.75rem 0.5rem; font-weight: 500; color: var(--muted-foreground); border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table td { padding: 0.75rem 0.5rem; border-bottom: 1px solid rgba(226, 232, 240, 0.6); white-space: nowrap; }
.data-table tbody tr { transition: background 0.2s; cursor: pointer; }
.data-table tbody tr:hover { background: rgba(240, 247, 255, 0.6); }

.filter-chip {
  font-size: 0.75rem; font-weight: 500; padding: 0.3125rem 0.75rem; border-radius: 999px;
  border: 1px solid var(--border); background: #fff; color: var(--muted-foreground); transition: all 0.2s var(--ease);
}
.filter-chip:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.filter-chip.active { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }

.org-card { background: #fff; border-radius: var(--radius-xl); padding: 1.25rem; box-shadow: var(--shadow-sm); border: 1px solid rgba(226, 232, 240, 0.6); transition: all 0.3s var(--ease); }
.org-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* Timeline (case detail) */
.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before { content: ''; position: absolute; left: 0.3125rem; top: 0.5rem; bottom: 0.5rem; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 1.25rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -1.5rem; top: 0.5rem; width: 0.625rem; height: 0.625rem;
  border-radius: 50%; background: var(--brand-blue); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--brand-blue);
}
.timeline-item.done::before { background: var(--brand-green); box-shadow: 0 0 0 2px var(--brand-green); }
.timeline-item .t-time { font-size: 0.75rem; color: var(--muted-foreground); font-family: ui-monospace, monospace; }
.timeline-item .t-event { font-size: 0.875rem; font-weight: 500; }

/* Progress */
.progress { height: 0.375rem; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan)); transition: width 0.6s var(--ease); }

/* Scenario quiz */
.scenario-option {
  width: 100%; text-align: left; padding: 1rem; border-radius: 0.75rem;
  border: 2px solid var(--border); transition: all 0.2s var(--ease); background: #fff;
}
.scenario-option:hover { border-color: rgba(14, 165, 233, 0.5); background: var(--brand-light); }
.scenario-option.correct { border-color: #86efac; background: #f0fdf4; }
.scenario-option.wrong { border-color: #fca5a5; background: #fef2f2; }
.scenario-option.reveal { border-color: #86efac; background: #f0fdf4; }
.option-radio {
  width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 0.125rem;
  color: #fff; transition: all 0.2s;
}
.scenario-option.correct .option-radio, .scenario-option.wrong .option-radio { background: var(--brand-green); border-color: var(--brand-green); }
.scenario-option.wrong .option-radio { background: var(--brand-danger); border-color: var(--brand-danger); }
.scenario-option.reveal .option-radio { background: var(--brand-green); border-color: var(--brand-green); }

/* Toast */
.toast-wrap { position: fixed; top: 5rem; right: 1rem; z-index: 100; display: flex; flex-direction: column; gap: 0.5rem; }
.toast {
  background: #fff; border-radius: 0.75rem; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); padding: 0.75rem 1.125rem; font-size: 0.875rem;
  display: flex; align-items: center; gap: 0.5rem; animation: toastIn 0.3s var(--ease);
  max-width: 20rem;
}
.toast.success { border-color: #a7f3d0; }
.toast.success svg { color: var(--brand-green); }
.toast.info svg { color: var(--brand-blue); }
.toast.warn { border-color: #fde68a; }
.toast.warn svg { color: var(--brand-amber); }

/* Empty state */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted-foreground); }
.empty-state svg { width: 3rem; height: 3rem; margin: 0 auto 1rem; opacity: 0.4; }

/* Report detail */
.report-hero { background: linear-gradient(135deg, var(--brand-deep), var(--brand-deep-2), var(--brand-blue)); border-radius: var(--radius-xl); padding: 2rem; color: #fff; position: relative; overflow: hidden; }
.report-section { background: #fff; border-radius: var(--radius-xl); border: 1px solid rgba(226, 232, 240, 0.6); box-shadow: var(--shadow-sm); padding: 1.5rem; margin-bottom: 1.5rem; }
.report-section h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }

/* Animations */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }

.reveal { opacity: 0; transform: translateY(2rem); transition: all 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Responsive helpers */
@media (max-width: 767px) {
  .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-3 { grid-template-columns: 1fr; }
  .dim-row { grid-template-columns: 1fr; }
  .compare-row { grid-template-columns: 1fr 1fr; }
  .compare-row > div:nth-child(2) { display: none; }
  .compare-row.head > div:nth-child(2) { display: none; }
}

/* ---------- 语言切换器 ---------- */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.45rem 0.7rem; border-radius: 0.6rem;
  border: 1px solid var(--muted); background: rgba(255,255,255,0.7);
  color: var(--brand-deep); font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s var(--ease); white-space: nowrap;
}
.lang-btn:hover { border-color: var(--brand-blue); background: #fff; box-shadow: var(--shadow-sm); }
.lang-btn .icon { color: var(--brand-blue); }
.lang-current { line-height: 1; }
.lang-menu {
  position: absolute; top: calc(100% + 0.5rem); right: 0; z-index: 50;
  min-width: 9rem; padding: 0.4rem; border-radius: 0.75rem;
  background: #fff; border: 1px solid var(--muted);
  box-shadow: var(--shadow-lg); display: none; flex-direction: column; gap: 0.15rem;
}
.lang-menu.open { display: flex; animation: toastIn 0.18s ease; }
.lang-opt {
  display: flex; align-items: center; gap: 0.5rem; width: 100%;
  padding: 0.5rem 0.65rem; border: none; border-radius: 0.5rem;
  background: transparent; color: var(--brand-deep); font-size: 0.875rem; cursor: pointer; text-align: left;
}
.lang-opt:hover { background: var(--brand-light); }
.lang-opt.active { background: var(--brand-deep); color: #fff; }
.lang-opt.active:hover { background: var(--brand-deep); }

/* 移动端菜单内的语言切换 */
.navbar-mobile .lang-switch { width: 100%; margin-bottom: 0.5rem; }
.navbar-mobile .lang-btn { width: 100%; justify-content: center; }
.navbar-mobile .lang-menu { position: static; box-shadow: none; border: none; background: var(--muted); display: flex; margin-top: 0.4rem; }
.navbar-mobile .lang-menu.open { display: flex; }


/* ---------------- 普法视频专栏 ---------------- */
.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #0b1220;
  border-radius: 0.75rem 0.75rem 0 0;
  overflow: hidden;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-card .card-body { padding-top: 0.75rem; }

/* ---------------- 导航「二期」徽标 ---------------- */
.nav-badge {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  vertical-align: middle;
}

/* ---------------- 东盟拓展页 ---------------- */
.asean-hero {
  background: radial-gradient(1200px 500px at 20% -10%, rgba(14,165,233,.25), transparent 60%),
              linear-gradient(135deg, #0b1e3a 0%, #123a6b 55%, #0b6ea8 100%);
  color: #fff;
  padding: 3.5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}
.asean-hero .badge-glass {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px; padding: 0.25rem 0.85rem;
  font-size: 0.8125rem; font-weight: 600;
  backdrop-filter: blur(6px);
}
.asean-lang-chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.4rem 0.95rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.08);
  color: #fff; font-size: 0.875rem; font-weight: 600;
  cursor: pointer; transition: all .2s var(--ease);
}
.asean-lang-chip:hover { background: rgba(255,255,255,.2); }
.asean-lang-chip.active {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  border-color: transparent;
  color: #fff;
}
.asean-feature-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; border: 1px solid var(--border);
  border-radius: 999px; padding: 0.55rem 1.1rem;
  font-size: 0.875rem; font-weight: 600; color: var(--brand-deep);
  box-shadow: 0 2px 8px rgba(15,23,42,.05);
}
.asean-feature-chip .cnt {
  background: var(--brand-cyan); color: #fff;
  border-radius: 999px; font-size: 0.6875rem;
  padding: 0.05rem 0.5rem; font-weight: 800;
}
.lang-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 1rem; padding: 1.25rem;
  transition: all .25s var(--ease);
  display: flex; flex-direction: column; gap: 0.5rem;
}
.lang-card.active {
  border-color: #f59e0b;
  background: linear-gradient(135deg, rgba(245,158,11,.07), rgba(249,115,22,.05));
  box-shadow: 0 8px 24px rgba(245,158,11,.12);
}
.lang-card .lang-ava {
  width: 2.5rem; height: 2.5rem; border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem;
}
.lang-card .cover-tag {
  position: absolute; top: 0.75rem; right: 0.75rem;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff; border-radius: 999px;
  font-size: 0.6875rem; font-weight: 700; padding: 0.15rem 0.6rem;
}
.scenario-box {
  background: linear-gradient(135deg, rgba(14,165,233,.06), rgba(6,182,212,.05));
  border: 1px solid rgba(14,165,233,.18);
  border-radius: 0.875rem; padding: 1rem 1.25rem;
}
.timeline-2col { position: relative; }
.timeline-2col::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px; background: linear-gradient(180deg, rgba(14,165,233,.5), rgba(245,158,11,.5));
  transform: translateX(-50%);
}
.tl-item { position: relative; padding: 0 2rem 1.5rem; }
.tl-item .tl-dot {
  position: absolute; top: 0.35rem; width: 12px; height: 12px;
  border-radius: 50%; background: #fff;
  border: 3px solid var(--brand-cyan);
}
.tl-item.left .tl-dot { left: -6px; }
.tl-item.right .tl-dot { right: -6px; border-color: #f59e0b; }
@media (max-width: 767px) {
  .timeline-2col::before { left: 8px; }
  .tl-item { padding: 0 0 1.5rem 2rem; }
  .tl-item .tl-dot { left: 2px !important; right: auto !important; }
  .grid-cols-3 { grid-template-columns: 1fr; }
}

/* ---------------- 文献库条目 ---------------- */
.doc-item {
  display: flex; align-items: center; gap: 0.75rem;
  background: #fff; border: 1px solid var(--border);
  border-radius: 0.75rem; padding: 0.75rem 1rem;
  text-decoration: none; color: inherit;
  transition: all .2s var(--ease);
}
.doc-item:hover {
  border-color: var(--brand-cyan);
  box-shadow: 0 4px 14px rgba(14,165,233,.12);
  transform: translateY(-1px);
}

/* ---------------- 导航「国际版」高亮（黄色） ---------------- */
.navbar-link.nav-hl {
  background: linear-gradient(135deg, #fde68a, #fbbf24);
  color: #7c2d12 !important;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.35rem 0.85rem !important;
  margin-left: 0.25rem;
  box-shadow: 0 2px 10px rgba(245,158,11,.28);
}
.navbar-link.nav-hl:hover { filter: brightness(1.05); }
.navbar-link.nav-hl.active {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #fff !important;
}

/* ---------------- 国际版子导航（跟随页面滚动，不悬浮置顶） ---------------- */
.intl-subnav {
  position: static;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
}
.intl-subnav .inner {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  max-width: 72rem; margin: 0 auto; padding: 0 1rem;
}
.intl-chip {
  border: 1px solid var(--border); background: #fff;
  color: var(--brand-deep); font-weight: 700; font-size: 0.875rem;
  padding: 0.45rem 1rem; border-radius: 999px; cursor: pointer;
  transition: all .2s var(--ease); white-space: nowrap;
}
.intl-chip:hover { border-color: var(--brand-cyan); }
.intl-chip.active {
  background: linear-gradient(135deg, #1e3a5f, #0b6ea8);
  color: #fff; border-color: transparent;
}
.intl-section { scroll-margin-top: 130px; }
.intl-section + .intl-section { margin-top: 3.5rem; }
.treaty-card { border-left: 3px solid var(--brand-amber); }
.treaty-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem 1.25rem; margin-top: 1rem;
  background: var(--brand-light); border-radius: 0.75rem; padding: 0.875rem 1rem;
}
.treaty-meta .k { font-size: 0.75rem; color: var(--muted-foreground); margin-bottom: 0.15rem; }
.treaty-meta .v { font-size: 0.85rem; font-weight: 600; line-height: 1.6; }

/* ---------------- 立法动态筛选 ---------------- */
.tl-filter { display: inline-flex; gap: 0.4rem; background: var(--muted); padding: 0.25rem; border-radius: 999px; }
.tl-filter button {
  border: none; background: transparent; cursor: pointer;
  padding: 0.35rem 1rem; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 700; color: var(--muted-foreground);
}
.tl-filter button.active { background: #fff; color: var(--brand-deep); box-shadow: 0 1px 6px rgba(15,23,42,.08); }
.tl-wrap.hide-left .tl-item.left { visibility: hidden; }
.tl-wrap.hide-right .tl-item.right { visibility: hidden; }
.tl-wrap.hide-left::before { left: 100%; }
.tl-wrap.hide-left .tl-item.left { display: none; }
.tl-wrap.hide-right .tl-item.right { display: none; }

/* ---------------- 模块卡（参考图样式） ---------------- */
.mod-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 1rem; padding: 1.5rem;
  transition: all .25s var(--ease);
}
.mod-card:hover { box-shadow: 0 12px 30px rgba(15,23,42,.08); transform: translateY(-2px); }
.mod-card .mod-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.mod-card .mod-ico {
  width: 2.75rem; height: 2.75rem; border-radius: 0.875rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mod-card h3 { font-size: 1.05rem; font-weight: 800; line-height: 1.45; }
.mod-card ul { margin-top: 0.75rem; display: flex; flex-direction: column; gap: 0.4rem; }
.mod-card li { font-size: 0.85rem; color: var(--muted-foreground); line-height: 1.7; display: flex; gap: 0.5rem; }

/* ============ 双栏并行时间轴组件 ============ */
.tl2-filter { display: inline-flex; flex-wrap: wrap; gap: 0.4rem; background: var(--muted); padding: 0.3rem; border-radius: 999px; }
.tl2-chip {
  border: none; background: transparent; cursor: pointer;
  padding: 0.4rem 1.1rem; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 700; color: var(--muted-foreground);
  transition: all .2s var(--ease);
}
.tl2-chip:hover { color: var(--brand-deep); }
.tl2-chip.active { background: #fff; color: var(--brand-deep); box-shadow: 0 1px 6px rgba(15,23,42,.1); }

.tl2-dual { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.tl2-dual::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 3px; transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(239,68,68,.35), rgba(37,99,235,.35));
  border-radius: 3px;
}
.tl2-col { display: flex; flex-direction: column; gap: 1rem; }
.tl2-col.left { padding-right: 1.25rem; }
.tl2-col.right { padding-left: 1.25rem; }
.tl2-col-head { text-align: center; margin-bottom: 0.25rem; }

.tl2-item { position: relative; }
.tl2-item .tl2-dot {
  position: absolute; top: 1.15rem; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; z-index: 2;
}
.tl2-item.left .tl2-dot { right: -1.9rem; border: 4px solid #ef4444; }
.tl2-item.right .tl2-dot { left: -1.9rem; border: 4px solid #2563eb; }

.tl2-card {
  background: #fff; border: 1px solid var(--border); border-radius: 0.875rem;
  padding: 0.9rem 1.1rem; box-shadow: 0 2px 10px rgba(15,23,42,.04);
  transition: all .2s var(--ease);
}
.tl2-card:hover { box-shadow: 0 8px 22px rgba(15,23,42,.09); transform: translateY(-2px); }
.tl2-top { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.tl2-date { font-size: 0.8rem; font-weight: 800; color: var(--brand-cyan); letter-spacing: .02em; }
.tl2-title { font-size: 0.95rem; font-weight: 700; line-height: 1.5; margin-bottom: 0.35rem; }
.tl2-desc { font-size: 0.85rem; line-height: 1.75; color: var(--muted-foreground); }
.tl2-src { font-size: 0.75rem; color: #94a3b8; margin-top: 0.5rem; }

.tl2-regional-wrap {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem; margin-top: 1.5rem;
}
.tl2-regional { border-left: 3px solid #10b981; }

/* 单独查看某一列时，隐藏另一列 */
.tl2-root.only-china .tl2-dual { grid-template-columns: 1fr; }
.tl2-root.only-china .tl2-col.right { display: none; }
.tl2-root.only-asean .tl2-dual { grid-template-columns: 1fr; }
.tl2-root.only-asean .tl2-col.left { display: none; }
.tl2-root.only-china .tl2-dual::before,
.tl2-root.only-asean .tl2-dual::before { left: 10px; transform: none; }
.tl2-root.only-china .tl2-col.left { padding: 0 0 0 1.5rem; }
.tl2-root.only-asean .tl2-col.right { padding: 0 0 0 1.5rem; }
.tl2-root.only-china .tl2-item.left .tl2-dot { right: auto; left: -1.9rem; }
.tl2-root.only-asean .tl2-item.right .tl2-dot { left: -1.9rem; }

@media (max-width: 767px) {
  .tl2-dual { grid-template-columns: 1fr; gap: 1rem; }
  .tl2-dual::before { left: 10px; transform: none; }
  .tl2-col.left, .tl2-col.right { padding: 0 0 0 1.6rem; }
  .tl2-item.left .tl2-dot, .tl2-item.right .tl2-dot { left: -1.9rem; right: auto; }
}

/* ============ 单条垂直时间轴（每个节点左右预留位置） ============ */
.tl3-body { position: relative; margin-top: 1.5rem; }
.tl3-body::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 3px; transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(239,68,68,.3), rgba(37,99,235,.3));
  border-radius: 3px;
}
.tl3-node {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem; margin-bottom: 1rem;
}
.tl3-slot { min-height: 1px; }
.tl3-slot.left { padding-right: 1.5rem; }
.tl3-slot.right { padding-left: 1.5rem; }
.tl3-dot {
  position: absolute; top: 1.15rem; left: 50%; transform: translateX(-50%);
  width: 14px; height: 14px; border-radius: 50%; background: #fff; z-index: 2;
}
.tl3-dot.left { border: 4px solid #ef4444; }
.tl3-dot.right { border: 4px solid #2563eb; }

.tl3-regional {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem; margin-top: 1.5rem;
}

/* 单侧筛选：仅左列 / 仅右列 */
.tl3-root.only-china .tl3-node,
.tl3-root.only-asean .tl3-node { grid-template-columns: 1fr; gap: 0; }
.tl3-root.only-china .tl3-slot.right,
.tl3-root.only-asean .tl3-slot.left { display: none; }
.tl3-root.only-china .tl3-slot.left { padding: 0 0 0 1.6rem; }
.tl3-root.only-asean .tl3-slot.right { padding: 0 0 0 1.6rem; }
.tl3-root.only-china .tl3-body::before,
.tl3-root.only-asean .tl3-body::before { left: 8px; transform: none; }
.tl3-root.only-china .tl3-dot,
.tl3-root.only-asean .tl3-dot { left: 8px; transform: none; }

@media (max-width: 767px) {
  .tl3-node { grid-template-columns: 1fr; gap: 0; }
  .tl3-body::before { left: 8px; transform: none; }
  .tl3-slot.left, .tl3-slot.right { padding: 0 0 0 1.6rem !important; }
  .tl3-dot { left: 8px !important; transform: none; }
}

/* ============ 国际版板块互斥切换 ============ */
.intl-section { display: none; }
.intl-section.active { display: block; }
.intl-section + .intl-section { margin-top: 3.5rem; }
