/* ============================================================
   极光  —  Shared Design System
   Palette derived from the logo: a midnight sky with an
   aurora ribbon running violet → cyan → mint.
   Cyan leads, violet supports. No green glow.
   ============================================================ */

:root {
  /* Base — midnight sky */
  --ink:        #080c22;
  --ink-2:      #0f1534;
  --ink-3:      #171f47;
  --ink-4:      #202a5c;
  --line:       #2a3468;
  --line-soft:  #1c2450;

  /* Text — starlight */
  --text:       #eaf0ff;
  --text-dim:   #a7b0d8;
  --text-mute:  #6e789e;

  /* Accent — aurora cyan leads, violet supports */
  --accent:      #47d6ff;
  --accent-2:    #8b7bff;
  --accent-soft: rgba(71, 214, 255, .12);
  --accent-line: rgba(71, 214, 255, .42);
  --on-accent:   #04122b;
  /* The one signature: the ribbon itself, straight from the logo */
  --aurora-grad: linear-gradient(110deg, #47d6ff 0%, #8b7bff 58%, #c58bff 100%);

  /* Status tints */
  --ok:     #5fd6a8;
  --warn:   #e8b341;
  --info:   #6ba8e8;
  --bad:    #e8746b;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;

  /* Motion */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* Type */
  --font-sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", "Monaco", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--ink);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* aurora field: violet overhead, cyan at the shoulder, a breath of mint low */
  background-image:
    radial-gradient(1100px 620px at 84% -12%, rgba(139,123,255,.16), transparent 62%),
    radial-gradient(920px 540px at -10% 6%, rgba(71,214,255,.11), transparent 60%),
    radial-gradient(1000px 620px at 50% 120%, rgba(110,231,200,.06), transparent 62%);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}

/* ---------- Links ---------- */
a { color: inherit; text-decoration: none; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 28px;
  transition: gap .2s, opacity .2s;
}
.back-link:hover { gap: 10px; opacity: .85; }

/* ---------- Typography ---------- */
h1 {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 14px;
}
h2 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  margin: 44px 0 20px;
  letter-spacing: -0.01em;
}
h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }

.subtitle {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 60ch;
  margin-bottom: 28px;
}

p { color: var(--text-dim); }

/* ---------- Top nav ---------- */
.header-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}
.header-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.header-links a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color .2s;
}
.header-links a:hover { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 160ms var(--ease-out),
              background-color 200ms var(--ease-out),
              border-color 200ms var(--ease-out),
              color 200ms var(--ease-out),
              filter 200ms var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(0) scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); }
}

.btn-primary {
  background: var(--aurora-grad);
  color: var(--on-accent);
  font-weight: 700;
}
.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost {
  background: var(--ink-3);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent-line); color: var(--accent); }

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent-line); color: var(--accent); }

/* ---------- Logo mark ---------- */
.icon-logo {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
/* Aurora halo blooming behind the emblem — the page's one bold moment */
.icon-logo::before {
  content: "";
  position: absolute;
  inset: -16%;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 34%,
              rgba(71,214,255,.42) 0%,
              rgba(139,123,255,.34) 46%,
              rgba(197,139,255,.14) 66%,
              transparent 74%);
  filter: blur(26px);
  animation: auroraDrift 10s var(--ease-in-out) infinite alternate;
}
@keyframes auroraDrift {
  from { transform: translate3d(-7px, 5px, 0) scale(0.98); opacity: .78; }
  to   { transform: translate3d(7px, -5px, 0) scale(1.10); opacity: 1; }
}
.icon-logo img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- Aurora wordmark treatment ---------- */
.gradient-text {
  background: var(--aurora-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent);
  line-height: 1.25;
  padding: 0.06em 0;
}

/* ---------- Typewriter ---------- */
.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: var(--accent);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: cursorBlink .9s steps(1) infinite;
}
@keyframes cursorBlink { 0%,49%{opacity:1} 50%,100%{opacity:0} }

/* ---------- Tip group ---------- */
.tip-group { margin: 24px 0 40px; }
.tip-text {
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.6;
}
.tip-text + .tip-text { margin-top: 4px; }

/* ---------- Feature cards (grid on desktop) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.feature-card {
  display: block;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 18px;
  transition: border-color .2s, transform .15s, background .2s;
}
.feature-card:hover {
  border-color: var(--accent-line);
  background: var(--ink-3);
  transform: translateY(-2px);
}
.feature-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.feature-title .glyph {
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}
.feature-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
}

/* ---------- Generic info card ---------- */
.info-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  margin-bottom: 14px;
  transition: border-color .2s;
}
.info-card:hover { border-color: var(--accent-line); }
.info-card h3 { color: var(--text); }
.info-card p { color: var(--text-dim); font-size: 15px; line-height: 1.7; }

