/* ==========================================================================
   ez-to-ai 官网设计系统 - Stitch 风格核心组件与交互展台 (Components CSS)
   Aligned 1:1 with Google Stitch (stitch.withgoogle.com)
   ========================================================================== */

/* ==========================================================================
   1. Google Stitch 1:1 核心 AI 意图输入交互卡 (Stitch Master Prompt Card)
   ========================================================================== */
.stitch-hero-card-wrapper {
  width: 100%;
  max-width: 840px;
  margin: 20px auto 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.stitch-master-prompt-card {
  width: 100%;
  min-height: 200px;
  padding: 24px 28px 18px;
  background: rgba(18, 20, 30, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6),
              0 0 35px rgba(99, 102, 241, 0.18),
              inset 0 1px 1px rgba(255, 255, 255, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: all var(--duration-fast) var(--transition-stitch);
}

.stitch-master-prompt-card:focus-within {
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75),
              0 0 45px rgba(168, 85, 247, 0.3),
              inset 0 1px 1px rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.stitch-card-input-area {
  width: 100%;
  display: flex;
  align-items: flex-start;
}

.stitch-main-textarea {
  width: 100%;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 500;
  font-family: inherit;
  line-height: 1.5;
  resize: none;
  outline: none;
  min-height: 64px;
}

.stitch-main-textarea::placeholder {
  color: var(--text-tertiary);
}

/* 底部操作工具条 (Bottom Action Toolbar) */
.stitch-card-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.stitch-bottom-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stitch-btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.stitch-btn-icon:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.stitch-segmented-toggle {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 3px;
  gap: 2px;
}

.stitch-segment-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.stitch-segment-btn.active {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.stitch-bottom-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stitch-model-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8125rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.stitch-model-badge:hover {
  background: rgba(255, 255, 255, 0.15);
}

.stitch-btn-submit {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--transition-stitch);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.3);
}

.stitch-btn-submit:hover {
  transform: scale(1.08);
  background: #f8fafc;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.5);
}

/* 下方水平滚动建议药丸 (Horizontal Suggestion Chips) */
.stitch-chips-carousel {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
}

.stitch-chips-carousel::-webkit-scrollbar {
  display: none;
}

.stitch-chip-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 9999px;
  background: rgba(18, 20, 30, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--duration-fast);
  backdrop-filter: blur(16px);
}

.stitch-chip-item:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.stitch-chip-sparkle {
  color: var(--brand-cyan);
  font-size: 0.9rem;
}

/* ==========================================================================
   2. 极简优雅 Hero 标题排版
   ========================================================================== */
.hero-wordmark-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  min-height: 55vh;
}

.stitch-hero-title {
  font-size: clamp(3.2rem, 6.2vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 0 50px rgba(255, 255, 255, 0.25);
}

.stitch-hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.76);
  max-width: 720px;
  line-height: 1.6;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   3. 原生应用 Squircle 阵列
   ========================================================================== */
.software-app-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.software-app-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--transition-stitch);
}

.software-app-tile:hover {
  transform: translateY(-4px) scale(1.05);
}

.app-icon-squircle {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.app-icon-squircle svg {
  width: 30px;
  height: 30px;
}

.app-status-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.app-tile-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.app-edition-pill {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.25);
  color: #c7d2fe;
}

/* ==========================================================================
   4. 特性三支柱与卡片网格
   ========================================================================== */
.feature-triad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  width: 100%;
}

.feature-card-detailed {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  border-radius: 22px;
}

.feature-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(56, 189, 248, 0.2) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-cyan);
}

.feature-icon-box svg {
  width: 22px;
  height: 22px;
}

.feature-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.feature-card-desc {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  line-height: 1.6;
}

.feature-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

/* ==========================================================================
   5. 动态岛交互模拟器与状态切换
   ========================================================================== */
.island-simulator-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  width: 100%;
}

.simulator-window-frame {
  background: rgba(14, 16, 24, 0.88);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.55);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.problem-item-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.problem-item-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.window-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-dot.red { background: #ef4444; }
.window-dot.yellow { background: #f59e0b; }
.window-dot.green { background: #10b981; }

.interactive-island-capsule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  padding: 10px 18px;
  cursor: pointer;
  transition: all var(--duration-fast) var(--transition-stitch);
}

.interactive-island-capsule:hover {
  background: rgba(255, 255, 255, 0.14);
}

.state-selector-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.state-tab-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  transition: all var(--duration-fast);
}

.state-tab-btn.active {
  background: rgba(99, 102, 241, 0.35);
  border-color: rgba(99, 102, 241, 0.65);
  color: #ffffff;
}

/* ==========================================================================
   6. 教学页实操演练
   ========================================================================== */
#page-tutorial .scene {
  padding: calc(var(--header-height) + 8px) 40px 40px;
}

