/* ═══════════════════════════════════════════════════════════
   德学漫画官网 —— 对齐 uniapp 浮动窗口 + 立体感设计系统
   主题：classic_blue
   ═══════════════════════════════════════════════════════════ */

:root {
  --theme-primary: #2563eb;
  --theme-primary-dark: #1d4ed8;
  --theme-page-bg: #eef2f7;
  --theme-card-bg: #ffffff;
  --theme-text: #1e293b;
  --theme-text-secondary: #64748b;
  --theme-text-hint: #94a3b8;
  --theme-border: #e2e8f0;
  --theme-border-subtle: rgba(15, 23, 42, 0.05);
  --theme-border-float: rgba(255, 255, 255, 0.95);
  --theme-muted-bg: #f1f5f9;
  --theme-radius-sm: 12px;
  --theme-radius-md: 16px;
  --theme-radius-lg: 20px;
  --theme-radius-xl: 24px;
  --theme-radius-2xl: 28px;
  --theme-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --theme-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --theme-shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 1);
  --theme-shadow-float: 0 12px 32px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
  --theme-shadow-window: 0 20px 56px rgba(15, 23, 42, 0.16), 0 8px 20px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
  --theme-shadow-primary: 0 16px 40px rgba(37, 99, 235, 0.32), 0 4px 12px rgba(37, 99, 235, 0.16);
  --theme-page-glow: radial-gradient(ellipse 120% 70% at 50% -15%, rgba(37, 99, 235, 0.14), transparent 62%);
  --theme-float-overlap: -56px;
  --max: 1520px;
  --max-wide: 1680px;
  --content-pad: clamp(1rem, 3vw, 2.5rem);

  /* 兼容旧变量名 */
  --bg: var(--theme-page-bg);
  --surface: var(--theme-card-bg);
  --surface-2: var(--theme-muted-bg);
  --text: var(--theme-text);
  --muted: var(--theme-text-secondary);
  --accent: var(--theme-primary);
  --accent-2: #0ea5e9;
  --border: var(--theme-border);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--theme-page-bg);
  background-image: var(--theme-page-glow);
  background-size: 100% 480px;
  background-repeat: no-repeat;
  color: var(--theme-text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--theme-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--theme-primary-dark);
}

.container {
  width: min(var(--max), calc(100% - var(--content-pad) * 2));
  margin: 0 auto;
}

.container--wide {
  width: min(var(--max-wide), calc(100% - var(--content-pad) * 2));
}

/* ── 背景装饰 ── */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-orbs::before,
.bg-orbs::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: orbFloat 18s ease-in-out infinite;
}

.bg-orbs::before {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
  background: rgba(37, 99, 235, 0.12);
}

.bg-orbs::after {
  width: 320px;
  height: 320px;
  bottom: 10%;
  left: -60px;
  background: rgba(14, 165, 233, 0.10);
  animation-delay: -9s;
}

.bg-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background:
    radial-gradient(ellipse 80% 50% at 10% 20%, rgba(37, 99, 235, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(124, 58, 237, 0.06), transparent 50%);
  animation: meshShift 22s ease-in-out infinite alternate;
}

@keyframes meshShift {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.04) translate(-2%, 1%); }
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -16px) scale(1.06); }
}

/* ── 顶栏 ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06), inset 0 -1px 0 rgba(255, 255, 255, 0.8);
  transition: box-shadow 0.35s ease, background 0.35s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--theme-shadow-float);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.9rem 0;
}

.nav {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

.nav a {
  color: var(--theme-text-secondary);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  white-space: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--theme-text);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.brand:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: contain;
  background: #fff;
  flex-shrink: 0;
  box-shadow: var(--theme-shadow-primary);
  animation: brandPulse 4s ease-in-out infinite;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--theme-primary), var(--theme-primary-dark));
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: var(--theme-shadow-primary);
  animation: brandPulse 4s ease-in-out infinite;
}

@keyframes brandPulse {
  0%, 100% { box-shadow: var(--theme-shadow-primary); }
  50% { box-shadow: 0 20px 48px rgba(37, 99, 235, 0.42), 0 6px 16px rgba(37, 99, 235, 0.22); }
}

.nav a:hover {
  color: var(--theme-primary);
  background: rgba(37, 99, 235, 0.08);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.nav a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-primary-dark));
  box-shadow: var(--theme-shadow-primary);
  transform: translateY(-1px);
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--theme-text);
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--theme-text-hint);
}

/* ── 滚动购买动态（参考德学阁 API 顶栏） ── */
.purchase-ticker-wrap {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(37, 99, 235, 0.08);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.purchase-ticker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0.55rem clamp(1rem, 3vw, 2.5rem);
  overflow: hidden;
}

