/* DeskFox.Ai family site styles (home, product pages, about).
 * Colour tokens follow Deskfox 运营/品牌设计/产品家族规范.md. Text on coral always uses --deep-slate.
 * Product pages with their own brand theme (FoxTake, HealthFold) use chrome.css for the shared nav/footer instead.
 */
:root {
  --slate-navy: #1F2D44;
  --deep-slate: #172238;
  --cool-blue: #7295C4;
  --light-blue: #9DBBE3;
  --warm-coral: #FF9A7A;
  --off-white: #F4F7FB;
  --mid-slate: #3D5278;
  --cool-gray: #6B7C9A;

  --bg: #FFFFFF;
  --bg-soft: #F4F7FB;
  --text: #1F2D44;
  --text-secondary: #6B7C9A;
  --border: #E5EBF3;
  --card-bg: #FFFFFF;
  --hero-grad-start: #243353;
  --hero-grad-end: #172238;
  --warn-bg: #FFF4EE;
  --warn-border: #FF9A7A;
  --warn-text: #8B3A1F;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --max-width: 1180px;
  --shadow-sm: 0 1px 2px rgba(31, 45, 68, 0.06), 0 1px 3px rgba(31, 45, 68, 0.04);
  --shadow-md: 0 4px 12px rgba(31, 45, 68, 0.08), 0 2px 4px rgba(31, 45, 68, 0.05);
  --shadow-lg: 0 16px 40px rgba(31, 45, 68, 0.12), 0 6px 12px rgba(31, 45, 68, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1828;
    --bg-soft: #172238;
    --text: #F4F7FB;
    --text-secondary: #9CAFCC;
    --border: #2D3F60;
    --card-bg: #1F2D44;
    --hero-grad-start: #2D3F60;
    --hero-grad-end: #1F2D44;
    --warn-bg: #3D2418;
    --warn-border: #FF9A7A;
    --warn-text: #FFD9C8;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
html, body { overflow-x: hidden; }
body {
  font-family: 'Inter', 'Plus Jakarta Sans', 'PingFang SC', 'PingFang TC', 'Microsoft YaHei', 'Microsoft JhengHei', 'Noto Sans SC', 'Noto Sans TC', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-width: 0;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--cool-blue); outline-offset: 5px; }
img, svg { display: block; max-width: 100%; }

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

/* ===== Header ===== */
header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 11px;
  flex-shrink: 0;
}
.nav-icon { height: 50px; width: auto; }
.nav-wordmark { height: 26px; width: auto; }
.nav-logo .light { display: block; }
.nav-logo .dark { display: none; }
@media (prefers-color-scheme: dark) {
  .nav-logo .light { display: none; }
  .nav-logo .dark { display: block; }
}
@media (max-width: 480px) {
  .nav-icon { height: 42px; }
  .nav-wordmark { height: 22px; }
}
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

/* Language switcher */
.lang-switch {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 3px; gap: 0;
}
.lang-switch a {
  background: transparent; border: none; color: var(--text-secondary);
  padding: 5px 11px;
  font-size: 12px; font-weight: 600;
  cursor: pointer; border-radius: 999px;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
}
.nav-links .lang-switch a[data-lang] { display: inline-block; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a.active {
  background: var(--slate-navy); color: var(--off-white);
}

.nav-links .nav-cta {
  padding: 8px 18px; background: var(--slate-navy); color: var(--off-white);
  border-radius: var(--radius-sm); font-weight: 600; font-size: 14px;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.nav-links .nav-cta:hover { opacity: 0.85; color: var(--off-white); }
@media (max-width: 880px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-links { gap: 8px; }
}
@media (max-width: 540px) {
  .nav-links .nav-cta { display: none; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 96px 0 84px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, color-mix(in srgb, var(--cool-blue) 15%, transparent) 0%, transparent 70%),
    var(--bg);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--warm-coral);
  padding: 6px 14px;
  border: 1px solid color-mix(in srgb, var(--warm-coral) 38%, var(--border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--warm-coral) 7%, var(--bg-soft));
  margin-bottom: 20px;
}
.hero-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--warm-coral); flex-shrink: 0; }
.hero h1 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
  word-break: normal;
}
.hero h1 .accent {
  color: var(--cool-blue);
  background-image: linear-gradient(180deg, transparent 68%, color-mix(in srgb, var(--warm-coral) 38%, transparent) 68%, color-mix(in srgb, var(--warm-coral) 38%, transparent) 92%, transparent 92%);
  background-repeat: no-repeat;
  padding-bottom: 2px;
}
.hero-slogan {
  font-size: 13px; font-weight: 500; letter-spacing: 0.35em;
  color: var(--cool-gray); text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-slogan .dot {
  color: var(--warm-coral);
  font-weight: 700;
  letter-spacing: 0;
  display: inline-block;
  transform: translateY(-1px);
}
.hero-sub {
  font-size: 18px; color: var(--text-secondary);
  max-width: 540px; margin-bottom: 32px;
  text-wrap: pretty;
}
@media (max-width: 880px) { .hero-sub { margin-left: auto; margin-right: auto; } }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 880px) { .hero-cta { justify-content: center; } }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px;
  transition: transform 0.15s, opacity 0.15s, box-shadow 0.15s;
  cursor: pointer; border: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--slate-navy); color: var(--off-white); box-shadow: var(--shadow-md); }
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-secondary { background: var(--bg-soft); color: var(--text); border: 1px solid var(--border); }

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}
.hero-visual::before {
  content: '';
  position: absolute; inset: -8%;
  background: radial-gradient(circle at center, color-mix(in srgb, var(--cool-blue) 25%, transparent), transparent 70%);
  filter: blur(40px);
  z-index: 0;
}
.hero-visual img {
  position: relative; z-index: 1;
  width: 100%; height: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 50px rgba(31, 45, 68, 0.18));
}