#page-tutorial .scene-container {
  gap: 14px;
}

#page-tutorial .scene-header {
  max-width: 1040px;
  gap: 4px;
}

#page-tutorial .scene-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
}

#page-tutorial .scene-description {
  font-size: 0.9rem;
}

/* 教学页 Scene 0 置顶快速安装指令条 (仅在第 2、3、4 步展示) */
.tutorial-top-cmd-bar {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(13, 16, 28, 0.92);
  border: 1px solid rgba(99, 102, 241, 0.42);
  border-radius: 9999px;
  padding: 3px 6px 3px 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  margin-bottom: 6px;
  max-width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tutorial-top-cmd-bar:hover {
  border-color: rgba(99, 102, 241, 0.7);
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.18);
}

.top-cmd-code {
  font-family: var(--font-family-code);
  font-size: 0.78rem;
  color: #38bdf8;
  user-select: all;
  white-space: nowrap;
  letter-spacing: 0.2px;
  line-height: 1.2;
}

.top-cmd-code .drive-letter-mark {
  display: inline-block;
  background: #fbbf24;
  color: #0a0b10;
  font-weight: 800;
  padding: 0 5px;
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.75);
}

.btn-copy-top-cmd {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.tutorial-stepper-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 22px;
  width: 100%;
  align-items: start;
}

.tutorial-step-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tutorial-step-item {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--duration-fast) var(--transition-stitch);
}

