:root {
  --hp-primary: #6366f1;
  --hp-primary-dark: #4f46e5;
  --hp-accent: #a855f7;
  --hp-bg: #0b1020;
  --hp-bg-soft: #111827;
  --hp-text: #0f172a;
  --hp-muted: #64748b;
  --hp-border: #e2e8f0;
  --hp-radius: 16px;
  --hp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.hp-body {
  margin: 0;
  font-family: var(--hp-font);
  color: var(--hp-text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* Header */
.hp-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 0;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
.hp-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--hp-border), 0 8px 32px rgba(15, 23, 42, 0.06);
  padding: 10px 0;
}
.hp-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.hp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  transition: color 0.3s;
}
.hp-header.is-scrolled .hp-brand { color: var(--hp-text); }
.hp-brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255,255,255,0.95);
  padding: 4px;
}
.hp-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hp-nav a {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  transition: color 0.3s, background 0.2s;
}
.hp-header.is-scrolled .hp-nav a { color: var(--hp-muted); }
.hp-header.is-scrolled .hp-nav a:hover,
.hp-nav a:hover { color: var(--hp-primary); background: #eef2ff; }
.hp-nav a.hp-nav-active { color: #fff; background: rgba(255,255,255,0.12); }
.hp-header.is-scrolled .hp-nav a.hp-nav-active {
  color: var(--hp-primary);
  background: #eef2ff;
}
.hp-nav-cta {
  margin-left: 8px;
  padding: 9px 18px !important;
  background: linear-gradient(135deg, var(--hp-primary), var(--hp-accent)) !important;
  color: #fff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}
.hp-header.is-scrolled .hp-nav-cta {
  color: #fff !important;
  background: linear-gradient(135deg, var(--hp-primary), var(--hp-accent)) !important;
}
.hp-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}
.hp-header.is-scrolled .hp-menu-btn {
  background: var(--hp-border);
  color: var(--hp-text);
}

/* Hero */
.hp-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  background: var(--hp-bg);
  color: #fff;
}
.hp-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hp-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(99, 102, 241, 0.35), transparent),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(168, 85, 247, 0.25), transparent),
    radial-gradient(ellipse 50% 40% at 60% 80%, rgba(59, 130, 246, 0.2), transparent);
}
.hp-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
}
.hp-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 13px;
  color: #c7d2fe;
  margin-bottom: 20px;
}
.hp-hero-badge i { color: #a5b4fc; }
.hp-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.hp-hero h1 span {
  background: linear-gradient(135deg, #a5b4fc, #c4b5fd, #f0abfc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hp-hero-desc {
  margin: 0 0 28px;
  font-size: 17px;
  color: #94a3b8;
  max-width: 480px;
  line-height: 1.7;
}
.hp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}
.hp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.hp-btn:hover { transform: translateY(-2px); }
.hp-btn-primary {
  background: linear-gradient(135deg, var(--hp-primary), var(--hp-accent));
  color: #fff;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.45);
}
.hp-btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
}
.hp-btn-ghost:hover { background: rgba(255,255,255,0.14); }
.hp-hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.hp-hero-stat strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #e2e8f0;
}
.hp-hero-stat span { font-size: 13px; color: #64748b; }

/* Hero visual card */
.hp-hero-visual {
  position: relative;
}
.hp-mock-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
}
.hp-mock-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hp-mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.hp-mock-dot:nth-child(1) { background: #ef4444; }
.hp-mock-dot:nth-child(2) { background: #f59e0b; }
.hp-mock-dot:nth-child(3) { background: #22c55e; }
.hp-mock-title { margin-left: 8px; font-size: 13px; color: #94a3b8; }
.hp-mock-login h4 {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: #e2e8f0;
}
.hp-mock-btns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.hp-mock-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  color: #cbd5e1;
  transition: background 0.2s, border-color 0.2s;
}
.hp-mock-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
}
.hp-mock-btn img { width: 22px; height: 22px; }
.hp-mock-float {
  position: absolute;
  right: -12px;
  bottom: -16px;
  padding: 12px 16px;
  background: #fff;
  color: var(--hp-text);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hp-mock-float i { color: #22c55e; font-size: 18px; }

/* Sections */
.hp-section {
  padding: 88px 24px;
}
.hp-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.hp-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.hp-section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hp-text);
}
.hp-section-head p {
  margin: 0;
  color: var(--hp-muted);
  font-size: 16px;
}
.hp-section-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--hp-primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

/* Platforms */
.hp-platforms {
  background: #f8fafc;
}
.hp-platform-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.hp-platform-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: #fff;
  border: 1px solid var(--hp-border);
  border-radius: 14px;
  font-weight: 600;
  font-size: 14px;
  color: var(--hp-text);
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.hp-platform-item:hover {
  transform: translateY(-3px);
  border-color: #c7d2fe;
  box-shadow: 0 8px 24px rgba(99,102,241,0.12);
}
.hp-platform-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* About */
.hp-about-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  color: #475569;
  line-height: 1.85;
  text-align: center;
}

/* Features bento */
.hp-features { background: #fff; }
.hp-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.hp-bento-card {
  grid-column: span 6;
  padding: 28px;
  border-radius: var(--hp-radius);
  border: 1px solid var(--hp-border);
  background: #fff;
  transition: box-shadow 0.25s, transform 0.25s;
}
.hp-bento-card:hover {
  box-shadow: 0 16px 48px rgba(99,102,241,0.1);
  transform: translateY(-4px);
}
.hp-bento-card.hp-span-full { grid-column: span 12; }
.hp-bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.hp-bento-icon.purple { background: #ede9fe; color: #7c3aed; }
.hp-bento-icon.blue { background: #dbeafe; color: #2563eb; }
.hp-bento-icon.green { background: #dcfce7; color: #16a34a; }
.hp-bento-icon.amber { background: #fef3c7; color: #d97706; }
.hp-bento-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
}
.hp-bento-card p {
  margin: 0;
  font-size: 14px;
  color: var(--hp-muted);
  line-height: 1.7;
}

/* Steps */
.hp-steps {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.hp-step-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.hp-step-item {
  position: relative;
  text-align: center;
  padding: 24px 16px;
}
.hp-step-num {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--hp-primary), var(--hp-accent));
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(99,102,241,0.35);
}
.hp-step-item h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}
.hp-step-item p {
  margin: 0;
  font-size: 13px;
  color: var(--hp-muted);
}

/* CTA */
.hp-cta {
  padding: 0 24px 88px;
}
.hp-cta-box {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 48px;
  border-radius: 24px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #a855f7 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hp-cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}
.hp-cta-box h2 {
  position: relative;
  margin: 0 0 12px;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
}
.hp-cta-box p {
  position: relative;
  margin: 0 0 28px;
  opacity: 0.9;
  font-size: 16px;
}
.hp-cta-actions {
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.hp-cta-actions .hp-btn-primary { background: #fff; color: var(--hp-primary-dark); box-shadow: 0 8px 32px rgba(0,0,0,0.15); }
.hp-cta-actions .hp-btn-ghost { border-color: rgba(255,255,255,0.5); }

/* Links */
.hp-links {
  padding: 32px 24px;
  background: #f8fafc;
  border-top: 1px solid var(--hp-border);
  font-size: 14px;
  color: var(--hp-muted);
  text-align: center;
}
.hp-links a { color: var(--hp-primary); font-weight: 500; }

/* Footer */
.hp-footer {
  padding: 32px 24px;
  background: var(--hp-bg-soft);
  color: #94a3b8;
  text-align: center;
  font-size: 13px;
}
.hp-footer p { margin: 0; }
.hp-footer a { color: #cbd5e1; }

/* Mobile nav */
.hp-mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(300px, 85vw);
  background: #fff;
  z-index: 1001;
  padding: 80px 24px 24px;
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.3s;
}
.hp-mobile-nav.open { transform: translateX(0); }
.hp-mobile-nav a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--hp-border);
  font-weight: 600;
  color: var(--hp-text);
}
.hp-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.5);
  z-index: 1000;
}
.hp-overlay.show { display: block; }

@media (max-width: 960px) {
  .hp-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hp-hero-desc { margin-left: auto; margin-right: auto; }
  .hp-hero-actions, .hp-hero-stats { justify-content: center; }
  .hp-hero-visual { max-width: 420px; margin: 0 auto; }
  .hp-bento-card { grid-column: span 12; }
  .hp-step-list { grid-template-columns: repeat(2, 1fr); }
  .hp-nav { display: none; }
  .hp-menu-btn { display: flex; align-items: center; justify-content: center; }
  .hp-mobile-nav { display: block; }
}

@media (max-width: 560px) {
  .hp-hero { padding-top: 100px; min-height: auto; padding-bottom: 60px; }
  .hp-section { padding: 60px 20px; }
  .hp-cta-box { padding: 40px 24px; }
  .hp-step-list { grid-template-columns: 1fr; }
  .hp-mock-btns { grid-template-columns: 1fr; }
}

/* ========== 子页面（文档 / 测试） ========== */
body.hp-subpage {
  background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 28%, #fff 55%);
  min-height: 100vh;
}

.hp-header.hp-header-solid {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--hp-border), 0 8px 32px rgba(15, 23, 42, 0.06);
  padding: 10px 0;
}
.hp-header.hp-header-solid .hp-brand { color: var(--hp-text); }
.hp-header.hp-header-solid .hp-nav a { color: var(--hp-muted); }
.hp-header.hp-header-solid .hp-nav a:hover { color: var(--hp-primary); background: #eef2ff; }
.hp-header.hp-header-solid .hp-nav a.hp-nav-active {
  color: var(--hp-primary);
  background: #eef2ff;
}
.hp-header.hp-header-solid .hp-menu-btn {
  background: var(--hp-border);
  color: var(--hp-text);
}

.hp-page-banner {
  margin-top: 64px;
  padding: 48px 24px 40px;
  text-align: center;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 40%, #8b5cf6 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hp-page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hp-page-banner-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.hp-page-banner h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hp-page-banner p {
  margin: 0;
  font-size: 15px;
  opacity: 0.9;
  color: #e0e7ff;
}
.hp-page-banner .hp-banner-links {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.hp-page-banner .hp-banner-links a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
}
.hp-page-banner .hp-banner-links a:hover {
  background: rgba(255,255,255,0.25);
}

/* 文档页 */
.hp-doc-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}
.hp-doc-sidebar {
  position: sticky;
  top: 88px;
  background: #fff;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius);
  padding: 12px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}
.hp-doc-sidebar a {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--hp-muted);
  transition: all 0.15s;
}
.hp-doc-sidebar a:hover {
  color: var(--hp-primary);
  background: #eef2ff;
}
.hp-doc-sidebar a.active {
  color: var(--hp-primary);
  background: #eef2ff;
  font-weight: 600;
}
.hp-doc-content { min-width: 0; }

