/* 发卡机器人官网 — 科技感暗色主题（自包含，无外部依赖） */
:root {
  color-scheme: dark;   /* 滚动条等 UA 控件走暗色（面板 iframe 里白滚动条刺眼，2026-10-12） */
  --bg: #060a13;
  --bg2: #0a1020;
  --card: rgba(255, 255, 255, .04);
  --card2: rgba(255, 255, 255, .06);
  --line: rgba(120, 170, 255, .14);
  --ink: #e8eefc;
  --sub: #8fa0c0;
  --cyan: #38e1ff;
  --blue: #4f7cff;
  --violet: #9d6bff;
  --grad: linear-gradient(100deg, #38e1ff, #4f7cff 55%, #9d6bff);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* 暗色细滚动条 */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #223049; border-radius: 5px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #2e415f; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.8 "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
code, .mono { font-family: Consolas, "Cascadia Code", monospace; }

/* 背景光斑 + 网格 */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.bg-fx::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 15% -5%, rgba(56, 225, 255, .13), transparent 60%),
    radial-gradient(700px 500px at 85% 10%, rgba(157, 107, 255, .12), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(79, 124, 255, .10), transparent 60%);
}
.bg-fx::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(120, 170, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 170, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* 顶部导航 */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(6, 10, 19, .78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.logo .cube {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--grad);
  box-shadow: 0 0 18px rgba(79, 124, 255, .55);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; color: #04101c; font-weight: 900;
}
.nav .links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; color: var(--sub); }
.nav .links a:hover { color: var(--cyan); }
.nav .cta {
  padding: 7px 18px; border-radius: 999px; font-size: 13px; color: #fff;
  background: linear-gradient(100deg, rgba(79, 124, 255, .35), rgba(157, 107, 255, .35));
  border: 1px solid rgba(120, 170, 255, .4);
}
.nav .cta:hover { box-shadow: 0 0 16px rgba(79, 124, 255, .5); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 32px); }

/* Hero */
.hero { padding: clamp(60px, 10vh, 110px) 0 60px; text-align: center; position: relative; }
.hero .tag {
  display: inline-block; padding: 4px 14px; border-radius: 999px; font-size: 12.5px;
  color: var(--cyan); border: 1px solid rgba(56, 225, 255, .35);
  background: rgba(56, 225, 255, .07); letter-spacing: 1px;
}
.hero h1 {
  margin: 22px 0 14px; font-size: clamp(30px, 5.4vw, 52px); font-weight: 800;
  letter-spacing: 2px; line-height: 1.3;
}
.hero h1 .g {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub { color: var(--sub); max-width: 640px; margin: 0 auto; font-size: 16px; }
.hero .btns { margin-top: 34px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  padding: 12px 30px; border-radius: 10px; font-size: 15px; transition: .2s;
  border: 1px solid transparent; cursor: pointer;
}
.btn.pri {
  background: var(--grad); color: #051018; font-weight: 700;
  box-shadow: 0 6px 26px rgba(56, 160, 255, .35);
}
.btn.pri:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(56, 160, 255, .5); }
.btn.ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn.ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* 终端装饰 */
.term {
  max-width: 700px; margin: 54px auto 0; text-align: left;
  background: rgba(8, 13, 26, .85); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5), 0 0 40px rgba(79, 124, 255, .08);
}
.term .bar { display: flex; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.term .bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3550; }
.term .bar i:nth-child(1) { background: #ff5f57; }
.term .bar i:nth-child(2) { background: #febc2e; }
.term .bar i:nth-child(3) { background: #28c840; }
.term pre {
  padding: 18px 20px; font: 13px/2 Consolas, monospace; color: #a9c3e8;
  white-space: pre-wrap; word-break: break-all;
}
.term .c { color: #5d6f92; } .term .g { color: var(--cyan); } .term .ok { color: #4ade80; }

/* 区块 */
.sec { padding: clamp(48px, 8vh, 90px) 0; }
.sec h2 { text-align: center; font-size: clamp(22px, 3.4vw, 32px); font-weight: 800; letter-spacing: 1px; }
.sec h2 .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec .lead { text-align: center; color: var(--sub); margin: 12px auto 44px; max-width: 620px; }

/* 商户跑马灯（内容两份，translateX(-50%) 无缝循环，悬停暂停） */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.mtrack { display: flex; gap: 14px; width: max-content; animation: mscroll 36s linear infinite; }
.marquee:hover .mtrack { animation-play-state: paused; }
@keyframes mscroll { to { transform: translateX(-50%); } }
.mname {
  padding: 8px 22px; border-radius: 999px; font-size: 14px; white-space: nowrap;
  background: var(--card); border: 1px solid var(--line); color: var(--ink);
}
.mname.more { color: var(--cyan); border-color: rgba(56, 225, 255, .4); font-weight: 700; }

/* 功能卡片 */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.fcard {
  position: relative; padding: 24px 22px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line);
  transition: .25s; overflow: hidden;
}
.fcard::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--grad); opacity: 0; transition: .25s;
}
.fcard:hover { transform: translateY(-4px); background: var(--card2); border-color: rgba(120, 170, 255, .35); }
.fcard:hover::before { opacity: 1; }
.fcard .ico {
  width: 42px; height: 42px; border-radius: 10px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  background: linear-gradient(135deg, rgba(56, 225, 255, .14), rgba(157, 107, 255, .14));
  border: 1px solid var(--line); color: var(--cyan);
}
.fcard h3 { font-size: 16.5px; margin-bottom: 8px; }
.fcard p { font-size: 13.5px; color: var(--sub); }

/* 数据条 */
.stats { display: flex; justify-content: center; gap: clamp(24px, 6vw, 80px); flex-wrap: wrap; }
.stats .it { text-align: center; }
.stats .n { font-size: clamp(26px, 4vw, 38px); font-weight: 800; background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats .t { color: var(--sub); font-size: 13px; }

/* 流程 */
.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; counter-reset: step; }
.fstep { position: relative; padding: 22px 20px 20px; border-radius: 14px; background: var(--card);
  border: 1px solid var(--line); counter-increment: step; }
.fstep::before {
  content: "0" counter(step); font: 800 26px Consolas, monospace;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fstep h3 { font-size: 15.5px; margin: 8px 0 6px; }
.fstep p { font-size: 13px; color: var(--sub); }

/* 框架标签 */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
  padding: 10px 22px; border-radius: 999px; font-size: 14px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink);
}
.chip b { color: var(--cyan); font-weight: 600; }

