/* ============================================================
   Yingbo 财经站 · 全站共享样式
   设计语言：大厂简洁风（Apple / Linear / Notion 极简语言）
   配色：浅底 #F9FAFB · 深字 #111827 · 品牌蓝 #2563EB · 红涨 #DC2626 · 绿跌 #059669
   响应式：320 / 375 / 768 / 1280 / 1440+ 五档
   图标：内联 SVG，零外部依赖
   ============================================================ */

/* ---------- 1. Reset & 变量 ---------- */
:root {
  --bg: #F9FAFB;
  --bg-soft: #F3F4F6;
  --surface: #FFFFFF;
  --text: #111827;
  --text-2: #4B5563;
  --text-3: #9CA3AF;
  --border: #E5E7EB;
  --border-strong: #D1D5DB;
  --brand: #2563EB;
  --brand-strong: #1D4ED8;
  --brand-soft: #EFF6FF;
  --red: #DC2626;
  --red-soft: #FEF2F2;
  --green: #059669;
  --green-soft: #ECFDF5;
  --amber: #D97706;
  --amber-soft: #FFFBEB;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 4px 12px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 12px 32px rgba(17, 24, 39, 0.10);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1200px;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-strong); }
img, svg { vertical-align: middle; }
ul, ol { margin: 0 0 1em; padding-left: 1.35em; }
::selection { background: rgba(37, 99, 235, 0.15); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- 2. 布局 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}
.section + .section { padding-top: 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.section-head .kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-head h2 { font-size: 30px; margin-bottom: 6px; }
.section-head .sub { color: var(--text-2); font-size: 15px; max-width: 640px; }
.section-head .more-link { font-size: 14px; font-weight: 600; white-space: nowrap; }

@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .section-head h2 { font-size: 24px; }
}

/* ---------- 3. 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-2);
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover { background: var(--bg-soft); color: var(--text); }
.nav-links a.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.35);
  transition: background var(--transition), transform var(--transition);
}
.nav-cta:hover { background: var(--brand-strong); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 16px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 15px; }
  .nav-cta { justify-content: center; }
  .nav-cta-desktop { display: none; }
}

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--brand);
  color: #fff !important;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover { background: var(--brand-strong); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: var(--surface);
  color: var(--text) !important;
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--text-3); background: var(--bg-soft); transform: translateY(-1px); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn:disabled,
.btn[disabled],
.btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: none !important;
}

/* ---------- 5. 徽章 / 标签 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  background: var(--bg-soft);
  color: var(--text-2);
  white-space: nowrap;
}
.badge-brand { background: var(--brand-soft); color: var(--brand); }
.badge-ai { background: var(--amber-soft); color: var(--amber); }
.badge-up { background: var(--red-soft); color: var(--red); }
.badge-down { background: var(--green-soft); color: var(--green); }
.badge-outline { background: transparent; border: 1px solid var(--border-strong); color: var(--text-2); }

.ai-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: var(--amber-soft);
  color: var(--amber);
  border: 1px solid #FDE68A;
}
.ai-tag svg { width: 13px; height: 13px; }

/* ---------- 6. 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  min-width: 0; /* 防止 grid/flex 子项被内容撑破（首页 375px 3px 溢出） */
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.card-pad { padding: 24px; }
.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
}
.card-title svg { color: var(--brand); flex-shrink: 0; }

/* ---------- 7. 网格 ---------- */
.grid { display: grid; gap: 20px; }
/* 允许 grid 子项收缩（修复 .table-wrap 内宽表格与卡片在移动端撑破视口的问题） */
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- 8. 表格 ---------- */
.table-wrap {
  overflow-x: auto;
  min-width: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
}
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 560px;
}
/* 移动端：宽表在容器内横向滚动，不撑破页面（min-width:560px 表允许滚动） */
@media (max-width: 767px) {
  .table-wrap { max-width: 100%; }
}
.data-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--bg-soft);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  color: var(--text);
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr { transition: background 0.15s; }
.data-table tbody tr:hover { background: var(--bg); }
.data-table .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.data-table .t-right { text-align: right; }
.up { color: var(--red); font-weight: 600; }
.down { color: var(--green); font-weight: 600; }
.flat { color: var(--text-2); }
.symbol { color: var(--text-3); font-size: 12.5px; font-family: var(--mono); }

