/* =========================================================
   AI Video Studio — 设计系统
   深色高级感 + 玻璃拟态；零外链字体，全部使用系统字体栈
   ========================================================= */
:root {
  --bg: #06080e;
  --bg-soft: #0b0f19;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1f8;
  --muted: #98a1b8;
  --accent: #10b981;
  --accent-2: #22d3ee;
  --violet: #7c5cff;
  --danger: #fb7185;
  --warn: #fbbf24;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --grad: linear-gradient(120deg, #10b981, #22d3ee 60%, #7c5cff);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 背景光晕：用两团柔和径向渐变营造纵深，纯 CSS 无图片 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(760px 520px at 12% -8%, rgba(124, 92, 255, 0.22), transparent 62%),
    radial-gradient(820px 520px at 88% 4%, rgba(34, 211, 238, 0.16), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgba(16, 185, 129, 0.12), transparent 65%);
  pointer-events: none;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.hidden {
  display: none !important;
}

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

.center {
  text-align: center;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------- 顶部导航 ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(6, 8, 14, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--grad);
  color: #04070d;
  font-size: 13px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 4px;
  flex: 1;
}

.nav-links a {
  padding: 7px 12px;
  border-radius: 9px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.16s, background 0.16s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 9px;
  padding: 7px 10px;
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
}

.lang-select option {
  background: var(--bg-soft);
}

.credit-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.credit-pill strong {
  color: var(--accent-2);
}

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 11px 18px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  background: var(--surface);
  color: var(--text);
  transition: transform 0.14s, background 0.18s, border-color 0.18s, opacity 0.18s;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--grad);
  color: #05080f;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.22);
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.06);
}

.btn-ghost {
  border-color: var(--border-strong);
}

.btn-ghost:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-block {
  width: 100%;
}

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

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.link {
  color: var(--accent-2);
  text-decoration: none;
  cursor: pointer;
}

/* 按钮形式的 .link 要去掉浏览器默认外观 */
button.link {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 13.5px;
}

.link:hover {
  text-decoration: underline;
}

/* ---------------- 卡片 / 徽章 ---------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(8px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  white-space: nowrap;
}

.badge-ok {
  color: var(--accent);
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.1);
}

.badge-warn {
  color: var(--warn);
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.1);
}

.badge-danger {
  color: var(--danger);
  border-color: rgba(251, 113, 133, 0.4);
  background: rgba(251, 113, 133, 0.1);
}

/* ---------------- 首屏 ---------------- */
.hero {
  padding: 78px 0 46px;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 62px);
  font-weight: 800;
  margin-bottom: 18px;
}