/* 定价卡 */
.pricecard { text-align: center; padding: 34px 26px 30px; display: flex; flex-direction: column; }
.pricecard .pval { margin: 14px 0 6px; }
.pricecard .pval b {
  font-size: 42px; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pricecard .pval span { color: var(--sub); font-size: 14px; }
.pricecard .plist {
  list-style: none; margin: 18px 0 24px; display: grid; gap: 8px;
  font-size: 13.5px; color: var(--sub);
}
.pricecard .plist li::before { content: "✓ "; color: var(--cyan); font-weight: 700; }
.pricecard .plist li.note::before {
  content: ""; display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: #f0b429; margin-right: 6px; vertical-align: 2px;
}
.pricecard .btn { display: inline-block; margin-top: auto; align-self: center; }
.pricecard.hot { border-color: rgba(56, 225, 255, .45); position: relative; }
.pricecard.ai { border-color: rgba(157, 107, 255, .55); position: relative; }
.pricecard.ai .ptag { background: linear-gradient(135deg, #9d6bff, #38e1ff); }
.pricecard .ptag {
  position: absolute; top: 14px; right: 14px; padding: 2px 10px; border-radius: 999px;
  font-size: 11.5px; color: #04101c; font-weight: 700; background: var(--grad);
}

/* CTA 底区 */
.cta-box {
  text-align: center; padding: clamp(40px, 7vh, 70px) 24px; border-radius: 20px;
  background: linear-gradient(160deg, rgba(56, 225, 255, .08), rgba(157, 107, 255, .08));
  border: 1px solid var(--line);
}
.cta-box h2 { font-size: clamp(22px, 3.4vw, 30px); margin-bottom: 12px; }
.cta-box p { color: var(--sub); margin-bottom: 28px; }

/* 演示链接卡 */
.linkcard { display: block; }
.linkcard .go { display: block; margin-top: 10px; color: var(--cyan); font-size: 13px; }

/* 实机演示轮播（GIF 一遍 → 截图各 3s，循环；帧尺寸统一 918×579 不跳动） */
.demowrap { margin-top: 40px; text-align: center; }
.demogif {
  width: min(880px, 100%); aspect-ratio: 918 / 579; object-fit: cover;
  border-radius: 14px; border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5), 0 0 40px rgba(79, 124, 255, .10);
}
/* 轮播箭头：无圆底，只有折角，带阴影保证深色图上可见 */
.carbox { position: relative; display: inline-block; max-width: 100%; }
.carbtn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 56px; height: 80px; cursor: pointer;
  opacity: .5; transition: opacity .2s, transform .2s;
}
.carbtn:hover { opacity: 1; transform: translateY(-50%) scale(1.12); }
.carbtn::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 20px; height: 20px;
  border-left: 5px solid #fff; border-bottom: 5px solid #fff;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .8));
}
.carbtn.left { left: 48px; }
.carbtn.left::before { transform: translate(-35%, -50%) rotate(45deg); }
.carbtn.right { right: 48px; }
.carbtn.right::before { transform: translate(-65%, -50%) rotate(-135deg); }
/* 位置圆点 */
.cardots { margin-top: 12px; display: flex; gap: 7px; justify-content: center; }
.cardots .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255, 255, 255, .16); cursor: pointer; transition: background .2s;
}
.cardots .dot.on { background: var(--cyan); }

