/* FlexDock 官网 —— 中性玻璃风，与产品视觉一致 */
:root {
  --bg: #0d0f14;
  --bg-soft: #14171f;
  --text: #f0f2f6;
  --text-dim: #9aa1ad;
  --line: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.05);
  --glass-strong: rgba(255, 255, 255, 0.09);
  --accent: #8ab4ff;
  --green: #7ddc9a;
  --radius: 16px;
  --max: 1080px;
}

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

html { scroll-behavior: smooth; }
html.lang-pending body { visibility: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* 英文排版：西文优先字体 + 略窄的字距（中文标题字距在英文下显得松） */
html[data-lang="en"] body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
}
html[data-lang="en"] .hero h1 { letter-spacing: -0.5px; }
html[data-lang="en"] .mock .tile span { font-size: 20px; }

/* ---------- 导航 ---------- */
nav {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(20px);
  background: rgba(13, 15, 20, 0.75);
  border-bottom: 1px solid var(--line);
}
nav .inner {
  max-width: var(--max); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.logo .brand-zh { font-weight: 800; }
.logo .brand-en { font-size: 12px; color: var(--text-dim); font-weight: 600; margin-left: -4px; }
.logo .mark { display: block; width: 26px; height: 26px; }   /* 应用图标 brand.svg（与 App 图标同一母版几何） */
nav .links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; color: var(--text-dim); }
nav .links a:hover { color: var(--text); }
nav .links a.active { color: var(--text); font-weight: 600; }

/* 语言切换：与 App 内胶囊控件同构 */
.lang {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line);
  color: var(--text-dim); font: inherit; font-size: 12.5px; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang:hover { background: var(--glass-strong); color: var(--text); }