.hp-doc-card {
  background: #fff;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius);
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  scroll-margin-top: 96px;
}
.hp-doc-card-title {
  margin: 0;
  padding: 18px 22px;
  font-size: 17px;
  font-weight: 700;
  color: var(--hp-text);
  background: #f8fafc;
  border-bottom: 1px solid var(--hp-border);
}
.hp-doc-card-body {
  padding: 22px;
  font-size: 14px;
  color: #475569;
  line-height: 1.75;
}
.hp-doc-card-body p { margin: 0 0 14px; }
.hp-doc-card-body p:last-child { margin-bottom: 0; }
.hp-doc-card-body strong { color: var(--hp-text); }

.hp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--hp-border);
}
.hp-table th {
  background: #f8fafc;
  padding: 11px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--hp-text);
  border-bottom: 1px solid var(--hp-border);
}
.hp-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--hp-border);
  color: #475569;
}
.hp-table tbody tr:last-child td { border-bottom: none; }
.hp-table tbody tr:hover { background: #fafbfc; }

.hp-code {
  display: block;
  padding: 10px 14px;
  margin: 10px 0;
  background: #f1f5f9;
  border: 1px solid var(--hp-border);
  border-radius: 10px;
  font-family: Consolas, Monaco, "Courier New", monospace;
  font-size: 13px;
  color: #334155;
  word-break: break-all;
  line-height: 1.5;
}
.hp-pre {
  display: block;
  padding: 16px 18px;
  margin: 12px 0;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 12px;
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.hp-doc-card-body a {
  color: var(--hp-primary);
  font-weight: 600;
}
.hp-doc-card-body a:hover { text-decoration: none; }

/* 首页：链接悬停不显示下划线 */
body.hp-body a:hover,
body.hp-body a:focus,
body.hp-body a:active {
  text-decoration: none !important;
}

/* 接口测试页 */
.hp-test-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 72px;
  margin-top: -24px;
  position: relative;
  z-index: 2;
}
.hp-test-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: stretch;
}

