:root {
  --primary: #2f6bff;
  --primary-dark: #1e54d8;
  --bg: #f0f2f5;
  --sidebar: #001529;
  --sidebar-hover: #0a2540;
  --card: #ffffff;
  --text: #1f2329;
  --muted: #8a919f;
  --border: #e8eaed;
  --success: #18a058;
  --warning: #f0a020;
  --danger: #d03050;
  --orange: #ff7a45;
  --radius: 8px;
  --shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ========== 登录页 ========== */
.login-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(12, 28, 58, .72) 0%, rgba(26, 58, 110, .55) 45%, rgba(20, 80, 120, .48) 100%),
    url('../img/login-bg.jpg') center / cover no-repeat;
}

.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 15% 20%, rgba(47, 107, 255, .25), transparent 60%),
    radial-gradient(ellipse 40% 35% at 85% 75%, rgba(27, 162, 122, .18), transparent 55%);
}

.login-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.login-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
  white-space: nowrap;
  animation: loginFloat 7s ease-in-out infinite;
}

.login-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5ad8a6;
  box-shadow: 0 0 0 3px rgba(90, 216, 166, .25);
}

.login-chip.c1 { top: 12%; left: 8%; animation-delay: 0s; }
.login-chip.c2 { top: 22%; right: 10%; animation-delay: 1.2s; }
.login-chip.c3 { bottom: 18%; left: 12%; animation-delay: 2.1s; }
.login-chip.c4 { bottom: 28%; right: 8%; animation-delay: .6s; }

@keyframes loginFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, .96);
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: 0 20px 56px rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(10px);
}

.login-card h1 {
  font-size: 24px;
  margin-bottom: 6px;
  text-align: center;
}

.login-card .sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 13px;
}

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  color: #4e5969;
  font-size: 13px;
}

.form-control {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  transition: border-color .2s;
  background: #fff;
  font-size: 14px;
}

