/* ============================================================
   Pond5 Clip Manager Portal — Frosted Glass Theme
   ============================================================ */

/* ---------- 主题变量 ---------- */
:root {
  color-scheme: dark;

  --bg-base: #060b16;
  --bg-surface: rgba(12, 18, 32, 0.72);
  --bg-card: rgba(14, 22, 38, 0.55);
  --bg-card-hover: rgba(18, 28, 48, 0.68);
  --bg-pill: rgba(255, 255, 255, 0.06);

  --text-primary: #edf2f9;
  --text-secondary: rgba(214, 226, 242, 0.7);
  --text-tertiary: rgba(180, 198, 224, 0.5);

  --accent: #38bdf8;
  --accent-deep: #6366f1;
  --accent-glow: rgba(56, 189, 248, 0.25);
  --accent-gradient: linear-gradient(135deg, #38bdf8, #818cf8);
  --accent-text-gradient: linear-gradient(135deg, #38bdf8, #a78bfa, #f472b6);

  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);

  --glass-blur: 24px;
  --glass-bg: linear-gradient(170deg, rgba(255,255,255,0.07) 0%, transparent 60%);
  --glass-border: 1px solid var(--border);

  --shadow-sm: 0 4px 16px rgba(0,0,0,0.2);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.3);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(56, 189, 248, 0.12);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-full: 999px;

  --warn: #f59e0b;
  --warn-bg: rgba(245, 158, 11, 0.12);
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.12);
}

[data-theme="light"] {
  color-scheme: light;

  --bg-base: #f0f4f9;
  --bg-surface: rgba(255, 255, 255, 0.8);
  --bg-card: rgba(255, 255, 255, 0.65);
  --bg-card-hover: rgba(255, 255, 255, 0.85);
  --bg-pill: rgba(15, 23, 42, 0.06);

  --text-primary: #0f172a;
  --text-secondary: rgba(30, 41, 59, 0.72);
  --text-tertiary: rgba(51, 65, 85, 0.5);

  --accent: #0284c7;
  --accent-deep: #4f46e5;
  --accent-glow: rgba(2, 132, 199, 0.15);
  --accent-gradient: linear-gradient(135deg, #0284c7, #6366f1);
  --accent-text-gradient: linear-gradient(135deg, #0284c7, #7c3aed, #db2777);

  --border: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(15, 23, 42, 0.16);

  --glass-bg: linear-gradient(170deg, rgba(255,255,255,0.6) 0%, transparent 60%);

  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 32px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.1);
  --shadow-glow: 0 0 40px rgba(2, 132, 199, 0.08);

  --warn-bg: rgba(245, 158, 11, 0.08);
  --success-bg: rgba(16, 185, 129, 0.08);
}

/* ---------- 重置 & 基础 ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  font-family: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-primary);
  background: var(--bg-base);
  line-height: 1.6;
  transition: background 400ms ease, color 300ms ease;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ---------- 背景光斑 ---------- */
.ambient-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: orbFloat 20s ease-in-out infinite;
}

[data-theme="light"] .orb { opacity: 0.3; }

.orb--1 {
  width: 600px; height: 600px;
  top: -15%; left: -10%;
  background: radial-gradient(circle, rgba(56,189,248,0.3), transparent 70%);
  animation-delay: 0s;
}

.orb--2 {
  width: 500px; height: 500px;
  top: 10%; right: -8%;
  background: radial-gradient(circle, rgba(99,102,241,0.3), transparent 70%);
  animation-delay: -7s;
}

.orb--3 {
  width: 400px; height: 400px;
  bottom: 10%; left: 20%;
  background: radial-gradient(circle, rgba(167,139,250,0.2), transparent 70%);
  animation-delay: -14s;
}

