/* ==========================================================================
   盈涨科技信息服务 · 产品 AI交易之家 · 官网样式表 v2
   --------------------------------------------------------------------------
   设计基调：研究机构年报（深底 / 发丝线 / 编号索引 / 单一强调色）
   原则：全站只有一个强调色（金铜），多一个颜色就掉档次。
   版式：一屏一件事。标题、正文、证据三段式，不堆卡片。
   ========================================================================== */

/* ---------- 1. 令牌 ---------- */
:root {
  --ink: #08111f;
  --ink-2: #0b1626;
  --ink-3: #0f1d31;
  --raise: #12233a;

  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --line-gold: rgba(201, 162, 39, 0.4);

  --fg: #e9eef6;
  --body: #9aabc1;
  --muted: #66798f;

  --gold: #c9a227;
  --gold-bright: #e2be50;
  --gold-wash: rgba(201, 162, 39, 0.1);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", Arial, sans-serif;
  --mono: "SF Mono", "Cascadia Mono", Consolas, "Delegate", monospace;

  --wrap: 1140px;
  --radius: 3px;
}

/* ---------- 2. 基础 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--fg);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

a:hover {
  color: var(--gold-bright);
}

h1,
h2,
h3,
h4 {
  color: var(--fg);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(31px, 4.4vw, 54px);
  line-height: 1.16;
}

h2 {
  font-size: clamp(24px, 2.9vw, 36px);
  line-height: 1.26;
}

h3 {
  font-size: 18px;
  line-height: 1.5;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: rgba(201, 162, 39, 0.28);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

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

.mono {
  font-family: var(--mono);
  font-size: 0.94em;
  letter-spacing: 0.01em;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 14px;
  line-height: 1.7;
}

.nowrap {
  white-space: nowrap;
}

/* ---------- 3. 预览条（默认不显示，site-config.js 的 preview 控制） ---------- */
.preview-bar {
  display: none;
  padding: 8px 0;
  background: var(--gold-wash);
  border-bottom: 1px solid var(--line-gold);
  color: var(--gold-bright);
  font-size: 12.5px;
  text-align: center;
  letter-spacing: 0.02em;
}

body.is-preview .preview-bar {
  display: block;
}

/* ---------- 4. 页头 ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 17, 31, 0.88);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-head__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand__mark {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  width: 34px;
  height: 34px;
  padding-bottom: 9px;
  border: 1px solid var(--line-gold);
  border-radius: var(--radius);
}

.brand__mark i {
  display: block;
  width: 3px;
  border-radius: 1px;
  background: var(--gold);
}

.brand__mark i:nth-child(1) {
  height: 7px;
  opacity: 0.45;
}

.brand__mark i:nth-child(2) {
  height: 11px;
  opacity: 0.72;
}

.brand__mark i:nth-child(3) {
  height: 16px;
}

.brand__logo {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand__name {
  color: var(--fg);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand__sub {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav a {
  color: var(--body);
  font-size: 14px;
  position: relative;
  padding: 6px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right 0.2s ease;
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  right: 0;
}

.nav a[aria-current="page"] {
  color: var(--fg);
}

.head-cta {
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  margin: 3px auto;
  background: var(--fg);
}

body.nav-open .nav {
  display: flex;
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--fg);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.btn:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #14200f;
  font-weight: 600;
}

.btn--gold:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: #14200f;
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--body);
}

.btn--ghost:hover {
  color: var(--fg);
  border-color: var(--fg);
}

.btn--sm {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

.btn--block {
  width: 100%;
}

.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 6. 首屏 ---------- */
.hero {
  position: relative;
  padding: 88px 0 0;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% 40% 40% -10%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(201, 162, 39, 0.09),
    transparent 62%
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero__eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  max-width: 15em;
}

.hero__lead {
  max-width: 33em;
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--body);
}

.hero__lead strong {
  color: var(--fg);
  font-weight: 500;
}

.hero .btn-row {
  margin-top: 34px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 13px;
}

.hero__meta span {
  position: relative;
  padding-left: 15px;
}

.hero__meta span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.65;
}

/* ---------- 7. 数据带 ---------- */
.databand {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 68px;
}

.databand__item {
  padding: 26px 24px 26px 0;
  border-right: 1px solid var(--line);
}

