/* ========================================
   新结构政策数据网 V3 - Premium Design System
   ======================================== */
:root {
  --primary: #0a1628;
  --primary-mid: #132444;
  --primary-light: #1e56a0;
  --primary-bright: #3b82f6;
  --accent: #c9a84c;
  --accent-light: #e0c36e;
  --accent-dark: #a68b3a;
  --success: #059669;
  --success-light: #d1fae5;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --warning: #d97706;
  --warning-light: #fef3c7;
  --info: #0284c7;
  --info-light: #e0f2fe;
  --text: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --white: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ======== Top Announcement Bar ======== */
.topbar {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-mid) 100%);
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  padding: 6px 0;
  position: relative;
  z-index: 100;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-right a { color: var(--accent-light); }
.topbar-right a:hover { color: var(--accent); }
.live-dot { width: 6px; height: 6px; background: #22c55e; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.sep { opacity: 0.3; }

/* ======== Header / Navigation ======== */
.header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 99;
  transition: var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 40px; height: 40px; flex-shrink: 0; }
.logo-mark img { width: 40px; height: 40px; display: block; }
.logo-text h1 { font-size: 16px; font-weight: 800; color: var(--primary); line-height: 1.2; letter-spacing: -0.5px; }
.logo-text .logo-sub { font-size: 10px; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 14px; font-size: 13px; font-weight: 500; color: var(--text-secondary); border-radius: var(--radius-sm); position: relative; }
.nav a:hover, .nav a.active { color: var(--primary-light); background: var(--info-light); }
.nav a.nav-cta { background: var(--primary); color: white; font-weight: 600; }
.nav a.nav-cta:hover { background: var(--primary-light); }
.mobile-toggle { display: none; background: none; border: none; font-size: 20px; color: var(--text); cursor: pointer; padding: 8px; }

/* ======== Hero Section ======== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0d2d5e 40%, #163a6e 100%);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { display: grid; grid-template-columns: 1fr 380px; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(201,168,76,0.15); border: 1px solid rgba(201,168,76,0.3); color: var(--accent-light); font-size: 12px; font-weight: 600; padding: 6px 16px; border-radius: 20px; margin-bottom: 20px; }
.hero h2 { font-size: 40px; font-weight: 900; color: white; line-height: 1.3; margin-bottom: 16px; letter-spacing: -1px; }
.hero h2 .highlight { color: var(--accent-light); }
.hero-desc { font-size: 15px; color: rgba(255,255,255,0.65); line-height: 1.8; margin-bottom: 24px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.hero-tag { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); font-size: 12px; padding: 5px 12px; border-radius: 16px; transition: var(--transition); }
.hero-tag:hover { background: rgba(255,255,255,0.12); color: var(--accent-light); border-color: var(--accent); }
.hero-tag i { font-size: 10px; color: var(--accent); }
.hero-actions { display: flex; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: var(--radius); font-size: 14px; font-weight: 600; border: none; cursor: pointer; transition: var(--transition); }
.btn-primary { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); color: var(--primary); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.4); }
.btn-outline { background: transparent; border: 1.5px solid rgba(255,255,255,0.25); color: white; }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }

/* Hero Stats Panel */
.hero-stats-panel {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-item { text-align: center; padding: 16px 8px; background: rgba(255,255,255,0.04); border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.06); }
.stat-num { font-size: 28px; font-weight: 900; color: var(--accent-light); letter-spacing: -1px; }
.stat-label { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 4px; }
.stats-update { text-align: center; margin-top: 16px; font-size: 11px; color: rgba(255,255,255,0.4); }

