/* ============================================================
   业务组件：Hero / 统计 / 卡片 / 筛选 / 详情 / 图表
   ============================================================ */

/* ---------- Hero ---------- */
.hero { position: relative; padding: 62px 0 46px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-bg .glow {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .5;
}
html[data-theme="dark"] .hero-bg .glow { opacity: .32; }
.hero-bg .g1 { width: 480px; height: 480px; top: -190px; left: -110px;
  background: radial-gradient(circle, var(--brand-400), transparent 68%); }
.hero-bg .g2 { width: 400px; height: 400px; top: -130px; right: -80px;
  background: radial-gradient(circle, var(--violet-500), transparent 68%); }
.hero-bg .g3 { width: 340px; height: 340px; bottom: -180px; left: 42%;
  background: radial-gradient(circle, var(--teal-400), transparent 68%); }
.hero-bg .mesh {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px),
                    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 90% 62% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 62% at 50% 0%, #000 30%, transparent 78%);
  opacity: .5;
}
.hero-in { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  height: 27px; padding: 0 13px; margin-bottom: 20px;
  border: 1px solid var(--border-2); border-radius: var(--r-full);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  font-size: var(--fs-xs); font-weight: 600; color: var(--text-2);
}
.hero-badge .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal-500);
  box-shadow: 0 0 0 0 rgba(20,184,166,.6);
  animation: pulse 2.1s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(20,184,166,.55); }
  70%  { box-shadow: 0 0 0 7px rgba(20,184,166,0); }
  100% { box-shadow: 0 0 0 0 rgba(20,184,166,0); }
}

