/* 轻悦时光 · 更新中心
   设计方向：纸感阅读气质 —— 米白纸面、墨色文字、玉石绿点缀，衬线标题 + 无衬线正文。 */

:root {
  --paper: #f4f0e8;
  --paper-2: #efe9dd;
  --surface: #fffdf8;
  --surface-2: #faf6ee;
  --ink: #1b1a16;
  --ink-2: #3a372f;
  --muted: #746e61;
  --line: #e3dbcc;
  --line-strong: #cfc4b0;
  --jade: #2e6a58;
  --jade-deep: #1f5040;
  --jade-soft: #e6efe9;
  --clay: #b4532b;
  --clay-soft: #f7e8dd;
  --gold: #9b7a2c;
  --gold-soft: #f5edda;
  --radius: 18px;
  --radius-sm: 11px;
  --shadow-sm: 0 1px 2px rgba(27, 26, 22, 0.05);
  --shadow-lg: 0 30px 70px -32px rgba(27, 26, 22, 0.35);
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121310;
    --paper-2: #171812;
    --surface: #1b1d17;
    --surface-2: #20221b;
    --ink: #ede9de;
    --ink-2: #d4cfc2;
    --muted: #a29c8e;
    --line: #2c2f27;
    --line-strong: #3c4034;
    --jade: #7fc6ae;
    --jade-deep: #a8ddca;
    --jade-soft: #1e2d26;
    --clay: #e0926b;
    --clay-soft: #2f2219;
    --gold: #d5b46a;
    --gold-soft: #2c2618;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 30px 70px -32px rgba(0, 0, 0, 0.8);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(1100px 560px at 12% -12%, rgba(46, 106, 88, 0.09), transparent 62%),
    radial-gradient(900px 520px at 108% -4%, rgba(180, 83, 43, 0.07), transparent 58%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 12.5px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--line-strong);
}

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(160deg, var(--jade) 0%, var(--jade-deep) 100%);
  color: #f7f3e9;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--serif);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.brand--plain .brand__mark { box-shadow: none; }
.nav__links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav__links a {
  font-size: 14px;
  color: var(--muted);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-active { color: var(--ink); border-color: var(--jade); }

@media (max-width: 760px) {
  .nav__inner { padding: 10px 18px 0; gap: 8px; flex-wrap: wrap; }
  .nav__links {
    width: 100%;
    margin-left: 0;
    min-width: 0;
    gap: 6px;
    justify-content: space-between;
    overflow: visible;
    padding-bottom: 10px;
  }
  .nav__links a { font-size: 12.5px; white-space: nowrap; }
}
.hero > * { min-width: 0; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.4;
  transition: transform .16s ease, background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--jade);
  color: #fbf9f2;
  box-shadow: 0 10px 24px -14px rgba(31, 80, 64, 0.9);
}
.btn--primary:hover { background: var(--jade-deep); }
.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink-2);
}
.btn--ghost:hover { border-color: var(--jade); color: var(--ink); background: var(--surface); }
.btn--danger { background: transparent; border-color: color-mix(in srgb, var(--clay) 40%, transparent); color: var(--clay); }
.btn--danger:hover { background: var(--clay-soft); }
.btn--sm { padding: 7px 13px; font-size: 13px; border-radius: 9px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--jade);
  outline-offset: 2px;
}
.text-link { color: var(--jade); font-size: 14px; border-bottom: 1px solid color-mix(in srgb, var(--jade) 35%, transparent); }
.text-link:hover { border-color: var(--jade); }

