/* 风格 D:Dan Koe 式黑底大标题 + B 青紫数据面板。颜色全放在这里,以后想换配色只改这几行。 */
:root {
  color-scheme: dark;
  --bg: #000; --card: #12141c; --card2: #181b26; --text: #f2f3f7; --muted: #8d93a6; --line: #23263a;
  --accent: #22d3ee; --accent2: #a78bfa; --accent3: #f59e0b; --on-accent: #04202a;
  --accent-soft: #14283a; --note: #241d0c; --note-line: #6b5a1e;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.7 -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; margin: 0 auto; }
a { color: var(--accent); }
h1 { font-size: 1.9rem; line-height: 1.25; margin: 1.4rem 0 .4rem; font-weight: 800; }
h2 { font-size: 1.3rem; margin: 2.2rem 0 .7rem; font-weight: 800; }
h3 { font-size: 1.05rem; margin: 0 0 .6rem; }
.small { font-size: .9rem; color: var(--muted); }
.eyebrow { letter-spacing: .45em; color: var(--muted); font-size: .78rem; text-transform: uppercase; }

/* 顶部与页脚 */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(0,0,0,.85); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { font-weight: 800; font-size: .9rem; letter-spacing: .4em; text-decoration: none; color: var(--text); }
nav a { margin-left: 22px; text-decoration: none; color: var(--muted); font-size: .93rem; }
nav a:hover { color: var(--text); }
.site-footer { margin-top: 4rem; padding: 1.6rem 0 2.2rem; border-top: 1px solid var(--line); text-align: center; }
.disclaimer { font-weight: 600; margin: 0 0 .3rem; }

/* 首页 */
.hero { text-align: center; padding: 80px 0 56px; }
.hero h1 { font-size: clamp(2.3rem, 7vw, 3.9rem); line-height: 1.15; font-weight: 900; letter-spacing: -.02em; margin: 18px 0 20px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 30em; margin: 0 auto 30px; }
.btn { display: inline-block; padding: .8rem 1.7rem; border-radius: 99px; border: 1px solid var(--text);
  background: var(--text); color: #000; text-decoration: none; font-size: 1rem; font-weight: 800; cursor: pointer; margin: 0 8px 8px 0; }
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.sec { text-align: center; padding: 28px 0 6px; }
.sec h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); font-weight: 900; margin: 12px 0 8px; }
.sec p { color: var(--muted); margin: 0; }
.list { margin: 36px 0; }
.item { display: grid; grid-template-columns: 140px 1fr auto; gap: 20px; align-items: center; padding: 22px 0;
  border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.item:last-child { border-bottom: 1px solid var(--line); }
.item:hover h3 { color: var(--accent); }
.thumb { height: 80px; border-radius: 12px; background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: grid; place-items: center; font-weight: 900; color: var(--on-accent); font-size: 1.25rem; }
.thumb.dim { background: var(--card); color: var(--muted); border: 1px dashed var(--line); font-size: 1rem; }
.item h3 { margin: 0 0 4px; font-size: 1.2rem; }
.item .desc { color: var(--muted); font-size: .95rem; }
.go { color: var(--accent); font-weight: 700; white-space: nowrap; }
.go.off { color: var(--muted); font-weight: 500; }
.pill { font-size: .72rem; border: 1px solid var(--line); color: var(--muted); border-radius: 99px;
  padding: 1px 8px; margin-left: 8px; font-weight: 500; vertical-align: middle; }
@media (max-width: 600px) { .item { grid-template-columns: 92px 1fr; gap: 14px; } .go { display: none; } .thumb { height: 62px; font-size: 1rem; } }

/* 卡片与图表 */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.3rem; margin: 1rem 0; }
.card h2 { margin-top: .2rem; }
.example { background: var(--accent-soft); padding: .6rem .9rem; border-radius: 10px; border-left: 3px solid var(--accent2); }
.note { background: var(--note); border: 1px solid var(--note-line); padding: .6rem .9rem; border-radius: 10px; font-size: .92rem; }
.ticker { font-size: 1rem; color: var(--accent); font-weight: 700; margin-left: .5rem; border: 1px solid var(--accent);
  border-radius: 8px; padding: 0 .6rem; vertical-align: middle; }
.crumb { margin: 1.2rem 0 0; font-size: .9rem; }
.toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: .8rem 0; }
.toggle button { border: 0; background: transparent; color: var(--muted); padding: .5rem 1.5rem; font-size: 1rem; cursor: pointer; }
.toggle button.on { background: var(--accent); color: var(--on-accent); font-weight: 800; }
.chart-box { position: relative; height: 290px; }
.empty { color: var(--muted); }
details { margin-top: .6rem; }
summary { cursor: pointer; color: var(--accent); }

/* 表格 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { padding: .55rem .75rem; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; }
th:first-child, td:first-child { text-align: left; position: sticky; left: 0; background: var(--card); }
table.list th, table.list td { text-align: left; }
table.list td:nth-child(2) { white-space: normal; min-width: 12em; }
table.list td:nth-child(3) { white-space: normal; min-width: 12em; }
.tag { font-size: .75rem; padding: 1px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }
.derived { font-size: .7rem; color: var(--muted); margin-left: 3px; cursor: help; }
.na { color: var(--muted); }

/* 表单与提示 */
.flash { background: var(--accent-soft); border: 1px solid var(--line); border-radius: 10px; padding: .6rem .9rem; margin: 1rem 0 0; }
form.inline { display: inline; margin: 0; }
.linklike { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 0; margin-left: 22px; font-size: .93rem; }
.linklike:hover { color: var(--text); }
.small-btn { padding: .25rem .9rem; font-size: .9rem; margin: 0; }
.form { max-width: 460px; }
.form label { display: block; margin-bottom: .3rem; font-weight: 600; }
.form input[type=email] { width: 100%; padding: .7rem .8rem; font-size: 1rem; border: 1px solid var(--line);
  border-radius: 10px; background: var(--card); color: var(--text); margin-bottom: .8rem; }
.form input[type=email]:focus { outline: 2px solid var(--accent); border-color: transparent; }
@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  .chart-box { height: 250px; }
  nav a { margin-left: 14px; }
  .brand { letter-spacing: .25em; }
  .hero { padding: 56px 0 40px; }
}
