:root {
  --bg: #EEF3F6;
  --bg-deep: #DCE7ED;
  --ink: #10222E;
  --ink-soft: #52697A;
  --ink-faint: #8AA0AE;
  --accent: #1C7293;
  --accent-deep: #0F4C63;
  --accent-soft: #8FD4E8;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.8);
  --shadow-soft: 0 20px 50px -20px rgba(16, 34, 46, 0.25);
  --radius-lg: 22px;
  --radius-md: 14px;
  --font-display: 'Space Grotesk', 'PingFang SC', sans-serif;
  --font-body: 'Inter', 'PingFang SC', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 15% -10%, #F7FBFC 0%, transparent 55%),
    radial-gradient(circle at 100% 0%, #DCEEF3 0%, transparent 45%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ---------------- 导航：本身做成一块悬浮玻璃条，呼应产品形态 ---------------- */

.topnav {
  position: sticky;
  top: 16px;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

.topnav-inner {
  width: 100%;
  max-width: 920px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px 12px 10px 18px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--accent-deep);
  white-space: nowrap;
}

.brand-mark {
  width: 16px;
  height: 16px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  box-shadow: 0 2px 6px rgba(28, 114, 147, 0.4);
}

.nav-links {
  display: flex;
  gap: 22px;
  flex: 1;
  font-size: 14px;
  color: var(--ink-soft);
}

.nav-links a:hover { color: var(--accent-deep); }
.nav-links a.active { color: var(--accent-deep); font-weight: 600; }

.btn-portal {
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--accent-deep);
  color: #fff;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-portal:hover { background: var(--accent); transform: translateY(-1px); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.lang-switch a {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--ink-faint);
}

.lang-switch a.active {
  background: rgba(16, 34, 46, 0.08);
  color: var(--accent-deep);
}

.lang-switch a:hover { color: var(--accent-deep); }

/* ---------------- Hero ---------------- */

.hero {
  max-width: 1080px;
  margin: 64px auto 40px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 14px;
  text-transform: uppercase;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1.14;
  font-weight: 700;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 30px;
}

.hero-actions { display: flex; gap: 14px; }

.btn-primary {
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--accent-deep);
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(15, 76, 99, 0.55); }

.btn-ghost {
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid rgba(16, 34, 46, 0.16);
  color: var(--ink);
  font-weight: 600;
  font-size: 14.5px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(255,255,255,0.5); }

/* ---------------- Hero visual：悬浮面板实物模拟 ---------------- */

.hero-visual {
  position: relative;
  height: 340px;
  border-radius: 28px;
  overflow: hidden;
}

.desk-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, #CFE6EC 0%, #E7F1F4 45%, #F4F9FA 100%);
}
.desk-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.7) 0%, transparent 35%),
    radial-gradient(circle at 80% 75%, rgba(28,114,147,0.14) 0%, transparent 40%);
}

.floe-panel {
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 9px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px) saturate(170%);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: 20px;
  box-shadow: 0 24px 46px -16px rgba(15, 76, 99, 0.4);
}

.floe-btn {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.9);
}

.floe-btn-active {
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  box-shadow: 0 6px 14px -4px rgba(28,114,147,0.55);
}

/* ---------------- Features ---------------- */

.features {
  max-width: 1080px;
  margin: 20px auto 80px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  backdrop-filter: blur(10px);
}

.feature-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  margin: 10px 0 8px;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------------- CTA ---------------- */

.cta {
  max-width: 720px;
  margin: 0 auto 100px;
  padding: 56px 24px;
  text-align: center;
}

.cta h2 {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0 0 10px;
}

.cta p {
  color: var(--ink-soft);
  margin: 0 0 26px;
}

/* ---------------- Footer ---------------- */

footer {
  border-top: 1px solid rgba(16,34,46,0.08);
  padding: 26px 24px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: var(--ink-faint);
}

.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--accent-deep); }

/* ---------------- 通用简单页（服务条款/隐私政策/更新日志） ---------------- */

.doc-page {
  max-width: 720px;
  margin: 60px auto 100px;
  padding: 0 24px;
}

.doc-page h1 {
  font-family: var(--font-display);
  font-size: 30px;
  margin: 0 0 8px;
}

.doc-page .doc-updated {
  color: var(--ink-faint);
  font-size: 13.5px;
  margin: 0 0 32px;
}

.doc-page h2 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 34px 0 10px;
}

.doc-page p, .doc-page li {
  color: var(--ink-soft);
  line-height: 1.75;
  font-size: 14.5px;
}

/* ---------------- 用户中心（登录 / 面板） ---------------- */

.portal-wrap {
  max-width: 480px;
  margin: 70px auto 100px;
  padding: 0 24px;
}

.portal-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.portal-card h1 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 6px;
}

.portal-card .portal-sub {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0 0 26px;
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 7px;
}

.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(16,34,46,0.14);
  background: rgba(255,255,255,0.7);
  font-size: 15px;
  font-family: var(--font-mono);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease;
}
.field input:focus { border-color: var(--accent); }

.field-hint {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-top: 6px;
}

.btn-block {
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-md);
  border: none;
  background: var(--accent-deep);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.btn-block:hover { background: var(--accent); }
.btn-block:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-link {
  background: none;
  border: none;
  color: var(--accent-deep);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-top: 16px;
}
.btn-link:disabled { color: var(--ink-faint); cursor: not-allowed; }

.portal-msg {
  font-size: 13.5px;
  border-radius: var(--radius-md);
  padding: 11px 14px;
  margin-bottom: 18px;
  display: none;
}
.portal-msg.show { display: block; }
.portal-msg.error { background: rgba(214, 69, 69, 0.1); color: #B23A3A; }
.portal-msg.success { background: rgba(28, 114, 147, 0.1); color: var(--accent-deep); }

/* ---------------- 面板：许可证 + 设备列表 ---------------- */

.dashboard-wrap {
  max-width: 760px;
  margin: 50px auto 100px;
  padding: 0 24px;
}

.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.dash-header h1 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 4px;
}

.dash-header .dash-email {
  color: var(--ink-soft);
  font-size: 13.5px;
}

.btn-logout {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  border: 1px solid rgba(16,34,46,0.14);
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
}
.btn-logout:hover { border-color: var(--accent); color: var(--accent-deep); }

.license-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 18px;
  backdrop-filter: blur(12px);
}

.license-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}

.license-key {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.status-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.status-active { background: rgba(28,114,147,0.12); color: var(--accent-deep); }
.status-other  { background: rgba(178,58,58,0.12); color: #B23A3A; }

.license-meta {
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 16px;
}

.device-list { display: flex; flex-direction: column; gap: 10px; }

.device-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.55);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.7);
}

.device-info { font-size: 13.5px; line-height: 1.55; }
.device-name { font-weight: 600; }
.device-sub { color: var(--ink-faint); font-size: 12.5px; }

.btn-unbind {
  font-size: 12.5px;
  font-weight: 600;
  color: #B23A3A;
  background: rgba(178,58,58,0.08);
  border: none;
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-unbind:hover { background: rgba(178,58,58,0.16); }
.btn-unbind:disabled { opacity: 0.5; cursor: not-allowed; }

.no-devices {
  font-size: 13px;
  color: var(--ink-faint);
  padding: 10px 0;
}

.unbind-quota {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 14px;
}

.loading-block {
  text-align: center;
  color: var(--ink-faint);
  padding: 60px 0;
  font-size: 14px;
}

@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { height: 220px; order: -1; }
  .features { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
