/* 意动 MindFlow 官网 — B 端色彩体系 V1.4（公测视觉增强） */

:root {
  /* 品牌蓝 */
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --brand-light: #3b82f6;
  --brand-tint: #eff6ff;
  --brand-tint-tag: #dbeafe;

  /* 辅助色：AI / 协作点缀 */
  --accent-ai: #6366f1;
  --accent-collab: #06b6d4;

  /* 中性色阶 */
  --bg: #ffffff;
  --bg-muted: #f8fafc;
  --bg-slogan: #f1f5f9;
  --bg-hero-top: #b8d4f8;
  --bg-hero-mid: #d6e6fb;
  --bg-hero-bottom: #f5f9ff;
  --bg-features: #e4eaf2;
  --bg-screenshots: #f1f5f9;
  --border: #e2e8f0;

  --text-title: #1e293b;
  --text-body: #475569;
  --text-muted: #64748b;

  --bg-footer: #1a2d66;
  --bg-download-top: #254b96;
  --bg-download-bottom: #1e3a8a;
  --brand-emphasis: #1d4ed8;
  --text-on-dark: #e2e8f0;
  --text-on-dark-muted: #94a3b8;

  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-frame: 0 8px 24px rgba(15, 23, 42, 0.08);

  --header-h: 80px;
  --section-pad-y: 80px;
  --max-w: 1120px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--bg);
  background-image: radial-gradient(rgba(226, 232, 240, 0.9) 1px, transparent 1px);
  background-size: 28px 28px;
  background-attachment: fixed;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
}

code {
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  background: #f1f5f9;
  color: var(--text-body);
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.nav-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-slogan {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  white-space: nowrap;
}

.nav-slogan__badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand-emphasis);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.1);
}

.nav-slogan__badge::before,
.nav-slogan__badge::after {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-light));
}

.nav-slogan__badge::after {
  background: linear-gradient(90deg, var(--brand-light), transparent);
}

.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}

.btn-nav {
  position: relative;
  z-index: 1;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  border-radius: var(--radius);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.brand:hover .brand-logo {
  filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.45));
  transform: scale(1.04);
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent-collab) 50%, var(--brand-light) 100%);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  transition: background-position 0.5s ease;
}

.brand:hover .brand-name {
  background-position: 100% 0;
}

.brand-product {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.btn-primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
}

.btn-outline:hover {
  background: var(--brand-tint);
  color: var(--brand-hover);
  border-color: var(--brand-hover);
}

.btn-lg {
  padding: 10px 24px;
  font-size: 1rem;
}

.btn-nav {
  padding: 8px 16px;
}

.btn-disabled {
  cursor: not-allowed;
  opacity: 0.85;
}

/* ── Sections ── */
main > .section {
  position: relative;
  padding: var(--section-pad-y) 24px;
}

main > .section:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border) 50%, transparent 100%);
  pointer-events: none;
}

.section-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-title {
  margin: 0 0 12px;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-title);
  text-align: center;
  letter-spacing: 0.01em;
}

.section-lead {
  margin: 0 auto 48px;
  max-width: 640px;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.section-features {
  padding-top: 64px;
  background: linear-gradient(180deg, #dce4ef 0%, var(--bg-features) 40%, #e8edf4 100%);
  border-top: 1px solid #c5d0de;
}

.section-features .feature-card {
  box-shadow:
    0 6px 20px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  border-color: rgba(148, 163, 184, 0.4);
}

/* 须高于 main > .section 的 padding 简写，否则子选择器会被覆盖 */
main > .section.section-compare {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

main > .section.section-screenshots {
  padding-top: 0;
  background: var(--bg-screenshots);
}

.section-screenshots .section-lead--screenshots {
  margin-bottom: 40px;
}

/* ── Hero：加深蓝渐变，上深下浅 ── */
.section-hero {
  position: relative;
  overflow: hidden;
  padding-top: 64px;
  padding-bottom: 64px;
  background: linear-gradient(
    165deg,
    #9ec0f0 0%,
    var(--bg-hero-top) 18%,
    var(--bg-hero-mid) 48%,
    var(--bg-hero-bottom) 82%,
    #ffffff 100%
  );
  border-bottom: 1px solid rgba(37, 99, 235, 0.12);
}

.section-hero::before {
  content: "";
  position: absolute;
  top: -60px;
  right: 5%;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, transparent 68%);
  pointer-events: none;
}

.section-hero::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -40px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-title {
  margin: 0 auto 48px;
  max-width: 720px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-title);
}

.hero-desc {
  margin: 0 auto 44px;
  max-width: min(1020px, 94vw);
  font-size: 1.125rem;
  color: var(--text-body);
  line-height: 1.72;
  text-align: left;
}

.hero-desc p {
  margin: 0 0 1rem;
}

.hero-desc p:last-child {
  margin-bottom: 0;
}

.hero-beta-note {
  margin: 0 auto 48px;
  max-width: min(1020px, 94vw);
  padding: 16px 22px;
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--text-body);
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  text-align: left;
  box-shadow: var(--shadow-card);
}

