/* =========================================================
   PrismGrab · 主样式（苹果官网风格）
   主题色请改 css/themes.css，页面文案请改 js/site.config.js
   ========================================================= */

/* ---------------- 基础 ---------------- */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --nav-h: 48px;
  --radius-card: 22px;
  --container: 1080px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.35s ease, color 0.35s ease;
}

img { max-width: 100%; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; }
a { color: inherit; }
code { font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace; }

::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  font-size: 13px;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  font-weight: 500;
  font-size: 15px;
  padding: 10px 22px;
  border-radius: 980px;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    background-color 0.25s ease, color 0.25s ease;
}
.btn:active { transform: scale(0.97); }
.btn svg { flex: none; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 86%, #000);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 38%, transparent);
}

.btn-light {
  background: #f5f5f7;
  color: #1d1d1f;
}
.btn-light:hover { background: #fff; }

.btn-outline {
  background: transparent;
  color: var(--accent);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.btn-outline:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }

.btn-ghost {
  background: transparent;
  color: var(--accent);
}
.btn-ghost .arrow { transition: transform 0.25s ease; }
.btn-ghost:hover .arrow { transform: translateX(3px); }

.btn-ghost-light {
  background: transparent;
  color: #f5f5f7;
}
.btn-ghost-light .arrow { transition: transform 0.25s ease; }
.btn-ghost-light:hover .arrow { transform: translateX(3px); }

.btn-sm { padding: 6px 15px; font-size: 13px; }
.btn-lg { padding: 13px 28px; font-size: 16px; }
.arrow { font-size: 1.2em; line-height: 1; margin-left: 2px; }

/* ---------------- 导航栏 ---------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-2);
  transition: background-color 0.35s ease;
}

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

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.nav-logo { display: block; border-radius: 6px; }

.nav-links {
  display: flex;
  gap: 30px;
  margin: 0 auto;
}
.nav-links a {
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.nav-links + .nav-actions { margin-left: 0; }

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  color: var(--text-2);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.icon-btn:hover { background: var(--line-2); color: var(--text); }

.menu-btn {
  display: none;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  cursor: pointer;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 0;
}
.menu-btn span {
  display: block;
  width: 17px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s ease;
}
.menu-btn.open span:nth-child(1) { transform: translateY(3.8px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { transform: translateY(-3.8px) rotate(-45deg); }

/* 主题设置弹层 */
.theme-pop {
  position: absolute;
  top: calc(var(--nav-h) + 10px);
  right: max(22px, calc((100% - var(--container)) / 2));
  z-index: 101;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-pop);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: scale(0.95) translateY(-8px);
  transform-origin: top right;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.theme-pop.open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
/* hidden 属性优先级要高于本组件的 display:flex */
.theme-pop[hidden],
.mobile-menu[hidden] { display: none; }

.pop-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.pop-label {
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0.02em;
}

.theme-dots { display: flex; gap: 11px; }
.dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
  background-color: #999;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}
.dot:hover { transform: scale(1.12); }
.dot.active::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

.seg {
  display: flex;
  background: var(--bg-2);
  border-radius: 9px;
  padding: 2px;
}
.seg button {
  border: 0;
  background: transparent;
  padding: 5px 13px;
  font-size: 12px;
  font-family: inherit;
  border-radius: 7px;
  color: var(--text-2);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.seg button.active {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
}

/* 移动端菜单 */
.mobile-menu {
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 8px 22px 22px;
  animation: menuIn 0.25s ease;
}
@keyframes menuIn {
  from { transform: translateY(-8px); }
  to { transform: none; }
}
.mobile-menu a:not(.btn) {
  padding: 13px 0;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
}
.mobile-menu a:not(.btn).active { color: var(--accent); font-weight: 600; }
.mobile-menu .btn {
  margin-top: 16px;
}

/* ---------------- 首屏 Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 88px) 0 20px;
  text-align: center;
}
/* 动态极光背景（主题色驱动，仅 transform 动画保证性能） */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  will-change: transform;
}
.hero::before {
  width: 640px;
  height: 480px;
  left: -8%;
  top: -16%;
  background: radial-gradient(closest-side,
    color-mix(in srgb, var(--accent) 42%, transparent), transparent 72%);
  animation: auroraA 17s ease-in-out infinite alternate;
}
.hero::after {
  width: 580px;
  height: 470px;
  right: -9%;
  top: 2%;
  background: radial-gradient(closest-side,
    color-mix(in srgb, var(--accent-2) 40%, transparent), transparent 72%);
  animation: auroraB 21s ease-in-out infinite alternate;
}
@keyframes auroraA {
  from { transform: translate(0, 0) rotate(0deg) scale(1); }
  to   { transform: translate(90px, 55px) rotate(28deg) scale(1.18); }
}
@keyframes auroraB {
  from { transform: translate(0, 0) rotate(0deg) scale(1); }
  to   { transform: translate(-85px, 65px) rotate(-22deg) scale(1.12); }
}
.hero-inner { position: relative; z-index: 1; }

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

/* 版本徽章胶囊 */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 16px;
  border-radius: 980px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.hero-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.hero-title {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}
.grad {
  background: linear-gradient(118deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--text-2);
  max-width: 640px;
  margin: 0 auto 30px;
}

.hero-cta {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-shot {
  margin: 60px auto 0;
  max-width: 980px;
}

/* 截图外框（亮暗两图叠加，随模式淡入淡出） */
.shot-frame {
  display: grid;
  isolation: isolate;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-frame);
  background: var(--bg-2);
}
.shot {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.5s ease;
}
.shot-dark { opacity: 0; }
html[data-mode="dark"] .shot-dark { opacity: 1; }
html[data-mode="dark"] .shot-light { opacity: 0; }

/* ---------------- 支持平台 ---------------- */
.platforms {
  background: var(--bg-2);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  padding: 36px 0;
  transition: background-color 0.35s ease;
}
.platforms-label {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 16px;
}
.platform-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 17px;
  border-radius: 980px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease,
    background-color 0.35s ease, box-shadow 0.2s ease;
}
a.platform-chip:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 16%, transparent);
}
.pf-logo { display: block; flex: none; }

