/* 安鑫乐量化实验室 — 站点样板样式
   设计概念：监测站 / 仪表盘。数据与状态以等宽字读数呈现。
   配色沿用公众号品牌（藏青 + 金），保持跨平台实体一致。 */

:root {
  --ink:   #1a2b4a;   /* 主藏青：深色带、正文强调 */
  --ink2:  #2f4a7a;   /* 次藏青：链接、次级强调 */
  --gold:  #c08a2e;   /* 金：活动/高亮/运转信号 */
  --bg:    #f5f7fa;   /* 页面底色 */
  --paper: #ffffff;   /* 卡片 */
  --line:  #e3e8f0;   /* 分隔线 */
  --mute:  #5b6b85;   /* 次级文字 */
  --green: #1e8a5a;   /* 运转中 / 正向数据 */
  --red:   #c0392b;

  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
          "Source Han Sans SC", "Noto Sans CJK SC", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code",
          "DejaVu Sans Mono", Consolas, monospace;

  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

a { color: var(--ink2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 通用：栏目眉标 ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}

/* ---------- 监测站头带（signature） ---------- */
.masthead { background: var(--ink); color: #eaf0fb; }
.masthead .wrap { padding-top: 34px; padding-bottom: 0; }

.brand-row {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.brand-mark {
  font-family: var(--mono); font-size: 13px; letter-spacing: .16em;
  color: var(--gold); border: 1px solid rgba(192,138,46,.5);
  padding: 3px 8px; border-radius: 3px;
}
.brand-name {
  font-size: clamp(26px, 4.4vw, 40px); font-weight: 700;
  letter-spacing: .01em; margin: 0;
}
.tagline {
  font-size: clamp(15px, 2vw, 18px); color: #b7c4dd; margin: 12px 0 26px;
  font-weight: 400;
}

/* console 读数条 */
.console {
  font-family: var(--mono); font-size: 13px; line-height: 2;
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding: 14px 0; margin: 0;
  color: #cdd8ee; overflow-x: auto; white-space: nowrap;
}
.console .dot {
  color: var(--green); margin-right: 8px;
}
.console .sep { color: rgba(255,255,255,.28); margin: 0 12px; }
.console b { color: #fff; font-weight: 600; }

.dot.live { animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.35} }
@media (prefers-reduced-motion: reduce) { .dot.live { animation: none; } }

/* 头带里的订阅行 */
.mast-cta {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  padding: 20px 0 30px;
}
.mast-cta .qr {
  width: 76px; height: 76px; background: #24365a; border: 1px solid #3a507d;
  border-radius: 6px; display: grid; place-items: center; text-align: center;
  font-family: var(--mono); font-size: 10px; color: #90a3c8; line-height: 1.4;
}
.mast-cta .cta-text { font-size: 14px; color: #b7c4dd; }
.mast-cta .cta-text b { color: #fff; }

/* ---------- 区段通用 ---------- */
section { padding: 56px 0; border-bottom: 1px solid var(--line); }
section h2 { font-size: clamp(20px, 3vw, 26px); margin: 0 0 8px; letter-spacing: .01em; }
.lede { font-size: 17px; color: var(--ink); max-width: 68ch; margin: 6px 0 0; }
.muted { color: var(--mute); }

/* ---------- 简介区 ---------- */
.about-statement { font-size: 18px; line-height: 1.85; max-width: 72ch; margin: 14px 0 0; }
.about-statement .no-advice {
  display: inline-block; margin-top: 14px; font-size: 14px; color: var(--mute);
  border-left: 3px solid var(--gold); padding: 2px 0 2px 12px;
}

/* ---------- 仪表矩阵 ---------- */
.grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px;
}
@media (max-width: 820px){ .grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px){ .grid { grid-template-columns: 1fr; } }

.instrument {
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 8px;
  transition: border-color .15s, transform .15s;
}
.instrument:hover { border-color: var(--gold); transform: translateY(-2px); }
.inst-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.inst-name { font-size: 17px; font-weight: 700; margin: 0; }
.cadence {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  color: var(--ink2); background: #eef2f9; border: 1px solid var(--line);
  padding: 2px 7px; border-radius: 3px; white-space: nowrap;
}
.inst-desc { font-size: 14px; color: var(--mute); margin: 0; flex: 1; }
.inst-foot {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 12px; margin-top: 4px;
  border-top: 1px dashed var(--line); padding-top: 10px;
}
.status { color: var(--green); }
.status .dot { animation: blink 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce){ .status .dot { animation: none; } }
.inst-link { color: var(--ink2); }

/* ---------- 方法论三点 ---------- */
.method-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 24px; }
@media (max-width: 720px){ .method-cols { grid-template-columns: 1fr; } }
.method-item h3 { font-size: 16px; margin: 0 0 6px; }
.method-item h3 .num { font-family: var(--mono); color: var(--gold); margin-right: 8px; font-size: 14px; }
.method-item p { font-size: 14px; color: var(--mute); margin: 0; }

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 4px; margin-top: 18px; font-size: 15px; }
.about-grid .row { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.about-grid .k { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--mute); min-width: 92px; }

/* ---------- 页脚 ---------- */
footer { background: var(--ink); color: #b7c4dd; padding: 40px 0; border: 0; }
footer .foot-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
footer .qr-row { display: flex; gap: 14px; }
footer .qr {
  width: 72px; height: 72px; background: #24365a; border: 1px solid #3a507d;
  border-radius: 6px; display: grid; place-items: center; text-align: center;
  font-family: var(--mono); font-size: 10px; color: #90a3c8; line-height: 1.4;
}
footer .disclaimer { font-size: 12px; line-height: 1.8; max-width: 52ch; color: #90a3c8; }
footer a { color: #cdd8ee; }
footer .copy { font-family: var(--mono); font-size: 11px; color: #6f82a8; margin-top: 22px; letter-spacing: .05em; }

/* ---------- 仪表页专用 ---------- */
.crumb { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--mute); padding: 20px 0 0; }
.inst-hero { padding: 18px 0 40px; border-bottom: 1px solid var(--line); }
.inst-hero h1 { font-size: clamp(26px, 4vw, 36px); margin: 8px 0 6px; }
.inst-hero .one-line { font-family: var(--mono); font-size: 13px; color: var(--ink2); }
.inst-hero .one-line b { color: var(--gold); }

.block { padding: 40px 0; border-bottom: 1px solid var(--line); }
.block h2 { font-size: 20px; margin: 0 0 14px; }
.kv { display: grid; grid-template-columns: 132px 1fr; gap: 8px 18px; font-size: 15px; }
.kv .k { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--mute); padding-top: 2px; }
.kv .v { margin: 0; }

.sample-banner {
  font-family: var(--mono); font-size: 12px; color: #8a6a1e; background: #fdf6e6;
  border: 1px solid #efdcae; border-radius: 5px; padding: 8px 12px; margin: 0 0 14px;
  display: inline-block;
}
table.readout { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 13px; }
table.readout th, table.readout td { text-align: right; padding: 9px 12px; border-bottom: 1px solid var(--line); }
table.readout th:first-child, table.readout td:first-child { text-align: left; }
table.readout thead th { color: var(--mute); font-weight: 600; border-bottom: 2px solid var(--ink); letter-spacing: .04em; }
table.readout td.pos { color: var(--green); }
table.readout td.neg { color: var(--red); }

.archive { list-style: none; padding: 0; margin: 0; }
.archive li { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 13px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.archive li .date { color: var(--mute); }

.method-list { padding-left: 0; list-style: none; margin: 0; }
.method-list li { padding: 10px 0 10px 26px; position: relative; font-size: 15px; border-bottom: 1px solid var(--line); }
.method-list li::before { content: "▸"; color: var(--gold); position: absolute; left: 4px; }

.subscribe-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 8px 0; }
.subscribe-row .qr { width: 84px; height: 84px; background: #eef2f9; border: 1px solid var(--line); border-radius: 6px; display: grid; place-items: center; font-family: var(--mono); font-size: 10px; color: var(--mute); text-align: center; line-height: 1.4; }

.page-disclaimer { font-size: 13px; color: var(--mute); line-height: 1.8; padding: 26px 0; }

/* 真实二维码图片：填满原占位框 */
img.qr { object-fit: contain; background:#fff; padding:3px; }

/* ---------- 能力版图（五大能力域） ---------- */
.mission { background: var(--ink); color: #eaf0fb; border-bottom: 0; }
.mission .wrap { padding: 50px 24px 56px; }
.mission .eyebrow { color: var(--gold); }
.mission h2 { font-size: clamp(22px, 3.4vw, 30px); margin: 0 0 16px; color: #fff; max-width: 24ch; }
.mission p.stmt { font-size: 17px; line-height: 1.85; color: #c6d2ea; max-width: 70ch; margin: 0; }
.mission .no-advice { display:inline-block; margin-top: 16px; font-size: 13px; color: #90a3c8; border-left: 3px solid var(--gold); padding: 2px 0 2px 12px; }

.capability { padding: 44px 0; border-bottom: 1px solid var(--line); }
.cap-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.cap-idx { font-family: var(--mono); font-size: 13px; color: var(--gold); letter-spacing: .1em; }
.capability h2 { font-size: 21px; margin: 0; }
.cap-lede { font-size: 14px; color: var(--mute); margin: 6px 0 0; max-width: 72ch; }

.instrument.planned { background: transparent; border-style: dashed; }
.instrument.planned .inst-name { color: var(--mute); font-weight: 600; }
.instrument.planned .inst-desc { color: #8a97ae; }
.cadence.plan { color: #8a6a1e; background: #fbf3e2; border-color: #efdcae; }
.status.plan { color: var(--mute); }
.status.plan .dot { animation: none; color: var(--mute); }
.inst-foot .soon { font-family: var(--mono); font-size: 12px; color: var(--mute); }

/* mission 改为浅色，避免与藏青头带叠成一大块深色 */
.mission { background: var(--bg); color: var(--ink); }
.mission .wrap { padding: 54px 24px; }
.mission h2 { color: var(--ink); }
.mission p.stmt { color: var(--ink); }
.mission .no-advice { color: var(--mute); }

/* ---------- 双板块聚焦首页 ---------- */
.board {
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
}
.board:hover { border-color: var(--gold); }
.board .b-top { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.board h3 { font-size: 22px; margin: 0; }
.board .b-desc { font-size: 15px; color: var(--ink); margin: 0; }
.board .b-points { list-style:none; padding:0; margin: 4px 0 0; }
.board .b-points li { padding: 7px 0 7px 22px; position: relative; font-size: 14px; color: var(--mute); border-bottom: 1px dashed var(--line); }
.board .b-points li::before { content:"▸"; color: var(--gold); position:absolute; left:2px; }
.board .b-cta { margin-top: 10px; font-family: var(--mono); font-size: 14px; }
.two-col { display:grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 26px; }
@media (max-width: 760px){ .two-col { grid-template-columns: 1fr; } }
.later { font-size: 13px; color: var(--mute); margin-top: 18px; }

/* ---------- 移动端：数据表自动卡片化（≤720px） ---------- */
@media (max-width: 720px) {
  table.readout { display: block; border: none; }
  table.readout thead { display: none; }
  table.readout tbody { display: block; }
  table.readout tr {
    display: flex; flex-direction: column;
    border: 1px solid var(--line); border-radius: 10px;
    background: var(--paper); padding: 10px 14px; margin-bottom: 10px;
  }
  table.readout td {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
    padding: 6px 0; border: none; text-align: right; white-space: normal;
  }
  table.readout td::before {
    content: attr(data-label);
    color: var(--mute); font-size: 12px; flex: 0 0 auto; text-align: left;
  }
  table.readout td.cell-name {
    order: -1; display: block; text-align: left; font-weight: 600; font-size: 15px;
    padding: 0 0 8px; margin-bottom: 4px; border-bottom: 1px dashed var(--line);
  }
  table.readout td.cell-name::before { content: none; }
  table.readout td:not(.cell-name) { border-bottom: 1px dotted var(--line); }
  table.readout tr td:last-child { border-bottom: none; }
}

/* 状态/限额列：桌面端禁折行，避免"暂停申购"竖排 */
table.readout td.nw { white-space: nowrap; }
