/* ============================================================
   LooksRare 复刻模板 · main.css
   纯本地样式，无任何外部依赖
   ============================================================ */

:root {
  --bg: #0a1119;
  --bg-alt: #0f1a24;
  --card: #111e29;
  --card-hover: #152534;
  --teal: #00e0c6;
  --teal-deep: #0aa392;
  --teal-soft: rgba(0, 224, 198, 0.14);
  --gold: #f7b955;
  --gold-soft: rgba(247, 185, 85, 0.16);
  --text: #eef4fb;
  --text-sub: #93a4b8;
  --text-dim: #64748a;
  --border: #1e2c3a;
  --border-hover: #2c3e52;
  --grid-line: rgba(148, 190, 255, 0.06);
  --glow-teal: rgba(0, 224, 198, 0.5);
  --glow-gold: rgba(247, 185, 85, 0.5);
  --danger: #ff6b6b;
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 68px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC",
    system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 640px at 82% -8%, #082c33 0%, transparent 56%),
    radial-gradient(900px 540px at 6% 14%, #0a2736 0%, transparent 60%),
    linear-gradient(180deg, #05090f 0%, #08141d 46%, #071219 100%);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* 全局科技网格背景 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
  pointer-events: none;
}

body.modal-open {
  overflow: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------------- 通用文字 ---------------- */

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.text-teal {
  color: var(--teal);
}

.mono {
  font-family: var(--mono);
}

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.section-sub {
  margin-top: 16px;
  color: var(--text-sub);
  font-size: 16px;
}

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-lg {
  padding: 14px 30px;
  font-size: 16px;
}

.btn-primary {
  background: var(--teal);
  color: #04201d;
  box-shadow: 0 6px 22px rgba(0, 224, 198, 0.22);
}

.btn-primary:hover {
  background: #1df0d7;
  box-shadow: 0 10px 30px rgba(0, 224, 198, 0.34);
}

.btn-ghost {
  border: 1px solid var(--border-hover);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: var(--teal-deep);
  color: var(--teal);
}

.btn-link {
  color: var(--text-sub);
  padding: 9px 14px;
}

.btn-link:hover {
  color: var(--teal);
}

.btn-block {
  width: 100%;
}

/* ---------------- 导航 ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(6, 12, 18, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo {
  transition: transform 0.3s ease;
}

.brand:hover .brand-logo {
  transform: rotate(18deg);
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-size: 15px;
  color: var(--text-sub);
  transition: color 0.18s ease;
}

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

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-sub);
  cursor: pointer;
}

.lang-globe {
  font-size: 16px;
  line-height: 1;
}

.lang-switch select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  padding: 6px 26px 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2393a4b8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  transition: border-color 0.18s ease;
}

.lang-switch select:hover,
.lang-switch select:focus {
  border-color: var(--teal);
  outline: none;
}

.lang-switch select option {
  background: #0f1a24;
  color: var(--text);
}

.btn-nav {
  padding: 9px 18px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.nav-toggle .bar {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.hero {
  position: relative;
  padding: 92px 0 84px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -220px;
  right: -120px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(0, 224, 198, 0.16), transparent 64%);
  pointer-events: none;
  animation: breathe 7s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.hero-copy h1 .text-teal {
  background: linear-gradient(100deg, var(--teal) 10%, var(--gold) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 18px var(--glow-teal));
}

.hero-lead {
  margin-top: 22px;
  color: var(--text-sub);
  font-size: 17px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 32px;
  color: var(--text-dim);
  font-size: 14px;
}

.trust-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  margin-right: 8px;
  box-shadow: 0 0 0 4px var(--teal-soft);
  vertical-align: 1px;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-card {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(12, 16, 23, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.hero-card-label {
  color: var(--text-dim);
}

.hero-card-value {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
}

.hero-card-trend {
  font-size: 13px;
  font-weight: 600;
}

.hero-card-trend.up {
  color: var(--teal);
}

/* ---------------- 数据条 ---------------- */

.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 38px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-value {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 700;
  font-family: var(--mono);
  color: var(--teal);
  letter-spacing: -0.01em;
}

.stat-label {
  margin-top: 6px;
  color: var(--text-dim);
  font-size: 14px;
}

/* ---------------- 产品特性 ---------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  padding: 30px 26px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: var(--card-hover);
}

.feature-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-sub);
  font-size: 14.5px;
}

/* ---------------- 合集卡片 ---------------- */

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.collection-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  outline: none;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.collection-card:hover,
.collection-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--teal-deep);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}

.collection-cover {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.collection-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.collection-card:hover .collection-cover img {
  transform: scale(1.06);
}

.collection-body {
  padding: 18px 20px 20px;
}

.collection-body h3 {
  font-size: 16.5px;
  font-weight: 700;
}

.collection-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 13px;
}

.collection-meta strong {
  color: var(--text);
  font-family: var(--mono);
  font-weight: 600;
}

/* ---------------- 奖励 ---------------- */

.rewards-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.rewards-copy h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.25;
}

