/* =========================================================
   官方使用指南 · 前台样式
   ========================================================= */

:root {
  --bg: #05070f;
  --bg-soft: #080b16;
  --text: #eef1f9;
  --muted: #98a1ba;
  --muted-soft: #6e7893;
  --card: rgba(255, 255, 255, 0.045);
  --card-strong: rgba(255, 255, 255, 0.075);
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-strong: rgba(255, 255, 255, 0.16);
  --blue: #4f7cff;
  --cyan: #22d3ee;
  --violet: #a78bfa;
  --pink: #f472b6;
  --grad: linear-gradient(115deg, #4f7cff 0%, #22d3ee 36%, #a78bfa 68%, #f472b6 100%);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 30px 70px -40px rgba(0, 0, 0, 0.9);
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

::selection {
  background: rgba(79, 124, 255, 0.35);
}

/* ---------- 动态背景 ---------- */

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.55;
  will-change: transform;
}

.orb-a {
  width: 760px;
  height: 760px;
  top: -320px;
  left: -200px;
  background: radial-gradient(circle at 35% 35%, #2c46ff, transparent 68%);
  animation: drift-a 28s ease-in-out infinite alternate;
}

.orb-b {
  width: 680px;
  height: 680px;
  top: -180px;
  right: -220px;
  background: radial-gradient(circle at 50% 50%, #0fb9d8, transparent 66%);
  opacity: 0.35;
  animation: drift-b 34s ease-in-out infinite alternate;
}

.orb-c {
  width: 700px;
  height: 700px;
  bottom: -300px;
  left: 18%;
  background: radial-gradient(circle at 50% 50%, #7c3aed, transparent 68%);
  opacity: 0.38;
  animation: drift-c 40s ease-in-out infinite alternate;
}

.orb-d {
  width: 560px;
  height: 560px;
  bottom: -160px;
  right: -140px;
  background: radial-gradient(circle at 50% 50%, #db2777, transparent 70%);
  opacity: 0.22;
  animation: drift-d 32s ease-in-out infinite alternate;
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 70% at 50% 0%, transparent 30%, rgba(5, 7, 15, 0.55) 100%),
    linear-gradient(180deg, rgba(5, 7, 15, 0) 0%, rgba(5, 7, 15, 0.65) 100%);
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(140px, 90px, 0) scale(1.14); }
}

@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to { transform: translate3d(-130px, 110px, 0) scale(0.94); }
}

@keyframes drift-c {
  from { transform: translate3d(-60px, 40px, 0) scale(0.95); }
  to { transform: translate3d(90px, -90px, 0) scale(1.12); }
}

@keyframes drift-d {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-90px, -70px, 0) scale(1.15); }
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(6, 8, 18, 0.72);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

.nav-inner {
  width: min(1160px, 100% - 48px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(79, 124, 255, 0.9);
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

.brand-mark.small {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  box-shadow: none;
}

.brand-mark.small svg {
  width: 15px;
  height: 15px;
}

.brand-text {
  font-size: 17px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-links a {
  position: relative;
  padding: 9px 14px;
  font-size: 14.5px;
  color: var(--muted);
  border-radius: 10px;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.nav-cta {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  color: #0a0d18;
  background: linear-gradient(120deg, #eaf1ff, #c9d8ff);
  box-shadow: 0 10px 30px -14px rgba(180, 205, 255, 0.8);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px -14px rgba(180, 205, 255, 0.95);
}

/* ---------- 通用区块 ---------- */

main {
  position: relative;
  z-index: 1;
}

.hero,
.section {
  width: min(1160px, 100% - 48px);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 56px;
  align-items: center;
  padding: 84px 0 108px;
  min-height: min(760px, calc(100vh - 80px));
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 11px;
  font-size: 13px;
  color: #cfd8f5;
  border: 1px solid rgba(130, 160, 255, 0.24);
  border-radius: 999px;
  background: rgba(90, 120, 255, 0.1);
  backdrop-filter: blur(10px);
}

.pulse-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #48e6b8;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(72, 230, 184, 0.55);
  animation: pulse-ring 2.4s ease-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 1; }
  70%, 100% { transform: scale(1.9); opacity: 0; }
}

.hero h1 {
  margin: 26px 0 0;
  font-size: clamp(40px, 5.4vw, 66px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.grad-text {
  background: var(--grad);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-shift 9s ease-in-out infinite;
}

@keyframes grad-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-sub {
  margin: 24px 0 0;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.28s ease, background 0.28s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.28s ease;
}

.btn-primary {
  color: #06080f;
  background: linear-gradient(120deg, #8fd6ff, #a9b8ff 45%, #f0b8ff);
  box-shadow: 0 18px 44px -18px rgba(128, 168, 255, 0.85);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 54px -18px rgba(150, 180, 255, 0.95);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-ghost {
  color: #dfe5f7;
  border: 1px solid var(--stroke-strong);
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 52px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-item b {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #ffffff, #b9c8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.meta-item span {
  font-size: 12.5px;
  color: var(--muted-soft);
  letter-spacing: 0.04em;
}

.meta-divider {
  width: 1px;
  height: 30px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

/* ---------- Hero 视觉 ---------- */

.hero-visual {
  position: relative;
  padding: 20px;
  display: flex;
  justify-content: center;
}

.visual-glow {
  position: absolute;
  inset: 6% 4%;
  background: radial-gradient(circle at 50% 45%, rgba(90, 130, 255, 0.42), rgba(150, 80, 255, 0.14) 45%, transparent 70%);
  filter: blur(44px);
  animation: visual-breathe 8s ease-in-out infinite;
}

@keyframes visual-breathe {
  0%, 100% { opacity: 0.75; transform: scale(0.97); }
  50% { opacity: 1; transform: scale(1.04); }
}

.screen-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(160deg, rgba(24, 30, 56, 0.92), rgba(10, 13, 26, 0.94));
  box-shadow: 0 50px 110px -40px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transform: perspective(1100px) rotateY(-7deg) rotateX(4deg);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-visual:hover .screen-card {
  transform: perspective(1100px) rotateY(-2deg) rotateX(1deg) translateY(-4px);
}

.screen-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}

.screen-dots {
  display: flex;
  gap: 6px;
}

.screen-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.screen-dots i:first-child { background: rgba(244, 114, 182, 0.7); }
.screen-dots i:nth-child(2) { background: rgba(250, 204, 21, 0.6); }
.screen-dots i:last-child { background: rgba(72, 230, 184, 0.65); }

.screen-title {
  font-size: 12px;
  color: var(--muted-soft);
  letter-spacing: 0.08em;
}

.screen-body {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 30% 25%, rgba(79, 124, 255, 0.55), transparent 55%),
    radial-gradient(circle at 75% 75%, rgba(244, 114, 182, 0.35), transparent 55%),
    linear-gradient(140deg, #101836, #0b1020 70%);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.screen-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.07) 45%, transparent 65%);
  transform: translateX(-100%);
  animation: sheen 6.5s ease-in-out infinite;
}

@keyframes sheen {
  0%, 60% { transform: translateX(-110%); }
  90%, 100% { transform: translateX(110%); }
}

.screen-play {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.04), 0 18px 50px -10px rgba(80, 120, 255, 0.8);
}

.screen-play svg {
  width: 30px;
  height: 30px;
  margin-left: 4px;
}

.screen-play::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px solid rgba(160, 190, 255, 0.28);
  animation: screen-ring 3.4s ease-out infinite;
}

@keyframes screen-ring {
  0% { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(1.5); opacity: 0; }
}

.screen-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 26%;
  top: 0;
  background: linear-gradient(180deg, transparent, rgba(120, 200, 255, 0.12), transparent);
  animation: scan 7s linear infinite;
}

@keyframes scan {
  0% { transform: translateY(-120%); }
  100% { transform: translateY(480%); }
}

.screen-foot {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 20px 20px 24px;
}

.bar {
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
  width: 100%;
}

.bar.short { width: 66%; }
.bar.tiny { width: 38%; }

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 12.5px;
  font-weight: 500;
  color: #e7ecff;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(16, 22, 42, 0.78);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px -22px rgba(0, 0, 0, 0.9);
  animation: float-y 6s ease-in-out infinite;
}

.chip-a { top: 4%; right: -4%; }
.chip-b { bottom: 19%; left: -7%; animation-delay: -2.2s; }
.chip-c { bottom: 2%; right: 2%; animation-delay: -4.1s; }

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

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #48e6b8;
  box-shadow: 0 0 12px rgba(72, 230, 184, 0.9);
}

.chip-icon {
  display: grid;
  place-items: center;
  color: #8fb4ff;
}

.chip-icon svg {
  width: 15px;
  height: 15px;
}

/* ---------- 区块通用 ---------- */

.section {
  padding: 96px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8fa3d6;
}

.eyebrow span {
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, #4f7cff, transparent);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-sub {
  margin: 12px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.count-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.035);
  white-space: nowrap;
}

.count-pill b {
  font-size: 19px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.count-pill span {
  font-size: 12.5px;
  color: var(--muted-soft);
}

/* ---------- 教程卡片 ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 26px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.018));
  box-shadow: var(--shadow-card);
  transition: transform 0.42s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.42s ease, box-shadow 0.42s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(120, 160, 255, 0.55), transparent 40%, transparent 62%, rgba(244, 114, 182, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.42s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-7px);
  box-shadow: 0 42px 80px -40px rgba(60, 90, 255, 0.55);
}

.card:hover::after {
  opacity: 1;
}

.card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(79, 124, 255, 0.5), transparent 55%),
    radial-gradient(circle at 78% 82%, rgba(167, 139, 250, 0.4), transparent 55%),
    linear-gradient(140deg, #121b38, #0a0e1c 75%);
  background-size: cover;
  background-position: center;
}

.card-media.has-thumb {
  background-color: #070a14;
}

.card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 8, 16, 0.05) 0%, rgba(5, 8, 16, 0.72) 100%);
  transition: opacity 0.4s ease;
}

.card-media.has-thumb::before {
  background: linear-gradient(180deg, rgba(5, 8, 16, 0.16) 0%, rgba(5, 8, 16, 0.62) 100%);
}

.card:hover .card-media::before {
  opacity: 0.85;
}

.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 36px -10px rgba(0, 0, 0, 0.75);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.4s ease, box-shadow 0.4s ease;
}

.play-badge svg {
  width: 24px;
  height: 24px;
  margin-left: 3px;
}

.card:hover .play-badge {
  transform: translate(-50%, -50%) scale(1.1);
  background: linear-gradient(120deg, rgba(79, 124, 255, 0.95), rgba(167, 139, 250, 0.95));
  box-shadow: 0 18px 44px -10px rgba(90, 130, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.5);
}

.card-index {
  position: absolute;
  top: 14px;
  left: 16px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #dfe8ff;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 12, 24, 0.6);
  backdrop-filter: blur(8px);
}

.card-size {
  position: absolute;
  right: 14px;
  bottom: 13px;
  padding: 4px 10px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.82);
  border-radius: 6px;
  background: rgba(6, 9, 18, 0.62);
  backdrop-filter: blur(6px);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 26px;
}

.card-body h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.card:hover .card-body h3 {
  color: #cfe0ff;
}

.card-body p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 47px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted-soft);
}

.card-meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

/* ---------- 空状态 ---------- */

.empty-state {
  padding: 76px 24px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.018);
}

.empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: #8fa8e8;
  border: 1px solid var(--stroke);
  background: rgba(120, 150, 255, 0.08);
}

.empty-icon svg {
  width: 28px;
  height: 28px;
}

.empty-state h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.empty-state p {
  margin: 0;
  font-size: 14px;
  color: var(--muted-soft);
}

/* ---------- 联系方式 ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 26px;
  align-items: stretch;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--stroke);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow-card);
  transition: border-color 0.35s ease, transform 0.35s ease, background 0.35s ease;
}

.contact-card:hover {
  border-color: rgba(130, 160, 255, 0.3);
  transform: translateY(-3px);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02));
}

.contact-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
}

.contact-icon svg {
  width: 26px;
  height: 26px;
}

.contact-icon.wechat {
  color: #5ef0a8;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.contact-icon.phone {
  color: #7db6ff;
  background: rgba(79, 124, 255, 0.14);
  border: 1px solid rgba(79, 124, 255, 0.28);
}

.contact-info {
  min-width: 0;
  flex: 1;
}

.contact-label {
  margin: 0 0 6px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--muted-soft);
}

.contact-value {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-value.is-empty {
  font-size: 15px;
  font-weight: 400;
  color: var(--muted-soft);
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 9px 15px;
  font-size: 13px;
  color: #d8e2ff;
  border-radius: 10px;
  border: 1px solid var(--stroke-strong);
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.copy-btn svg {
  width: 15px;
  height: 15px;
}

.copy-btn:hover {
  background: rgba(120, 150, 255, 0.16);
  border-color: rgba(140, 170, 255, 0.45);
  transform: translateY(-1px);
}

.copy-btn.done {
  color: #6ef0b4;
  border-color: rgba(72, 230, 184, 0.45);
  background: rgba(72, 230, 184, 0.1);
}

.copy-btn.call {
  color: #b9d3ff;
}

.contact-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 4px;
  font-size: 13px;
  color: var(--muted-soft);
}

.note-line {
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, rgba(120, 150, 255, 0.7), transparent);
}

.qr-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.qr-card::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  top: -120px;
  right: -120px;
  background: radial-gradient(circle, rgba(79, 124, 255, 0.28), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.qr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}

.qr-head .contact-label {
  margin: 0;
}

.qr-badge {
  padding: 5px 11px;
  font-size: 11.5px;
  color: #9fe8ff;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  background: rgba(34, 211, 238, 0.1);
}

.qr-frame {
  position: relative;
  flex: 1;
  min-height: 230px;
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #fff;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.qr-frame:has(img[hidden]) {
  background: rgba(255, 255, 255, 0.03);
}

.qr-frame img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

.qr-frame:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 60px -30px rgba(120, 160, 255, 0.7);
}

.qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--muted-soft);
}

.qr-placeholder svg {
  width: 46px;
  height: 46px;
  opacity: 0.7;
}

.qr-placeholder em {
  font-style: normal;
  font-size: 13px;
}

.qr-hint {
  margin: 18px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted-soft);
}

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

.footer {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(4, 6, 13, 0.5);
  backdrop-filter: blur(14px);
}

.footer-inner {
  width: min(1160px, 100% - 48px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
}

.footer-copy {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted-soft);
}

/* ---------- 模态框 ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 12, 0.82);
  backdrop-filter: blur(16px);
}

.player-panel {
  position: relative;
  width: min(980px, 100%);
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(165deg, rgba(20, 26, 48, 0.98), rgba(8, 11, 22, 0.99));
  box-shadow: 0 60px 140px -40px rgba(0, 0, 0, 0.95);
  transform: translateY(20px) scale(0.975);
  transition: transform 0.42s cubic-bezier(0.2, 0.7, 0.2, 1);
  max-height: calc(100vh - 56px);
  overflow-y: auto;
}

.modal.open .player-panel {
  transform: translateY(0) scale(1);
}

.player-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.player-eyebrow {
  margin: 0 0 5px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7f93c9;
}

.player-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.icon-btn {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid var(--stroke-strong);
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.25s ease, transform 0.25s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(90deg);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.player-video {
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 1);
}

.player-video video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  outline: none;
}

.player-desc {
  margin: 16px 2px 2px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
  white-space: pre-line;
}

/* 二维码放大 */

.qr-panel {
  position: relative;
  width: min(420px, 100%);
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(165deg, rgba(22, 28, 50, 0.98), rgba(9, 12, 24, 0.99));
  box-shadow: 0 60px 140px -40px rgba(0, 0, 0, 0.95);
  text-align: center;
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.modal.open .qr-panel {
  transform: scale(1);
}

.qr-panel img {
  width: 100%;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}

.qr-panel p {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.qr-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

/* ---------- Toast ---------- */

.toast-wrap {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  font-size: 13.5px;
  color: #eaf0ff;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(18, 24, 44, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 22px 50px -20px rgba(0, 0, 0, 0.9);
  transform: translateY(14px);
  opacity: 0;
  animation: toast-in 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.toast::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #48e6b8;
  box-shadow: 0 0 10px rgba(72, 230, 184, 0.9);
}

.toast.error::before {
  background: #fb7185;
  box-shadow: 0 0 10px rgba(251, 113, 133, 0.9);
}

.toast.out {
  animation: toast-out 0.3s ease forwards;
}

@keyframes toast-in {
  to { transform: translateY(0); opacity: 1; }
}

@keyframes toast-out {
  to { transform: translateY(10px); opacity: 0; }
}

/* ---------- 入场动画 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

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

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 54px;
    padding: 64px 0 88px;
    min-height: 0;
    text-align: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .hero-meta {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

  .screen-card {
    transform: none;
  }

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

  .qr-card {
    min-height: 0;
  }

  .qr-frame {
    min-height: 260px;
  }
}

@media (max-width: 720px) {
  .hero,
  .section,
  .nav-inner,
  .footer-inner {
    width: min(1160px, 100% - 36px);
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    margin-left: auto;
  }

  .hero h1 {
    font-size: clamp(34px, 8.4vw, 46px);
  }

  .hero-sub {
    font-size: 14.5px;
  }

  .hero-meta {
    gap: 18px;
    margin-top: 40px;
  }

  .meta-item b {
    font-size: 20px;
  }

  .section {
    padding: 70px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 30px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .float-chip {
    font-size: 11.5px;
    padding: 8px 13px;
  }

  .chip-a { right: -2%; }
  .chip-b { left: -2%; }
  .chip-c { right: 0; }

  .contact-card {
    padding: 20px;
    gap: 14px;
    flex-wrap: wrap;
  }

  .contact-value {
    font-size: 18px;
  }

  .contact-actions {
    margin-left: auto;
  }

  .qr-card {
    padding: 20px;
  }

  .modal {
    padding: 14px;
  }

  .player-panel {
    padding: 18px;
    border-radius: 20px;
  }

  .player-head h3 {
    font-size: 17px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
