/* Framelet / 拾影 官网核心样式表
 * 纯原生 CSS，无第三方字体/框架依赖
 * 支持深浅色自适应、高对比度、无障碍聚焦与减弱动效
 */

:root {
  /* 品牌调色板 (Token System) */
  --bg-primary: #0b0d11;
  --bg-secondary: #13171f;
  --bg-tertiary: #1a202c;
  --bg-surface: rgba(22, 27, 36, 0.75);
  --bg-surface-solid: #161b24;
  --bg-glass: rgba(18, 22, 30, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.16);
  --border-highlight: rgba(99, 102, 241, 0.5);

  --text-main: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --text-inverse: #0b0d11;

  /* 强调色：标线紫 (Precision Violet) 与取色琥珀 */
  --accent-iris: #6366f1;
  --accent-iris-glow: rgba(99, 102, 241, 0.25);
  --accent-iris-deep: #4f46e5;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;

  --kbd-bg: #222834;
  --kbd-border: #3b4455;
  --kbd-text: #e2e8f0;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 40px -12px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.18);

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", ui-monospace, Monaco, Menlo, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  --container-max: 1120px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    --bg-surface: rgba(255, 255, 255, 0.85);
    --bg-surface-solid: #ffffff;
    --bg-glass: rgba(248, 250, 252, 0.85);

    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-medium: rgba(0, 0, 0, 0.14);
    --border-highlight: rgba(99, 102, 241, 0.6);

    --text-main: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-inverse: #ffffff;

    --accent-iris: #4f46e5;
    --accent-iris-glow: rgba(79, 70, 229, 0.18);
    --accent-iris-deep: #4338ca;
    --accent-amber: #d97706;
    --accent-emerald: #059669;
    --accent-rose: #e11d48;

    --kbd-bg: #e2e8f0;
    --kbd-border: #cbd5e1;
    --kbd-text: #1e293b;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 25px 45px -12px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 35px rgba(79, 70, 229, 0.12);
  }
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* 聚焦与可访问性 */
:focus-visible {
  outline: 2px solid var(--accent-iris);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 排版工具 */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* 顶部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color var(--transition-fast);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.brand-badge {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  background-color: var(--border-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  margin-left: 0.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: var(--text-main);
  border: 1px solid var(--border-medium);
  transition: all var(--transition-fast);
}

.nav-cta:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-highlight);
}

/* Hero 区域：精准、克制、 macOS 原生范 */
.hero-section {
  padding: 4.5rem 0 3rem;
  position: relative;
}

.hero-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-amber);
  box-shadow: 0 0 8px var(--accent-amber);
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* 下载行动区 */
.download-card-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.download-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  background-color: var(--accent-iris);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px var(--accent-iris-glow);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--accent-iris-deep);
  transform: translateY(-1px);
}

/* 待公证/未开放时的按钮状态：清晰标明，禁用假链接 */
.btn-pending {
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px dashed var(--border-medium);
  box-shadow: none;
  cursor: default;
}

.btn-pending:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  transform: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  background-color: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-medium);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: var(--border-highlight);
}

.download-meta-text {
  font-size: 0.825rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.download-meta-text code {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

/* 特色签名：交互示意取景视窗 (Interactive Viewfinder) */
.viewfinder-section {
  margin: 1.5rem auto 5rem;
  max-width: 980px;
}

.viewfinder-wrapper {
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
}

.viewfinder-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-medium);
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.viewfinder-title-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-primary);
  padding: 0.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.tab-btn {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn.active {
  background: var(--bg-surface-solid);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.demo-notice-badge {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-iris);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

/* 演示视窗舞台 */
.stage-area {
  position: relative;
  height: 480px;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(var(--border-subtle) 1px, transparent 1px),
    radial-gradient(var(--border-subtle) 1px, var(--bg-primary) 1px);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

/* 模式一：精确框选与取色模拟 */
.scene-cropper {
  position: absolute;
  inset: 0;
  display: block;
}

.scene-cropper.hidden {
  display: none;
}

/* 模拟的桌面内容卡片（作为框选的背景） */
.mock-desktop-canvas {
  position: absolute;
  inset: 2rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.mock-app-card {
  max-width: 520px;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-md);
}

/* 十字参考线 */
.crosshair-h {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent-iris);
  pointer-events: none;
  opacity: 0.85;
}

.crosshair-v {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--accent-iris);
  pointer-events: none;
  opacity: 0.85;
}

/* 随动放大镜浮层 */
.magnifier-lens {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 2px solid var(--accent-iris);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 16px var(--accent-iris-glow);
  pointer-events: none;
  transform: translate(24px, 24px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 50;
  transition: opacity 0.15s ease;
}

.magnifier-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(7, 1fr);
  gap: 1px;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px;
}

.grid-cell {
  background: #374151;
}

.grid-cell.center-pixel {
  background: var(--accent-iris);
  outline: 1.5px solid #ffffff;
  outline-offset: -1px;
}

.magnifier-info {
  padding: 0.35rem 0.5rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.25;
  color: var(--text-main);
  text-align: center;
}

.magnifier-hex {
  color: var(--accent-amber);
  font-weight: 600;
}

/* 选区与选区边框 */
.crop-box {
  position: absolute;
  border: 1.5px solid var(--accent-iris);
  background: rgba(99, 102, 241, 0.1);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  display: none;
  z-index: 40;
}

.crop-handle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #ffffff;
  border: 1px solid var(--accent-iris);
  border-radius: 2px;
}
.handle-tl { top: -4px; left: -4px; }
.handle-tr { top: -4px; right: -4px; }
.handle-bl { bottom: -4px; left: -4px; }
.handle-br { bottom: -4px; right: -4px; }

