/* 应用仓 · ltlxs.com — 主样式 */
:root {
  --bg: #f4f6fb;
  --bg-soft: #eef2f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --border: #e3e8f2;
  --border-strong: #d3dae8;
  --text: #111827;
  --text-soft: #354052;
  --muted: #64748b;
  --brand: #ff6b2c;
  --brand-strong: #ea580c;
  --brand-soft: #fff1e8;
  --accent: #2563eb;
  --accent-soft: #eff4ff;
  --ok: #15803d;
  --warn: #b45309;
  --danger: #dc2626;
  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);
  --max: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --bg-soft: #0f1526;
    --surface: #151b2e;
    --surface-2: #1a2138;
    --surface-3: #202a44;
    --border: #26304a;
    --border-strong: #33405f;
    --text: #f1f5f9;
    --text-soft: #d5dceb;
    --muted: #94a3b8;
    --brand-soft: #2a1a12;
    --accent-soft: #16213f;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.55);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.3;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--surface-3);
  border-radius: 6px;
  padding: 0.15em 0.4em;
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.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;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 0 0 10px 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

.container--narrow {
  max-width: 820px;
}

.main {
  min-height: 50vh;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  vertical-align: -0.2em;
}

.icon--xs {
  width: 15px;
  height: 15px;
}

/* ---------- 顶栏与导航 ---------- */
.topbar {
  background: #11182b;
  color: #cbd5e1;
  font-size: 12.5px;
  letter-spacing: 0.01em;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
}

.topbar__inner p {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.topbar__inner a {
  color: #fdba74;
  flex: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  border-radius: 11px;
  box-shadow: 0 6px 16px rgba(255, 107, 44, 0.28);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__text strong {
  font-size: 19px;
  letter-spacing: 0.02em;
}

.brand__text small {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--text-soft);
  font-weight: 500;
  font-size: 15px;
}

.site-nav a:hover {
  background: var(--surface-3);
  text-decoration: none;
}

.site-nav a.is-active {
  color: var(--brand-strong);
  background: var(--brand-soft);
  font-weight: 600;
}

.search-form {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 280px;
  padding: 5px 6px 5px 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 999px;
}

.search-form--nav {
  display: none;
}

.search-form:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}

.search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 14px;
}

.search-form input::placeholder {
  color: var(--muted);
}

.search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  background: var(--brand);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  flex: none;
}

.search-form button:hover {
  background: var(--brand-strong);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.nav-toggle__close {
  display: none;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 10px 0;
  color: var(--muted);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--border-strong);
  margin: 0 2px;
}

.breadcrumb li span,
.breadcrumb a {
  display: inline-block;
  max-width: 46vw;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.breadcrumb a {
  color: var(--text-soft);
}

.breadcrumb li[aria-current] span {
  color: var(--muted);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: center;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 107, 44, 0.28);
}

.btn--primary:hover {
  background: var(--brand-strong);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text-soft);
}

.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand-strong);
}

.btn--download {
  background: linear-gradient(135deg, #ff7a3c, #f4520c);
  color: #fff;
  min-height: 50px;
  font-size: 16px;
  border-radius: 13px;
  box-shadow: 0 12px 26px rgba(244, 82, 12, 0.3);
}

.btn--download:hover {
  background: linear-gradient(135deg, #ff8a52, #e54a06);
  box-shadow: 0 14px 30px rgba(244, 82, 12, 0.38);
}

.btn--download .icon {
  width: 22px;
  height: 22px;
}

.btn--lg {
  min-height: 50px;
  font-size: 16px;
  padding: 0 22px;
}

.btn--block {
  width: 100%;
}

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #f8fafc;
  background:
    radial-gradient(900px 480px at 88% -10%, rgba(255, 122, 60, 0.42), transparent 62%),
    radial-gradient(700px 420px at 6% 110%, rgba(37, 99, 235, 0.34), transparent 60%),
    linear-gradient(155deg, #101a33 0%, #0a1020 62%, #0d1428 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
  gap: 44px;
  padding-top: 56px;
  padding-bottom: 58px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brand-strong);
  background: var(--brand-soft);
  padding: 6px 12px;
  border-radius: 999px;
}

.hero .eyebrow {
  color: #ffc59b;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero__h1-sub {
  display: inline-block;
  margin-top: 8px;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 500;
  color: #cbd5e1;
  letter-spacing: 0;
}

.hero__lead {
  margin-top: 18px;
  max-width: 620px;
  color: #c3ccdd;
  font-size: 15.5px;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero__actions .btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
  color: #e2e8f0;
}

.hero__actions .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
  max-width: 620px;
}

