/* The Ad Metrics Journal — "Dashboard Grid" visual.
   Metric tiles, spark lines, amber accent on a cool control-room grid. No rounded corners. */
:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --ink: #292524;
  --muted: #78716c;
  --line: #e2e2e6;
  --grid: #ecedf1;
  --amber: #b45309;
  --amber-soft: #fdf3e7;
  --led: #0f766e;
  --led-2: #1d4ed8;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: #8a3f07; text-decoration: underline; }
.num, .tabular { font-variant-numeric: tabular-nums; }

/* top bar */
.topbar {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  border-top: 3px solid var(--amber);
  position: sticky; top: 0; z-index: 10;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; gap: 16px; }
.desk-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.desk-mark {
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--amber); color: #fff; font-weight: 700; font-size: 15px; letter-spacing: -.5px;
  font-variant-numeric: tabular-nums;
}
.desk-text { display: flex; flex-direction: column; line-height: 1.15; }
.desk-name { font-weight: 700; letter-spacing: .2px; }
.desk-tag { font-size: 11px; color: var(--muted); letter-spacing: .8px; text-transform: uppercase; }
.desk-nav { display: flex; gap: 20px; }
.desk-nav a { color: var(--ink); font-size: 14px; padding: 4px 0; border-bottom: 2px solid transparent; }
.desk-nav a:hover { border-bottom-color: var(--amber); text-decoration: none; }

/* hero / console header */
.dash-hero { background: var(--panel); border-bottom: 1px solid var(--line); padding: 40px 0 36px; }
.hero-grid { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: center; }
.hero-kicker { color: var(--amber); font-size: 12px; letter-spacing: 2.4px; font-weight: 700; text-transform: uppercase; margin-bottom: 12px; }
.dash-hero h1 { font-size: 36px; line-height: 1.12; font-weight: 700; margin-bottom: 14px; letter-spacing: -.4px; }
.hero-lede { max-width: 620px; color: var(--muted); font-size: 17px; }
/* spark panel motif */
.spark-panel { border: 1px solid var(--line); background: var(--bg); padding: 14px 16px 8px; }
.spark-cap { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.spark-cap b { color: var(--amber); font-variant-numeric: tabular-nums; }
.spark-svg { display: block; width: 100%; height: 84px; }
.spark-legend { display: flex; gap: 16px; font-size: 11px; color: var(--muted); margin-top: 8px; }
.spark-legend span::before { content: ""; display: inline-block; width: 12px; height: 3px; margin-right: 5px; vertical-align: middle; }
.sw-rev::before { background: var(--amber); }
.sw-ctr::before { background: var(--led); }

/* section label */
.section-label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 16px; }
section { padding: 30px 0; }

/* category panels (IA: 分类=策略/心理) */
.panel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.panel {
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--amber);
  padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; color: var(--ink);
}
.panel:hover { border-color: var(--amber); text-decoration: none; }
.panel .bar { height: 4px; background: var(--amber-soft); position: relative; }
.panel .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--amber); display: block; }
.panel-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.panel-name { font-weight: 700; font-size: 17px; line-height: 1.25; }

/* metric tiles (cm = Ad Metric Card) */
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.metric-card {
  background: var(--panel); border: 1px solid var(--line); padding: 14px 15px 16px;
  display: flex; flex-direction: column; gap: 10px; color: var(--ink); position: relative;
}
.metric-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--amber), #d97706);
}
.metric-card:hover { border-color: var(--amber); text-decoration: none; }
.tile-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chip {
  font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  color: var(--amber); border: 1px solid var(--amber); padding: 2px 7px; background: var(--amber-soft);
}
.tile-glyph { width: 44px; height: 20px; opacity: .85; }
.tile-title { font-weight: 600; font-size: 15.5px; line-height: 1.32; }
.tile-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.tile-stats .cell { display: flex; flex-direction: column; font-size: 12.5px; }
.tile-stats .cell b { font-size: 10px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.tile-stats .cell.lead { color: var(--amber); font-weight: 600; }
.tile-desc { font-size: 13px; color: var(--muted); }

/* group head */
.group-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.group-head h2 { font-size: 21px; font-weight: 700; }
.group-head h2::before { content: "// "; color: var(--amber); }
.group-more { font-size: 13px; white-space: nowrap; }

/* page head */
.page-head { padding: 34px 0 12px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.crumb a { color: var(--muted); }
.page-head h1 { font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -.3px; }
.lede { color: var(--muted); margin-top: 8px; }

/* item layout: metric board + column body */
.board-layout { display: grid; grid-template-columns: 320px 1fr; gap: 26px; padding-top: 22px; padding-bottom: 40px; }
.metric-board { align-self: start; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--amber); }
.board-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.board-title { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.gauge { width: 60px; height: 16px; }
.gauge-list { font-variant-numeric: tabular-nums; }
.gauge-row { display: flex; border-bottom: 1px solid var(--line); font-size: 14px; }
.gauge-row dt { flex: 0 0 40%; padding: 10px 14px; color: var(--muted); border-right: 1px solid var(--line); font-size: 13px; }
.gauge-row dd { flex: 1; padding: 10px 14px; }
.gauge-row dd ul { list-style: none; }
.gauge-row dd li { padding: 2px 0; }
.column-body { background: var(--panel); border: 1px solid var(--line); padding: 26px 30px; }
.column-body .sec { margin-bottom: 24px; }
.column-body .sec:last-child { margin-bottom: 0; }
.column-body h2 { font-size: 19px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: baseline; gap: 10px; }
.sec-num { color: var(--amber); font-variant-numeric: tabular-nums; font-size: 13px; border: 1px solid var(--amber); padding: 0 6px; }
.column-body p { margin-bottom: 12px; color: #33302c; }
.column-body p:last-child { margin-bottom: 0; }
.related-list { list-style: none; margin: 0; padding: 0; }
.related-list li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.related-list li a::after { content: " \2197"; color: var(--amber); }

/* legal prose */
.legal-body h2.legal { font-size: 18px; }

/* footer */
.dash-footer { background: var(--panel); border-top: 3px solid var(--amber); margin-top: 20px; padding: 30px 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.footer-brand { flex: 1 1 320px; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.footer-nav { display: flex; gap: 16px; }
.footer-nav a { color: var(--ink); font-size: 14px; }
.copyright { flex: 1 1 100%; font-size: 12px; color: var(--muted); margin-top: 10px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .panel-grid { grid-template-columns: repeat(2, 1fr); }
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .board-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .panel-grid, .tile-grid { grid-template-columns: 1fr; }
  .topbar-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .desk-nav { gap: 14px; }
  .dash-hero h1 { font-size: 28px; }
}