.tutorial-step-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.tutorial-step-item.active {
  background: rgba(99, 102, 241, 0.22);
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.step-num-pill {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: #ffffff;
}

.tutorial-step-item.active .step-num-pill {
  background: var(--brand-primary);
}

.tutorial-content-panel {
  padding: 18px 22px;
  border-radius: 18px;
  min-height: 380px;
  max-height: 78vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.tutorial-content-panel::-webkit-scrollbar {
  width: 6px;
}

.tutorial-content-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.tutorial-content-panel::-webkit-scrollbar-track {
  background: transparent;
}

.tutorial-step-panel {
  display: none;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.tutorial-step-panel.active {
  display: flex;
}

.tutorial-panel-header {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tutorial-panel-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.tutorial-panel-desc {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.kbd-key {
  display: inline-block;
  padding: 2px 7px;
  font-size: 0.8125rem;
  font-family: var(--font-family-code);
  color: var(--brand-cyan);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* 一键安装指令卡片 */
.install-cmd-card {
  background: rgba(10, 12, 20, 0.95);
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.install-cmd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}

.terminal-dots .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.terminal-dots .dot.red { background: #ff5f56; }
.terminal-dots .dot.yellow { background: #ffbd2e; }
.terminal-dots .dot.green { background: #27c93f; }

.terminal-title {
  font-size: 0.725rem;
  font-family: var(--font-family-code);
  color: var(--text-tertiary);
  letter-spacing: 0.5px;
}

.btn-copy-install-cmd {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 11px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.22);
  border: 1px solid rgba(99, 102, 241, 0.45);
  color: #c7d2fe;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-install-cmd:hover {
  background: rgba(99, 102, 241, 0.42);
  border-color: rgba(99, 102, 241, 0.75);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-copy-install-cmd.copied {
  background: rgba(52, 211, 153, 0.25);
  border-color: rgba(52, 211, 153, 0.65);
  color: #6ee7b7;
}

.install-cmd-body {
  padding: 8px 14px;
  font-family: var(--font-family-code);
  font-size: 0.8125rem;
  color: #38bdf8;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
}

.install-cmd-body code {
  user-select: all;
  letter-spacing: 0.2px;
}

/* 盘符标记高亮 */
.drive-letter-mark {
  display: inline-block;
  background: #fbbf24;
  color: #0a0b10;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.85);
  animation: drivePulse 2.2s ease-in-out infinite;
  cursor: help;
}

@keyframes drivePulse {
  0%, 100% {
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(251, 191, 36, 1);
    transform: scale(1.08);
  }
}

/* 盘符说明横幅 */
.drive-tip-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 12px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 9px;
  font-size: 0.75rem;
  line-height: 1.42;
  color: #fef08a;
}

.drive-tip-icon {
  color: #fbbf24;
  display: flex;
  align-items: center;
  padding-top: 1px;
  flex-shrink: 0;
}

.drive-tip-text {
  flex: 1;
  color: #fde68a;
}

.drive-highlight-inline {
  display: inline-block;
  background: #fbbf24;
  color: #0a0b10;
  font-weight: 700;
  padding: 0 4px;
  border-radius: 3px;
  margin: 0 2px;
}

/* 备用操作区：命令不可用？ + 下载压缩包手动安装 (置于盘符提示下方) */
.manual-install-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 1px 2px;
}

.manual-install-question {
  font-size: 0.775rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.btn-manual-archive {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-manual-archive:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-1px);
}

.manual-install-note {
  margin-top: 6px;
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--text-tertiary);
}

.manual-install-note code {
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

/* 截图展示区 */
.tutorial-screenshots-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 7px 10px;
}

.screenshot-tab-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.screenshot-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  color: var(--text-tertiary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.screenshot-tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.screenshot-tab-btn.active {
  background: rgba(99, 102, 241, 0.28);
  border-color: rgba(99, 102, 241, 0.6);
  color: #ffffff;
}

.tab-indicator {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-tertiary);
  transition: background 0.2s ease;
}

.screenshot-tab-btn.active .tab-indicator {
  background: var(--brand-cyan);
  box-shadow: 0 0 6px var(--brand-cyan);
}

.screenshot-zoom-tip {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-left: auto;
}

.screenshot-display-frame {
  position: relative;
  width: 100%;
}

.screenshot-view {
  display: none;
  flex-direction: column;
  gap: 6px;
}

.screenshot-view.active {
  display: flex;
}

.screenshot-img-box {
  width: 100%;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000000;
  cursor: zoom-in;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.screenshot-img-box:hover {
  border-color: rgba(99, 102, 241, 0.5);
}

.screenshot-preview-img {
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* ==========================================================================
   教学页步骤 2：功能选择网格 (Step 2 Features Grid)
   ========================================================================== */
/* ==========================================================================
   教学页步骤 2：功能选择网格 (Step 2 Features Grid)
   ========================================================================== */
#tutorial-panel-step-1 {
  gap: 8px;
}

#tutorial-panel-step-1 .tutorial-panel-header {
  gap: 2px;
  margin-bottom: 2px;
}

.step2-features-grid {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 14px;
  width: 100%;
  align-items: stretch;
}

.step2-feature-card {
  background: rgba(14, 16, 26, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.step2-feature-card:hover {
  border-color: rgba(99, 102, 241, 0.35);
}

/* 突出生图幕布的营销重点卡片 */
.step2-canvas-card {
  background: linear-gradient(180deg, rgba(20, 26, 44, 0.9) 0%, rgba(10, 12, 22, 0.95) 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.32);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45), 0 0 25px rgba(56, 189, 248, 0.1);
  position: relative;
  overflow: hidden;
  justify-content: space-between;
}

.step2-canvas-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #38bdf8, #34d399, #818cf8);
}

.step2-canvas-card:hover {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.55), 0 0 32px rgba(56, 189, 248, 0.18);
}

.step2-card-top {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step2-card-title-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.step2-card-title {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.step2-price-badge {
  font-size: 0.775rem;
  font-weight: 800;
  color: #34d399;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.15));
  border: 1px solid rgba(52, 211, 153, 0.55);
  padding: 2px 9px;
  border-radius: 9999px;
  white-space: nowrap;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.3);
  letter-spacing: 0.3px;
}

.step2-modes-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mode-pill {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--brand-cyan);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 1.5px 7px;
  border-radius: 5px;
}

.step2-feature-desc {
  font-size: 0.775rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin: 0;
}

/* 海报区域 (从16:9改为9:16比例画框，放大展示，中英文随全站语言切换) */
.step2-poster-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-top: 4px;
}

.step2-poster-box {
  /* 9:16 竖版海报专用画框，彻底告别16:9横向宽黑边 */
  aspect-ratio: 9 / 16;
  height: 310px;
  max-height: 330px;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 30%, rgba(28, 36, 60, 0.75), rgba(7, 9, 16, 0.95));
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  border-radius: 14px;
  padding: 6px;
  cursor: zoom-in;
  position: relative;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55), 0 0 20px rgba(56, 189, 248, 0.12);
  transition: all 0.25s ease;
}

.step2-poster-box:hover {
  border-color: rgba(56, 189, 248, 0.75);
  background: radial-gradient(circle at 50% 30%, rgba(42, 54, 88, 0.85), rgba(7, 9, 16, 0.98));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65), 0 0 28px rgba(56, 189, 248, 0.25);
  transform: translateY(-2px);
}

.step2-full-poster-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
  display: block;
  transition: transform 0.25s ease;
}