.hero__stats li {
  padding: 12px 14px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__stats strong {
  display: block;
  font-size: 21px;
  color: #fff;
  letter-spacing: -0.01em;
}

.hero__stats span {
  font-size: 12px;
  color: #9aa8c0;
}

.hero__search {
  margin-top: 26px;
  max-width: 620px;
}

.search-form--hero {
  width: 100%;
  margin: 0;
  padding: 7px 8px 7px 18px;
  background: #fff;
  border: 0;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.search-form--hero input {
  font-size: 15px;
  color: #0f172a;
}

.search-form--hero button {
  width: auto;
  border-radius: 999px;
  padding: 0 18px;
  height: 42px;
  font-weight: 600;
  font-size: 14px;
}

.hero__hot {
  margin-top: 12px;
  font-size: 13px;
  color: #94a3b8;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.hero__hot a {
  color: #cbd5e1;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.28);
}

.hero__hot a:hover {
  color: #fff;
  text-decoration: none;
}

.hero__aside {
  align-self: start;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 18px;
  backdrop-filter: blur(8px);
  margin-top: 46px;
}

.hero__aside-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.hero__aside-head > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #fff;
}

.hero__aside-head a {
  color: #fdba74;
  display: inline-flex;
  align-items: center;
}

.hero__list {
  display: grid;
  gap: 4px;
}

.hero__list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  border-radius: 11px;
  color: #e2e8f0;
}

.hero__list a:hover {
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.hero__list-icon {
  border-radius: 10px;
  flex: none;
}

.hero__list-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.hero__list-body strong {
  font-size: 14px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  gap: 6px;
  line-height: 1.25;
  overflow: hidden;
}

.hero__list-body small {
  font-size: 12px;
  color: #94a3b8;
}

.hero__list-arrow {
  color: #64748b;
  flex: none;
}

.hero__aside-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: #94a3b8;
}

/* ---------- 板块 ---------- */
.section {
  margin-top: 46px;
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section__head h2 {
  font-size: 22px;
}

.section__hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
}

.section__more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 13.5px;
  color: var(--muted);
  white-space: nowrap;
}

.section__more:hover {
  color: var(--brand-strong);
  text-decoration: none;
}

.section--prose {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
}

.section--prose > h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.section--prose > h3 {
  font-size: 17px;
  margin-top: 24px;
  margin-bottom: 10px;
}

.section--prose p {
  color: var(--text-soft);
  margin-bottom: 12px;
}

.section--prose p a {
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}

.section--prose p a:hover {
  text-decoration: none;
}

/* ---------- 分类卡 ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.cat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #ff8a4c, #f4520c);
  opacity: 0.85;
}

.cat-card--soft::before {
  background: linear-gradient(180deg, #60a5fa, #2563eb);
}

.cat-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cat-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  flex: none;
}

.cat-card--soft .cat-card__icon {
  background: var(--accent-soft);
  color: var(--accent);
}

.cat-card__head h3 {
  font-size: 18px;
}

.cat-card__head p {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

.cat-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.cat-card__links {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 13.5px;
}

.cat-card__links a {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--text-soft);
  font-weight: 500;
}

.cat-card__links a:hover {
  color: var(--brand-strong);
  text-decoration: none;
}

/* ---------- 应用卡片 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.app-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
  box-shadow: var(--shadow);
}

.app-card__link {
  display: flex;
  gap: 14px;
  padding: 16px;
  color: inherit;
}

.app-card__link:hover {
  text-decoration: none;
}

.app-card__iconwrap {
  flex: none;
}

.app-icon {
  border-radius: 17px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  background: var(--surface-3);
}

.app-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.app-card__heading {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.app-card__name {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.25;
}

.app-card__meta {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

.app-card__summary {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 7px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.app-card__foot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 10px;
  font-size: 11.5px;
  color: var(--muted);
}

.app-card__stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: var(--surface-3);
  color: var(--muted);
  flex: none;
}

.badge--server {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1;
  white-space: nowrap;
}

a.tag:hover {
  border-color: var(--brand);
  color: var(--brand-strong);
  background: var(--brand-soft);
  text-decoration: none;
}

.tag--sm {
  height: 22px;
  padding: 0 7px;
  font-size: 11px;
  border-radius: 6px;
}

.tag--outline {
  background: transparent;
  border-style: dashed;
  color: var(--muted);
}

.tag--lg {
  height: 34px;
  padding: 0 13px;
  font-size: 13.5px;
  border-radius: 9px;
}

.tag__count {
  font-size: 11px;
  color: var(--muted);
  background: var(--surface-3);
  border-radius: 999px;
  padding: 0 6px;
  line-height: 17px;
}

a.tag:hover .tag__count {
  background: #fff;
  color: var(--brand-strong);
}

/* ---------- 排行榜 ---------- */
.rank-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.rank-column {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 18px 12px;
  box-shadow: var(--shadow-sm);
}

