/* ============================================================
   鸽子网络验证 · 科幻主题设计系统
   支持深色(默认)/浅色双主题
   ============================================================ */
:root {
  --bg: #070a14;
  --bg-2: #0b1020;
  --panel: rgba(19, 25, 45, .72);
  --panel-solid: #121a30;
  --border: rgba(120, 160, 255, .14);
  --border-strong: rgba(120, 170, 255, .3);
  --text: #e6ecff;
  --muted: #8b98c0;
  --primary: #3d7dff;
  --primary-d: #2f66e0;
  --cyan: #22d3ee;
  --purple: #a855f7;
  --danger: #ff5c72;
  --success: #22e0a1;
  --warn: #ffb020;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(0, 10, 40, .5);
  --glow: 0 0 0 1px rgba(61,125,255,.25), 0 8px 30px rgba(61,125,255,.22);
  --grid-line: rgba(120, 160, 255, .05);
  --topbar-bg: rgba(10, 15, 30, .7);
}

/* 浅色主题 */
html[data-theme="light"] {
  --bg: #eef1f8;
  --bg-2: #e6ebf7;
  --panel: rgba(255, 255, 255, .82);
  --panel-solid: #ffffff;
  --border: rgba(40, 80, 160, .12);
  --border-strong: rgba(40, 90, 200, .28);
  --text: #16203a;
  --muted: #5f6b8a;
  --primary: #2f6bff;
  --primary-d: #1f56e0;
  --cyan: #0891b2;
  --purple: #8b3ddb;
  --shadow: 0 8px 30px rgba(40, 70, 140, .12);
  --glow: 0 0 0 1px rgba(47,107,255,.18), 0 8px 26px rgba(47,107,255,.14);
  --grid-line: rgba(40, 80, 160, .05);
  --topbar-bg: rgba(255, 255, 255, .8);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
/* 科幻背景：网格 + 光晕 */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 500px at 12% -5%, rgba(61,125,255,.16), transparent 60%),
    radial-gradient(800px 500px at 95% 8%, rgba(168,85,247,.14), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(34,211,238,.10), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 40%, transparent 85%);
}

a { color: var(--primary); text-decoration: none; transition: .15s; }
a:hover { text-decoration: none; filter: brightness(1.15); }
h1,h2,h3,h4 { margin: 0 0 .5em; font-weight: 700; letter-spacing: -.2px; }

/* ============ 布局 ============ */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 236px; flex: 0 0 236px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.brand {
  padding: 20px 22px; font-size: 16px; font-weight: 800;
  border-bottom: 1px solid var(--border); letter-spacing: .3px;
  display: flex; flex-direction: column; gap: 2px;
}
.brand .bn { display: flex; align-items: center; gap: 10px; }
.brand .blogo {
  width: 30px; height: 30px; border-radius: 9px; flex: 0 0 30px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; font-weight: 800;
  box-shadow: 0 0 18px rgba(61,125,255,.6);
}
.brand small { font-size: 10.5px; color: var(--muted); font-weight: 500; letter-spacing: 2px; padding-left: 40px; }
.nav { padding: 12px 10px; flex: 1; overflow-y: auto; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 13px; border-radius: 10px;
  color: var(--muted); margin-bottom: 3px; font-size: 13.5px; font-weight: 500;
  position: relative; transition: .18s;
}
.nav a .ic { width: 17px; text-align: center; opacity: .85; font-size: 14px; }
.nav a:hover { background: rgba(120,160,255,.08); color: var(--text); }
.nav a.active {
  background: linear-gradient(120deg, rgba(61,125,255,.22), rgba(34,211,238,.12));
  color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong);
}
.nav a.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; border-radius: 3px;
  background: linear-gradient(var(--primary), var(--cyan));
  box-shadow: 0 0 10px var(--primary);
}
.nav .group-title {
  font-size: 10.5px; color: var(--muted); text-transform: uppercase;
  padding: 16px 13px 7px; letter-spacing: 1.5px; opacity: .7;
}
.sidebar-foot { padding: 14px 18px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 62px; background: var(--topbar-bg); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 24px; gap: 16px;
  position: sticky; top: 0; z-index: 40;
}
.topbar .page-title { font-weight: 700; font-size: 16px; }
.topbar .spacer { flex: 1; }
.topbar .user { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.topbar .avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 700;
}
.content { padding: 26px; flex: 1; }