/* 左侧说明栏 */
.hp-test-side {
  background: linear-gradient(160deg, #1e1b4b 0%, #312e81 45%, #4f46e5 100%);
  border-radius: 20px;
  padding: 28px 24px;
  color: #fff;
  box-shadow: 0 20px 60px rgba(79, 70, 229, 0.35);
  display: flex;
  flex-direction: column;
}
.hp-test-side-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  font-size: 12px;
  font-weight: 600;
  color: #c7d2fe;
  margin-bottom: 20px;
  width: fit-content;
}
.hp-test-side h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
}
.hp-test-side > p {
  margin: 0 0 24px;
  font-size: 13px;
  color: #a5b4fc;
  line-height: 1.65;
}
.hp-test-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}
.hp-test-steps li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hp-test-steps li:last-child { border-bottom: none; }
.hp-test-step-num {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
}
.hp-test-step-text strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}
.hp-test-step-text span {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}
.hp-test-meta {
  padding: 14px 16px;
  background: rgba(0,0,0,0.2);
  border-radius: 12px;
  font-size: 12px;
  color: #c7d2fe;
  margin-bottom: 16px;
}
.hp-test-meta code {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #fff;
  font-weight: 600;
  word-break: break-all;
}
.hp-test-side-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hp-test-side-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #e0e7ff;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s;
}
.hp-test-side-links a:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