.lang .opt { padding: 1px 3px; border-radius: 6px; }
.lang .opt.on { color: var(--accent); font-weight: 700; }
.lang .sep { opacity: 0.35; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto;
  height: 520px;
  background: radial-gradient(ellipse at 50% 0%, rgba(138, 180, 255, 0.14), transparent 65%);
  pointer-events: none;
}
.hero h1 { font-size: 46px; font-weight: 800; letter-spacing: 0.5px; line-height: 1.25; }
.hero h1 .accent { color: var(--accent); }
.hero p.sub { margin: 18px auto 0; max-width: 580px; color: var(--text-dim); font-size: 17px; }
.hero .cta { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 999px;
  font-size: 15px; font-weight: 600; transition: all 0.2s;
}
.btn.primary { background: var(--accent); color: #0d0f14; }
.btn.primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn.ghost { border: 1px solid var(--line); color: var(--text); background: var(--glass); }
.btn.ghost:hover { background: var(--glass-strong); }
.hero .meta { margin-top: 18px; font-size: 13px; color: var(--text-dim); }

/* ---------- 产品模拟图 ---------- */
.mock {
  margin: 64px auto 0; max-width: 900px;
  border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  backdrop-filter: blur(10px);
  padding: 22px; text-align: left;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.mock .bar { display: flex; align-items: center; gap: 12px; }
.mock .tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.mock .tab {
  padding: 5px 14px; border-radius: 999px; font-size: 12px;
  background: var(--glass); color: var(--text-dim);
}
.mock .tab.active { background: rgba(138, 180, 255, 0.18); color: var(--accent); font-weight: 600; }
.mock .tab.plus { padding: 5px 11px; }
.mock .tools { display: flex; gap: 6px; margin-left: auto; }
.mock .tool {
  width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center;
  font-size: 12px; background: var(--glass); color: var(--text-dim);
}
.mock .tool.active { background: rgba(138, 180, 255, 0.18); color: var(--accent); }

.mock .search {
  margin: 16px 0 0; padding: 10px 18px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line);
  font-size: 13px; color: var(--text-dim);
  display: flex; gap: 8px; align-items: center;
}
.mock .search .mag { font-size: 14px; }
.mock .search .q { color: var(--text); }
.mock .search .cursor { display: inline-block; width: 1px; height: 14px; background: var(--accent); animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.mock-body { display: flex; gap: 18px; margin-top: 18px; }

/* 标签侧栏（F14.5 实际形态：行式 # 名称 + 计数） */
.mock .tags {
  flex: 0 0 168px; border-right: 1px solid var(--line); padding-right: 14px;
}
.mock .tags-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 10px;
}
.mock .tags-head .mini-refresh { color: var(--text-dim); }
.mock .tag-row {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 8px; border-radius: 8px; font-size: 12.5px; color: var(--text-dim);
}
.mock .tag-row .hash { opacity: 0.5; }
.mock .tag-row .tname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock .tag-row .count { font-size: 11px; opacity: 0.7; }
.mock .tag-row.active { background: rgba(138, 180, 255, 0.12); color: var(--accent); }

.mock .grid {
  /* minmax(0,1fr) 强制等宽:1fr 的 auto 最小宽会被 nowrap 长应用名(如 System Settings)撑宽,
     英文版出现"中间列磁贴变大"(2026-09-27 用户截图) */
  flex: 1; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px 12px;
}
/* 仿真实效果：彩色首字磁贴 + 应用名（与 App 内网格一致） */
.mock .app { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mock .tile {
  width: 100%; aspect-ratio: 1; border-radius: 16px;
  background: linear-gradient(135deg,
    hsl(var(--h), 42%, 52%), hsl(var(--h), 52%, 34%));
  display: grid; place-items: center;
  font-size: 22px; font-weight: 600; color: #fff;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
}
.mock .app .name {
  font-size: 11px; color: var(--text-dim);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 多分类归属角标 */
.mock .app.multi .tile::after {
  content: ""; position: absolute; right: 7px; bottom: 7px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); border: 2px solid rgba(13, 15, 20, 0.85);
}
.mock-note { margin-top: 16px; font-size: 12px; color: var(--text-dim); text-align: center; }

/* ---------- 品牌故事（活字印刷） ---------- */
.story { display: flex; gap: 28px; align-items: center; }
.story-text { flex: 1; }
.story-text p { font-size: 14px; color: var(--text-dim); margin-bottom: 12px; }
.story-text p b, .story-text p strong { color: var(--text); }
.story-visual {
  flex: 0 0 240px; height: 240px; border-radius: 16px;
  border: 1px solid var(--line); position: relative;
  background: linear-gradient(160deg, #232a3d, #12151f);
}
.type-block {
  position: absolute; width: 72px; height: 72px; border-radius: 16px;
  display: grid; place-items: center; font-size: 30px; font-weight: 700;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(220,228,255,0.88));
  color: #1b2a78; box-shadow: 0 8px 22px rgba(0,0,0,0.4);
}
.type-block.accent { background: linear-gradient(180deg, #8af0e0, #59d8c2); color: #0d2b26; }
.type-block.t1 { left: 24px; top: 24px; }
.type-block.t2 { left: 116px; top: 24px; opacity: 0.8; }
.type-block.t3 { left: 24px; top: 116px; opacity: 0.6; }
.type-block.t4 { left: 132px; top: 132px; transform: rotate(-6deg); opacity: 0.9; }
.type-block.t5 { left: 132px; top: 132px; transform: translate(0, 0) rotate(6deg); }
.type-block.t4 { left: 36px; top: 132px; transform: rotate(-4deg); }
.story-src { margin-top: 18px; font-size: 12px; color: var(--text-dim); opacity: 0.8; }
@media (max-width: 700px) { .story { flex-direction: column; } .story-visual { flex: none; width: 100%; } }

/* ---------- 通用 section ---------- */
section { padding: 84px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: 32px; font-weight: 700; }
.section-head p { margin-top: 10px; color: var(--text-dim); }

/* ---------- 功能卡片 ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-soft); padding: 26px;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(138, 180, 255, 0.35); }
.card .icon {
  width: 42px; height: 42px; border-radius: 12px; font-size: 20px;
  background: rgba(138, 180, 255, 0.12); display: grid; place-items: center;
  margin-bottom: 16px;
}
.card h3 { font-size: 16px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-dim); }

/* 细节胶囊 */
.extras { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 32px; }
.chip {
  padding: 6px 14px; border-radius: 999px; font-size: 12.5px; color: var(--text-dim);
  background: var(--glass); border: 1px solid var(--line);
}

/* ---------- 主题 ---------- */
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.theme-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-soft); padding: 16px;
  transition: transform 0.2s, border-color 0.2s;
}
.theme-card:hover { transform: translateY(-3px); border-color: rgba(138, 180, 255, 0.35); }
.theme-card h3 { font-size: 15px; margin: 14px 0 6px; }
.theme-card p { font-size: 13px; color: var(--text-dim); }
.preview {
  position: relative; height: 128px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line);
}
.pv-tag {
  position: absolute; left: 8px; bottom: 8px; z-index: 3;
  padding: 2px 9px; border-radius: 999px; font-size: 11px;
  background: rgba(13, 15, 20, 0.55); color: #fff;
  backdrop-filter: blur(6px);
}
/* 中性玻璃：毛玻璃面板 + 高光 */
.pv-glass {
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(255,255,255,0.28), transparent 60%),
    linear-gradient(135deg, #2b3242, #171b24 60%, #101319);
}
.pv-glass::after {
  content: ""; position: absolute; inset: 22% 12% 26% 12%;
  border-radius: 10px; border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.09); backdrop-filter: blur(8px);
}
/* 天气主题（Pro）：7 款模式色卡 */
.pv-weather { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px; }
.pv-weather i { display: block; height: 34px; border-radius: 7px; }
.w-sun     { background: linear-gradient(180deg, #f7b26b, #e8875a); }
.w-clouds  { background: linear-gradient(180deg, #9fb4c7, #d7e0ea); }
.w-overcast{ background: linear-gradient(180deg, #6b7686, #9aa5b1); }
.w-wind    { background: linear-gradient(180deg, #7fa8a0, #b8cdc4); }
.w-rain    { background: linear-gradient(180deg, #48647f, #6f8aa3); }
.w-thunder { background: linear-gradient(180deg, #2f3542, #57606f); box-shadow: inset 0 -6px 12px rgba(255, 220, 120, 0.25); }
.w-snow    { background: linear-gradient(180deg, #aebdd1, #e8eef5); }
/* 自定义背景（Pro） */
.pv-custom {
  background:
    linear-gradient(160deg, rgba(20, 24, 34, 0.55), rgba(20, 24, 34, 0.15)),
    linear-gradient(120deg, #3d5a80, #98c1d9 55%, #e0fbfc);
}
.pv-custom::after {
  content: "";
  position: absolute; left: 10%; right: 10%; bottom: 12%;
  height: 5px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.35), rgba(255,255,255,0.75), rgba(255,255,255,0.35));
}
/* Pro 区 */
.pro-cta {
  margin-top: 22px; padding: 24px 26px;
  border: 1px solid rgba(138, 180, 255, 0.35); border-radius: 16px;
  background: linear-gradient(135deg, rgba(138, 180, 255, 0.10), transparent);
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.price-tag .amount { font-size: 34px; font-weight: 800; }
.price-tag .note { display: block; color: var(--text-dim); font-size: 13px; margin-top: 2px; }
.pro-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pro-actions .soon { color: var(--text-dim); font-size: 13px; }
.theme-foot { margin-top: 26px; text-align: center; font-size: 13px; color: var(--text-dim); }

@media (prefers-reduced-motion: reduce) {
  .mock .search .cursor { animation: none; }
}

/* ---------- 快捷键 ---------- */
.shortcuts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sc {
  text-align: center; padding: 28px 16px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft);
}
.sc .keys { font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.sc .desc { margin-top: 8px; font-size: 13px; color: var(--text-dim); }

/* ---------- 隐私 ---------- */
.privacy {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(138,180,255,0.08), transparent);
  padding: 36px; text-align: center;
}
.privacy h2 { font-size: 24px; }
.privacy p { margin-top: 10px; color: var(--text-dim); font-size: 14px; }
.priv-list { list-style: none; margin-top: 20px; display: grid; gap: 8px; }
.priv-list li { font-size: 13.5px; color: var(--text-dim); }
.priv-list li::before { content: "✓ "; color: var(--green); font-weight: 700; }

/* ---------- 路线图 ---------- */
.road { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.road-col {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-soft); padding: 24px;
}
.road-col ul { list-style: none; margin-top: 14px; display: grid; gap: 9px; }
.road-col li { font-size: 13.5px; color: var(--text-dim); padding-left: 16px; position: relative; }
.road-col li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--text-dim); opacity: 0.6;
}
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.badge.now { background: rgba(125, 220, 154, 0.14); color: var(--green); }
.badge.next { background: rgba(138, 180, 255, 0.16); color: var(--accent); }
.badge.later { background: var(--glass); color: var(--text-dim); }

/* ---------- 下载 ---------- */
.download { text-align: center; }
.download .req { margin-top: 14px; font-size: 13px; color: var(--text-dim); }
.download .note { margin-top: 8px; font-size: 12.5px; color: var(--text-dim); opacity: 0.85; }
.badge-row { display: flex; gap: 14px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.store-badge {
  padding: 12px 26px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg-soft); text-align: left; min-width: 200px;
  display: flex; align-items: center; gap: 12px;
}
.store-badge .glyph { font-size: 22px; }
.store-badge .small { font-size: 11px; color: var(--text-dim); display: block; }
.store-badge .big { font-size: 15px; font-weight: 600; }
.store-badge.soon { opacity: 0.6; cursor: default; }

/* ---------- 页脚 ---------- */
footer { border-top: 1px solid var(--line); padding: 36px 0; margin-top: 40px; }
footer .inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-dim);
}
footer a:hover { color: var(--text); }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .features, .themes, .road { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero { padding: 72px 0 56px; }
  .hero h1 { font-size: 32px; }
  .section-head h2 { font-size: 26px; }
  .features, .themes, .road { grid-template-columns: 1fr; }
  .shortcuts { grid-template-columns: repeat(2, 1fr); }
  .mock { padding: 16px; }
  .mock .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mock-body { flex-direction: column; gap: 14px; }
  .mock .tags {
    flex: none; border-right: none; border-bottom: 1px solid var(--line);
    padding: 0 0 12px;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 10px;
  }
  .mock .tags-head { grid-column: 1 / -1; margin-bottom: 6px; }

  /* H5：第一行 logo + 语言切换，第二行 tab 胶囊菜单 */
  nav .inner { flex-wrap: wrap; row-gap: 10px; padding-top: 12px; padding-bottom: 10px; }
  .logo { font-size: 15px; }
  .lang { margin-left: auto; }
  nav .links {
    display: flex; width: 100%; margin-left: 0; gap: 8px;
    overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  }
  nav .links::-webkit-scrollbar { display: none; }
  nav .links a {
    flex-shrink: 0; padding: 5px 13px; font-size: 12.5px;
    border-radius: 999px; background: var(--glass); color: var(--text-dim);
  }
  nav .links a.active {
    background: rgba(138, 180, 255, 0.18); color: var(--accent); font-weight: 600;
  }
}
