/*  DockGo 官网样式 —— macOS 系统设置视觉基线
 *  4 空格缩进；原生控件 + 语义化颜色；亮/暗自适应
 */

/* ============ 变量 ============ */
:root {
  --bg: #f5f5f7;
  --bg-alt: #ececf0;
  --card: #ffffff;
  --card-2: #fbfbfd;
  --text: #1d1d1f;
  --text-2: #515154;
  --text-3: #86868b;
  --border: rgba(0, 0, 0, 0.09);
  --border-strong: rgba(0, 0, 0, 0.16);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-soft: rgba(0, 113, 227, 0.1);
  --danger: #ff3b30;
  --green: #34c759;
  --orange: #ff9500;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.22);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-border: rgba(255, 255, 255, 0.55);
  --nav-h: 52px;
  --container: 1240px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  color-scheme: light;
}

/* 手动深色（data-theme="dark"）；未选择时（无 data-theme）跟随系统 */
:root[data-theme='dark'] {
  --bg: #1e1e20;
  --bg-alt: #161617;
  --card: #2c2c2e;
  --card-2: #242426;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #7d7d82;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);
  --accent: #0a84ff;
  --accent-hover: #409cff;
  --accent-soft: rgba(10, 132, 255, 0.16);
  --danger: #ff453a;
  --green: #30d158;
  --orange: #ff9f0a;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.65);
  --glass: rgba(44, 44, 46, 0.66);
  --glass-border: rgba(255, 255, 255, 0.12);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']):not([data-theme='dark']) {
    --bg: #1e1e20;
    --bg-alt: #161617;
    --card: #2c2c2e;
    --card-2: #242426;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #7d7d82;
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.2);
    --accent: #0a84ff;
    --accent-hover: #409cff;
    --accent-soft: rgba(10, 132, 255, 0.16);
    --danger: #ff453a;
    --green: #30d158;
    --orange: #ff9f0a;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.65);
    --glass: rgba(44, 44, 46, 0.66);
    --glass-border: rgba(255, 255, 255, 0.12);
    color-scheme: dark;
  }
}

/* ============ 基础 ============ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family:
    -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

.container.narrow {
  max-width: 760px;
}

.center {
  text-align: center;
}

.glass {
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--glass-border);
}

.glass-strong {
  background: var(--glass);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border: 1px solid var(--glass-border);
}

/* ============ 导航 ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-brand:hover {
  text-decoration: none;
  opacity: 0.8;
}

.nav-brand img {
  border-radius: 7px;
}

.nav-actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 980px;
  padding: 5px 15px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.18s var(--ease);
}

.nav-cta:hover {
  background: var(--accent-hover);
}

/* 语言 / 主题切换 */
.lang-switch,
.theme-switch {
  position: relative;
}

.lang-button,
.theme-button {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  color: var(--text-2);
  padding: 5px 7px;
  border-radius: 7px;
  font-size: 13px;
}

.lang-button:hover,
.theme-button:hover {
  background: var(--border);
}

/* 主题按钮图标：按实际生效主题显示太阳 / 月亮（无 data-theme 时由系统媒体查询决定） */
.theme-button .icon-sun,
.theme-button .icon-moon {
  display: none;
}

:root[data-theme='dark'] .theme-button .icon-moon,
:root[data-theme='light'] .theme-button .icon-sun {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']):not([data-theme='dark']) .theme-button .icon-moon {
    display: block;
  }
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme='light']):not([data-theme='dark']) .theme-button .icon-sun {
    display: block;
  }
}

.lang-menu,
.theme-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  min-width: 150px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 5px;
  display: none;
  max-height: 70vh;
  overflow-y: auto;
}

.lang-menu.open,
.theme-menu.open {
  display: block;
}

.lang-menu button,
.theme-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: start;
  background: none;
  border: 0;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 13.5px;
  color: var(--text);
}

.lang-menu button:hover,
.theme-menu button:hover {
  background: var(--accent-soft);
}

.lang-menu button.active,
.theme-menu button.active {
  color: var(--accent);
}