/* ---------- Value list ---------- */
.value-list { list-style: none; display: grid; gap: 10px; }
.value-list li {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 18px;
  transition: border-color .2s;
}
.value-list li:hover { border-color: var(--accent-line); }
.value-list strong {
  display: block;
  color: var(--accent);
  font-size: 15px;
  margin-bottom: 3px;
}
.value-list span { color: var(--text-dim); font-size: 14px; line-height: 1.5; }

/* ---------- Version grid ---------- */
.version-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 600px) { .version-grid { grid-template-columns: 1fr 1fr; } }

.version-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 18px;
  transition: border-color .2s;
}
.version-card:hover { border-color: var(--accent-line); }
.version-card h3 { color: var(--accent); }
.version-card .size { font-size: 13px; color: var(--warn); margin-bottom: 8px; }
.version-card p { font-size: 14px; line-height: 1.6; color: var(--text-dim); }

/* ---------- Contact buttons ---------- */
.contact-links { display: flex; flex-direction: column; gap: 10px; }
.contact-btn {
  display: block;
  text-align: center;
  background: var(--ink-3);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 500;
  transition: border-color .2s, color .2s, transform .15s;
}
.contact-btn:hover { border-color: var(--accent-line); color: var(--accent); transform: translateY(-1px); }
.contact-btn.primary {
  background: var(--aurora-grad);
  color: var(--on-accent);
  font-weight: 700;
  border-color: transparent;
}
.contact-btn.primary:hover { filter: brightness(1.08); color: var(--on-accent); }

/* ---------- Email block ---------- */
.email-block {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 4px 18px;
  margin-top: 14px;
}
.email-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
}
.email-row + .email-row { border-top: 1px solid var(--line-soft); }
.email-label {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  min-width: 72px;
  flex-shrink: 0;
}
.email-address { color: var(--text); font-size: 15px; word-break: break-all; }
.email-address:hover { color: var(--accent); }

/* ---------- Screenshot frame ---------- */
.screenshot-frame {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 12px;
  margin-bottom: 16px;
  transition: border-color .2s;
}
.screenshot-frame:hover { border-color: var(--accent-line); }
.screenshot-frame img {
  width: 100%;
  height: auto;
  border-radius: var(--r-sm);
  display: block;
  cursor: zoom-in;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(5,5,8,.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 95vw; max-height: 95vh; border-radius: var(--r-md); }
.lightbox-close {
  position: absolute; top: 16px; right: 22px;
  color: #fff; font-size: 28px;
  cursor: pointer; user-select: none; line-height: 1; opacity: .7;
}
.lightbox-close:hover { opacity: 1; }

/* ---------- FAQ ---------- */
details {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color .2s;
}
details[open] { border-color: var(--accent-line); }
summary {
  padding: 15px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
summary::-webkit-details-marker { display: none; }
summary::before {
  content: "+";
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
  transition: transform .2s;
  width: 16px;
  display: inline-block;
  text-align: center;
}
details[open] summary::before { content: "−"; }

.answer {
  padding: 0 18px 18px 44px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-dim);
}
.answer p + p { margin-top: 10px; }
.answer h3 {
  color: var(--text);
  margin: 14px 0 6px;
  font-size: 15px;
}
.answer code {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: var(--font-mono);
}
.answer a {
  color: var(--accent);
  border-bottom: 1px dashed var(--accent-line);
}
.answer a:hover { opacity: .85; }

.link-card {
  display: block;
  margin: 10px 0 16px;
  padding: 12px 16px;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .2s;
}
.link-card:hover { border-color: var(--accent-line); }
.link-card code {
  display: block;
  background: transparent;
  color: var(--accent);
  font-size: 14px;
  padding: 0;
  word-break: break-all;
}

/* ---------- Timeline (record) ---------- */
.timeline {
  position: relative;
  padding-left: 28px;
  border-left: 2px solid var(--line);
}
.release-node { position: relative; margin-bottom: 28px; }
.release-node::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 10px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(71,214,255,.16), 0 0 14px rgba(71,214,255,.45);
}

.release-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  transition: border-color .2s, transform .15s;
}
.release-card:hover { border-color: var(--accent-line); transform: translateY(-1px); }