.rank-column__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.rank-column__head h2,
.rank-column__head h3 {
  font-size: 16.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rank-column__head a {
  font-size: 13px;
  color: var(--muted);
}

.rank-column__foot {
  font-size: 12.5px;
  color: var(--muted);
  padding: 10px 6px 4px;
}

.rank-list {
  display: grid;
}

.rank-list--page {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px 18px;
  box-shadow: var(--shadow-sm);
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px dashed var(--border);
}

.rank-item:last-child {
  border-bottom: 0;
}

.rank-item__num {
  flex: none;
  width: 26px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.rank-item__num--top {
  color: #fff;
  background: linear-gradient(135deg, #ffb020, #f97316);
  border-radius: 8px;
  height: 26px;
  line-height: 26px;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
}

.rank-item__num--2 {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  box-shadow: 0 4px 10px rgba(100, 116, 139, 0.3);
}

.rank-item__num--3 {
  background: linear-gradient(135deg, #d97706, #b45309);
  box-shadow: 0 4px 10px rgba(180, 83, 9, 0.3);
}

.rank-item__link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  padding: 10px 4px;
  color: inherit;
}

.rank-item__link:hover {
  text-decoration: none;
}

.rank-item__link:hover .rank-item__name {
  color: var(--brand-strong);
}

.rank-item__icon {
  border-radius: 12px;
  flex: none;
}

.rank-item__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.rank-item__name {
  font-size: 14.5px;
  font-weight: 600;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.3;
}

.rank-item__server {
  font-size: 11px;
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-radius: 5px;
  padding: 1px 5px;
  margin-left: 6px;
  font-weight: 500;
}

.rank-item__meta {
  font-size: 11.5px;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-item__views {
  flex: none;
  font-size: 12px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.rank-section {
  margin-top: 26px;
}

.rank-section .rank-column__head {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 14px 18px;
  margin: 0;
}

.rank-section .rank-list--page {
  border-top: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding-top: 0;
}

/* ---------- 标签云 ---------- */
.tag-cloud {
  display: grid;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.tag-cloud--compact {
  background: transparent;
  border: 0;
  padding: 0;
  margin-top: 14px;
  gap: 14px;
}

.tag-cloud__group h3 {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 9px;
}

.tag-cloud__items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-groups {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.tag-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
}

.tag-group h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  margin-bottom: 14px;
}

.tag-group__count {
  font-size: 11.5px;
  color: var(--muted);
  background: var(--surface-3);
  border-radius: 999px;
  padding: 1px 8px;
}

/* ---------- 特色 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  margin-bottom: 14px;
}

.feature h3 {
  font-size: 16.5px;
  margin-bottom: 8px;
}

.feature p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.75;
}

/* ---------- 页面标题区 ---------- */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 34px 0 22px;
}

.page-head--simple {
  display: block;
  padding-bottom: 8px;
}

.page-head h1 {
  font-size: clamp(26px, 3.4vw, 34px);
  letter-spacing: -0.02em;
}

.page-head__lead {
  margin-top: 10px;
  max-width: 760px;
  color: var(--muted);
  font-size: 14.5px;
}

.page-head__meta {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.page-head__stats {
  display: flex;
  gap: 26px;
  flex: none;
  padding-bottom: 6px;
}

.page-head__stats div {
  display: flex;
  flex-direction: column;
}

.page-head__stats strong {
  font-size: 22px;
  letter-spacing: -0.01em;
}

.page-head__stats span {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- 筛选与排序 ---------- */
.filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.filters__row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.filters__label {
  flex: none;
  width: 72px;
  padding-top: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--brand);
  color: var(--brand-strong);
  text-decoration: none;
}

.chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

.chip__count {
  font-size: 11px;
  opacity: 0.65;
}

.chip--all {
  color: var(--muted);
}

.chip--all.is-active {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--text-soft);
  font-weight: 500;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0 16px;
}

.tabs {
  display: inline-flex;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface-3);
  gap: 4px;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
}

.tab:hover {
  color: var(--text);
  text-decoration: none;
}

.tab.is-active {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.toolbar__count {
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- 分页 ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 28px;
}

.page-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 13.5px;
}

.page-link:hover {
  border-color: var(--brand);
  color: var(--brand-strong);
  text-decoration: none;
}

.page-link.is-current {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

.page-gap {
  color: var(--muted);
  padding: 0 2px;
}

/* ---------- 空状态 ---------- */
.empty-state {
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 52px 24px;
  text-align: center;
}

.empty-state__icon {
  width: 34px;
  height: 34px;
  color: var(--muted);
}

.empty-state h3 {
  font-size: 17px;
  margin: 12px 0 6px;
}

.empty-state p {
  color: var(--muted);
  font-size: 13.5px;
}

.empty-state__links {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* ---------- 详情页 ---------- */
.page-toc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.page-toc__label {
  flex: none;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  margin-right: 2px;
}

.page-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 7px;
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
}

.page-toc a:hover,
.page-toc a:focus-visible {
  background: var(--brand);
  color: #fff;
}

.detail h2[id] {
  scroll-margin-top: 86px;
}

@media (max-width: 720px) {
  .page-toc {
    gap: 5px;
    padding: 9px 10px;
  }

  .page-toc__label {
    width: 100%;
    margin-bottom: 2px;
  }

  .page-toc a {
    font-size: 11.5px;
    padding: 3px 8px;
  }

  .detail h2[id] {
    scroll-margin-top: 72px;
  }
}

.detail-layout {
  padding: 26px 0 10px;
}

.detail {
  display: block;
}

.app-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 26px;
  align-items: start;
}

.app-hero__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  min-width: 0;
}

.app-hero__iconwrap {
  flex: none;
}

.app-hero__icon {
  border-radius: 24px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
}

.app-hero__info {
  min-width: 0;
  width: 100%;
}

.app-hero__info h1 {
  font-size: clamp(24px, 3.2vw, 33px);
  letter-spacing: -0.02em;
}

.app-hero__summary {
  margin: 10px auto 0;
  color: var(--text-soft);
  font-size: 14.5px;
  max-width: 640px;
}

.app-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
  justify-content: center;
}

.verify-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}