.lang-menu button.active::after,
.theme-menu button.active::after {
  content: '✓';
  font-size: 12px;
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 980px;
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--text);
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  transition:
    transform 0.15s var(--ease),
    background 0.18s var(--ease),
    border-color 0.18s var(--ease),
    opacity 0.18s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  background: var(--bg-alt);
  text-decoration: none;
}

.btn:active {
  transform: scale(0.97);
}

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

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

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

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--accent);
}

.btn-ghost:hover {
  background: var(--accent-soft);
}

.btn-lg {
  padding: 11px 24px;
  font-size: 15px;
  border-radius: 980px;
}

/* ============ Hero ============ */
.hero {
  padding: calc(var(--nav-h) + 70px) 0 30px;
  background: radial-gradient(1100px 480px at 50% -120px, var(--accent-soft), transparent 70%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: center;
  gap: 40px;
  text-align: start;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

/* 右侧 MacBook 样机：视频精确嵌入屏幕区域（坐标按样机图实测） */
.hero-laptop {
  position: relative;
  width: 100%;
  max-width: 720px;
}

.hero-laptop-img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 44px rgba(0, 0, 0, 0.22));
}

.hero-laptop-video {
  position: absolute;
  /* 样机图中屏幕区域实测：左 9.27% / 顶 1.0%，屏幕宽 81.30% / 高 88.5%（下方为转轴与底座） */
  /* 上、左、右再内缩 5px；底边不动，故高度同步减 5px */
  top: calc(1% + 5px);
  left: calc(9.27% + 5px);
  width: calc(81.3% - 10px);
  height: calc(88.5% - 5px);
  border-radius: 1.5% / 2.2%;
  object-fit: cover;
  background: #000;
  cursor: zoom-in;
}

.hero-laptop-video:fullscreen {
  object-fit: contain;
  cursor: zoom-out;
}

.hero-laptop-notch {
  position: absolute;
  top: 1%;
  left: 50%;
  width: 13%;
  height: 2.4%;
  transform: translateX(-50%);
  background: #000;
  border-radius: 0 0 28% 28% / 0 0 100% 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid transparent;
  border-radius: 980px;
  padding: 4px 13px;
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.hero-badge {
  margin-bottom: 0;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: dg-dot-pulse 2.2s ease-in-out infinite;
}

/* 试用徽章：绿色软底，区别于发布徽章 */
.hero-badge--trial {
  color: #1d7d4f;
  background: rgba(52, 199, 89, 0.12);
  gap: 6px;
}

.hero-badge--trial svg {
  width: 12px;
  height: 12px;
}

@keyframes dg-dot-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 var(--accent-soft);
  }
  50% {
    box-shadow: 0 0 0 6px transparent;
  }
}

