/* 试金石官网共享样式：深色金融风，金色主色（与训练端品牌一致） */
:root {
  --bg: #0d1117;
  --bg-soft: #161b22;
  --bg-card: #1c2430;
  --border: #30363d;
  --text: #e6edf3;
  --text-dim: #8b98a9;
  --text-faint: #484f58;
  --gold: #f0b90b;
  --gold-dark: #d9a508;
  --blue: #1f6feb;
  --green: #3fb950;
  --red: #f85149;
  --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* 顶部导航 */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 17, 23, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: baseline; gap: 8px; font-size: 18px; font-weight: 700; color: var(--gold); }
.brand small { color: var(--text-dim); font-size: 12px; font-weight: 400; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { padding: 6px 12px; border-radius: 8px; color: var(--text-dim); font-size: 14px; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--bg-soft); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* 按钮 */
.btn {
  display: inline-block; padding: 10px 22px; border-radius: 8px; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; transition: all .15s; font-weight: 500;
}
.btn-gold { background: var(--gold); color: #000; }
.btn-gold:hover { background: var(--gold-dark); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #1a5fd7; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-lg { padding: 14px 32px; font-size: 16px; }

/* Hero */
.hero { padding: 96px 0 72px; text-align: center; }
.hero h1 { font-size: 44px; font-weight: 700; line-height: 1.25; letter-spacing: 1px; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p { margin: 20px auto 0; max-width: 620px; color: var(--text-dim); font-size: 17px; }
.hero-actions { margin-top: 36px; display: flex; gap: 14px; justify-content: center; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--text-faint); }

/* 功能区 */
.section { padding: 64px 0; }
.section-title { text-align: center; font-size: 28px; font-weight: 600; }
.section-sub { text-align: center; color: var(--text-dim); margin-top: 8px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 40px; }
.feature {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
}
.feature .icon { font-size: 26px; }
.feature h3 { font-size: 16px; margin: 12px 0 6px; }
.feature p { font-size: 13px; color: var(--text-dim); }

/* 演示股横幅 */
.demo-banner {
  margin-top: 48px; border: 1px solid rgba(240, 185, 11, .35); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(240, 185, 11, .08), rgba(31, 111, 235, .06));
  padding: 32px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.demo-banner .info { flex: 1; min-width: 260px; }
.demo-banner h3 { font-size: 20px; }
.demo-banner h3 span { color: var(--gold); }
.demo-banner p { color: var(--text-dim); font-size: 14px; margin-top: 8px; }

/* 价格卡 */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 40px; }
.plan {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; text-align: center; position: relative;
}
.plan.hot { border-color: var(--gold); }
.plan .tag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #000; font-size: 12px; padding: 2px 12px; border-radius: 20px; font-weight: 600;
}
.plan h3 { font-size: 17px; }
.plan .price { margin: 14px 0 4px; font-size: 34px; font-weight: 700; color: var(--gold); }
.plan .price small { font-size: 14px; color: var(--text-dim); font-weight: 400; }
.plan .per { font-size: 12px; color: var(--text-faint); }
.plan ul { list-style: none; margin: 18px 0; text-align: left; font-size: 13px; color: var(--text-dim); display: grid; gap: 8px; }
.plan ul li::before { content: "✓"; color: var(--green); margin-right: 8px; }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 20px; }
.pack { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pack .name { font-size: 15px; }
.pack .desc { font-size: 12px; color: var(--text-dim); }
.pack .price { font-size: 20px; color: var(--gold); font-weight: 600; white-space: nowrap; }

/* FAQ */
.faq { max-width: 720px; margin: 32px auto 0; display: grid; gap: 12px; }
.faq details { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.faq summary { cursor: pointer; font-size: 15px; font-weight: 500; }
.faq details p { margin-top: 10px; font-size: 14px; color: var(--text-dim); }

/* 页脚 */
.footer { border-top: 1px solid var(--border); padding: 36px 0 48px; margin-top: 40px; color: var(--text-faint); font-size: 13px; }
.footer .cols { display: flex; gap: 48px; flex-wrap: wrap; margin-bottom: 24px; }
.footer h4 { color: var(--text-dim); font-size: 13px; margin-bottom: 10px; }
.footer a { display: block; padding: 3px 0; color: var(--text-faint); }
.footer a:hover { color: var(--text); }
.footer .legal { border-top: 1px solid var(--border); padding-top: 20px; line-height: 1.9; }

/* 表单/面板 */
.panel { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.form-row { display: grid; gap: 6px; margin-bottom: 16px; }
.form-row label { font-size: 13px; color: var(--text-dim); }
.input {
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 12px; color: var(--text); font-size: 14px; width: 100%;
}
.input:focus { outline: none; border-color: var(--blue); }

/* 用户中心卡片 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 20px 0; }
.stat-card { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 18px; }
.stat-card .k { font-size: 12px; color: var(--text-dim); }
.stat-card .v { font-size: 26px; font-weight: 700; margin-top: 4px; }
.stat-card .s { font-size: 12px; color: var(--text-faint); margin-top: 4px; }

table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th { text-align: left; color: var(--text-dim); font-weight: 500; padding: 8px; border-bottom: 1px solid var(--border); }
table.data td { padding: 10px 8px; border-bottom: 1px solid var(--bg-card); }

/* 支付弹层 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .6); display: none;
  align-items: center; justify-content: center; z-index: 100;
}
.modal-mask.show { display: flex; }
.modal { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; width: 340px; text-align: center; }
.modal img { background: #fff; border-radius: 8px; padding: 8px; }
.modal .amt { color: var(--gold); font-size: 22px; font-weight: 700; margin: 10px 0; }
.modal .hint { color: var(--text-dim); font-size: 13px; margin-top: 10px; }

/* 下载页 */
.dl-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 40px; }
.dl-card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; text-align: center; }
.dl-card .os { font-size: 18px; font-weight: 600; margin: 12px 0 4px; }
.dl-card .meta { font-size: 12px; color: var(--text-faint); margin-bottom: 18px; }

/* 博客 */
.article { max-width: 760px; margin: 0 auto; }
.article h1 { font-size: 30px; line-height: 1.4; }
.article .meta { color: var(--text-faint); font-size: 13px; margin: 12px 0 28px; }
.article h2 { font-size: 20px; margin: 32px 0 12px; }
.article p { margin: 12px 0; color: #c9d1d9; font-size: 15px; }
.article blockquote { border-left: 3px solid var(--gold); padding: 4px 16px; margin: 16px 0; color: var(--text-dim); }
.article .kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.article .kpi div { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 14px; text-align: center; }
.article .kpi .v { font-size: 22px; color: var(--gold); font-weight: 700; }
.article .kpi .k { font-size: 12px; color: var(--text-dim); }

@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  .nav-links { display: none; }
}