.release-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.release-version {
  font-size: 19px;
  font-weight: 800;
  color: var(--accent);
}
.release-tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid;
  margin-left: 8px;
  vertical-align: middle;
  font-weight: 600;
}
.release-tag.latest { color: var(--warn); border-color: rgba(232,179,65,.5); background: rgba(232,179,65,.1); }
.release-tag.beta   { color: var(--info); border-color: rgba(107,168,232,.5); background: rgba(107,168,232,.1); }
.release-date { font-size: 13px; color: var(--text-mute); }

.release-section { margin-top: 12px; }
.release-section-desc {
  font-size: 14px;
  color: var(--text);
  margin: 4px 0 8px 4px;
}
.release-section-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.release-section-title.add::before     { content: "新增"; color: var(--ok);   background: rgba(124,195,107,.12); padding: 2px 8px; border-radius: 6px; font-size: 11px; }
.release-section-title.improve::before { content: "优化"; color: var(--info); background: rgba(107,168,232,.12); padding: 2px 8px; border-radius: 6px; font-size: 11px; }
.release-section-title.fix::before     { content: "修复"; color: var(--bad);  background: rgba(232,116,107,.12); padding: 2px 8px; border-radius: 6px; font-size: 11px; }
.release-section-title.note::before    { content: "说明"; color: var(--text-mute); background: rgba(110,120,158,.15); padding: 2px 8px; border-radius: 6px; font-size: 11px; }
.release-section-title.remove::before  { content: "移除"; color: var(--text-mute); background: rgba(107,103,96,.15); padding: 2px 8px; border-radius: 6px; font-size: 11px; }

.release-list { list-style: none; padding-left: 4px; }
.release-list li {
  position: relative;
  padding-left: 14px;
  line-height: 1.75;
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 3px;
}
.release-list li::before {
  content: "›";
  position: absolute;
  left: 0; top: 0;
  color: var(--accent);
  font-weight: 700;
}
.release-link-card {
  padding: 10px 14px;
  background: var(--accent-soft);
  border: 1px dashed var(--accent-line);
  border-radius: var(--r-sm);
  margin: 4px 0 0 4px;
}
.release-link-card a {
  color: var(--accent);
  font-size: 13px;
  word-break: break-all;
}

/* ---------- Card key (gongyi) ---------- */
.notice-card {
  background: rgba(232,179,65,.08);
  border: 1px solid rgba(232,179,65,.4);
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin-bottom: 28px;
}
.notice-title {
  color: var(--warn);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}
.notice-card p { color: #d4b896; font-size: 13px; line-height: 1.75; }
.notice-card a { color: var(--accent); text-decoration: underline; }

.section-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 16px;
}

.card-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }

.card-key {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  transition: border-color .2s;
}
.card-key:hover { border-color: var(--accent-line); }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.card-name { font-size: 16px; font-weight: 700; color: var(--text); }
.card-tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid;
  font-weight: 600;
}
.card-tag.free  { color: var(--ok);   border-color: rgba(124,195,107,.5); background: rgba(124,195,107,.1); }
.card-tag.limit { color: var(--warn); border-color: rgba(232,179,65,.5); background: rgba(232,179,65,.1); }
.card-tag.daily { color: var(--info); border-color: rgba(107,168,232,.5); background: rgba(107,168,232,.1); }

.key-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  margin-bottom: 10px;
}
.key-text {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: .5px;
  word-break: break-all;
  user-select: all;
}
.copy-btn {
  flex-shrink: 0;
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  padding: 7px 16px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 160ms var(--ease-out), transform 160ms var(--ease-out);
  white-space: nowrap;
}
.copy-btn:hover { filter: brightness(1.1); }
.copy-btn:active { transform: scale(0.97); }
.copy-btn.copied { background: var(--ok); color: #07180f; }

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--text-mute);
}
.card-meta strong { color: var(--text-dim); font-weight: 600; }