.step2-poster-box:hover .step2-full-poster-img {
  transform: scale(1.02);
}

.poster-zoom-tip {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-align: center;
}

/* Flow 右侧双版本与解决异常报错区域 */
.step2-flow-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.flow-editions-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flow-edition-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

.flow-edition-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.flow-shared-resolution-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
}

.flow-problems-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step2-embedded-problem {
  margin: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

@media (max-width: 900px) {
  .step2-features-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   教学页步骤 3：最便宜的生产幕布 (Step 3 Image Canvas Modes & Marketing)
   ========================================================================== */
#tutorial-panel-step-2 {
  gap: 8px;
}

.step3-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.step3-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* 大字营销：image2底至0.0099起（每周一天） */
.step3-marketing-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(236, 72, 153, 0.16), rgba(99, 102, 241, 0.22));
  border: 1px solid rgba(245, 158, 11, 0.55);
  box-shadow: 0 2px 14px rgba(245, 158, 11, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.25s ease;
  user-select: none;
}

.step3-marketing-banner:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 158, 11, 0.8);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.step3-marketing-tag {
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 9999px;
  letter-spacing: 0.4px;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
  flex-shrink: 0;
}

.step3-marketing-text {
  font-size: 0.875rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fef08a, #fde047 50%, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.3px;
  text-shadow: 0 0 12px rgba(250, 204, 21, 0.35);
}

/* 3 大模式切换选项卡 (网格并排) */
.step3-modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}

.step3-mode-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  outline: none;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  width: 100%;
}

.step3-mode-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

.step3-mode-card.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(99, 102, 241, 0.12));
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 16px rgba(56, 189, 248, 0.2);
}

.step3-mode-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
}

.step3-mode-badge-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.step3-mode-num {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.step3-mode-card.active .step3-mode-num {
  background: #38bdf8;
  color: #04101e;
}

.step3-mode-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

.step3-mode-pill {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 9999px;
  line-height: 1.3;
  white-space: nowrap;
}

.step3-mode-pill.cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.35);
}

.step3-mode-pill.mint {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.step3-mode-pill.amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.step3-mode-desc {
  font-size: 0.715rem;
  color: var(--text-tertiary);
  line-height: 1.45;
  margin: 0;
  transition: color 0.2s ease;
}

.step3-mode-card.active .step3-mode-desc {
  color: #e2e8f0;
}

/* 对应实机高保真截图展示视口 */
.step3-preview-stage {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(14, 16, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 6px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.step3-view-pane {
  display: none;
  width: 100%;
}

.step3-view-pane.active {
  display: block;
  animation: step3FadeIn 0.25s ease-out;
}

@keyframes step3FadeIn {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step3-img-frame {
  width: 100%;
  height: 235px;
  max-height: 245px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.step3-preview-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b0d14;
  transition: transform 0.25s ease;
}

.step3-img-frame:hover .step3-preview-img {
  transform: scale(1.015);
}

.step3-img-overlay {
  position: absolute;
  bottom: 8px;
  right: 10px;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2px 8px;
  border-radius: 6px;
}

.step3-zoom-tip {
  font-size: 0.6875rem;
  color: #cbd5e1;
}

@media (max-width: 900px) {
  .step3-modes-grid {
    grid-template-columns: 1fr;
  }
  .step3-img-frame {
    height: 180px;
  }
  .step3-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   教学页步骤 4：多种插件功能助力生产 (Step 4 Plugin Previews)
   ========================================================================== */
#tutorial-panel-step-3 {
  gap: 8px;
}

#tutorial-panel-step-3 .tutorial-panel-header {
  gap: 2px;
  margin-bottom: 2px;
}

.step4-preview-layout {
  display: flex;
  gap: 12px;
  width: 100%;
  align-items: stretch;
  min-height: 380px;
}

/* 左侧：8 大功能导航列表 */
.step4-nav-rail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 235px;
  flex-shrink: 0;
}

.step4-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
}

.step4-nav-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(99, 102, 241, 0.35);
  color: #ffffff;
  transform: translateX(2px);
}

