/* GRLife 站点外框：与首页相同的顶部导航与页脚（2026-11 按首页 v3 调整：导航变轻、页脚分隔线与渐隐字标），以及首页式开场（超大标题 + 导语）与阶段列表。
   选择器全部以 gx- 为前缀，避免与工具页原有类名冲突。webapp/src/site-chrome.css 与
   web-prototype/firmware-store/site-chrome.css 保持一致（tests 校验）。 */
:root { --gx-bg: #131313; --gx-surface: #0f0f0f; --gx-ink: #efebe2; --gx-ink-on-light: #141413; --gx-muted: #9d9890; --gx-rule: #2b2a28; --gx-paper: #e7e3da; --gx-raised: #1b1b1a; --gx-amber: #ffb547; --gx-ember: #ff6b3d; --gx-rose: #ff4f79;
  --gx-font: "Geist", "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif; --gx-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, "PingFang SC", "Noto Sans SC", monospace;
  --gx-gutter: clamp(16px, 2vw, 28px); --gx-gap-s: 12px; --gx-gap-m: 24px; --gx-gap-l: clamp(40px, 5vw, 72px); --gx-ease: cubic-bezier(.16, 1, .3, 1); }
.gx-header, .gx-footer, .gx-open, .gx-phases { font-family: var(--gx-font); color: var(--gx-ink); letter-spacing: -.01em; }
/* One column for the whole site: 1200 px plus the gutters (2026-11-14) */
.gx-wrap { width: 100%; max-width: calc(1200px + 2 * var(--gx-gutter)); margin: 0 auto; padding: 0 var(--gx-gutter); box-sizing: border-box; }
.gx-header a, .gx-footer a { color: inherit; text-decoration: none; }
.gx-header :focus-visible, .gx-footer :focus-visible, .gx-open :focus-visible, .gx-phases :focus-visible { outline: 2px solid var(--gx-amber); outline-offset: 3px; border-radius: 6px; }

