/* ==========================================================================
   SnapClick 核心设计系统与样式规范 (Vanilla CSS - Ethereal Glass)
   ========================================================================== */

/* 基础重置与全局变量 */
:root {
  --bg-primary: #050505;
  --bg-card: rgba(10, 10, 10, 0.7);
  --bg-card-outer: rgba(255, 255, 255, 0.03);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-outer: rgba(255, 255, 255, 0.04);
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  
  --accent-purple: #9f7aea;
  --accent-orange: #f6ad55;
  --accent-blue: #4299e1;
  --accent-gradient: linear-gradient(135deg, #a78bfa 0%, #f472b6 100%);
  
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-title: 'Outfit', system-ui, -apple-system, sans-serif;
  
  --transition-smooth: all 700ms cubic-bezier(0.32, 0.72, 0, 1);
  --bezier-spring: cubic-bezier(0.32, 0.72, 0, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  min-height: 100dvh;
}

/* 隐藏滚动条 */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   背景装饰 (微光粒子与网格)
   ========================================================================== */
.glow-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.005) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.005) 1px, transparent 1px);
  background-size: 64px 64px;
}

.glowing-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.12;
  mix-blend-mode: screen;
  will-change: transform;
}

.orb-1 {
  top: -10%;
  right: 15%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--accent-purple) 0%, transparent 80%);
  animation: orbFloat 25s ease-in-out infinite alternate;
}

.orb-2 {
  bottom: 10%;
  left: 10%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, var(--accent-blue) 0%, transparent 80%);
  animation: orbFloat 30s ease-in-out infinite alternate-reverse;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.1); }
}

/* ==========================================================================
   布局组件与通用样式
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 眉标 */
.eyebrow-wrapper {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}
.eyebrow {
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.2);
  background-color: rgba(167, 139, 250, 0.05);
}

/* Section 基础标题 */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px auto;
}
.section-title {
  font-family: var(--font-title);
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-top: 12px;
  margin-bottom: 18px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   双层边框 (Double-Bezel) 设计机制
   ========================================================================== */
.double-bezel-outer {
  background: var(--bg-card-outer);
  border: 1px solid var(--border-outer);
  padding: 6px;
  border-radius: 32px;
  transition: var(--transition-smooth);
}

.double-bezel-inner {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-light);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  border-radius: 26px; /* calc(32px - 6px) */
  transition: var(--transition-smooth);
  overflow: hidden;
}

/* ==========================================================================
   高级岛屿式按钮 (Button-in-Button)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 6px 24px;
  border-radius: 9999px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}
.btn-icon-wrapper i {
  font-size: 16px;
  transition: var(--transition-smooth);
}

/* 按钮变体一：Primary */
.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
}
.btn-primary .btn-icon-wrapper {
  background: rgba(0, 0, 0, 0.05);
  color: var(--bg-primary);
}
.btn-primary:hover {
  transform: scale(1.02);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.08);
}
.btn-primary:hover .btn-icon-wrapper {
  transform: scale(1.05) rotate(5deg);
  background: rgba(0, 0, 0, 0.1);
}
.btn-primary:active {
  transform: scale(0.98);
}

/* 按钮变体二：Secondary */
.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn-secondary .btn-icon-wrapper {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}
.btn-secondary:hover {
  transform: scale(1.02);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-secondary:hover .btn-icon-wrapper {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.12);
}
.btn-secondary:active {
  transform: scale(0.98);
}

/* 按钮变体三：Nav-bar */
.btn-nav {
  padding: 4px 4px 4px 18px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn-nav .btn-icon-wrapper {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.08);
}
.btn-nav:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}
.btn-nav:hover .btn-icon-wrapper {
  background: rgba(0, 0, 0, 0.05);
  color: var(--bg-primary);
}

/* ==========================================================================
   浮动毛玻璃导航栏
   ========================================================================== */