/* 右侧操作区 */
.hp-test-panel {
  background: #fff;
  border: 1px solid var(--hp-border);
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  flex-direction: column;
}
.hp-test-panel-head {
  padding: 24px 28px;
  border-bottom: 1px solid var(--hp-border);
  background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
}
.hp-test-panel-head h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--hp-text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hp-test-panel-head h3 i {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--hp-primary), var(--hp-accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.hp-test-panel-head p {
  margin: 0;
  padding-left: 46px;
  font-size: 13px;
  color: var(--hp-muted);
}
.hp-test-panel-body {
  flex: 1;
  padding: 28px;
}

/* 登录成功 */
.hp-test-success {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1px solid #86efac;
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 8px;
}
.hp-test-success-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.hp-test-success-top h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #15803d;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hp-test-success-badge {
  padding: 4px 12px;
  border-radius: 999px;
  background: #22c55e;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.hp-test-result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.hp-test-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hp-test-field-wrap {
  display: flex;
  gap: 8px;
}
.hp-test-field input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #d1fae5;
  border-radius: 10px;
  font-size: 13px;
  background: #fff;
  color: var(--hp-text);
}
.hp-test-copy {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid #d1fae5;
  border-radius: 10px;
  background: #fff;
  color: #16a34a;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s;
}
.hp-test-copy:hover {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}
.hp-test-field.hp-field-full { grid-column: 1 / -1; }