.verify-badge--passed {
  color: #0f7a3f;
  background: #e8f8ef;
  border-color: #b7e8ca;
}

.verify-badge--failed {
  color: #a33a00;
  background: #fff3e8;
  border-color: #ffd3b0;
}

.verify-badge--static {
  color: #36536b;
  background: #eef5fa;
  border-color: #cfe2ef;
}

.verify-badge--unverified {
  color: #6b6472;
  background: #f3f1f5;
  border-color: #ddd7e2;
}

.app-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 12.5px;
  color: var(--muted);
}

.app-facts li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 92px;
}

.download-card__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.download-card__cell--wide {
  grid-column: 1 / -1;
}

.download-card__cell--wide strong {
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}

.download-card__cell {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 8px 11px;
  display: flex;
  flex-direction: column;
}

.download-card__cell span {
  font-size: 11px;
  color: var(--muted);
}

.download-card__cell strong {
  font-size: 13.5px;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.download-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.download-card__note {
  margin-top: 12px;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--muted);
}

.download-card__meta {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-size: 11.5px;
  color: var(--muted);
}

.callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--text-soft);
  font-size: 13.5px;
}

.callout--warn {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #7c2d12;
}

@media (prefers-color-scheme: dark) {
  .callout--warn {
    background: #2a1a0e;
    border-color: #7c2d12;
    color: #fed7aa;
  }
}

.callout strong {
  display: block;
  margin-bottom: 4px;
}