/* ---------------- 通用版块 ---------------- */
.section { padding: 112px 0; }
.section-alt { background: var(--bg-2); transition: background-color 0.35s ease; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 62px;
}
.section-title {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-2);
}

/* ---------------- 功能亮点（bento 网格） ---------------- */
.features-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature-card {
  grid-column: span 1;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-card);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    background-color 0.35s ease, border-color 0.35s ease;
}
.features-grid .feature-card:first-child { grid-column: span 2; }
/* 末尾卡片通栏，做成横幅式布局，避免右侧留空 */
.features-grid .feature-card:last-child {
  grid-column: span 4;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
.features-grid .feature-card:last-child h3 { white-space: nowrap; }
.features-grid .feature-card:last-child p { flex: 1; }
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  margin-bottom: 8px;
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
}

/* 截图可点击放大 */
.showcase-media .shot-frame {
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.showcase-media .shot-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.35);
}
.showcase-media .shot-frame:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* 灯箱（大图查看） */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 3vw;
  background: rgba(10, 10, 12, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.lightbox.open { opacity: 1; }
.lightbox[hidden] { display: none; }
/* 动画环境异常时的兜底：强制呈现终态，保证灯箱始终可见 */
.lightbox.lb-instant,
.lightbox.lb-instant .lightbox-img-wrap {
  transition: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.lightbox-img-wrap {
  max-width: min(1280px, 94vw);
  transform: scale(0.94) translateY(10px);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.25, 1), opacity 0.28s ease;
}
.lightbox.open .lightbox-img-wrap {
  transform: none;
  opacity: 1;
}
.lightbox img {
  display: block;
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
  cursor: zoom-out;
}
.lightbox-caption {
  margin-top: 14px;
  text-align: center;
  color: #f5f5f7;
  font-size: 14px;
}
.lightbox-mode {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.lightbox-mode button {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 980px;
  padding: 6px 16px;
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.lightbox-mode button:hover { background: rgba(255, 255, 255, 0.16); }
.lightbox-mode button.active {
  background: #fff;
  color: #111;
  border-color: #fff;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.18); transform: rotate(90deg); }

@media (max-width: 734px) {
  .lightbox { padding: 16px; }
  .lightbox img { max-height: 72vh; border-radius: 10px; }
  .lightbox-close { top: 12px; right: 12px; }
}

/* ---------------- 界面预览（图文交替） ---------------- */
.showcase-rows {
  display: flex;
  flex-direction: column;
  gap: 110px;
}
.showcase-row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: center;
}
.showcase-row.rev .showcase-copy { order: 2; }
.showcase-row.rev .showcase-media { order: 1; }
.showcase-copy h3 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 14px;
}
.showcase-copy p {
  font-size: 16px;
  color: var(--text-2);
}

/* ---------------- 价格方案 ---------------- */
.pricing-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 24px;
  padding: 30px 26px;
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    background-color 0.35s ease, border-color 0.35s ease;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.price-card.featured {
  background: var(--bg);
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--accent), var(--shadow-card);
}

.price-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(118deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 13px;
  border-radius: 980px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.price-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
}
.price-line {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 4px;
}
.price-currency { font-size: 18px; font-weight: 600; }
.price-value {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.price-original {
  font-size: 14px;
  color: var(--text-2);
  text-decoration: line-through;
  margin-left: 4px;
}
.price-devices {
  font-size: 13px;
  color: var(--text-2);
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line-2);
}
.price-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
  flex: 1;
}
.price-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--text-2);
}
.price-list svg {
  flex: none;
  margin-top: 3.5px;
  color: var(--accent);
}
.price-card .btn { width: 100%; }