.orb--4 {
  width: 350px; height: 350px;
  bottom: -5%; right: 15%;
  background: radial-gradient(circle, rgba(244,114,182,0.15), transparent 70%);
  animation-delay: -3s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* ---------- 页面容器 ---------- */
.page-shell {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 48px;
}

.section {
  margin-top: 80px;
}

/* ---------- 磨砂玻璃基础 ---------- */
.glass {
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  background: var(--glass-bg), var(--bg-surface);
  border: var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.glass-panel {
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  background: var(--glass-bg), var(--bg-card);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  transition: background 300ms ease, border-color 300ms ease, box-shadow 300ms ease, transform 300ms ease;
}

.glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--bg-pill);
  border: var(--glass-border);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.3);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-copy strong {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-copy small {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.site-nav {
  display: flex;
  gap: 24px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.site-nav a {
  position: relative;
  padding: 4px 0;
  transition: color 200ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--accent-gradient);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms ease;
}

.site-nav a:hover { color: var(--text-primary); }
.site-nav a:hover::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ---------- 主题切换 ---------- */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-pill);
  border: var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 200ms ease;
}

.theme-toggle:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.theme-toggle__track {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: var(--bg-pill);
  border: 1px solid var(--border);
  transition: background 200ms ease;
}

.theme-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 6px rgba(56,189,248,0.4);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .theme-toggle__thumb {
  transform: translateX(16px);
}

.theme-toggle__label {
  min-width: 24px;
}

/* ---------- 按钮 ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  min-height: 44px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.25);
  transition: all 250ms ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(56, 189, 248, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary--lg {
  min-height: 52px;
  padding: 0 32px;
  font-size: 0.95rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px;
  min-height: 44px;
  border-radius: var(--radius-full);
  border: var(--glass-border);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 200ms ease;
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

/* ---------- 英雄区 ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  min-height: 70vh;
  padding-top: 32px;
}

.hero-badge {
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(16,185,129,0); }
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: var(--accent-text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 36px;
  padding: 16px 24px;
  border-radius: var(--radius-md);
}

.stat-item {
  text-align: center;
  padding: 0 20px;
}

.stat-item strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  font-family: "Inter", sans-serif;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item span {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* ---------- 英雄区截图 ---------- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-screenshot {
  width: 100%;
  max-width: 560px;
  overflow: hidden;
  padding: 14px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.hero-screenshot img {
  width: 100%;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 24px 64px rgba(0,0,0,0.28);
  cursor: zoom-in;
}

.hero-screenshot figcaption {
  margin-top: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.88rem;
}

/* ---------- Section Header ---------- */
.section-header {
  max-width: 700px;
  margin-bottom: 32px;
}

.section-tag {
  display: inline-block;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-header p {
  margin-top: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- 功能卡片网格 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  cursor: default;
}

.feature-media {
  position: relative;
  overflow: hidden;
  margin: -8px -8px 6px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  aspect-ratio: 16 / 9;
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 320ms ease;
  cursor: zoom-in;
}

.feature-card:hover {
  background: var(--bg-card-hover), var(--glass-bg);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.feature-card:hover .feature-media img {
  transform: scale(1.03);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  border: 1px solid rgba(56,189,248,0.15);
  color: var(--accent);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  margin-top: 16px;
  font-size: 1.2rem;
  font-weight: 700;
}

.feature-card p {
  margin-top: 8px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.92rem;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.feature-tags span {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-pill);
  border: 1px solid var(--border);
  font-size: 0.76rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* ---------- 对比区 ---------- */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.comparison-col {
  padding: 28px;
  overflow: hidden;
}

.comparison-label {
  margin-bottom: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
}

.badge--warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.badge--success {
  background: var(--success-bg);
  color: var(--success);
}

.comparison-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 18px;
}

.comparison-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.comparison-col--manual .comparison-list li::before {
  background: var(--warn);
}

.comparison-col--system .comparison-list li::before {
  background: var(--success);
}

.comparison-list strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.comparison-list p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* ---------- 优势卡片 ---------- */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.advantage-card {
  padding: 24px;
  text-align: center;
  overflow: hidden;
}

.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.advantage-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  border: 1px solid rgba(56,189,248,0.12);
  color: var(--accent);
}

.advantage-icon svg {
  width: 24px;
  height: 24px;
}

.advantage-card h3 {
  margin-top: 16px;
  font-size: 1.05rem;
  font-weight: 700;
}

.advantage-card p {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.65;
}

/* ---------- 工作流 ---------- */
.workflow-steps {
  display: flex;
  gap: 0;
  position: relative;
}

.workflow-step {
  flex: 1;
  padding: 28px 20px;
  text-align: center;
  position: relative;
  overflow: visible;
  border-radius: 0;
  border-right: none;
}

.workflow-step:first-child {
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.workflow-step:last-child {
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  border-right: 1px solid var(--border);
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  box-shadow: 0 4px 16px rgba(56,189,248,0.25);
  margin-bottom: 16px;
}

.step-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-content p {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.6;
}

.step-connector {
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  z-index: 2;
  display: none;
}

.workflow-step:last-child .step-connector {
  display: none;
}

/* ---------- 鸣谢区 ---------- */
.thanks-card {
  text-align: center;
  padding: 48px 40px;
  overflow: hidden;
}

.thanks-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(244,114,182,0.15), rgba(167,139,250,0.15));
  border: 1px solid rgba(244,114,182,0.15);
  color: #f472b6;
}

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