.rewards-copy > p {
  margin-top: 16px;
  color: var(--text-sub);
}

.reward-list {
  list-style: none;
  margin: 26px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reward-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--text-sub);
  font-size: 15px;
}

.reward-tag {
  flex-shrink: 0;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  margin-top: 2px;
}

.rewards-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.reward-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  padding: 16px 24px;
  font-size: 14.5px;
  border-bottom: 1px solid var(--border);
  color: var(--text-sub);
}

.reward-row:last-child {
  border-bottom: none;
}

.reward-row.head {
  background: var(--bg-alt);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.reward-row .mono {
  color: var(--gold);
  font-weight: 600;
}

/* ---------------- 流程 ---------------- */

.steps-grid {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.step-card {
  position: relative;
  padding: 28px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-num {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--teal);
  opacity: 0.9;
}

.step-card h3 {
  font-size: 16.5px;
  margin: 12px 0 8px;
  font-weight: 700;
}

.step-card p {
  color: var(--text-sub);
  font-size: 14px;
}

/* ---------------- FAQ ---------------- */

.faq-wrap {
  max-width: 820px;
}

.faq-wrap .section-head {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 22px;
  font-weight: 600;
  font-size: 15.5px;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 52px;
  transition: color 0.18s ease;
}

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

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-sub);
  border-bottom: 2px solid var(--text-sub);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s ease, border-color 0.2s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
  border-color: var(--teal);
}

.faq-item[open] summary {
  color: var(--teal);
}

.faq-item p {
  padding: 0 22px 20px;
  color: var(--text-sub);
  font-size: 14.5px;
}

/* ---------------- 背书条 ---------------- */

.trust-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(8, 16, 24, 0.5);
  padding: 34px 0;
}

.trust-bar .section-sub {
  margin: 0 auto 30px;
  text-align: center;
  max-width: 480px;
  color: var(--text-dim);
  font-size: 13.5px;
  letter-spacing: 0.04em;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px 34px;
}

.trust-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.trust-logo svg {
  width: 20px;
  height: 20px;
  color: var(--teal);
  flex-shrink: 0;
}

.trust-logo:hover {
  border-color: var(--teal-deep);
  color: var(--text);
}

/* ---------------- 成功案例 ---------------- */

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.case-card {
  position: relative;
  padding: 30px 26px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.case-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  opacity: 0.85;
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
}

.case-card .eyebrow {
  font-size: 12px;
  margin-bottom: 10px;
}

.case-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.case-yield {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(100deg, var(--gold), #ffd98a);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px var(--glow-gold));
}

.case-amt {
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 13px;
}

.case-title {
  margin-top: 16px;
  font-size: 16.5px;
  font-weight: 700;
}

.case-desc {
  margin-top: 8px;
  color: var(--text-sub);
  font-size: 14px;
}

.case-result {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-size: 13.5px;
  font-weight: 600;
}

.case-result .tf {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-soft);
}

/* ---------------- 在线访客实时动态条 ---------------- */

.live-ticker {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 320px;
  max-width: calc(100vw - 32px);
  border: 1px solid var(--border-hover);
  border-radius: 14px;
  background: rgba(9, 17, 26, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.live-ticker-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff4d4d;
  box-shadow: 0 0 0 4px rgba(255, 77, 77, 0.18);
  animation: livePulse 1.6s ease-in-out infinite;
}

@keyframes livePulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.14);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(255, 77, 77, 0.05);
  }
}

.live-label {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
}

.live-count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--teal);
}

.live-ticker-body {
  padding: 10px 0 8px;
  max-height: 128px;
  overflow: hidden;
  position: relative;
}

.live-ticker-body::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34px;
  background: linear-gradient(transparent, rgba(9, 17, 26, 0.9));
  pointer-events: none;
}