.hero-title {
  font-size: clamp(38px, 6.4vw, 64px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
  /* 渐变文字：主色光带周期性缓慢扫过 */
  background: linear-gradient(
    105deg,
    var(--text) 0%,
    var(--text) 38%,
    var(--accent) 50%,
    var(--text) 62%,
    var(--text-2) 100%
  );
  background-size: 260% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: dg-title-sheen 7s var(--ease) 0.9s 1 both;
}

@keyframes dg-title-sheen {
  0% {
    background-position: 100% 0;
  }
  55%,
  100% {
    background-position: 0 0;
  }
}

/* 标题着重词：独立渐变文字 + 光带扫过 + 入场后轻微呼吸 */
.hero-title-accent {
  position: relative;
  display: inline-block;
  background: linear-gradient(100deg, var(--accent) 0%, #63a4ff 38%, #0a84ff 55%, var(--accent) 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: dg-accent-sheen 4.5s var(--ease) 1.6s infinite;
}

.hero-title-accent::after {
  content: '';
  position: absolute;
  left: 2%;
  right: 2%;
  bottom: 0.08em;
  height: 0.09em;
  border-radius: 980px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  background-size: 200% 100%;
  opacity: 0.55;
  transform: scaleX(0.4);
  animation: dg-accent-underline 3.2s var(--ease) 2s infinite;
}

@keyframes dg-accent-sheen {
  0% {
    background-position: 0% 0;
  }
  55%,
  100% {
    background-position: 100% 0;
  }
}

@keyframes dg-accent-underline {
  0%,
  100% {
    transform: scaleX(0.4);
    opacity: 0.35;
    background-position: 100% 0;
  }
  50% {
    transform: scaleX(1);
    opacity: 0.7;
    background-position: 0 0;
  }
}

.hero-sub {
  margin-top: 18px;
  max-width: 620px;
  font-size: clamp(15.5px, 2vw, 18px);
  color: var(--text-2);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.hero-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 22px;
}

.hero-meta li {
  font-size: 12.5px;
  color: var(--text-3);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 980px;
  padding: 4px 12px;
  transition:
    transform 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.hero-meta li:hover {
  transform: translateY(-2px);
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.hero-meta--center {
  justify-content: center;
  margin-bottom: 8px;
}

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

/* ============ 通用区块 ============ */
.section {
  padding: 76px 0;
}

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

.section-head {
  text-align: center;
  margin-bottom: 42px;
}

.section-head h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-head p {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 15.5px;
}

.section-head--left {
  text-align: start;
  margin-bottom: 22px;
}

/* 功能卡 */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* 三张卡片的内容区：3 列等宽、整行居中 */
.feat-grid-3 {
  grid-template-columns: repeat(3, 1fr);
  max-width: 960px;
  margin: 0 auto;
}

.feat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  transition:
    transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.feat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.feat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--c) 14%, transparent);
  color: var(--c);
  margin-bottom: 14px;
}

.feat-icon svg {
  width: 20px;
  height: 20px;
}

.feat-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.feat-card p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
}

/* 数据条 */
.stats-section {
  padding: 56px 0;
}

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

.stat b {
  display: block;
  font-size: clamp(44px, 6vw, 64px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--text)));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-fps {
  font-size: 0.42em;
  font-weight: 600;
}

.stat > span {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  color: var(--text-2);
}

/* FAQ */
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

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

.faq summary::after {
  content: '+';
  color: var(--text-3);
  font-size: 20px;
  font-weight: 300;
  flex: none;
  transition: transform 0.2s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--text-2);
}

/* ============ 创作者计划 ============ */
#creators .section-head {
  text-align: center;
}

.cr-pill {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 980px;
}

/* 标题 + 右上角倾斜贴纸徽章 */
.cr-title-badge {
  position: relative;
  display: inline-block;
}

/* 名额有限 · 即将截止 贴纸徽章 */
.cr-deadline {
  position: absolute;
  top: -14px;
  inset-inline-end: -62px;
  display: inline-flex;
  align-items: center;
  padding: 6px 18px;
  font-size: clamp(13px, 1.8vw, 16px);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(120deg, #ff7a3c 0%, #ff4d6d 100%);
  border-radius: 980px;
  box-shadow: 0 6px 18px rgba(255, 77, 109, 0.4);
  transform: rotate(6deg);
  transform-origin: center;
  white-space: nowrap;
}

/* 对话气泡小尖角 */
.cr-deadline::after {
  content: '';
  position: absolute;
  inset-inline-start: 24px;
  bottom: -8px;
  border-width: 10px 6px 0 6px;
  border-style: solid;
  border-color: #f7505f transparent transparent transparent;
}

[dir='rtl'] .cr-deadline {
  transform: rotate(-6deg);
}

/* 表单底部：直接购买入口（按钮严格居中，提示文字居于按钮一侧） */
.cr-form-buy {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 14px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.cr-form-buy-or {
  justify-self: end;
  font-size: 13px;
  color: var(--text-3);
}

/* 购买获得授权：贴纸风格 */
.cr-buy-wrap {
  display: inline-flex;
  transition: transform 0.3s var(--ease);
}

.cr-buy-wrap:hover {
  transform: translateY(-3px) scale(1.03);
}

.btn-cr-buy {
  padding: 13px 32px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(120deg, #ff7a3c 0%, #ff4d6d 100%) !important;
  border: none;
  border-radius: 980px;
  box-shadow: 0 10px 28px rgba(255, 77, 109, 0.42);
}

@media (max-width: 600px) {
  .cr-deadline {
    top: -18px;
    inset-inline-end: -14px;
    padding: 5px 14px;
  }

  .cr-form-buy {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .cr-form-buy-or {
    justify-self: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cr-deadline,
  .cr-buy-wrap,
  .cr-buy-wrap:hover {
    transform: none;
  }
}

.cr-rewards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.cr-reward {
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}

.cr-reward-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 980px;
  padding: 3px 10px;
  margin-bottom: 10px;
}

.cr-reward h3 {
  font-size: 17px;
  font-weight: 650;
  margin-bottom: 6px;
}

.cr-reward p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-2);
}

.cr-rules {
  margin-top: 16px;
  border-radius: var(--radius-lg);
  padding: 24px 26px;
}

.cr-rules h3,
.cr-how h3,
.cr-form h3 {
  font-size: 18px;
  font-weight: 650;
}

.cr-rules-sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-3);
}