.purchase-ticker__label {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--theme-primary);
  white-space: nowrap;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
}

.purchase-ticker__viewport {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.purchase-ticker__track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: purchaseTickerScroll 48s linear infinite;
}

.purchase-ticker__track:hover {
  animation-play-state: paused;
}

.purchase-ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
  font-size: 0.84rem;
  color: var(--theme-text-secondary);
}

.purchase-ticker__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.16));
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
  flex-shrink: 0;
}

.purchase-ticker__user {
  font-weight: 600;
  color: var(--theme-text);
}

.purchase-ticker__detail {
  color: var(--theme-primary-dark);
  font-weight: 600;
}

.purchase-ticker__time {
  color: var(--theme-text-hint);
  font-size: 0.78rem;
}

@keyframes purchaseTickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .purchase-ticker__track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    gap: 0.75rem 1.5rem;
  }
}

@media (max-width: 720px) {
  .purchase-ticker__label {
    display: none;
  }
  .purchase-ticker {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }
  .purchase-ticker__item {
    font-size: 0.78rem;
  }
}

/* ── Hero 渐变顶栏（uniapp theme-hero） ── */
.hero-banner {
  background: linear-gradient(145deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100%);
  color: #fff;
  padding: 3.5rem 0 5.5rem;
  border-radius: 0 0 var(--theme-radius-2xl) var(--theme-radius-2xl);
  box-shadow: var(--theme-shadow-primary);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.hero-banner::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -30%;
  width: 60%;
  height: 200%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.12) 50%, transparent 60%);
  animation: heroShimmer 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroShimmer {
  0%, 100% { transform: translateX(-20%) rotate(8deg); opacity: 0; }
  15% { opacity: 1; }
  50% { transform: translateX(180%) rotate(8deg); opacity: 1; }
  65% { opacity: 0; }
}

.hero-banner .container {
  position: relative;
  z-index: 1;
}

.hero-banner h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 1rem;
  animation: fadeSlideUp 0.7s ease-out both;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.hero-banner .lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  max-width: min(820px, 90%);
  animation: fadeSlideUp 0.7s ease-out 0.1s both;
}

.hero-banner .tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  animation: fadeSlideUp 0.7s ease-out both;
}