.hero-family { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; }
.hero-family a { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.hero-family img { width: 32px; height: 32px; border-radius: 8px; filter: none; }
.hero-family a:hover { color: var(--cool-blue); }

.hero-note {
  margin-top: 28px;
  font-size: 13px; color: var(--text-secondary);
  display: flex; align-items: flex-start; gap: 8px;
  max-width: 540px;
}
@media (max-width: 880px) { .hero-note { margin-left: auto; margin-right: auto; text-align: left; } }
.hero-note svg { flex-shrink: 0; margin-top: 2px; }

/* ===== Section ===== */
section { padding: 80px 0; }
.section-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--warm-coral); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700; line-height: 1.25; letter-spacing: -0.01em;
  margin-bottom: 32px;
  overflow-wrap: anywhere;
  word-break: normal;
}
.section-sub {
  font-size: 17px; color: var(--text-secondary);
  max-width: 1000px; margin-bottom: 48px;
  overflow-wrap: anywhere;
  word-break: normal;
  text-wrap: pretty;
}

/* Product family: the flagship leads, companion apps follow. */
#products { border-top: 1px solid var(--border); }
.products-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.product-card {
  padding: 36px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--card-bg); display: flex; flex-direction: column; align-items: flex-start;
  min-width: 0;
}
.product-card .product-icon { width: 72px; height: 72px; border-radius: 17px; margin-bottom: 24px; }
.product-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.product-card h3 { font-size: 28px; line-height: 1.25; letter-spacing: -0.02em; }
.product-status {
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  color: #24563D; background: #E4F4EA;
}
.product-status.soon { color: #8B3A1F; background: #FFF0EA; }
.product-role { font-weight: 600; margin-bottom: 16px; }
.product-description { color: var(--text-secondary); font-size: 16px; margin-bottom: 24px; max-width: 620px; }
.product-platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.product-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: auto; }
.product-link { font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.product-link:hover { color: var(--cool-blue); }
.product-card.featured {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) 250px;
  align-items: center; gap: 48px; padding: 48px;
  color: var(--off-white); background: var(--deep-slate); border-color: var(--deep-slate);
}
.featured .section-eyebrow { color: var(--light-blue); }
.featured h3 { font-size: 40px; }
.featured .product-description { color: #C9D5E8; }
.featured .badge { color: #C9D5E8; background: transparent; border-color: #3D5278; }
.featured .btn-primary { background: var(--warm-coral); color: var(--deep-slate); }
.featured .product-link:hover { color: var(--light-blue); }
.featured .flagship-art { width: 250px; height: 250px; }
.product-card.foxtake { border-top: 4px solid #1F4A4E; }
.product-card.healthfold { border-top: 4px solid #FF2D55; }
@media (max-width: 720px) {
  .products-grid { grid-template-columns: 1fr; }
  .product-card { padding: 28px; }
  .product-card.featured { grid-template-columns: 1fr; padding: 28px; gap: 24px; }
  .featured .flagship-art { display: none; }
}

/* ===== Features ===== */
#features { background: var(--bg-soft); }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feat-card {
  background: var(--card-bg); padding: 28px;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feat-card:hover {
  transform: translateY(-3px);
  border-color: var(--cool-blue);
  box-shadow: var(--shadow-md);
}
.feat-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--light-blue), var(--cool-blue));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: white;
}
.feat-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.feat-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }

/* ===== Security ===== */
#security {
  position: relative;
  background: color-mix(in srgb, var(--cool-blue) 10%, var(--bg-soft));
  overflow: hidden;
}
#security::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--cool-blue) 10%, transparent), transparent 40%),
    radial-gradient(circle at 5% 90%, color-mix(in srgb, var(--warm-coral) 6%, transparent), transparent 40%);
  pointer-events: none;
  z-index: 0;
}
#security .container { position: relative; z-index: 1; }
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.sec-card {
  position: relative;
  padding: 28px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.sec-card:hover {
  transform: translateY(-3px);
  border-color: var(--cool-blue);
  box-shadow: var(--shadow-md);
}
.sec-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--slate-navy);
  color: var(--off-white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.sec-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sec-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.sec-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }

/* ===== Why ===== */
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px 36px;
  margin-top: 8px;
}
.why-item {
  padding-left: 18px;
  border-left: 2px solid var(--cool-blue);
}
.why-item h4 {
  font-size: 16px; font-weight: 600; margin-bottom: 6px;
  color: var(--text);
}
.why-item p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ===== About ===== */
#about { background: var(--bg-soft); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } }
.about-block h3 {
  font-size: 18px; font-weight: 600; margin-bottom: 14px;
}
.about-block p {
  font-size: 15px; color: var(--text-secondary);
  margin-bottom: 14px; line-height: 1.75;
}
.about-block code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px;
  background: var(--bg);
  padding: 2px 7px; border-radius: 4px;
  border: 1px solid var(--border);
}
.about-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 20px;
}
.badge {
  font-size: 12px; font-weight: 500;
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text-secondary);
}
.badge.accent {
  background: color-mix(in srgb, var(--warm-coral) 10%, transparent);
  border-color: color-mix(in srgb, var(--warm-coral) 30%, transparent);
  color: color-mix(in srgb, var(--warm-coral) 80%, var(--text));
}

/* ===== Download ===== */
#download {
  background: linear-gradient(180deg, var(--hero-grad-start), var(--hero-grad-end));
  color: var(--off-white);
}
#download .container { text-align: center; }
#download .section-eyebrow { color: var(--light-blue); }
#download .section-title { color: var(--off-white); }
#download .section-sub { color: color-mix(in srgb, var(--off-white) 75%, transparent); margin-left: auto; margin-right: auto; }

