:root {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --text: #1c1c1e;
  --text-soft: #5b5b60;
  --text-faint: #8a8a90;
  --border: #e8e8e4;
  --accent: #1a1a1a;
  --link: #2b6cb0;
  --badge-bg: #f1f1ee;
  --radius: 10px;
  --maxw: 820px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16161a;
    --surface: #1d1d22;
    --text: #ececf0;
    --text-soft: #b6b6bd;
    --text-faint: #85858d;
    --border: #2c2c33;
    --accent: #f2f2f2;
    --link: #6cb0ff;
    --badge-bg: #26262c;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(180%) blur(8px);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--text);
}
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: var(--text); color: var(--surface);
  font-size: 22px; font-weight: 700; border-radius: 4px;
  line-height: 1;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-cn { font-size: 20px; font-weight: 700; letter-spacing: .5px; }
.brand-en {
  font-size: 11px; font-weight: 500; color: var(--text-faint);
  letter-spacing: 1.5px; text-transform: uppercase; margin-top: 2px;
}
.nav a { color: var(--text-soft); margin-left: 18px; font-size: 14px; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* ---------- index list ---------- */
.intro { padding: 40px 0 8px; }
.intro h1 { font-size: 26px; margin: 0 0 6px; }
.intro p { color: var(--text-soft); margin: 0; }
.report-list { list-style: none; padding: 0; margin: 24px 0 60px; }
.report-item {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  transition: border-color .15s, transform .15s;
}
.report-item:hover { border-color: var(--text-faint); transform: translateY(-1px); }
.report-item .meta-top {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-faint);
}
.report-item .ticker { font-family: var(--mono); color: var(--text-soft); }
.report-item h2 { font-size: 18px; margin: 6px 0 8px; }
.report-item h2 a { color: var(--text); }
.report-item .summary { color: var(--text-soft); font-size: 14.5px; margin: 0 0 12px; }
.report-item .foot {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.report-item .date { font-size: 13px; color: var(--text-faint); }

/* ---------- badges ---------- */
.badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 12px; background: var(--badge-bg); color: var(--text-soft);
  border: 1px solid var(--border); white-space: nowrap;
}
.badge.rating { font-family: var(--mono); font-weight: 600; }
.badge.industry { background: transparent; }
.more { font-size: 14px; }

/* ---------- report detail ---------- */
.report-header { padding: 36px 0 8px; }
.report-header .crumbs { font-size: 13px; color: var(--text-faint); margin-bottom: 14px; }
.report-header h1 { font-size: 28px; margin: 0 0 6px; line-height: 1.3; }
.report-header .sub { color: var(--text-faint); font-size: 14px; margin-bottom: 18px; }
.metacard {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  margin-bottom: 28px;
}
.metacard .cell { background: var(--surface); padding: 12px 14px; }
.metacard .k { font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .4px; }
.metacard .v { font-size: 15px; font-weight: 600; margin-top: 2px; }
.verdict {
  border-left: 3px solid var(--accent); background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 18px; margin-bottom: 28px;
}
.verdict .rating-big { font-size: 20px; font-weight: 700; font-family: var(--mono); }
.verdict .line { color: var(--text-soft); font-size: 14.5px; margin-top: 6px; }
.snapshot {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px; margin-bottom: 32px;
}
.snapshot .blk {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; background: var(--surface);
}
.snapshot .blk .k { font-size: 12px; color: var(--text-faint); }
.snapshot .blk .v { font-size: 15px; font-weight: 600; margin-top: 3px; }
.content h2 { font-size: 22px; margin: 38px 0 12px; padding-top: 8px; border-top: 1px solid var(--border); }
.content h3 { font-size: 17px; margin: 26px 0 8px; }
.content h4 { font-size: 15px; margin: 20px 0 6px; color: var(--text-soft); }
.content p { margin: 12px 0; }
.content ul, .content ol { padding-left: 22px; margin: 12px 0; }
.content li { margin: 6px 0; }
.content blockquote {
  margin: 16px 0; padding: 10px 16px; border-left: 3px solid var(--border);
  color: var(--text-soft); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0;
}
.content code {
  font-family: var(--mono); font-size: 13.5px; background: var(--badge-bg);
  padding: 1px 5px; border-radius: 4px;
}
.content pre {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; overflow-x: auto; margin: 16px 0;
}
.content pre code { background: none; padding: 0; font-size: 13px; }
.content table {
  width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px;
}
.content th, .content td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.content th { background: var(--surface); font-weight: 600; }
.content hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.anchor-nav { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 8px; }
.anchor-nav a { font-size: 13px; color: var(--text-soft); border: 1px solid var(--border); padding: 3px 10px; border-radius: 999px; }
.anchor-nav a:hover { color: var(--text); text-decoration: none; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border); color: var(--text-faint);
  font-size: 13px; padding: 26px 0; margin-top: 60px; text-align: center;
}
.site-footer a { color: var(--text-faint); }
.back-top {
  position: fixed; right: 20px; bottom: 20px; width: 40px; height: 40px;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--border);
  display: none; align-items: center; justify-content: center; cursor: pointer;
  color: var(--text-soft); font-size: 18px; z-index: 20;
}
.back-top.show { display: flex; }
.disclaimer { color: var(--text-faint); font-size: 12.5px; margin-top: 8px; }