/* Header */
.gx-header { display: flex; align-items: center; gap: var(--gx-gap-m); min-height: 72px; font-size: 15px; font-weight: 500; letter-spacing: -.01em; background: var(--gx-bg); border: 0; }
.gx-header .gx-brand { display: inline-flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 650; letter-spacing: -.035em; line-height: 1; color: var(--gx-ink); }
/* frame-g-light.svg is drawn for dark grounds: ink frame, red corner (no filter, so the red stays red) */
.gx-header .gx-brand img { width: 31px; height: 21px; }
.gx-header .gx-brand span { text-transform: lowercase; }
.gx-nav { display: flex; flex: 1; justify-content: center; gap: clamp(16px, 2.4vw, 34px); }
.gx-nav a { position: relative; color: rgba(239, 235, 226, .72); transition: color .18s var(--gx-ease); }
.gx-nav a:hover { color: var(--gx-ink); }
/* Current section: stays ink, with a short amber rule underneath (never a colour change that reads as hover). */
.gx-nav a[aria-current="page"] { color: var(--gx-ink); }
.gx-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px; background: var(--gx-amber); }
/* "Custom firmware" and "Photo tools" open a menu (site-nav): 2.0 / v1.4x store, Camera Frame / Anamorphic */
.gx-nav > a[href^="/firmware-store/pro.html"], .gx-nav > a[href$="/gr/frame/"], .gx-nav-drop > a { padding-right: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='6'%3E%3Cpath d='M1 1l3.5 3.5L8 1' fill='none' stroke='%23efebe2' stroke-opacity='.6' stroke-width='1.4'/%3E%3C/svg%3E") right center / 9px 6px no-repeat; }
.gx-nav-drop { position: relative; display: inline-flex; }
.gx-subnav { position: absolute; z-index: 60; top: calc(100% + 16px); left: 50%; translate: -50% 0; display: grid; gap: 2px; width: max-content; max-width: min(360px, 90vw); padding: 6px;
  border: 1px solid var(--gx-rule); border-radius: 14px; background: var(--gx-raised); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.gx-subnav[hidden] { display: none; }
.gx-subnav a { display: grid; gap: 3px; padding: 11px 14px; border-radius: 10px; color: var(--gx-ink); text-align: left; }
.gx-subnav a:hover, .gx-subnav a:focus-visible { background: rgba(255, 255, 255, .06); color: var(--gx-ink); }
.gx-subnav b { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.gx-subnav em { padding: 1px 7px; border: 1px solid rgba(255, 181, 71, .4); border-radius: 999px; font-size: 11px; font-style: normal; font-weight: 600; color: var(--gx-amber); }
.gx-subnav a:not([data-pro]):not([data-new]) em { border-color: var(--gx-rule); color: var(--gx-muted); }
.gx-subnav span { font-size: 13px; font-weight: 400; line-height: 1.45; color: var(--gx-muted); }
.gx-header .nav-toggle { display: none; }
.gx-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 120px; }

/* Opening: huge display heading and a lead in full ink */
.gx-open { padding-top: clamp(56px, 9vw, 140px); padding-bottom: clamp(40px, 6vw, 96px); }
.gx-label { margin: 0 0 clamp(18px, 2vw, 28px); font-size: 15px; line-height: 1.5; color: var(--gx-muted); font-weight: 400; }
.gx-display { margin: 0; max-width: 16ch; font-size: clamp(46px, 1rem + 6vw, 104px); line-height: 1.02; letter-spacing: -.03em; font-weight: 500; text-wrap: balance; color: var(--gx-ink); }
:lang(en) .gx-display { text-transform: lowercase; }
:lang(zh) .gx-display, :lang(zh-Hans) .gx-display, :lang(zh-Hant) .gx-display, :lang(zh-CN) .gx-display { letter-spacing: -.02em; line-height: 1.08; }
.gx-lead { max-width: 34em; margin: clamp(22px, 2.4vw, 34px) 0 0; font-size: clamp(17px, .95rem + .25vw, 20px); line-height: 1.5; color: var(--gx-ink); }
.gx-pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 1px solid var(--gx-paper); border-radius: 999px; background: var(--gx-paper); color: var(--gx-ink-on-light) !important; font-weight: 600; font-size: 17px; letter-spacing: -.02em; text-decoration: none; transition: transform .18s var(--gx-ease), background-color .18s var(--gx-ease); }
.gx-pill:hover { background: var(--gx-ink); border-color: var(--gx-ink); }
.gx-pill:active { transform: scale(.97); }
.gx-text-link { display: inline-flex; align-items: center; min-height: 48px; font-weight: 600; font-size: 17px; letter-spacing: -.02em; color: var(--gx-ink); text-decoration: none; }
.gx-text-link:hover { color: var(--gx-muted); }

/* Phase list: rows separated by space; the current row sits on a raised tone */
.gx-phases { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.gx-phase { position: relative; display: grid; grid-template-columns: 20px 44px minmax(0, 1fr) minmax(0, 1.2fr); align-items: baseline; gap: var(--gx-gap-s) var(--gx-gap-m); padding: var(--gx-gap-m); border-radius: 6px; color: var(--gx-muted); transition: color .5s var(--gx-ease), background-color .5s var(--gx-ease); }
.gx-phase-dot { align-self: center; width: 8px; height: 8px; border-radius: 50%; background: var(--gx-rule); transition: background-color .4s var(--gx-ease); }
.gx-phase-num { font-size: 15px; font-variant-numeric: tabular-nums; }
.gx-phase-title { font-size: clamp(21px, 1rem + .75vw, 28px); line-height: 1.2; letter-spacing: -.02em; font-weight: 600; color: inherit; }
.gx-phase-desc { font-size: 15px; line-height: 1.5; }
.gx-phase.is-done .gx-phase-title { color: var(--gx-ink); }
.gx-phase.is-done .gx-phase-dot { background: var(--gx-muted); }
.gx-phase.is-active { color: var(--gx-ink); background: var(--gx-raised); }
.gx-phase.is-active .gx-phase-dot { background: var(--gx-amber); }

/* Footer (same as homepage) */
.gx-footer { padding-top: clamp(96px, 11vw, 168px); background: var(--gx-bg); border: 0; margin: 0; }
.gx-footer :is(p, h2, h3, ul) { margin: 0; }
.gx-footer ul { padding: 0; list-style: none; }
.gx-footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--gx-gap-l); padding-top: 40px; border-top: 1px solid var(--gx-rule); }
.gx-footer-blurb { max-width: 24em; color: var(--gx-muted); font-size: 15px; line-height: 1.6; }
.gx-footer-grid h3 { font-size: 15px; font-weight: 400; color: var(--gx-muted); margin-bottom: var(--gx-gap-s); }
.gx-footer-grid li { padding: 4px 0; font-size: 16px; }
.gx-footer-grid a:hover { color: var(--gx-amber); }
/* The wordmark fades out downwards, like light falling off */
.gx-mega { margin-top: var(--gx-gap-l) !important; font-size: clamp(64px, 11.4vw, 176px); line-height: .8; letter-spacing: -.07em; font-weight: 700; text-transform: lowercase; user-select: none;
  background: linear-gradient(to bottom, rgba(239, 235, 226, .9), rgba(239, 235, 226, .08)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gx-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--gx-gap-s) var(--gx-gap-m); margin-top: var(--gx-gap-m); padding-top: var(--gx-gap-m); padding-bottom: 40px; color: var(--gx-muted); font-size: 13.5px; }
.gx-footer-bottom p { max-width: 46em; }
.gx-footer-legal { display: flex; gap: var(--gx-gap-m); }
.gx-footer-bottom a:hover { color: var(--gx-ink); }