.hero h1 { max-width: 15em; margin-bottom: 16px; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--brand-500) 8%, var(--violet-600) 52%, var(--teal-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lede {
  max-width: 40em; font-size: var(--fs-md); color: var(--text-2); line-height: 1.7;
  margin-bottom: 26px;
}
.hero-cta { display: flex; gap: 11px; flex-wrap: wrap; margin-bottom: 38px; }

/* ---------- 统计条 ---------- */
.stat-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.stat-cell { background: var(--surface); padding: 15px 17px; }
.stat-cell .v {
  font-size: var(--fs-2xl); font-weight: 760; letter-spacing: -.035em;
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.stat-cell .v small { font-size: .5em; font-weight: 650; color: var(--text-4); margin-left: 2px; }
.stat-cell .k {
  font-size: var(--fs-xs); color: var(--text-3); font-weight: 550;
  margin-top: 3px; letter-spacing: .01em;
}
.stat-cell .spark { margin-top: 8px; height: 22px; }

/* ---------- 区块标题 ---------- */
.sec { padding: 54px 0 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.sec-head .eyebrow {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 7px;
}
.sec-head h2 { margin-bottom: 5px; }
.sec-head .sub { font-size: var(--fs-sm); color: var(--text-3); max-width: 46em; }
.sec-link {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  font-size: var(--fs-sm); font-weight: 600; color: var(--accent);
}
.sec-link svg { width: 14px; height: 14px; transition: transform var(--t-fast); }
.sec-link:hover svg { transform: translateX(3px); }

/* ---------- 板块导航卡 ---------- */
.sec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 13px; }
.sec-card {
  position: relative; display: block; padding: 17px 18px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: border-color var(--t-fast), box-shadow var(--t-base), transform var(--t-base);
}
.sec-card::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--sc, var(--accent)); opacity: .85;
  transform: scaleY(.28); transform-origin: center;
  transition: transform var(--t-base);
}
.sec-card:hover { border-color: var(--border-2); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.sec-card:hover::after { transform: scaleY(1); }
.sec-card .ico {
  width: 32px; height: 32px; border-radius: var(--r-md);
  display: grid; place-items: center; margin-bottom: 11px;
  background: color-mix(in srgb, var(--sc, var(--accent)) 12%, transparent);
  color: var(--sc, var(--accent)); font-size: 16px; font-weight: 700;
}
.sec-card .nm { font-size: var(--fs-md); font-weight: 680; margin-bottom: 3px; }
.sec-card .ds { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.55; margin-bottom: 11px; min-height: 2.6em; }
.sec-card .ct { font-size: var(--fs-xs); font-weight: 650; color: var(--sc, var(--accent)); font-variant-numeric: tabular-nums; }

/* ---------- 条目卡片 ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 13px; }
.grid.g2 { grid-template-columns: repeat(auto-fill, minmax(410px, 1fr)); }
body[data-density="compact"] .grid { gap: 9px; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }

.ent {
  position: relative; display: flex; flex-direction: column;
  padding: 15px 16px 13px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color var(--t-fast), box-shadow var(--t-base), transform var(--t-base);
}
.ent:hover { border-color: var(--border-2); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.ent::before {
  content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--cc, var(--accent)); opacity: 0;
  transition: opacity var(--t-base);
}
.ent:hover::before { opacity: .9; }
body[data-density="compact"] .ent { padding: 11px 13px 10px; }

.ent-top { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 9px; }
.ent-av {
  width: 32px; height: 32px; border-radius: var(--r-md); flex: none;
  background: var(--surface-3); object-fit: cover;
  border: 1px solid var(--border);
}
.ent-id { flex: 1; min-width: 0; }
.ent-nm {
  font-size: var(--fs-md); font-weight: 680; letter-spacing: -.015em;
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ent:hover .ent-nm { color: var(--accent); }
.ent-ow {
  font-size: var(--fs-xs); color: var(--text-4); font-family: var(--font-mono);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ent-rank {
  flex: none; font-family: var(--font-mono); font-size: 10px; font-weight: 650;
  color: var(--text-4); background: var(--surface-3);
  padding: 2px 6px; border-radius: var(--r-xs);
}

.ent-desc {
  font-size: var(--fs-sm); color: var(--text-2); line-height: 1.6;
  margin-bottom: 11px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
body[data-density="compact"] .ent-desc { -webkit-line-clamp: 2; margin-bottom: 8px; }

.ent-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 11px; }
.ent-foot {
  display: flex; align-items: center; gap: 12px;
  padding-top: 10px; border-top: 1px solid var(--border);
  font-size: var(--fs-xs); color: var(--text-3);
}
.ent-stat { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.ent-stat svg { width: 12px; height: 12px; opacity: .75; }
.ent-stat.star { color: var(--amber-600); font-weight: 620; }
html[data-theme="dark"] .ent-stat.star { color: var(--amber-400); }
.ent-lang { display: inline-flex; align-items: center; gap: 5px; }
.ent-lang .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

.ent-actions { display: flex; gap: 5px; margin-left: auto; }
.ent-act {
  width: 25px; height: 25px; border-radius: var(--r-sm);
  display: grid; place-items: center; color: var(--text-4);
  transition: background var(--t-fast), color var(--t-fast);
}
.ent-act:hover { background: var(--surface-3); color: var(--text); }
.ent-act svg { width: 13px; height: 13px; }
.ent-act.on { color: var(--amber-500); }

/* 列表视图 */
.list-view .grid { grid-template-columns: 1fr; gap: 7px; }
.list-view .ent { flex-direction: row; align-items: center; gap: 14px; padding: 11px 15px; }
.list-view .ent-top { margin-bottom: 0; flex: none; width: 260px; }
.list-view .ent-desc { margin-bottom: 0; -webkit-line-clamp: 2; font-size: var(--fs-sm); }
.list-view .ent-tags { margin-bottom: 0; flex: none; max-width: 200px; overflow: hidden; height: 21px; }
.list-view .ent-foot { border: 0; padding: 0; flex: none; }
@media (max-width: 900px) { .list-view .ent { flex-direction: column; align-items: stretch; }
  .list-view .ent-top { width: auto; margin-bottom: 9px; } }

/* ---------- 筛选栏 ---------- */
.toolbar {
  position: sticky; top: var(--header-h); z-index: 50;
  padding: 12px 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.toolbar-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.field {
  display: flex; align-items: center; gap: 7px;
  height: 33px; padding: 0 11px;
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.field svg { width: 14px; height: 14px; color: var(--text-4); flex: none; }
.field input { border: 0; background: none; outline: none; width: 100%; font-size: var(--fs-sm); }
.field.grow { flex: 1; min-width: 190px; max-width: 340px; }

.sel {
  height: 33px; padding: 0 30px 0 11px;
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface) no-repeat right 9px center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa2b1' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  font-size: var(--fs-sm); font-weight: 550;
  appearance: none; -webkit-appearance: none; cursor: pointer;
  transition: border-color var(--t-fast);
}
.sel:hover { border-color: var(--border-2); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 11px;
  border: 1px solid var(--border); border-radius: var(--r-full);
  background: var(--surface);
  font-size: var(--fs-xs); font-weight: 560; color: var(--text-2);
  transition: all var(--t-fast);
}
.chip:hover { border-color: var(--border-2); background: var(--surface-3); }
.chip.on {
  background: var(--accent); border-color: transparent; color: var(--accent-fg);
  box-shadow: 0 1px 3px rgba(77,107,254,.3);
}
.chip .n {
  font-size: 10px; font-variant-numeric: tabular-nums; opacity: .68;
  font-family: var(--font-mono);
}
.chip.on .n { opacity: .8; }

.seg {
  display: inline-flex; padding: 2px; gap: 2px;
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface-2);
}
.seg button {
  height: 27px; padding: 0 10px; border-radius: var(--r-sm);
  font-size: var(--fs-xs); font-weight: 570; color: var(--text-3);
  display: grid; place-items: center;
  transition: background var(--t-fast), color var(--t-fast);
}
.seg button svg { width: 14px; height: 14px; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-xs); }