.pricing-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-2);
  max-width: 640px;
  margin: 40px auto 0;
}

/* ---------------- 促销活动横幅 ---------------- */
.promo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  max-width: 720px;
  margin: -30px auto 46px;
  padding: 13px 24px;
  border-radius: 16px;
  background: linear-gradient(118deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 38%, transparent);
}
.promo-banner[hidden] { display: none; }
.promo-spark { flex: none; filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6)); }
.promo-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.promo-date {
  font-size: 13px;
  opacity: 0.88;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.promo-count { display: inline-flex; gap: 6px; }
.promo-cell {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 3px 8px;
}
.promo-cell b {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 1.5em;
  text-align: center;
}
.promo-cell i { font-style: normal; font-size: 10.5px; opacity: 0.82; }

@media (max-width: 734px) {
  .promo-banner { margin: -20px auto 36px; gap: 10px; padding: 13px 16px; }
  .promo-title { font-size: 15.5px; }
}

/* ---------------- 常见问题 ---------------- */
.faq-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.25s ease, background-color 0.35s ease;
}
.faq-item.open {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line-2));
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}
.faq-q svg {
  flex: none;
  color: var(--text-2);
  transition: transform 0.3s ease;
}
.faq-item.open .faq-q svg { transform: rotate(180deg); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a p {
  padding: 0 22px 20px;
  font-size: 14.5px;
  color: var(--text-2);
}

/* FAQ 尾部：帮助文档入口 */
.faq-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding: 16px 22px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 4%, transparent);
}
.faq-more-text { font-size: 14px; color: var(--text-2); }
.faq-more-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.faq-more-link .arrow { transition: transform 0.25s ease; }
.faq-more-link:hover .arrow { transform: translateX(3px); }