/* 原位悬浮工具栏 */
.in-situ-toolbar {
  position: absolute;
  bottom: -46px;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 4px 6px;
  box-shadow: var(--shadow-md);
  pointer-events: auto;
  z-index: 60;
  white-space: nowrap;
}

.tool-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tool-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-main);
}

.tool-btn.active {
  background: var(--accent-iris);
  color: #ffffff;
}

.tool-divider {
  width: 1px;
  height: 16px;
  background: var(--border-medium);
  margin: 0 2px;
}

.tool-btn.action-confirm {
  background: var(--accent-emerald);
  color: #ffffff;
  padding: 0 8px;
  width: auto;
  font-size: 0.75rem;
  font-weight: 600;
  gap: 4px;
}

/* 模式二：连续滚动长截图演示 */
.scene-longscroll {
  position: absolute;
  inset: 0;
  display: none;
  padding: 1.5rem;
  gap: 1.5rem;
}

.scene-longscroll.active {
  display: flex;
}

.scroll-source-viewport {
  flex: 1.2;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.mock-page-header {
  height: 38px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  justify-content: space-between;
}

.scroll-track-container {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.scroll-inner-doc {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.doc-line {
  height: 12px;
  background: var(--border-medium);
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.doc-block {
  height: 50px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px dashed var(--accent-iris);
  border-radius: 6px;
  margin: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent-iris);
}

.fixed-edge-tag {
  position: absolute;
  top: 48px;
  left: 1rem;
  font-size: 0.7rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-family: var(--font-mono);
}

.scroll-stitch-preview {
  flex: 0.8;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  display: flex;
  flex-direction: column;
  padding: 1rem;
  position: relative;
}

.preview-header {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-strip-box {
  flex: 1;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  overflow-y: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
}

.preview-canvas-mimic {
  width: 90%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  transition: height 0.3s ease;
  overflow: hidden;
  position: relative;
}

.preview-height-counter {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-amber);
  margin-top: 0.5rem;
}

/* 交互指引底部面板 */
.viewfinder-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.825rem;
  color: var(--text-secondary);
}

.kbd-hint-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

kbd {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--kbd-bg);
  border: 1px solid var(--kbd-border);
  color: var(--kbd-text);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  box-shadow: 0 1px 0 var(--border-medium);
}

/* 核心特性网格 */
.features-section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-eyebrow {
  font-size: 0.825rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-iris);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all var(--transition-normal);
  position: relative;
}

.feature-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-iris);
  margin-bottom: 0.25rem;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature-body {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.feature-tag {
  font-size: 0.725rem;
  font-family: var(--font-mono);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

/* 诚实边界与设计原则 (Non-Features / Transparency) */
.principles-section {
  padding: 4.5rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.principles-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.principles-content h3 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.principles-content p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.boundary-box {
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.boundary-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.boundary-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.boundary-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.boundary-icon-cross {
  color: var(--accent-rose);
  font-weight: 700;
  line-height: 1.2;
}

.boundary-icon-check {
  color: var(--accent-emerald);
  font-weight: 700;
  line-height: 1.2;
}

/* 底部 CTA 区域 */
.cta-section {
  padding: 5rem 0;
  text-align: center;
}

.cta-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2rem;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.cta-box h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-box p {
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 2rem;
  font-size: 1rem;
}

/* 页脚 */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  padding: 3rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-main);
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}

/* 独立内容页通用样式 (Privacy, Releases) */
.page-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.page-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.page-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.article-content {
  color: var(--text-secondary);
  line-height: 1.75;
}

.article-content h2 {
  color: var(--text-main);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 2.25rem 0 1rem;
  letter-spacing: -0.01em;
}

.article-content h3 {
  color: var(--text-main);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content ul, .article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-tertiary);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--text-main);
}

.article-content pre {
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.article-content pre code {
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-size: 0.85rem;
}

.alert-callout {
  background: var(--bg-surface);
  border-left: 3px solid var(--accent-iris);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}

.alert-callout.warning {
  border-left-color: var(--accent-amber);
}

/* 动效适配 (Reduced Motion) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 移动端响应式优化 */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* 移动端隐藏中间长菜单，保留核心入口 */
  }

  .hero-section {
    padding: 3rem 0 2rem;
  }

  .stage-area {
    height: 380px;
  }

  .magnifier-lens {
    width: 110px;
    height: 110px;
    transform: translate(12px, 12px);
  }

  .in-situ-toolbar {
    bottom: -40px;
    padding: 2px 4px;
  }

  .tool-btn {
    width: 24px;
    height: 24px;
  }

  .principles-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .viewfinder-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .scene-longscroll {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .brand-link { white-space: nowrap; gap: 8px; }
  .brand-link .brand-badge { display: none; }
  .nav-cta { white-space: nowrap; padding: 8px 10px; }
  .viewfinder-topbar { flex-wrap: wrap; justify-content: center; gap: 10px; }
  .viewfinder-topbar .window-dots { display: none; }
  .viewfinder-title-tabs { width: 100%; justify-content: center; }
  .tab-btn { flex: 1; padding: 8px; white-space: nowrap; font-size: 12px; }
  .demo-notice-badge { white-space: nowrap; }
}