/* ======== Section Shared ======== */
section { padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: 28px; font-weight: 800; color: var(--primary); margin-bottom: 8px; letter-spacing: -0.5px; }
.section-head h2 i { color: var(--primary-light); margin-right: 8px; }
.section-head p { font-size: 14px; color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.section-head-left { text-align: left; margin-bottom: 32px; }
.section-head-left h2 { font-size: 24px; }

/* ======== Policy Ticker / Marquee ======== */
.ticker-section { background: var(--white); border-bottom: 1px solid var(--border); padding: 12px 0; overflow: hidden; }
.ticker-wrap { display: flex; align-items: center; gap: 16px; }
.ticker-label { background: var(--danger); color: white; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 4px; white-space: nowrap; flex-shrink: 0; }
.ticker-content { display: flex; gap: 40px; animation: ticker 60s linear infinite; white-space: nowrap; }
.ticker-content span { font-size: 13px; color: var(--text-secondary); }
.ticker-content span strong { color: var(--danger); }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ======== Quick Nav Cards ======== */
.quick-nav { background: var(--white); padding: 48px 0; border-bottom: 1px solid var(--border); }
.quick-nav-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.qnav-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: var(--transition); cursor: pointer; text-align: center; }
.qnav-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); background: var(--white); }
.qnav-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.qnav-icon.blue { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: var(--primary-light); }
.qnav-icon.green { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: var(--success); }
.qnav-icon.purple { background: linear-gradient(135deg, #ede9fe, #ddd6fe); color: #7c3aed; }
.qnav-icon.orange { background: linear-gradient(135deg, #fef3c7, #fde68a); color: var(--warning); }
.qnav-icon.red { background: linear-gradient(135deg, #fee2e2, #fecaca); color: var(--danger); }
.qnav-card h3 { font-size: 14px; font-weight: 700; color: var(--text); }
.qnav-card p { font-size: 11px; color: var(--text-muted); line-height: 1.5; }

/* ======== Dashboard Charts ======== */
.dashboard { background: var(--bg-alt); }
.chart-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.chart-card { background: var(--white); border-radius: var(--radius-lg); padding: 24px; border: 1px solid var(--border); transition: var(--transition); }
.chart-card:hover { box-shadow: var(--shadow); }
.chart-card h3 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.chart-card h3 i { color: var(--primary-light); font-size: 14px; }
.chart-wrap { height: 220px; position: relative; }
.chart-card.wide { grid-column: span 2; }

/* ======== Policy Sections ======== */
.policies-section { background: var(--white); }
.policies-section.alt { background: var(--bg); }

/* Filter Bar */
.filter-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.filter-btn { padding: 7px 16px; font-size: 12px; font-weight: 600; border: 1px solid var(--border); background: var(--white); color: var(--text-secondary); border-radius: 20px; cursor: pointer; transition: var(--transition); }
.filter-btn:hover { border-color: var(--primary-light); color: var(--primary-light); }
.filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* Policy Cards Grid */
.policy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.policy-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  border-top: 3px solid var(--primary-light);
}
.policy-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary-bright); }
.policy-card.cert { border-top-color: var(--primary-light); }
.policy-card.subsidy { border-top-color: var(--success); }
.policy-card.tax { border-top-color: var(--warning); }
.policy-card.fund { border-top-color: var(--info); }
.policy-card.honor { border-top-color: #8b5cf6; }
.policy-card.finance { border-top-color: #ec4899; }
.card-top { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.card-type { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.type-cert { background: #dbeafe; color: #1e40af; }
.type-subsidy { background: #d1fae5; color: #065f46; }
.type-tax { background: #fef3c7; color: #92400e; }
.type-fund { background: #e0f2fe; color: #075985; }
.type-honor { background: #ede9fe; color: #5b21b6; }
.type-finance { background: #fce7f3; color: #9d174d; }
.type-talent { background: #fce7f3; color: #9d174d; }
.badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.badge.hot { background: #fee2e2; color: #dc2626; }
.badge.new { background: #d1fae5; color: #059669; }
.badge.urgent { background: #fff7ed; color: #ea580c; }
.badge.sm { font-size: 10px; padding: 1px 6px; margin-right: 4px; }
.card-title { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.5; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
.card-meta i { margin-right: 3px; }
.card-amount { font-size: 13px; font-weight: 800; color: var(--danger); margin-bottom: 10px; }
.card-amount i { color: var(--warning); margin-right: 4px; }
.card-bottom { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11px; }
.card-status { padding: 2px 8px; border-radius: 4px; font-weight: 600; font-size: 10px; }
.status-open { background: var(--success-light); color: var(--success); }
.status-always { background: var(--info-light); color: var(--info); }
.status-urgent { background: var(--warning-light); color: var(--warning); }
.status-closed { background: var(--bg-alt); color: var(--text-muted); }
.card-deadline { color: var(--text-muted); }
.card-target { color: var(--text-muted); }
.card-readmore { font-size: 11px; color: var(--primary-light); font-weight: 600; margin-top: 10px; opacity: 0; transition: var(--transition); }
.policy-card:hover .card-readmore { opacity: 1; }

/* Policy List (Provincial) */
.policy-list { margin-bottom: 24px; }
.policy-row { display: grid; grid-template-columns: 40px 1fr 90px 160px 60px; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 6px; background: var(--white); cursor: pointer; transition: var(--transition); }
.policy-row:hover { background: var(--bg); border-color: var(--primary-bright); box-shadow: var(--shadow-sm); }
.row-index { font-size: 13px; font-weight: 800; color: var(--text-muted); text-align: center; }
.row-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.row-meta { display: flex; gap: 12px; font-size: 11px; color: var(--text-muted); }
.row-meta i { margin-right: 3px; }
.type-tag { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.row-amount { font-size: 12px; font-weight: 700; color: var(--danger); }
.row-status { font-size: 11px; font-weight: 600; text-align: center; }

/* International Cards */
.card-country { font-size: 12px; font-weight: 700; color: var(--primary-light); }
.card-region-tag { font-size: 10px; background: var(--bg-alt); color: var(--text-muted); padding: 2px 8px; border-radius: 10px; }
.card-source { font-size: 10px; color: var(--text-muted); }
.china-tag { font-size: 10px; color: var(--success); font-weight: 600; }

/* Overseas Overview */
.overseas-overview { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px; }
.overseas-card { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%); border-radius: var(--radius); padding: 20px 16px; text-align: center; color: white; cursor: pointer; transition: var(--transition); }
.overseas-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ov-region { font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.ov-count { font-size: 22px; font-weight: 900; color: var(--accent-light); }
.ov-label { font-size: 10px; opacity: 0.5; margin-bottom: 6px; }
.ov-countries { font-size: 10px; opacity: 0.5; line-height: 1.4; }

/* ======== Expert Section ======== */
.expert-section { background: var(--bg-alt); }
.expert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.expert-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; cursor: pointer; transition: var(--transition); }
.expert-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.expert-cat { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 4px; background: var(--info-light); color: var(--info); margin-bottom: 12px; }
.expert-card h3 { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.5; margin-bottom: 10px; }
.expert-card p { font-size: 12px; color: var(--text-secondary); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 16px; }
.expert-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.expert-author { display: flex; align-items: center; gap: 10px; }
.author-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--primary-light), var(--primary)); color: white; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; }
.expert-author strong { font-size: 13px; display: block; }
.expert-author span { font-size: 10px; color: var(--text-muted); }
.expert-date { font-size: 11px; color: var(--text-muted); }
.expert-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.expert-tags span { font-size: 10px; color: var(--primary-light); background: var(--info-light); padding: 2px 8px; border-radius: 10px; }
.expert-card .card-readmore { margin-top: 10px; }
.expert-card:hover .card-readmore { opacity: 1; }

/* ======== Diagnosis CTA Section ======== */
.diagnosis-section { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%); padding: 64px 0; }
.diagnosis-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.diagnosis-text { color: white; }
.diagnosis-text h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.diagnosis-text p { font-size: 14px; opacity: 0.7; margin-bottom: 24px; line-height: 1.8; }
.diagnosis-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.diag-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-lg); padding: 24px; text-align: center; transition: var(--transition); cursor: pointer; }
.diag-card:hover { background: rgba(255,255,255,0.15); transform: translateY(-3px); }
.diag-card i { font-size: 32px; color: var(--accent-light); margin-bottom: 12px; }
.diag-card h3 { font-size: 15px; font-weight: 700; color: white; margin-bottom: 8px; }
.diag-card p { font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.6; }
.diag-card .btn { margin-top: 16px; font-size: 12px; padding: 8px 20px; }

/* ======== Services Section ======== */
.services-section { background: var(--white); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); transition: var(--transition); }
.service-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow); }
.service-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 16px; }
.service-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.service-card p { font-size: 12px; color: var(--text-muted); line-height: 1.7; }

/* ======== About Section ======== */
.about-section { background: var(--bg-alt); }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-text h2 { font-size: 26px; font-weight: 800; color: var(--primary); margin-bottom: 16px; }
.about-text p { font-size: 14px; color: var(--text-secondary); line-height: 1.9; margin-bottom: 20px; }
.about-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.about-nums div { text-align: center; padding: 16px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); }
.about-nums strong { display: block; font-size: 28px; font-weight: 900; color: var(--primary-light); }
.about-nums span { font-size: 12px; color: var(--text-muted); }

/* ======== Contact Section ======== */
.contact-section { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item i { font-size: 20px; color: var(--primary-light); margin-top: 2px; }
.contact-item strong { display: block; font-size: 14px; margin-bottom: 4px; }
.contact-item p { font-size: 13px; color: var(--text-muted); }
.contact-form { background: var(--bg); border-radius: var(--radius-lg); padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; font-family: var(--font); transition: var(--transition); background: var(--white); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(30,86,160,0.1); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-submit { width: 100%; padding: 12px; background: var(--primary); color: white; border: none; border-radius: var(--radius-sm); font-size: 14px; font-weight: 700; cursor: pointer; transition: var(--transition); }
.form-submit:hover { background: var(--primary-light); }

/* ======== Footer ======== */
.footer { background: var(--primary); color: rgba(255,255,255,0.6); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand h3 { font-size: 16px; font-weight: 800; color: white; margin-bottom: 8px; }
.footer-brand p { font-size: 12px; line-height: 1.7; }
.footer-links h4 { font-size: 13px; font-weight: 700; color: white; margin-bottom: 12px; }
.footer-links a { display: block; font-size: 12px; padding: 3px 0; transition: var(--transition); }
.footer-links a:hover { color: var(--accent-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 11px; text-align: center; }
.footer-bottom p { margin-bottom: 4px; }

/* ======== Pagination ======== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 24px 0; }
.pg-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: var(--white); border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; color: var(--text-secondary); cursor: pointer; transition: var(--transition); }
.pg-btn:hover:not(:disabled) { border-color: var(--primary-light); color: var(--primary-light); }
.pg-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.pg-btn:disabled { opacity: 0.4; cursor: default; }
.pg-btn.prev, .pg-btn.next { font-size: 16px; width: auto; padding: 0 12px; }
.pg-dots { color: var(--text-muted); font-size: 14px; padding: 0 4px; }
.pg-info { font-size: 12px; color: var(--text-muted); margin-left: 8px; }

/* ======== Modal ======== */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); justify-content: center; align-items: flex-start; padding: 40px 20px; overflow-y: auto; }
.modal-overlay.open { display: flex; }
.modal-content { background: var(--white); border-radius: var(--radius-lg); max-width: 800px; width: 100%; padding: 40px; position: relative; box-shadow: var(--shadow-xl); animation: modalIn 0.3s ease; }
@keyframes modalIn { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
.modal-close { position: absolute; top: 16px; right: 20px; background: none; border: none; font-size: 28px; color: var(--text-muted); cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: var(--transition); }
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-header { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.modal-title { font-size: 22px; font-weight: 800; color: var(--primary); line-height: 1.4; margin-bottom: 16px; }
.modal-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--text-muted); margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.modal-meta i { margin-right: 4px; color: var(--primary-light); }
.modal-amount { font-size: 18px; font-weight: 800; color: var(--danger); padding: 12px 16px; background: var(--danger-light); border-radius: var(--radius); margin-bottom: 20px; display: inline-block; }
.modal-amount i { margin-right: 6px; color: var(--warning); }
.modal-body-text { font-size: 14px; color: var(--text); line-height: 2; white-space: pre-wrap; }
.modal-footer { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted); }
.modal-footer a { color: var(--primary-light); font-weight: 600; }

/* ======== Data Note ======== */
.data-note { margin-top: 16px; padding: 14px 20px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 12px; color: var(--text-muted); }
.data-note a { color: var(--primary-light); font-weight: 600; }

/* ======== Back to Top ======== */
.back-to-top { position: fixed; bottom: 32px; right: 32px; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: white; border: none; cursor: pointer; font-size: 16px; box-shadow: var(--shadow-lg); display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(20px); transition: var(--transition); z-index: 50; }
.back-to-top.show { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-light); }

/* ======== Animation ======== */
.animate-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-in.visible { opacity: 1; transform: translateY(0); }

/* ======== Responsive ======== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-stats-panel { max-width: 400px; }
  .chart-grid { grid-template-columns: 1fr 1fr; }
  .chart-card.wide { grid-column: span 2; }
  .policy-grid { grid-template-columns: repeat(2, 1fr); }
  .expert-grid { grid-template-columns: repeat(2, 1fr); }
  .overseas-overview { grid-template-columns: repeat(3, 1fr); }
  .quick-nav-grid { grid-template-columns: repeat(3, 1fr); }
  .diagnosis-inner { grid-template-columns: 1fr; }
  .about-content { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .topbar-right { display: none; }
  .header .container { height: 56px; }
  .nav { display: none; position: absolute; top: 56px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 16px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .mobile-toggle { display: block; }
  .hero { padding: 48px 0 40px; }
  .hero h2 { font-size: 28px; }
  .hero-inner { gap: 24px; }
  .hero-actions { flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-num { font-size: 22px; }
  section { padding: 48px 0; }
  .section-head h2 { font-size: 22px; }
  .section-head { margin-bottom: 32px; }
  .chart-grid { grid-template-columns: 1fr; }
  .chart-card.wide { grid-column: span 1; }
  .policy-grid { grid-template-columns: 1fr; }
  .policy-row { grid-template-columns: 32px 1fr; gap: 8px; }
  .policy-row .row-type, .policy-row .row-amount, .policy-row .row-status { display: none; }
  .row-title { font-size: 13px; }
  .expert-grid { grid-template-columns: 1fr; }
  .overseas-overview { grid-template-columns: repeat(2, 1fr); }
  .quick-nav-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: 1fr; }
  .diagnosis-cards { grid-template-columns: 1fr; }
  .about-nums { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .about-nums strong { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .modal-content { padding: 24px 16px; margin: 16px; }
  .modal-title { font-size: 18px; }
  .filter-bar { gap: 4px; }
  .filter-btn { padding: 5px 10px; font-size: 11px; }
}

@media (max-width: 480px) {
  .hero h2 { font-size: 24px; }
  .hero-tags { gap: 4px; }
  .hero-tag { font-size: 11px; padding: 4px 8px; }
  .quick-nav-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .qnav-card { padding: 16px 8px; }
  .qnav-icon { width: 40px; height: 40px; font-size: 18px; }
  .overseas-overview { grid-template-columns: 1fr 1fr; gap: 8px; }
}

/* ======== Sub-page Shared ======== */
.subpage-hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%); padding: 100px 0 48px; position: relative; }
.subpage-hero h1 { font-size: 32px; font-weight: 900; color: white; margin-bottom: 12px; }
.subpage-hero p { font-size: 15px; color: rgba(255,255,255,0.6); max-width: 700px; line-height: 1.8; }
.breadcrumb { display: flex; gap: 8px; font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 20px; }
.breadcrumb a { color: var(--accent-light); }
.content-section { padding: 48px 0; }
.content-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; margin-bottom: 24px; }
.content-card h2 { font-size: 20px; font-weight: 800; color: var(--primary); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.content-card h3 { font-size: 16px; font-weight: 700; color: var(--text); margin: 16px 0 8px; }
.content-card p, .content-card li { font-size: 14px; color: var(--text-secondary); line-height: 1.9; }
.content-card ul, .content-card ol { padding-left: 20px; }
.content-card li { margin-bottom: 6px; }
.content-card table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13px; }
.content-card th { background: var(--bg); padding: 10px 12px; text-align: left; font-weight: 700; border: 1px solid var(--border); }
.content-card td { padding: 10px 12px; border: 1px solid var(--border); }
.highlight-box { background: var(--info-light); border-left: 4px solid var(--info); padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 16px 0; font-size: 13px; color: var(--text-secondary); }
.warning-box { background: var(--warning-light); border-left: 4px solid var(--warning); padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 16px 0; font-size: 13px; }
.sidebar { position: sticky; top: 80px; }
.sidebar-nav { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.sidebar-nav h3 { font-size: 14px; font-weight: 800; margin-bottom: 12px; color: var(--primary); }
.sidebar-nav a { display: block; padding: 8px 12px; font-size: 13px; color: var(--text-secondary); border-radius: var(--radius-sm); transition: var(--transition); }
.sidebar-nav a:hover, .sidebar-nav a.active { background: var(--info-light); color: var(--primary-light); }
.two-col-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; }

/* ======== Form Page ======== */
.form-page { background: var(--bg); }
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; margin-bottom: 24px; }
.form-card h2 { font-size: 18px; font-weight: 800; color: var(--primary); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--accent); }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-field label .req { color: var(--danger); }
.form-field input, .form-field textarea, .form-field select { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; font-family: var(--font); background: var(--white); transition: var(--transition); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(30,86,160,0.1); }
.form-field textarea { resize: vertical; min-height: 80px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.form-btn-group { display: flex; gap: 12px; margin-top: 24px; }
.form-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 32px; font-size: 14px; font-weight: 700; border: none; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); }
.form-btn-primary { background: var(--primary); color: white; }
.form-btn-primary:hover { background: var(--primary-light); }
.form-btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.form-btn-secondary:hover { background: var(--border); }

@media (max-width: 768px) {
  .two-col-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
  .subpage-hero h1 { font-size: 24px; }
}
