/* 各站点共用：设计 token 与通用样式。产品专属首屏样式在 <产品>/hero.css。 */

:root {
  --sky: #dce6f2;
  --graphite: #23272e;
  --white: #ffffff;
  --accent: #2f6feb;
  --muted: #6b7280;

  /* 派生 */
  --ink: var(--graphite);
  --surface: var(--white);
  --page: #f7f9fc;
  --line: #d8dfe8;
  --line-strong: #b9c4d2;
  --sky-deep: #c8d6e8;
  --on-accent: #ffffff;
  --accent-hover: #245fd6;
  --accent-soft: #e6eefd;
  --ok: #1d7a4c;
  --danger: #b4332a;
  --danger-soft: #fbeceb;
  --warn: #8a5a00;
  --warn-soft: #fdf3dd;
  --menubar: rgba(255, 255, 255, 0.55);
  --menubar-ink: #1b1e23;
  --glass: rgba(255, 255, 255, 0.78);
  --glass-edge: rgba(255, 255, 255, 0.9);
  --shadow: 0 1px 2px rgba(20, 30, 50, 0.06), 0 12px 32px -12px rgba(20, 30, 50, 0.22);

  --font: "Instrument Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui,
    sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 10px;
  --wrap: 1120px;
  --gutter: 24px;
  color-scheme: light;
}
@media (max-width: 600px) {
  :root {
    --gutter: 16px;
  }
}

/* 日语页面：汉字用日文字体（否则会落到前面的简体中文字体上，字形不对） */
:root:lang(ja) {
  --font: "Instrument Sans", "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
}

/* 默认浅色；深色只在页头开关手动选择后启用（不跟随系统） */
:root[data-theme="dark"] {
  --sky: #1a2331;
  --graphite: #e6e9ee;
  --white: #12161c;
  --accent: #7aa5ff;
  --muted: #9ba4b1;

  --page: #0e1116;
  --line: #283140;
  --line-strong: #3a4557;
  --sky-deep: #243044;
  --on-accent: #0b1222;
  --accent-hover: #9bbcff;
  --accent-soft: #1b2a47;
  --ok: #5cc592;
  --danger: #ff8a7f;
  --danger-soft: #3a1c1a;
  --warn: #f0c060;
  --warn-soft: #33290f;
  --menubar: rgba(10, 14, 20, 0.45);
  --menubar-ink: #eef1f5;
  --glass: rgba(34, 41, 53, 0.82);
  --glass-edge: rgba(255, 255, 255, 0.12);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -12px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}