.hero-sub {
  max-width: 660px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 17.5px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-trust {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

/* 首屏视觉：三张渐变海报 + 浮动动画，纯 CSS */
.hero-visual {
  margin: 46px auto 0;
  max-width: 960px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  perspective: 1200px;
}

.shot {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #0b101c;
  animation: float 7s ease-in-out infinite;
}

.shot:nth-child(2) {
  animation-delay: -2.4s;
}

.shot:nth-child(3) {
  animation-delay: -4.8s;
}

.shot span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.04em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.shot--1 {
  background: linear-gradient(150deg, #0f766e, #065f46 45%, #1e1b4b);
}

.shot--2 {
  background: linear-gradient(150deg, #4c1d95, #7c5cff 50%, #0e7490);
}

.shot--3 {
  background: linear-gradient(150deg, #b45309, #be123c 50%, #1e1b4b);
}

.shot::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  animation: sweep 4.4s ease-in-out infinite;
}

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

@keyframes sweep {
  0% { transform: translateX(-60%) rotate(8deg) }
  100% { transform: translateX(60%) rotate(8deg) }
}

/* ---------------- 版块通用 ---------------- */
.section {
  padding: 76px 0;
  scroll-margin-top: 78px;
}

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

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 750;
  margin-bottom: 12px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16.5px;
}

.eyebrow {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 600;
}

/* 两个入口大卡 */
.entries {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: -34px;
}

.entry-card {
  position: relative;
  display: block;
  padding: 30px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.entry-card:hover {
  border-color: rgba(16, 185, 129, 0.5);
  transform: translateY(-3px);
}

.entry-card h3 {
  font-size: 22px;
  margin: 14px 0 8px;
}

.entry-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.entry-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 21px;
}

.entry-cta {
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
}

/* 特性网格 */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.feature-icon {
  font-size: 22px;
  margin-bottom: 10px;
}

.feature h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* 步骤 */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}

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

.step::before {
  content: "0" counter(step);
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.step h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* 展示墙 */
.showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.showcase .cell {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #0b101c;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
}

.showcase .cell::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.9;
}

.showcase .cell span {
  position: relative;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.cell-1::before { background: linear-gradient(160deg, #0f766e, #1e1b4b); }
.cell-2::before { background: linear-gradient(160deg, #7c5cff, #0e7490); }
.cell-3::before { background: linear-gradient(160deg, #be123c, #1e1b4b); }
.cell-4::before { background: linear-gradient(160deg, #b45309, #065f46); }

/* 评价 */
.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.review {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.review p {
  margin: 0 0 16px;
  font-size: 15px;
  color: #d9deeb;
}

.review footer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
}

.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad);
  color: #05080f;
  font-weight: 700;
  font-size: 13px;
}

/* ---------------- 定价 ---------------- */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  margin: 0 auto 34px;
}

.billing-toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
}

.billing-toggle button.is-active {
  background: var(--grad);
  color: #05080f;
  font-weight: 700;
}

.save-tag {
  font-size: 12px;
  color: var(--accent);
  margin-left: 6px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}

.plan {
  position: relative;
  padding: 28px 24px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s, border-color 0.2s;
}

.plan:hover {
  transform: translateY(-3px);
}

.plan.is-highlight {
  border-color: rgba(16, 185, 129, 0.55);
  background: linear-gradient(165deg, rgba(16, 185, 129, 0.12), rgba(124, 92, 255, 0.08));
  box-shadow: 0 22px 50px rgba(16, 185, 129, 0.16);
}

.plan-flag {
  position: absolute;
  top: -12px;
  left: 24px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--grad);
  color: #05080f;
}

.plan h3 {
  font-size: 20px;
}

.plan .plan-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  min-height: 40px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan-price strong {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.plan-price span {
  color: var(--muted);
  font-size: 14px;
}

.plan-credits {
  font-size: 14px;
  color: var(--accent-2);
  font-weight: 600;
}

.plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 14.5px;
  color: #d3d9e8;
}

.plan ul li {
  display: flex;
  gap: 9px;
}

.plan ul li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}

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

.topup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

/* FAQ */
.faq {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 16px 20px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
}

.faq p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* CTA 横幅 */
.cta-band {
  text-align: center;
  padding: 52px 30px;
  border-radius: 24px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: linear-gradient(140deg, rgba(16, 185, 129, 0.16), rgba(124, 92, 255, 0.14));
}

.cta-band h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 12px;
}

.cta-band p {
  margin: 0 0 24px;
  color: #d3d9e8;
}

/* ---------------- 页脚 ---------------- */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 46px 0 30px;
  background: rgba(255, 255, 255, 0.015);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 30px;
}

.footer h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 14px;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.footer a {
  color: #c3cad9;
  text-decoration: none;
  font-size: 14px;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

/* ---------------- 表单 ---------------- */
.field {
  display: block;
  margin-bottom: 14px;
}

.label {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 7px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(16, 185, 129, 0.7);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

.form-note {
  font-size: 13px;
  color: var(--muted);
  min-height: 20px;
  margin: 10px 0 0;
}

.form-note.error {
  color: var(--danger);
}

.form-note.ok {
  color: var(--accent);
}

/* 窄表单页（登录） */
.narrow {
  max-width: 430px;
  margin: 0 auto;
}

.auth-wrap {
  padding: 66px 20px 90px;
}

.auth-card {
  padding: 32px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(10px);
}

.auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
}

.auth-tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 14.5px;
  padding: 9px;
  border-radius: 8px;
  cursor: pointer;
}

.auth-tabs button.is-active {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
}

/* ---------------- 生成工具页 ---------------- */
.app-grid {
  display: grid;
  grid-template-columns: minmax(360px, 440px) 1fr;
  gap: 20px;
  padding: 26px 0 60px;
  align-items: start;
}

.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 14.5px;
  padding: 9px;
  border-radius: 8px;
  cursor: pointer;
}

.tabs button.is-active {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
}

.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.row-3 {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 1.3fr;
  gap: 12px;
  margin-top: 14px;
}

.segmented {
  display: flex;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
  background: rgba(0, 0, 0, 0.28);
}

.segmented button {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 12.5px;
  padding: 8px 4px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.segmented button.is-active {
  background: rgba(16, 185, 129, 0.18);
  color: var(--accent);
  font-weight: 600;
}

.dropzone {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 12px;
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.18s, background 0.18s;
}

.dropzone.is-over {
  border-color: var(--accent);
  background: rgba(16, 185, 129, 0.1);
}

.dropzone strong {
  display: block;
  font-size: 14.5px;
  font-weight: 500;
}

.dropzone small {
  color: var(--muted);
  font-size: 12.5px;
}

.dropzone-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.dropzone-preview img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.preview-name {
  flex: 1;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 历史记录条目 */
.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.16s, transform 0.16s;
}

.history-item:hover {
  border-color: rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

.history-item .history-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}

.advanced {
  margin-top: 14px;
}

.advanced summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
}

.advanced[open] summary {
  margin-bottom: 10px;
}

.hint {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card-head h2 {
  font-size: 17px;
}

.result-idle {
  text-align: center;
  padding: 46px 12px;
  color: var(--muted);
}

.progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--grad);
  transition: width 0.45s ease;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0 14px;
}

.media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #04060c;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  min-height: 180px;
}

.media video,
.media img {
  width: 100%;
  max-height: 62vh;
  display: block;
  object-fit: contain;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0;
}

.meta span {
  font-size: 12.5px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 10px;
  background: var(--surface);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.actions .btn-primary {
  flex: 1;
  min-width: 150px;
}

.alert {
  border: 1px solid rgba(251, 113, 133, 0.4);
  background: rgba(251, 113, 133, 0.1);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 14px;
}

.alert strong {
  display: block;
  color: var(--danger);
  margin-bottom: 6px;
}

.alert p {
  margin: 0;
  font-size: 14px;
  color: #ffd9df;
  word-break: break-word;
}

/* 账户页 */
.account-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  padding: 30px 0 70px;
  align-items: start;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.stat {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.stat span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.stat strong {
  font-size: 26px;
  font-weight: 750;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
}

tr:last-child td {
  border-bottom: 0;
}

.empty {
  padding: 30px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 16px);
  background: #12172a;
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
  max-width: min(620px, 90vw);
  z-index: 90;
  box-shadow: var(--shadow);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.error {
  border-color: rgba(251, 113, 133, 0.55);
  color: #ffd9df;
}

/* 响应式 */
@media (max-width: 980px) {
  .app-grid,
  .account-grid,
  .grid-3,
  .steps,
  .reviews,
  .plans,
  .topups,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .entries,
  .hero-visual {
    grid-template-columns: 1fr;
  }

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

  .stat-row {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 52px;
  }

  .section {
    padding: 54px 0;
  }

  .row-3 {
    grid-template-columns: 1fr;
  }
}