/* guide cards */
.guide-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 14px;
}
.guide-card h3 { color: var(--accent); margin-bottom: 8px; }
.guide-card p { font-size: 14px; line-height: 1.7; color: var(--text-dim); }
.guide-links { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.guide-link-btn {
  display: block;
  text-align: center;
  background: var(--ink-3);
  border: 1px solid var(--line);
  color: var(--accent);
  padding: 11px 18px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  transition: border-color .2s, background .2s;
}
.guide-link-btn:hover { border-color: var(--accent-line); background: var(--accent-soft); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink-3);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  padding: 10px 22px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: .3s;
  z-index: 9999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Footer ---------- */
footer {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--text-mute);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
footer a { color: var(--text-mute); text-decoration: none; transition: color .2s; }
footer a:hover { color: var(--accent); }
footer .ver { font-size: 12px; color: var(--text-mute); }

/* ---------- 404 ---------- */
.error-wrap {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  padding: 80px 24px;
}
.error-code {
  font-size: 96px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.04em;
}

/* ---------- Stagger delays ---------- */
.stagger-1 { animation-delay: .08s; }
.stagger-2 { animation-delay: .16s; }
.stagger-3 { animation-delay: .24s; }
.stagger-4 { animation-delay: .32s; }
.stagger-5 { animation-delay: .40s; }
.stagger-6 { animation-delay: .48s; }
.stagger-7 { animation-delay: .56s; }
.stagger-8 { animation-delay: .64s; }
.stagger-9 { animation-delay: .72s; }
.stagger-10 { animation-delay: .80s; }
.stagger-11 { animation-delay: .88s; }
.stagger-12 { animation-delay: .96s; }
.stagger-13 { animation-delay: 1.04s; }
.stagger-14 { animation-delay: 1.12s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ============================================================
   Light theme — "polar dawn": cool snow-white with the same
   aurora ribbon deepened for contrast on light ground.
   Activated via [data-theme="light"] on <html>
   ============================================================ */
[data-theme="light"] {
  --ink:        #eef2fb;
  --ink-2:      #ffffff;
  --ink-3:      #e3e9f7;
  --ink-4:      #d4dcef;
  --line:       #ccd5ea;
  --line-soft:  #e0e6f4;

  --text:       #0f1430;
  --text-dim:   #4a5478;
  --text-mute:  #7a83a3;

  --accent:      #0b74c4;
  --accent-2:    #6d4dff;
  --accent-soft: rgba(11, 116, 196, .10);
  --accent-line: rgba(11, 116, 196, .40);
  --on-accent:   #ffffff;
  --aurora-grad: linear-gradient(110deg, #0b74c4 0%, #6d4dff 58%, #a24dd8 100%);
}
[data-theme="light"] body {
  background-image:
    radial-gradient(1100px 620px at 84% -12%, rgba(109,77,255,.10), transparent 62%),
    radial-gradient(920px 540px at -10% 6%, rgba(11,116,196,.09), transparent 60%);
}
/* Notice card text — warm warning tint, darkened for light ground */
[data-theme="light"] .notice-card p { color: #8a6a2f; }
/* Tag pills: keep tint readable on white */
[data-theme="light"] .release-tag.latest { color: #8a6a14; }
[data-theme="light"] .release-tag.beta   { color: #2c5e9e; }
[data-theme="light"] .card-tag.free      { color: #1f7a55; }
[data-theme="light"] .card-tag.limit     { color: #8a6a14; }
[data-theme="light"] .card-tag.daily     { color: #2c5e9e; }
/* Release section labels — keep tinted bg, darken text */
[data-theme="light"] .release-section-title.add::before     { color: #1f7a55; background: rgba(31,122,85,.12); }
[data-theme="light"] .release-section-title.improve::before { color: #2c5e9e; background: rgba(44,94,158,.12); }
[data-theme="light"] .release-section-title.fix::before     { color: #a83a2e; background: rgba(168,58,46,.12); }
[data-theme="light"] .release-section-title.note::before    { color: #5a6172; background: rgba(90,97,114,.12); }
/* Key text in gongyi — tint the inset well, not the page */
[data-theme="light"] .key-row { background: #f4f7fd; }
/* Soft guide buttons */
[data-theme="light"] .guide-link-btn:hover { background: rgba(11,116,196,.08); }
/* Primary CTAs use the deep ribbon with white text on light ground */
[data-theme="light"] .btn-primary,
[data-theme="light"] .contact-btn.primary,
[data-theme="light"] .copy-btn { color: var(--on-accent); }
[data-theme="light"] .release-node::before { box-shadow: 0 0 0 4px rgba(11,116,196,.14), 0 0 14px rgba(11,116,196,.30); }

/* ---------- Theme toggle button ---------- */
.theme-toggle {
  position: fixed;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  cursor: pointer;
  z-index: 9990;
  padding: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  transition: transform .15s cubic-bezier(0.23, 1, 0.32, 1),
              border-color .2s, background .2s, color .2s, box-shadow .2s;
}
.theme-toggle:hover {
  border-color: var(--accent-line);
  background: var(--ink-3);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.theme-toggle:active { transform: scale(0.92); }
.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.theme-toggle svg { display: block; }
/* Touch devices: drop hover affordance */
@media (hover: none) {
  .theme-toggle:hover { background: var(--ink-2); box-shadow: 0 2px 10px rgba(0,0,0,.08); }
}
/* Push the button below the toast when toast is visible — toast is z 9999 */
@media (prefers-reduced-motion: reduce) {
  .theme-toggle { transition: none; }
}