.databand__item:last-child {
  border-right: 0;
  padding-right: 0;
}

.databand__num {
  display: block;
  color: var(--fg);
  font-family: var(--mono);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.databand__num em {
  font-style: normal;
  color: var(--gold);
  font-size: 0.55em;
  margin-left: 4px;
}

.databand__label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.03em;
}

/* ---------- 8. 区块 ---------- */
.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

.section--tight {
  padding: 68px 0;
}

.section--flush {
  border-bottom: 0;
}

.section-head {
  margin-bottom: 48px;
}

.eyebrow {
  display: block;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-head h2 {
  max-width: 24em;
}

.section-head p {
  max-width: 44em;
  margin-top: 18px;
  color: var(--body);
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 28px 0 0;
}

/* ---------- 9. 编号条目（核心能力） ---------- */
.entries {
  border-top: 1px solid var(--line);
}

.entry {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 32px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.entry__num {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  padding-top: 6px;
}

.entry h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.entry__body p {
  color: var(--body);
  font-size: 15px;
}

.entry__side {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
  border-left: 1px solid var(--line);
  padding-left: 32px;
}

.entry__side strong {
  display: block;
  color: var(--fg);
  font-weight: 500;
  font-size: 13.5px;
  margin-bottom: 4px;
}

/* ---------- 10. 截图 ---------- */
.shot {
  margin: 0;
}

.shot__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.shot__bar span:last-child {
  color: var(--gold);
}

.shot__body {
  border: 1px solid var(--line);
  background: var(--ink-2);
  overflow: hidden;
}

.shot__body img {
  width: 100%;
}

.shot__cap {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
  max-width: 52em;
}

.shot--wide {
  max-width: 1100px;
}

/* ---------- 11. 品种覆盖 ---------- */
.vtable {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.vtable caption {
  text-align: left;
  color: var(--muted);
  font-size: 13px;
  padding-bottom: 14px;
}

.vtable th,
.vtable td {
  text-align: left;
  padding: 13px 16px 13px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.vtable th {
  width: 120px;
  color: var(--fg);
  font-weight: 500;
  white-space: nowrap;
}

.vtable td:first-of-type {
  width: 54px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.vtable td:last-child {
  color: var(--body);
  line-height: 1.75;
}

/* ---------- 12. 下载 ---------- */
.dl {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
}

.dl__main {
  padding: 38px 36px;
  display: flex;
  flex-direction: column;
}

.dl__main .dl__hint {
  margin-top: auto;
  padding-top: 16px;
}

.dl__side {
  padding: 38px 36px;
  background: var(--ink-3);
  border-left: 1px solid var(--line);
}

.dl__tag {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid var(--line-gold);
  border-radius: 2px;
  color: var(--gold);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.dl__ver {
  margin: 18px 0 8px;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 26px;
  letter-spacing: -0.01em;
}

.dl__sub {
  color: var(--muted);
  font-size: 13.5px;
}

.dl__actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.dl__hint {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.dl__side h4 {
  color: var(--fg);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.speclist li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}

.speclist li:last-child {
  border-bottom: 0;
}

.speclist b {
  color: var(--fg);
  font-weight: 500;
  font-family: var(--mono);
  font-size: 13px;
  text-align: right;
}

.hashbox {
  margin-top: 22px;
  padding: 14px 16px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hashbox code {
  display: block;
  color: var(--body);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  word-break: break-all;
}

.copy-btn {
  margin-top: 10px;
  height: 30px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--body);
  font-size: 12px;
  cursor: pointer;
}

.copy-btn:hover {
  color: var(--gold-bright);
  border-color: var(--gold);
}

/* ---------- 13. 步骤 ---------- */
.steps {
  counter-reset: step;
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.step__num {
  counter-increment: step;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 12px;
  padding-top: 5px;
  letter-spacing: 0.08em;
}

.step__num::before {
  content: "0" counter(step);
}

.step h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.step p {
  color: var(--body);
  font-size: 14.5px;
}

/* ---------- 14. 问答 ---------- */
.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 20px 0;
  color: var(--fg);
  font-size: 15.5px;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "+";
  color: var(--gold);
  font-family: var(--mono);
  font-size: 15px;
  flex: 0 0 14px;
}

.faq details[open] summary::before {
  content: "−";
}

.faq .answer {
  padding: 0 0 22px 28px;
  color: var(--body);
  font-size: 14.5px;
  max-width: 62em;
}

.faq .answer p + p {
  margin-top: 12px;
}

/* ---------- 15. 更新日志 ---------- */
.clog {
  border-top: 1px solid var(--line);
}

.clog__item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 32px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.clog__ver {
  color: var(--fg);
  font-family: var(--mono);
  font-size: 14px;
}

.clog__date {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.clog ul li {
  position: relative;
  padding-left: 16px;
  color: var(--body);
  font-size: 14.5px;
  line-height: 1.8;
}

.clog ul li + li {
  margin-top: 6px;
}

.clog ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 4px;
  height: 1px;
  background: var(--gold);
}

/* ---------- 16. 提示块 ---------- */
.note {
  padding: 20px 24px;
  border-left: 2px solid var(--gold);
  background: var(--gold-wash);
  color: var(--body);
  font-size: 14px;
  line-height: 1.8;
}

.note strong {
  color: var(--fg);
  font-weight: 500;
}

/* ---------- 17. 结尾行动 ---------- */
.cta {
  padding: 84px 0;
  text-align: center;
}

.cta h2 {
  max-width: 20em;
  margin: 0 auto;
}

.cta p {
  max-width: 40em;
  margin: 18px auto 0;
  color: var(--body);
}

.cta .btn-row {
  justify-content: center;
  margin-top: 30px;
}

/* ---------- 18. 页脚 ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  padding: 56px 0 30px;
}

.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.foot__brand p {
  margin-top: 16px;
  max-width: 26em;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.foot__col h4 {
  color: var(--fg);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.foot__col li + li {
  margin-top: 9px;
}

.foot__col a {
  color: var(--muted);
  font-size: 13.5px;
}

.foot__col a:hover {
  color: var(--gold-bright);
}

.foot__legal {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.disclaimer {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.9;
  max-width: 62em;
}

.foot__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12.5px;
}

.foot__meta a {
  color: var(--muted);
}

.foot__meta a:hover {
  color: var(--gold-bright);
}

/* 公安备案：图标在编号前面（备案系统对顺序有要求），所以要 inline-flex 才能垂直居中对齐 */
.foot__meta .mps {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.foot__meta .mps img {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  /* 官方图是深蓝盾徽，正片叠底会让它在深色底上糊掉，这里保持原色 */
  display: block;
}

/* ---------- 19. 响应式 ---------- */
@media (max-width: 980px) {
  .site-head__inner {
    gap: 16px;
  }

  .nav {
    gap: 18px;
  }

  .entry {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 20px;
  }

  .entry__side {
    grid-column: 2;
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 14px;
  }

  .dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .dl__side {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .foot__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .clog__item {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}

@media (max-width: 760px) {
  .wrap {
    padding: 0 20px;
  }

  .hero {
    padding-top: 56px;
  }

  .hero__lead {
    font-size: 15.5px;
  }

  .databand {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 44px;
  }

  .databand__item {
    padding: 20px 18px 20px 0;
    border-bottom: 1px solid var(--line);
  }

  .databand__item:nth-child(2n) {
    border-right: 0;
  }

  .databand__item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .section {
    padding: 64px 0;
  }

  .section--tight {
    padding: 52px 0;
  }

  .section-head {
    margin-bottom: 34px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
  }

  .nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .head-cta {
    display: none;
  }

  .dl__main,
  .dl__side {
    padding: 26px 22px;
  }

  .steps .step {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 14px;
  }

  .vtable th,
  .vtable td {
    display: block;
    width: auto;
    padding-right: 0;
  }

  .vtable tr {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .vtable td,
  .vtable th {
    border-bottom: 0;
    padding-top: 0;
    padding-bottom: 2px;
  }

  .vtable td:first-of-type {
    width: auto;
  }

  .foot__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .foot__meta {
    gap: 8px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

/* ---------- 20. 打印 ---------- */
@media print {
  .site-head,
  .preview-bar,
  .btn {
    display: none;
  }

  body {
    background: #fff;
    color: #111;
  }
}