/* ---------- 9. 标签页（日报六标签） ---------- */
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.tab-btn {
  padding: 10px 18px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--transition), border-color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tab-btn:hover { color: var(--text); background: var(--bg-soft); }
.tab-btn.active { color: var(--brand); border-bottom-color: var(--brand); background: transparent; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp 0.3s ease; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .tab-btn { flex: 1 1 auto; justify-content: center; padding: 10px 8px; font-size: 13.5px; }
}

/* ---------- 10. KPI 统计卡 ---------- */
.kpi-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kpi-card .label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.kpi-card .value { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; font-family: var(--mono); }
.kpi-card .note { font-size: 12.5px; color: var(--text-3); }

/* ---------- 11. 广告位（预留容器） ---------- */
.ad-slot {
  margin: 24px 0;
  padding: 14px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
  font-size: 12.5px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  display: none; /* 默认未接入：隐藏，不破坏布局；JS 按 SITE_CONFIG.adsEnabled 控制 */
}
.ad-slot .ad-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 8px;
  color: var(--text-3);
}
.ad-slot.enabled { display: block; }
.ad-slot.enabled .ad-body {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: repeating-linear-gradient(45deg, #F9FAFB, #F9FAFB 10px, #F3F4F6 10px, #F3F4F6 20px);
}
.ad-slot.enabled .ad-body span { color: var(--text-3); font-size: 13px; }

/* ---------- 12. 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: 72px;
}
.footer-inner {
  padding: 48px 0 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p { color: var(--text-2); font-size: 14px; }
.footer-col h4 { font-size: 14px; margin-bottom: 14px; color: var(--text); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-2); font-size: 14px; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0 28px;
  text-align: center;
  font-size: 13px;
  color: var(--text-2);
}
.footer-disclaimer {
  background: var(--amber-soft);
  border: 1px solid #FDE68A;
  color: var(--amber);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 14px;
  text-align: center;
}
.footer-data-source { font-size: 12.5px; color: var(--text-3); margin-top: 6px; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  background: var(--surface);
  transition: all var(--transition);
}
.footer-social a:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- 13. Hero ---------- */
.hero {
  padding: 88px 0 72px;
  background:
    radial-gradient(ellipse 60% 50% at 75% 10%, rgba(37, 99, 235, 0.08), transparent),
    radial-gradient(ellipse 40% 40% at 15% 90%, rgba(124, 58, 237, 0.06), transparent),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: center;
}
.hero-avatar {
  width: 132px;
  height: 132px;
  border-radius: 32px;
  background: linear-gradient(135deg, #2563EB, #7C3AED);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 58px;
  font-weight: 800;
  box-shadow: var(--shadow-lg), 0 0 0 6px rgba(37, 99, 235, 0.08);
  margin-bottom: 24px;
  user-select: none;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.hero h1 { font-size: 46px; line-height: 1.15; margin-bottom: 18px; letter-spacing: -0.02em; }
.hero h1 .grad { background: linear-gradient(90deg, #2563EB, #7C3AED); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 18px; color: var(--text-2); max-width: 540px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.hero-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.hero-stat .v { font-size: 22px; font-weight: 800; font-family: var(--mono); color: var(--brand); }
.hero-stat .l { font-size: 12.5px; color: var(--text-2); margin-top: 4px; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 36px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .hero { padding: 56px 0 48px; }
  .hero-avatar { width: 96px; height: 96px; font-size: 42px; border-radius: 24px; }
  .hero h1 { font-size: 30px; }
  .hero-lead { font-size: 16px; }
}

/* ---------- 14. 产品卡 ---------- */
.product-card { padding: 28px 24px; display: flex; flex-direction: column; height: 100%; }
.product-card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.product-card .icon svg { width: 24px; height: 24px; }
.icon-blue { background: var(--brand-soft); color: var(--brand); }
.icon-violet { background: #F5F3FF; color: #7C3AED; }
.icon-teal { background: #F0FDFA; color: #0D9488; }
.product-card h3 { font-size: 20px; margin-bottom: 8px; }
.product-card p.desc { color: var(--text-2); font-size: 14.5px; margin-bottom: 16px; flex: 1; }
.product-card .meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); margin-bottom: 18px; flex-wrap: wrap; }
.product-card .meta svg { width: 14px; height: 14px; }
.product-card .go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
}
.product-card .go svg { transition: transform var(--transition); }
.product-card:hover .go svg { transform: translateX(3px); }

/* ---------- 15. 今日精选 ---------- */
.pick-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  align-items: flex-start;
}
.pick-card .pick-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pick-card .pick-icon svg { width: 20px; height: 20px; }
.pick-card h4 { font-size: 16px; margin-bottom: 6px; }
.pick-card h4 a { color: var(--text); }
.pick-card h4 a:hover { color: var(--brand); }
.pick-card p { color: var(--text-2); font-size: 13.5px; margin-bottom: 8px; }
.pick-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); }

/* ---------- 16. 技术栈 / 徽章墙 ---------- */
.tech-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tech-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
}
.tech-item .dot {
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--brand);
  margin-top: 7px;
  flex-shrink: 0;
}
.tech-item h4 { font-size: 15.5px; margin-bottom: 3px; }
.tech-item p { font-size: 13px; color: var(--text-2); margin: 0; }
.tech-item .level { font-size: 11.5px; color: var(--brand); font-weight: 600; }