.cr-rule-list {
  list-style: none;
  counter-reset: crrule;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cr-rule-list li {
  counter-increment: crrule;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 14px;
  line-height: 1.65;
}

.cr-rule-list li::before {
  content: counter(crrule);
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cr-rule-list b {
  grid-column: 2;
  grid-row: 1;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.cr-rule-list span {
  grid-column: 2;
  grid-row: 2;
  color: var(--text-2);
}

.cr-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.6;
}

.cr-how {
  margin-top: 36px;
}

.cr-how h3 {
  text-align: center;
}

.cr-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.cr-step {
  text-align: center;
  padding: 22px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.cr-step b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 10px;
}

.cr-step h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 5px;
}

.cr-step p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
}

.cr-nologin {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
}

.cr-form {
  margin-top: 28px;
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.cr-form h3 {
  grid-column: 1 / -1;
}

.cr-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cr-field--full {
  grid-column: 1 / -1;
}

.cr-field label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 550;
  color: var(--text-2);
}

/* 机器码问号悬浮提示 */
.cr-tip {
  position: relative;
  display: inline-flex;
  color: var(--text-3);
  cursor: help;
  outline: none;
  border-radius: 50%;
}

.cr-tip:hover,
.cr-tip:focus-visible {
  color: var(--accent);
}

.cr-tip-bubble {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 240px;
  max-width: 70vw;
  padding: 9px 11px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  text-align: start;
  color: #fff;
  background: rgba(28, 28, 30, 0.94);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
  z-index: 20;
}

.cr-tip-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(28, 28, 30, 0.94);
}

.cr-tip:hover .cr-tip-bubble,
.cr-tip:focus-visible .cr-tip-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.cr-field input,
.cr-field textarea {
  width: 100%;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 9px 13px;
  outline: none;
  transition:
    border-color 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
}

.cr-field textarea {
  resize: vertical;
  min-height: 74px;
  line-height: 1.55;
}

.cr-field input:focus,
.cr-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.cr-form-error {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--danger);
}

.cr-form .btn {
  grid-column: 1 / -1;
  justify-self: center;
  min-width: 180px;
}

.cr-form .btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.cr-form-hint {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.6;
}

.cr-form-disclaimer {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.6;
}

/* ============ 底部 CTA ============ */
.cta-section {
  text-align: center;
  background: radial-gradient(800px 360px at 50% 0, var(--accent-soft), transparent 75%);
}

.cta-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin: 0 auto 20px;
  box-shadow: var(--shadow);
}

.cta-section h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cta-section p {
  margin-top: 10px;
  color: var(--text-2);
}

.cta-meta {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--text-3);
}

/* ============ 页脚 ============ */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 48px 0 30px;
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-brand img {
  border-radius: 6px;
}

