/* ft_desk 官网样式 —— 系统字体、克制的配色、卡片化布局、移动端自适应 */

:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --line: rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --hero-grad: linear-gradient(180deg, #f5faff 0%, #fbfbfd 100%);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "SF Pro Text",
    "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 251, 253, 0.8);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 17px; letter-spacing: -0.02em;
}
.brand-icon { width: 22px; height: 22px; color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.nav-links a { color: var(--text-2); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: 6px 14px; border-radius: 999px; font-weight: 500;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent-hover); }

/* ---------- Hero ---------- */

.hero { background: var(--hero-grad); padding: 72px 0 84px; overflow: hidden; }

.hero-inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 48px; align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600; color: var(--accent);
  background: rgba(0, 113, 227, 0.08);
  border: 1px solid rgba(0, 113, 227, 0.18);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 18px;
}

.hero h1 {
  font-size: 52px; line-height: 1.12; letter-spacing: -0.03em; font-weight: 800;
  margin-bottom: 18px;
}

.hero-sub { font-size: 17px; color: var(--text-2); max-width: 32em; margin-bottom: 26px; }

.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.hero-version {
  margin-top: 18px; font-size: 13px; color: var(--text-2);
  display: flex; align-items: center; gap: 7px;
}
.hero-version .dot, .app-toggle .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #30d158; display: inline-block;
}

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

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px;
  font-size: 15px; font-weight: 600;
  transition: transform 0.15s ease, background 0.2s, border-color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 17px; height: 17px; }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(0, 113, 227, 0.28); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: rgba(0, 0, 0, 0.2); }

/* ---------- CSS 手绘 App 窗口 ---------- */

.hero-app { position: relative; }

.app-window {
  position: relative; z-index: 2;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -18px rgba(0, 40, 90, 0.18);
}

.app-titlebar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  background: #f6f6f8; border-bottom: 1px solid var(--line);
}
.tl-dot { width: 11px; height: 11px; border-radius: 50%; }
.tl-dot.red { background: #ff5f57; } .tl-dot.yellow { background: #febc2e; } .tl-dot.green { background: #28c840; }
.tl-title { margin: 0 auto; font-size: 12px; color: var(--text-2); transform: translateX(-20px); }

.app-body { display: grid; grid-template-columns: 1fr 1.2fr; min-height: 210px; }

.app-left {
  padding: 18px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.app-label { font-size: 11px; color: var(--text-2); }
.app-id { font-size: 30px; font-weight: 800; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.app-id-mask { color: var(--accent); }
.app-pwd { font-size: 19px; font-weight: 700; color: var(--text-2); }
.app-toggle {
  margin-top: auto; align-self: flex-start;
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: #1d8a3c;
  background: rgba(48, 209, 88, 0.12);
  padding: 4px 10px; border-radius: 999px;
}

.app-right { padding: 18px; display: flex; flex-direction: column; gap: 10px; }

.app-device {
  display: flex; align-items: center; gap: 9px;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font-size: 13px;
}
.dev-dot { width: 8px; height: 8px; border-radius: 50%; }
.online .dev-dot { background: #30d158; }
.offline .dev-dot { background: #c7c7cc; }
.offline { opacity: 0.55; }
.dev-name { font-weight: 500; }
.dev-action {
  margin-left: auto; font-size: 11px; font-weight: 600; color: var(--accent);
  background: rgba(0, 113, 227, 0.09); padding: 3px 10px; border-radius: 999px;
}

.app-shadow {
  position: absolute; z-index: 1;
  left: 6%; right: 6%; bottom: -22px; height: 40px;
  background: radial-gradient(ellipse at center, rgba(0, 60, 140, 0.16), transparent 70%);
  filter: blur(6px);
}

/* ---------- 特性 ---------- */

.features { padding: 84px 0 60px; }
.features h2, .steps h2 {
  font-size: 34px; letter-spacing: -0.02em; font-weight: 800;
  text-align: center; margin-bottom: 44px; line-height: 1.25;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -14px rgba(0, 40, 90, 0.14);
}
.feature-icon { font-size: 26px; margin-bottom: 12px; }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-2); }

/* ---------- 三步 ---------- */

.steps { padding: 60px 0 90px; }

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

.step {
  background: linear-gradient(180deg, #ffffff, #f7f9fc);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 15px;
  margin-bottom: 14px;
}
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--text-2); }

/* ---------- 下载页 ---------- */

.page-head { padding: 64px 0 30px; }
.page-head h1 { font-size: 40px; letter-spacing: -0.02em; font-weight: 800; }
.page-sub { color: var(--text-2); margin-top: 8px; }

.dl-primary {
  display: grid; grid-template-columns: 1.2fr 0.8fr;
  gap: 18px; align-items: start; margin-bottom: 44px;
}

.dl-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.dl-card.soon { opacity: 0.6; }

.dl-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.dl-os { width: 34px; height: 34px; color: var(--text); }
.dl-emoji { font-size: 30px; }
.dl-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.dl-ver { font-size: 13px; color: var(--accent); font-weight: 600; }
.dl-note { font-size: 14px; color: var(--text-2); min-height: 22px; margin-bottom: 18px; }
.dl-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.dl-meta { font-size: 12px; color: var(--text-2); }

.dl-steps {
  background: linear-gradient(180deg, #ffffff, #f7f9fc);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.dl-steps h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.dl-steps ol { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.dl-steps li { font-size: 14px; color: var(--text-2); }
.dl-steps strong { color: var(--text); }
.dl-tip {
  margin-top: 16px; font-size: 13px; color: var(--accent);
  background: rgba(0, 113, 227, 0.07); border-radius: 10px; padding: 10px 14px;
}

.dl-other h3 { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dl-grid .dl-card { padding: 22px; }

/* ---------- 更新日志 ---------- */

.changelog { padding-bottom: 90px; max-width: 760px; }

.cl-entry {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 16px;
}
.cl-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.cl-head h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.cl-date { font-size: 13px; color: var(--text-2); }
.cl-tag {
  font-size: 12px; font-weight: 600; color: var(--accent);
  background: rgba(0, 113, 227, 0.09);
  padding: 2px 10px; border-radius: 999px;
}
.cl-entry ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.cl-entry li { font-size: 14px; color: var(--text-2); }
.cl-entry li strong { color: var(--text); }

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

.footer { border-top: 1px solid var(--line); background: var(--surface); padding: 40px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px; }
.footer-brand { font-weight: 800; font-size: 17px; }
.footer-sub { font-size: 13px; color: var(--text-2); }
.footer-links { display: flex; gap: 22px; font-size: 14px; }
.footer-links a { color: var(--text-2); }
.footer-links a:hover { color: var(--text); }
.footer-copy { margin-top: 24px; font-size: 12px; color: #a1a1a6; }

/* ---------- 移动端 ---------- */

@media (max-width: 860px) {
  .hero { padding: 48px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 38px; }
  .hero-app { max-width: 480px; }
  .feature-grid, .step-grid { grid-template-columns: 1fr 1fr; }
  .dl-primary { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .nav-links { gap: 14px; font-size: 13px; }
  .nav-cta { display: none; }
  .hero h1 { font-size: 31px; }
  .hero-sub { font-size: 15px; }
  .features h2, .steps h2 { font-size: 25px; }
  .feature-grid, .step-grid { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 30px; }
  .cl-entry { padding: 20px; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}