.result-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 15px;
  font-size: var(--fs-sm); color: var(--text-3);
}
.result-bar b { color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- 空状态 / 加载更多 ---------- */
.empty { padding: 72px 20px; text-align: center; }
.empty .ico { font-size: 38px; opacity: .3; margin-bottom: 14px; }
.empty h3 { margin-bottom: 7px; }
.empty p { color: var(--text-3); font-size: var(--fs-sm); margin-bottom: 18px; }

.load-more { display: flex; justify-content: center; padding: 28px 0 8px; }
.sentinel { height: 1px; }

/* ---------- 详情页 ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: 34px; padding: 26px 0 0; align-items: start; }
@media (max-width: 1000px) { .detail { grid-template-columns: 1fr; gap: 26px; } }

.dt-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.dt-av {
  width: 58px; height: 58px; border-radius: var(--r-lg); flex: none;
  border: 1px solid var(--border); background: var(--surface-3); object-fit: cover;
}
.dt-title { flex: 1; min-width: 0; }
.dt-title h1 { font-size: var(--fs-3xl); margin-bottom: 6px; word-break: break-word; }
.dt-owner { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--text-3); }
.dt-owner a:hover { color: var(--accent); }
.dt-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 11px; }

.dt-lede {
  font-size: var(--fs-md); line-height: 1.75; color: var(--text-2);
  padding: 16px 18px; margin-bottom: 22px;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
}

.dt-block { margin-bottom: 26px; }
.dt-block h3 {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--text-4); margin-bottom: 11px;
  display: flex; align-items: center; gap: 8px;
}
.dt-block h3::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.feat-list { display: flex; flex-direction: column; gap: 8px; }
.feat-list li {
  display: flex; gap: 10px; font-size: var(--fs-sm); color: var(--text-2); line-height: 1.65;
  list-style: none;
}
.feat-list li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; flex: none;
  background: var(--accent); margin-top: .58em;
}
.feat-list { padding: 0; margin: 0; }

.code-line {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px; margin-bottom: 7px;
  background: var(--surface-3); border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font-mono); font-size: var(--fs-sm);
  overflow-x: auto;
}
.code-line code { flex: 1; white-space: pre; color: var(--text); }
.code-line .cp {
  flex: none; width: 26px; height: 26px; border-radius: var(--r-sm);
  display: grid; place-items: center; color: var(--text-4);
  transition: background var(--t-fast), color var(--t-fast);
}
.code-line .cp:hover { background: var(--surface); color: var(--accent); }
.code-line .cp svg { width: 14px; height: 14px; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 11px; }
.shot {
  border: 1px solid var(--border); border-radius: var(--r-md);
  overflow: hidden; background: var(--surface-3);
  transition: border-color var(--t-fast), transform var(--t-base);
}
.shot:hover { border-color: var(--border-2); transform: scale(1.012); }
.shot img { width: 100%; height: auto; display: block; }

/* 详情侧栏 */
.aside { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 15px; }
@media (max-width: 1000px) { .aside { position: static; } }
.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 15px 16px;
  box-shadow: var(--shadow-xs);
}
.panel h4 {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-4); margin-bottom: 12px;
}
.kv { display: flex; flex-direction: column; gap: 0; }
.kv-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px dashed var(--border);
  font-size: var(--fs-sm);
}
.kv-row:last-child { border-bottom: 0; }
.kv-row .k { color: var(--text-3); flex: none; }
.kv-row .v { font-weight: 570; text-align: right; font-variant-numeric: tabular-nums;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.metric {
  background: var(--surface); padding: 11px 13px;
}
.metric .v { font-size: var(--fs-xl); font-weight: 740; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; line-height: 1.15; }
.metric .k { font-size: 10.5px; color: var(--text-4); font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }

.rel-list { display: flex; flex-direction: column; gap: 3px; }
.rel-item {
  display: flex; align-items: center; gap: 9px; padding: 7px 8px;
  border-radius: var(--r-sm); transition: background var(--t-fast);
}
.rel-item:hover { background: var(--surface-3); }
.rel-item img { width: 22px; height: 22px; border-radius: var(--r-xs); flex: none; object-fit: cover; }
.rel-item .nm { flex: 1; min-width: 0; font-size: var(--fs-sm); font-weight: 560;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rel-item .st { font-size: var(--fs-xs); color: var(--amber-600); font-variant-numeric: tabular-nums; flex: none; }
html[data-theme="dark"] .rel-item .st { color: var(--amber-400); }

/* ---------- 图表 ---------- */
.chart-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--shadow-xs);
}
.chart-card h3 { font-size: var(--fs-md); margin-bottom: 3px; }
.chart-card .sub { font-size: var(--fs-xs); color: var(--text-3); margin-bottom: 16px; }
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; }