.callout ul li {
  list-style: disc;
  margin-left: 18px;
}

.section--versions {
  margin-top: 22px;
}

.section--versions h2 {
  font-size: 15px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
}

.version-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.version-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.version-link:hover {
  border-color: var(--brand);
  text-decoration: none;
}

.version-link__icon {
  border-radius: 9px;
}

.version-link span {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.version-link strong {
  font-size: 13.5px;
}

.version-link small {
  font-size: 11.5px;
  color: var(--muted);
}

/* ---------- 截图与灯箱 ---------- */
.section--shots {
  margin-top: 34px;
}

.shots__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 4px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.shot {
  flex: none;
  width: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-3);
  cursor: zoom-in;
  scroll-snap-align: start;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.shot:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.shot img {
  display: block;
  height: auto;
  max-height: 430px;
  width: auto;
  max-width: 72vw;
  object-fit: contain;
  background: var(--surface-3);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 26px 12px;
  background: rgba(6, 10, 20, 0.94);
  backdrop-filter: blur(6px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__figure {
  margin: 0;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.lightbox__img {
  max-height: 82vh;
  width: auto;
  max-width: 92vw;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.lightbox__caption {
  color: #cbd5e1;
  font-size: 12.5px;
  text-align: center;
  max-width: 70vw;
}

.lightbox__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.lightbox__nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
}

.lightbox__nav:hover,
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.18);
}

body.lightbox-open {
  overflow: hidden;
}

/* ---------- 正文 ---------- */
.prose {
  color: var(--text-soft);
}

.prose p {
  margin-bottom: 12px;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px 18px;
  margin-top: 16px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.highlights li {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--text-soft);
}

.highlights .icon {
  color: var(--ok);
  margin-top: 3px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.info-grid__row {
  display: flex;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  min-width: 0;
}

.info-grid__row:nth-child(odd) {
  border-right: 1px solid var(--border);
}

.info-grid__row:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.info-grid dt {
  flex: none;
  width: 80px;
  color: var(--muted);
  font-size: 12.5px;
}

.info-grid dd {
  margin: 0;
  font-size: 13px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.info-grid dd a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.verification__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.source-fold {
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.source-signature {
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.source-signature h3 {
  margin: 0;
  font-size: 14px;
}

.source-signature .source-steps {
  margin: 8px 0 0;
}

.source-fold summary {
  cursor: pointer;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
}

.source-fold summary:hover {
  color: var(--brand-strong);
}

.source-fold .source-steps {
  margin: 10px 0 0;
}

.source-card {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  min-width: 0;
}

.source-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.source-card p {
  margin: 0 0 8px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.7;
}

.source-card__meta {
  color: var(--muted) !important;
  font-size: 12px !important;
}

.source-steps {
  margin: 0 0 8px;
  padding-left: 20px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.8;
}

.source-steps code,
.source-hash {
  word-break: break-all;
}

.source-hash {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

@media (max-width: 920px) {
  .source-grid {
    grid-template-columns: 1fr;
  }
}

.verification__columns h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 14px;
}

.verification__list {
  margin: 0;
  padding: 12px 14px 12px 30px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.8;
}

.verification__list--muted {
  color: var(--muted);
}

.verification__note {
  margin: 14px 0 0;
  padding: 11px 14px;
  border-left: 3px solid var(--brand);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.verification__shots-title {
  margin: 20px 0 10px;
  font-size: 15px;
}

.verification__shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.verification__shot {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
  text-align: left;
  cursor: zoom-in;
}

.verification__shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #0b1020;
}

.verification__shot-caption {
  display: block;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 720px) {
  .verification__columns {
    grid-template-columns: 1fr;
  }

  .verification__shots {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 4px 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .verification__shot {
    flex: 0 0 auto;
    width: min(78vw, 420px);
    scroll-snap-align: start;
  }

  .verification__shot img {
    height: auto;
    aspect-ratio: auto;
  }
}

.signature {
  display: grid;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.signature__row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}

.signature__row:last-child {
  border-bottom: 0;
}

.signature dt {
  flex: none;
  width: 74px;
  color: var(--muted);
  font-size: 12.5px;
  padding-top: 2px;
}

.signature dd {
  margin: 0;
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.signature code {
  font-size: 11.5px;
  line-height: 1.6;
  word-break: break-all;
}

.apk-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 14px 0 0;
}

.apk-stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  min-width: 0;
}

.apk-stat span {
  color: var(--muted);
  font-size: 12px;
}

.apk-stat strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.sdk-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.sdk-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.sdk-list strong {
  font-size: 14px;
}

.sdk-list span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12.5px;
}

.sdk-list em {
  grid-row: 1;
  grid-column: 2;
  color: var(--brand-strong);
  font-size: 11px;
  font-style: normal;
}

.apk-components {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.apk-components h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.apk-components code {
  word-break: break-all;
}

.report-subsection {
  margin-top: 22px;
}

.report-subsection h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.report-subsection h3 span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.component-list {
  columns: 2;
  column-gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.component-list li {
  break-inside: avoid;
  padding: 5px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 12px;
}

.component-list code,
.report-table code {
  word-break: break-all;
}

.language-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.apk-report__head .btn {
  margin-top: 6px;
}

@media (max-width: 720px) {
  .component-list {
    columns: 1;
  }
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  border-radius: 7px;
  padding: 2px 7px;
  font-size: 11px;
  cursor: pointer;
  flex: none;
}

.copy-btn:hover {
  border-color: var(--brand);
  color: var(--brand-strong);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.permission-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 13px;
}

.permission-table th {
  text-align: left;
  padding: 9px 12px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.permission-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--text-soft);
}

.permission-table tr:last-child td {
  border-bottom: 0;
}

.permission-table code {
  background: transparent;
  padding: 0;
  font-size: 11.5px;
  color: var(--text);
}

.level {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 11px;
  background: var(--surface-3);
  color: var(--muted);
  white-space: nowrap;
}

.level--dangerous {
  background: #fef2f2;
  color: var(--danger);
}

@media (prefers-color-scheme: dark) {
  .level--dangerous {
    background: #3a1517;
    color: #fca5a5;
  }
}

.accordion {
  display: grid;
  gap: 8px;
}

.accordion__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.accordion__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
}

.accordion__item summary::-webkit-details-marker {
  display: none;
}

.accordion__item summary:hover {
  color: var(--brand-strong);
}

.accordion__chevron {
  transition: transform 0.18s ease;
  color: var(--muted);
}

.accordion__item[open] .accordion__chevron {
  transform: rotate(90deg);
  color: var(--brand);
}

.accordion__body {
  padding: 0 16px 14px;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.8;
}

.guide__intro {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 14px;
}

.guide__intro p {
  margin: 0 0 6px;
}

.guide__intro p:last-child {
  margin-bottom: 0;
}

.guide__items {
  display: grid;
  gap: 8px;
  margin-top: 0;
}

.guide__item h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: inherit;
  font-weight: 600;
}

.guide__item summary:hover h3 {
  color: var(--brand-strong);
}

.accordion__body p + p {
  margin-top: 6px;
}

.section > h2 {
  font-size: 21px;
  margin-bottom: 12px;
}

/* ---------- 评论 ---------- */
.count {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 12.5px;
  font-weight: 600;
  vertical-align: 2px;
}

.comment-list {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.comment {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.comment--empty {
  color: var(--muted);
  font-size: 13.5px;
  justify-content: center;
}

.comment__avatar {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffd0b5, #ff9a66);
  color: #7c2d12;
  font-weight: 700;
  font-size: 15px;
}

.comment__main {
  min-width: 0;
  flex: 1;
}

.comment__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.comment__head strong {
  font-size: 13.5px;
}

.comment__head time {
  font-size: 11.5px;
  color: var(--muted);
}

.comment__text {
  margin-top: 5px;
  font-size: 13.5px;
  color: var(--text-soft);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.comment--pending {
  opacity: 0.7;
  border-style: dashed;
}

/* ---------- 表单与反馈 ---------- */
.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: grid;
  gap: 12px;
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--text-soft);
}

.field > span {
  font-weight: 600;
  font-size: 12.5px;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent);
}

.form__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.form__hint {
  font-size: 12px;
  color: var(--muted);
}

.form__status {
  font-size: 13px;
  min-height: 20px;
}

.form__status.is-ok {
  color: var(--ok);
}

.form__status.is-error {
  color: var(--danger);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.feedback-types {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feedback-types legend {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}

.chip--radio {
  cursor: pointer;
  position: relative;
}

.chip--radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip--radio:has(input:checked) {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

.chip--radio:focus-within {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.feedback-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.feedback-stat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12.5px;
}

.feedback-stat__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.feedback-stat__label {
  color: var(--text-soft);
}

.feedback-stat__count {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.feedback-stats--page .feedback-stat {
  padding: 9px 14px;
  font-size: 13px;
}

.feedback-summary {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.feedback-table td:first-child {
  min-width: 220px;
}

.feedback-app {
  color: var(--text);
  font-weight: 500;
}

.feedback-app:hover {
  color: var(--brand-strong);
}

/* ---------- 搜索 ---------- */
.search-form--page {
  width: 100%;
  max-width: 620px;
  margin-left: 0;
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 8px 8px 18px;
  border-radius: 14px;
}

.search-form--page input {
  font-size: 15px;
}

.search-form--page button {
  width: auto;
  border-radius: 10px;
  padding: 0 18px;
  height: 44px;
  font-size: 14px;
  font-weight: 600;
}

.search-results {
  margin-top: 26px;
  min-height: 200px;
}

.search-hint p {
  color: var(--muted);
  font-size: 13.5px;
  margin-bottom: 12px;
}

.search-results__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.search-results__head h2 {
  font-size: 18px;
}

.search-results__head span {
  font-size: 12.5px;
  color: var(--muted);
}

.search-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

/* ---------- 静态页 ---------- */
.article-body {
  margin-top: 20px;
}

.prose-block {
  margin-bottom: 22px;
}

.prose-block h2 {
  font-size: 19px;
  margin-bottom: 8px;
}

.prose-block p {
  color: var(--text-soft);
  margin-bottom: 10px;
}

.page-foot-note {
  margin: 26px 0 40px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 404 ---------- */
.notfound {
  text-align: center;
  padding: 60px 0 80px;
}

.notfound__code {
  font-size: 96px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #ff8a4c, #f4520c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.04em;
}

.notfound h1 {
  font-size: 26px;
  margin-top: 10px;
}

.notfound__lead {
  color: var(--muted);
  margin: 10px auto 22px;
  max-width: 520px;
  font-size: 14px;
}

.notfound__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.notfound__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
  font-size: 13px;
}

/* ---------- 底部 ---------- */
.site-footer {
  margin-top: 64px;
  background: #0d1424;
  color: #94a3b8;
  padding: 44px 0 22px;
}

.footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 0.7fr));
  gap: 34px;
}

.brand--footer {
  color: #f8fafc;
}

.brand--footer .brand__text small {
  color: #64748b;
}

.footer__brand p {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.75;
  max-width: 340px;
}

.footer__contact {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer__contact a {
  color: #cbd5e1;
}

.footer__stats {
  color: #64748b;
}

.footer__col-title {
  font-size: 13px;
  color: #e2e8f0;
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}

.footer__col ul {
  display: grid;
  gap: 7px;
}

.footer__col a {
  color: #94a3b8;
  font-size: 12.5px;
}

.footer__col a:hover {
  color: #fdba74;
  text-decoration: none;
}

.footer__bottom {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: #64748b;
}

.footer__legal {
  max-width: 620px;
}

.footer__bottom a {
  color: #94a3b8;
}

.footer__icp {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 12px;
  margin-top: 10px;
  border-top: 1px solid #1e293b;
  font-size: 11.5px;
  color: #64748b;
}

.footer__icp a {
  color: #94a3b8;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 6px;
  padding-bottom: 4px;
  font-size: 11.5px;
}

.footer__links a {
  color: #64748b;
}

.footer__links a:hover {
  color: #94a3b8;
}

/* ---------- 回到顶部 / 移动下载条 ---------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 50;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.to-top .icon {
  transform: rotate(-90deg);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.sticky-cta {
  display: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
    gap: 28px;
  }

  .app-hero {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .footer__main {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.8fr));
    gap: 24px;
  }
}

@media (max-width: 920px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 10px 22px 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .site-header.is-open .site-nav {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .site-nav a {
    padding: 12px;
    font-size: 15px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-header.is-open .nav-toggle__open {
    display: none;
  }

  .site-header.is-open .nav-toggle__close {
    display: block;
  }

  .header__inner > .search-form {
    display: none;
  }

  .site-nav .search-form--nav {
    display: flex;
    width: 100%;
    margin: 12px 0 4px;
    padding: 8px 8px 8px 16px;
    border-radius: 12px;
    background: var(--surface-2);
  }

  .site-nav .search-form--nav button {
    width: 38px;
    height: 38px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    padding-top: 40px;
    padding-bottom: 42px;
  }

  .hero__aside {
    margin-top: 0;
  }

  .hero__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .hero__stats li {
    padding: 10px;
  }

  .hero__stats strong {
    font-size: 18px;
  }

  .cat-grid,
  .rank-columns,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .page-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .page-head__stats {
    padding-bottom: 0;
  }

  .app-hero {
    grid-template-columns: 1fr;
  }

  .download-card {
    position: static;
  }

  .app-hero__main {
    flex-direction: column;
    gap: 14px;
  }

  .app-hero__icon {
    width: 84px;
    height: 84px;
    border-radius: 20px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-grid__row:nth-child(odd) {
    border-right: 0;
  }

  .info-grid__row:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .info-grid__row:last-child {
    border-bottom: 0;
  }

  .footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .detail-layout {
    padding-top: 18px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .container {
    padding: 0 16px;
  }

  .topbar__inner p {
    font-size: 11.5px;
  }

  .topbar__inner > a {
    display: none;
  }

  .header__inner {
    min-height: 62px;
    gap: 12px;
  }

  .brand__text strong {
    font-size: 17px;
  }

  .hero__actions .btn {
    flex: 1;
  }

  .hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-form--hero button span {
    display: none;
  }

  .search-form--hero button {
    width: 42px;
    padding: 0;
  }

  .section {
    margin-top: 34px;
  }

  .section__head h2 {
    font-size: 19px;
  }

  .section--prose {
    padding: 20px 18px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .app-card__link {
    padding: 13px;
    gap: 12px;
  }

  .app-icon {
    width: 58px !important;
    height: 58px !important;
  }

  .filters {
    padding: 12px;
    gap: 12px;
  }

  .filters__row {
    flex-direction: column;
    gap: 6px;
    min-width: 0;
  }

  .filters__label {
    width: auto;
    padding-top: 0;
    font-size: 12px;
  }

  .filters__chips {
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 0;
    min-width: 0;
  }

  .filters__chips .chip {
    flex: 0 1 auto;
    max-width: 100%;
    height: auto;
    min-height: 30px;
    padding: 6px 11px;
    white-space: normal;
    line-height: 1.3;
    text-align: left;
  }

  .toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .toolbar__count {
    order: 2;
  }

  .shots__track {
    margin-right: -16px;
  }

  .shot {
    width: auto;
  }

  .shot img {
    height: auto;
    max-height: 300px;
    max-width: 78vw;
  }

  .permission-table {
    min-width: 640px;
    font-size: 12.5px;
  }

  .permission-table th {
    padding: 8px 9px;
  }

  .permission-table td {
    padding: 7px 9px;
  }

  .comment {
    padding: 12px;
  }

  .form {
    padding: 14px;
  }

  .form__grid {
    grid-template-columns: 1fr;
  }

  .sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
  }

  .sticky-cta__app {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
  }

  .sticky-cta__app img {
    border-radius: 10px;
    flex: none;
  }

  .sticky-cta__app div {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
  }

  .sticky-cta__app strong {
    font-size: 13.5px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .sticky-cta__app small {
    font-size: 11px;
    color: var(--muted);
  }

  .sticky-cta .btn--download {
    margin-left: auto;
    min-height: 44px;
    font-size: 14px;
    padding: 0 14px;
    flex: none;
  }

  .page-detail {
    padding-bottom: 68px;
  }

  .to-top {
    bottom: 84px;
  }

  .notfound__code {
    font-size: 72px;
  }
}

@media (max-width: 420px) {
  .hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-card__summary {
    -webkit-line-clamp: 3;
  }

  .lightbox__nav {
    position: absolute;
    bottom: 18px;
  }

  .lightbox__nav--prev {
    left: 22px;
  }

  .lightbox__nav--next {
    right: 22px;
  }
}

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

@media print {
  .site-header,
  .site-footer,
  .sticky-cta,
  .to-top,
  .breadcrumb,
  .form,
  #comments,
  #feedback {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .download-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