.navbar {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1000px;
  z-index: 100;
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  top: 12px;
  width: calc(100% - 24px);
  background: rgba(5, 5, 5, 0.7);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 8px 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 18px;
}
.nav-logo i {
  font-size: 20px;
  color: var(--accent-purple);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-smooth);
}
.nav-link:hover {
  color: var(--text-primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  margin: 4px 0;
  transition: var(--transition-smooth);
}

/* 移动端菜单 */
.mobile-menu {
  display: none;
}

/* ==========================================================================
   Hero 区域样式
   ========================================================================== */
.hero {
  padding-top: 180px;
  padding-bottom: 96px;
  text-align: center;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 4.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 900px;
  margin: 0 auto 24px auto;
  background: linear-gradient(180deg, #ffffff 50%, #888888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 80px;
}

/* Hero 主展示视窗 (Double Bezel) */
.hero-preview-wrapper {
  max-width: 960px;
  margin: 0 auto;
}

.hero-preview-wrapper .double-bezel-outer:hover {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  transform: scale(1.002);
  transition: var(--transition-smooth);
}

/* ==========================================================================
   Bento 特性网格
   ========================================================================== */
.features {
  padding: 120px 0;
  position: relative;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.col-span-2 {
  grid-column: span 2;
}

.bento-card .double-bezel-inner {
  height: 100%;
  display: flex;
}

.bento-card .double-bezel-inner.flex-row {
  flex-direction: row;
  align-items: center;
}

.bento-card .double-bezel-inner.flex-col {
  flex-direction: column;
  justify-content: space-between;
}

.bento-card .card-text {
  padding: 40px;
}

.bento-card .card-icon-pill {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent-purple);
  font-size: 22px;
}

.bento-card h3 {
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.feature-tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.feature-tag-list li {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.feature-tag-list li i {
  color: var(--accent-purple);
}

.bento-card .card-media {
  overflow: visible; /* 允许 3D 位移动画溢出 */
  position: relative;
}

/* 特写定位 */
.col-span-2 .card-media {
  width: 50%;
  padding: 40px;
}

.col-span-2 .bento-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 25px 50px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}.bento-card:hover .bento-image {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), 0 35px 70px rgba(0, 0, 0, 0.5);
}

/* 单列 Bento */
.bento-card:not(.col-span-2) .card-text {
  padding-bottom: 24px;
}
.bento-card:not(.col-span-2) .card-media {
  padding: 0 32px 32px 32px;
}
.bento-card:not(.col-span-2) .bento-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), 0 20px 40px rgba(0, 0, 0, 0.35);
  transition: var(--transition-smooth);
}

/* ==========================================================================
   截图卡片专属优化 (通栏并排大图布局)
   ========================================================================== */
#feature-screenshot .double-bezel-inner {
  flex-direction: column;
}

#feature-screenshot .card-text {
  width: 100%;
  padding-bottom: 24px;
}

#feature-screenshot .feature-tag-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  max-width: 800px;
}

#feature-screenshot .card-media {
  width: 100% !important;
  padding: 0 40px 40px 40px !important;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 28px;
  width: 100%;
}

.screenshot-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.screenshot-label {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  gap: 8px;
}

.screenshot-label i {
  color: var(--accent-purple);
  font-size: 1.1rem;
}

.screenshot-bezel {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.screenshot-img-detail {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-smooth);
}

