/* ==========================================================================
   EscudoUSDT — 站点样式
   视觉：深海军蓝星空 + 青绿渐变 + 玻璃拟态卡片
   兼容：iOS 11+（安全区、-webkit 前缀、16px 输入框防缩放、无 :has 依赖）
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
  --bg-0: #040a18;
  --bg-1: #07142b;
  --bg-2: #0b1e3c;
  --navy: #061027;
  --surface: rgba(17, 40, 74, 0.6);
  --surface-2: rgba(10, 25, 50, 0.72);
  --line: rgba(120, 200, 255, 0.14);
  --line-strong: rgba(120, 210, 255, 0.28);
  --text: #eaf4ff;
  --muted: #9db4ce;
  --cyan: #38e0f2;
  --mint: #39f0c0;
  --green: #2bd9a5;
  --blue: #3c9bff;
  --violet: #8b7cff;
  --amber: #f5b84b;
  --danger: #ff7a7a;
  --on-accent: #04121f;
  --grad-cta: linear-gradient(135deg, #48f0c0 0%, #38d6f0 100%);
  --grad-shield: linear-gradient(140deg, #5bf0c8 0%, #2dcfc0 55%, #2e8ff0 100%);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --container: 1120px;
  --header-h: 74px;
  --font-display: "Bricolage Grotesque", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --shadow-lg: 0 30px 70px -40px rgba(0, 0, 0, 0.85);
  --shadow-card: 0 18px 40px -24px rgba(0, 0, 0, 0.8);
}

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--bg-0);
  background-image: radial-gradient(90% 60% at 78% 0%, #0d2a52 0%, rgba(4, 10, 24, 0) 60%),
    linear-gradient(180deg, #061226 0%, var(--bg-0) 55%);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-loading {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

a {
  color: var(--cyan);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

button,
input,
label {
  -webkit-tap-highlight-color: transparent;
}

a:hover {
  color: #7ef3ff;
}

button,
.btn {
  touch-action: manipulation;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 8px;
}

::selection {
  background: rgba(56, 224, 242, 0.3);
  color: #fff;
}

.container {
  width: calc(100% - 40px);
  width: min(100% - 40px, var(--container));
  margin-left: auto;
  margin-right: auto;
}

section[id],
header[id] {
  scroll-margin-top: calc(var(--header-h) + 14px);
}

/* ---------- 复用元素 ---------- */
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 14px;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 22px -14px rgba(0, 0, 0, 0.9);
}

.tile .icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.9;
}

