:root {
  --blue: #0066b3;
  --blue-dark: #004c87;
  --blue-soft: #eaf5fd;
  --ink: #102a43;
  --muted: #627d98;
  --line: #d9e2ec;
  --surface: #fff;
  --bg: #f4f8fb;
  --danger: #c73535;
  --warning: #b76e00;
  --success: #0b8f55;
  --release-accent: #1769aa;
  --release-accent-dark: #0f548d;
  --release-accent-soft: #dceafa;
  --radius: 15px;
  --shadow: 0 12px 35px rgba(16, 42, 67, 0.08);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  color-scheme: light;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    15px/1.65 Inter,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
}
a {
  color: var(--blue);
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
code {
  font-family: "SFMono-Regular", Consolas, monospace;
}
.site-header,
.admin-header {
  height: 68px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(145deg, #1684d1, var(--blue-dark));
  color: #fff;
  font-size: 13px;
  box-shadow: 0 5px 14px rgba(0, 102, 179, 0.22);
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-header nav a {
  color: var(--muted);
  font-weight: 600;
}
.site-header nav a:hover,
.site-header nav a.active {
  color: var(--blue);
}
.page-shell {
  max-width: 1280px;
  margin: auto;
  padding: 68px 24px 80px;
}
.page-shell--narrow {
  max-width: 1050px;
}
.page-shell--article {
  max-width: 940px;
}
.hero {
  max-width: 760px;
  margin: 0 auto 68px;
  text-align: center;
}
.eyebrow {
  display: block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  margin-bottom: 8px;
}
.hero h1,
.release-heading h1,
.section-heading h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0 0 12px;
}
.hero p,
.release-heading p,
.section-heading p {
  font-size: 17px;
  color: var(--muted);
  margin: 0;
}
.hero h1 {
  margin-bottom: 18px;
}
.hero p {
  max-width: 620px;
  margin: 0 auto;
  color: #64748b;
  line-height: 1.75;
}
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
}
.platform-card,
.detail-card,
.data-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.platform-card {
  --card-top-bg: #dceafa;
  --card-top-fg: #102a43;
  --card-action: #1769aa;
  --card-action-hover: #0f548d;
  --card-neutral: #fff;
  --card-neutral-hover: #f1f4f7;
  --card-neutral-fg: #334e68;
  --card-neutral-line: #c9d4de;
  --card-history: #1769aa;
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-height: 430px;
  background: #fff;
  border-color: #cbdde9;
  box-shadow:
    0 20px 46px rgba(16, 42, 67, 0.13),
    0 4px 12px rgba(16, 42, 67, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transform: translateY(0);
  transition:
    transform 0.28s cubic-bezier(0.2, 0.75, 0.25, 1),
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}
.platform-card:focus-within {
  border-color: rgba(0, 102, 179, 0.7);
  box-shadow:
    0 28px 52px rgba(16, 42, 67, 0.2),
    0 8px 18px rgba(16, 42, 67, 0.1),
    0 0 0 3px rgba(0, 102, 179, 0.1);
  transform: translateY(-8px);
}
@media (hover: hover) {
  .platform-card:hover {
    border-color: rgba(0, 102, 179, 0.7);
    box-shadow:
      0 28px 52px rgba(16, 42, 67, 0.2),
      0 8px 18px rgba(16, 42, 67, 0.1),
      0 0 0 3px rgba(0, 102, 179, 0.1);
    transform: translateY(-8px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .platform-card {
    transition: none;
  }
  .platform-card:hover,
  .platform-card:focus-within {
    transform: none;
  }
}
.platform-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: 107px;
  background: var(--card-top-bg);
  pointer-events: none;
}
.platform-card > * {
  position: relative;
  z-index: 1;
}
.platform-card .platform-card__top {
  color: var(--card-top-fg);
}
.platform-card .platform-icon {
  color: inherit;
}
.platform-card .current-version {
  background: transparent;
  color: var(--ink);
}
.platform-card .current-version__badge {
  background: #e3f3fc;
  color: #0572b7;
}
.platform-card__top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 25px;
}
.platform-card__top h2 {
  margin: 0;
  font-size: 24px;
}
.platform-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  background: transparent;
  color: #111;
}
.platform-icon svg {
  display: block;
  width: 40px;
  height: 40px;
}
.platform-icon--ios svg {
  width: 32px;
  height: 42px;
}
.current-version {
  background: var(--bg);
  border-radius: 12px;
  padding: 17px 82px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  text-align: center;
}
.current-version__content {
  position: relative;
  min-width: 0;
  max-width: 100%;
}
.current-version__number {
  display: block;
  font-size: clamp(34px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
.current-version__badge {
  position: absolute;
  left: calc(100% + 7px);
  bottom: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 20px;
  padding: 0 9px;
  background: #dff3ff;
  color: #0572b7;
  clip-path: polygon(
    6px 0,
    100% 0,
    calc(100% - 6px) 50%,
    100% 100%,
    0 100%,
    6px 50%,
    0 0
  );
  font-size: 9px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.035em;
  white-space: nowrap;
}
.meta-list span {
  color: var(--muted);
}
.meta-list {
  margin-bottom: 18px;
}
.meta-list--web {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.meta-list > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 7px 2px;
}
.meta-list b {
  font-weight: 650;
}
.meta-list > .web-usage-guide {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  margin-top: 8px;
  padding: 16px 18px;
  border: 0;
  border-radius: 10px;
  background: #edf7ff;
  color: #334e68;
}
.web-usage-guide strong {
  color: #174b6d;
  font-size: 14px;
}
.web-usage-guide p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}
.hash-row code {
  max-width: 62%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #334e68;
  font-size: 12px;
}
.button {
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  transition: 0.18s ease;
}
.button:hover {
  transform: translateY(-1px);
}
.button--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 5px 14px rgba(0, 102, 179, 0.18);
}
.button--primary:hover {
  background: var(--blue-dark);
}
.button--secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.button--success {
  background: var(--success);
  color: #fff;
  box-shadow: 0 5px 14px rgba(11, 143, 85, 0.2);
}
.button--success:hover {
  background: #087244;
}
.button--danger {
  background: #fff1f1;
  color: var(--danger);
  border: 1px solid #ffd3d3;
}
.button--small {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
}
.button--wide {
  width: 100%;
}
.card-download-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.card-download-actions--split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.platform-card .card-download-actions .button--primary,
.platform-card
  .card-download-actions:not(.card-download-actions--split)
  .button--success {
  background: var(--card-action);
  color: #fff;
  border: 0;
  box-shadow: 0 5px 14px rgba(23, 105, 170, 0.2);
}
.platform-card .card-download-actions .button--primary:hover,
.platform-card
  .card-download-actions:not(.card-download-actions--split)
  .button--success:hover {
  background: var(--card-action-hover);
}
.platform-card
  .card-download-actions--split
  .button--success {
  background: var(--card-neutral);
  color: var(--card-neutral-fg);
  border: 1px solid var(--card-neutral-line);
  box-shadow: none;
}
.platform-card
  .card-download-actions--split
  .button--success:hover {
  background: var(--card-neutral-hover);
}
.card-download-button {
  width: 100%;
  min-width: 0;
  white-space: nowrap;
}
.card-qr-control {
  position: relative;
  min-width: 0;
}
.card-qr-popover {
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: calc(100% + 10px);
  width: 152px;
  padding: 10px;
  border: 1px solid #bad8c8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(16, 42, 67, 0.2);
  transform: translateX(-50%);
}
.card-qr-popover[hidden] {
  display: none;
}
.card-qr-popover::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-right: 1px solid #bad8c8;
  border-bottom: 1px solid #bad8c8;
  background: #fff;
  transform: translate(-50%, -5px) rotate(45deg);
}
.card-qr-popover img {
  display: block;
  width: 130px;
  height: 130px;
}
.release-link {
  margin-top: auto;
  padding-top: 20px;
  color: var(--card-history);
  font-weight: 750;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}