.step4-nav-item.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(56, 189, 248, 0.12));
  border-color: rgba(99, 102, 241, 0.6);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.step4-item-indicator {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.step4-item-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.step4-item-title {
  font-size: 0.775rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step4-item-sub {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step4-color-tag {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0 5px;
  border-radius: 4px;
  line-height: 1.3;
}
.step4-color-tag.red { background: rgba(239, 68, 68, 0.2); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.4); }
.step4-color-tag.blue { background: rgba(56, 189, 248, 0.2); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.4); }
.step4-color-tag.green { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.4); }
.step4-color-tag.orange { background: rgba(249, 115, 22, 0.2); color: #fdba74; border: 1px solid rgba(249, 115, 22, 0.4); }
.step4-color-tag.purple { background: rgba(168, 85, 247, 0.2); color: #d8b4fe; border: 1px solid rgba(168, 85, 247, 0.4); }
.step4-color-tag.cyan { background: rgba(6, 182, 212, 0.2); color: #67e8f9; border: 1px solid rgba(6, 182, 212, 0.4); }
.step4-color-tag.amber { background: rgba(245, 158, 11, 0.2); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.4); }

/* 右侧：向右填充的功能预览卡片 */
.step4-preview-stage {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: rgba(14, 16, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.step4-card-view {
  display: none;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}

.step4-card-view.active {
  display: flex;
  animation: step4FadeIn 0.25s ease-out;
}

@keyframes step4FadeIn {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.step4-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.step4-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.step4-view-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
}
.step4-view-badge.badge-flow { background: rgba(99, 102, 241, 0.2); color: #c7d2fe; border: 1px solid rgba(99, 102, 241, 0.45); }
.step4-view-badge.badge-red { background: rgba(239, 68, 68, 0.2); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.45); }
.step4-view-badge.badge-blue { background: rgba(56, 189, 248, 0.2); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.45); }
.step4-view-badge.badge-green { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.45); }
.step4-view-badge.badge-orange { background: rgba(249, 115, 22, 0.2); color: #fdba74; border: 1px solid rgba(249, 115, 22, 0.45); }
.step4-view-badge.badge-purple { background: rgba(168, 85, 247, 0.2); color: #d8b4fe; border: 1px solid rgba(168, 85, 247, 0.45); }
.step4-view-badge.badge-cyan { background: rgba(6, 182, 212, 0.2); color: #67e8f9; border: 1px solid rgba(6, 182, 212, 0.45); }
.step4-view-badge.badge-amber { background: rgba(245, 158, 11, 0.2); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.45); }

.step4-view-title {
  font-size: 0.9375rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.step4-page-counter {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-tertiary);
  font-family: var(--font-family-code);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 9999px;
}

.step4-desc-box {
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
}

.step4-desc-text {
  font-size: 0.775rem;
  color: #cbd5e1;
  line-height: 1.48;
  margin: 0;
}

.step4-desc-text code {
  color: var(--brand-cyan);
  background: rgba(56, 189, 248, 0.12);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.75rem;
}

.step4-screenshot-box {
  width: 100%;
  flex: 1;
  min-height: 195px;
  max-height: 245px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #090a10;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  transition: all 0.2s ease;
}

.step4-screenshot-box:hover {
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.step4-screenshot-img {
  width: 100%;
  height: 100%;
  max-height: 245px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.step4-screenshot-box:hover .step4-screenshot-img {
  transform: scale(1.02);
}

.step4-view-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 2px;
}

.btn-step4-nav {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  font-size: 0.725rem;
  font-weight: 600;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-step4-nav:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
  color: #ffffff;
  transform: translateX(2px);
}

.btn-step4-nav.prev:hover {
  transform: translateX(-2px);
}

@media (max-width: 900px) {
  .step4-preview-layout {
    flex-direction: column;
  }
  .step4-nav-rail {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .step4-nav-item {
    width: auto;
    white-space: nowrap;
  }
}

/* 图片灯箱放大预览弹窗 */
.image-lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.image-lightbox-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  display: block;
}

.lightbox-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.code-snippet-box {
  background: rgba(9, 10, 16, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 18px;
  font-family: var(--font-family-code);
  font-size: 0.875rem;
  color: #38bdf8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   7. 定价页与动态积分测算器
   ========================================================================== */
.pricing-matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  max-height: 65vh;
  overflow-y: auto;
  padding: 4px 6px;
}

.pricing-card {
  padding: 20px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  min-height: 160px;
}

.pricing-card.featured {
  border-color: rgba(99, 102, 241, 0.65);
  background: rgba(99, 102, 241, 0.1);
  box-shadow: 0 14px 40px rgba(99, 102, 241, 0.3);
}

.pricing-card.featured::after {
  content: 'POPULAR 推荐';
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #ffffff;
}

.plan-price-block {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.plan-price-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
}

.plan-price-period {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.plan-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.78125rem;
  color: var(--text-secondary);
}

.plan-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.45;
}

.plan-feature-item svg {
  width: 13px;
  height: 13px;
  color: var(--brand-mint);
  flex-shrink: 0;
  margin-top: 2px;
}

/* 定价页活动与加赠视觉系统 */
.pricing-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.promo-mini-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  animation: pulsePromo 3s ease-in-out infinite alternate;
}

.promo-mini-badge.hot {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(239, 68, 68, 0.2));
  color: #fb923c;
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.2);
}

.promo-mini-badge.super {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.25), rgba(168, 85, 247, 0.25));
  color: #f472b6;
  border-color: rgba(236, 72, 153, 0.45);
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.25);
}