:root[data-theme="light"] {
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img,
svg {
  display: block;
}

[hidden]:not(.bar-pop) {
  display: none !important;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
}
h3 {
  font-size: 1.08rem;
  letter-spacing: 0;
}
p {
  margin: 0;
}

.num,
.tabular {
  font-variant-numeric: tabular-nums;
}
.mono {
  font-family: var(--mono);
  font-size: 0.92em;
  letter-spacing: 0.02em;
}
.muted {
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.measure {
  max-width: 68ch;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- 页头 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 60px;
  background: color-mix(in srgb, var(--page) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.08rem;
  margin-right: auto;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--graphite);
  color: var(--white);
  display: grid;
  place-items: center;
}
.brand-icon {
  width: 32px;
  height: 32px;
  flex: none;
}
.brand-latin {
  color: var(--muted);
  font-weight: 500;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}
.site-nav a {
  display: block;
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav a:hover {
  background: var(--sky);
}
.site-nav a[aria-current="page"] {
  font-weight: 600;
  background: var(--sky);
}
.site-header .nav-toggle {
  display: none;
}
.site-header .theme-toggle {
  order: 3;
  margin-left: -12px;
}
.site-header .theme-toggle[hidden] {
  display: none;
}
/* 语言菜单：<details>，没有脚本时也能展开；排在外观开关左边 */
.lang-menu {
  position: relative;
  order: 2;
  margin-left: -12px;
}
.lang-menu summary {
  gap: 6px;
  list-style: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.lang-menu summary::-webkit-details-marker {
  display: none;
}
.lang-menu ul {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 50;
  min-width: 168px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.lang-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}
.lang-menu a:hover {
  background: var(--sky);
}
.lang-menu a[aria-current="true"] {
  font-weight: 600;
  background: var(--sky);
}
/* 显示的是点了之后会切到的外观：浅色时显示月亮，深色时显示太阳 */
.theme-sun {
  display: none;
}
:root[data-theme="dark"] .theme-sun {
  display: block;
}
:root[data-theme="dark"] .theme-moon {
  display: none;
}

@media (max-width: 760px) {
  .site-header .wrap {
    gap: 8px;
  }
  .site-header .nav-toggle {
    display: inline-flex;
  }
  /* 窄屏只留地球图标，当前语言的名称留给读屏 */
  .lang-current {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--page);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }
  .site-nav.is-open {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
  }
  .site-nav a {
    padding: 12px;
    font-size: 1rem;
  }
}

/* ---------- 按钮 ---------- */

.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--ink);
  --btn-border: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:hover {
  text-decoration: none;
  --btn-bg: var(--sky);
}
.btn:active {
  transform: translateY(1px);
}
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: progress;
}
.btn-primary {
  --btn-bg: var(--accent);
  --btn-fg: var(--on-accent);
  --btn-border: var(--accent);
}
.btn-primary:hover {
  --btn-bg: var(--accent-hover);
  --btn-border: var(--accent-hover);
}
.btn-danger {
  --btn-bg: var(--danger);
  --btn-fg: #fff;
  --btn-border: var(--danger);
}
.btn-danger:hover {
  --btn-bg: var(--danger);
  filter: brightness(1.08);
}
:root[data-theme="dark"] .btn-danger {
  --btn-fg: #2a0d0a;
}
.btn-quiet {
  --btn-border: transparent;
  --btn-bg: transparent;
  padding: 0 12px;
}
.btn-small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.9rem;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------- 表单 ---------- */

.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-weight: 600;
  font-size: 0.95rem;
}
.input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.input.mono {
  font-family: var(--mono);
  letter-spacing: 0.06em;
}
.input:focus-visible {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
}
.hint {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- 提示条 ---------- */

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--sky);
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.6;
}
.notice[hidden] {
  display: none;
}
.notice strong {
  display: block;
}
.notice-error {
  background: var(--danger-soft);
}
.notice-error strong {
  color: var(--danger);
}
.notice-warn {
  background: var(--warn-soft);
}
.notice-warn strong {
  color: var(--warn);
}
.notice .notice-icon {
  flex: none;
  margin-top: 3px;
}

/* ---------- 首页：首屏 ---------- */

.hero {
  padding: 24px 0 64px;
}
.screen {
  margin: 0;
  position: relative;
  height: 236px;
  border-radius: 18px;
  background: var(--sky);
  overflow: hidden;
  isolation: isolate;
}
/* 桌面上一扇窗口的轮廓，让菜单栏有「屏幕」的语境 */
.screen-window {
  position: absolute;
  left: 7%;
  top: 84px;
  width: 44%;
  height: 260px;
  border-radius: 12px;
  background: var(--surface);
  opacity: 0.4;
  box-shadow: var(--shadow);
}
.screen-window::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 14px;
  width: 52px;
  height: 12px;
  background: radial-gradient(circle at 6px 6px, var(--line-strong) 5px, transparent 5.5px) 0 0 /
    20px 12px repeat-x;
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  margin-top: 36px;
}
.hero-copy .lede {
  margin-top: 18px;
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 34em;
}
.hero-buy {
  display: grid;
  gap: 16px;
  justify-items: start;
}
/* 购买按钮上的价格：与按钮文字之间用一道细线分开 */
.btn-price {
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid color-mix(in srgb, currentColor 40%, transparent);
}
.btn-price[hidden],
.btn-price:empty {
  display: none;
}
.price {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.price-note {
  color: var(--muted);
}
.buy-status {
  max-width: 34em;
}

@media (max-width: 900px) {
  .hero-copy {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 760px) {
  .screen {
    height: 250px;
    border-radius: 14px;
  }
  .hero {
    padding-bottom: 32px;
  }
  .screen-window {
    left: 8%;
    width: 70%;
    top: 104px;
  }
}

/* ---------- 首页各区 ---------- */

.section {
  padding: 88px 0;
}
.section + .section {
  border-top: 1px solid var(--line);
}
.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 44px;
  max-width: 40em;
}
.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}