.hero-role-floats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin: 8px auto 48px;
  max-width: 640px;
}

.hero-role-chip {
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  animation: hero-chip-float 4s ease-in-out infinite;
}

.hero-role-chip:nth-child(2) {
  animation-delay: 0.4s;
}

.hero-role-chip:nth-child(3) {
  animation-delay: 0.8s;
}

.hero-role-chip:nth-child(4) {
  animation-delay: 1.2s;
}

.hero-role-chip:nth-child(5) {
  animation-delay: 1.6s;
}

.hero-role-chip:nth-child(6) {
  animation-delay: 2s;
}

.hero-role-chip--live {
  color: var(--brand-emphasis);
  border-color: rgba(37, 99, 235, 0.35);
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.hero-role-chip--soon {
  opacity: 0.62;
  color: var(--text-muted);
  background: #f8fafc;
  animation: none;
}

.chip-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-muted);
  background: #e2e8f0;
  border-radius: 4px;
  vertical-align: middle;
}

@keyframes hero-chip-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 0;
}

/* ── Features ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  padding: 32px 24px 28px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent-ai), var(--accent-collab));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.feature-card[data-hover-hint]::after {
  content: attr(data-hover-hint);
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  padding: 6px 10px;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--brand-emphasis);
  background: rgba(239, 246, 255, 0.96);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.feature-card:hover::before {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .feature-card[data-hover-hint]:hover::after {
    opacity: 1;
    transform: translateY(0);
  }

  .feature-card[data-hover-hint]:hover .feature-desc {
    opacity: 0.35;
  }
}

.feature-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-tint-tag);
  border-radius: 6px;
}

.feature-tag--soon {
  color: var(--accent-ai);
  background: rgba(99, 102, 241, 0.12);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-tint-tag);
  color: var(--brand);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-title);
}

.feature-desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ── Compare table ── */
.compare-lead {
  margin-bottom: 48px;
  color: var(--text-body);
}

.compare-wrap {
  overflow: hidden;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid #cbd5e1;
  background: #fff;
  box-shadow:
    0 12px 32px rgba(15, 23, 42, 0.1),
    0 2px 8px rgba(37, 99, 235, 0.06);
}

.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9375rem;
  background: #fff;
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.compare-table thead th {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-title);
  background: linear-gradient(180deg, #f1f5f9 0%, #e8eef5 100%);
  border-bottom: 2px solid #cbd5e1;
}

.compare-table thead th:first-child {
  border-radius: var(--radius) 0 0 0;
}

.compare-table thead th:last-child {
  border-radius: 0 var(--radius) 0 0;
}

.compare-table tbody th {
  font-weight: 600;
  color: var(--text-title);
  width: 120px;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
}

.compare-table tbody tr:nth-child(even) td:not(.col-highlight) {
  background: #fafbfc;
}

.compare-table tbody td {
  color: var(--text-body);
  transition: background 0.15s ease;
}

.compare-table tbody tr:hover td:not(.col-highlight) {
  background: #f1f5f9;
}

.compare-table tbody tr:hover th {
  background: #eff6ff;
  color: var(--brand-emphasis);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table thead .col-highlight {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent-ai) 100%);
  border-bottom-color: var(--brand-hover);
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.15);
}