@keyframes pulsePromo {
  0% { transform: scale(1); opacity: 0.92; }
  100% { transform: scale(1.03); opacity: 1; }
}

.bonus-tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(245, 158, 11, 0.18);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
  margin: 0 3px;
  vertical-align: middle;
  line-height: 1.2;
}

.bonus-tag.fire {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(249, 115, 22, 0.2));
  color: #fb7185;
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.2);
}

.bonus-highlight {
  font-weight: 800;
  color: #34d399;
  margin-left: 2px;
}

.bonus-highlight.super {
  color: #38bdf8;
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

/* 交互式积分测算器 */
.calculator-card-wrapper {
  width: 100%;
  max-width: 980px;
  padding: 32px;
  border-radius: 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: center;
}

.calculator-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calc-slider-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.calc-slider-val {
  font-weight: 700;
  color: var(--brand-cyan);
  font-family: var(--font-family-code);
}

.calc-range-input {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.calc-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #38bdf8;
  cursor: pointer;
  box-shadow: 0 0 12px #38bdf8;
}

.calculator-result-box {
  background: rgba(9, 10, 16, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.calc-result-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #c7d2fe;
}

.calc-result-total {
  font-size: 2.6rem;
  font-weight: 900;
  color: #ffffff;
  font-family: var(--font-family-code);
}

.calc-points-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   8. 投资与赞助联系表单
   ========================================================================== */
.investor-pitch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.invest-metric-card {
  padding: 24px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metric-big-number {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #ffffff;
  font-family: var(--font-family-code);
}

.sponsor-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.sponsor-card {
  padding: 24px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-interactive-card {
  width: 100%;
  max-width: 820px;
  padding: 32px;
  border-radius: 24px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-full-width {
  grid-column: span 2;
}

.form-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--duration-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--brand-primary-light);
  background: rgba(255, 255, 255, 0.08);
}

.form-select option {
  background: #0f111a;
  color: #ffffff;
}

/* ==========================================================================
   9. 下载弹窗与 Toast
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--transition-stitch);
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-dialog-card {
  width: 100%;
  max-width: 520px;
  background: rgba(16, 18, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 26px;
  padding: 32px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transform: scale(0.92);
  transition: transform var(--duration-normal) var(--transition-spring);
}

.modal-overlay.show .modal-dialog-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--duration-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.os-download-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.os-tab-card {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.os-tab-card.active {
  background: rgba(99, 102, 241, 0.22);
  border-color: rgba(99, 102, 241, 0.6);
}

.os-tab-card svg {
  width: 32px;
  height: 32px;
}

.toast-container {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 10px 24px;
  border-radius: 9999px;
  background: rgba(15, 17, 26, 0.95);
  border: 1px solid var(--brand-primary);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  backdrop-filter: blur(20px);
  z-index: var(--z-toast);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(99, 102, 241, 0.4);
  transition: transform var(--duration-normal) var(--transition-spring), opacity var(--duration-normal);
  opacity: 0;
  pointer-events: none;
}

.toast-container.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   10. 兑换卡密页面 (Redeem Page)
   ========================================================================== */
.redeem-card-wrapper {
  width: 100%;
  max-width: 680px;
  padding: 36px 32px;
  border-radius: 24px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 20, 29, 0.65);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.redeem-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .field-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
  pointer-events: none;
}

.input-with-icon .form-input.field-has-icon {
  padding-left: 42px;
}

.redeem-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.redeem-tips {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-align: left;
}

.redeem-tip-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 768px) {
  .redeem-card-wrapper {
    padding: 24px 18px;
  }
  .redeem-inputs-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .redeem-actions-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .redeem-actions-bar button {
    width: 100%;
  }
}

/* ==========================================================================
   账号登录/注册（Supabase Auth 直连）+ 账号芯片
   ========================================================================== */

.auth-modal-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* [hidden] 属性防 CSS display 规则覆盖 */
.auth-view[hidden],
.auth-notice[hidden],
.account-menu[hidden],
.account-chip[hidden],
.trigger-login[hidden],
#auth-config-error[hidden] {
  display: none !important;
}