@media (max-width: 900px) { .tech-wall { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tech-wall { grid-template-columns: 1fr; } }

/* ---------- 17. 时间线 ---------- */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
}
.tl-item { position: relative; padding-bottom: 24px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 3px solid var(--brand);
}
.tl-item .period { font-size: 12.5px; color: var(--brand); font-weight: 700; font-family: var(--mono); }
.tl-item h4 { font-size: 16px; margin: 4px 0 2px; }
.tl-item .org { font-size: 13.5px; color: var(--text-2); margin-bottom: 6px; }
.tl-item p { font-size: 13.5px; color: var(--text-2); margin: 0; }

/* 新闻时间线 */
.news-timeline { position: relative; padding-left: 26px; }
.news-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
}
.nt-item { position: relative; padding: 0 0 18px; }
.nt-item:last-child { padding-bottom: 0; }
.nt-item::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 7px;
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--brand);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1.5px var(--border);
}
.nt-item .time { font-family: var(--mono); font-size: 13px; color: var(--brand); font-weight: 700; }
.nt-item p { margin: 2px 0 0; font-size: 14px; color: var(--text-2); }

/* ---------- 18. 新闻列表 ---------- */
.news-card {
  display: flex;
  gap: 18px;
  padding: 22px 24px;
  align-items: flex-start;
}
.news-card .nc-time { font-family: var(--mono); font-size: 13px; color: var(--text-3); padding-top: 3px; white-space: nowrap; }
.news-card .nc-body { flex: 1; }
.news-card h4 { font-size: 16.5px; margin-bottom: 6px; line-height: 1.4; }
.news-card h4 a { color: var(--text); }
.news-card h4 a:hover { color: var(--brand); }
.news-card p { color: var(--text-2); font-size: 14px; margin-bottom: 8px; }
.nc-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); }
.nc-meta .source { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); font-weight: 500; }
.nc-meta .src-icon { width: 13px; height: 13px; color: var(--text-3); }
.nc-meta a.orig { color: var(--brand); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* 深度解读 */
.deep-card { padding: 28px; }
.deep-card .deep-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.deep-card h3 { font-size: 19px; margin: 0; }
.deep-card p { color: var(--text-2); font-size: 14.5px; }
.deep-card .deep-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); }