.thanks-card h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
}

.thanks-card p {
  margin-top: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 下载收口区 ---------- */
.download-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 32px;
  overflow: hidden;
}

.download-banner h2 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 800;
  line-height: 1.3;
}

.download-banner p {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 40px;
  padding: 24px 0;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

/* ---------- 弹窗 ---------- */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  animation: modalIn 300ms ease;
}

@keyframes modalIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 12, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

[data-theme="light"] .modal-backdrop {
  background: rgba(240, 244, 249, 0.7);
}

.modal-card {
  position: relative;
  width: min(480px, 100%);
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg), var(--bg-card);
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: cardIn 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-pill);
  border: var(--glass-border);
  color: var(--text-secondary);
  transition: all 200ms ease;
}

.modal-close:hover {
  background: var(--border-hover);
  color: var(--text-primary);
  transform: rotate(90deg);
}

.modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--accent-glow);
  border: 1px solid rgba(56,189,248,0.15);
  color: var(--accent);
}

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

.modal-card h2 {
  font-size: 1.4rem;
  font-weight: 800;
}

.modal-notice {
  margin: 20px auto;
  justify-content: center;
  font-size: 0.92rem;
}

.modal-notice strong {
  color: var(--accent);
}

.modal-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.modal-contact strong {
  color: var(--accent);
  font-weight: 700;
}

.modal-hint {
  margin-top: 14px;
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

.image-modal {
  z-index: 120;
}

.image-modal-card {
  position: relative;
  width: min(1400px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.image-modal-body {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px;
}

[data-theme="light"] .image-modal-body {
  background: rgba(15, 23, 42, 0.04);
}

#image-modal-preview {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 180px);
  width: auto;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
}

.image-modal-meta {
  padding: 0 8px 4px;
}

.image-modal-meta h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.image-modal-meta p {
  margin: 6px 0 0;
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.9rem;
}

/* ---------- 滚入显现 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 16px;
  }

  .hero-visual { display: none; }

  .site-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

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

  .workflow-steps {
    flex-direction: column;
  }

  .workflow-step {
    border-radius: var(--radius-lg) !important;
    border-right: 1px solid var(--border) !important;
  }
}

@media (max-width: 768px) {
  .page-shell {
    width: calc(100% - 24px);
    padding-top: 12px;
  }

  .site-header {
    top: 8px;
    padding: 12px 14px;
  }

  .site-nav { display: none; }

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

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

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

  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
  }

  .stat-divider { display: none; }

  .download-banner {
    flex-direction: column;
    text-align: center;
  }

  .glass-panel {
    padding: 20px;
    border-radius: var(--radius-md);
  }

  .hero h1 {
    font-size: clamp(1.8rem, 6vw, 2.6rem);
  }

  .hero-stats {
    gap: 8px;
  }

  .stat-item {
    padding: 0 12px;
  }

  .image-modal-card {
    width: calc(100% - 16px);
    max-height: calc(100vh - 16px);
    padding: 14px;
  }

  #image-modal-preview {
    max-height: calc(100vh - 220px);
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary--lg, .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
}
