/* 互联网上的 apply.nestofi.com（决策 0029）。和预告页、家长网站同一家的样子（界面重做 2026-11）：雾色底、一块玻璃面板、
   一种绿色；排版和网关上孩子的页面（gateway/linux/portal.mjs）一样，最上面一行是名字和语言切换。颜色的值和 landing/public/index.html
   里的一样。CSP 不许内联样式，所以单独一个文件。 */
:root {
  color-scheme: light dark;
  --ink: #16201d; --ink-2: #44524d; --muted: #586560; --bg: #e2e7e5; --line: rgba(22,32,29,.12);
  --haze-light: rgba(255,255,255,.98); --haze-shade: rgba(158,176,169,.66); --haze-shade-2: rgba(174,187,182,.6); --haze-accent: rgba(31,111,84,.07);
  --pane: linear-gradient(145deg, rgba(255,255,255,.78), rgba(255,255,255,.46)); --pane-edge: rgba(255,255,255,.85);
  --shadow-pane: 0 1px 0 rgba(255,255,255,.75) inset, 0 24px 60px -24px rgba(22,40,34,.28), 0 2px 6px -2px rgba(22,40,34,.05);
  --card: rgba(22,32,29,.05); --chip: rgba(255,255,255,.55); --chip-edge: rgba(22,32,29,.16);
  --accent: #1f6f54; --on-accent: #fff; --mark: rgba(22,32,29,.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8edeb; --ink-2: #b6c1bd; --muted: #b3beba; --bg: #0e1413; --line: rgba(255,255,255,.12);
    --haze-light: rgba(255,255,255,.075); --haze-shade: rgba(0,0,0,.45); --haze-shade-2: rgba(0,0,0,.3); --haze-accent: rgba(88,192,156,.06);
    --pane: linear-gradient(145deg, rgba(255,255,255,.085), rgba(255,255,255,.035)); --pane-edge: rgba(255,255,255,.1);
    --shadow-pane: 0 1px 0 rgba(255,255,255,.07) inset, 0 24px 60px -24px rgba(0,0,0,.7);
    --card: rgba(255,255,255,.06); --chip: rgba(255,255,255,.08); --chip-edge: rgba(255,255,255,.16);
    --accent: #58c09c; --on-accent: #08130f; --mark: rgba(255,255,255,.06);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0 16px 32px;
  color: var(--ink);
  background: var(--bg);
  font: 16px/1.6 system-ui, -apple-system, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans CJK SC", "Segoe UI", sans-serif;
}

/* 底色：几团很大的柔光，固定不动。 */
body::before {
  content: "";
  position: fixed;
  inset: -10vmax;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(50vmax 42vmax at 6% 2%, var(--haze-light), transparent 70%),
    radial-gradient(44vmax 48vmax at 104% 34%, var(--haze-shade), transparent 68%),
    radial-gradient(46vmax 40vmax at -4% 72%, var(--haze-shade-2), transparent 70%),
    radial-gradient(42vmax 38vmax at 86% 102%, var(--haze-light), transparent 66%),
    radial-gradient(34vmax 30vmax at 46% 50%, var(--haze-accent), transparent 70%),
    var(--bg);
}

/* 没有脚本时两段都显示：中间隔开一点（有脚本时只显示一段，lang.js 给 html 加上 js）。 */
section + section { margin-top: 32px; }
.js section + section { margin-top: 0; }

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 480px;
  min-height: 60px;
  margin: 0 auto;
  padding: 0 8px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .3px;
}

.lang {
  position: relative;
  padding: 0 14px;
  border: 1px solid var(--chip-edge);
  border-radius: 18px;
  background: var(--chip);
  color: var(--ink-2);
  font-weight: 500;
  line-height: 34px;
  text-decoration: none;
}
/* 点的范围比看到的高一点（手指好点）。 */
.lang::after { content: ""; position: absolute; inset: -6px 0; }

main {
  max-width: 480px;
  margin: 0 auto;
  padding: 22px 20px;
  border: 1px solid var(--pane-edge);
  border-radius: 24px;
  background: var(--pane);
  box-shadow: var(--shadow-pane);
  overflow-wrap: break-word;
}

.top { display: flex; align-items: center; margin: 0 0 16px; }
.mark {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: 12px;
  border-radius: 14px;
  background: var(--mark);
  color: var(--accent);
}
.mark svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mark circle { fill: currentColor; stroke: none; }

h1 { min-width: 0; margin: 0; font-size: 22px; line-height: 1.3; }
p { margin: 0 0 12px; }
.strong { font-weight: 600; }
.muted { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
/* 网址：长的时候在任何位置换行，不让 320 宽的屏幕横着滚动。 */
.url { font-weight: 600; overflow-wrap: anywhere; }

.card { margin: 16px 0 0; padding: 14px; border-radius: 16px; background: var(--card); }
.card > :last-child { margin-bottom: 0; }

.btn {
  display: block;
  min-height: 48px;
  margin: 14px 0 0;
  padding: 10px 16px;
  border-radius: 24px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  line-height: 28px;
  text-align: center;
  text-decoration: none;
}
.btn:active, .lang:active { opacity: .8; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