.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 48px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.features li {
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}
.features h3 {
  margin-bottom: 8px;
}
.features p {
  color: var(--muted);
}
@media (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .features {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .section {
    padding: 64px 0;
  }
}

/* 价格区 */
.pricing {
  background: var(--sky);
}
.section.pricing + .section {
  border-top: 0;
}
.plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  background: var(--surface);
  border-radius: 18px;
  padding: 44px;
  box-shadow: var(--shadow);
}
.plan .price {
  font-size: clamp(3rem, 7vw, 4.5rem);
}
.plan-intro {
  display: grid;
  gap: 18px;
  align-content: start;
}
.plan-intro .price-note {
  font-size: 1.02rem;
}
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.checklist li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
}
.checklist svg {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  color: var(--accent);
}
.plan-foot {
  font-size: 0.9rem;
  color: var(--muted);
}
/* 方案卡片（pages/plans.js）：一个版本时就是价格与说明，外观同单价格区；多个版本时并排成卡片 */
.plans {
  display: grid;
  gap: 16px;
}
.plan.is-multi {
  grid-template-columns: 1fr;
}
.plans:not([data-count="0"]):not([data-count="1"]) {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.plans:not([data-count="1"]) .plan-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.plans:not([data-count="1"]) .plan-card.is-default {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.plans:not([data-count="1"]) .price {
  font-size: 2.4rem;
}
.plans:not([data-count="1"]) .plan-card .btn {
  justify-self: start;
}
.plan-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.plan-card-head h3 {
  margin: 0;
  font-size: 1.05rem;
}
.plan-badge {
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .plan {
    grid-template-columns: 1fr;
    padding: 28px 22px;
    gap: 32px;
  }
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 56px;
  margin: 0;
}
.faq-grid dt {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.faq-grid dd {
  margin: 0;
  color: var(--muted);
}
@media (max-width: 760px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
.more-link {
  display: inline-block;
  margin-top: 36px;
  font-weight: 600;
}

/* 更新日志页：每个版本一行，左边版本号与日期，右边内容；窄屏上下排 */
.changelog-entry {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 8px 40px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.changelog > .changelog-entry:first-child {
  border-top: 0;
  padding-top: 0;
}
.changelog-entry h2 {
  display: grid;
  gap: 2px;
  align-content: start;
  font-size: 1.05rem;
}
.changelog-date {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 400;
}
.changelog-entry .prose {
  color: var(--muted);
  overflow-wrap: anywhere;
}
/* 内容来自接口：每一条各自隔离文字方向，里面的方向字符影响不到别的条目与页面其它部分 */
.changelog-entry .prose,
.changelog-entry .prose li,
.changelog-entry .prose p,
.changelog-entry .prose h4 {
  unicode-bidi: isolate;
}
.changelog-entry .prose h4 {
  color: var(--ink);
  font-size: 0.95rem;
  margin: 14px 0 6px;
}
.changelog-entry .prose > :first-child {
  margin-top: 0;
}
.changelog-entry .prose > :last-child {
  margin-bottom: 0;
}
.changelog-entry .prose code {
  font-family: var(--mono);
  font-size: 0.9em;
}
.changelog-truncated {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 0.92rem;
}
@media (max-width: 760px) {
  .changelog-entry {
    grid-template-columns: 1fr;
  }
  .changelog-entry h2 {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
  }
}

/* 下载区（首页） */
.get {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 48px;
  align-items: center;
}
.get p {
  color: var(--muted);
  margin-top: 10px;
}
@media (max-width: 760px) {
  .get {
    grid-template-columns: 1fr;
  }
}

/* ---------- 内页 ---------- */

.page {
  padding-top: 56px;
  padding-bottom: 96px;
}
.page-head h1 {
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
}
.page-head {
  display: grid;
  gap: 14px;
  margin-bottom: 40px;
  max-width: 44em;
}
.page-head p {
  color: var(--muted);
  font-size: 1.08rem;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
}
@media (max-width: 600px) {
  .panel {
    padding: 20px 18px;
  }
  .page {
    padding-top: 36px;
    padding-bottom: 72px;
  }
}
.stack {
  display: grid;
  gap: 20px;
}
.stack > * {
  min-width: 0;
}

/* 正文（法律、FAQ） */
.prose {
  max-width: 68ch;
}
.prose h2 {
  font-size: 1.35rem;
  margin: 44px 0 12px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  margin: 28px 0 8px;
}
.prose p,
.prose ul,
.prose ol {
  margin: 0 0 14px;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose li + li {
  margin-top: 6px;
}
.prose .updated {
  color: var(--muted);
  font-size: 0.92rem;
}

.faq-list {
  max-width: 72ch;
  display: grid;
  gap: 8px;
}
.faq-group {
  margin-top: 40px;
}
.faq-group:first-child {
  margin-top: 0;
}
.faq-group > h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
details.qa {
  border-bottom: 1px solid var(--line);
}
details.qa summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 36px 16px 0;
  font-weight: 600;
  position: relative;
}
details.qa summary::-webkit-details-marker {
  display: none;
}
details.qa summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s;
}
details.qa[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}
details.qa .answer {
  padding: 0 0 20px;
  color: var(--muted);
}
details.qa .answer p + p {
  margin-top: 10px;
}

/* 付款成功 */
.success-card {
  max-width: 640px;
}
.success-card .page-head {
  margin-bottom: 8px;
}
.keybox {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--sky);
}
.keybox code {
  font-family: var(--mono);
  font-size: clamp(1rem, 3.4vw, 1.3rem);
  letter-spacing: 0.06em;
  word-break: break-all;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ink);
}
.progress {
  height: 4px;
  border-radius: 2px;
  background: var(--sky);
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 1s linear;
}
.steps {
  margin: 0;
  padding-left: 1.3em;
  color: var(--muted);
}
.steps li + li {
  margin-top: 6px;
}

/* 设备 */
.lookup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}
.lookup-form > .btn {
  margin-top: 30px;
}
@media (max-width: 600px) {
  .lookup-form {
    grid-template-columns: 1fr;
  }
  .lookup-form > .btn {
    width: 100%;
    margin-top: 0;
  }
}
.license-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  align-items: baseline;
}
.license-summary .slots {
  font-weight: 700;
  font-size: 1.15rem;
}
.slot-dots {
  display: inline-flex;
  gap: 6px;
  vertical-align: middle;
  margin-right: 10px;
}
.slot-dots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}
.slot-dots i.on {
  background: var(--accent);
}
.device-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.device {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.device:first-child {
  border-top: 0;
}
.device-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--sky);
  display: grid;
  place-items: center;
  color: var(--ink);
}
.device-name {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.device-meta {
  color: var(--muted);
  font-size: 0.9rem;
}
@media (max-width: 600px) {
  .device {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .device .btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}
.status-dot.is-off::before {
  background: var(--danger);
}

/* 下载 */
.release-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}
@media (max-width: 700px) {
  .release-main {
    grid-template-columns: 1fr;
  }
  .release-main .btn {
    width: 100%;
  }
}
.release-version {
  font-size: 1.6rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.meta-list {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 20px;
  margin: 18px 0 0;
  font-size: 0.95rem;
}
.meta-list dt {
  color: var(--muted);
}
.meta-list dd {
  margin: 0;
  min-width: 0;
}
.hash {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.hash code {
  font-family: var(--mono);
  font-size: 0.82rem;
  word-break: break-all;
  min-width: 0;
  flex: 1 1 220px;
}
.history {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.history th,
.history td {
  text-align: left;
  padding: 12px 12px 12px 0;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
.history th {
  font-weight: 600;
  color: var(--muted);
  border-top: 0;
  font-size: 0.88rem;
}
/* 平台与下载链接两列不换行 */
.history td:nth-child(2),
.history td:last-child {
  white-space: nowrap;
}
.history td:last-child {
  padding-right: 0;
  text-align: right;
}
.table-scroll {
  overflow-x: auto;
}
.skeleton {
  display: block;
  height: 1em;
  border-radius: 6px;
  background: var(--sky);
}

/* 对话框 */
dialog.confirm {
  width: min(440px, calc(100vw - 32px));
  border: 0;
  border-radius: 16px;
  padding: 26px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}
dialog.confirm::backdrop {
  background: rgba(15, 20, 30, 0.42);
}
dialog.confirm h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
dialog.confirm p {
  color: var(--muted);
}
dialog.confirm .btn-row {
  margin-top: 24px;
  justify-content: flex-end;
}

/* 复制按钮反馈 */
.copy-btn[data-copied="true"] {
  --btn-border: var(--ok);
  color: var(--ok);
}

/* 404 */
.lost {
  display: grid;
  gap: 18px;
  justify-items: start;
  padding-top: 72px;
  padding-bottom: 120px;
}
.lost-bar {
  width: min(440px, 100%);
  height: 34px;
  border-radius: 10px;
  background: var(--sky);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  padding: 0 10px;
  color: var(--menubar-ink);
  margin-bottom: 12px;
}
.lost-bar .gap {
  width: 30px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px dashed var(--line-strong);
  margin-right: auto;
}
.lost-bar svg {
  width: 16px;
  height: 16px;
  margin: 0 7px;
}

/* ---------- 页脚 ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 36px;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--muted);
}
/* 链接按内容分组成列，每组一个小标题：四列，窄屏两列（不出现三列加一个落单的组） */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 32px;
}
.footer-group h2 {
  margin: 0 0 12px;
  font-size: inherit;
  line-height: inherit;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.footer-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.footer-meta a {
  color: inherit;
}
.footer-meta a:hover {
  color: var(--ink);
}
@media (max-width: 720px) {
  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }
}

.cmd {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--sky);
  overflow-x: auto;
  white-space: nowrap;
}


/* ================================================================
   多站点新增：产品站状态、购买跳转、多平台下载、apps 总览
   ================================================================ */

.nowrap {
  white-space: nowrap;
}
.narrow {
  max-width: 760px;
}
.panel-title {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.notice-actions {
  margin-top: 12px;
}
.platform-line {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--muted);
}

/* 即将推出 */
.soon {
  display: grid;
  gap: 10px;
  justify-items: start;
  max-width: 30em;
}
.soon p {
  color: var(--muted);
}
.soon-badge {
  display: inline-flex;
  justify-self: start;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 3px 12px 3px 10px;
  border-radius: 999px;
  border: 1px dashed var(--line-strong);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}
.soon-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
/* 购买即将开放（brand.json 的 sales 为 soon）：占在购买按钮位置上的状态标记。不是按钮也不是链接——
   与按钮同高、虚线边框、默认光标，一眼能看出点不了 */
.buy-soon {
  min-height: 44px;
  padding: 0 16px 0 14px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  cursor: default;
}

/* 购买跳转页 */
.buy-card {
  max-width: 600px;
}
.buy-card .page-head {
  margin-bottom: 0;
}
.buy-meter {
  height: 3px;
  border-radius: 2px;
  background: var(--sky);
  overflow: hidden;
}
.buy-meter span {
  display: block;
  width: 36%;
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  animation: buy-slide 1.1s cubic-bezier(0.5, 0, 0.3, 1) infinite;
}
.buy-card:not([data-state="going"]) .buy-meter {
  visibility: hidden;
}
@keyframes buy-slide {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(280%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .buy-meter span {
    animation: none;
    width: 100%;
    opacity: 0.5;
  }
}

/* 下载：每个平台一栏 */
.release-grid {
  display: grid;
  gap: 28px;
}
.release-grid.is-multi {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .release-grid.is-multi {
    grid-template-columns: 1fr;
  }
}
.release-col {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}
.release-platform {
  font-size: 1.2rem;
}
.release-req {
  margin-top: -6px;
  font-size: 0.92rem;
}
.release-version {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}
.release-build {
  font-size: 1rem;
  font-weight: 500;
}
.release-size {
  font-weight: 500;
}
.release-empty {
  min-height: 120px;
  display: grid;
  place-items: center start;
}
.is-multi .release-main {
  grid-template-columns: 1fr;
}
.is-multi .release-main .btn {
  justify-self: start;
}
.release-more .more-link {
  margin-top: 0;
}
.history-sec {
  margin-top: 32px;
}
.history-sec h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.install {
  margin-top: 32px;
}

/* ---------- apps 站 ---------- */

.apps-hero {
  position: relative;
  padding: 72px 0 40px;
  isolation: isolate;
}
/* 首屏底色：品牌色与几个产品色的柔和光晕，深浅色下都只是淡淡一层 */
.apps-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 -40px;
  z-index: -1;
  background:
    radial-gradient(42% 70% at 12% 8%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%),
    radial-gradient(38% 64% at 62% 0%, color-mix(in srgb, #5b6cff 18%, transparent), transparent 72%),
    radial-gradient(34% 60% at 96% 30%, color-mix(in srgb, #00a3e0 16%, transparent), transparent 70%);
  pointer-events: none;
  /* 顶部淡入，不在页头下方留一条硬边 */
  -webkit-mask-image: linear-gradient(transparent, #000 110px);
  mask-image: linear-gradient(transparent, #000 110px);
}
.apps-hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  max-width: 13em;
}
.apps-hero .lede {
  margin-top: 20px;
  max-width: 36em;
  font-size: 1.12rem;
  color: var(--muted);
}

.apps-list {
  padding-bottom: 8px;
}
.apps-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.apps-bar h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
}
.apps-count {
  min-width: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.7;
  text-align: center;
}
.apps-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.apps-filter[hidden] {
  display: none;
}
.apps-filter button {
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
}
.apps-filter button:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.apps-filter button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

/* 产品卡片：列数随宽度自动增减，新增产品只是多一张卡片。每张卡片用自己产品的颜色（--tint） */
.app-grid {
  list-style: none;
  margin: 0;
  padding: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}
.app-card {
  --tint: var(--p-accent, var(--accent));
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: 22px 22px 18px;
  border: 1px solid color-mix(in srgb, var(--tint) 24%, var(--line));
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--tint) 11%, var(--surface)) 0%,
    color-mix(in srgb, var(--tint) 3%, var(--surface)) 46%,
    var(--surface) 100%
  );
  transition:
    border-color 0.15s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
.app-card[hidden] {
  display: none;
}
.app-card:hover,
.app-card:focus-within {
  border-color: var(--tint);
  box-shadow: 0 14px 34px -18px color-mix(in srgb, var(--tint) 70%, transparent);
  transform: translateY(-2px);
}
:root[data-theme="dark"] .app-card {
  --tint: var(--p-accent-dark, var(--accent));
}
.app-link {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  margin-bottom: 6px;
  color: var(--ink);
  text-decoration: none;
}
/* 整张卡片可点：链接铺满卡片，价格链接浮在它上面 */
.app-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
/* App 的真实图标（PNG 自带留白与投影），没有图标的产品退回单色图形 */
.app-icon {
  width: 60px;
  height: 60px;
  margin-left: -4px;
}
.app-tile {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--tint);
  color: var(--on-accent);
}
.app-tile svg {
  width: 24px;
  height: 24px;
}
.app-name {
  font-size: 1.25rem;
  line-height: 1.25;
}
.app-card:hover .app-name strong {
  color: var(--tint);
}
.app-tagline {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.4;
}
.app-sum {
  color: var(--muted);
  font-size: 0.96rem;
}
.app-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--tint) 18%, var(--line));
}
.app-platforms {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.app-platforms li {
  padding: 1px 9px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--tint) 13%, var(--surface));
  font-size: 0.82rem;
  font-weight: 600;
}
.app-price {
  position: relative;
  padding: 3px 13px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tint) 15%, transparent);
  color: var(--tint);
  font-weight: 700;
  text-decoration: none;
}
.app-price:hover {
  background: var(--tint);
  color: var(--surface);
  text-decoration: none;
}
.app-card .soon-badge::before {
  background: var(--tint);
}
@media (prefers-reduced-motion: reduce) {
  .app-card {
    transition: none;
  }
  .app-card:hover,
  .app-card:focus-within {
    transform: none;
  }
}

.after-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 40px;
}
.after-links a {
  display: grid;
  gap: 6px;
  padding-top: 16px;
  border-top: 2px solid var(--accent);
  color: var(--ink);
  text-decoration: none;
}
.after-links strong {
  font-size: 1.08rem;
}
.after-links a:hover strong {
  color: var(--accent);
  text-decoration: underline;
}
.after-links span {
  color: var(--muted);
}
@media (max-width: 760px) {
  .after-links {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* 找回 key：三步依次来 */
.recover-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 720px;
  display: grid;
  gap: 20px;
  counter-reset: step;
}
.recover-steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 72px;
}
.recover-steps > li::before {
  content: counter(step);
  position: absolute;
  left: 26px;
  top: 26px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--ink);
  font-weight: 700;
  text-align: center;
  line-height: 30px;
  font-variant-numeric: tabular-nums;
}
.recover-steps h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
@media (max-width: 600px) {
  .recover-steps > li {
    padding-left: 58px;
  }
  .recover-steps > li::before {
    left: 16px;
    top: 20px;
  }
}
.after-note {
  margin-top: 24px;
}
.recover-steps .prose > :last-child {
  margin-bottom: 0;
}