.footer-brand-col p {
  color: var(--text-3);
  font-size: 12.5px;
  max-width: 260px;
}

.footer h4 {
  font-size: 13px;
  margin-bottom: 12px;
  color: var(--text);
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer a,
.footer li {
  color: var(--text-3);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  color: var(--text-3);
  font-size: 12px;
}

/* ============ 授权页 ============ */
.page-hero {
  padding: calc(var(--nav-h) + 48px) 0 10px;
  text-align: center;
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-bottom: 22px;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-hero p {
  margin-top: 10px;
  color: var(--text-2);
}

#view-creators .page-hero {
  padding-bottom: 0;
}

#view-creators .page-hero + .section {
  padding-top: 34px;
}

.auth-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 60px;
}

.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.auth-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.auth-step {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: grid;
  place-items: center;
  margin-top: 2px;
}

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

.auth-card-head p {
  font-size: 13px;
  color: var(--text-3);
  margin: 0;
}

.auth-machine {
  display: flex;
  gap: 10px;
}

.auth-input {
  flex: 1;
  font: inherit;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 10px 14px;
  outline: none;
  transition:
    border-color 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
}

.auth-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.auth-error {
  margin-top: 10px;
  font-size: 13px;
  color: var(--danger);
}

.auth-license {
  margin-top: 14px;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 13.5px;
  border: 1px solid var(--border);
  background: var(--card-2);
}

.auth-license-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  color: var(--text-2);
}

.auth-license-row b {
  color: var(--text);
  font-weight: 600;
}

.auth-state {
  font-weight: 600;
}

.auth-state--ACTIVE,
.auth-state--LIFETIME {
  color: var(--green);
}

.auth-state--EXPIRING {
  color: var(--orange);
}

.auth-state--EXPIRED {
  color: var(--danger);
}

.auth-state--NONE {
  color: var(--text-3);
}

.auth-plans,
.auth-pays {
  display: grid;
  gap: 10px;
}

.plan-item,
.pay-item {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 16px;
  cursor: pointer;
  transition:
    border-color 0.15s var(--ease),
    background 0.15s var(--ease);
  background: var(--card-2);
}

.plan-item:hover,
.pay-item:hover {
  border-color: var(--border-strong);
}

.plan-item.selected,
.pay-item.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.plan-radio,
.pay-radio {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  position: relative;
}

.plan-item.selected .plan-radio::after,
.pay-item.selected .pay-radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.plan-info,
.pay-info {
  flex: 1;
}

.plan-name,
.pay-name {
  font-size: 14.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-desc,
.pay-desc {
  font-size: 12.5px;
  color: var(--text-3);
}

.plan-badge {
  font-size: 10.5px;
  font-weight: 600;
  color: #fff;
  background: var(--orange);
  border-radius: 980px;
  padding: 2px 8px;
}

.plan-price {
  text-align: end;
}

.plan-price b {
  font-size: 18px;
  font-weight: 700;
}

.plan-price s {
  display: block;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 400;
}

.auth-state-box,
.auth-empty,
.auth-loading {
  text-align: center;
  padding: 26px 16px;
  color: var(--text-2);
  font-size: 14px;
}

.auth-summary {
  position: sticky;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
}

.auth-summary-box {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-summary-label {
  font-size: 13px;
  color: var(--text-3);
}

.auth-summary-amount {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.auth-summary-old {
  color: var(--text-3);
  font-size: 13px;
}

.auth-summary-plan {
  font-size: 12px;
  color: var(--text-3);
}

.auth-buy {
  flex: none;
  min-width: 130px;
}

.auth-foot {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-3);
}

/* 支付结果 */
.auth-result {
  border-radius: var(--radius-lg);
  padding: 26px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.auth-result-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  font-size: 26px;
  color: #fff;
}

.auth-result-icon.ok {
  background: var(--green);
}

.auth-result-icon.wait {
  background: var(--orange);
}

.auth-result-icon.err {
  background: var(--danger);
}

.auth-result h2 {
  font-size: 18px;
  margin-bottom: 6px;
}

.auth-result p {
  font-size: 13.5px;
  color: var(--text-2);
}

.auth-result-rows {
  margin: 16px auto;
  max-width: 380px;
  text-align: start;
  font-size: 13px;
}

.auth-result-rows div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}

.auth-result-rows span {
  color: var(--text-3);
}

.auth-result-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* ============ 安装引导弹窗 ============ */
.ig-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ig-modal {
  width: min(880px, 100%);
  max-height: min(88vh, 760px);
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ig-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 26px 14px;
}

.ig-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.ig-head h2 {
  font-size: 20px;
  margin-top: 2px;
}

.ig-intro {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 2px;
}

.ig-close {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: var(--border);
  color: var(--text-2);
  font-size: 17px;
  line-height: 1;
}

.ig-close:hover {
  background: var(--border-strong);
}

.ig-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 0 26px;
}