/* ⚠️ SmartScreen warning callout - 极突显 */
.install-warning {
  max-width: 720px;
  margin: 36px auto 0;
  background: var(--warm-coral);
  color: #2A1208;
  border-radius: var(--radius-md);
  padding: 22px 26px;
  text-align: left;
  box-shadow: 0 12px 36px rgba(255, 154, 122, 0.35), 0 0 0 6px rgba(255, 154, 122, 0.18);
  position: relative;
  overflow: hidden;
}
.install-warning::before {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0; width: 6px;
  background: #B53D11;
}
.install-warning .warn-header {
  display: flex; align-items: center; gap: 12px;
  font-size: 18px; font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.install-warning .warn-header .warn-icon {
  width: 32px; height: 32px;
  background: #2A1208; color: var(--warm-coral);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 900;
  flex-shrink: 0;
}
.install-warning .warn-body {
  font-size: 14.5px; line-height: 1.7;
}
.install-warning .warn-body strong { color: #2A1208; font-weight: 700; }
.install-warning .warn-body a { color: #2A1208; text-decoration: underline; text-underline-offset: 2px; }
.install-warning .warn-body > p { margin: 0; }
.install-warning .warn-steps {
  margin: 12px 0 0;
  padding: 12px 16px 12px 38px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-sm);
  font-size: 13.5px; line-height: 1.6;
}
.install-warning .warn-steps li { margin-bottom: 5px; }
.install-warning .warn-steps li:last-child { margin-bottom: 0; }
.install-warning .warn-steps code {
  background: #2A1208; color: var(--warm-coral);
  padding: 1px 7px; border-radius: 4px; font-size: 12.5px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
/* Download buttons - dual platform */
.download-platforms {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap;
}
.btn-download {
  background: var(--off-white); color: var(--slate-navy);
  padding: 18px 28px;
  font-size: 16px; font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  min-width: 220px;
  justify-content: center;
}
.btn-download:hover { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32); }
.btn-download .btn-platform-icon {
  width: 22px; height: 22px;
}

/* Download source dropdown — hover on desktop, click on touch */
.download-dropdown {
  position: relative;
  display: inline-flex;
}
.download-dropdown .btn-download {
  font-family: inherit;
}
.dropdown-caret {
  width: 14px; height: 14px;
  margin-left: -2px;
  opacity: 0.7;
  transition: transform 0.2s;
  stroke: currentColor; fill: none;
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.download-dropdown:hover .dropdown-caret,
.download-dropdown:focus-within .dropdown-caret,
.download-dropdown.open .dropdown-caret {
  transform: rotate(180deg);
}
.download-source-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 240px;
  background: var(--off-white);
  color: var(--slate-navy);
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(0, 0, 0, 0.05);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, transform 0.15s, visibility 0s 0.15s;
  z-index: 20;
}
.download-dropdown:hover .download-source-menu,
.download-dropdown:focus-within .download-source-menu,
.download-dropdown.open .download-source-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.15s, transform 0.15s, visibility 0s;
}
.download-source-group {
  padding: 8px 12px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--slate-navy) 55%, transparent);
  pointer-events: none;
}
.download-source-group:not(:first-child) {
  margin-top: 4px;
  border-top: 1px solid color-mix(in srgb, var(--slate-navy) 10%, transparent);
}
.download-source-menu a {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-navy);
  text-align: left;
  white-space: nowrap;
  transition: background 0.12s;
}
.download-source-menu a:hover {
  background: var(--bg-soft);
  color: var(--slate-navy);
}
.download-meta {
  margin-top: 16px;
  font-size: 13px;
  color: color-mix(in srgb, var(--off-white) 65%, transparent);
}
.download-meta a {
  color: var(--light-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===== Community ===== */
#community { background: var(--bg); }
#community .container { text-align: center; }
#community .section-sub { max-width: 660px; margin-left: auto; margin-right: auto; }
.community-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; max-width: 880px; margin: 0 auto;
  align-items: stretch;
}
@media (max-width: 720px) { .community-grid { grid-template-columns: 1fr; } }
.community-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.community-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--cool-blue) 40%, var(--border));
}
.community-badge {
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  padding: 4px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--cool-blue) 12%, var(--bg-soft));
  color: var(--cool-blue);
  border: 1px solid color-mix(in srgb, var(--cool-blue) 26%, var(--border));
  margin-bottom: 18px;
}
@media (prefers-color-scheme: dark) {
  .community-badge { color: var(--light-blue); background: color-mix(in srgb, var(--cool-blue) 18%, var(--bg-soft)); }
}
.community-icon { width: 46px; height: 46px; margin-bottom: 14px; color: var(--text); }
.community-icon svg { width: 100%; height: 100%; display: block; }
.community-card h3 { font-size: 19px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.community-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 22px; }
.community-card .btn { margin-top: auto; }
.community-qr {
  width: 220px; height: 220px; margin: 4px auto 16px;
  display: block; border-radius: var(--radius-md);
  background: #fff; padding: 12px; box-shadow: var(--shadow-sm);
}
.community-note { font-size: 12px; color: var(--text-secondary); margin-top: auto; }
@media (max-width: 480px) { .community-qr { width: 200px; height: 200px; } }