/* 联系方式（CTA 内） */
.contact { display: flex; align-items: center; justify-content: center; gap: 36px; margin: 6px 0 34px; flex-wrap: wrap; }
.wxqr { width: 170px; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 8px 30px rgba(0, 0, 0, .45); }
.clist { text-align: left; display: grid; gap: 14px; }
.citem { display: flex; gap: 14px; align-items: baseline; }
.ck { color: var(--sub); font-size: 13.5px; min-width: 70px; }
.cv { font-size: 19px; font-weight: 700; letter-spacing: .5px; }

footer {
  border-top: 1px solid var(--line); margin-top: 60px;
  padding: 26px 0 34px; text-align: center; color: var(--sub); font-size: 13px;
}
footer a { color: var(--sub); text-decoration: none; }
footer a:hover { color: var(--g); }

/* 右下角在线人数徽标（心跳：online.php，12 小时活跃窗口） */
.online-badge {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px; font-size: 13px; color: var(--sub);
  background: rgba(10, 16, 32, .85); border: 1px solid var(--line);
  backdrop-filter: blur(10px); box-shadow: 0 8px 30px rgba(0, 0, 0, .45);
}
.online-badge b { color: var(--cyan); font-size: 15px; }
.online-badge .odot {
  width: 8px; height: 8px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 8px #4ade80; animation: opulse 2s ease-in-out infinite;
}
@keyframes opulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* 滚动淡入 */
.rv { opacity: 0; transform: translateY(24px); transition: .7s cubic-bezier(.2, .7, .3, 1); }
.rv.on { opacity: 1; transform: none; }

/* ================= 文档页 ================= */
.doc { display: flex; gap: 36px; padding: 40px 0 80px; align-items: flex-start; }
.doc nav.side {
  flex: 0 0 210px; position: sticky; top: 76px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  padding: 14px 0; max-height: calc(100vh - 100px); overflow: auto;
}
.doc nav.side a {
  display: block; padding: 9px 18px; font-size: 13.5px; color: var(--sub);
  border-left: 2px solid transparent;
}
.doc nav.side a:hover { color: var(--ink); }
.doc nav.side a.cur { color: var(--cyan); border-left-color: var(--cyan); background: rgba(56, 225, 255, .06); }
.doc main { flex: 1; min-width: 0; }
.doc section { margin-bottom: 54px; scroll-margin-top: 80px; }
.doc h1 { font-size: 30px; margin-bottom: 6px; }
.doc h2.doc-t { font-size: 21px; margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line); }
.doc h2.doc-t .no { color: var(--cyan); font-family: Consolas, monospace; margin-right: 10px; }
.doc h3 { font-size: 16px; margin: 22px 0 8px; color: #cdd9f2; }
.doc p, .doc li { color: var(--sub); font-size: 14px; }
.doc ul, .doc ol { padding-left: 22px; margin: 8px 0; }
.doc li { margin: 4px 0; }
.doc b, .doc strong { color: var(--ink); font-weight: 600; }
.doc code {
  background: rgba(56, 225, 255, .09); color: var(--cyan);
  padding: 1px 7px; border-radius: 5px; font-size: 13px;
}
.doc pre {
  background: rgba(8, 13, 26, .9); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 18px; font: 13px/1.9 Consolas, monospace; color: #a9c3e8;
  overflow-x: auto; margin: 10px 0;
}
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13.5px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.doc th { background: var(--card2); color: var(--ink); font-weight: 600; }
.doc td { color: var(--sub); }
.tip {
  border-left: 3px solid var(--cyan); background: rgba(56, 225, 255, .06);
  padding: 10px 16px; border-radius: 0 8px 8px 0; margin: 12px 0; font-size: 13.5px; color: var(--sub);
}
.warn {
  border-left: 3px solid #f0a03c; background: rgba(240, 160, 60, .07);
  padding: 10px 16px; border-radius: 0 8px 8px 0; margin: 12px 0; font-size: 13.5px; color: var(--sub);
}

@media (max-width: 860px) {
  .doc { flex-direction: column; }
  .doc nav.side { position: static; flex: none; width: 100%; max-height: none; }
  .nav .links { display: none; }
}