/* ── 浮动内容层 ── */
.float-stack {
  position: relative;
  z-index: 5;
  margin-top: var(--theme-float-overlap);
  padding-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.float-panel,
.hero-card,
.card,
.price-card {
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  border-radius: var(--theme-radius-xl);
  border: 1px solid var(--theme-border-float);
  box-shadow:
    var(--theme-shadow-window),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.32s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.float-panel {
  padding: 1.75rem 2rem;
}

.section-pad {
  padding: 1.75rem 2rem;
}

.float-panel:hover,
.card:hover,
.price-card:hover {
  transform: translateY(-6px) rotateX(1deg);
  box-shadow:
    0 28px 72px rgba(15, 23, 42, 0.16),
    0 12px 28px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.float-panel-sm {
  border-radius: var(--theme-radius-lg);
  box-shadow: var(--theme-shadow-float);
  border: 1px solid var(--theme-border-subtle);
  background: var(--theme-card-bg);
}

/* ── 入场动画 ── */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* ── Hero 网格 ── */
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  align-items: start;
}

.hero-card {
  padding: 1.5rem;
}

.hero-card h3 {
  margin-bottom: 0.85rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.hero-card ul {
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.hero-card li {
  display: flex;
  gap: 0.5rem;
  color: var(--theme-text-secondary);
  font-size: 0.92rem;
}

.hero-card li::before {
  content: "✓";
  color: var(--theme-primary);
  font-weight: 700;
  flex-shrink: 0;
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-primary-dark));
  color: #fff;
  box-shadow: var(--theme-shadow-primary);
}

.btn-primary:hover {
  filter: brightness(1.06);
  color: #fff;
}

.btn-secondary {
  background: var(--theme-card-bg);
  border-color: var(--theme-border);
  color: var(--theme-text);
  box-shadow: var(--theme-shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--theme-primary);
  color: var(--theme-primary);
  box-shadow: var(--theme-shadow-float);
}

/* ── CTA 快捷入口（首页双卡片） ── */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cta-tile {
  padding: 1.5rem 1.25rem;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.cta-tile.primary {
  background: linear-gradient(145deg, var(--theme-primary), var(--theme-primary-dark));
  border-color: transparent;
  box-shadow: var(--theme-shadow-primary);
  color: #fff;
}

.cta-tile.primary .cta-sub,
.cta-tile.primary .cta-title {
  color: rgba(255, 255, 255, 0.92);
}

.cta-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.cta-title {
  font-size: 1.05rem;
  font-weight: 700;
  display: block;
  color: var(--theme-text);
}

.cta-sub {
  font-size: 0.82rem;
  color: var(--theme-text-hint);
  margin-top: 0.25rem;
  display: block;
}

/* ── 区块 ── */
.section {
  padding: 0;
}

.section-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: var(--theme-text);
}

.section-desc {
  color: var(--theme-text-secondary);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

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

.card {
  padding: 1.35rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
  background: rgba(37, 99, 235, 0.10);
  box-shadow: var(--theme-shadow-sm);
}

.card h3 {
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.card p {
  color: var(--theme-text-secondary);
  font-size: 0.92rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.pricing-grid--6 .price-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.price-card .tier-name {
  display: block;
  color: var(--theme-primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.price-card .balance-pill {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.18);
  color: var(--theme-primary);
  font-size: 0.82rem;
  font-weight: 600;
}

.price-card .balance-pill.hot {
  background: rgba(255, 80, 0, 0.08);
  border-color: rgba(255, 80, 0, 0.25);
  color: #ea580c;
}

.price-card .ribbon-hot {
  position: absolute;
  top: 14px;
  right: -28px;
  padding: 4px 32px;
  background: linear-gradient(90deg, #ff5000, #ff8800);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  transform: rotate(45deg);
  letter-spacing: 0.05em;
}

.price-card .btn-buy {
  display: block;
  margin-top: auto;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-primary-dark));
  box-shadow: var(--theme-shadow-primary);
  transition: transform 0.2s, box-shadow 0.2s;
}

.price-card .btn-buy:hover {
  transform: translateY(-2px);
}

.price-card .btn-buy.featured {
  background: linear-gradient(135deg, #ff5000, #ff8800);
}

.pricing-cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.pricing-cta-bar strong {
  display: block;
  font-size: 1rem;
  color: var(--theme-text);
}

.pricing-cta-bar p {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--theme-text-secondary);
  line-height: 1.5;
}

.pricing-cta-bar .btn-buy {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-primary-dark));
  white-space: nowrap;
}

.pricing-cta-bar .btn-buy.featured {
  background: linear-gradient(135deg, #6366f1, #a855f7);
}

.price-card {
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.25);
}

.price-card.featured {
  border-color: rgba(255, 80, 0, 0.35);
  background: linear-gradient(180deg, rgba(255, 80, 0, 0.05) 0%, var(--theme-card-bg) 55%);
  box-shadow: var(--theme-shadow-primary);
  transform: scale(1.02);
}

.price-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
}

.badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-primary-dark));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  box-shadow: var(--theme-shadow-primary);
}

.price {
  font-size: 2rem;
  font-weight: 800;
  margin: 0.5rem 0;
  background: linear-gradient(135deg, var(--theme-primary), #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.price small {
  font-size: 0.95rem;
  color: var(--theme-text-secondary);
  font-weight: 500;
}

.price-card ul {
  list-style: none;
  margin-top: 1rem;
  margin-bottom: 1rem;
  display: grid;
  gap: 0.45rem;
  color: var(--theme-text-secondary);
  font-size: 0.9rem;
}

.price-card ul li::before {
  content: '✓';
  color: #10b981;
  font-weight: 700;
  margin-right: 0.45rem;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--theme-card-bg);
  border: 1px solid var(--theme-border-subtle);
  border-radius: var(--theme-radius-lg);
  overflow: hidden;
  box-shadow: var(--theme-shadow-window);
}

.info-table th,
.info-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--theme-border-subtle);
  text-align: left;
  vertical-align: top;
}