/* ---------- 首页 ---------- */
.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 72px 24px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .85fr);
  gap: 56px;
  align-items: start;
}
.hero__copy { animation: rise .5s ease both; }
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 3.9rem);
  margin: 14px 0 18px;
  letter-spacing: -0.02em;
}
.hero h1 em { font-style: normal; color: var(--jade); }
.hero .lede { font-size: 17px; color: var(--muted); max-width: 44ch; line-height: 1.85; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__meta {
  margin-top: 26px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hero__meta strong { color: var(--ink-2); font-weight: 600; }
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.latest-panel { padding: 22px; animation: rise .5s .06s ease both; }
.panel-title { font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; align-items: baseline; }
.panel-title span { font-family: var(--sans); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.latest-list { margin-top: 12px; }
.latest-list li + li { border-top: 1px solid var(--line); }
.latest-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 2px;
  transition: padding .16s ease, color .16s ease;
}
.latest-list a:hover { padding-left: 6px; color: var(--jade); }
.latest-list .p-ico { width: 26px; height: 26px; color: var(--ink-2); flex: none; }
.latest-list .p-name { font-size: 14.5px; }
.latest-list .p-ver { margin-left: auto; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.latest-list .p-arrow { color: var(--line-strong); }
.latest-list a:hover .p-arrow { color: var(--jade); }

.announce { margin: 8px auto 0; max-width: var(--wrap); padding: 0 24px; }

.section { max-width: var(--wrap); margin: 0 auto; padding: 54px 24px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 8px; }
.section-sub { color: var(--muted); font-size: 13.5px; margin-top: 6px; max-width: 60ch; }

.platform-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.platform-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  min-height: 196px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.platform-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--jade) 45%, var(--line));
  box-shadow: 0 22px 40px -30px rgba(27, 26, 22, .55);
}
.platform-card__top { display: flex; align-items: flex-start; justify-content: space-between; }
.platform-card__icon { width: 34px; height: 34px; color: var(--jade); }
.platform-card__index { font-family: var(--mono); font-size: 11px; color: var(--line-strong); letter-spacing: .1em; }
.platform-card h3 { font-size: 19px; }
.platform-card__ver { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-top: 4px; min-height: 20px; }
.platform-card__cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--jade);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.platform-card__cta span:last-child { transition: transform .18s ease; }
.platform-card:hover .platform-card__cta span:last-child { transform: translateX(4px); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 52px; }
  .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .hero { padding: 40px 18px 28px; }
  .section { padding: 40px 18px; }
  .platform-grid { grid-template-columns: 1fr; }
  .platform-card { min-height: 0; }
  .wrap { padding: 0 18px; }
}

/* 首页最近更新 */
.recent-notes { padding: 8px 24px; }
.recent-item { padding: 18px 0; }
.recent-item + .recent-item { border-top: 1px solid var(--line); }
.recent-item__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.recent-item__version { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.recent-item__title { font-family: var(--serif); font-size: 17px; margin-top: 6px; }
.recent-item .notes { margin-top: 8px; }

.tips-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tip {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
}
.tip__num { font-family: var(--mono); font-size: 11px; color: var(--jade); letter-spacing: .12em; }
.tip h3 { font-size: 16px; margin: 10px 0 6px; }
.tip p { font-size: 13.5px; color: var(--muted); line-height: 1.75; }
@media (max-width: 860px) { .tips-grid { grid-template-columns: 1fr; } }

/* 页脚 */
.footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper-2) 70%, transparent);
}
.footer__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 30px 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.footer__links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__links a:hover { color: var(--jade); }

/* ---------- 下载页 ---------- */
.crumbs {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 26px 24px 0;
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.crumbs a:hover { color: var(--jade); }
.crumbs .sep { color: var(--line-strong); }

.platform-hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 34px 24px 30px;
  display: flex;
  align-items: flex-start;
  gap: 26px;
  border-bottom: 1px solid var(--line);
}
.platform-hero__icon {
  width: 74px;
  height: 74px;
  flex: none;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--jade);
  box-shadow: var(--shadow-sm);
}
.platform-hero__icon svg { width: 38px; height: 38px; }
.platform-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 6px 0 8px; }
.platform-hero .lede { color: var(--muted); font-size: 15px; max-width: 62ch; }
.meta-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--muted); }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.7;
}
.chip--ver { font-family: var(--mono); }
.chip svg { width: 14px; height: 14px; flex: none; color: var(--jade); }
.p-ico svg { width: 100%; height: 100%; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.8;
}
.badge--new { background: var(--jade-soft); color: var(--jade-deep); }
.badge--must { background: var(--clay-soft); color: var(--clay); }
.badge--kind { background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 10.5px; }