/* macOS 自动更新提醒 */
.update-note {
  margin: 28px auto 0;
  max-width: 920px;
  display: flex; align-items: flex-start; gap: 12px;
  background: color-mix(in srgb, var(--cool-blue) 7%, #fff);
  border: 1px solid color-mix(in srgb, var(--cool-blue) 22%, transparent);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 14px; line-height: 1.65; color: var(--text-secondary);
  text-align: left;
}
.update-note .update-note-icon {
  flex-shrink: 0; width: 22px; height: 22px; color: var(--cool-blue); margin-top: 1px;
}
.update-note strong { color: var(--text); font-weight: 700; }
.update-note a { color: var(--cool-blue); text-decoration: underline; text-underline-offset: 2px; }

/* ===== Footer ===== */
footer {
  padding: 56px 0 48px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.footer-logo .footer-icon { height: 34px; width: auto; }
.footer-logo .footer-wordmark { height: 22px; width: auto; }
.footer-logo .light { display: block; }
.footer-logo .dark { display: none; }
@media (prefers-color-scheme: dark) {
  .footer-logo .light { display: none; }
  .footer-logo .dark { display: block; }
}
.footer-brand p { color: var(--text-secondary); max-width: 280px; line-height: 1.6; }
.footer-col h5 {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-secondary); margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--text); transition: color 0.15s;
}
.footer-col a:hover { color: var(--cool-blue); }
.footer-bottom {
  padding-top: 28px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap;
  color: var(--text-secondary); gap: 12px;
}

.icon-svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Mobile adjustments ===== */
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero { padding: 56px 0 48px; }
  section { padding: 56px 0; }
  .section-title { margin-bottom: 20px; }
  .section-sub { margin-bottom: 32px; }

  .hero-sub { margin-bottom: 24px; }
  .hero-grid { gap: 32px; }
  .hero-visual { max-width: 280px; }

  .feat-card { padding: 22px 20px; }
  .sec-card { padding: 22px 20px; }

  .install-warning {
    padding: 20px 18px;
    margin-top: 28px;
    margin-bottom: 0;
    box-shadow: 0 8px 24px rgba(255, 154, 122, 0.3), 0 0 0 4px rgba(255, 154, 122, 0.15);
  }
  .install-warning .warn-steps { padding: 12px 14px 12px 32px; }

  .download-platforms { flex-direction: column; align-items: stretch; gap: 12px; }
  .download-dropdown { width: 100%; }
  .btn-download { width: 100%; min-width: 0; }
  .download-source-menu { min-width: 0; width: 100%; }

  footer { padding: 40px 0 32px; }
  .footer-grid { gap: 24px; margin-bottom: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .nav { gap: 8px; }
  .lang-switch a { padding: 4px 8px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ===== Family additions (2026-10 redesign) ===== */
.nav-links .nav-primary { display: flex; align-items: center; gap: 24px; }
.nav-menu { position: relative; }
.nav-menu > a::after { content: ' ▾'; font-size: 10px; opacity: 0.7; }
.nav-menu-panel {
  position: absolute; top: calc(100% + 10px); left: -12px; min-width: 280px;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 8px; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0s 0.15s; z-index: 60;
}
.nav-menu:hover .nav-menu-panel, .nav-menu:focus-within .nav-menu-panel {
  opacity: 1; visibility: visible; transform: translateY(0); transition: opacity 0.15s, transform 0.15s, visibility 0s;
}
.nav-menu-panel a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text); font-size: 14px; }
.nav-menu-panel a:hover { background: var(--bg-soft); }
.nav-menu-panel img { width: 28px; height: 28px; border-radius: 7px; }
.nav-menu-panel small { display: block; color: var(--text-secondary); font-size: 12px; font-weight: 400; }
.nav-menu-panel .all { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 12px; font-weight: 600; }

.breadcrumb { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb a:hover { color: var(--cool-blue); }
.breadcrumb li { list-style: none; }
.breadcrumb li + li::before { content: '/'; margin-right: 6px; opacity: 0.5; }

/* Product cards without a fixed flagship: order and accent come from the registry. */
.products-grid.family { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.products-grid.family .product-card { border-top: 4px solid var(--accent, var(--cool-blue)); }
.products-grid.family .product-card h3 a:hover { color: var(--cool-blue); }
.product-card .product-pricing { font-size: 13px; color: var(--text-secondary); margin-bottom: 24px; }
@media (max-width: 960px) { .products-grid.family { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .products-grid.family { grid-template-columns: 1fr; } }

/* Principles: three short statements, no feature talk. */
.principles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.principle { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card-bg); }
.principle .tri { width: 28px; height: 24px; margin-bottom: 18px; }
.principle h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.principle p { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }
@media (max-width: 840px) { .principles-grid { grid-template-columns: 1fr; } }

/* Latest: dated, product-tagged lines. Freshness signal for search and answer engines. */
#news { background: var(--bg-soft); }
.news-list { list-style: none; display: grid; gap: 14px; max-width: 880px; }
.news-list li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: baseline; padding: 16px 20px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md); }
.news-list time { font-size: 13px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.news-list .news-product { font-size: 12px; font-weight: 600; color: var(--cool-blue); margin-right: 8px; }
.news-list a:hover { color: var(--cool-blue); }
@media (max-width: 540px) { .news-list li { grid-template-columns: 1fr; gap: 4px; } }

/* Fact sheet: short, quotable statements placed before marketing copy. */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 32px; margin: 0; padding: 24px 28px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md); }
.facts div { min-width: 0; }
.facts dt { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 15px; line-height: 1.6; }

