/* ============================================================
   MissingWorks — 深色主题样式
   灵感来自 MarkConvert 应用图标：深色石板 + 纸白字形
   ============================================================ */

:root {
  --bg: #0b0c0e;
  --bg-raised: #121417;
  --surface: #171a1e;
  --surface-hover: #1c2025;
  --line: rgba(236, 232, 224, 0.09);
  --line-strong: rgba(236, 232, 224, 0.16);
  --text: #eceae4;
  --text-dim: #a09d95;
  --text-faint: #6d6b64;
  --accent: #d3b98c;
  --accent-dim: rgba(211, 185, 140, 0.14);
  --radius: 14px;
  --radius-lg: 20px;
  --font-display: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --header-h: 64px;
}

/* ---------- 基础 ---------- */

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 细颗粒噪点质感，呼应石板纹理 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(211, 185, 140, 0.05), transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 110%, rgba(120, 130, 150, 0.05), transparent 60%);
}

main { position: relative; z-index: 1; }

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

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

::selection { background: rgba(211, 185, 140, 0.28); color: var(--text); }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

.container-narrow { max-width: 760px; }

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #14120d;
  font-weight: 600;
}

.btn-primary:hover { background: #e2cba0; transform: translateY(-1px); }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-large { padding: 15px 34px; font-size: 16px; }

.btn-small {
  padding: 8px 18px;
  font-size: 13.5px;
  background: var(--accent);
  color: #14120d;
  font-weight: 600;
}

.btn-small:hover { background: #e2cba0; }

/* ---------- 导航 ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.scrolled {
  background: rgba(11, 12, 14, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-name {
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a:not(.btn) {
  font-size: 14.5px;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.nav-links a:not(.btn):hover,
.nav-links a[aria-current="page"] { color: var(--text); }

/* ---------- 产品首屏 ---------- */

.hero {
  position: relative;
  min-height: 96vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 56px) 0 72px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  left: 50%;
  top: 38%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(211, 185, 140, 0.075) 0%, transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-icon {
  width: 88px;
  height: 88px;
  border-radius: 21px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--line);
  margin-bottom: 28px;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 84px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.hero-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.badge {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.badge-live {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(211, 185, 140, 0.3);
}

.badge-soon {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px solid var(--line-strong);
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 27px);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
  margin-bottom: 22px;
}

.hero-sub {
  font-size: clamp(15.5px, 1.8vw, 17px);
  color: var(--text-dim);
  line-height: 1.95;
  margin-bottom: 40px;
  max-width: 800px;
}

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

.sys-req {
  font-size: 13px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ---------- 区块通用 ---------- */

.section { padding: 100px 0; }

/* ---------- 产品区 ---------- */

.product { border-top: 1px solid var(--line); }

.screenshot-full {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
  margin-bottom: 80px;
}

/* ---------- 特性网格 ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 80px;
}

.feature-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.feature-card:hover {
  background: var(--surface-hover);
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.feature-num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.8;
}

/* ---------- 结尾 CTA ---------- */

.cta {
  border-top: 1px solid var(--line);
  text-align: center;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  margin-bottom: 40px;
}

/* ---------- 页脚 ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 48px;
  background: var(--bg-raised);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

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

.footer-links {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

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

.footer-legal p {
  font-size: 13px;
  color: var(--text-faint);
  line-height: 2;
}

.footer-legal .beian {
  color: var(--text-faint);
  transition: color 0.2s ease;
}

.footer-legal .beian + .beian { margin-left: 12px; }

.footer-legal .beian:hover { color: var(--text-dim); }

/* ---------- 隐私政策页 ---------- */

.privacy { padding-top: calc(var(--header-h) + 80px); }

.privacy-head {
  margin-bottom: 64px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.privacy-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.privacy-updated {
  font-size: 13.5px;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

.privacy-section { margin-bottom: 48px; }

.privacy-section h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
  color: var(--text);
}

.privacy-section p {
  font-size: 15.5px;
  color: var(--text-dim);
  line-height: 2;
  margin-bottom: 12px;
}

.privacy-section strong { color: var(--text); font-weight: 600; }

.privacy-section ul {
  list-style: none;
  margin: 10px 0 4px;
}

.privacy-section ul li {
  position: relative;
  padding-left: 22px;
  font-size: 15.5px;
  color: var(--text-dim);
  line-height: 2;
}

.privacy-section ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.85em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
}

/* ---------- 入场动画 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 响应式 ---------- */

@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .container { padding: 0 20px; }

  .nav-links { gap: 18px; }
  .nav-links a:not(.btn) { display: none; }
  .nav-links a[aria-current="page"] { display: inline; }

  .hero { min-height: auto; padding-top: calc(var(--header-h) + 64px); }
  .hero-icon { width: 72px; height: 72px; border-radius: 17px; margin-bottom: 22px; }
  .br-desktop { display: none; }

  .feature-grid { grid-template-columns: 1fr; }
  .screenshot-full, .feature-grid { margin-bottom: 56px; }
}