/* 主题切换按钮 */
.theme-btn {
  width: 36px; height: 36px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border); background: rgba(120,160,255,.06);
  color: var(--text); font-size: 16px; display: inline-flex;
  align-items: center; justify-content: center; transition: .2s;
}
.theme-btn:hover { border-color: var(--border-strong); background: rgba(120,160,255,.14); }

/* ============ 卡片 ============ */
.card {
  background: var(--panel); backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px;
  overflow: hidden;
}
.card-head {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.card-head h3 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.card-head h3::before {
  content: ''; width: 4px; height: 15px; border-radius: 3px;
  background: linear-gradient(var(--primary), var(--cyan));
  box-shadow: 0 0 8px var(--primary);
}
.card-head .spacer { flex: 1; }
.card-body { padding: 20px; }

/* 统计卡 */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat {
  background: var(--panel); backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: .25s;
}
.stat::after {
  content: ''; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px;
  border-radius: 50%; background: radial-gradient(circle, rgba(61,125,255,.22), transparent 70%);
}
.stat:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--glow); }
.stat .label { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 7px; }
.stat .label .si { font-size: 14px; }
.stat .value { font-size: 30px; font-weight: 800; margin-top: 8px; letter-spacing: -1px;
  background: linear-gradient(120deg, var(--text), var(--primary));
  -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 10px; border: 1px solid var(--border);
  background: rgba(120,160,255,.06); color: var(--text); cursor: pointer; font-size: 13.5px;
  transition: .18s; line-height: 1.2; font-family: inherit; font-weight: 500;
}
.btn:hover { border-color: var(--border-strong); background: rgba(120,160,255,.14); }
.btn-primary {
  background: linear-gradient(120deg, var(--primary), var(--primary-d));
  border-color: transparent; color: #fff;
  box-shadow: 0 6px 20px rgba(61,125,255,.35);
}
.btn-primary:hover { filter: brightness(1.1); box-shadow: 0 8px 26px rgba(61,125,255,.5); }
.btn-danger { background: linear-gradient(120deg, #ff5c72, #e0394f); border-color: transparent; color: #fff; }
.btn-danger:hover { filter: brightness(1.08); }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ============ 表单 ============ */
.form-row { margin-bottom: 15px; }
.form-row label { display: block; font-size: 13px; margin-bottom: 6px; color: var(--muted); font-weight: 500; }
.input, select, textarea {
  width: 100%; padding: 10px 13px; border: 1px solid var(--border);
  border-radius: 10px; font-size: 13.5px; background: rgba(10,15,30,.4); color: var(--text);
  font-family: inherit; outline: none; transition: .18s;
}
html[data-theme="light"] .input, html[data-theme="light"] select, html[data-theme="light"] textarea {
  background: rgba(255,255,255,.9);
}
.input:focus, select:focus, textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(61,125,255,.2);
}
select option { background: var(--panel-solid); color: var(--text); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
@media (max-width: 760px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

/* ============ 表格 ============ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 11px 13px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { background: rgba(120,160,255,.05); color: var(--muted); font-weight: 600; font-size: 12px; letter-spacing: .3px; }
tr { transition: .12s; }
tbody tr:hover td { background: rgba(120,160,255,.06); }
td.wrap, th.wrap { white-space: normal; }
.mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 12.5px; }

/* 卡密代码样式 */
.code-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: ui-monospace, Consolas, monospace; font-size: 12.5px;
  background: rgba(61,125,255,.1); border: 1px solid rgba(61,125,255,.25);
  padding: 3px 9px; border-radius: 7px; cursor: pointer; transition: .15s;
}
.code-chip:hover { border-color: var(--primary); background: rgba(61,125,255,.2); }
.code-chip .cp { opacity: .55; font-size: 11px; }

/* ============ 徽章 ============ */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11.5px; line-height: 1.6; font-weight: 600; }
.badge-green { background: rgba(34,224,161,.16); color: var(--success); box-shadow: inset 0 0 0 1px rgba(34,224,161,.3); }
.badge-gray { background: rgba(139,152,192,.15); color: var(--muted); box-shadow: inset 0 0 0 1px rgba(139,152,192,.25); }
.badge-red { background: rgba(255,92,114,.16); color: var(--danger); box-shadow: inset 0 0 0 1px rgba(255,92,114,.3); }
.badge-orange { background: rgba(255,176,32,.16); color: var(--warn); box-shadow: inset 0 0 0 1px rgba(255,176,32,.3); }
.badge-blue { background: rgba(61,125,255,.16); color: #7aa2ff; box-shadow: inset 0 0 0 1px rgba(61,125,255,.3); }

/* ============ 提示 ============ */
.alert { padding: 12px 16px; border-radius: 11px; margin-bottom: 18px; font-size: 13.5px; border: 1px solid transparent; }
.alert-success { background: rgba(34,224,161,.12); color: var(--success); border-color: rgba(34,224,161,.3); }
.alert-error { background: rgba(255,92,114,.12); color: var(--danger); border-color: rgba(255,92,114,.3); }
.alert-info { background: rgba(61,125,255,.12); color: #7aa2ff; border-color: rgba(61,125,255,.3); }

/* ============ 分页 ============ */
.pager { display: flex; gap: 6px; padding: 16px 20px; align-items: center; flex-wrap: wrap; }
.pager a, .pager span {
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 9px;
  font-size: 13px; color: var(--text); transition: .15s;
}
.pager a:hover { border-color: var(--primary); background: rgba(61,125,255,.12); }
.pager .cur { background: linear-gradient(120deg, var(--primary), var(--primary-d)); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(61,125,255,.4); }
.pager .info { border: none; color: var(--muted); margin-left: auto; }

.empty { text-align: center; padding: 44px 20px; color: var(--muted); }

/* ============ 模态 ============ */
.modal-mask {
  position: fixed; inset: 0; background: rgba(4,8,20,.62);
  backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px;
  animation: fadeIn .2s ease;
}
.modal-mask.open { display: flex; }
.modal {
  background: var(--panel-solid); border: 1px solid var(--border-strong); border-radius: 18px;
  width: 100%; max-width: 540px; max-height: 90vh; overflow: auto;
  box-shadow: 0 30px 80px rgba(0,10,40,.6), var(--glow);
  animation: popIn .25s cubic-bezier(.2,.9,.3,1.2);
}
.modal-head { padding: 18px 22px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 15px; }
.modal-body { padding: 22px; }
.modal-foot { padding: 16px 22px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }

/* ============ Toast 通知 ============ */
#toast-box { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  min-width: 240px; max-width: 360px; padding: 13px 16px; border-radius: 12px;
  background: var(--panel-solid); border: 1px solid var(--border-strong);
  box-shadow: 0 12px 40px rgba(0,10,40,.5); color: var(--text); font-size: 13.5px;
  display: flex; align-items: center; gap: 10px;
  animation: toastIn .3s cubic-bezier(.2,.9,.3,1.2);
}
.toast.ok { border-color: rgba(34,224,161,.5); }
.toast.err { border-color: rgba(255,92,114,.5); }
.toast .ti { font-size: 17px; }
.toast.hide { animation: toastOut .25s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }

/* ============ 登录页 ============ */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
  position: relative;
}
.auth-card {
  width: 100%; max-width: 400px; background: var(--panel); backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong); border-radius: 22px;
  box-shadow: var(--shadow), var(--glow); padding: 38px 32px;
  position: relative; z-index: 2;
  animation: popIn .4s cubic-bezier(.2,.9,.3,1.2);
}
.auth-card .logo { text-align: center; margin-bottom: 26px; }
.auth-card .logo .mk {
  width: 58px; height: 58px; border-radius: 16px; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; color: #fff;
  box-shadow: 0 0 34px rgba(61,125,255,.6);
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.auth-card .logo h1 { font-size: 21px; margin: 0; }
.auth-card .logo p { color: var(--muted); font-size: 13px; margin: 7px 0 0; }

/* ============ 营销页 ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--topbar-bg); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; gap: 28px; }
.site-header .logo { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 10px; color: var(--text); }
.site-header .logo .dot {
  width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--cyan)); color: #fff; font-size: 15px; font-weight: 800;
  box-shadow: 0 0 18px rgba(61,125,255,.6);
}
.site-header nav { display: flex; gap: 24px; flex: 1; }
.site-header nav a { color: var(--muted); font-size: 14px; }
.site-header nav a:hover { color: var(--text); }
.site-header .actions { display: flex; gap: 10px; align-items: center; }

.site-footer { border-top: 1px solid var(--border); margin-top: 90px; background: var(--panel); backdrop-filter: blur(10px); }
.site-footer .inner { max-width: 1160px; margin: 0 auto; padding: 34px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.site-footer a { color: var(--muted); }

/* Hero */
.hero2 { max-width: 1160px; margin: 0 auto; padding: 90px 24px 64px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero2 .pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(61,125,255,.14); color: #7aa2ff; font-size: 12.5px; font-weight: 600;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 20px; border: 1px solid rgba(61,125,255,.3);
}
.hero2 .pill .dotp { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.hero2 h1 { font-size: 46px; line-height: 1.15; letter-spacing: -1.5px; margin-bottom: 18px; font-weight: 800; }
.hero2 h1 .grad { background: linear-gradient(120deg, var(--primary), var(--cyan) 55%, var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero2 p.lead { color: var(--muted); font-size: 16.5px; line-height: 1.8; margin-bottom: 30px; }
.hero2 .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero2 .cta .btn { padding: 12px 24px; font-size: 15px; }

.codewin { background: rgba(8,12,24,.92); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,10,40,.6), var(--glow); border: 1px solid var(--border-strong); }
.codewin .bar { height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 15px; background: rgba(20,28,48,.9); border-bottom: 1px solid rgba(120,160,255,.1); }
.codewin .bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.codewin .bar i:nth-child(1) { background: #ff5f57; }
.codewin .bar i:nth-child(2) { background: #febc2e; }
.codewin .bar i:nth-child(3) { background: #28c840; }
.codewin .bar span { margin-left: auto; color: #6b7aa3; font-size: 12px; font-family: ui-monospace, Consolas, monospace; }
.codewin pre { margin: 0; padding: 20px 22px; color: #c8d3ec; font-size: 12.8px; line-height: 1.9; font-family: ui-monospace, Consolas, monospace; overflow-x: auto; }
.codewin .k { color: #ff7b9c; } .codewin .s { color: #9ae27a; } .codewin .c { color: #5a6789; }
.codewin .f { color: #22d3ee; } .codewin .n { color: #ffc66d; }

.section { max-width: 1160px; margin: 0 auto; padding: 64px 24px; }
.section-head { text-align: center; margin-bottom: 46px; }
.section-head h2 { font-size: 32px; letter-spacing: -.6px; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 15.5px; max-width: 560px; margin: 0 auto; }
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px,1fr)); gap: 20px; }
.fcard { background: var(--panel); backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: 16px; padding: 28px 26px; transition: .25s; position: relative; overflow: hidden; }
.fcard::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--primary), transparent); opacity: 0; transition: .3s; }
.fcard:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--glow); }
.fcard:hover::before { opacity: 1; }
.fcard .ic { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(61,125,255,.22), rgba(34,211,238,.14)); color: var(--cyan); font-size: 22px; margin-bottom: 18px; border: 1px solid var(--border-strong); }
.fcard h3 { font-size: 16.5px; margin-bottom: 9px; }
.fcard p { color: var(--muted); font-size: 14px; line-height: 1.75; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px 24px 24px; background: var(--panel); backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: 16px; transition: .25s; }
.step:hover { border-color: var(--border-strong); box-shadow: var(--glow); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -17px; left: 24px; width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, var(--primary), var(--cyan)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; box-shadow: 0 6px 20px rgba(61,125,255,.5); }
.step h4 { margin: 12px 0 9px; font-size: 15.5px; }
.step p { color: var(--muted); font-size: 13.5px; line-height: 1.75; margin: 0; }

.cta-band { max-width: 1160px; margin: 40px auto 0; padding: 0 24px; }
.cta-band .inner { background: linear-gradient(120deg, rgba(61,125,255,.9), rgba(168,85,247,.85) 70%, rgba(34,211,238,.8)); border-radius: 22px; padding: 52px 40px; text-align: center; color: #fff; box-shadow: 0 26px 60px rgba(61,125,255,.35); position: relative; overflow: hidden; }
.cta-band .inner::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 30px 30px; }
.cta-band h2 { font-size: 30px; margin-bottom: 12px; position: relative; }
.cta-band p { opacity: .92; margin-bottom: 28px; font-size: 15.5px; position: relative; }
.cta-band .btn { background: #fff; color: var(--primary); border: none; padding: 13px 28px; font-size: 15px; font-weight: 700; position: relative; }
.cta-band .btn:hover { background: #f0f4ff; }
.cta-band .btn.ghost { background: rgba(255,255,255,.16); color: #fff; }
.cta-band .btn.ghost:hover { background: rgba(255,255,255,.26); }

/* ============ 文档页 ============ */
.doc-wrap { max-width: 920px; margin: 0 auto; padding: 52px 24px 64px; }
.doc-wrap > h1 { font-size: 32px; margin-bottom: 8px; }
.doc-wrap > .sub { color: var(--muted); margin-bottom: 38px; font-size: 15px; }
.doc-wrap h2 { font-size: 22px; margin: 44px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.doc-wrap h2::before { content: ''; width: 4px; height: 20px; border-radius: 3px; background: linear-gradient(var(--primary), var(--cyan)); box-shadow: 0 0 8px var(--primary); }
.doc-wrap h3 { font-size: 16.5px; margin: 28px 0 10px; }
.doc-wrap p, .doc-wrap li { color: var(--text); opacity: .88; font-size: 14.5px; line-height: 1.85; }
.doc-wrap ul { padding-left: 20px; }
.doc-wrap code.inline { background: rgba(61,125,255,.14); padding: 2px 7px; border-radius: 6px; font-family: ui-monospace, Consolas, monospace; font-size: 12.8px; color: #7aa2ff; border: 1px solid rgba(61,125,255,.2); }
.doc-wrap pre.code { background: rgba(8,12,24,.92); color: #c8d3ec; border-radius: 13px; padding: 20px 22px; overflow-x: auto; font-size: 12.8px; line-height: 1.9; font-family: ui-monospace, Consolas, monospace; margin: 14px 0; border: 1px solid var(--border-strong); }
.doc-wrap table { margin: 14px 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.doc-anchor { position: sticky; top: 68px; background: var(--topbar-bg); backdrop-filter: blur(16px); z-index: 5; border-bottom: 1px solid var(--border); }
.doc-anchor .inner { max-width: 920px; margin: 0 auto; padding: 13px 24px; display: flex; gap: 22px; flex-wrap: wrap; font-size: 13.5px; }
.doc-anchor a { color: var(--muted); }
.doc-anchor a:hover { color: var(--primary); }
.badge-inline { display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 700; }
.method-post { background: rgba(61,125,255,.18); color: #7aa2ff; }
.method-get { background: rgba(34,224,161,.18); color: var(--success); }

.text-muted { color: var(--muted); }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.flex { display: flex; gap: 10px; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hidden { display: none !important; }

/* 复制按钮小提示 */
.copy-tip { position: fixed; z-index: 9998; background: var(--panel-solid); border: 1px solid var(--border-strong); color: var(--text); font-size: 12px; padding: 4px 10px; border-radius: 8px; pointer-events: none; box-shadow: var(--shadow); }

@media (max-width: 900px) {
  .hero2 { grid-template-columns: 1fr; gap: 40px; padding-top: 54px; }
  .hero2 h1 { font-size: 34px; }
  .site-header nav { display: none; }
}
