:root {
  --bg: #07090e;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --border-bright: rgba(255, 255, 255, 0.18);
  --text: #f5f7fa;
  --text-muted: #98a2b3;
  --accent: #3b82f6;
  --accent-2: #8b5cf6;
  --radius-lg: 24px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 6px;
  color: #dbeafe;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(120px);
  opacity: 0.28;
}

.glow-1 {
  width: 580px;
  height: 580px;
  top: -180px;
  left: 10%;
  background: radial-gradient(circle, #3b82f6, transparent 70%);
}

.glow-2 {
  width: 520px;
  height: 520px;
  top: 120px;
  right: 6%;
  background: radial-gradient(circle, #a855f7, transparent 70%);
}

.glow-3 {
  width: 460px;
  height: 460px;
  bottom: -140px;
  left: 35%;
  background: radial-gradient(circle, #ec4899, transparent 70%);
  opacity: 0.16;
}

/* 顶部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 24px;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.nav-capsule {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(18, 22, 32, 0.72);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text);
}

.nav-dot {
  color: rgba(255, 255, 255, 0.22);
  font-size: 12px;
}

.gh-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  backdrop-filter: blur(12px);
  transition: background 0.2s, border-color 0.2s;
}

.gh-pill:hover {
  background: var(--surface-hover);
  border-color: var(--border-bright);
}

/* Hero 首屏 */
.hero {
  padding: 64px 0 56px;
  text-align: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.28);
  color: #bfdbfe;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 28px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
}

.hero-title {
  font-size: clamp(42px, 6.5vw, 76px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}

.title-line {
  display: block;
}

.hero-inline-icon {
  display: inline-flex;
  vertical-align: -0.14em;
  margin: 0 8px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-inline-icon img {
  width: clamp(46px, 6.2vw, 72px);
  height: clamp(46px, 6.2vw, 72px);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
}

.hero-inline-icon:hover {
  transform: scale(1.1) rotate(-6deg);
}

.hero-subtitle {
  font-size: clamp(18px, 2.3vw, 24px);
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 18px;
}

.hero-desc {
  max-width: 650px;
  margin: 0 auto 36px;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
}

.hero-highlight {
  color: #ffffff;
  font-weight: 600;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 22px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  color: #090d16;
  font-weight: 700;
  font-size: 15.5px;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(255, 255, 255, 0.22);
}

.btn-badge {
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.1);
  color: #334155;
  font-weight: 700;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: background 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-bright);
}

.version-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.version-meta a {
  color: #93c5fd;
  text-decoration: none;
}

.version-meta a:hover {
  text-decoration: underline;
}

/* 通用 Section Header */
.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #60a5fa;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 15.5px;
}

/* 实机运行截图展示框 */
.preview-section {
  padding: 36px 0 84px;
}

.mac-window {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.65);
  background: rgba(15, 23, 42, 0.6);
}

.real-shot-frame {
  position: relative;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.real-shot-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 44px 100px rgba(0, 0, 0, 0.78);
}

.real-shot-img {
  width: 100%;
  height: auto;
  display: block;
}

.real-shot-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: 13px;
  color: var(--text-muted);
  background: rgba(9, 13, 22, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.caption-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
}

.mac-wallpaper {
  position: relative;
  min-height: 520px;
  background:
    radial-gradient(circle at 20% 25%, rgba(56, 189, 248, 0.45), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(168, 85, 247, 0.45), transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(236, 72, 153, 0.35), transparent 50%),
    linear-gradient(135deg, #0f172a 0%, #1e1b4b 55%, #090d16 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.launchpad-overlay {
  position: relative;
  flex: 1;
  padding: 28px 36px 20px;
  background: rgba(9, 13, 22, 0.42);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lp-search-wrap {
  position: relative;
  width: min(360px, 100%);
  margin-bottom: 28px;
}

.lp-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

#lp-search {
  width: 100%;
  padding: 9px 36px 9px 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

#lp-search::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

#lp-search:focus {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.15);
}

.lp-clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  cursor: pointer;
}

.lp-grid {
  width: 100%;
  max-width: 820px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px 18px;
  min-height: 290px;
  align-content: start;
}

.lp-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.18s ease;
}

.lp-item:hover {
  transform: scale(1.06);
}

.lp-item:active {
  transform: scale(0.95);
}

.lp-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.lp-folder-thumb {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(16px);
  padding: 7px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.lp-mini-dot {
  border-radius: 4px;
}

.lp-label {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.lp-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.lp-dots {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.lp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.lp-dot.active {
  background: #ffffff;
  transform: scale(1.2);
}

/* 文件夹弹窗 */
.lp-folder-modal {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lp-folder-modal[hidden] {
  display: none;
}

.lp-folder-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
}

.lp-folder-card {
  position: relative;
  z-index: 1;
  width: min(440px, 90%);
  padding: 24px;
  border-radius: 26px;
  background: rgba(30, 35, 48, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(28px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
}

.lp-folder-title {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.lp-folder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* 底部 Dock */
.mac-dock {
  margin: 0 auto 12px;
  padding: 7px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  gap: 10px;
}

.dock-item {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.dock-finder { background: linear-gradient(135deg, #38bdf8, #2563eb); }
.dock-launchpad img { width: 100%; height: 100%; display: block; }
.dock-safari { background: linear-gradient(135deg, #60a5fa, #1d4ed8); }
.dock-term { background: linear-gradient(135deg, #334155, #0f172a); border: 1px solid rgba(255,255,255,0.2); }
.dock-sep { width: 1px; height: 24px; background: rgba(255, 255, 255, 0.24); }
.dock-trash { background: linear-gradient(135deg, #94a3b8, #475569); }

/* Bento Grid */
.features-section {
  padding: 56px 0 84px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.bento-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  transition: transform 0.22s, border-color 0.22s, background 0.22s;
}

.bento-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-bright);
  background: var(--surface-hover);
}

.bento-wide {
  grid-column: span 2;
}

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.icon-blue { background: rgba(59, 130, 246, 0.16); color: #60a5fa; }
.icon-purple { background: rgba(168, 85, 247, 0.16); color: #c084fc; }
.icon-green { background: rgba(16, 185, 129, 0.16); color: #34d399; }
.icon-amber { background: rgba(245, 158, 11, 0.16); color: #fbbf24; }
.icon-rose { background: rgba(244, 63, 94, 0.16); color: #fb7185; }
.icon-cyan { background: rgba(6, 182, 212, 0.16); color: #22d3ee; }
.icon-indigo { background: rgba(99, 102, 241, 0.18); color: #818cf8; }

.bento-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}

.bento-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* 安装指南 */
.install-section {
  padding: 56px 0 84px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.step-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.step-num {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: #60a5fa;
  margin-bottom: 10px;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14.5px;
  color: var(--text-muted);
}

.gatekeeper-box {
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.25);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gatekeeper-info h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.gatekeeper-info p {
  font-size: 14px;
  color: var(--text-muted);
}

.code-copy-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.code-copy-bar code {
  background: none;
  padding: 0;
  font-size: 13.5px;
  color: #e2e8f0;
  word-break: break-all;
}

.copy-btn {
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* FAQ */
.faq-section {
  padding: 40px 0 88px;
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px 22px;
}

.faq-item summary {
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--text-muted);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item a {
  color: #93c5fd;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-icon {
  width: 22px;
  height: 22px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

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

@media (max-width: 860px) {
  .nav-capsule { display: none; }
  .bento-grid, .steps-grid { grid-template-columns: 1fr; }
  .bento-wide { grid-column: span 1; }
  .lp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