/* ---------------- 底部下载区（平台下载卡片） ---------------- */
.dl {
  position: relative;
  overflow: hidden;
  background: var(--dark-section);
  color: #f5f5f7;
  text-align: left;
  padding: 110px 0 120px;
}
.dl::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -45%;
  transform: translateX(-50%);
  width: 920px;
  height: 520px;
  background: radial-gradient(closest-side,
    color-mix(in srgb, var(--accent) 30%, transparent), transparent);
  filter: blur(60px);
  pointer-events: none;
}
.dl-eyebrow {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}
.dl-title {
  position: relative;
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.dl-sub {
  position: relative;
  color: #a1a1a6;
  font-size: 17px;
  margin-bottom: 48px;
  max-width: 640px;
}

.dl-cards {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.dl-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 36px 28px 30px;
  transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}
.dl-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 35%, rgba(255, 255, 255, 0.09));
  background: rgba(255, 255, 255, 0.045);
}
.dl-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
}
.dl-icon svg { display: block; }
.dl-icon-win {
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 62%, #000));
  color: #fff;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 38%, transparent);
}
.dl-icon-mac { background: rgba(255, 255, 255, 0.08); color: #fff; }
.dl-icon-ext {
  background: color-mix(in srgb, var(--accent-2) 16%, transparent);
  color: var(--accent-2);
}
.dl-card-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.dl-card-sub {
  font-size: 13.5px;
  color: #a1a1a6;
  margin-bottom: 24px;
}
.dl-card-btn { width: 100%; border-radius: 12px; margin-top: auto; }
.dl-card-btn + .dl-card-btn { margin-top: 10px; }

.dl-note {
  position: relative;
  margin-top: 40px;
  font-size: 14px;
  color: #a1a1a6;
  text-align: center;
}
.dl-note-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.dl-note-link:hover { text-decoration: underline; }
.dl-note-link svg { flex: none; }

/* ---------------- macOS 下载卡片：悬停弹出芯片子按钮 ---------------- */
.dl-split { position: relative; width: 100%; }
.dl-split-pop {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  background: #1d1d1f;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 30;
}
.dl-split-pop[hidden] { display: none; }
.dl-split.open .dl-split-pop {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.dl-split-pop::before {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #1d1d1f;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.dl-split-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #f5f5f7;
  text-decoration: none;
  transition: background-color 0.18s ease;
}
.dl-split-item:hover { background: rgba(255, 255, 255, 0.08); }
.dl-split-item + .dl-split-item { margin-top: 2px; }
.dl-split-chip {
  flex: none;
  min-width: 34px;
  height: 24px;
  padding: 0 7px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
}
.dl-split-chip.m { background: linear-gradient(118deg, var(--accent), var(--accent-2)); }
.dl-split-chip.intel { background: #6e6e73; }
.dl-split-txt { min-width: 0; }
.dl-split-txt b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.dl-split-txt small { display: block; font-size: 11px; color: #a1a1a6; margin-top: 1px; white-space: nowrap; }

/* ---------------- 更新日志独立页：顶部极光背景 ---------------- */
body.page-changelog {
  position: relative;
  overflow-x: hidden;
}
body.page-changelog main { position: relative; z-index: 1; }
body.page-changelog::before {
  content: "";
  position: absolute;
  top: -170px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 560px;
  border-radius: 50%;
  background:
    radial-gradient(closest-side at 34% 44%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 72%),
    radial-gradient(closest-side at 66% 48%, color-mix(in srgb, var(--accent-2) 24%, transparent), transparent 72%);
  filter: blur(56px);
  pointer-events: none;
  opacity: 0.4;
}
html[data-mode="dark"] body.page-changelog::before { opacity: 0.8; }

/* ---------------- 页脚 ---------------- */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line-2);
  padding: 56px 0 34px;
  font-size: 13px;
  color: var(--text-2);
  transition: background-color 0.35s ease;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 48px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line-2);
}
.footer-brand .nav-brand { margin-bottom: 14px; }
.footer-about {
  max-width: 320px;
  line-height: 1.7;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  color: var(--text-2);
  text-decoration: none;
}
.footer-col a:hover { color: var(--text); text-decoration: underline; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 12px;
}
.footer-icp { color: var(--text-2); text-decoration: none; }
.footer-icp:hover { color: var(--text); text-decoration: underline; }

/* ---------------- 滚动渐入动效 ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease var(--d, 0s), transform 0.7s ease var(--d, 0s);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

.noscript-tip {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  background: #1d1d1f;
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13px;
}

/* ---------------- 首屏交互演示窗口 ---------------- */
.hero-demo {
  margin: 58px auto 0;
  max-width: 900px;
}
.demo-tilt { perspective: 1400px; }
.demo-window {
  transform-style: preserve-3d;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-frame);
  overflow: hidden;
  transition: transform 0.25s ease-out, background-color 0.35s ease;
  font-size: 13px;
}