.auth-tabs {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px;
}

.auth-tab {
  flex: 1;
  padding: 9px 0;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.auth-tab:hover {
  color: var(--text-primary, #fff);
}

.auth-tab.active {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  box-shadow: 0 4px 14px rgba(124, 93, 250, 0.35);
}

.auth-notice {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.5;
  word-break: break-word;
}

.auth-notice-error {
  background: rgba(248, 81, 73, 0.12);
  border: 1px solid rgba(248, 81, 73, 0.35);
  color: #ff8a80;
}

.auth-notice-success {
  background: rgba(63, 185, 80, 0.12);
  border: 1px solid rgba(63, 185, 80, 0.35);
  color: #7ee787;
}

.auth-view {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-captcha-host:empty {
  display: none;
}

.auth-view-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.auth-view-footer a {
  color: var(--brand-cyan);
  text-decoration: none;
}

.auth-view-footer a:hover {
  text-decoration: underline;
}

.auth-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--brand-cyan);
  cursor: pointer;
  font-size: 0.75rem;
}

.auth-link-btn:hover:not(:disabled) {
  text-decoration: underline;
}

.auth-link-btn:disabled {
  color: var(--text-tertiary);
  cursor: not-allowed;
}

.auth-verify-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  word-break: break-all;
}

.auth-verify-hint b {
  color: #fff;
}

.auth-code-input {
  letter-spacing: 0.5em;
  text-align: center;
  font-size: 1.1rem;
}

.auth-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-modal-footer {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  text-align: center;
}

.auth-modal-footer a {
  color: var(--brand-cyan);
  text-decoration: none;
}

.auth-modal-footer a:hover {
  text-decoration: underline;
}

/* 头部账号芯片 */
.account-chip {
  position: relative;
}

.account-chip-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.25s ease;
}

.account-chip-btn:hover {
  background: rgba(255, 255, 255, 0.11);
}

.account-chip-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.account-chip-points {
  color: #ffd66b;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 214, 107, 0.12);
  border: 1px solid rgba(255, 214, 107, 0.3);
}

.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 230px;
  background: rgba(18, 18, 26, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px;
  z-index: 1300;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.account-menu-email {
  font-size: 0.8rem;
  color: #fff;
  font-weight: 600;
  word-break: break-all;
  margin-bottom: 8px;
}

.account-menu-points {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.account-menu-points b {
  color: #ffd66b;
}

.account-signout-btn {
  width: 100%;
  padding: 8px;
  border-radius: 9px;
  border: 1px solid rgba(248, 81, 73, 0.4);
  background: rgba(248, 81, 73, 0.1);
  color: #ff8a80;
  cursor: pointer;
  font-size: 0.78rem;
  transition: background 0.25s ease;
}

.account-signout-btn:hover {
  background: rgba(248, 81, 73, 0.2);
}

/* 精简版弹窗标题（无 logo/副标题变体） */
.auth-modal-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  padding-right: 28px; /* 视觉居中补偿右上角关闭按钮 */
}

/* Turnstile 验证位：通栏居中长条容器（组件固定 normal 300x65，错误态同框） */
.auth-captcha-host {
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
