/* 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);
}

/* ---------- x3：纯静态版补充 ---------- */
.nav-links.nav-static { display: flex; gap: 20px; font-size: 0.92rem; }
.platform-row { display: flex; flex-wrap: wrap; gap: 8px; }
.platform-row span {
  padding: 6px 14px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; color: var(--ink);
  background: var(--panel-strong); border: 1px solid var(--line);
}
.feat-row {
  display: grid; grid-template-columns: 1fr; gap: 18px; align-items: center;
  padding: 28px; margin-bottom: 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line);
}
@media (min-width: 768px) {
  .feat-row { grid-template-columns: 120px 1fr; gap: 32px; padding: 32px 40px; }
  .feat-row.reverse { grid-template-columns: 1fr 120px; }
  .feat-row.reverse .feat-icon { order: 2; }
}
.feat-icon {
  width: 88px; height: 88px; border-radius: 22px; display: flex; align-items: center; justify-content: center;
  color: #fff; background: var(--grad); box-shadow: 0 0 34px rgba(168, 85, 247, 0.4);
}
.feat-icon svg { width: 42px; height: 42px; }
.feat-text h3 { font-size: 1.25rem; margin-bottom: 8px; }
.feat-text p { color: var(--muted); }
.faq p + p { margin-top: 8px; }

/* ---------- x3 v2：内容扩充 ---------- */
.nav-links.nav-static { white-space: nowrap; }
@media (max-width: 767px) {
  .nav-links.nav-static { gap: 14px; font-size: 0.85rem; }
  .nav-links.nav-static .opt { display: none; }
  .brand { font-size: 1.05rem; }
}
.section-head p a, .section-foot a:not(.btn-ghost), .card p a, .faq p a { color: var(--a3); text-decoration: underline; }
.section-foot { margin-top: 26px; color: var(--muted); font-size: 0.92rem; max-width: 760px; }
.section-foot .btn-ghost { display: inline-block; }
.compare-card { max-width: 820px; padding: 10px 26px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; text-align: center; font-size: 0.95rem; }
.compare-table th, .compare-table td { padding: 14px 10px; border-bottom: 1px solid var(--line); }
.compare-table th { color: #fff; font-weight: 700; }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; color: var(--ink); }
.compare-table td { color: var(--muted); }
.compare-table td:nth-child(2), .compare-table td:nth-child(3) { color: var(--a3); font-weight: 600; }
.compare-table tr:last-child td { border-bottom: none; }
.footer-links { margin-bottom: 12px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; }
/* 文档页（使用教程 / 关于我们） */
.doc-wrap { max-width: 860px; margin: 0 auto; }
.doc-wrap .legal-card { max-width: none; margin-bottom: 20px; }
.doc-wrap .legal-card h2:first-child { margin-top: 0; }
.legal-card h3 { font-size: 1.02rem; margin: 18px 0 6px; color: var(--ink); }
.legal-card ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 12px; color: var(--muted); }
.legal-card strong { color: var(--ink); }
.doc-lead { color: var(--muted); margin: 6px 0 26px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.toc a {
  padding: 6px 14px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; color: var(--ink);
  background: var(--panel-strong); border: 1px solid var(--line);
}
.toc a:hover { border-color: rgba(168, 85, 247, 0.6); }
.tip { padding: 12px 16px; border-left: 3px solid var(--a2); background: rgba(139, 92, 246, 0.08); border-radius: 0 8px 8px 0; color: var(--muted); margin: 12px 0; }

/* ---------- 定价页（purchase.html） ---------- */
.plan-tabs {
  display: flex; gap: 6px; width: fit-content; margin: 0 auto 36px; padding: 6px;
  border-radius: 999px; background: var(--panel); border: 1px solid var(--line);
}
.plan-tab { padding: 9px 26px; border-radius: 999px; font-weight: 700; color: var(--muted); transition: all 0.2s ease; }
.plan-tab.active { color: #fff; background: linear-gradient(90deg, var(--a2), var(--a1)); box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35); }
.plan-group { display: none; }
.plan-group.active { display: block; }
.plan-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 18px; max-width: 1120px; margin: 0 auto; }
@media (min-width: 640px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .plan-grid { grid-template-columns: repeat(4, 1fr); } }
.pricing-card {
  position: relative; text-align: center; padding: 34px 22px; border-radius: 24px;
  background: var(--panel); border: 1px solid var(--line); transition: transform 0.25s ease, border-color 0.25s ease;
}
.pricing-card:hover { transform: translateY(-4px); border-color: rgba(168, 85, 247, 0.6); }
.pricing-card.featured { border-color: rgba(139, 92, 246, 0.7); background: linear-gradient(180deg, rgba(139, 92, 246, 0.14), var(--panel)); box-shadow: 0 18px 50px rgba(139, 92, 246, 0.2); }
.pricing-card h3 { font-size: 1.15rem; margin-bottom: 14px; }
.plan-price { font-size: 2.4rem; font-weight: 800; color: #fff; line-height: 1.2; }
.plan-original { color: #64748b; text-decoration: line-through; font-size: 0.9rem; margin-bottom: 8px; }
.plan-savings { color: var(--a3); font-weight: 600; font-size: 0.9rem; min-height: 1.5rem; margin-bottom: 22px; }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: 4px 16px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; color: #fff;
  background: linear-gradient(90deg, var(--a2), var(--a3));
}
#pricing .compare-card { margin: 56px auto 0; padding: 26px 30px; }
#pricing .compare-card h3 { text-align: center; font-size: 1.3rem; margin-bottom: 12px; }

/* ---------- 页脚 v2 ---------- */
.site-footer { text-align: left; padding: 52px 20px 26px; }
.site-footer a { margin: 0; }
.footer-grid { max-width: 1080px; margin: 0 auto; display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; } }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 860px) { .footer-brand { grid-column: auto; } }
.footer-brand p { margin: 12px 0 16px; font-size: 0.88rem; line-height: 1.7; }
.social { display: flex; gap: 10px; }
.social a {
  width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: var(--ink); background: var(--panel-strong); border: 1px solid var(--line); transition: all 0.2s ease;
}
.social a:hover { color: #fff; border-color: rgba(168, 85, 247, 0.7); box-shadow: 0 0 16px rgba(139, 92, 246, 0.35); }
.social svg { width: 18px; height: 18px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 0.9rem; min-width: 0; }
.footer-col h4 { color: #fff; font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.footer-col a { overflow-wrap: anywhere; }
.footer-bottom {
  max-width: 1080px; margin: 36px auto 0; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; font-size: 0.82rem;
}
.footer-legal { display: flex; gap: 18px; }

/* ---------- 语言切换 ---------- */
.lang-switch { display: flex; align-items: center; gap: 2px; margin-left: 18px; padding: 3px; border-radius: 9px; background: var(--panel-strong); border: 1px solid var(--line); font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.lang-switch a { padding: 3px 8px; border-radius: 6px; color: var(--muted); }
.lang-switch a:hover { color: #fff; }
.lang-switch a.on { color: #fff; background: var(--grad); }
@media (max-width: 767px) { .lang-switch { margin-left: auto; margin-right: 12px; } .nav-links.nav-static + .lang-switch { margin-left: 12px; margin-right: 0; } }
.legal-card .legal-date { margin: -14px 0 20px; font-size: 0.85rem; color: var(--muted); }
.buy-note { max-width: 760px; margin: 22px auto 0; text-align: center; font-size: 0.85rem; color: var(--muted); } .buy-note a { color: var(--a3); text-decoration: underline; }