.screenshot-box:hover .screenshot-bezel {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.screenshot-box:hover .screenshot-img-detail {
  transform: scale(1.015);
}

/* ==========================================================================
   真实 App 图标 (Logo) 样式
   ========================================================================== */
.logo-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.logo-img-sidebar {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   技术规格
   ========================================================================== */
.tech-specs {
  padding: 120px 0;
  background: rgba(255, 255, 255, 0.005);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.tech-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-light);
  padding: 32px;
  border-radius: 20px;
  transition: var(--transition-smooth);
}

.tech-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.tech-icon {
  font-size: 32px;
  color: var(--accent-purple);
  margin-bottom: 20px;
}

.tech-card h4 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.tech-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ==========================================================================
   源码编译与快速开始
   ========================================================================== */
.quick-start {
  padding: 120px 0;
}

.build-box {
  padding: 64px;
}

.build-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.build-content h2 {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 700;
  margin-top: 12px;
  margin-bottom: 16px;
}

.build-content p {
  color: var(--text-secondary);
  margin-bottom: 40px;
}

/* 仿 macOS 终端窗口 */
.terminal-window {
  background: #0d0d0d;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0,0,0,0.4);
  max-width: 600px;
  margin: 0 auto 32px auto;
}

.terminal-header {
  background: #141414;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.terminal-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
}
.terminal-header .dot.red { background: #ff5f56; }
.terminal-header .dot.yellow { background: #ffbd2e; }
.terminal-header .dot.green { background: #27c93f; }

.terminal-header .title {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  margin-left: 12px;
  letter-spacing: 0.05em;
}

.terminal-body {
  padding: 20px 24px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
}

.code-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.code-line:last-child {
  margin-bottom: 0;
}

.code-line .prompt {
  color: var(--accent-purple);
  margin-right: 12px;
  font-weight: bold;
}

.code-line .code-text {
  color: #e2e8f0;
  flex: 1;
}

.copy-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.copy-btn.copied {
  color: #27c93f;
}

.build-tips {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
}
.tip-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.tip-item i {
  color: #27c93f;
  font-size: 16px;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.footer {
  background: #020202;
  border-top: 1px solid var(--border-light);
  padding: 64px 0 32px 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  text-align: left;
  align-items: start;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 12px;
}

.footer-desc {
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 380px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.contact-email {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.contact-email:hover {
  color: var(--accent-purple);
}

.footer-middle {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-links-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links-vertical {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.wechat-qr-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wechat-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 16px;
  width: 250px;
  transition: var(--transition-smooth);
}

.wechat-qr-box:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.wechat-qr-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.wechat-qr-tip {
  font-size: 11px;
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.02);
  width: 100%;
  padding-top: 24px;
}
.footer-bottom p {
  color: var(--text-muted);
  font-size: 12px;
}

/* ==========================================================================
   硬件加速与 Scroll Reveal
   ========================================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(8px);
  transition: opacity 1000ms var(--bezier-spring), 
              transform 1000ms var(--bezier-spring), 
              filter 1000ms var(--bezier-spring);
  will-change: transform, opacity, filter;
}

.fade-up.active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ==========================================================================
   交互式 App 控制面板浏览器 (Interactive App Explorer)
   ========================================================================== */
.interactive-viewer {
  padding: 120px 0;
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.01) 0%, transparent 80%);
}

.mac-window-mock {
  max-width: 1000px;
  margin: 0 auto;
}

.mac-window-mock .double-bezel-inner {
  border-radius: 20px;
  background: var(--bg-card);
}

.window-container {
  display: flex;
  height: 600px;
  overflow: hidden;
}

/* 模拟 macOS 窗口侧边栏 */
.window-sidebar {
  width: 240px;
  background: rgba(255, 255, 255, 0.015);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  user-select: none;
}

.window-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  padding-left: 8px;
}

.control-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.control-dot.red { background: #ff5f56; }
.control-dot.yellow { background: #ffbd2e; }
.control-dot.green { background: #27c93f; }

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-left: 8px;
}

.logo-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.logo-box i {
  color: #fff;
  font-size: 16px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.app-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.app-version {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-item i {
  font-size: 15px;
  width: 18px;
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.sidebar-item.active {
  background: var(--accent-blue);
  color: #ffffff;
  font-weight: 600;
}

.sidebar-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  padding-left: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 16px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* 模拟 macOS 窗口内容区 */
.window-content {
  flex-grow: 1;
  background: #121212;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 40px;
}

.screenshot-display {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-screenshot {
  position: absolute;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.98) translateY(5px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
}

.tab-screenshot.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

/* ==========================================================================
   更新日志与环境要求 (Changelog & Requirements)
   ========================================================================== */
.changelog {
  padding: 120px 0;
  position: relative;
}

.changelog-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: start;
}

.changelog-requirements .req-box {
  padding: 32px;
}

.changelog-requirements h3 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.req-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.req-item:last-child {
  margin-bottom: 0;
}

.req-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-orange);
  font-size: 18px;
  flex-shrink: 0;
}

.req-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.req-info p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.req-info code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  color: var(--accent-purple);
}

/* 时间轴部分 */
.changelog-timeline-wrapper {
  position: relative;
  padding-left: 20px;
}

.timeline-container {
  position: relative;
  border-left: 1px dashed rgba(255, 255, 255, 0.15);
  padding: 8px 0;
}

.timeline-item {
  position: relative;
  padding-left: 32px;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-badge {
  position: absolute;
  left: -6px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent-purple);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 10px var(--accent-purple);
}

.timeline-content {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(10px);
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.version-tag {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.date-tag {
  font-size: 11px;
  font-weight: 600;
  background: rgba(167, 139, 250, 0.15);
  color: #c084fc;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid rgba(167, 139, 250, 0.2);
}

.timeline-body h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 20px;
  margin-bottom: 10px;
}

.timeline-body h4:first-of-type {
  margin-top: 0;
}

.changelog-list {
  list-style: none;
}

.changelog-list li {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
}

.changelog-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-purple);
}

.changelog-actions {
  margin-top: 20px;
}

.btn-small {
  padding: 4px 4px 4px 16px;
  font-size: 12px;
}

.btn-small .btn-icon-wrapper {
  width: 28px;
  height: 28px;
}

.btn-small .btn-icon-wrapper i {
  font-size: 13px;
}


/* ==========================================================================
   界面预览 (Screenshots Gallery)
   ========================================================================== */
.screenshot-gallery {
  padding: 120px 0;
  position: relative;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 64px;
  align-items: stretch;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.gallery-featured {
  grid-column: span 2;
}

.gallery-featured .double-bezel-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
}

.gallery-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

.gallery-card:hover .gallery-image {
  transform: scale(1.01);
  transition: var(--transition-smooth);
}

.gallery-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0 8px;
}

.gallery-caption i {
  color: var(--accent-purple);
  font-size: 16px;
}

/* 主题双生 — 双色主题聚光展示 */
.theme-spotlight {
  max-width: 1000px;
  margin: 0 auto;
}

.theme-caption-top {
  text-align: center;
  margin-bottom: 24px;
}

.theme-caption-top p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: 12px;
  line-height: 1.5;
}

.theme-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

/* ==========================================================================
   响应式断点 (Responsive Breakpoints)
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-featured {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  /* 全局外边距收缩 */
  .container {
    padding: 0 16px;
  }
  
  .navbar {
    top: 12px;
    width: calc(100% - 24px);
    border-radius: 20px;
  }
  .navbar.scrolled {
    top: 8px;
    width: calc(100% - 16px);
  }
  .nav-links {
    display: none;
  }
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  
  /* 导航折叠激活态 */
  .navbar.menu-open {
    border-radius: 20px 20px 0 0;
    background: rgba(10, 10, 10, 0.95);
  }
  .navbar.menu-open .nav-toggle .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .navbar.menu-open .nav-toggle .bar:nth-child(2) {
    transform: translateY(-2px) rotate(-45deg);
  }

  /* 移动端下拉列表 */
  .mobile-menu {
    display: block;
    position: fixed;
    top: 76px;
    left: 12px;
    width: calc(100% - 24px);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid var(--border-light);
    border-top: none;
    border-radius: 0 0 20px 20px;
    z-index: 99;
    padding: 24px;
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
  }
  
  .mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .mobile-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: var(--transition-smooth);
  }
  .mobile-link:hover {
    color: var(--text-primary);
  }
  
  .w-full {
    width: 100%;
  }
  .justify-center {
    justify-content: center;
  }

  /* Hero 缩放 */
  .hero {
    padding-top: 140px;
    padding-bottom: 64px;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 32px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Bento 拆分收拢 */
  .features {
    padding: 64px 0;
  }
  .section-title {
    font-size: 2rem;
  }
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .col-span-2 {
    grid-column: span 1;
  }
  .bento-card .double-bezel-inner.flex-row {
    flex-direction: column;
  }
  .col-span-2 .card-media {
    width: 100%;
    padding: 0 32px 32px 32px;
  }
  .bento-card .card-text {
    padding: 24px;
  }
  .bento-card h3 {
    font-size: 1.4rem;
  }

  /* 技术卡片缩放 */
  .tech-specs {
    padding: 64px 0;
  }
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .tech-card {
    padding: 24px;
  }

  /* 源码编译盒子收拢 */
  .quick-start {
    padding: 64px 0;
  }
  .build-box {
    padding: 32px 16px;
    border-radius: 24px;
  }
  .build-box .double-bezel-inner {
    border-radius: 18px;
  }
  .build-content h2 {
    font-size: 1.8rem;
  }
  .terminal-body {
    padding: 16px;
    font-size: 11px;
    overflow-x: auto;
  }
  .build-tips {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  /* 交互式模拟窗口移动端自适应 */
  .interactive-viewer {
    padding: 64px 0;
  }
  .window-container {
    flex-direction: column;
    height: auto;
  }
  .window-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding: 16px;
  }
  .window-controls, .sidebar-logo, .sidebar-status {
    display: none !important;
  }
  .sidebar-menu {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
    scrollbar-width: none; /* Firefox */
  }
  .sidebar-menu::-webkit-scrollbar {
    display: none; /* Safari / Chrome */
  }
  .sidebar-item {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 12px;
  }
  .window-content {
    height: 360px;
    padding: 20px 10px;
  }
  .tab-screenshot {
    max-width: 95%;
    max-height: 95%;
  }

  /* 截图大卡片并排网格移动端自适应 */
  #feature-screenshot .feature-tag-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  #feature-screenshot .card-media {
    padding: 0 24px 24px 24px !important;
  }
  .screenshot-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .screenshot-label {
    font-size: 0.85rem;
  }

  /* 更新日志移动端自适应 */
  .changelog {
    padding: 64px 0;
  }
  .changelog-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .changelog-requirements .req-box {
    padding: 24px;
  }
  .changelog-timeline-wrapper {
    padding-left: 0;
  }
  .timeline-content {
    padding: 16px;
  }
  /* 界面预览画廊移动端自适应 */
  .screenshot-gallery {
    padding: 64px 0;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
  }
  .gallery-featured {
    grid-column: span 1;
  }
  /* 页脚移动端自适应 */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .footer-left, .footer-middle, .footer-right {
    align-items: center;
  }
  .footer-desc {
    max-width: 100%;
    margin-bottom: 20px;
  }
  .footer-links-vertical {
    align-items: center;
  }
  .wechat-qr-box {
    width: 220px;
  }
}