/* FAQ: definition list, parsed into FAQPage structured data by the build. */
.faq { max-width: 880px; margin: 0; }
.faq dt { font-size: 17px; font-weight: 600; margin-top: 28px; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 8px 0 0; color: var(--text-secondary); font-size: 15px; line-height: 1.75; }
.faq dd a { color: var(--cool-blue); text-decoration: underline; text-underline-offset: 3px; }

/* Long-form copy (about, guides, release notes). */
.prose { max-width: 760px; font-size: 17px; line-height: 1.8; }
.prose p { margin-bottom: 20px; color: var(--text); }
.prose h2 { font-size: 26px; font-weight: 700; margin: 48px 0 16px; letter-spacing: -0.01em; }
.prose h3 { font-size: 19px; font-weight: 600; margin: 32px 0 10px; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 20px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--cool-blue); text-decoration: underline; text-underline-offset: 3px; }
.prose .lede { font-size: 20px; color: var(--text-secondary); }
.page-header { padding: 72px 0 40px; }
.page-header h1 { font-size: clamp(32px, 4.5vw, 48px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 16px; max-width: 820px; }
.page-header .lede { font-size: 19px; color: var(--text-secondary); max-width: 720px; }
.page-header .product-icon { width: 88px; height: 88px; border-radius: 20px; margin-bottom: 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* About page: company facts. */
.company-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 0; }
.company-facts div { padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card-bg); }
.company-facts dt { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 6px; }
.company-facts dd { margin: 0; font-size: 15px; }
.company-facts a { color: var(--cool-blue); text-decoration: underline; text-underline-offset: 3px; }

/* Footer: products column lists the registry, legal column lists every policy page. */
.footer-grid.family { grid-template-columns: 2fr 1fr 1fr 1.4fr; }
.footer-langs { display: flex; gap: 14px; }
.footer-langs a { color: var(--text-secondary); }
.footer-langs a:hover, .footer-langs a[aria-current] { color: var(--text); }
@media (max-width: 768px) { .footer-grid.family { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid.family { grid-template-columns: 1fr; } }

/* Section anchors on product pages */
.subnav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; font-weight: 500; color: var(--text-secondary); margin-top: 32px; }
.subnav a:hover { color: var(--text); }

/* Home hero: the three apps side by side, no single product in the spotlight. */
.trust-section { background: var(--bg-soft); }
.trust-links { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-links a { padding: 14px 20px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card-bg); text-decoration: underline; text-underline-offset: 4px; }
.direct-downloads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.download-card { padding: 24px 18px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card-bg); color: var(--text); min-width: 0; }
.download-card .btn { width: 100%; white-space: normal; text-align: center; justify-content: center; min-height: 76px; }
.download-card p { margin-top: 16px; font-size: 13px; overflow-wrap: anywhere; }
.download-card p a, .download-help a { text-decoration: underline; text-underline-offset: 4px; }
.download-help { margin: 22px 0; color: var(--text-secondary); font-size: 15px; line-height: 1.7; }
#download .download-help { color: var(--off-white); }
.getting-started { padding-left: 26px; max-width: 760px; line-height: 1.8; }
.getting-started li { padding: 10px 0 10px 8px; }
a:focus-visible { outline: 3px solid var(--cool-blue); outline-offset: 5px; }
@media (max-width: 800px) { .direct-downloads { grid-template-columns: 1fr; } .download-card .btn { min-height: 52px; } }
.hero-apps { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.hero-apps a { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--text-secondary); transition: transform 0.2s, color 0.2s; }
.hero-apps a:hover { transform: translateY(-4px); color: var(--text); }
.hero-apps img { width: 120px; height: 120px; border-radius: 28px; filter: drop-shadow(0 18px 30px rgba(31, 45, 68, 0.18)); }
@media (max-width: 640px) { .hero-apps { gap: 16px; } .hero-apps img { width: 84px; height: 84px; border-radius: 20px; } }