.download-area { max-width: var(--wrap); margin: 0 auto; padding: 44px 24px 8px; }
.download-area h2 { font-size: 21px; }
.download-area .section-sub { margin-top: 6px; }

.asset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.asset-grid--single { grid-template-columns: minmax(0, 1fr); }
.asset-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.asset-card--accent { border-color: color-mix(in srgb, var(--jade) 38%, var(--line)); background: linear-gradient(180deg, var(--jade-soft) 0%, var(--surface) 128%); }
.asset-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.asset-card h3 { font-size: 18px; }
.asset-card__kind { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.asset-card p { font-size: 13.5px; color: var(--muted); line-height: 1.75; }
.asset-card__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.asset-card__actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; padding-top: 6px; }

.callout {
  margin: 22px 0 0;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  background: var(--surface);
  font-size: 13.8px;
  color: var(--ink-2);
  line-height: 1.8;
}
.callout strong { color: var(--ink); }
.callout--warn { border-left-color: var(--clay); background: var(--clay-soft); border-color: color-mix(in srgb, var(--clay) 22%, var(--line)); }
.callout--info { border-left-color: var(--jade); background: var(--jade-soft); border-color: color-mix(in srgb, var(--jade) 20%, var(--line)); }
.callout__title { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.callout ul { margin: 6px 0 0 2px; }
.callout li { position: relative; padding-left: 16px; margin-top: 3px; }
.callout li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }

.steps { counter-reset: step; margin-top: 6px; display: grid; gap: 10px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 34px;
  font-size: 13.8px;
  color: var(--ink-2);
  line-height: 1.75;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--muted);
  background: var(--surface);
}

.code-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  overflow-x: auto;
}
.code-line code { white-space: nowrap; }
.conf-sample {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.75;
  color: var(--ink-2);
  white-space: pre-wrap;
  overflow-x: auto;
}
.copy-btn {
  margin-left: auto;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 7px;
  padding: 3px 9px;
  font-size: 11.5px;
  color: var(--muted);
  flex: none;
}
.copy-btn:hover { color: var(--jade); border-color: var(--jade); }

details.fold {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
details.fold > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--jade);
  cursor: pointer;
}
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: "＋"; margin-left: auto; font-size: 13px; color: var(--muted); }
details.fold[open] > summary::after { content: "－"; }
details.fold .fold__body { padding-top: 10px; }

/* 安卓架构选择 */
.arch-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding: 12px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 13px;
  color: var(--muted);
}
.arch-toolbar strong { color: var(--jade); font-family: var(--mono); font-size: 12.5px; }
.arch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
@media (max-width: 980px) { .arch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .arch-grid { grid-template-columns: 1fr; } }
.arch {
  text-align: left;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
  min-height: 118px;
}
.arch:hover:not([disabled]) { border-color: var(--jade); transform: translateY(-2px); }
.arch[aria-pressed="true"] {
  border-color: var(--jade);
  background: var(--jade-soft);
  box-shadow: inset 0 0 0 1px var(--jade);
}
.arch[disabled] { opacity: .48; cursor: not-allowed; }
.arch__name { font-family: var(--mono); font-size: 13.5px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.arch__tag { font-family: var(--sans); font-size: 10.5px; color: var(--muted); padding: 1px 6px; border-radius: 4px; background: var(--paper-2); }
.arch[aria-pressed="true"] .arch__tag { background: var(--surface); color: var(--jade-deep); }
.arch__desc { font-size: 12px; color: var(--muted); line-height: 1.6; }
.arch__size { margin-top: auto; font-family: var(--mono); font-size: 11.5px; color: var(--line-strong); }
.arch[aria-pressed="true"] .arch__size { color: var(--jade); }

.arch-download {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
}
.arch-download__meta { font-size: 13px; color: var(--muted); }
.arch-download__meta strong { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--ink); margin-bottom: 2px; }