.ig-stepper li {
  list-style: none;
}

.ig-tab {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: 0;
  padding: 8px 10px;
  border-radius: 10px;
  text-align: start;
  color: var(--text-3);
}

.ig-tab-num {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--border);
  font-size: 12px;
  font-weight: 600;
  display: grid;
  place-items: center;
  color: var(--text-2);
}

.ig-tab-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.ig-tab-text b {
  font-size: 13px;
  font-weight: 600;
}

.ig-tab-text small {
  font-size: 11px;
  opacity: 0.8;
}

.ig-tab:hover {
  background: var(--bg-alt);
}

.ig-tab.active {
  color: var(--text);
  background: var(--accent-soft);
}

.ig-tab.active .ig-tab-num {
  background: var(--accent);
  color: #fff;
}

.ig-tab.done .ig-tab-num {
  background: var(--green);
  color: #fff;
}

.ig-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 26px;
}

.ig-panel h3 {
  font-size: 16px;
  margin-bottom: 14px;
}

.ig-desc {
  font-size: 13.5px;
  color: var(--text-2);
  margin-bottom: 16px;
}

.ig-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 22px;
  align-items: start;
}

.ig-grid-2 {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

/* 第一步：左列文本（标题+步骤）相对右侧图片垂直居中 */
.ig-grid-p1 {
  align-items: center;
}

.ig-left h3 {
  margin: 0 0 14px;
}

.ig-left .ig-list {
  margin: 0;
}

.ig-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ig-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
}

.ig-list li span {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.ig-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.ig-figure figcaption {
  font-size: 12.5px;
  color: var(--text-3);
  text-align: center;
  display: flex;
  align-items: center;
  gap: 7px;
}

/* 第三步说明图注：相对整个弹窗宽度水平居中 */
.ig-cap-line {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--text-3);
  text-align: center;
}

.ig-badge {
  flex: none;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: inline-grid;
  place-items: center;
}

/* 安装引导截图 */
.ig-shot {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  background: #fff;
  cursor: zoom-in;
}

.ig-grid .ig-figure .ig-shot {
  max-height: 340px;
}

/* 第二步「允许打开」双图：高度随视口收缩，保证面板不出滚动条
   88vh 弹窗高度 - 弹窗头尾/步骤条约 250px - 本步标题/说明/图注约 205px */
.ig-grid-2 .ig-figure .ig-shot {
  max-height: clamp(110px, calc(88vh - 455px), 210px);
}

/* ============ 安装截图全屏查看 ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  cursor: zoom-out;
  -webkit-user-select: none;
  user-select: none;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  cursor: default;
  -webkit-user-drag: none;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

@media (max-width: 600px) {
  .lightbox {
    padding: 14px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
  }
}

.ig-note-line {
  margin: 16px 0 0;
  text-align: center;
}

.ig-tips {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ig-tip {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 15px;
  background: var(--card-2);
}

.ig-tip b {
  font-size: 13px;
}

.ig-tip p {
  font-size: 12.5px;
  color: var(--text-2);
  margin: 2px 0 0;
}

.ig-panel-download {
  text-align: center;
}

.ig-download-card {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 34px 24px;
  max-width: 460px;
  margin: 0 auto;
}

.ig-download {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent);
  color: #fff;
  border-radius: 980px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
}

.ig-download:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.ig-download-meta {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-3);
}

.ig-download-done {
  margin-top: 10px;
  font-size: 13px;
  color: var(--green);
  font-weight: 500;
}

/* 群聊二维码：分隔标题 + 白底二维码卡片 + 提示语 */
.ig-group {
  margin-top: 26px;
}