.demo-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line-2);
  background: var(--bg-2);
}
.demo-app {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--text);
}
.demo-app img { border-radius: 4px; display: block; }
.demo-winctl { display: inline-flex; gap: 16px; color: var(--text-2); align-items: center; }
.demo-winctl i { position: relative; width: 11px; height: 11px; display: inline-block; }
.demo-winctl i:nth-child(1)::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1.4px;
  background: currentColor;
}
.demo-winctl i:nth-child(2) { border: 1.2px solid currentColor; width: 9px; height: 9px; }
.demo-winctl i:nth-child(3)::before,
.demo-winctl i:nth-child(3)::after {
  content: "";
  position: absolute;
  left: 5px; top: 0;
  width: 1.4px;
  height: 11px;
  background: currentColor;
}
.demo-winctl i:nth-child(3)::before { transform: rotate(45deg); }
.demo-winctl i:nth-child(3)::after { transform: rotate(-45deg); }

.demo-tabs {
  display: flex;
  gap: 4px;
  padding: 6px 14px 0;
  border-bottom: 1px solid var(--line-2);
}
.demo-tab {
  padding: 7px 16px 8px;
  font-size: 12.5px;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
}
.demo-tab.active {
  color: var(--accent);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.demo-body { padding: 16px 18px 18px; }
.demo-label {
  display: block;
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 8px;
}
.demo-input {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-2);
  font-size: 12.5px;
  color: var(--text);
  overflow: hidden;
}
.demo-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
.demo-caret {
  width: 1.5px;
  height: 16px;
  margin-left: 2px;
  background: var(--accent);
  flex: none;
  animation: caretBlink 0.9s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

.demo-actions {
  display: flex;
  gap: 10px;
  margin: 12px 0 4px;
}
.demo-btn {
  border: 0;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 12.5px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.demo-btn:active { transform: scale(0.96); }
.demo-btn-ghost {
  background: var(--bg-2);
  color: var(--text-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.demo-btn-primary {
  margin-left: auto;
  background: linear-gradient(118deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 35%, transparent);
}
.demo-btn-primary:hover { box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 50%, transparent); }

.demo-tasks {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  height: 190px;
  overflow: hidden;
}
.demo-task {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 11px 12px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: var(--bg-2);
  animation: taskIn 0.35s ease;
}
@keyframes taskIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.demo-task.gone { opacity: 0; transform: translateY(-6px); transition: opacity 0.3s, transform 0.3s; }

/* 平台徽章（品牌色，固定不随主题） */
.pf {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex: none;
  letter-spacing: -0.02em;
}
.pf-behance    { background: #1769ff; }
.pf-pinterest  { background: #e60023; }
.pf-instagram  { background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af); }
.pf-artstation { background: #13aff0; }
.pf-pixiv      { background: #0096fa; }
.pf-500px      { background: #0099e5; }
.pf-imgur      { background: #1bb76e; }
.pf-deviantart { background: #05cc47; }

.demo-task-main { flex: 1; min-width: 0; }
.demo-task-url {
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.demo-task-meta {
  display: flex;
  gap: 12px;
  margin-top: 3px;
  font-size: 11px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.demo-status.ok { color: var(--accent); font-weight: 600; }

.demo-track {
  height: 3.5px;
  border-radius: 3px;
  background: var(--line-2);
  margin-top: 7px;
  overflow: hidden;
}
.demo-bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.25s linear;
}
.demo-open {
  flex: none;
  align-self: center;
  font-size: 11px;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 7px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
  opacity: 0;
  transform: translateX(4px);
  transition: opacity 0.3s, transform 0.3s;
}
.demo-task.done .demo-open { opacity: 1; transform: none; }

/* ---------------- 浏览器扩展版块 ---------------- */
#extension { overflow: hidden; }
.ext-stage {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: 56px;
  align-items: center;
  position: relative;
  min-width: 0;
}
.ext-stage > * { min-width: 0; }
.ext-stage::before {
  content: "";
  position: absolute;
  right: -6%;
  top: -12%;
  width: 560px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    color-mix(in srgb, var(--accent-2) 20%, transparent), transparent 72%);
  filter: blur(56px);
  pointer-events: none;
}

.ext-copy { position: relative; z-index: 1; }
.ext-steps {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ext-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0.45;
}
.ext-step .ext-step-num {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-2);
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.ext-step p { font-size: 15.5px; color: var(--text-2); margin-top: 4px; }
.ext-step.active { opacity: 1; }
.ext-step.active .ext-step-num {
  background: linear-gradient(118deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 40%, transparent);
}
.ext-step.active p { color: var(--text); font-weight: 500; }

/* 仿真浏览器窗口 */
.ext-browser {
  position: relative;
  z-index: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-frame);
  overflow: hidden;
  user-select: none;
}
.ext-chrome {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-2);
}
.ext-dots { display: inline-flex; gap: 6px; }
.ext-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}
.ext-dots i:nth-child(1) { background: #ff5f57; }
.ext-dots i:nth-child(2) { background: #febc2e; }
.ext-dots i:nth-child(3) { background: #28c840; }
.ext-addr {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ext-page {
  position: relative;
  padding: 18px;
  min-height: 380px;
}
.ext-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 118px;
  gap: 12px;
}
.ext-tile {
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.3s ease;
}
.ext-tile:hover { transform: scale(1.03); }
.ext-tile.grabbed {
  transform: scale(0.94);
  filter: saturate(0.6) brightness(0.9);
}
.ext-tile.grabbed::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  background: color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 10px;
}
.ext-tile.dim { filter: brightness(0.92) saturate(0.9); }
/* 示例作品色块（纯 CSS 渐变，模拟网页图片） */
.tl-1 { background: linear-gradient(135deg, #fda7c0, #c084fc 60%, #818cf8); grid-row: span 2; }
.tl-2 { background: linear-gradient(140deg, #67e8f9, #3b82f6 70%, #6366f1); }
.tl-3 { background: linear-gradient(135deg, #fdba74, #fb7185 75%, #e11d48); }
.tl-4 { background: linear-gradient(150deg, #a7f3d0, #14b8a6 70%, #0e7490); }
.tl-5 { background: linear-gradient(135deg, #fde68a, #f59e0b 70%, #ea580c); }
.tl-6 { background: linear-gradient(140deg, #c4b5fd, #8b5cf6 65%, #4f46e5); grid-row: span 2; }

/* 假光标 */
.ext-cursor {
  position: absolute;
  left: 50%;
  top: 40%;
  z-index: 6;
  width: 22px;
  height: 22px;
  color: #111;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
  pointer-events: none;
  transition: left 0.55s cubic-bezier(0.5, 0, 0.2, 1), top 0.55s cubic-bezier(0.5, 0, 0.2, 1);
}
.ext-cursor.hidden { opacity: 0; transition: opacity 0.2s; }

/* 右键菜单 */
.ext-menu {
  position: absolute;
  z-index: 8;
  min-width: 208px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 5px;
  font-size: 12.5px;
  animation: menuIn 0.16s ease;
}
.ext-menu[hidden] { display: none; }
.ext-menu-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px 6px;
  font-weight: 700;
  font-size: 11.5px;
  color: var(--text-2);
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 4px;
}
.ext-menu-head img { border-radius: 4px; }
.ext-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  padding: 8px 11px;
  border-radius: 7px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.ext-menu-item:hover, .ext-menu-item.hot { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.ext-menu-item small { display: block; color: var(--text-2); font-size: 10.5px; margin-top: 1px; }
.ext-menu-item + .ext-menu-item { margin-top: 1px; }

/* 抓取成功提示 */
.ext-toast {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 9;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-pop);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
  animation: toastIn 0.3s ease;
}
.ext-toast[hidden] { display: none; }
.ext-toast::before {
  content: "✓";
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10.5px;
  color: #fff;
  background: linear-gradient(118deg, var(--accent), var(--accent-2));
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

/* 底部下载条 */
.ext-dbar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 9;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-pop);
  border-radius: 11px;
  padding: 9px 13px;
  animation: dbarIn 0.3s ease;
}
.ext-dbar[hidden] { display: none; }
@keyframes dbarIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.ext-dbar img { border-radius: 4px; flex: none; }
.ext-dbar-label { font-size: 11.5px; color: var(--text-2); white-space: nowrap; }
.ext-dbar .ext-track {
  flex: 1;
  height: 4px;
  border-radius: 3px;
  background: var(--line-2);
  overflow: hidden;
}
.ext-dbar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.25s linear;
}
.ext-dbar-pct {
  font-size: 11.5px;
  color: var(--text);
  min-width: 34px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---------------- 补充：深浅节奏与浅底按钮 ---------------- */
.btn-outline-light {
  background: transparent;
  color: #f5f5f7;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7);
}
/* 价格区移到灰底后，卡片改用白底保持层次 */
.section-alt .price-card { background: var(--bg); }
.section-alt .price-card.featured { background: var(--bg); }
/* FAQ 移到白底后，条目改用灰底保持层次 */
#faq .faq-item { background: var(--bg-2); }

/* ---------------- 更新日志（时间轴） ---------------- */
.changelog-list {
  list-style: none;
  margin: 0 auto;
  padding: 6px 0 0 40px;
  max-width: 760px;
  position: relative;
}
.changelog-list::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}
.log-item {
  position: relative;
}
.log-item::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 14px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2.5px solid var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
  transition: background-color 0.3s ease;
}
.log-item.current::before { background: var(--accent); }

/* 版本头（可点击折叠/展开） */
.log-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
  padding: 7px 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.log-head:hover .log-version { color: var(--accent); }
.log-chev {
  margin-left: auto;
  flex: none;
  color: var(--text-2);
  transition: transform 0.3s ease;
}
.log-item:not(.collapsed) .log-chev { transform: rotate(180deg); }

/* 条目区折叠：默认无过渡（状态切换即时到位），用户交互时临时启用过渡 */
.log-body {
  display: grid;
  grid-template-rows: 1fr;
}
.changelog-list.log-anim .log-body { transition: grid-template-rows 0.35s ease; }
.log-item.collapsed .log-body { grid-template-rows: 0fr; }
.log-body-inner {
  overflow: hidden;
  min-height: 0;
  padding-bottom: 30px;
  /* 折叠时内边距一并归零，否则 padding 会把盒子撑住，露出一条内容 */
  transition: grid-template-rows 0.35s ease, padding-bottom 0.35s ease;
}
.log-item.collapsed .log-body-inner { padding-bottom: 0; }

/* 三态切换按钮 */
.log-toolbar {
  display: flex;
  justify-content: center;
  margin: -26px 0 34px;
}
.log-toolbar .seg button { font-size: 13px; padding: 7px 18px; }
.log-version {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.log-date {
  font-size: 13px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.log-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 3px 11px;
  border-radius: 980px;
  align-self: center;
}

.log-card-none { display: none; }
.log-list {
  list-style: none;
  margin: 0;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 14px;
}
.log-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}
.log-text { min-width: 0; }

/* 模块分组（大版本按功能模块划分条目） */
.log-group { margin-top: 16px; }
.log-group:first-child { margin-top: 0; }
.log-group-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.log-group-name::before {
  content: "";
  width: 4px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.log-group .log-list { margin-top: 0; }
.log-type {
  flex: none;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 6px;
  margin-top: 2px;
  white-space: nowrap;
}
.log-type.t-add { color: #1a7f37; background: rgba(52, 199, 89, 0.14); }
.log-type.t-imp { color: #0a6ebd; background: rgba(10, 132, 255, 0.12); }
.log-type.t-fix { color: #c2410c; background: rgba(255, 105, 60, 0.14); }
.log-type.t-info, .log-type.t-other { color: var(--text-2); background: var(--line-2); }
html[data-mode="dark"] .log-type.t-add { color: #4ade80; background: rgba(52, 211, 153, 0.15); }
html[data-mode="dark"] .log-type.t-imp { color: #7cb8ff; background: rgba(10, 132, 255, 0.18); }
html[data-mode="dark"] .log-type.t-fix { color: #ff9d7a; background: rgba(255, 105, 60, 0.16); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1068px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid .feature-card:first-child,
  .features-grid .feature-card:last-child { grid-column: span 2; }
  .features-grid .feature-card:last-child { flex-direction: row; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-row { grid-template-columns: 1fr; gap: 30px; }
  .showcase-row .showcase-copy { order: 0; }
  .showcase-row .showcase-media { order: 1; }
  .showcase-rows { gap: 84px; }
  .ext-stage { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 734px) {
  .nav-links { display: none; }
  .menu-btn { display: grid; }

  .hero { padding-top: calc(var(--nav-h) + 64px); }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: min(320px, 100%); }
  .hero-shot { margin-top: 44px; }

  .section { padding: 76px 0; }
  .section-head { margin-bottom: 44px; }

  .features-grid { grid-template-columns: 1fr; }
  .features-grid .feature-card { grid-column: auto; }
  .features-grid .feature-card:last-child {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .features-grid .feature-card:last-child h3 { white-space: normal; }

  .showcase-rows { gap: 72px; }

  .changelog-list { padding-left: 30px; }
  .changelog-list::before { left: 6px; }
  .log-item::before { left: -30px; width: 10px; height: 10px; }
  .log-list { padding: 13px 15px; }

  .hero-demo { margin-top: 42px; }
  .demo-body { padding: 13px 13px 14px; }
  .demo-actions { flex-wrap: wrap; gap: 8px; }
  .demo-btn-primary { margin-left: 0; width: 100%; justify-content: center; }
  .demo-winctl { display: none; }

  .ext-page { padding: 12px; min-height: 320px; }
  .ext-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 96px; gap: 9px; }
  .ext-menu { min-width: 180px; }

  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { order: -1; }

  .dl { padding: 84px 0 92px; }
  .dl-cards { grid-template-columns: 1fr; }
  .dl-card { padding: 30px 22px 26px; }

  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* 主题/模式切换的瞬间禁用过渡，保证全局同步切换、不出现新旧混色 */
html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
  transition: none !important;
}

/* ---------------- 减弱动态效果 ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .shot, .btn, .feature-card, .price-card { transition: none; }
  .hero::before, .hero::after { animation: none; }
  .demo-caret { animation: none; }
  .demo-task, .ext-toast, .ext-dbar, .ext-menu { animation: none; }
  .ext-cursor { transition: none; }
  .demo-bar, .ext-dbar-fill { transition: none; }
  .log-body { transition: none; }
  .log-chev { transition: none; }
}