/* ---------- 19. 板块 / ETF 榜单 ---------- */
.rank-list { display: flex; flex-direction: column; }
.rank-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.rank-row:last-child { border-bottom: none; }
.rank-row .rk { width: 24px; font-family: var(--mono); font-weight: 700; color: var(--text-3); font-size: 13px; }
.rank-row .rk.top { color: var(--brand); }
.rank-row .name { flex: 1; font-weight: 600; font-size: 14.5px; }
.rank-row .note { flex: 1.2; color: var(--text-3); font-size: 12.5px; text-align: right; }
.rank-row .pct { font-family: var(--mono); font-weight: 700; min-width: 74px; text-align: right; }
.rank-row .flow { font-family: var(--mono); font-size: 13px; color: var(--text-2); min-width: 90px; text-align: right; }
@media (max-width: 560px) { .rank-row .note { display: none; } }

/* 涨跌配色说明 */
.legend-note { font-size: 12px; color: var(--text-3); margin-top: 10px; }
.legend-swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 4px 0 10px; vertical-align: -1px; }
.legend-swatch.red { background: var(--red); }
.legend-swatch.green { background: var(--green); }

/* ---------- 20. 异动解读 ---------- */
.analysis-card { padding: 26px 28px; }
.analysis-card .a-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.analysis-card h3 { font-size: 17.5px; margin: 0; }
.analysis-card p { color: var(--text-2); font-size: 14.5px; margin-bottom: 10px; }
.analysis-card .a-source { font-size: 12.5px; color: var(--text-3); display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 21. 联系区 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-links { display: flex; flex-direction: column; gap: 12px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
}
.contact-item .ci-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item .ci-icon svg { width: 19px; height: 19px; }
.contact-item h4 { font-size: 15px; margin-bottom: 2px; }
.contact-item p { font-size: 13px; color: var(--text-3); margin: 0; }
.contact-item a { font-size: 14px; font-weight: 600; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
textarea.form-control { min-height: 120px; resize: vertical; }
.form-tip { font-size: 12.5px; color: var(--text-3); margin-top: 4px; }

@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- 22. 数据日期条 ---------- */
.datebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.datebar .db-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.datebar .db-title { font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.datebar .db-title svg { color: var(--brand); }
.datebar .db-meta { font-size: 13px; color: var(--text-2); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.datebar .db-status { font-size: 12.5px; color: var(--amber); font-weight: 600; }
.datebar .db-right { display: flex; gap: 10px; align-items: center; }

/* ---------- 23. 页头横幅（产品页） ---------- */
.page-hero { padding: 56px 0 36px; }
.page-hero h1 { font-size: 36px; margin-bottom: 10px; }
.page-hero .lead { color: var(--text-2); font-size: 16px; max-width: 680px; margin-bottom: 18px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-3); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb svg { width: 13px; height: 13px; }

/* ---------- 24. 提示框 ---------- */
.callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin: 20px 0;
}
.callout svg { flex-shrink: 0; margin-top: 2px; }
.callout-info { background: var(--brand-soft); color: #1E40AF; border: 1px solid #BFDBFE; }
.callout-info svg { color: var(--brand); }
.callout-warn { background: var(--amber-soft); color: #92400E; border: 1px solid #FDE68A; }
.callout-warn svg { color: var(--amber); }
.callout-red { background: var(--red-soft); color: #991B1B; border: 1px solid #FECACA; }
.callout-red svg { color: var(--red); }

/* ---------- 25. 404 ---------- */
.err404 { min-height: 62vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 72px 24px; }
.err404 .code { font-size: 96px; font-weight: 800; letter-spacing: -0.04em; background: linear-gradient(135deg, #2563EB, #7C3AED); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.err404 h1 { font-size: 28px; margin: 24px 0 10px; }
.err404 p { color: var(--text-2); max-width: 440px; margin-bottom: 28px; }
.err404 .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.err404 .quick-links { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.err404 .quick-links a { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 26. 隐私政策 ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 22px; margin: 36px 0 12px; padding-top: 8px; }
.prose h3 { font-size: 17px; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--text-2); font-size: 14.5px; }
.prose strong { color: var(--text); }
.prose ul { padding-left: 1.4em; }
.toc-card { padding: 20px 24px; margin-bottom: 24px; }
.toc-card ul { margin: 0; padding-left: 1.2em; }
.toc-card li { margin-bottom: 6px; font-size: 14px; }
.meta-line { font-size: 13px; color: var(--text-3); margin-bottom: 28px; }

/* ---------- 27. 通用工具类 ---------- */
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-40 { margin-top: 40px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.text-center { text-align: center; }
.text-2 { color: var(--text-2); }
.text-3 { color: var(--text-3); }
.flex { display: flex; } .flex-center { display: flex; align-items: center; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.wrap { flex-wrap: wrap; }
.mono { font-family: var(--mono); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 28. 分享按钮 ---------- */
.share-bar { display: inline-flex; gap: 8px; align-items: center; }
.share-btn {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.share-btn:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.share-btn svg { width: 16px; height: 16px; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 29. 打印 ---------- */
@media print {
  .site-header, .ad-slot, .share-bar, .site-footer { display: none !important; }
  body { background: #fff; }
}

/* ============================================================
   v1.1 补充组件（要闻布局 / 侧栏时间线 / 分类块 / 404 别名等）
   ============================================================ */

/* 窄容器 / 小页头 */
.container-narrow { max-width: 820px; }
.page-hero-sm { padding: 44px 0 30px; }
.page-hero-sm h1 { font-size: 30px; }

/* 要闻页两栏布局 */
.news-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 28px; }
.news-main { min-width: 0; }
.news-side { position: relative; }
.news-side .sticky-card { position: sticky; top: 84px; }
@media (max-width: 1024px) {
  .news-layout { grid-template-columns: 1fr; }
  .news-side .sticky-card { position: static; }
}

/* 区块标题 */
.block-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 22px;
  margin: 28px 0 18px;
}
.block-title .block-sub { font-size: 13px; font-weight: 500; color: var(--text-3); }

/* 搜索框 */
.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0 16px;
  margin-bottom: 26px;
  color: var(--text-3);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
.search-box input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 12px 0;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text);
}

/* 分类块 */
.category-block { margin-bottom: 10px; }
.cat-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-2);
  margin: 22px 0 12px;
  letter-spacing: 0.02em;
}
.cat-dot { width: 8px; height: 8px; border-radius: 999px; }
.dot-macro { background: #7C3AED; }
.dot-policy { background: #2563EB; }
.dot-industry { background: #0D9488; }
.dot-company { background: #D97706; }

/* 侧栏紧凑时间线 */
.timeline-compact { position: relative; padding-left: 22px; }
.timeline-compact::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
}
.tlc-item { position: relative; padding: 0 0 16px; }
.tlc-item:last-child { padding-bottom: 0; }
.tlc-item .tlc-dot {
  content: "";
  position: absolute;
  left: -19px;
  top: 6px;
  width: 9px; height: 9px;
  border-radius: 999px;
  background: var(--surface);
  border: 2.5px solid var(--brand);
}
.tlc-head { display: flex; align-items: center; gap: 8px; }
.tlc-head time { font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: var(--brand); }
.tlc-item p { font-size: 13.5px; color: var(--text-2); margin: 4px 0 4px; line-height: 1.5; }
.tlc-item a { font-size: 12.5px; font-weight: 600; }

/* 侧栏标签 */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
}
.tag-macro { background: #F5F3FF; color: #7C3AED; }
.tag-policy { background: var(--brand-soft); color: var(--brand); }
.tag-industry { background: #F0FDFA; color: #0D9488; }
.tag-company { background: var(--amber-soft); color: var(--amber); }

/* 柔和徽章 */
.badge-soft { background: var(--bg-soft); color: var(--text-2); font-weight: 600; }

/* 解读分类小标签 */
.a-cat {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-soft);
  color: var(--text-2);
  white-space: nowrap;
  align-self: flex-start;
  margin-top: 2px;
}
.analysis-card .a-head { flex-wrap: wrap; }
.analysis-card .a-head h3 { flex-basis: 100%; }

/* 资金流向正负 */
.flow.pos { color: var(--red); }
.flow.neg { color: var(--green); }

/* 404 别名（.notfound 系列） */
.notfound { min-height: 62vh; display: flex; align-items: center; padding: 72px 24px; }
.notfound-inner { text-align: center; }
.nf-code {
  font-size: 110px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, #2563EB, #7C3AED);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}
.notfound h1 { font-size: 30px; margin-bottom: 10px; }
.notfound p { color: var(--text-2); max-width: 460px; margin: 0 auto 28px; font-size: 16px; }
.nf-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.nf-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.nf-links a { font-size: 14px; font-weight: 600; color: var(--text-2); }
.nf-links a:hover { color: var(--brand); }

/* 移动端细节优化 */
@media (max-width: 768px) {
  .page-hero { padding: 40px 0 28px; }
  .page-hero h1 { font-size: 28px; }
  .block-title { font-size: 19px; }
  .analysis-card { padding: 20px; }
}
@media (max-width: 375px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 27px; }
  .rank-row .note { display: none; }
  .datebar { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   v1.2 多端显示优化（320 / 375 / 768 / 1280 / 1440+ 五档）
   ============================================================ */

/* ---------- A. 关于我两栏（修复移动端无响应式降级） ---------- */
.about-grid { grid-template-columns: 1.1fr 0.9fr; gap: 40px; }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- B. 平板（768–900）三列栅格降为两列 ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- C. 移动端触控 / 点按区域 / 菜单滚动 ---------- */
@media (max-width: 768px) {
  .nav-toggle { width: 44px; height: 44px; }
  .share-btn { width: 40px; height: 40px; }
  .footer-col a,
  .tlc-item a { display: inline-block; padding: 4px 0; }
  .nav-links {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ---------- D. 小屏（≤360px，覆盖 320 档） ---------- */
@media (max-width: 360px) {
  .container { padding: 0 14px; }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 24px; }
  .hero-lead { font-size: 15px; }
  .hero-stats { gap: 10px; }
  .hero-stat { padding: 12px 10px; }
  .hero-stat .v { font-size: 19px; }
  .kpi-card { padding: 16px 14px; }
  .kpi-card .value { font-size: 22px; }
  .card-pad { padding: 18px 16px; }
  .product-card { padding: 22px 16px; }
  .pick-card { padding: 16px; gap: 12px; }
  .news-card { padding: 16px; gap: 12px; }
  .analysis-card { padding: 18px 16px; }
  .deep-card { padding: 20px 16px; }
  .tab-btn { padding: 12px 8px; font-size: 13px; }
  .rank-row { gap: 10px; padding: 11px 12px; }
  .rank-row .flow { font-size: 12px; min-width: 0; }
  .rank-row .pct { min-width: 62px; }
  .datebar { padding: 12px 14px; }
  .page-hero h1 { font-size: 25px; }
  .page-hero-sm h1 { font-size: 26px; }
  .notfound { padding: 48px 14px; }
  .nf-code { font-size: 88px; }
  .footer-bottom { padding: 18px 0 22px; }
  .form-tip { font-size: 12px; }
  .section-head h2 { font-size: 22px; }
}

/* ---------- E. 大屏（≥1440） ---------- */
@media (min-width: 1440px) {
  .container { max-width: 1280px; }
  .section { padding: 88px 0; }
  .hero { padding: 104px 0 88px; }
  .hero h1 { font-size: 52px; }
  .page-hero { padding: 64px 0 44px; }
  .page-hero h1 { font-size: 40px; }
  .news-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; }
  .section-head h2 { font-size: 32px; }
}

/* ---------- F. iOS Safari / macOS Safari 兼容细节 ---------- */
html { -webkit-tap-highlight-color: transparent; }
.table-wrap { -webkit-overflow-scrolling: touch; }
.table-wrap::-webkit-scrollbar { height: 8px; }
.table-wrap::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
.table-wrap::-webkit-scrollbar-track { background: var(--bg-soft); }
.site-footer { padding-bottom: env(safe-area-inset-bottom); }
.toast { bottom: calc(32px + env(safe-area-inset-bottom)); }
@media (max-width: 768px) {
  .toast { bottom: calc(20px + env(safe-area-inset-bottom)); }
}

/* ---------- G. 搜索空态提示 ---------- */
.search-empty {
  padding: 18px;
  margin-bottom: 26px;
  text-align: center;
  font-size: 14px;
  color: var(--text-3);
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

/* ============================================================
   v1.3 交互与体验增强（hover / 动效 / 表单 / 搜索 / 排序 / 无障碍）
   ============================================================ */

/* ---------- A. 克制统一的状态反馈（hover / active / focus） ---------- */
.btn { transition: background var(--transition), border-color var(--transition), color var(--transition), transform 0.15s ease, box-shadow var(--transition); }
.btn:active { transform: translateY(1px); }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(37, 99, 235, 0.22); }
.btn-primary:active { box-shadow: 0 2px 8px rgba(37, 99, 235, 0.18); }
.btn-loading { position: relative; pointer-events: none; color: transparent !important; }
.btn-loading::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 16px; height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.share-btn:active { transform: translateY(1px); }

/* ---------- B. 卡片 / 榜单行 hover 动效（克制上浮 + 轻阴影） ---------- */
.card-hover { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.rank-row { transition: background var(--transition); }
.rank-row:hover { background: var(--bg-soft); }

/* ---------- C. 返回顶部按钮（JS 注入，随滚动显隐） ---------- */
#back-top {
  position: fixed;
  right: 24px;
  bottom: calc(88px + env(safe-area-inset-bottom));
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-2);
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.10);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, color var(--transition), border-color var(--transition);
  z-index: 90;
}
#back-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
#back-top:hover { color: var(--brand); border-color: var(--brand); }
#back-top:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (max-width: 768px) { #back-top { right: 16px; bottom: calc(72px + env(safe-area-inset-bottom)); width: 40px; height: 40px; } }

/* ---------- D. 表格排序（点击表头，aria-sort 状态指示） ---------- */
th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
th.sortable:hover { color: var(--brand); }
th.sortable::after {
  content: "";
  display: inline-block;
  width: 0; height: 0;
  margin-left: 6px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--border-strong);
  opacity: 0.7;
}
th[aria-sort="ascending"]::after { border-bottom: 5px solid var(--brand); border-top: none; opacity: 1; }
th[aria-sort="descending"]::after { border-top: 5px solid var(--brand); opacity: 1; }

/* ---------- E. 搜索：清空按钮 + 匹配计数 ---------- */
.search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  margin-right: -6px;
  border: none;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--text-3);
  cursor: pointer;
  flex: none;
  transition: background var(--transition), color var(--transition);
}
.search-clear:hover { background: var(--border); color: var(--text-2); }
.search-count { margin: -12px 0 20px; font-size: 12.5px; color: var(--text-3); }

/* ---------- F. 表单：字段错误 + 顶部提示 + toast 类型 ---------- */
.field-error { margin: 6px 0 0; font-size: 12.5px; color: #DC2626; }
.form-control.is-invalid { border-color: #DC2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.10); }
.form-alert {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
}
.form-alert-error { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.form-alert-success { background: #F0FDF4; color: #15803D; border: 1px solid #BBF7D0; }
.toast { display: flex; align-items: center; gap: 8px; }
.toast-info { background: var(--text); }
.toast-success { background: #15803D; }
.toast-error { background: #B91C1C; }

/* ---------- G. 无障碍：页面级平滑滚动（尊重系统减弱动效偏好） ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- H. 页面进入轻动画（纯 CSS，仅主内容区，无 JS 依赖） ---------- */
@media (prefers-reduced-motion: no-preference) {
  main .container > * { animation: pageIn 0.45s ease both; }
  main .container > *:nth-child(2) { animation-delay: 0.05s; }
  main .container > *:nth-child(3) { animation-delay: 0.10s; }
  main .container > *:nth-child(4) { animation-delay: 0.15s; }
  main .container > *:nth-child(5) { animation-delay: 0.20s; }
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