.form-control:focus { border-color: var(--primary); }
textarea.form-control { height: auto; padding: 10px 12px; min-height: 90px; }
select.form-control { cursor: pointer; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all .2s;
  white-space: nowrap;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-default { background: #fff; border: 1px solid var(--border); color: var(--text); }
.btn-default:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; height: 42px; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12px; }

.alert {
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 13px;
}
.alert-error { background: #fff1f0; color: var(--danger); border: 1px solid #ffccc7; }
.alert-success { background: #f6ffed; color: var(--success); border: 1px solid #b7eb8f; }
.alert-info { background: #e8f3ff; color: var(--primary); border: 1px solid #bad6ff; }

/* ========== 布局 ========== */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 220px;
  background: var(--sidebar);
  color: rgba(255,255,255,.75);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.sidebar .brand {
  padding: 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.sidebar .brand .logo {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .5px;
}

.sidebar .brand .desc {
  font-size: 11px;
  color: rgba(255,255,255,.45);
  margin-top: 4px;
  line-height: 1.4;
}

.sidebar nav {
  padding: 12px 0;
  flex: 1;
  overflow-y: auto;
}

.sidebar .menu-ico {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: .85;
}
.sidebar .menu-ico svg { display: block; }
.sidebar .menu-group-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.sidebar .menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  color: rgba(255,255,255,.7);
  font-size: 14px;
  transition: all .15s;
  border-left: 3px solid transparent;
}

.sidebar .menu-link:hover {
  background: var(--sidebar-hover);
  color: #fff;
}

.sidebar .menu-link.active {
  background: rgba(47, 107, 255, .25);
  color: #fff;
  border-left-color: var(--primary);
}

.sidebar .menu-group { margin-bottom: 2px; }

.sidebar .menu-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 20px;
  color: rgba(255,255,255,.85);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.sidebar .menu-group-title:hover { background: var(--sidebar-hover); }

.sidebar .menu-arrow {
  font-style: normal;
  font-size: 12px;
  color: rgba(255,255,255,.45);
  transition: transform .2s;
}

.sidebar .menu-group.open .menu-arrow { transform: rotate(180deg); }

.sidebar .menu-sub {
  display: none;
  padding: 0 0 6px;
}

.sidebar .menu-group.open .menu-sub { display: block; }

.sidebar .menu-sub .menu-link {
  padding-left: 36px;
  font-size: 13px;
  color: rgba(255,255,255,.62);
}

.sidebar .menu-sub .menu-link.active {
  color: #fff;
}

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.tabs a {
  padding: 10px 16px;
  color: #4e5969;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}
.cat-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.cat-filter a {
  padding: 6px 14px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--border);
  color: #4e5969;
  font-size: 13px;
}
.cat-filter a.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.main-wrap { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.topbar {
  height: 56px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: var(--shadow);
}

.topbar .left { display: flex; align-items: center; gap: 16px; color: var(--muted); }
.topbar .right { display: flex; align-items: center; gap: 16px; }
.topbar .api-key-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f7f8fa;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--muted);
}
.topbar .user-name { font-weight: 500; }

.content { padding: 20px 24px 32px; flex: 1; }

.page-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ========== 卡片 ========== */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-body { padding: 18px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.stat-card .label { color: var(--muted); font-size: 13px; }
.stat-card .value { font-size: 26px; font-weight: 700; margin-top: 6px; }
.stat-card .value.orange { color: var(--orange); }
.stat-card .value.blue { color: var(--primary); }

/* 用户中心信息条 */
.profile-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6aa8ff, #2f6bff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
}

.profile-meta { flex: 1; min-width: 200px; }
.profile-meta h2 { font-size: 18px; margin-bottom: 8px; }
.profile-meta .row-info {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #4e5969;
  font-size: 13px;
}
.profile-meta .coins { color: var(--orange); font-weight: 700; font-size: 18px; }
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  background: #e8f3ff;
  color: var(--primary);
}
.badge-gold { background: #fff7e6; color: #d48806; }
.badge-diamond { background: #f9f0ff; color: #722ed1; }
.badge-success { background: #f6ffed; color: var(--success); }
.badge-danger { background: #fff1f0; color: var(--danger); }
.badge-muted { background: #f5f5f5; color: #8a919f; }

/* 用户中心（参考 99API 布局） */
.uc-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 16px;
  overflow: hidden;
}
.uc-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 700;
  color: #1f2329;
}
.uc-panel-head a { font-size: 13px; font-weight: 500; }
.uc-help { color: var(--primary); }
.uc-panel-body { padding: 16px 20px 20px; }

.uc-basic {
  display: flex;
  gap: 28px;
  padding: 22px 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.uc-basic-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 200px;
}
.uc-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c5d4e8, #9aafc8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
}
.uc-name { font-size: 18px; font-weight: 700; color: #1f2329; margin-bottom: 4px; }
.uc-account { font-size: 12px; color: var(--muted); }
.uc-basic-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px 28px;
  min-width: 260px;
}
.uc-field label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.uc-field-val {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.uc-coins { color: var(--orange); font-size: 22px; font-weight: 800; }
.uc-unit { color: #4e5969; font-size: 13px; margin-right: 4px; }
.uc-key {
  background: #f5f7fa;
  border: 1px solid #e8eaed;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  color: #1f2329;
}

.uc-api-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.uc-api-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.uc-api-item:hover {
  border-color: #bad6ff;
  box-shadow: 0 4px 14px rgba(47, 107, 255, .08);
}
.uc-api-ico {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e8f3ff, #d6e8ff);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}
.uc-api-ico.ico-taobao { background: linear-gradient(135deg, #ffe8d9, #ffd0b0); color: #ff5000; }
.uc-api-ico.ico-tmall { background: linear-gradient(135deg, #ffe4e8, #ffc0c8); color: #e01f19; }
.uc-api-ico.ico-jd { background: linear-gradient(135deg, #ffe8e8, #ffcfcf); color: #e1251b; }
.uc-api-ico.ico-alibaba1688 { background: linear-gradient(135deg, #fff3d9, #ffe3a0); color: #ff6a00; }
.uc-api-info { flex: 1; min-width: 0; }
.uc-api-name { font-size: 15px; font-weight: 700; color: #1f2329; margin-bottom: 6px; }
.uc-api-time { font-size: 12px; color: var(--muted); }
.uc-api-detail {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  padding: 4px 8px;
}
.uc-api-detail:hover { text-decoration: underline; }

/* API 卡片网格 */
.api-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.api-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.api-card:hover {
  border-color: #bad6ff;
  box-shadow: 0 4px 16px rgba(47, 107, 255, .1);
}

.api-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e8f3ff, #d6e8ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}
.api-card .icon.ico-taobao { background: linear-gradient(135deg, #ffe8d9, #ffd0b0); color: #ff5000; }
.api-card .icon.ico-tmall { background: linear-gradient(135deg, #ffe4e8, #ffc0c8); color: #e01f19; }
.api-card .icon.ico-jd { background: linear-gradient(135deg, #ffe8e8, #ffcfcf); color: #e1251b; }
.api-card .icon.ico-alibaba1688 { background: linear-gradient(135deg, #fff3d9, #ffe3a0); color: #ff6a00; }
.api-card .icon.ico-sms_send { background: linear-gradient(135deg, #e8fff3, #c8f0d8); color: #18a058; }
.cat-filter .cat-ico {
  display: inline-flex;
  width: 18px; height: 18px;
  align-items: center; justify-content: center;
  margin-right: 4px;
  font-size: 12px;
  font-weight: 700;
}

.api-card .name { font-size: 16px; font-weight: 600; }
.api-card .meta { color: var(--muted); font-size: 12px; }
.api-card .actions {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
}

/* 表格 */
.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
}
table.data th, table.data td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
table.data th {
  background: #fafbfc;
  color: #4e5969;
  font-weight: 600;
  font-size: 13px;
}
table.data tr:hover td { background: #fafcff; }

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  align-items: center;
}

.toolbar .spacer { flex: 1; }

.pagination {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 16px;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

.form-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 16px;
}
.form-row label { padding-top: 8px; color: #4e5969; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

.price-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.price-item {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  background: #fafbfc;
}
.price-item label { display: block; margin-bottom: 6px; font-weight: 500; }

.empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
}

.login-links {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.login-links a { margin: 0 6px; }

/* ========== 接口控制台（商品详情V1风格） ========== */
.api-radio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 16px;
}
.api-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  color: #4e5969;
  border: 1px solid transparent;
}
.api-radio.on {
  background: #e8f3ff;
  border-color: #bad6ff;
  color: var(--primary);
  font-weight: 600;
}
.api-radio input { margin: 0; }
.console-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.console-meta .price { color: var(--orange); font-size: 18px; }
.console-switch { display: flex; align-items: center; gap: 8px; color: #4e5969; font-size: 13px; }
.switch {
  position: relative;
  width: 48px;
  height: 26px;
  border-radius: 13px;
  border: none;
  background: #c9cdd4;
  cursor: pointer;
  padding: 0;
}
.switch i {
  position: absolute;
  left: 3px; top: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: left .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.switch.on { background: #18a058; }
.switch.on i { left: 25px; }
.console-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.btn-doc {
  background: #fff7e6 !important;
  color: #d48806 !important;
  border-color: #ffd591 !important;
}
.btn-doc.on { background: #f0a020 !important; color: #fff !important; border-color: #f0a020 !important; }
.hour-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.chart-grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .chart-grid-4 { grid-template-columns: 1fr; }
}
.mini-chart {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: #fafbfc;
  min-height: 160px;
}
.mini-chart-title {
  font-size: 13px;
  color: #4e5969;
  margin-bottom: 10px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mini-chart-title strong { color: var(--text); font-size: 16px; }

/* 详情头 */
.detail-hero {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px 20px;
  margin-bottom: 16px;
}
.detail-hero .back-link {
  display: inline-block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}
.detail-hero .back-link:hover { color: var(--primary); }
.detail-hero-main {
  display: grid;
  grid-template-columns: 72px 1fr minmax(180px, 280px);
  gap: 16px;
  align-items: start;
}
.detail-ico {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffe8d9, #ffd0b0);
  color: #ff5000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
}
.detail-info h1 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
}
.detail-sub {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.detail-sub .sep { color: #d0d3d9; }
.detail-intro .label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.detail-intro .text {
  font-size: 13px;
  color: #4e5969;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .detail-hero-main { grid-template-columns: 56px 1fr; }
  .detail-intro { grid-column: 1 / -1; }
}

/* 会员中心 */
.vip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.vip-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .2s, border-color .2s;
}
.vip-card:hover { border-color: #bad6ff; box-shadow: 0 4px 16px rgba(47,107,255,.08); }
.vip-card.current { border-color: #18a058; box-shadow: 0 0 0 1px rgba(24,160,88,.2); }
.vip-card.vip-gold { background: linear-gradient(180deg, #fffaf0 0%, #fff 48%); }
.vip-card.vip-diamond { background: linear-gradient(180deg, #f9f0ff 0%, #fff 48%); }
.vip-card-head { display: flex; justify-content: space-between; align-items: center; }
.vip-price { display: flex; align-items: baseline; gap: 6px; }
.vip-price strong { font-size: 32px; color: var(--orange); line-height: 1; }
.vip-price span { color: var(--muted); font-size: 13px; }
.vip-price em { font-style: normal; color: #8a919f; font-size: 12px; margin-left: 4px; }
.vip-meta { font-size: 13px; color: #4e5969; }
.vip-deal {
  background: #f7f9fc;
  border: 1px solid #e8eef7;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: #1d2129;
  line-height: 1.5;
}
.vip-deal strong { color: var(--orange); }
.vip-save { margin-top: 4px; color: #18a058; font-size: 12px; }
.vip-save.muted { color: var(--muted); }
.vip-save strong { color: #18a058; }
.vip-desc { font-size: 13px; color: var(--muted); min-height: 20px; }
.vip-benefits {
  margin: 0;
  padding: 0 0 0 18px;
  color: #4e5969;
  font-size: 13px;
  line-height: 1.8;
  flex: 1;
}
.vip-actions { margin-top: 8px; }
.btn-block { width: 100%; display: inline-flex; justify-content: center; }
.vip-price-table th { white-space: nowrap; }
.vip-price-table td.price-best { color: #18a058; font-weight: 600; }
.vip-price-table .save-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e8f8ef;
  color: #18a058;
  font-size: 11px;
}

/* 订单查询 / 详情 */
.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  align-items: end;
}
.search-grid label {
  display: block;
  font-size: 12px;
  color: #4e5969;
  margin-bottom: 4px;
}
.search-actions > div { display: flex; gap: 8px; flex-wrap: wrap; }
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 960px) {
  .card-grid-2 { grid-template-columns: 1fr; }
}
.kv-table { width: 100%; border-collapse: collapse; }
.kv-table th, .kv-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}
.kv-table th {
  width: 120px;
  color: #4e5969;
  font-weight: 500;
  background: #fafbfc;
}
.detail-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
}
.detail-ops { display: flex; gap: 8px; flex-wrap: wrap; }
.voucher-img {
  max-width: 100%;
  max-height: 320px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* 充值套餐 / 支付方式 */
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.pkg-card {
  position: relative;
  display: block;
  padding: 16px 14px 14px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  overflow: hidden;
}
.pkg-card:hover { border-color: #bad6ff; }
.pkg-card.on {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, .12);
  background: linear-gradient(180deg, #f5f9ff 0%, #fff 55%);
}
.pkg-card input { position: absolute; opacity: 0; pointer-events: none; }
.pkg-tag {
  font-size: 13px;
  font-weight: 700;
  color: #4e5969;
  margin-bottom: 8px;
}
.pkg-card.on .pkg-tag { color: var(--primary); }
.pkg-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: var(--text);
  margin-bottom: 4px;
}
.pkg-price em { font-style: normal; font-size: 14px; font-weight: 600; }
.pkg-price strong { font-size: 28px; font-weight: 800; line-height: 1; }
.pkg-coins {
  color: var(--orange);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}
.pkg-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  min-height: 34px;
}
.pkg-bonus {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #ff7a45, #ff9f43);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 0 12px 0 10px;
}

.pay-method-title {
  font-size: 14px;
  font-weight: 600;
  margin: 4px 0 12px;
  color: #4e5969;
}
.pay-method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.pay-method-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.pay-method-card:hover { border-color: #bad6ff; }
.pay-method-card.on {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, .12);
  background: #f7faff;
}
.pay-method-card input { position: absolute; opacity: 0; pointer-events: none; }
.pay-method-ico {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: block;
}
.pay-method-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.pay-method-text strong { font-size: 15px; color: var(--text); }
.pay-method-text span { font-size: 12px; color: var(--muted); }
.pay-method-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #d0d3d9;
  flex-shrink: 0;
  position: relative;
}
.pay-method-card.on .pay-method-check {
  border-color: var(--primary);
  background: var(--primary);
}
.pay-method-card.on .pay-method-check::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.pay-submit-row { max-width: 360px; }
.pay-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pay-mini img { width: 16px; height: 16px; }

/* 支付二维码 */
.pay-box { text-align: center; max-width: 560px; margin: 0 auto; }
.pay-qr-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 12px 0 8px;
  padding: 18px 18px 14px;
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(15, 35, 80, .08);
}
.pay-qr-wrap.alipay {
  border-color: #b7e3f8;
  box-shadow: 0 8px 28px rgba(0, 160, 234, .12);
}
.pay-qr-wrap.usdt {
  border-color: #b8e6d5;
  box-shadow: 0 8px 28px rgba(27, 162, 122, .12);
}
.pay-qr-frame {
  position: relative;
  width: 300px;
  height: 300px;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  box-sizing: border-box;
}
.pay-qr-wrap.alipay .pay-qr-frame {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #00A0EA, #67c8f5) border-box;
  border: 2px solid transparent;
}
.pay-qr-wrap.usdt .pay-qr-frame {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #1BA27A, #5fd0a8) border-box;
  border: 2px solid transparent;
}
.pay-qr {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.pay-qr img,
.pay-qr canvas {
  display: block;
  width: 280px !important;
  height: 280px !important;
}
.pay-qr-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}
.pay-qr-logo img {
  width: 22px !important;
  height: 22px !important;
  display: block;
}
.pay-link-box {
  margin: 14px auto 0;
  max-width: 480px;
  text-align: left;
}
.pay-link-box textarea {
  font-size: 12px;
  line-height: 1.45;
  resize: vertical;
  word-break: break-all;
}
.pay-qr-frame-lg {
  width: 340px !important;
  height: 340px !important;
  padding: 10px !important;
}
.pay-qr-lg {
  width: 320px !important;
  height: 320px !important;
}
.pay-qr-lg img,
.pay-qr-lg canvas {
  width: 320px !important;
  height: 320px !important;
}
.pay-qr-tip {
  margin-top: 12px;
  font-size: 13px;
  color: #4e5969;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pay-qr-tip img {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}
.pay-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 16px;
}
.pay-brand.alipay { color: #00A0EA; }
.pay-brand.usdt { color: #1BA27A; }
.pay-brand img { width: 22px; height: 22px; }
.pay-amount { color: var(--orange); font-size: 22px; }
.pay-amount-row {
  margin: 8px 0 4px;
  font-size: 15px;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.pay-amount-row strong { color: var(--orange); font-size: 22px; }
.pay-status {
  margin-top: 16px;
  font-size: 15px;
  color: var(--primary);
}
.mini-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 110px;
}
.mini-chart-bars .bar-wrap {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
}
.mini-chart-bars .bar {
  width: 100%;
  border-radius: 2px 2px 0 0;
  min-height: 2px;
}
.doc-box {
  background: #f7f8fa;
  padding: 16px;
  border-radius: 8px;
  white-space: pre-wrap;
  line-height: 1.7;
  font-size: 13px;
}

/* ========== 用户后台 · 移动端 ========== */
.menu-toggle,
.sidebar-close,
.topbar-title,
.topbar-coin,
.sidebar-mask,
.sidebar-user { display: none; }

.menu-toggle {
  width: 42px;
  height: 42px;
  border: none;
  background: #f2f3f5;
  padding: 11px 10px;
  margin-right: 6px;
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 5px;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #1f2329;
  border-radius: 2px;
}
.menu-toggle:active { background: #e8eaed; }

.topbar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  max-width: 46vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-coin {
  display: none;
  align-items: baseline;
  gap: 2px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff7e6;
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
}
.topbar-coin em {
  font-style: normal;
  font-size: 15px;
  font-weight: 800;
}

.sidebar-close {
  position: absolute;
  right: 12px;
  top: 16px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.sidebar-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

@media (max-width: 900px) {
  .is-user .desk-only { display: none !important; }
  .is-user .menu-toggle { display: flex; }
  .is-user .topbar-title { display: block; }
  .is-user .topbar-coin { display: inline-flex; }
  .is-user .sidebar-close { display: block; }

  .is-user .layout { position: relative; }
  .is-user .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(82vw, 300px);
    z-index: 100;
    transform: translateX(-105%);
    transition: transform .25s ease;
    box-shadow: 8px 0 32px rgba(0,0,0,.18);
  }
  .is-user .sidebar .brand {
    position: relative;
    padding-right: 48px;
  }
  .is-user .sidebar .brand .desc { display: block; }
  .is-user .sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .is-user .sidebar-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2f6bff, #6aa8ff);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
  }
  .is-user .sidebar-user-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }
  .is-user .sidebar-user-meta strong {
    color: #fff;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .is-user .sidebar-user-meta span {
    color: rgba(255,255,255,.55);
    font-size: 12px;
  }
  .is-user .sidebar-mask { display: block; }
  .is-user.sidebar-open .sidebar { transform: translateX(0); }
  .is-user.sidebar-open .sidebar-mask {
    opacity: 1;
    pointer-events: auto;
  }

  .is-user .main-wrap { width: 100%; }
  .is-user .topbar {
    position: sticky;
    top: 0;
    z-index: 70;
    height: 52px;
    padding: 0 12px 0 6px;
  }
  .is-user .topbar .left { gap: 4px; min-width: 0; }
  .is-user .topbar .right { gap: 8px; }
  .is-user .content {
    padding: 14px 12px calc(20px + env(safe-area-inset-bottom, 0px));
  }
  .is-user .page-title {
    font-size: 17px;
    margin-bottom: 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .is-user .page-title .btn { height: 32px; }

  .is-user .uc-basic {
    flex-direction: column;
    gap: 18px;
    padding: 16px;
  }
  .is-user .uc-basic-grid { grid-template-columns: 1fr; }
  .is-user .uc-api-list { grid-template-columns: 1fr; }
  .is-user .uc-panel-head { padding: 12px 14px; }
  .is-user .uc-panel-body { padding: 12px 14px 16px; }

  .is-user .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .is-user .stat-card {
    padding: 14px;
    border-radius: 12px;
  }
  .is-user .stat-card .value { font-size: 22px; }

  .is-user .api-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .is-user .api-card {
    border-radius: 14px;
    padding: 16px;
  }
  .is-user .vip-grid {
    grid-template-columns: 1fr;
  }
  .is-user .card {
    border-radius: 14px;
    overflow: hidden;
  }
  .is-user .card-header,
  .is-user .card-body { padding: 14px; }

  .is-user .form-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .is-user .form-row label { padding-top: 0; }
  .is-user .form-control {
    height: 44px;
    font-size: 16px; /* 避免 iOS 自动放大 */
    border-radius: 10px;
  }
  .is-user textarea.form-control { min-height: 110px; }
  .is-user .btn {
    min-height: 40px;
    border-radius: 10px;
  }
  .is-user .btn-block { height: 46px; }

  .is-user .table-wrap {
    margin: 0 -4px;
    border-radius: 10px;
  }
  .is-user table.data {
    font-size: 12px;
    min-width: 560px;
  }
  .is-user table.data th,
  .is-user table.data td {
    padding: 10px 8px;
  }

  .is-user .console-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .is-user .console-actions .btn { width: 100%; }
  .is-user .api-radio-grid { gap: 8px; }
  .is-user .api-radio {
    width: calc(50% - 4px);
    justify-content: flex-start;
  }
  .is-user .detail-hero { padding: 14px; border-radius: 14px; }
  .is-user .detail-hero-main { grid-template-columns: 56px 1fr; gap: 12px; }
  .is-user .detail-ico { width: 56px; height: 56px; font-size: 22px; }
  .is-user .detail-info h1 { font-size: 18px; }
  .is-user .chart-grid-4 { grid-template-columns: 1fr; }
  .is-user .hour-filters { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .is-user .hour-filters .btn { flex-shrink: 0; }

  .is-user .pkg-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .is-user .pkg-price strong { font-size: 24px; }
  .is-user .pay-method-grid { grid-template-columns: 1fr; }
  .is-user .pay-submit-row { max-width: none; }
  .is-user .pay-box { max-width: 100%; }
  .is-user .pay-qr-wrap { width: 100%; box-sizing: border-box; }
  .is-user .search-grid { grid-template-columns: 1fr 1fr; }
  .is-user .cat-filter { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .is-user .cat-filter a { flex-shrink: 0; }

  .is-user .login-card { padding: 28px 22px; border-radius: 16px; }
}

@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
  .login-ambient { display: none; }
}

@media (max-width: 480px) {
  .is-user .stats-grid { grid-template-columns: 1fr 1fr; }
  .is-user .search-grid { grid-template-columns: 1fr; }
  .is-user .api-radio { width: 100%; }
}

/* ========== 官网首页 ========== */
.site-body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f4f7fb;
  color: #152238;
}
.site-wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(21, 34, 56, .06);
  backdrop-filter: blur(12px);
}
.site-nav-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-brand {
  font-family: Outfit, "Noto Sans SC", sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #0f2748;
  letter-spacing: .02em;
  white-space: nowrap;
}
.site-brand:hover { color: #0f2748; }
.site-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  margin-left: 18px;
}
.site-menu a {
  color: #4a5870;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
}
.site-menu a:hover { color: #1e54d8; background: #eef3ff; }
.site-nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.site-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}
.site-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #152238;
  border-radius: 2px;
}

.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: .2s ease;
}
.site-btn-lg { height: 46px; padding: 0 22px; font-size: 15px; }
.site-btn-primary { background: #1e54d8; color: #fff; }
.site-btn-primary:hover { background: #1644b3; color: #fff; }
.site-btn-ghost { background: transparent; color: #1e54d8; border-color: #c9d8ff; }
.site-btn-ghost:hover { background: #eef3ff; color: #1e54d8; }
.site-btn-light { background: #fff; color: #1e54d8; }
.site-btn-light:hover { background: #f3f7ff; color: #1e54d8; }

.site-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(10, 24, 48, .88) 0%, rgba(18, 52, 110, .72) 48%, rgba(16, 90, 120, .55) 100%),
    url('../img/home-hero.jpg') center / cover no-repeat;
}
.site-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 90px;
  background: linear-gradient(180deg, transparent, #f4f7fb);
  pointer-events: none;
}
.site-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center;
  padding: 72px 0 96px;
}
.site-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  font-size: 12px;
  letter-spacing: .04em;
}
.site-hero h1 {
  font-family: Outfit, "Noto Sans SC", sans-serif;
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: .01em;
}
.site-lead {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .86);
  max-width: 520px;
  margin-bottom: 28px;
}
.site-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.site-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  list-style: none;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
}
.site-hero-points li::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #5ad8a6;
  box-shadow: 0 0 0 3px rgba(90, 216, 166, .2);
}

.site-hero-panel { position: relative; min-height: 280px; }
.site-panel-card {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 18px;
  padding: 22px;
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
  animation: siteRise .7s ease both;
}
.site-panel-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(30, 84, 216, .85);
  font-size: 12px;
  font-family: Consolas, monospace;
}
.site-panel-card code {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: #e8f0ff;
  word-break: break-all;
}
.site-panel-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, .7);
}
.site-panel-meta .ok { color: #7dffc5; font-weight: 600; }
.site-panel-float {
  position: absolute;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  color: #152238;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
  animation: siteFloat 5.5s ease-in-out infinite;
}
.site-panel-float.f1 { top: 8%; right: -4%; animation-delay: 0s; }
.site-panel-float.f2 { bottom: 18%; left: -6%; animation-delay: 1s; color: #c8161d; }
.site-panel-float.f3 { bottom: -2%; right: 10%; animation-delay: 1.8s; color: #0f8a5f; }

@keyframes siteFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes siteRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.site-section { padding: 72px 0; }
.site-section-alt { background: #fff; }
.site-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}
.site-section-head.left { text-align: left; margin-left: 0; }
.site-section-head h2 {
  font-family: Outfit, "Noto Sans SC", sans-serif;
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #0f2748;
}
.site-section-head p { color: #66758d; font-size: 15px; line-height: 1.7; }

.site-platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.site-platform {
  background: #fff;
  border: 1px solid #e5ebf4;
  border-radius: 14px;
  padding: 20px 18px;
  transition: .2s ease;
}
.site-platform:hover {
  border-color: #b7c9f5;
  box-shadow: 0 10px 28px rgba(30, 84, 216, .08);
  transform: translateY(-2px);
}
.site-platform strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
  color: #12243f;
}
.site-platform span { color: #70809a; font-size: 13px; }

.site-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.site-cap {
  background: #f7f9fc;
  border: 1px solid #e8eef7;
  border-radius: 16px;
  padding: 22px 20px;
}
.site-section-alt .site-cap { background: #f7f9fc; }
.site-cap h3 { font-size: 17px; margin: 12px 0 8px; color: #12243f; }
.site-cap p { font-size: 13px; color: #66758d; line-height: 1.7; }
.site-cap-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e54d8, #3d8bfd);
  position: relative;
}
.site-cap-ico::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .85);
}
.ico-collect { background: linear-gradient(135deg, #0f8a5f, #3ecf9a); }
.ico-ship { background: linear-gradient(135deg, #d97706, #f59e0b); }
.ico-doc { background: linear-gradient(135deg, #0e7490, #22b8cf); }
.ico-test { background: linear-gradient(135deg, #b45309, #f59e0b); }
.ico-vip { background: linear-gradient(135deg, #b45309, #ea580c); }

.site-split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 36px;
  align-items: center;
}
.site-checklist {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
.site-checklist li {
  position: relative;
  padding: 12px 14px 12px 40px;
  background: #fff;
  border: 1px solid #e5ebf4;
  border-radius: 12px;
  font-size: 14px;
  color: #31435f;
}
.site-checklist li::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  background: #1e54d8;
  box-shadow: inset 0 0 0 4px #fff, 0 0 0 1px #1e54d8;
}
.site-logistics-card {
  background: #0f2748;
  color: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 20px 48px rgba(15, 39, 72, .22);
}
.site-logistics-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.site-logistics-head span {
  color: #7dffc5;
  font-size: 13px;
  font-weight: 700;
}
.site-track { list-style: none; display: grid; gap: 14px; }
.site-track li {
  padding-left: 22px;
  border-left: 2px solid rgba(255, 255, 255, .18);
  position: relative;
}
.site-track li::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
}
.site-track li.done { border-left-color: #5ad8a6; }
.site-track li.done::before { background: #5ad8a6; }
.site-track b { display: block; font-size: 14px; margin-bottom: 2px; }
.site-track em { font-style: normal; font-size: 12px; color: rgba(255, 255, 255, .65); }

.site-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.site-step {
  background: #f7f9fc;
  border: 1px solid #e8eef7;
  border-radius: 16px;
  padding: 22px 18px;
}
.site-step span {
  display: block;
  font-family: Outfit, sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #1e54d8;
  margin-bottom: 10px;
}
.site-step strong { display: block; margin-bottom: 8px; color: #12243f; }
.site-step p { font-size: 13px; color: #66758d; line-height: 1.6; }

.site-cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 40px;
  border-radius: 20px;
  background:
    linear-gradient(120deg, rgba(15, 39, 72, .92), rgba(30, 84, 216, .88)),
    url('../img/home-hero.jpg') center / cover no-repeat;
  color: #fff;
  box-shadow: 0 20px 48px rgba(30, 84, 216, .2);
}
.site-cta-band h2 {
  font-family: Outfit, "Noto Sans SC", sans-serif;
  font-size: 26px;
  margin-bottom: 8px;
}
.site-cta-band p { color: rgba(255, 255, 255, .82); max-width: 520px; }
.site-cta-band-actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }

.site-footer {
  background: #0b1729;
  color: rgba(255, 255, 255, .72);
  padding: 40px 0 28px;
}
.site-footer-inner {
  display: grid;
  gap: 18px;
}
.site-footer-brand strong {
  display: block;
  color: #fff;
  font-size: 18px;
  margin-bottom: 6px;
  font-family: Outfit, "Noto Sans SC", sans-serif;
}
.site-footer-brand p { font-size: 13px; }
.site-footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer-links a { color: rgba(255, 255, 255, .72); font-size: 13px; }
.site-footer-links a:hover { color: #fff; }
.site-footer-copy {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
}

@media (max-width: 960px) {
  .site-hero-inner,
  .site-split,
  .site-cap-grid,
  .site-platform-grid,
  .site-steps { grid-template-columns: 1fr 1fr; }
  .site-cta-band { flex-direction: column; align-items: flex-start; padding: 28px; }
  .site-hero-panel { display: none; }
  .site-hero-inner { grid-template-columns: 1fr; padding: 56px 0 72px; }
}
/* 对接文档页（参考 99API 测试台风格） */
.site-menu a.on { color: #1e54d8; background: #eef3ff; }
.docs-page { padding: 28px 0 56px; min-height: calc(100vh - 160px); }
.docs-picker-head { margin-bottom: 24px; }
.docs-picker-head h1 {
  font-family: Outfit, "Noto Sans SC", sans-serif;
  font-size: 28px;
  color: #0f2748;
  margin-bottom: 8px;
}
.docs-picker-head p { color: #66758d; font-size: 15px; }
.docs-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.docs-product-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: #fff;
  border: 1px solid #e5ebf4;
  border-radius: 16px;
  color: #152238;
  transition: .18s ease;
}
.docs-product-card:hover {
  border-color: #b7c9f5;
  box-shadow: 0 12px 28px rgba(30, 84, 216, .1);
  transform: translateY(-2px);
  color: #152238;
}
.docs-product-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1e54d8, #3d8bfd);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}
.docs-product-body strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
  color: #0f2748;
}
.docs-product-body span {
  display: block;
  font-size: 13px;
  color: #66758d;
  line-height: 1.55;
  margin-bottom: 8px;
  min-height: 40px;
}
.docs-product-body em {
  font-style: normal;
  font-size: 12px;
  color: #1e54d8;
  font-weight: 600;
}
.docs-product-go {
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
  color: #1e54d8;
}
.docs-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #8a919f;
}
.docs-crumb a { color: #1e54d8; }
.docs-crumb strong { color: #0f2748; }
.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  align-items: start;
}
.docs-side {
  position: sticky;
  top: 80px;
  background: #fff;
  border: 1px solid #e5ebf4;
  border-radius: 14px;
  padding: 14px;
  max-height: calc(100vh - 100px);
  overflow: auto;
}
.docs-side-title {
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 6px;
  color: #0f2748;
}
.docs-side-product {
  font-size: 12px;
  color: #1e54d8;
  font-weight: 600;
  margin-bottom: 12px;
  padding: 0 4px 10px;
  border-bottom: 1px solid #eef2f8;
}
.docs-back-product {
  display: block;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eef2f8;
  font-size: 13px;
  color: #66758d;
}
.docs-back-product:hover { color: #1e54d8; }
.docs-group { margin-bottom: 14px; }
.docs-group-name {
  font-size: 12px;
  color: #8a919f;
  margin-bottom: 6px;
  padding: 0 8px;
}
.docs-link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #31435f;
  margin-bottom: 4px;
}
.docs-link strong { display: block; font-size: 13px; margin-bottom: 2px; }
.docs-link span { font-size: 11px; color: #8a919f; font-family: Consolas, monospace; }
.docs-link:hover { background: #f3f7ff; color: #1e54d8; }
.docs-link.on { background: #eef3ff; color: #1e54d8; }

.docs-console {
  background: transparent;
  padding: 0;
  color: #152238;
  min-width: 0;
  display: grid;
  gap: 16px;
}
.docs-path-bar {
  font-size: 14px;
  color: #4e5969;
  background: #fff;
  border: 1px solid #e5ebf4;
  border-radius: 12px;
  padding: 12px 16px;
}
.docs-path-bar b { color: #1e54d8; }
.docs-form-card,
.docs-detail-card,
.docs-result-box {
  background: #fff;
  border: 1px solid #e5ebf4;
  border-radius: 14px;
  padding: 18px 20px;
}
.docs-console-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #0f2748;
}
.docs-warn { margin-left: 8px; font-weight: 500; font-size: 13px; color: #4e5969; }
.docs-warn b { color: #d03050; margin-right: 2px; }
.docs-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e8eef7;
  margin-bottom: 4px;
}
.docs-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: #66758d;
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
}
.docs-tab.on {
  background: #2f6bff;
  color: #fff;
  font-weight: 700;
}
.docs-pane { display: none; padding-top: 14px; }
.docs-pane.on { display: block; }
.docs-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.docs-row.stack { flex-direction: column; gap: 10px; }
.docs-label {
  flex: 0 0 96px;
  color: #1f2329;
  font-size: 14px;
  font-weight: 600;
  line-height: 36px;
}
.docs-row.stack .docs-label { line-height: 1.4; }
.docs-value { flex: 1; min-width: 0; }
.docs-value code {
  color: #1e54d8;
  font-size: 14px;
  margin-right: 10px;
  font-weight: 600;
}
.docs-muted { color: #8a919f; font-size: 12px; word-break: break-all; }
.docs-select {
  width: min(320px, 100%);
  height: 36px;
  border-radius: 6px;
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #152238;
  padding: 0 10px;
}
.docs-table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid #e5ebf4;
  border-radius: 8px;
}
.docs-param-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
}
.docs-param-table th,
.docs-param-table td {
  border: 1px solid #e8eef7;
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
}
.docs-param-table th {
  background: #f5f8fc;
  color: #4e5969;
  font-weight: 600;
  white-space: nowrap;
}
.docs-param-table td { color: #152238; }
.docs-param-table code { color: #1e54d8; }
.docs-param-table .center { text-align: center; }
.docs-param-table .need { color: #d03050; font-weight: 700; }
.docs-param-table .ptype { color: #2f6bff; font-weight: 600; }
.docs-input {
  width: 100%;
  height: 34px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #fff;
  color: #152238;
  padding: 0 10px;
  outline: none;
}
.docs-input:focus { border-color: #2f6bff; box-shadow: 0 0 0 3px rgba(47, 107, 255, .12); }
.docs-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 4px;
  justify-content: flex-end;
}
.docs-btn-send {
  height: 38px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: #2f6bff;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.docs-btn-send:hover { background: #1e54d8; }
.docs-btn-send:disabled { opacity: .6; cursor: not-allowed; }

.docs-summary {
  background: #f7f9fc;
  border: 1px solid #e5ebf4;
  border-radius: 10px;
  padding: 16px 18px;
  display: grid;
  gap: 12px;
}
.docs-summary-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
}
.docs-summary-row .k { color: #4e5969; font-weight: 600; }
.docs-summary-row .v { color: #152238; word-break: break-all; }
.docs-summary-row .v em { font-style: normal; color: #18a058; margin-left: 6px; font-size: 12px; }
.docs-summary-row .v.link { color: #1e54d8; text-decoration: underline; }

.docs-http {
  margin: 0;
  padding: 16px;
  background: #f7f9fc;
  border: 1px solid #e5ebf4;
  border-radius: 8px;
  color: #1f2329;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
}
.docs-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #0f2748;
  font-weight: 700;
}
.docs-btn-copy {
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: #2f6bff;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}
.docs-result-body {
  margin: 0;
  min-height: 160px;
  max-height: 420px;
  overflow: auto;
  padding: 14px;
  background: #f7f9fc;
  border: 1px solid #e5ebf4;
  border-radius: 8px;
  color: #1f2329;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-all;
}
.docs-result-meta {
  margin-top: 8px;
  font-size: 12px;
  color: #8a919f;
}

@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-side {
    position: static;
    max-height: 280px;
  }
  .docs-row:not(.stack) { flex-direction: column; gap: 6px; }
  .docs-label { flex: none; line-height: 1.4; }
}

@media (max-width: 768px) {
  .site-nav-inner { flex-wrap: wrap; min-height: 56px; }
  .site-nav-toggle { display: inline-flex; }
  .site-menu,
  .site-nav-actions { display: none; width: 100%; }
  .nav-open .site-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    order: 3;
    padding: 4px 0 8px;
    border-top: 1px solid #eef2f8;
  }
  .nav-open .site-nav-actions {
    display: flex;
    order: 4;
    margin: 0 0 10px;
    padding-bottom: 4px;
  }
  .nav-open .site-nav-actions .site-btn { flex: 1; }
  .site-platform-grid,
  .site-cap-grid,
  .site-steps,
  .site-split { grid-template-columns: 1fr; }
  .site-section { padding: 52px 0; }
  .site-section-head h2 { font-size: 24px; }
}