@media (prefers-reduced-motion: reduce) { .gx-phase, .gx-phase-dot, .gx-pill { transition: none; } }
@media (max-width: 860px) {
  .gx-nav { display: none; }
  .gx-header { justify-content: space-between; flex-wrap: wrap; column-gap: var(--gx-gap-s); }
  .gx-header .gx-header-actions { margin-left: auto; }
  .gx-header .nav-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--gx-rule); border-radius: 999px; background: transparent; color: var(--gx-ink); cursor: pointer; }
  .gx-header .nav-toggle span, .gx-header .nav-toggle span::before, .gx-header .nav-toggle span::after { display: block; width: 16px; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform .18s var(--gx-ease), opacity .18s var(--gx-ease); }
  .gx-header .nav-toggle span { position: relative; }
  .gx-header .nav-toggle span::before, .gx-header .nav-toggle span::after { content: ""; position: absolute; left: 0; }
  .gx-header .nav-toggle span::before { top: -5px; }
  .gx-header .nav-toggle span::after { top: 5px; }
  .gx-header.nav-open .nav-toggle span { background: transparent; }
  .gx-header.nav-open .nav-toggle span::before { transform: translateY(5px) rotate(45deg); }
  .gx-header.nav-open .nav-toggle span::after { transform: translateY(-5px) rotate(-45deg); }
  .gx-header.nav-open { height: auto; }
  .gx-header.nav-open .gx-nav { order: 3; display: flex; flex-direction: column; flex-basis: 100%; gap: 0; padding: var(--gx-gap-s) 0; border-top: 1px solid var(--gx-rule); }
  .gx-header.nav-open .gx-nav a { display: flex; align-items: center; min-height: 48px; font-size: 20px; }
  .gx-header.nav-open .gx-nav a[aria-current="page"]::after { top: 50%; bottom: auto; left: -14px; right: auto; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; }
  .gx-header.nav-open .gx-nav-drop { display: block; }
  .gx-header.nav-open .gx-nav-drop > a { padding-right: 0; background-position: calc(100% - 4px) center; }
  .gx-header.nav-open .gx-subnav { position: static; translate: none; width: auto; max-width: none; margin: 0 0 8px; box-shadow: none; }
  .gx-header.nav-open .gx-subnav a { display: grid; min-height: 0; font-size: 15px; }
  .gx-phase { grid-template-columns: 16px 36px minmax(0, 1fr); }
  .gx-phase-desc { grid-column: 3; }
  .gx-footer-grid { grid-template-columns: 1fr 1fr; }
  .gx-footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* Legal links inside the footer bottom row (shared legal-footer markup) */
.gx-footer .footer-legal { display: flex; flex: 1; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--gx-gap-s) var(--gx-gap-m); width: auto; margin: 0; font-size: 15px; }
.gx-footer .footer-legal-note { order: -1; max-width: 46em; margin: 0; }
.gx-footer .footer-legal-links { display: flex; flex-wrap: wrap; gap: var(--gx-gap-m); }
.gx-footer .footer-legal-links a { display: inline; min-height: 0; color: inherit; text-decoration: none; }
.gx-footer .footer-legal-links a:hover { color: var(--gx-ink); text-decoration: none; }
.gx-footer .footer-version { display: inline-flex; gap: 6px; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--gx-muted); white-space: nowrap; }
.gx-header .language-control, .gx-header .language-select { margin: 0; }
.gx-header .language-control select, .gx-header .language-select { min-height: 38px; padding: 0 30px 0 14px; border: 1px solid var(--gx-rule); border-radius: 999px; background-color: transparent; color: var(--gx-ink); font: 500 14px/1 var(--gx-font); }
.gx-footer-bottom.legal-footer { display: flex; gap: var(--gx-gap-s) var(--gx-gap-m); padding-top: var(--gx-gap-m); padding-bottom: var(--gx-gap-m); color: var(--gx-muted); font-size: 15px; line-height: 1.5; }
.gx-footer-bottom.legal-footer .legal-footer-note { flex: 1 1 30em; max-width: 46em; }
.gx-footer-bottom.legal-footer .legal-footer-links { gap: var(--gx-gap-m); }
.gx-footer-bottom.legal-footer .legal-footer-links a:hover { color: var(--gx-ink); text-decoration: none; }

/* Footer bottom: the note on the left and the three legal links pushed right; the page version, where a
   page shows one, drops to its own line below. */
.gx-footer-bottom .legal-footer-links, .gx-footer .footer-legal-links { margin-left: auto; }
.gx-footer-bottom > .footer-version { order: 9; flex-basis: 100%; }

/* Header: the account entry (account/client.js) sits before the language menu */
.acct-entry { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 14px; font-weight: 600; white-space: nowrap; }
.acct-entry:hover { background: rgba(255, 255, 255, .14); }
.acct-avatar { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--amber); color: var(--ink-on-light); font-size: 13px; font-weight: 700; text-transform: uppercase; }
