/* V2XYZ 星跃云 entry page: design canvas “V2XYZ 入口分发页” v14. System fonts only (nothing is
   downloaded from a third party); one lime button; states have words, not only colour. */
:root {
  --ink: #20251e;
  --muted: #58635d;
  --paper: #fafbf9;
  --card: #ffffff;
  --line: #d9e3e5;
  --rule: #e3e9ea;
  --lime: #d3ff48;
  --lime-soft: #e1ff86;
  --sky: #91cdf5;
  --ok: #3f8f4f;
  --down: #a3392f;
  --down-dot: #c9534a;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  line-height: 1.5;
}
a { color: var(--ink); }
a:hover { color: var(--muted); }
button { font: inherit; color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.offscreen { position: fixed; left: -9999px; top: 0; }

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100vh;
  justify-content: center;
}
.brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mark { width: 40px; height: 28px; border-radius: 6px; background: var(--sky); display: flex; align-items: center; justify-content: center; }
.wordmark { font-size: 20px; font-weight: 900; font-style: italic; letter-spacing: -0.02em; border-bottom: 3px solid var(--lime); line-height: 1.1; }
.cn-name { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; }
.pill { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--ink); }
.purpose { margin: -8px 0 0; font-size: 14px; color: var(--muted); }

.bar { margin: 0; border-radius: 8px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.5; }
.bar > span { flex: 1; }
.bar-notice { background: #eaf3f5; align-items: flex-start; }
.bar-notice svg { flex: none; margin-top: 1px; }
.bar-notice strong { font-weight: 600; }
.bar-in-app { background: #fff4d6; }

.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.column { display: flex; flex-direction: column; gap: 16px; }
.card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 4px 0 var(--ink);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stack { display: flex; flex-direction: column; gap: 16px; }
.heading { display: flex; flex-direction: column; gap: 4px; }
h1 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.3; }
h2 { margin: 0; font-size: 15px; font-weight: 600; }
.muted { color: var(--muted); }
.heading p { margin: 0; font-size: 14px; }
.enter { display: flex; flex-direction: column; gap: 4px; }
.cta {
  position: relative;
  overflow: hidden;
  height: 54px;
  border-radius: 8px;
  border: 2px solid var(--ink);
  background: var(--lime);
  box-shadow: 2px 3px 0 var(--ink);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.cta:active:not(:disabled) { transform: translate(2px, 3px); box-shadow: none; }
.cta:disabled { background: var(--lime-soft); cursor: default; }
.cta-progress { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(32, 37, 30, 0.12); transition: width 1s linear; }
.cta-label { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pause-row { min-height: 44px; display: flex; justify-content: center; align-items: center; }
.text-button { border: 0; background: none; min-height: 44px; padding: 0 12px; font-size: 13px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }

.lines { display: flex; flex-direction: column; gap: 8px; }
.label { font-size: 13px; font-weight: 600; color: var(--muted); }
.line-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.line {
  min-height: 52px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  text-align: left;
  cursor: pointer;
}
.line:disabled { cursor: default; }
.line-name { font-size: 14px; font-weight: 600; }
.line-meta { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.line-meta::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--line); }
.line[data-state="up"] .line-meta::before { background: var(--ok); }
.line[data-state="selected"] { border: 2px solid var(--ink); background: #eef6d6; }
.line[data-state="selected"] .line-meta::before { background: var(--ok); }
.line[data-state="down"] { background: #f6f7f5; color: #6f7872; }
.line[data-state="down"] .line-meta { color: var(--down); }
.line[data-state="down"] .line-meta::before { background: var(--down-dot); }

.site-row { margin: 0 -4px; padding: 10px 4px 0; border-top: 1px solid var(--rule); display: flex; align-items: center; gap: 8px; font-size: 14px; text-decoration: none; min-height: 44px; }
.grow { flex: 1; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.strong { font-weight: 600; }

.sub-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: stretch; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.panel-title { display: flex; align-items: center; gap: 8px; }
.panel p { margin: 0; }
.small-text { font-size: 13px; }
.tiny { font-size: 12px; }
.panel-links { padding: 12px 16px; gap: 0; }
.panel-links .label { margin-bottom: 4px; }
.link-row { min-height: 44px; display: flex; align-items: center; gap: 8px; font-size: 14px; text-decoration: none; }
.small { align-self: flex-start; min-height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--ink); background: var(--card); font-size: 13px; font-weight: 600; cursor: pointer; }
.copy-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.copy-row .mono { font-size: 14px; }
.trust { padding: 4px 4px 0; display: flex; gap: 8px; align-items: flex-start; color: var(--muted); }
.trust svg { flex: none; margin-top: 2px; }
.trust p { margin: 0; font-size: 12px; }
.trust a { color: var(--muted); font-weight: 600; }
.footer { text-align: center; font-size: 12px; color: var(--muted); }

@media (min-width: 760px) {
  .page { padding: 48px 24px; gap: 24px; }
  .grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
  .column { gap: 24px; }
  aside.column { gap: 12px; }
  .card { padding: 28px; }
  h1 { font-size: 26px; }
  .sub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .cta-progress { transition: none; }
}