.ig-group-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-3);
  font-size: 12px;
}

.ig-group-divider::before,
.ig-group-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.ig-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 148px;
  height: 148px;
  margin: 14px auto 0;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: default;
}

.ig-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.ig-qr-loading {
  width: 26px;
  height: 26px;
  border: 2.5px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: ig-qr-spin 0.7s linear infinite;
}

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

.ig-qr-fail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  cursor: pointer;
}

.ig-qr-fail b {
  font-size: 11px;
  font-weight: 500;
}

.ig-group-tip {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-3);
}

.ig-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 26px;
  border-top: 1px solid var(--border);
  background: var(--card-2);
}

.ig-progress {
  font-size: 12.5px;
  color: var(--text-3);
}

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

.ig-btn {
  border-radius: 980px;
  padding: 7px 20px;
  font-size: 13.5px;
  border: 1px solid var(--border-strong);
  background: var(--card);
}

.ig-btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.ig-btn-primary:hover {
  background: var(--accent-hover);
}

.ig-btn-ghost {
  color: var(--text-2);
}

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

/* 轻提示（授权页支付流程使用） */
.toast {
  position: fixed;
  z-index: 300;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 16px);
  background: rgba(40, 40, 42, 0.92);
  color: #fff;
  font-size: 13.5px;
  padding: 10px 20px;
  border-radius: 980px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.22s var(--ease),
    transform 0.22s var(--ease);
  max-width: calc(100vw - 40px);
  text-align: center;
}

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

[hidden] {
  display: none !important;
}

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .hero-copy {
    align-items: center;
    order: 2;
  }

  .hero-visual {
    order: 1;
  }

  .hero-laptop {
    max-width: 560px;
  }

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

@media (max-width: 960px) {
  .feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 760px) {
  .hero {
    padding-top: calc(var(--nav-h) + 44px);
  }

  .section {
    padding: 56px 0;
  }

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

  .ig-overlay {
    padding: 0;
  }

  .ig-modal {
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }

  .ig-stepper {
    padding: 0 14px;
    gap: 2px;
  }

  .ig-tab-text small {
    display: none;
  }

  .ig-tab {
    flex-direction: column;
    gap: 4px;
    padding: 6px 2px;
  }

  .ig-head,
  .ig-body,
  .ig-foot {
    padding-inline: 18px;
  }

  .ig-grid,
  .ig-grid-2 {
    grid-template-columns: 1fr;
  }

  /* 小屏单列时第二步双图纵向排列，按双图总高随视口收缩避免滚动条 */
  .ig-grid-2 .ig-figure .ig-shot {
    max-height: clamp(64px, calc(50vh - 275px), 160px);
  }

  .auth-machine {
    flex-direction: column;
  }

  .auth-summary {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-buy {
    width: 100%;
  }

  .cr-rewards,
  .cr-steps,
  .cr-form {
    grid-template-columns: 1fr;
  }

  .cr-rules,
  .cr-form {
    padding: 20px 18px;
  }
}

@media (max-width: 420px) {
  .feat-grid,
  .feat-grid-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .ig-tab-text b {
    font-size: 11px;
  }

  /* 窄屏顶栏：隐藏语言全名只留地球图标，收紧间距避免横向溢出 */
  .nav-inner {
    gap: 10px;
    padding: 0 14px;
  }

  .nav-actions {
    gap: 6px;
  }

  .lang-name {
    display: none;
  }

  .nav-cta {
    padding: 5px 12px;
  }

  .container {
    padding: 0 16px;
  }
}

/* ============ 动效：首屏入场 / 滚动显现 ============ */
/* 仅 transform/opacity，合成层动画；减弱动态时在文件末尾统一关闭 */
@keyframes dg-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* 首页 Hero 错峰入场 */
.hero-badge {
  animation: dg-fade-up 0.6s var(--ease) both;
}
.hero-title {
  animation: dg-fade-up 0.7s var(--ease) 0.08s both;
}
.hero-sub {
  animation: dg-fade-up 0.7s var(--ease) 0.16s both;
}
.hero-actions {
  animation: dg-fade-up 0.7s var(--ease) 0.24s both;
}
/* 首页 meta 改为逐项错峰入场（ul 容器不再整体淡入） */
#view-home .hero-meta {
  animation: none;
}
#view-home .hero-meta li {
  animation: dg-fade-up 0.55s var(--ease) backwards;
}
#view-home .hero-meta li:nth-child(1) {
  animation-delay: 0.34s;
}
#view-home .hero-meta li:nth-child(2) {
  animation-delay: 0.42s;
}
#view-home .hero-meta li:nth-child(3) {
  animation-delay: 0.5s;
}