.live-feed {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 0 16px;
}

.live-feed li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--text-sub);
}

.live-feed .act {
  color: var(--gold);
  font-weight: 600;
  flex-shrink: 0;
}

.live-feed .mono {
  color: var(--teal);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.live-feed .amt {
  margin-left: auto;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 12px;
}

.live-ticker .live-pop {
  transform: translateY(0);
  transition: opacity 0.3s ease;
}

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

.cta-band {
  padding: 88px 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 224, 198, 0.12), transparent 60%),
    var(--bg-alt);
  border-top: 1px solid var(--border);
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 700;
}

.cta-inner p {
  margin: 14px 0 30px;
  color: var(--text-sub);
}

/* ---------------- 页脚 ---------------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 40px;
  background: #080a0f;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 22px;
}

.footer-nav a {
  color: var(--text-sub);
  font-size: 14.5px;
  transition: color 0.18s ease;
}

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

.footer-note {
  margin-top: 24px;
  color: var(--text-dim);
  font-size: 13px;
}

.footer-copy {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 13px;
}

/* ---------------- 弹窗 ---------------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 6, 10, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 34px 32px 30px;
  background: var(--bg-alt);
  border: 1px solid var(--border-hover);
  border-radius: 18px;
  box-shadow: var(--shadow);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.24s ease;
}

.modal-overlay.show .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text-dim);
  transition: color 0.18s ease, background 0.18s ease;
}

.modal-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.modal h3 {
  font-size: 23px;
  font-weight: 700;
}

.modal-desc {
  margin-top: 10px;
  color: var(--text-sub);
  font-size: 14.5px;
}

.modal-desc strong {
  color: var(--teal);
}

/* 表单 */

form {
  margin-top: 22px;
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 7px;
}

.req {
  color: var(--danger);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-row textarea {
  resize: vertical;
  min-height: 76px;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--text-dim);
}

.form-row select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239aa5b5' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.form-row select option {
  background: var(--card);
  color: var(--text);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--teal-deep);
  box-shadow: 0 0 0 3px var(--teal-soft);
}

.form-row input.invalid,
.form-row select.invalid {
  border-color: var(--danger);
}

.field-error {
  min-height: 18px;
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--danger);
}

.form-promise {
  margin-top: 14px;
  text-align: center;
  color: var(--text-dim);
  font-size: 12.5px;
}

/* 成功视图 */

.modal-success {
  text-align: center;
  padding: 18px 0 6px;
}

.success-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
}

.modal-success .btn {
  margin-top: 24px;
}

/* ============================================================
   钱包选择弹窗
   ============================================================ */

.wallet-overlay {
  background: rgba(4, 6, 10, 0.78);
}

.wallet-dialog {
  position: relative;
  width: min(860px, calc(100vw - 40px));
  height: min(620px, calc(100vh - 48px));
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  background: var(--bg-alt);
  border: 1px solid var(--border-hover);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* 左栏 */

.wallet-list-pane {
  display: flex;
  flex-direction: column;
  background: #171c25;
  border-right: 1px solid var(--border);
  min-height: 0;
}

.wallet-pane-head {
  padding: 30px 26px 18px;
}

.wallet-pane-head h3 {
  font-size: 20px;
  font-weight: 700;
}

.wallet-pane-head p {
  margin-top: 4px;
  color: var(--text-dim);
  font-size: 13.5px;
}

.wallet-options {
  flex: 1;
  overflow-y: auto;
  padding: 4px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wallet-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-align: left;
  transition: background 0.16s ease;
}

.wallet-option:hover {
  background: rgba(255, 255, 255, 0.05);
}

.wallet-option.selected {
  background: rgba(0, 224, 198, 0.1);
  border-color: var(--teal);
  color: var(--teal);
}

.wallet-option.selected .wallet-name {
  color: var(--teal);
}

.wallet-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  display: block;
}

.wallet-name {
  font-size: 16px;
  font-weight: 600;
}

.wallet-footer-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12.5px;
}

.wf-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* 右栏二维码 */

.wallet-qr-pane {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px 40px;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 224, 198, 0.08), transparent 55%),
    var(--bg-alt);
}

.wallet-back-desktop {
  position: absolute;
  top: 22px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 13.5px;
  transition: color 0.16s ease;
}

.wallet-back-desktop:hover {
  color: var(--teal);
}

.qr-content {
  width: 100%;
  max-width: 340px;
  text-align: center;
}