.compare-table tbody td.col-highlight {
  position: relative;
  font-weight: 500;
  color: var(--text-title);
  background: linear-gradient(90deg, #dbeafe 0%, #eff6ff 100%);
  border-left: 4px solid var(--brand);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.compare-table tbody tr:hover td.col-highlight {
  background: linear-gradient(90deg, #bfdbfe 0%, #eff6ff 100%);
}

.compare-table tbody td.col-highlight strong {
  display: inline-block;
  padding: 2px 0;
  color: var(--brand-emphasis);
  font-weight: 700;
}

/* ── Screenshots：略放大 + 悬停缩放 + 点击灯箱 ── */
.section-screenshots .section-lead {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.screenshot-hint {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-muted);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 8px 0 16px;
}

.screenshot-card {
  position: relative;
  margin: 0;
}

.screenshot-card[data-screenshot-badge]::before {
  content: attr(data-screenshot-badge);
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  border-radius: 999px;
  pointer-events: none;
}

.screenshot-card--live[data-screenshot-badge]::before {
  background: linear-gradient(135deg, var(--brand), var(--accent-collab));
}

.screenshot-card--soon .screenshot-frame img {
  opacity: 0.92;
}

.screenshot-frame {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-frame);
  background: var(--bg);
  cursor: zoom-in;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
  transform-origin: center center;
}

.screenshot-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 168px;
  object-fit: contain;
  object-position: top center;
  background: #fff;
  pointer-events: none;
}

.screenshot-card figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .screenshot-card {
    position: relative;
  }

  .screenshot-card:hover {
    z-index: 2;
  }

  .screenshot-card:hover .screenshot-frame {
    transform: scale(1.14);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.16);
    border-color: #cbd5e1;
  }

  .screenshot-card:hover figcaption {
    color: var(--brand);
    font-weight: 600;
  }
}

/* 灯箱大图：尽量占满视口，便于看清界面细节 */
.screenshot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.screenshot-lightbox[hidden] {
  display: none !important;
}

.screenshot-lightbox__backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  border: none;
  background: rgba(15, 23, 42, 0.82);
  cursor: zoom-out;
}

.screenshot-lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(1440px, 98vw);
  max-height: 97vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.screenshot-lightbox__img {
  display: block;
  width: min(1440px, 98vw);
  max-width: 98vw;
  max-height: calc(97vh - 36px);
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  background: #fff;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.screenshot-lightbox__img.is-loading {
  opacity: 0;
}

.screenshot-lightbox__caption {
  flex-shrink: 0;
  margin: 8px 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #f8fafc;
}

.screenshot-lightbox__close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--text-title);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ── Download：柔和渐变 + 层次卡片/按钮 ── */
.section-download {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-download-top) 0%, var(--bg-download-bottom) 100%);
  color: #fff;
}

.section-download::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.12) 0%, transparent 100%);
  pointer-events: none;
}

.section-download:not(:last-child)::after {
  display: none;
}

.section-download .section-title {
  color: #fff;
}

.download-inner {
  max-width: 680px;
  text-align: center;
}

.version-meta {
  list-style: none;
  margin: 0 0 28px;
  padding: 20px 24px;
  text-align: left;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.version-meta li {
  padding: 6px 0;
  font-size: 0.9375rem;
  color: #ffffff;
}

.meta-label {
  display: inline-block;
  min-width: 5.5em;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8125rem;
}

.download-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.download-btn-wrap {
  position: relative;
  display: inline-block;
}

.download-speed-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 2;
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  color: #0f172a;
  white-space: nowrap;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.download-speed-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 10px;
  height: 10px;
  background: #f8fafc;
  border-right: 1px solid rgba(148, 163, 184, 0.45);
  border-bottom: 1px solid rgba(148, 163, 184, 0.45);
  transform: translateX(-50%) rotate(45deg);
}

.download-btn-wrap:hover .download-speed-tip,
.download-btn-wrap:focus-within .download-speed-tip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.section-download .btn-download {
  min-width: 220px;
  background: var(--brand-light);
  color: #fff;
  border-color: var(--brand-light);
  font-weight: 600;
  text-decoration: none;
  animation: download-pulse 2.4s ease-out infinite;
}

.section-download .btn-download:disabled,
.section-download .btn-download[aria-disabled="true"] {
  cursor: not-allowed;
}

.section-download a.btn-download {
  cursor: pointer;
}

@keyframes download-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.45);
  }

  70% {
    box-shadow: 0 0 0 12px rgba(96, 165, 250, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(96, 165, 250, 0);
  }
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.trust-badges li {
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ── 角色悬浮窗（V1.0 预览） ── */
.role-float {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 60;
}

.role-float__trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent-ai));
  border: none;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.role-float__trigger::before {
  content: "🤖";
}

.role-float__trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.4);
}

.role-float__menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(260px, calc(100vw - 40px));
  padding: 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.role-float__menu[hidden] {
  display: none !important;
}