/* 试用徽章略晚于发布徽章出现 */
.hero-badge--trial {
  animation: dg-fade-up 0.6s var(--ease) 0.12s backwards;
}

.hero-visual {
  animation: dg-fade-up 0.8s var(--ease) 0.18s both;
}

/* 子页页头入场（授权页 / 创作者页） */
.page-hero .back-home,
.page-hero .cr-pill,
.page-hero h1,
.page-hero p,
.page-hero .hero-meta {
  animation: dg-fade-up 0.65s var(--ease) both;
}
.page-hero .back-home,
.page-hero .cr-pill {
  animation-delay: 0.04s;
}
.page-hero h1 {
  animation-delay: 0.1s;
}
.page-hero p {
  animation-delay: 0.18s;
}
.page-hero .hero-meta {
  animation-delay: 0.26s;
}

/* CTA 图标轻微上下浮动 */
.cta-icon {
  animation: dg-float 3.4s ease-in-out 0.6s infinite;
}

/* Hero 样机入场后持续轻微悬浮（挂在内层容器，不与入场动画冲突） */
.hero-laptop {
  animation: dg-float 6s ease-in-out 1s infinite;
}

/* 功能图标：卡片悬停时轻微放大高亮 */
.feat-card .feat-icon {
  transition:
    transform 0.35s var(--ease),
    background-color 0.35s var(--ease);
}
.feat-card:hover .feat-icon {
  transform: scale(1.12) rotate(-4deg);
  background: color-mix(in srgb, var(--c) 22%, transparent);
}

/* 主按钮：悬停时一道高光扫过 */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: translateX(-220%);
  pointer-events: none;
}
.btn-primary:hover::after {
  animation: dg-btn-sheen 0.9s var(--ease);
}

@keyframes dg-btn-sheen {
  to {
    transform: translateX(340%);
  }
}

/* 滚动显现：由 app.js 在支持 IntersectionObserver 且未开启减弱动态时挂载
   未加 .reveal（无 JS / 减弱动态 / 旧浏览器）时元素保持常态可见 */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
  transition-delay: var(--dg-delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ 减弱动态：关闭所有非必要动效 ============ */
@media (prefers-reduced-motion: reduce) {
  .cta-icon,
  .hero-laptop,
  .hero-badge-dot,
  .hero-title,
  .hero-title-accent,
  .hero-title-accent::after,
  .hero-badge,
  .hero-badge--trial,
  .hero-sub,
  .hero-actions,
  .hero-meta,
  #view-home .hero-meta li,
  .hero-visual,
  .page-hero .back-home,
  .page-hero .cr-pill,
  .page-hero h1,
  .page-hero p,
  .page-hero .hero-meta {
    animation: none;
  }
  .btn-primary::after {
    display: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============ RTL（阿拉伯语） ============ */
[dir='rtl'] .back-home svg {
  transform: scaleX(-1);
}