.qr-title {
  font-size: 20px;
  font-weight: 700;
}

.qr-sub {
  margin-top: 6px;
  color: var(--text-dim);
  font-size: 13.5px;
}

.qr-box {
  position: relative;
  width: min(290px, 72vw);
  margin: 24px auto 0;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 14px;
}

#qrSvg {
  width: 100%;
  height: auto;
  display: block;
}

.qr-center-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px #fff;
}

.qr-logo-inner {
  width: 42px;
  height: 42px;
}

.qr-hint {
  margin-top: 20px;
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.7;
}

.qr-inline-btn {
  color: var(--teal);
  font-size: 12.5px;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 连接中 */

.qr-connecting,
.qr-failed {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 18px;
}

.qr-connecting {
  background: rgba(255, 255, 255, 0.92);
  color: #1a2030;
}

.qr-connecting p {
  font-size: 14px;
  font-weight: 600;
}

.qr-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(0, 224, 198, 0.25);
  border-top-color: var(--teal-deep);
  animation: qrspin 0.8s linear infinite;
}

@keyframes qrspin {
  to {
    transform: rotate(360deg);
  }
}

/* 信号不好 */

.qr-failed {
  background: rgba(18, 22, 30, 0.94);
  color: var(--text);
  animation: qrShake 0.4s ease;
}

@keyframes qrShake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.failed-icon {
  color: var(--gold);
}

.qr-failed h4 {
  font-size: 17px;
  font-weight: 700;
}

.qr-failed p {
  color: var(--text-sub);
  font-size: 13px;
}

.qr-failed .btn {
  margin-top: 8px;
  padding: 9px 22px;
}

/* 移动端返回按钮：桌面隐藏 */

.wallet-back {
  display: none;
}

/* ---------------- 钱包弹窗响应式 ---------------- */

@media (max-width: 768px) {
  .wallet-dialog {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    border: none;
    grid-template-columns: 1fr;
  }

  .wallet-list-pane,
  .wallet-qr-pane {
    grid-row: 1;
    grid-column: 1;
    border-right: none;
    width: 100%;
    height: 100%;
  }

  /* 未选择：显示列表；已选择：显示二维码（全屏分步） */
  .wallet-qr-pane {
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.28s ease, visibility 0.28s ease;
  }

  .wallet-overlay.qr-mode .wallet-qr-pane {
    visibility: visible;
    transform: translateX(0);
  }

  .wallet-overlay.qr-mode .wallet-list-pane {
    visibility: hidden;
  }

  .wallet-back {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 6;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
  }

  .wallet-overlay:not(.qr-mode) .wallet-back {
    display: none;
  }

  .wallet-back-desktop {
    display: none;
  }

  .wallet-close {
    z-index: 7;
  }

  .wallet-pane-head {
    padding: 32px 22px 16px;
  }

  .wallet-options {
    padding: 4px 12px 16px;
  }

  .wallet-qr-pane {
    justify-content: flex-start;
    padding: 84px 24px 32px;
    overflow-y: auto;
  }

  .qr-content {
    max-width: none;
  }

  .qr-box {
    width: min(300px, 78vw);
    margin-top: 22px;
  }
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-media {
    max-width: 680px;
  }

  .rewards-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .feature-grid,
  .collection-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    padding: 60px 0 64px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 20px;
    background: rgba(11, 14, 19, 0.97);
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
  }

  .btn-nav {
    margin-top: 14px;
    width: 100%;
  }

  .lang-switch {
    padding: 13px 4px;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  .lang-switch select {
    flex: 1;
    max-width: 180px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 16px;
  }

  .feature-grid,
  .collection-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .live-ticker {
    left: 16px;
    right: 16px;
    bottom: 14px;
    width: auto;
    max-width: none;
  }

  .collection-grid {
    max-width: 420px;
    margin: 0 auto;
  }

  .hero-card {
    position: static;
    margin: 14px 16px 16px;
    flex-wrap: wrap;
  }

  .modal {
    padding: 28px 22px 24px;
  }

  /* 移动端底部固定实时条会遮挡页脚，预留空间 */
  .site-footer {
    padding-bottom: 210px;
  }

  .modal-overlay {
    align-items: flex-end;
  }

  .modal {
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
  }
}

@media (max-width: 420px) {
  .container {
    width: calc(100% - 28px);
  }

  .btn-lg {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }
}