.bars { display: flex; flex-direction: column; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 118px 1fr 52px; align-items: center; gap: 11px; font-size: var(--fs-sm); }
.bar-row .lb { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 8px; background: var(--surface-3); border-radius: var(--r-full); overflow: hidden; }
.bar-fill {
  height: 100%; border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--bc, var(--accent)), color-mix(in srgb, var(--bc, var(--accent)) 62%, #fff));
  transform-origin: left; animation: barIn .7s cubic-bezier(.16,1,.3,1) both;
}
@keyframes barIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.bar-row .vl { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-3); font-size: var(--fs-xs); }

.treemap { display: flex; flex-wrap: wrap; gap: 4px; }
.tm-cell {
  border-radius: var(--r-sm); padding: 9px 11px; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-width: 78px; overflow: hidden;
  transition: transform var(--t-fast), filter var(--t-fast);
}
.tm-cell:hover { transform: translateY(-2px); filter: brightness(1.08); }
.tm-cell .n { font-size: var(--fs-xs); font-weight: 650; opacity: .95; }
.tm-cell .c { font-size: 10px; opacity: .8; font-variant-numeric: tabular-nums; }

/* ---------- 榜单表 ---------- */
.tbl-wrap { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.tbl th {
  text-align: left; padding: 11px 14px; background: var(--surface-2);
  font-size: var(--fs-xs); font-weight: 650; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background var(--t-fast); }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl .rk {
  font-family: var(--font-mono); font-weight: 700; color: var(--text-4);
  width: 46px; font-variant-numeric: tabular-nums;
}
.tbl .rk.top1 { color: var(--amber-500); }
.tbl .rk.top2 { color: #94a3b8; }
.tbl .rk.top3 { color: #d97757; }
.tbl .nmcell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tbl .nmcell img { width: 26px; height: 26px; border-radius: var(--r-sm); flex: none; object-fit: cover; }
.tbl .nmcell .tx { min-width: 0; }
.tbl .nmcell .n1 { font-weight: 620; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl .nmcell .n2 { font-size: var(--fs-xs); color: var(--text-4); font-family: var(--font-mono); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .tbl .hide-sm { display: none; } }

/* ---------- 提示卡 ---------- */
.note {
  display: flex; gap: 12px; padding: 14px 16px;
  border-radius: var(--r-md); border: 1px solid var(--border);
  background: var(--surface-2); font-size: var(--fs-sm); color: var(--text-2);
  line-height: 1.65;
}
.note .ni { flex: none; font-size: 15px; line-height: 1.4; }
.note-warn { background: rgba(245,158,11,.07); border-color: rgba(245,158,11,.28); }
.note-info { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 24%, transparent); }

/* ---------- 密度切换后的紧凑网格 ---------- */
@media (max-width: 640px) {
  .grid, .grid.g2 { grid-template-columns: 1fr; }
  .sec-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 40px 0 32px; }
  .chart-grid { grid-template-columns: 1fr; }
}