.tile-green {
  background: linear-gradient(135deg, #3bf0b0, #12b98c);
}

.tile-blue {
  background: linear-gradient(135deg, #59c4ff, #2c74ff);
}

.tile-violet {
  background: linear-gradient(135deg, #a493ff, #6c5cff);
}

.tile-amber {
  background: linear-gradient(135deg, #ffd178, #f09b2e);
}

.tile-red {
  background: linear-gradient(135deg, #ff9595, #f05353);
}

.grad-text {
  color: var(--cyan);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad-text {
    background-image: linear-gradient(100deg, #48f0c0 0%, #38d6f0 60%, #4aa8ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.section-kicker {
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- 跳过导航 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--grad-cta);
  color: var(--on-accent);
  font-weight: 700;
  -webkit-transform: translateY(-180%);
  transform: translateY(-180%);
  transition: transform 0.25s ease;
}

.skip-link:focus {
  -webkit-transform: translateY(0);
  transform: translateY(0);
  color: var(--on-accent);
}

/* ---------- 加载层 ---------- */
.page-loader {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(60% 55% at 50% 40%, #0f2f55 0%, var(--bg-0) 72%);
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}

.page-loader.is-done {
  opacity: 0;
  visibility: hidden;
}

.page-loader-inner {
  width: 100%;
  padding: 0 24px;
  text-align: center;
}

.page-loader-mark {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border: 3px solid rgba(56, 224, 242, 0.16);
  border-top-color: var(--mint);
  border-right-color: var(--cyan);
  border-radius: 18px;
  -webkit-animation: loader-spin 1s linear infinite;
  animation: loader-spin 1s linear infinite;
}

.page-loader-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
}

.page-loader-brand span {
  color: var(--cyan);
}

.page-loader-text {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
}

.page-loader-bar {
  width: min(240px, 62vw);
  height: 6px;
  margin: 16px auto 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.page-loader-bar-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--grad-cta);
  transition: width 0.12s linear;
}

.page-loader-percent {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

@-webkit-keyframes loader-spin {
  to {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
}

.btn .icon {
  width: 18px;
  height: 18px;
  margin-left: 8px;
  stroke-width: 2.1;
}

.btn-primary {
  background-image: var(--grad-cta);
  color: var(--on-accent);
  box-shadow: 0 16px 34px -18px rgba(56, 214, 240, 0.9);
}

.btn-primary:hover {
  color: var(--on-accent);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(125, 200, 255, 0.06);
  color: var(--text);
}

.btn-sm {
  padding: 11px 20px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 18px 34px;
  font-size: 1rem;
}

.btn-lg .icon {
  width: 20px;
  height: 20px;
}

/* ---------- 头部导航 ---------- */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: constant(safe-area-inset-top);
  padding-top: env(safe-area-inset-top);
  background: rgba(5, 13, 28, 0.82);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--text);
}

.brand-svg {
  width: 32px;
  height: 36px;
  margin-right: 10px;
  flex: 0 0 auto;
}

.brand-accent {
  color: var(--cyan);
}

.nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 22px;
}

.nav a {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--cyan);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: 10px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(125, 200, 255, 0.06);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px 0;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  -webkit-transform: translateY(4px) rotate(45deg);
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  -webkit-transform: translateY(-4px) rotate(-45deg);
  transform: translateY(-4px) rotate(-45deg);
}

.menu-mobile {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 14px 20px 22px;
  padding-bottom: calc(22px + constant(safe-area-inset-bottom));
  padding-bottom: calc(22px + env(safe-area-inset-bottom));
  border-bottom: 1px solid var(--line);
  background: #081730;
  box-shadow: 0 26px 50px -30px #000;
}

.menu-mobile a {
  display: flex;
  align-items: center;
  padding: 13px 8px;
  border-radius: 12px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
}

.menu-mobile a .icon {
  width: 19px;
  height: 19px;
  margin-right: 12px;
  color: var(--cyan);
}

.menu-mobile a:hover {
  background: rgba(125, 200, 255, 0.08);
  color: var(--cyan);
}

.menu-mobile .btn {
  margin-top: 12px;
  color: var(--on-accent);
}

.menu-mobile .btn .icon {
  color: var(--on-accent);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 52px 0 64px;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(10px);
}

.glow-a {
  top: -260px;
  right: -160px;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(46, 230, 208, 0.22), rgba(10, 30, 60, 0) 66%);
}

.glow-b {
  bottom: -320px;
  left: -220px;
  width: 760px;
  height: 760px;
  background: radial-gradient(circle, rgba(60, 155, 255, 0.18), rgba(10, 30, 60, 0) 68%);
}

.hero-grid {
  position: absolute;
  top: -10%;
  right: -10%;
  bottom: -10%;
  left: -10%;
  background-image: linear-gradient(to right, rgba(90, 190, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(90, 190, 255, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(65% 65% at 60% 40%, #000 0%, transparent 78%);
  mask-image: radial-gradient(65% 65% at 60% 40%, #000 0%, transparent 78%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid rgba(56, 224, 242, 0.3);
  border-radius: 999px;
  background: rgba(56, 224, 242, 0.08);
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-eyebrow .icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

.hero h1 {
  margin-top: 18px;
  max-width: 13ch;
  font-size: 2.6rem;
  font-size: clamp(2.35rem, 6.2vw, 4.1rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero-pills {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 22px;
  padding: 7px;
  border: 1px solid rgba(56, 224, 242, 0.24);
  border-radius: 999px;
  background: rgba(9, 26, 52, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  align-self: flex-start;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.hero-pill .icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  color: var(--cyan);
}

.hero-pill:hover {
  background: rgba(56, 224, 242, 0.12);
  color: var(--cyan);
}

.pill-dot {
  width: 4px;
  height: 4px;
  margin: 0 2px;
  border-radius: 50%;
  background: rgba(157, 180, 206, 0.55);
}

.hero-lead {
  max-width: 46ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 26px;
}

.hero-actions .btn {
  margin-right: 12px;
  margin-bottom: 10px;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.8rem;
}

.hero-note .icon {
  width: 15px;
  height: 15px;
  margin-right: 7px;
  color: var(--cyan);
}

/* Hero 插画 */
.hero-art {
  position: relative;
  min-height: 560px;
  margin-top: 22px;
}

.hero-svg {
  position: absolute;
  top: 50%;
  left: -6%;
  width: 96%;
  height: auto;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  filter: drop-shadow(0 40px 60px rgba(3, 12, 28, 0.6));
}

.hero-shield {
  -webkit-transform-origin: 310px 320px;
  transform-origin: 310px 320px;
}

body:not(.is-loading) .hero-shield {
  -webkit-animation: shield-float 7s ease-in-out infinite;
  animation: shield-float 7s ease-in-out infinite;
}

.pulse-ring {
  -webkit-transform-box: fill-box;
  transform-box: fill-box;
  -webkit-transform-origin: center;
  transform-origin: center;
  opacity: 0;
}

body:not(.is-loading) .pulse-ring {
  -webkit-animation: pulse-ring 5s ease-out infinite;
  animation: pulse-ring 5s ease-out infinite;
}

body:not(.is-loading) .pulse-ring.delay {
  -webkit-animation-delay: 1.8s;
  animation-delay: 1.8s;
}

@-webkit-keyframes shield-float {
  0%,
  100% {
    -webkit-transform: translateY(0);
  }
  50% {
    -webkit-transform: translateY(-10px);
  }
}

@keyframes shield-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@-webkit-keyframes pulse-ring {
  0% {
    -webkit-transform: scale(0.86);
    opacity: 0;
  }
  18% {
    opacity: 0.8;
  }
  100% {
    -webkit-transform: scale(1.22);
    opacity: 0;
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.86);
    opacity: 0;
  }
  18% {
    opacity: 0.8;
  }
  100% {
    transform: scale(1.22);
    opacity: 0;
  }
}

.hero-cards {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(320px, 82%);
}

.glass-card {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(120, 200, 255, 0.2);
  border-radius: var(--radius);
  background-image: linear-gradient(155deg, rgba(26, 56, 98, 0.82), rgba(8, 22, 44, 0.78));
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.glass-card + .glass-card {
  margin-top: 12px;
}

.glass-card .tile {
  width: 42px;
  height: 42px;
  margin-right: 12px;
  border-radius: 12px;
}

.glass-card .tile .icon {
  width: 20px;
  height: 20px;
}

.card-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
}

.card-text small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.4;
}

/* 移动端卡片不使用偏移，保持整齐堆叠 */

/* ---------- 信任提示条 ---------- */
.trust-strip {
  border-bottom: 1px solid var(--line);
  background: rgba(9, 24, 48, 0.55);
}

.trust-inner {
  display: grid;
  grid-template-columns: 1fr;
}

.trust-inner p {
  display: flex;
  align-items: flex-start;
  padding: 14px 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.trust-inner p + p {
  border-top: 1px solid rgba(120, 200, 255, 0.08);
}

.trust-inner .icon {
  width: 18px;
  height: 18px;
  margin: 2px 10px 0 0;
  color: var(--cyan);
}

.trust-inner span {
  flex: 1 1 auto;
  min-width: 0;
}

.trust-inner strong {
  margin-right: 4px;
  color: var(--text);
}

/* ---------- 区块通用 ---------- */
.section {
  padding: 64px 0;
}

.section-alt {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background-image: linear-gradient(180deg, rgba(18, 48, 90, 0.34), rgba(5, 14, 30, 0.1));
}

.section-head {
  margin-bottom: 30px;
}

.section-head h2 {
  margin-bottom: 12px;
  font-size: 1.7rem;
  font-size: clamp(1.65rem, 3.4vw, 2.4rem);
}

.section-head p {
  max-width: 62ch;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- 工具 ---------- */
.tools {
  display: inline-flex;
  flex-wrap: wrap;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 23, 46, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tool-tab {
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.tool-tab + .tool-tab {
  margin-left: 4px;
}

.tool-tab .icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

.tool-tab:hover {
  color: var(--text);
}

.tool-tab.is-active {
  background-image: var(--grad-cta);
  color: var(--on-accent);
  box-shadow: 0 12px 26px -14px rgba(56, 214, 240, 0.95);
}

.tool-panels {
  margin-top: 26px;
}

.tool-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-image: linear-gradient(165deg, rgba(23, 51, 92, 0.62), rgba(7, 19, 39, 0.78));
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  margin-bottom: 18px;
}

.panel-head .tile {
  margin-right: 14px;
}

.panel-head h3 {
  margin-bottom: 6px;
  font-size: 1.16rem;
}

.panel-head p {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

/* ---------- 表单 ---------- */
.tool-form {
  display: grid;
  margin-top: 10px;
}

.tool-form > * + * {
  margin-top: 14px;
}

.tool-form > label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tool-form input[type="text"],
.tool-form input[type="url"] {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(4, 14, 30, 0.72);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.tool-form input::-webkit-input-placeholder {
  color: #6f8aa6;
}

.tool-form input::placeholder {
  color: #6f8aa6;
}

.tool-form input[type="text"]:focus,
.tool-form input[type="url"]:focus {
  border-color: var(--cyan);
  outline: none;
  background: rgba(4, 14, 30, 0.95);
  box-shadow: 0 0 0 4px rgba(56, 224, 242, 0.16);
}

.tool-form .btn {
  justify-self: start;
  margin-top: 18px;
}

/* 网络选择 */
.network-pick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 10px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.network-pick legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chip {
  position: relative;
  display: inline-flex;
  margin: 6px 8px 0 0;
  cursor: pointer;
}

.chip input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.chip span {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.chip input:checked + span {
  border-color: transparent;
  background-image: var(--grad-cta);
  color: var(--on-accent);
}

.chip input:focus-visible + span {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ---------- 检查结果 ---------- */
.tool-result {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(9, 24, 48, 0.65);
  opacity: 0;
  -webkit-transform: translateY(-6px);
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tool-result.is-visible {
  opacity: 1;
  -webkit-transform: none;
  transform: none;
}

.tool-result.is-ok {
  border-color: rgba(57, 240, 192, 0.42);
  background: rgba(43, 217, 165, 0.1);
}

.tool-result.is-warn {
  border-color: rgba(245, 184, 75, 0.42);
  background: rgba(245, 184, 75, 0.09);
}

.tool-result.is-danger {
  border-color: rgba(255, 122, 122, 0.44);
  background: rgba(255, 122, 122, 0.1);
}

.result-title {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tool-result.is-ok .result-title {
  color: var(--mint);
}

.tool-result.is-warn .result-title {
  color: var(--amber);
}

.tool-result.is-danger .result-title {
  color: var(--danger);
}

.result-list {
  margin-top: 12px;
  list-style: none;
}

.result-list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.result-list li + li {
  margin-top: 9px;
}

.result-list li::before {
  position: absolute;
  top: 0.16em;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--mint);
  color: #04121f;
  content: "";
  font-size: 11px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
}

.result-list li.item-ok::before {
  content: "✓";
}

.result-list li.item-warn::before {
  background: var(--amber);
  content: "!";
}

.result-list li.item-danger::before {
  background: var(--danger);
  content: "×";
}

.result-list li.item-info::before {
  background: rgba(157, 180, 206, 0.28);
  color: #dff3ff;
  content: "i";
}

/* 清单进度条 */
.meter {
  height: 8px;
  margin: 12px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

#checklist-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background-image: var(--grad-cta);
  transition: width 0.35s ease;
}

#checklist-msg {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- 清单 ---------- */
.checklist {
  display: grid;
}

.checklist > * + * {
  margin-top: 10px;
}

.checklist label {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(6, 18, 38, 0.55);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.checklist label:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.checklist label.is-checked {
  border-color: rgba(57, 240, 192, 0.42);
  background: rgba(43, 217, 165, 0.08);
  color: var(--text);
}

.checklist input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.checklist .box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin: 0 12px 0 0;
  flex: 0 0 auto;
  border: 1.5px solid rgba(157, 180, 206, 0.45);
  border-radius: 7px;
  background: rgba(4, 14, 30, 0.6);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.checklist .box .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.8;
  color: var(--on-accent);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.checklist label.is-checked .box {
  border-color: transparent;
  background-image: var(--grad-cta);
}

.checklist label.is-checked .box .icon {
  opacity: 1;
}

.checklist input:focus-visible + .box {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ---------- 常见骗局 ---------- */
.scam-list {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 16px;
  gap: 16px;
  list-style: none;
}

.scam-list li {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-image: linear-gradient(165deg, rgba(20, 46, 84, 0.5), rgba(6, 17, 36, 0.62));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.scam-list h3 {
  margin-top: 16px;
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.scam-list p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- 使用步骤 ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 16px;
  gap: 16px;
  max-width: 840px;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 24, 48, 0.5);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: 16px;
  flex: 0 0 auto;
  border: 1px solid rgba(56, 224, 242, 0.4);
  border-radius: 14px;
  background: rgba(56, 224, 242, 0.1);
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.steps h3 {
  margin-bottom: 6px;
  font-size: 1.02rem;
}

.steps p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 860px;
}

.faq details {
  padding: 18px 2px;
  border-bottom: 1px solid var(--line);
}

.faq details:first-child {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-left: 18px;
  margin-right: 6px;
  flex: 0 0 auto;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  -webkit-transform: rotate(45deg) translateY(-3px);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.25s ease;
}

.faq details[open] summary::after {
  -webkit-transform: rotate(-135deg) translateY(-3px);
  transform: rotate(-135deg) translateY(-3px);
}

.faq details p {
  max-width: 70ch;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.93rem;
}

/* ---------- 结尾 CTA ---------- */
.cta-band {
  padding: 56px 0 72px;
}

.cta-inner {
  position: relative;
  overflow: hidden;
  padding: 34px 22px;
  border: 1px solid rgba(56, 224, 242, 0.26);
  border-radius: var(--radius-lg);
  background-image: radial-gradient(120% 150% at 50% 0%, rgba(46, 230, 208, 0.18), rgba(6, 17, 36, 0.5) 62%),
    linear-gradient(165deg, rgba(18, 44, 82, 0.7), rgba(5, 14, 30, 0.9));
  text-align: center;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.cta-inner .section-kicker {
  margin-bottom: 12px;
}

.cta-inner h2 {
  font-size: 1.6rem;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
}

.cta-inner > p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.98rem;
}

.cta-inner .btn {
  margin-top: 24px;
}

.cta-inner .cta-note {
  margin-top: 16px;
  color: rgba(157, 180, 206, 0.8);
  font-size: 0.78rem;
}

/* ---------- 页脚 ---------- */
.site-footer {
  padding-top: 48px;
  padding-bottom: calc(22px + constant(safe-area-inset-bottom));
  padding-bottom: calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(3, 9, 20, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 28px;
  gap: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
}

.footer-brand .brand-svg {
  width: 28px;
  height: 32px;
  margin-right: 9px;
}

.footer-note {
  max-width: 42ch;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-label {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-grid a {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-grid > div > a {
  display: block;
}

.footer-grid a:hover {
  color: var(--cyan);
}

.footer-grid a .icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: -3px;
  color: var(--cyan);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(120, 200, 255, 0.1);
  color: var(--muted);
  font-size: 0.8rem;
}

/* ---------- 响应式：平板与桌面 ---------- */
@media (min-width: 641px) {
  .trust-inner {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .trust-inner p {
    padding: 18px 18px 18px 0;
  }

  .trust-inner p + p {
    padding-left: 18px;
    border-top: 0;
    border-left: 1px solid rgba(120, 200, 255, 0.08);
  }

  .scam-list {
    grid-template-columns: 1fr 1fr;
  }

  .tool-panel {
    padding: 28px;
  }

  .cta-inner {
    padding: 48px 44px;
  }

  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 32px;
  }
}

@media (min-width: 861px) {
  .scam-list {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 64px 0 84px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    grid-column-gap: 24px;
    align-items: center;
  }

  .hero-art {
    min-height: 580px;
    margin-top: 0;
  }

  .hero-cards {
    width: min(320px, 82%);
  }

  .glass-card {
    transition: transform 0.25s ease, border-color 0.25s ease;
  }

  .section {
    padding: 88px 0;
  }

  .tool-panel {
    padding: 34px;
  }

  .nav a {
    padding: 8px 14px;
  }
}

@media (max-width: 1023px) {
  .nav {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-art {
    min-height: 0;
    margin-top: 6px;
  }

  .hero-svg {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    -webkit-transform: none;
    transform: none;
  }

  .hero-cards {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 460px;
    margin: -66px auto 0;
    -webkit-transform: none;
    transform: none;
  }

  .tilt-a,
  .tilt-b,
  .tilt-c {
    -webkit-transform: none;
    transform: none;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .hero {
    padding: 34px 0 46px;
  }

  .hero h1 {
    max-width: 15ch;
  }

  .hero-pills {
    display: flex;
    border-radius: 22px;
    width: 100%;
    justify-content: center;
  }

  .hero-pill {
    padding: 8px 10px;
    font-size: 0.84rem;
  }

  .hero-pill .icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
  }

  .pill-dot {
    display: none;
  }

  .hero-actions .btn {
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
  }

  .hero-actions .btn .icon {
    margin-left: 6px;
  }

  .hero-svg {
    max-width: 340px;
  }

  .hero-cards {
    margin-top: -46px;
  }

  .glass-card {
    padding: 12px 14px;
  }

  .glass-card .tile {
    width: 38px;
    height: 38px;
    margin-right: 10px;
  }

  .card-text strong {
    font-size: 0.85rem;
  }

  .card-text small {
    font-size: 0.7rem;
  }

  .section {
    padding: 48px 0;
  }

  .tools {
    display: flex;
    width: 100%;
  }

  .tool-tab {
    flex: 1 1 auto;
    justify-content: center;
    padding: 10px 8px;
    font-size: 0.82rem;
  }

  .tool-tab .icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
  }

  .tool-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .panel-head {
    display: block;
  }

  .panel-head .tile {
    margin-bottom: 12px;
  }

  .tool-form .btn {
    width: 100%;
    justify-self: stretch;
  }

  .chip {
    margin-right: 6px;
  }

  .chip span {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .steps li {
    padding: 16px;
  }

  .steps .step-num {
    width: 38px;
    height: 38px;
    margin-right: 12px;
    font-size: 0.95rem;
  }

  .cta-band {
    padding: 40px 0 52px;
  }

  .cta-inner {
    padding: 30px 18px;
  }

  .cta-inner .btn {
    width: 100%;
  }

  .footer-grid {
    gap: 24px;
  }
}

/* 桌面端悬停效果：触摸设备不做位移，避免 iOS 上“粘住” */
@media (hover: hover) and (min-width: 1024px) {
  .btn:hover {
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
  }

  .btn-primary:hover {
    box-shadow: 0 22px 42px -18px rgba(56, 214, 240, 0.95);
  }

  .btn-ghost:hover {
    border-color: var(--cyan);
    background: rgba(56, 224, 242, 0.1);
    color: var(--cyan);
  }

  .glass-card {
    transition: transform 0.25s ease, border-color 0.25s ease;
  }

  .tilt-a:hover,
  .tilt-b:hover,
  .tilt-c:hover {
    -webkit-transform: translateY(-3px);
    transform: translateY(-3px);
  }

  .scam-list li:hover,
  .steps li:hover {
    border-color: var(--line-strong);
  }
}

@media (min-width: 1024px) {
  .menu-mobile {
    display: none !important;
  }
}

/* ---------- 法务页（隐私政策 / 使用条款） ---------- */
.legal {
  padding: 40px 0 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.82rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--cyan);
}

.breadcrumb .sep {
  margin: 0 8px;
  opacity: 0.6;
}

.legal-head {
  max-width: 760px;
}

.legal-head h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 6vw, 2.9rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.8rem;
}

.legal-meta span {
  display: inline-flex;
  align-items: center;
  margin-right: 16px;
}

.legal-meta .icon {
  width: 15px;
  height: 15px;
  margin-right: 6px;
  color: var(--cyan);
}

.legal-intro {
  max-width: 66ch;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.legal-layout {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 24px;
  gap: 24px;
  margin-top: 32px;
}

.legal-toc {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.legal-toc p {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.legal-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: legal-toc;
}

.legal-toc li {
  counter-increment: legal-toc;
  margin: 0;
}

.legal-toc a {
  display: block;
  padding: 7px 0 7px 26px;
  position: relative;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.legal-toc a::before {
  content: counter(legal-toc) ".";
  position: absolute;
  left: 0;
  color: rgba(56, 224, 242, 0.55);
  font-variant-numeric: tabular-nums;
}

.legal-toc a:hover {
  color: var(--cyan);
}

.legal-card {
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(20, 46, 84, 0.66), rgba(8, 21, 44, 0.78));
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.legal-card section {
  padding-bottom: 26px;
}

.legal-card section + section {
  padding-top: 26px;
  border-top: 1px solid rgba(120, 200, 255, 0.1);
}

.legal-card section:last-child {
  padding-bottom: 0;
}

.legal-card h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.legal-card h3 {
  margin: 18px 0 8px;
  font-size: 0.98rem;
  font-weight: 700;
}

.legal-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.72;
}

.legal-card p:last-child,
.legal-card ul:last-child {
  margin-bottom: 0;
}

.legal-card strong {
  color: var(--text);
}

.legal-card ul {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.legal-card ul li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.legal-card ul li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad-cta);
}

.legal-card a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-card a:hover {
  color: #8ff7e2;
}

.legal-note {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(56, 224, 242, 0.07);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.legal-note strong {
  color: var(--text);
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 26px;
}

.legal-actions .btn {
  margin-right: 12px;
  margin-bottom: 10px;
}

.legal-actions .btn .icon {
  margin-left: 0;
  margin-right: 8px;
}

@media (min-width: 900px) {
  .legal {
    padding: 56px 0 84px;
  }

  .legal-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    grid-column-gap: 32px;
    gap: 32px;
    align-items: start;
  }

  .legal-toc {
    position: -webkit-sticky;
    position: sticky;
    top: calc(var(--header-h) + 20px);
  }

  .legal-card {
    padding: 34px 32px;
  }
}

@media (max-width: 560px) {
  .legal {
    padding: 28px 0 48px;
  }

  .legal-card {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .legal-card section {
    padding-bottom: 22px;
  }

  .legal-card section + section {
    padding-top: 22px;
  }
}

/* ---------- 无障碍：减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    -webkit-animation-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    -webkit-animation-iteration-count: 1 !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