/* 平台选择 */
.hp-test-platforms-title {
  margin: 0 0 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--hp-text);
}
.hp-test-platforms-title span {
  color: var(--hp-muted);
  font-weight: 400;
  font-size: 13px;
}
.hp-test-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.hp-test-platform {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 2px solid var(--hp-border);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.hp-test-platform::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--plat-color, var(--hp-primary));
  opacity: 0;
  transition: opacity 0.2s;
}
.hp-test-platform:hover {
  border-color: var(--plat-color, var(--hp-primary));
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.12);
}
.hp-test-platform:hover::before { opacity: 1; }
.hp-test-platform:active { transform: translateY(-1px); }
.hp-test-platform-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--plat-bg, #eef2ff);
  flex-shrink: 0;
}
.hp-test-platform-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.hp-test-platform-icon i {
  font-size: 24px;
  color: var(--plat-color, var(--hp-primary));
}
.hp-test-platform-info strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--hp-text);
  margin-bottom: 2px;
}
.hp-test-platform-info span {
  font-size: 12px;
  color: var(--hp-muted);
}
.hp-test-platform-arrow {
  margin-left: auto;
  color: #cbd5e1;
  font-size: 14px;
  transition: transform 0.2s, color 0.2s;
}
.hp-test-platform:hover .hp-test-platform-arrow {
  color: var(--plat-color, var(--hp-primary));
  transform: translateX(4px);
}

/* 平台品牌色 */
.hp-test-platform[data-plat="qq"] { --plat-color: #12b7f5; --plat-bg: #e8f7fe; }
.hp-test-platform[data-plat="wx"] { --plat-color: #07c160; --plat-bg: #e8f8ef; }
.hp-test-platform[data-plat="alipay"] { --plat-color: #1677ff; --plat-bg: #e8f1ff; }
.hp-test-platform[data-plat="sina"] { --plat-color: #e6162d; --plat-bg: #fde8eb; }
.hp-test-platform[data-plat="baidu"] { --plat-color: #2932e1; --plat-bg: #ebebfd; }
.hp-test-platform[data-plat="github"] { --plat-color: #24292f; --plat-bg: #f0f0f0; }
.hp-test-platform[data-plat="google"] { --plat-color: #ea4335; --plat-bg: #fdecea; }

.hp-test-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--hp-muted);
}
.hp-test-empty i {
  font-size: 40px;
  color: #cbd5e1;
  margin-bottom: 16px;
}
.hp-test-panel-foot {
  padding: 16px 28px;
  border-top: 1px solid var(--hp-border);
  background: #f8fafc;
  font-size: 12px;
  color: #94a3b8;
  text-align: center;
}

@media (max-width: 900px) {
  .hp-test-shell { grid-template-columns: 1fr; }
  .hp-test-side { order: 2; }
  .hp-test-panel { order: 1; }
  .hp-test-result-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hp-test-main { padding: 0 16px 48px; margin-top: -16px; }
  .hp-test-grid { grid-template-columns: 1fr; }
  .hp-test-panel-body { padding: 20px; }
  .hp-test-panel-head p { padding-left: 0; }
}

@media (max-width: 960px) {
  .hp-doc-wrap { grid-template-columns: 1fr; }
  .hp-doc-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
  }
  .hp-doc-sidebar a {
    padding: 8px 12px;
    font-size: 13px;
  }
}

@media (max-width: 560px) {
  .hp-hero { padding-top: 100px; min-height: auto; padding-bottom: 60px; }
  .hp-section { padding: 60px 20px; }
  .hp-cta-box { padding: 40px 24px; }
  .hp-step-list { grid-template-columns: 1fr; }
  .hp-mock-btns { grid-template-columns: 1fr; }
}