/* 更新历史 */
.history-tools { display: flex; gap: 10px; align-items: center; }
.history-list { display: grid; gap: 14px; }
.history-item {
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}
.history-item__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.history-item__ver { font-family: var(--mono); font-size: 14px; color: var(--ink); }
.history-item__date { font-size: 12.5px; color: var(--muted); }
.history-item__assets { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.history-item .notes { margin-top: 12px; }
.notes { font-size: 14px; color: var(--ink-2); line-height: 1.85; overflow-wrap: anywhere; }
.notes p { margin: 0; }
.notes p + p { margin-top: 4px; }
.notes ul { margin: 4px 0; }
.notes li { position: relative; padding-left: 17px; }
.notes li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: .78em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--jade) 65%, var(--line));
}
.notes.clamped { max-height: 8.4em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 68%, transparent 100%); mask-image: linear-gradient(180deg, #000 68%, transparent 100%); }
.notes-toggle {
  margin-top: 8px;
  background: none;
  border: 0;
  padding: 0;
  color: var(--jade);
  font-size: 13px;
}
.notes-toggle:hover { text-decoration: underline; }

.load-more-wrap { display: flex; justify-content: center; padding: 30px 0 0; }

.empty {
  padding: 54px 24px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
}
.empty h3 { font-size: 18px; margin-bottom: 6px; }
.empty p { font-size: 13.5px; }

@media (max-width: 760px) {
  .asset-grid { grid-template-columns: minmax(0, 1fr); }
  .history-item { padding: 18px 18px; }
  .history-item__assets { margin-left: 0; width: 100%; }
}

/* ---------- 后台 ---------- */
.admin-body { background: var(--paper); }

.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr minmax(380px, 460px);
  align-items: stretch;
}
.login__brand {
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(700px 420px at 20% 10%, rgba(46, 106, 88, .18), transparent 60%),
    var(--paper-2);
  border-right: 1px solid var(--line);
}
.login__brand h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-top: 20px; max-width: 13em; }
.login__brand p { color: var(--muted); margin-top: 14px; max-width: 40ch; font-size: 14.5px; }
.login__card { display: flex; flex-direction: column; justify-content: center; padding: 56px 48px; background: var(--surface); }
.login__card h1 { font-size: 26px; margin: 8px 0 6px; }
.login__card form { margin-top: 26px; display: grid; gap: 16px; }
.login__card .text-link { margin-top: 22px; align-self: flex-start; }
.login__hint { margin-top: 18px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; }
  .login__brand { display: none; }
  .login__card { min-height: 100vh; padding: 40px 24px; }
}

.field { display: grid; gap: 7px; }
.field > span { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.field small { font-size: 12px; color: var(--muted); line-height: 1.6; }
.input, .textarea, .select {
  width: 100%;
  padding: 10px 13px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--jade);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--jade) 14%, transparent);
}
.textarea { min-height: 150px; resize: vertical; line-height: 1.8; font-family: var(--sans); }
.check { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--jade); }
.form-error { color: var(--clay); font-size: 13px; margin-top: 4px; }

.admin-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper-2) 80%, transparent);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand { padding: 0 8px; }
.side-nav { display: grid; gap: 4px; }
.side-link {
  text-align: left;
  border: 0;
  background: none;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background .16s ease, color .16s ease;
}
.side-link:hover { background: var(--surface); color: var(--ink); }
.side-link.is-active { background: var(--surface); color: var(--jade); box-shadow: inset 2px 0 0 var(--jade); font-weight: 500; }
.side-link svg { width: 16px; height: 16px; opacity: .8; }
.sidebar__foot { margin-top: auto; padding: 0 8px; font-size: 12.5px; color: var(--muted); }
.sidebar__foot a:hover { color: var(--jade); }
.sidebar__meta { margin-top: 8px; font-size: 11.5px; color: var(--line-strong); line-height: 1.6; word-break: break-all; }

