/* landing/x 共用样式：深色 + 紫色科技感（网格底纹 + 紫色光晕），版式保持信息型 */
:root {
  --bg: #0a0614;
  --bg-soft: #0f0a20;
  --card: #151030;
  --panel: #151030;
  --panel-strong: #1d1640;
  --line: rgba(167, 139, 250, 0.22);
  --ink: #ede9fe;
  --muted: #a9a2c9;
  --a1: #8b5cf6;
  --a2: #a855f7;
  --a3: #c4b5fd;
  --grad: linear-gradient(135deg, #7c3aed 0%, #a855f7 55%, #d946ef 100%);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 60% 40% at 15% 0%, rgba(124, 58, 237, 0.28), transparent 70%),
    radial-gradient(ellipse 50% 35% at 90% 12%, rgba(217, 70, 239, 0.16), transparent 70%),
    linear-gradient(rgba(167, 139, 250, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 139, 250, 0.06) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3 { color: #fff; font-weight: 700; line-height: 1.3; margin: 0; }
p { margin: 0; }

.bg-fx { display: none; }

/* ---------- 按钮 ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 24px; border-radius: 8px;
  color: #fff; font-weight: 600; font-size: 0.95rem;
  background: var(--grad);
  box-shadow: 0 6px 22px rgba(139, 92, 246, 0.35);
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover { filter: brightness(1.12); box-shadow: 0 8px 28px rgba(168, 85, 247, 0.5); }
.btn-ghost {
  padding: 9px 20px; border-radius: 8px;
  border: 1px solid var(--line); color: var(--ink); font-weight: 600;
}
.btn-ghost:hover { background: var(--panel-strong); }

/* ---------- 导航 ---------- */
#main-nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 6, 20, 0.82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: 1080px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 700; color: #fff; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(196, 181, 253, 0.25), 0 0 14px rgba(139, 92, 246, 0.35); }
.nav-links { display: none; align-items: center; gap: 26px; color: var(--muted); font-weight: 500; }
.nav-links a:hover, .nav-links button.link:hover { color: #fff; }
.nav-links button.link { color: var(--muted); }
@media (min-width: 768px) { .nav-links { display: flex; } .nav-burger { display: none !important; } }
.nav-burger { font-size: 1.7rem; color: #fff; cursor: pointer; line-height: 1; }
#menu-toggle:checked ~ #mobile-menu { display: flex; }
#mobile-menu {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  flex-direction: column; align-items: center; gap: 20px; padding: 22px 0;
  background: rgba(10, 6, 20, 0.97); border-bottom: 1px solid var(--line); color: var(--ink);
}
#user-dropdown, #mobile-user-dropdown {
  min-width: 150px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
#user-dropdown button, #mobile-user-dropdown button { color: var(--ink); }
#user-dropdown button:hover, #mobile-user-dropdown button:hover { background: var(--panel-strong); }

/* ---------- 通用版块 ---------- */
.section { padding: 72px 20px; }
.section.soft { background: rgba(15, 10, 32, 0.7); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-inner { max-width: 1080px; margin: 0 auto; }
.section-head { margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
.section-head p { color: var(--muted); margin-top: 8px; max-width: 640px; }

/* ---------- 首屏（左文右表） ---------- */
.hero { padding: 64px 20px 56px; }
.hero-grid { max-width: 1080px; margin: 0 auto; display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
.hero { padding: 72px 20px 48px; }
.hero-grid { gap: 36px 24px; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  padding: 6px 14px; border-radius: 999px; font-size: 0.8rem; color: var(--a3); letter-spacing: 0.02em;
  background: rgba(139, 92, 246, 0.12); border: 1px solid var(--line);
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #d946ef; box-shadow: 0 0 10px #d946ef; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.3rem); letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 18px; color: #fff; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #c084fc 0%, #e879f9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* 右侧示意图：设备 → 加密通道 */
.hero-art { position: relative; width: 100%; max-width: 420px; margin: 0 auto; aspect-ratio: 1; }
.hero-art svg { width: 100%; height: 100%; overflow: visible; display: block; }
.ring { transform-origin: 220px 220px; }
.ring-a { animation: spin 70s linear infinite; }
.ring-b { animation: spin 46s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.art-tag {
  position: absolute; padding: 5px 14px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; color: #f5f3ff;
  background: rgba(21, 16, 48, 0.85); border: 1px solid rgba(196, 181, 253, 0.4);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.35);
}
.tag-1 { top: 16%; right: -2%; }
.tag-2 { bottom: 14%; left: -2%; }
@media (prefers-reduced-motion: reduce) { .ring-a, .ring-b { animation: none; } }

/* 产品信息条 */
.hero-facts {
  grid-column: 1 / -1; margin: 12px 0 0; padding: 0;
  display: grid; gap: 1px; grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--line);
}
@media (min-width: 900px) { .hero-facts { grid-template-columns: repeat(4, 1fr); } }
.hero-facts div { padding: 16px 20px; background: rgba(15, 10, 32, 0.92); }
.hero-facts dt { font-size: 0.75rem; letter-spacing: 0.08em; color: var(--a1); margin: 0 0 4px; }
.hero-facts dd { margin: 0; font-size: 0.92rem; color: var(--ink); }
.hero-sub { color: var(--muted); font-size: 1.05rem; max-width: 560px; margin-bottom: 26px; }
.hero-note { color: var(--muted); font-size: 0.88rem; margin-top: 16px; max-width: 560px; }
.hero-note a { color: var(--a3); text-decoration: underline; }

.dl-row { display: flex; flex-wrap: wrap; gap: 10px; }
.dl-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 8px; font-weight: 600; font-size: 0.92rem; color: var(--ink);
  background: var(--panel-strong); border: 1px solid var(--line);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.dl-btn svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--a3); }
.dl-btn:hover { border-color: var(--a1); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18), 0 8px 24px rgba(139, 92, 246, 0.25); transform: translateY(-1px); }

/* 产品信息表 */
.fact-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.12), rgba(21, 16, 48, 0.9));
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.15);
}
.fact-card h3 { font-size: 1rem; margin-bottom: 10px; }
.fact-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.fact-table th, .fact-table td { text-align: left; padding: 9px 0; border-top: 1px solid var(--line); vertical-align: top; }
.fact-table th { width: 5.5em; color: var(--muted); font-weight: 500; }

/* ---------- 功能三栏 / 步骤 ---------- */
.cols { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .cols-3 { grid-template-columns: repeat(3, 1fr); } .cols-2 { grid-template-columns: repeat(2, 1fr); } .cols-4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { border-color: rgba(168, 85, 247, 0.55); box-shadow: 0 0 28px rgba(139, 92, 246, 0.18); }
.card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.94rem; }
.step-no {
  display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--grad); color: #fff; font-weight: 700; font-size: 0.85rem; margin-bottom: 12px;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.5);
}

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--a3); }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--muted); margin-top: 10px; font-size: 0.95rem; }
.faq a { color: var(--a3); text-decoration: underline; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--line); padding: 32px 20px; text-align: center; color: var(--muted); font-size: 0.9rem; background: rgba(10, 6, 20, 0.7); }
.footer a { margin: 0 12px; }
.footer a:hover { color: #fff; }

/* ---------- 模态框（登录 / 注册 / 确认） ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 40;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(5, 2, 12, 0.75); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.modal-overlay.hidden { display: none; }
.modal-card {
  width: 100%; max-width: 420px; padding: 30px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 0 60px rgba(124, 58, 237, 0.3), 0 24px 60px rgba(0, 0, 0, 0.6);
}
.modal-card h2 { font-size: 1.4rem; margin-bottom: 8px; }
.modal-switch { text-align: right; color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; cursor: pointer; }
.modal-switch:hover { color: var(--a3); }
.modal-input {
  width: 100%; padding: 11px 13px; margin-bottom: 14px; border-radius: 8px; font-size: 1rem; color: var(--ink);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); outline: none;
}
.modal-input::placeholder { color: #7c75a0; }
.modal-input:focus { border-color: var(--a1); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25); }
.modal-row { display: flex; gap: 10px; margin-bottom: 14px; }
.modal-row .modal-input { margin-bottom: 0; }
.modal-send { padding: 0 16px; border-radius: 8px; white-space: nowrap; font-weight: 600; color: #fff; background: var(--grad); }
.modal-send:disabled { opacity: 0.5; cursor: not-allowed; }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 8px; }
.modal-cancel { padding: 10px 20px; border-radius: 8px; color: var(--muted); background: var(--panel-strong); }
.modal-cancel:hover { color: #fff; }
#login-error, #register-error { font-size: 0.9rem; margin-bottom: 12px; }
#register-error:not(.hidden), #login-error:not(.hidden) { color: #fb7185; }
#register-error.success { color: #4ade80; background: rgba(74, 222, 128, 0.1); padding: 6px 10px; border-radius: 8px; }

/* ---------- 法律文本页 ---------- */
.legal-card { max-width: 800px; margin: 0 auto; padding: 36px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.legal-card h1 { font-size: 1.9rem; margin-bottom: 22px; }
.legal-card h2 { font-size: 1.2rem; margin: 26px 0 8px; }
.legal-card p { margin-bottom: 12px; color: var(--muted); }
.legal-card ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 12px; color: var(--muted); }
.legal-card li { margin-bottom: 6px; }
.legal-card a { color: var(--a3); text-decoration: underline; }
@media (max-width: 640px) { .legal-card { padding: 22px 18px; } }

.rise, .rise-2, .rise-3 { animation: none; }

/* x2：首屏卖点列表（渐变方块 + 白色对勾） */
.points { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 8px; max-width: 560px; }
.points li { position: relative; padding-left: 28px; color: var(--ink); font-size: 1rem; }
.points li::before {
  content: ''; position: absolute; left: 0; top: 0.42em; width: 16px; height: 16px; border-radius: 5px;
  background: var(--grad); box-shadow: 0 0 10px rgba(168, 85, 247, 0.55);
}
.points li::after {
  content: ''; position: absolute; left: 5.5px; top: calc(0.42em + 3px); width: 5px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
