/* 医算工具箱 · 售卖站样式 */
:root {
  --brand: #0e7490;
  --brand-dark: #155e75;
  --brand-light: #ecfeff;
  --accent: #d97706;
  --ink: #1e293b;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --green: #059669;
  --radius: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6;
}
a { color: var(--brand); text-decoration: none; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---- 顶栏 ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 60px; }
.nav-logo { font-size: 19px; font-weight: 700; color: var(--ink); }
.nav-logo span { color: var(--brand); }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav-links a { color: var(--ink-2); }
.nav-links a:hover { color: var(--brand); }
.btn {
  display: inline-block; padding: 10px 22px; border-radius: 8px;
  font-size: 15px; font-weight: 600; cursor: pointer; border: none;
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: #fff; color: var(--brand); border: 1.5px solid var(--brand); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 13.5px; }

/* ---- Hero ---- */
.hero { padding: 84px 0 64px; text-align: center; background: linear-gradient(180deg, var(--brand-light) 0%, var(--bg) 100%); }
.hero h1 { font-size: 42px; letter-spacing: 1px; margin-bottom: 14px; }
.hero h1 em { color: var(--brand); font-style: normal; }
.hero p.sub { font-size: 18px; color: var(--ink-2); max-width: 640px; margin: 0 auto 30px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 48px; justify-content: center; }
.hero-stats .num { font-size: 30px; font-weight: 700; color: var(--brand); }
.hero-stats .lbl { font-size: 13.5px; color: var(--ink-3); }

/* ---- 区块 ---- */
.section { padding: 64px 0; }
.section-title { text-align: center; font-size: 28px; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--ink-2); margin-bottom: 36px; }

/* ---- 演示区 ---- */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.cat-tab {
  padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); font-size: 14px; cursor: pointer;
}
.cat-tab:hover { border-color: var(--brand); color: var(--brand); }
.cat-tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 14px; }
.tool-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 8px;
  transition: box-shadow .15s, border-color .15s;
}
.tool-card:hover { box-shadow: 0 4px 16px rgba(14,116,144,.10); border-color: var(--brand); }
.tool-name { font-weight: 600; font-size: 15px; line-height: 1.4; }
.tool-meta { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.tag { font-size: 12px; padding: 1px 8px; border-radius: 999px; }
.tag-free { background: #dcfce7; color: var(--green); }
.tag-server { background: #fef3c7; color: var(--accent); }
.tool-price { margin-left: auto; font-weight: 700; color: var(--accent); font-size: 15px; }
.tool-actions { display: flex; gap: 8px; }
.tool-actions .btn { flex: 1; text-align: center; }

/* ---- 价格区 ---- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 1000px; margin: 0 auto; }
.price-card {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 16px;
  padding: 30px 26px; display: flex; flex-direction: column; position: relative;
}
.price-card.featured { border-color: var(--brand); box-shadow: 0 8px 28px rgba(14,116,144,.14); }
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 600;
  padding: 3px 16px; border-radius: 999px; white-space: nowrap;
}
.price-name { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.price-num { font-size: 38px; font-weight: 800; color: var(--brand); margin: 8px 0 2px; }
.price-num small { font-size: 16px; font-weight: 600; }
.price-unit { color: var(--ink-3); font-size: 13.5px; margin-bottom: 16px; }
.price-feats { list-style: none; margin-bottom: 24px; flex: 1; }
.price-feats li { padding: 5px 0 5px 26px; position: relative; font-size: 14.5px; color: var(--ink-2); }
.price-feats li::before { content: "✓"; position: absolute; left: 2px; color: var(--green); font-weight: 700; }

/* ---- 流程 & FAQ ---- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; max-width: 960px; margin: 0 auto; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; text-align: center; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff;
  font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--ink-2); }
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; padding: 16px 20px; }
.faq summary { font-weight: 600; cursor: pointer; font-size: 15.5px; }
.faq details p { margin-top: 10px; color: var(--ink-2); font-size: 14.5px; }

/* ---- 页脚 ---- */
.footer { background: #0f172a; color: #94a3b8; padding: 40px 0 26px; font-size: 13.5px; }
.footer a { color: #7dd3fc; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 36px; margin-bottom: 22px; }
.footer-cols h4 { color: #e2e8f0; font-size: 14.5px; margin-bottom: 8px; }
.footer-legal { border-top: 1px solid #1e293b; padding-top: 16px; line-height: 1.8; }

/* ---- 试用包装页 ---- */
.demo-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 52px;
  background: #0f172a; color: #e2e8f0; display: flex; align-items: center; gap: 14px; padding: 0 16px;
  font-size: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.demo-bar .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-bar .tip { color: #fbbf24; font-size: 13px; }
.demo-bar .spacer { flex: 1; }
.demo-frame { position: fixed; top: 52px; left: 0; right: 0; bottom: 0; width: 100%; height: calc(100% - 52px); border: none; }

@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  .hero-stats { gap: 26px; }
  .nav-links { gap: 14px; font-size: 14px; }
  .demo-bar .tip { display: none; }
}

/* ---- 弹窗 ---- */
.modal-mask {
  position: fixed; inset: 0; z-index: 200; background: rgba(15,23,42,.5);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: #fff; border-radius: 16px; padding: 28px 26px 22px; width: 360px; max-width: 100%;
  position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.modal-x {
  position: absolute; top: 10px; right: 14px; border: none; background: none;
  font-size: 22px; color: var(--ink-3); cursor: pointer;
}
.modal-tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.modal-tabs button {
  flex: 1; padding: 8px 0; border: 1px solid var(--line); background: #fff;
  border-radius: 8px; font-size: 14px; cursor: pointer; color: var(--ink-2);
}
.modal-tabs button.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.modal input {
  width: 100%; padding: 11px 14px; margin-bottom: 12px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 15px; outline: none;
}
.modal input:focus { border-color: var(--brand); }
.modal-msg { margin-top: 12px; font-size: 13.5px; min-height: 20px; text-align: center; }