.role-float__title {
  margin: 0 0 8px;
  padding: 0 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.role-float__item {
  display: block;
  width: 100%;
  margin: 4px 0;
  padding: 8px 10px;
  font-size: 0.8125rem;
  font-family: inherit;
  text-align: left;
  color: var(--text-muted);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: not-allowed;
  opacity: 0.85;
}

.role-float__tip {
  margin: 8px 0 0;
  padding: 0 4px;
  font-size: 0.75rem;
  color: var(--brand);
}

.section-download .btn-download:hover:not(:disabled) {
  background: #60a5fa;
  border-color: #60a5fa;
}

.install-details {
  width: 100%;
  max-width: 220px;
  text-align: center;
}

.install-details summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 8px 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  cursor: pointer;
  list-style: none;
  transition: background 0.15s, border-color 0.15s;
}

.install-details summary::-webkit-details-marker {
  display: none;
}

.install-details summary::after {
  content: " ▾";
  font-size: 0.75em;
  opacity: 0.8;
}

.install-details[open] summary::after {
  content: " ▴";
}

.install-details summary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.install-details-body {
  margin-top: 12px;
  padding: 16px 20px;
  text-align: left;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.install-details ol {
  margin: 0;
  padding-left: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  line-height: 1.8;
}

.download-hint {
  margin: 0 auto 8px;
  max-width: 640px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

.download-hint strong {
  color: #fff;
  font-weight: 600;
}

.download-note {
  margin: 0 auto;
  max-width: 640px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
}

.section-download code {
  background: rgba(0, 0, 0, 0.2);
  color: #e2e8f0;
}

/* ── Footer：与下载区同色系衔接 ── */
.site-footer {
  padding: 48px 24px 56px;
  background: var(--bg-footer);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer-brand {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.footer-copy,
.footer-icp {
  margin: 0 0 4px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

.footer-col-title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9);
}

.footer-col--links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col--links a {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.footer-col--links a:hover {
  color: #60a5fa;
  text-decoration: none;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.footer-social-btn svg {
  width: 18px;
  height: 18px;
}

.footer-social-btn:hover {
  border-color: #60a5fa;
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.12);
  text-decoration: none;
}

.footer-social-btn--muted {
  opacity: 0.45;
  cursor: default;
}

.footer-contact {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.footer-contact--sub {
  margin: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.48);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }

  .feature-card,
  .screenshot-frame {
    transition: none;
  }

  .feature-card:hover,
  .screenshot-card:hover .screenshot-frame {
    transform: none;
  }

  .hero-role-chip,
  .section-download .btn-download {
    animation: none;
  }

  .download-speed-tip {
    transition: none;
  }
}

/* Tablet */
@media (max-width: 1023px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .screenshot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .screenshot-grid .screenshot-card:last-child {
    grid-column: 1 / -1;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-col--social {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1024px) {
  .nav-slogan__badge {
    font-size: 12px;
    letter-spacing: 0.08em;
    padding: 5px 14px;
    gap: 8px;
  }

  .nav-slogan__badge::before,
  .nav-slogan__badge::after {
    width: 14px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  main > .section {
    padding: 64px 16px;
  }

  .feature-grid,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-grid .screenshot-card:last-child {
    max-width: none;
  }

  .compare-table {
    font-size: 0.8125rem;
  }

  .compare-table th,
  .compare-table td {
    padding: 10px 12px;
  }

  .nav-slogan {
    display: none;
  }

  .section-hero {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .section-features {
    padding-top: 48px;
  }

  .hero-role-floats {
    margin-bottom: 40px;
  }

  .hero-title {
    margin-bottom: 36px;
  }

  .hero-desc {
    margin-bottom: 32px;
  }

  .hero-beta-note {
    margin-bottom: 36px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-lg {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .footer-col--links {
    align-items: center;
  }

  .footer-social {
    justify-content: center;
  }

  .role-float {
    right: 12px;
    bottom: 16px;
  }

  .hero-role-floats {
    gap: 8px;
  }

  .hero-role-chip {
    font-size: 0.75rem;
    padding: 5px 10px;
  }
}

/* 触屏无 hover：下载提示常显在按钮下方 */
@media (hover: none), (pointer: coarse) {
  .download-btn-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .download-speed-tip {
    position: static;
    margin-top: 10px;
    transform: none;
    opacity: 1;
    visibility: visible;
    white-space: normal;
    text-align: center;
  }

  .download-speed-tip::after {
    display: none;
  }
}