.no-download {
  background: var(--blue-soft);
  color: #486581;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 3px 0 18px;
}
.qr-box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.qr-box img {
  width: 94px;
  height: 94px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.qr-box p {
  color: var(--muted);
}
.empty-state {
  display: grid;
  place-items: center;
  text-align: center;
  flex: 1;
  padding: 30px;
}
.empty-state strong {
  font-size: 18px;
}
.empty-state p {
  color: var(--muted);
}
footer {
  padding: 30px 24px;
  text-align: center;
  color: var(--muted);
}
.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--muted);
  font-weight: 650;
}
.back-link:hover {
  color: var(--blue);
}
.release-heading {
  margin-bottom: 28px;
}
.release-list-shell {
  max-width: 1180px;
}
.release-heading--overview {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.release-heading--overview > div:first-child {
  min-width: 0;
}
.release-total-stat {
  min-width: 150px;
  padding: 10px 16px;
  border-left: 3px solid var(--release-accent);
  color: var(--muted);
}
.release-total-stat strong {
  display: block;
  color: var(--ink);
  font-size: 25px;
  line-height: 1.15;
}
.release-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.release-list-toolbar .tabs {
  margin: 0;
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
}
.release-list-toolbar .tab {
  padding: 7px 17px;
  background: transparent;
  color: var(--muted);
}
.release-list-toolbar .tab.active {
  background: #fff;
  color: var(--release-accent);
  box-shadow: 0 3px 10px rgba(16, 42, 67, 0.08);
}
.release-heading h1 {
  font-size: 38px;
}
.tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 24px;
}
.tab {
  padding: 9px 22px;
  border-radius: 9px;
  background: #e7edf3;
  color: #334e68;
  font-weight: 750;
}
.tab.active {
  background: var(--blue);
  color: #fff;
}
.notice {
  border-radius: 11px;
  padding: 13px 16px;
  margin: 0 0 20px;
  display: flex;
  gap: 8px 14px;
  flex-wrap: wrap;
}
.notice--warning {
  background: #fff6df;
  border: 1px solid #f4d58d;
  color: #7a4d00;
}
.release-table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(16, 42, 67, 0.09);
}
table {
  border-collapse: collapse;
  width: 100%;
}
.release-table th,
.release-table td {
  padding: 15px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.release-table th {
  background: #f3f4f6;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #334e68;
}
.release-table tbody tr:last-child td {
  border-bottom: 0;
}
.release-table tbody tr:nth-child(odd) {
  background: #fff;
}
.release-table tbody tr:nth-child(even) {
  background: #dbdee3;
}
.status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.status-current,
.status-supported {
  background: #e0f7ec;
  color: #087443;
}
.status-security {
  background: #e9f0ff;
  color: #255eb7;
}
.status-superseded {
  background: #fff2ce;
  color: #8d5900;
}
.status-eol {
  background: #eceff2;
  color: #52606d;
}
.table-download {
  display: block;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.release-table small {
  color: var(--muted);
}
.file-size-cell,
.release-notes-cell {
  white-space: nowrap;
}
.release-actions-cell {
  min-width: 176px;
}
.release-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.release-action {
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid #cbd5df;
  border-radius: 7px;
  background: #f6f8fa;
  color: #52606d;
  box-shadow: none;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.release-action:hover {
  border-color: #b8c4cf;
  background: #e9eef2;
  color: #334e68;
  transform: none;
}
.release-qr-control {
  position: relative;
}
.release-qr-popover {
  position: fixed;
  z-index: 100;
  top: 0;
  bottom: auto;
  left: 0;
  width: 142px;
  border-color: #cbd5df;
  box-shadow: 0 12px 28px rgba(16, 42, 67, 0.16);
  transform: translate(-50%, -100%);
}
.release-qr-popover[data-placement="below"] {
  transform: translateX(-50%);
}
.release-qr-popover::after {
  display: none;
}
.release-qr-popover img {
  width: 120px;
  height: 120px;
}
.hash-cell {
  display: block;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.release-notes-link {
  color: var(--release-accent);
  white-space: nowrap;
  font-weight: 650;
}
.release-notes-link:hover {
  color: var(--release-accent-dark);
}
.muted {
  color: var(--muted);
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}
.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}
.admin-pagination .button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}
.large-empty {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 70px 25px;
  text-align: center;
}
.large-empty h1,
.large-empty h2 {
  margin: 5px 0;
}
.large-empty p {
  color: var(--muted);
  margin: 0 0 22px;
}
.detail-card {
  padding: clamp(22px, 5vw, 46px);
}
.detail-header {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}
.detail-header h1 {
  font-size: 38px;
  line-height: 1.2;
  margin: 13px 0 5px;
}
.detail-header p {
  margin: 0;
  color: var(--muted);
}
.detail-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex: 0 0 auto;
}
.detail-qr {
  width: 120px;
  height: 120px;
}
.package-meta {
  background: var(--bg);
  border-radius: 12px;
  padding: 10px 18px;
  margin: 25px 0;
}
.package-meta > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.package-meta > div:last-child {
  border-bottom: 0;
}
.package-meta dt {
  color: var(--muted);
}
.package-meta dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.release-notes {
  margin-top: 34px;
}
.release-notes h2 {
  font-size: 24px;
}
.markdown-body {
  font-size: 16px;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  line-height: 1.3;
  margin-top: 1.7em;
}
.markdown-body pre {
  background: #17212b;
  color: #e5edf3;
  padding: 16px;
  border-radius: 10px;
  overflow: auto;
}
.markdown-body code {
  background: #edf2f7;
  border-radius: 4px;
  padding: 2px 5px;
}
.markdown-body pre code {
  background: transparent;
  padding: 0;
}
.markdown-body img {
  max-width: 100%;
}
.markdown-body blockquote {
  margin-left: 0;
  border-left: 4px solid var(--blue);
  padding-left: 16px;
  color: var(--muted);
}
.page-shell--release-detail {
  max-width: 1120px;
}
.release-detail-hero {
  padding: clamp(28px, 5vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(16, 42, 67, 0.09);
}
.release-detail-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}
.release-platform-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--release-accent-soft);
  color: var(--release-accent);
  font-size: 11px;
  font-weight: 800;
}
.release-detail-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.release-detail-hero p {
  margin: 0;
  color: var(--muted);
}
.release-detail-actions {
  width: min(290px, 100%);
  display: grid;
  gap: 9px;
  flex: 0 0 auto;
}
.release-detail-actions .button {
  width: 100%;
  min-height: 50px;
  padding: 12px 20px;
  font-size: 15px;
}
.release-detail-actions .button--primary {
  background: var(--release-accent);
  box-shadow: 0 7px 16px rgba(23, 105, 170, 0.2);
}
.release-detail-actions .button--primary:hover {
  background: var(--release-accent-dark);
}
.release-detail-page > .notice {
  margin: 18px 0 0;
}
.release-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
  margin-top: 26px;
  align-items: start;
}
.release-detail-layout > .release-detail-notes:only-child {
  grid-column: 1 / -1;
}
.release-detail-notes {
  min-width: 0;
  padding: clamp(27px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(16, 42, 67, 0.09);
}
.release-detail-notes-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.release-detail-notes-heading h2 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -0.02em;
}
.release-detail-notes-heading > span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.release-detail-notes .markdown-body {
  margin-top: 24px;
}
.release-detail-notes .markdown-body > :first-child {
  margin-top: 0;
}
.release-detail-notes .markdown-body p,
.release-detail-notes .markdown-body li {
  color: #40566a;
}
.release-detail-notes .markdown-body li {
  margin: 6px 0;
}
.release-detail-notes .markdown-body blockquote {
  margin: 24px 0;
  padding: 14px 17px;
  border-left-color: var(--release-accent);
  border-radius: 0 9px 9px 0;
  background: #edf5fb;
}
.release-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 92px;
}
.release-side-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(16, 42, 67, 0.09);
}
.release-side-card h2 {
  margin: 0 0 15px;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.release-package-meta {
  margin: 0;
}
.release-package-meta > div {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.release-package-meta > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.release-package-meta dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
}
.release-package-meta dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 650;
}
.release-package-meta code {
  color: var(--muted);
  font-size: 11px;
}
.release-side-qr {
  text-align: center;
}
.release-detail-qr {
  display: block;
  width: min(210px, 100%);
  height: auto;
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.release-side-qr .button {
  margin-top: 10px;
}
@media (max-width: 820px) {
  .release-heading--overview,
  .release-detail-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .release-total-stat {
    display: none;
  }
  .release-detail-actions {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .release-detail-layout {
    grid-template-columns: 1fr;
  }
  .release-detail-sidebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: static;
  }
}
@media (max-width: 520px) {
  .release-heading--overview {
    margin-bottom: 22px;
  }
  .release-list-toolbar .tabs {
    width: 100%;
  }
  .release-list-toolbar .tab {
    flex: 1;
    text-align: center;
  }
  .release-detail-hero {
    padding: 24px 20px;
    border-radius: 14px;
  }
  .release-detail-actions,
  .release-detail-sidebar {
    grid-template-columns: 1fr;
  }
  .release-detail-notes,
  .release-side-card {
    border-radius: 14px;
  }
  .release-detail-notes-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}
.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 10%, #dceffc, transparent 32%), var(--bg);
}
.auth-card {
  width: min(440px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 38px;
  box-shadow: 0 25px 70px rgba(16, 42, 67, 0.13);
}
.brand--center {
  justify-content: center;
  width: 100%;
  margin-bottom: 32px;
}
.auth-copy {
  text-align: center;
  margin-bottom: 25px;
}
.auth-copy h1 {
  margin: 4px 0 6px;
  font-size: 28px;
}
.auth-copy p {
  margin: 0;
  color: var(--muted);
}
.form-stack,
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
label,
.full-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 650;
  color: #334e68;
}
label small {
  font-weight: 400;
  color: var(--muted);
}
.release-notes-editor__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.release-notes-editor__heading label {
  display: block;
  margin: 0;
}
.release-notes-editor > small {
  color: var(--muted);
  font-weight: 400;
}
.release-notes-preview {
  min-height: 190px;
  max-height: 420px;
  overflow: auto;
  padding: 20px 22px;
  border: 1px solid #bcccdc;
  border-radius: 10px;
  background: #f8fafc;
  color: var(--ink);
  font-weight: 400;
}
.release-notes-preview > :first-child {
  margin-top: 0;
}
.release-notes-preview > :last-child {
  margin-bottom: 0;
}
.release-notes-preview:empty::before {
  content: "输入 Markdown 后可在这里查看预览。";
  color: var(--muted);
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #bcccdc;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 179, 0.11);
}
textarea {
  resize: vertical;
}
.form-error {
  min-height: 22px;
  margin: 0;
  color: var(--danger);
  font-weight: 600;
}
.auth-back {
  display: block;
  text-align: center;
  margin-top: 22px;
  color: var(--muted);
}
.admin-body {
  background: #f3f6f9;
}
.admin-header {
  padding: 0 25px;
  position: fixed;
  left: 0;
  right: 0;
}
.admin-account {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--muted);
  font-size: 13px;
}
.role-pill {
  background: var(--blue-soft);
  color: var(--blue);
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.link-button {
  background: transparent;
  border: 0;
  color: var(--blue);
  padding: 4px;
}
.admin-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
  padding-top: 68px;
}
.admin-sidebar {
  position: fixed;
  top: 68px;
  bottom: 0;
  left: 0;
  width: 220px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 20px 13px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav-item {
  width: 100%;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #486581;
  padding: 11px 13px;
  text-align: left;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 11px;
}
.nav-item:hover,
.nav-item.active {
  background: var(--blue-soft);
  color: var(--blue);
}
.nav-item--link {
  margin-top: auto;
}
.admin-content {
  grid-column: 2;
  padding: 42px clamp(20px, 4vw, 54px) 80px;
  max-width: 1500px;
  width: 100%;
}
.admin-view {
  display: none;
}
.admin-view.active {
  display: block;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
.section-heading h1 {
  font-size: 34px;
  margin-bottom: 7px;
}
.section-heading p {
  font-size: 15px;
}
.admin-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.settings-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 23px;
}
.settings-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.settings-card h2 {
  margin: 0;
  font-size: 21px;
}
.settings-card .form-grid {
  margin-bottom: 18px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.checkbox-label {
  flex-direction: row;
  align-items: center;
  align-self: end;
  padding-bottom: 11px;
}
.checkbox-label input {
  width: auto;
}
.filter-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr)) minmax(160px, 1.3fr) auto;
  gap: 10px;
  margin-bottom: 16px;
}
.data-card {
  overflow: hidden;
}
.table-scroll {
  overflow: auto;
}
.admin-table th,
.admin-table td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.admin-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  background: #f8fafc;
}
.admin-table tbody tr:last-child td {
  border-bottom: 0;
}
.admin-table tbody tr:hover {
  background: #fbfdff;
}
.table-actions {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
  white-space: nowrap;
}
.lifecycle {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
}
.lifecycle--published {
  color: #087443;
  background: #e0f7ec;
}
.lifecycle--draft {
  color: #8d5900;
  background: #fff2ce;
}
.lifecycle--unpublished {
  color: #52606d;
  background: #eceff2;
}
.uuid {
  font-family: Consolas, monospace;
  font-size: 11px;
  color: var(--muted);
}
.loading {
  text-align: center;
  color: var(--muted);
  padding: 42px;
  grid-column: 1/-1;
}
.modal {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 0;
  border-radius: 17px;
  box-shadow: 0 28px 80px rgba(16, 42, 67, 0.3);
  overflow: auto;
}
.modal--wide {
  width: min(850px, calc(100% - 32px));
}
.modal::backdrop {
  background: rgba(16, 42, 67, 0.5);
  backdrop-filter: blur(2px);
}
.modal-form {
  padding: 26px;
}
.modal-form > header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 17px;
}
.modal-form h2 {
  margin: 0;
  font-size: 25px;
}
.icon-button {
  border: 0;
  background: #edf2f7;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 22px;
  color: #486581;
}
.modal-form > footer {
  padding: 18px 0 0;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  text-align: initial;
}
.package-editor {
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px;
}
.package-editor h3 {
  margin: 0;
}
.package-editor p {
  margin: 3px 0 12px;
}
.external-inspection-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}
.external-inspection-row label {
  min-width: 0;
}
.external-inspection-status {
  margin: 8px 0 12px;
}
input[readonly] {
  background: #f4f7f9;
  color: #486581;
}
.package-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 13px;
}
.mini-tab {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  padding: 6px 10px;
}
.mini-tab.active {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-soft);
}
.secret-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f3f7fa;
  padding: 13px;
  border-radius: 10px;
}
.secret-box code {
  flex: 1;
  overflow-wrap: anywhere;
}
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(460px, calc(100vw - 40px));
  box-sizing: border-box;
  background: #12344d;
  color: #fff;
  border-radius: 12px;
  padding: 16px 22px;
  box-shadow: 0 18px 48px rgba(18, 52, 77, 0.28);
  text-align: center;
  line-height: 1.6;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 12px)) scale(0.98);
  pointer-events: none;
  transition: 0.2s;
  z-index: 2000;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.toast.error {
  background: var(--danger);
}
@media (max-width: 820px) {
  .platform-grid,
  .admin-card-grid {
    grid-template-columns: 1fr;
  }
  .platform-grid {
    gap: 24px;
  }
  .site-header nav a:last-child {
    display: none;
  }
  .release-table thead {
    display: none;
  }
  .release-table,
  .release-table tbody,
  .release-table tr,
  .release-table td {
    display: block;
  }
  .release-table tr {
    padding: 13px;
    border-bottom: 1px solid var(--line);
  }
  .release-table td {
    border: 0;
    padding: 5px;
  }
  .release-table td:last-child {
    padding-top: 12px;
  }
  .hash-cell {
    max-width: 100%;
  }
  .admin-layout {
    display: block;
  }
  .admin-sidebar {
    position: fixed;
    z-index: 19;
    top: auto;
    bottom: 0;
    right: 0;
    width: auto;
    height: 64px;
    border: 0;
    border-top: 1px solid var(--line);
    padding: 6px;
    flex-direction: row;
  }
  .nav-item {
    justify-content: center;
    font-size: 12px;
    padding: 8px;
  }
  .nav-item--link {
    display: none;
  }
  .admin-content {
    padding: 32px 17px 90px;
  }
  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .section-heading {
    align-items: flex-start;
  }
  .admin-header {
    padding: 0 14px;
  }
  .admin-account > span,
  .admin-account > a {
    display: none;
  }
  .detail-header {
    flex-direction: column;
  }
  .detail-action {
    align-items: flex-start;
  }
  .platform-card {
    min-height: 390px;
  }
}
@media (max-width: 520px) {
  .site-header {
    padding: 0 16px;
  }
  .site-header nav {
    gap: 15px;
  }
  .page-shell {
    padding: 42px 16px 65px;
  }
  .platform-card {
    padding: 21px;
  }
  .platform-card::before {
    height: 100px;
  }
  .card-download-actions--split {
    gap: 8px;
  }
  .card-download-button {
    padding-inline: 9px;
    font-size: 14px;
  }
  .external-inspection-row {
    grid-template-columns: 1fr;
  }
  .auth-card {
    padding: 27px 21px;
  }
  .section-heading {
    flex-direction: column;
  }
  .filter-bar {
    grid-template-columns: 1fr;
  }
  .admin-account .role-pill {
    display: none;
  }
  .package-meta > div {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .detail-card {
    border-radius: 12px;
  }
  .modal-form {
    padding: 20px;
  }
  .admin-sidebar .nav-item span {
    display: none;
  }
}
.language-picker {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}
.language-picker label {
  display: block;
  font-weight: 650;
  white-space: nowrap;
}
.language-picker select {
  width: auto;
  min-width: 140px;
  padding: 7px 31px 7px 10px;
  background-color: #fff;
}
.release-heading h1 span {
  font: inherit;
}
.release-link > span:first-child {
  display: inline;
}
.button > span {
  pointer-events: none;
}
@media (max-width: 520px) {
  .language-picker label {
    display: none;
  }
  .language-picker select {
    min-width: 118px;
    max-width: 145px;
  }
}

/* Layered platform cards */