.info-table th {
  width: 28%;
  color: var(--theme-text-secondary);
  font-weight: 600;
  background: var(--theme-muted-bg);
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

.notice {
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: var(--theme-radius-lg);
  padding: 1rem 1.25rem;
  color: var(--theme-text-secondary);
  font-size: 0.92rem;
  box-shadow: var(--theme-shadow-sm);
}

.notice code {
  background: rgba(37, 99, 235, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  font-size: 0.88em;
}

.site-footer {
  margin-top: 1rem;
  padding: 2rem 0 2.5rem;
  color: var(--theme-text-secondary);
  font-size: 0.88rem;
}

.footer-panel {
  padding: 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  font-weight: 500;
}

/* ── 兼容旧 hero class ── */
.hero {
  padding: 0;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero .lead {
  color: var(--theme-text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.h5-box {
  border: 1px dashed rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.04);
  border-radius: var(--theme-radius-lg);
  box-shadow: var(--theme-shadow-sm);
}

/* ── 下载页 ── */
.download-list {
  display: grid;
  gap: 1.25rem;
}

.download-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(145deg, #ffffff, #f1f5f9);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--theme-radius-xl);
  box-shadow: var(--theme-shadow-window);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
  animation: fadeSlideUp 0.6s ease-out both;
}

.download-card:hover {
  transform: translateY(-8px) scale(1.005);
  box-shadow: 0 32px 80px rgba(37, 99, 235, 0.14), 0 12px 32px rgba(15, 23, 42, 0.1);
}

.download-card .meta {
  color: var(--theme-text-secondary);
  font-size: 0.92rem;
  margin-top: 0.4rem;
  line-height: 1.6;
}

.download-card .note {
  color: var(--theme-text-hint);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.download-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
}

.download-card .dl-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

.platform-tag {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.1));
  color: var(--theme-primary);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

.platform-tag--android {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(251, 191, 36, 0.1));
  color: #d97706;
}

.size-badge {
  color: var(--theme-primary);
  font-size: 0.95rem;
  font-weight: 700;
}

.btn-download {
  min-width: 120px;
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
}

#loading {
  color: var(--theme-text-hint);
  padding: 2rem 0;
  text-align: center;
}

/* ── 帮助页 ── */
.help-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.75rem;
}

.help-toc a {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--theme-card-bg);
  border: 1px solid var(--theme-border-subtle);
  color: var(--theme-text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--theme-shadow-sm);
  transition: all 0.25s ease;
}

.help-toc a:hover {
  color: var(--theme-primary);
  transform: translateY(-3px);
  box-shadow: var(--theme-shadow-window);
  border-color: rgba(37, 99, 235, 0.25);
  text-decoration: none;
}

.help-block {
  margin-bottom: 1.25rem;
  scroll-margin-top: 5.5rem;
  padding: 1.5rem 1.75rem;
}

.help-block h2 {
  font-size: 1.3rem;
  margin-bottom: 0.85rem;
  color: var(--theme-primary);
  font-weight: 800;
}

.help-block ol {
  padding-left: 1.35rem;
  color: var(--theme-text-secondary);
}

.help-block li {
  margin-bottom: 0.55rem;
  line-height: 1.65;
}

/* ── 子页宽屏 Hero ── */
.hero-banner--sub {
  padding: 3.75rem 0 6.25rem;
}

.subpage-main {
  gap: 1.5rem;
}

.info-table tr {
  transition: background 0.2s ease;
}

.info-table tbody tr:hover td,
.info-table tbody tr:hover th {
  background: rgba(37, 99, 235, 0.04);
}

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

  [data-animate] {
    opacity: 1;
    transform: none;
  }
}

/* ═══ 首页宽屏增强 ═══ */
.hero-banner--wide {
  padding: 3.5rem 0 6rem;
}

.hero-wide {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy .hero-accent {
  font-size: 0.72em;
  font-weight: 700;
  opacity: 0.95;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--theme-radius-md);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
}

.stat-item strong {
  color: #fff;
  font-size: 0.88rem;
}

.stat-icon {
  font-size: 1.1rem;
}

.btn-on-hero {
  background: rgba(255, 255, 255, 0.95);
  border-color: transparent;
}

.btn-on-hero:hover {
  background: #fff;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
  padding: 0.5rem 0;
}

.phone-frame {
  width: min(360px, 88vw);
  padding: 14px 12px 18px;
  border-radius: 36px;
  background: linear-gradient(160deg, #1e293b, #0f172a);
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.38), inset 0 0 0 2px rgba(255, 255, 255, 0.12);
  position: relative;
  z-index: 2;
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.phone-frame img {
  display: block;
  width: 100%;
  border-radius: 24px;
  background: #fff;
}

.phone-frame--sm {
  width: min(200px, 42vw);
}

.hero-float-card {
  position: absolute;
  right: -2%;
  bottom: 10%;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.05rem 1.25rem;
  max-width: 280px;
  animation: float 5s ease-in-out infinite;
  z-index: 3;
}

.hero-float-card strong {
  font-size: 1.05rem;
}

.hero-float-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--theme-text-hint);
}

.mini-icon {
  font-size: 2rem;
}

.cta-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.studio-band {
  padding: 2rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(124, 58, 237, 0.05));
}