.workspace { padding: 26px 34px 64px; min-width: 0; }
.workspace__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.workspace__top h1 { font-size: 26px; margin-top: 6px; }
.userbox { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.view { padding-top: 26px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.stat__name { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.stat__name svg { width: 16px; height: 16px; color: var(--jade); }
.stat__ver { font-family: var(--mono); font-size: 17px; margin-top: 10px; color: var(--ink); }
.stat__sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.panel { margin-top: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.panel__head h2 { font-size: 17px; }
.panel__body { padding: 20px 22px; }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--muted);
}
.tab:hover { color: var(--ink); border-color: var(--line-strong); }
.tab.is-active { background: var(--jade); border-color: var(--jade); color: #fbf9f2; }
.search { width: 180px; padding: 7px 11px; font-size: 13px; }

.rel-list { display: grid; }
.rel-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 104px auto;
  gap: 16px;
  align-items: center;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line);
}
.rel-row:last-child { border-bottom: 0; }
.rel-row:hover { background: var(--surface-2); }
.rel-row__plat { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.rel-row__plat svg { width: 14px; height: 14px; color: var(--jade); }
.rel-row__ver { font-family: var(--mono); font-size: 13.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rel-row__ver small { font-family: var(--sans); color: var(--muted); font-size: 11.5px; }
.rel-row__date { font-size: 12.5px; color: var(--muted); }
.rel-row__actions { display: flex; gap: 6px; justify-content: flex-end; }
.icon-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  flex: none;
}
.icon-btn:hover { color: var(--jade); border-color: var(--jade); }
.icon-btn--danger:hover { color: var(--clay); border-color: var(--clay); }
@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rel-row { grid-template-columns: 1fr 1fr; }
  .rel-row__actions { justify-content: flex-start; grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; gap: 12px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .sidebar .brand { padding: 0; }
  .side-nav { display: flex; gap: 4px; }
  .side-link { white-space: nowrap; }
  .side-link.is-active { box-shadow: inset 0 -2px 0 var(--jade); border-radius: 8px 8px 0 0; }
  .sidebar__foot { display: none; }
  .workspace { padding: 20px 18px 60px; }
}

/* 表单栅格 */
.row-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.row-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.row-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 700px) {
  .row-grid, .row-grid--3, .row-grid--4 { grid-template-columns: 1fr; }
}

.asset-editor { display: grid; gap: 12px; }
.asset-edit-row {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: var(--surface-2);
  display: grid;
  gap: 10px;
}
.asset-edit-row__top { display: grid; grid-template-columns: 120px 150px minmax(0, 1fr) 36px; gap: 10px; align-items: end; }
.asset-edit-row__bottom { display: grid; grid-template-columns: minmax(0, 1fr) 130px minmax(0, 1fr); gap: 10px; }
.remove-asset {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
}
.remove-asset:hover { color: var(--clay); border-color: var(--clay); }
@media (max-width: 700px) {
  .asset-edit-row__top, .asset-edit-row__bottom { grid-template-columns: 1fr; }
  .remove-asset { width: 100%; }
}

/* 弹窗 */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: color-mix(in srgb, #12110d 60%, transparent);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 4vh 18px;
  overflow-y: auto;
  animation: fade .18s ease both;
}
.modal__panel {
  width: min(880px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: rise .22s ease both;
}
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.modal__head h2 { font-size: 20px; margin-top: 4px; }
.modal__body { padding: 22px 24px; display: grid; gap: 18px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.modal__close { border: 0; background: none; font-size: 22px; color: var(--muted); line-height: 1; padding: 4px 6px; }
.modal__close:hover { color: var(--ink); }

/* 提示 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 120;
  padding: 11px 20px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13.5px;
  box-shadow: var(--shadow-lg);
  animation: rise .2s ease both;
  max-width: calc(100% - 40px);
  text-align: center;
}
.toast--error { background: var(--clay); color: #fff8f3; }

.section-head__side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.link-row { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13.5px; }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .nav, .footer, .hero__actions, .btn { display: none !important; }
}