.studio-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.pill-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--theme-primary);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.studio-copy h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.studio-screens {
  position: relative;
  min-height: 360px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-offset {
  position: absolute;
  right: 0;
  top: 8%;
  transform: rotate(4deg);
  opacity: 0.92;
}

.hero-grid-wide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.section-pad {
  padding: 1.75rem 2rem;
}

.section-head {
  margin-bottom: 1.25rem;
}

.section-icon {
  margin-right: 0.35rem;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.feature-list li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: var(--theme-text-secondary);
  font-size: 0.92rem;
}

.feature-list li::before {
  content: "✓";
  color: var(--theme-primary);
  font-weight: 700;
  flex-shrink: 0;
}

.feature-list--icons li::before {
  content: none;
}

.li-icon {
  flex-shrink: 0;
  font-size: 1.05rem;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.wf-step {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.75rem;
  border-radius: var(--theme-radius-md);
  background: var(--theme-muted-bg);
  border: 1px solid var(--theme-border-subtle);
}

.wf-step span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-primary-dark));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.wf-step p {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--theme-text-hint);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem 1rem;
  padding: 0.5rem 0;
}

@media (min-width: 768px) {
  .screenshot-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem 1.25rem;
  }
}

@media (min-width: 1200px) {
  .screenshot-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.shot-card {
  margin: 0;
  text-align: center;
}

.shot-card img {
  width: 100%;
  border-radius: 20px;
  border: 3px solid #1e293b;
  box-shadow: var(--theme-shadow-float);
  background: #fff;
}

.shot-card figcaption {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  color: var(--theme-text-secondary);
  font-weight: 600;
}

.grid-3--wide {
  grid-template-columns: repeat(3, 1fr);
}

.card-icon--blue { background: rgba(37, 99, 235, 0.12); }
.card-icon--cyan { background: rgba(14, 165, 233, 0.12); }
.card-icon--violet { background: rgba(124, 58, 237, 0.12); }
.card-icon--amber { background: rgba(245, 158, 11, 0.12); }
.card-icon--rose { background: rgba(244, 63, 94, 0.12); }
.card-icon--green { background: rgba(34, 197, 94, 0.12); }

@media (min-width: 1200px) {
  .hero-banner h1 {
    font-size: 3.4rem;
  }

  .hero-banner .lead {
    max-width: 720px;
    font-size: 1.1rem;
  }
}

@media (max-width: 1100px) {
  .hero-wide,
  .studio-grid,
  .hero-grid-wide,
  .cta-grid--4 {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
    margin-top: 0.5rem;
  }

  .hero-float-card {
    right: 8%;
    bottom: 4%;
  }

  .studio-screens {
    min-height: 300px;
  }

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

@media (max-width: 900px) {
  .hero-grid,
  .grid-3,
  .grid-3--wide,
  .pricing-grid,
  .footer-grid,
  .cta-grid,
  .cta-grid--4 {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .workflow-steps {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    width: 100%;
  }

  .price-card.featured {
    transform: none;
  }

  .hero-banner {
    padding-bottom: 4.5rem;
  }

  .phone-offset {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin-top: 1rem;
  }

  .studio-screens {
    flex-direction: column;
  }
}

@media (min-width: 1400px) {
  :root {
    --max: 1600px;
    --max-wide: 1760px;
  }

  .hero-banner h1 {
    font-size: 3.6rem;
  }

  .hero-visual {
    min-height: 580px;
  }

  .phone-frame {
    width: min(400px, 42vw);
    padding: 16px 14px 20px;
    border-radius: 40px;
  }

  .phone-frame img {
    border-radius: 26px;
  }

  .hero-float-card {
    max-width: 300px;
    padding: 1.15rem 1.35rem;
    right: -4%;
  }

  .hero-float-card strong {
    font-size: 1.1rem;
  }

  .mini-icon {
    font-size: 2.2rem;
  }

  .grid-3 {
    gap: 1.35rem;
  }

  .download-card {
    padding: 1.75rem 2.25rem;
  }

  .float-panel,
  .section-pad {
    padding: 2rem 2.25rem;
  }
}

/* FAQ / SEO article */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.faq-item {
  border-bottom: 1px solid var(--theme-border);
  padding: 0.95rem 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--theme-text);
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--theme-primary);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p,
.faq-item ul {
  margin-top: 0.65rem;
  color: var(--theme-text-secondary);
}

.faq-item a {
  font-weight: 600;
}

.article-body h2 {
  font-size: 1.25rem;
  margin: 1.75rem 0 0.75rem;
}

.article-body p {
  color: var(--theme-text-secondary);
  margin-bottom: 0.9rem;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1rem 1.2rem;
  color: var(--theme-text-secondary);
}

.icp-link {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--theme-text-hint);
  font-size: 0.85rem;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.75rem;
}
