@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/outfit-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/outfit-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/plus-jakarta-sans-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/plus-jakarta-sans-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/plus-jakarta-sans-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./fonts/plus-jakarta-sans-latin-700.woff2") format("woff2");
}

:root {
  --bg: #ffffff;
  --card: #ffffff;
  --card-hover: #fafafa;
  --text: #1c1c1e;
  --muted: #6b7280;
  --faint: #9ca3af;
  --border: rgba(0, 0, 0, .08);
  --border-strong: rgba(0, 0, 0, .14);
  --chip: rgba(0, 0, 0, .04);
  --shadow: none;
  --accent: #1c1c1e;
  --accent-soft: rgba(0, 0, 0, .05);
  --link: #4f46e5;
  --green: #059669;
  --red: #dc2626;
  --amber: #b45309;
}
html[data-theme="dark"] {
  --bg: #0d0d10;
  --card: #131316;
  --card-hover: #18181c;
  --text: #ededf0;
  --muted: #9ca3af;
  --faint: #6b7280;
  --border: rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);
  --chip: rgba(255, 255, 255, .06);
  --shadow: none;
  --accent: #ededf0;
  --accent-soft: rgba(255, 255, 255, .07);
  --link: #a5b4fc;
  --green: #34d399;
  --red: #f87171;
  --amber: #fbbf24;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #0d0d10;
    --card: #131316;
    --card-hover: #18181c;
    --text: #ededf0;
    --muted: #9ca3af;
    --faint: #6b7280;
    --border: rgba(255, 255, 255, .09);
    --border-strong: rgba(255, 255, 255, .16);
    --chip: rgba(255, 255, 255, .06);
    --shadow: none;
    --accent: #ededf0;
    --accent-soft: rgba(255, 255, 255, .07);
    --link: #a5b4fc;
    --green: #34d399;
    --red: #f87171;
    --amber: #fbbf24;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", "PingFang SC", "HarmonyOS Sans SC", "MiSans",
    "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  padding: 0 16px calc(48px + env(safe-area-inset-bottom));
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 {
  font-family: "Outfit", "PingFang SC", "HarmonyOS Sans SC", "MiSans",
    "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  letter-spacing: -.01em;
  font-weight: 600;
}

.site-header {
  position: sticky; top: 0; z-index: 20;
  margin: 0 -16px 22px; padding: calc(14px + env(safe-area-inset-top)) 16px 13px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff; font-weight: 700; font-size: 16px;
  font-family: "Outfit", sans-serif;
}
.brand h1 { font-size: 16px; margin: 0; line-height: 1.25; font-weight: 600; white-space: nowrap; }
.brand .sub { font-size: 12px; color: var(--muted); margin-top: 1px; white-space: nowrap; }

.main-nav { display: flex; align-items: center; gap: 2px; margin-left: 14px; min-width: 0; }
.main-nav .nav-link { position: relative; font-size: 14px; font-weight: 500; padding: 8px 11px; }
.main-nav .nav-link[aria-current="page"] { color: var(--text); background: transparent; }
.main-nav .nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--text);
}
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }
.fav-btn { position: relative; }
.fav-badge {
  position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px;
  padding: 0 4px; border-radius: 999px; border: 2px solid var(--bg);
  background: #e84a73; color: #fff; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
}
.user-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 6px 5px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border-strong);
  font-size: 13px;
}
.user-chip b { font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip button {
  border: 0; background: var(--chip); color: var(--muted);
  padding: 3px 9px; border-radius: 999px; cursor: pointer; font-size: 12px;
}
.user-chip button:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 16px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--card); color: var(--text);
  font-size: 14px; font-weight: 500; line-height: 1.2;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { background: var(--card-hover); border-color: var(--border-strong); }
.btn:active { transform: scale(.985); }
.btn.primary { background: #5b5bd6; border-color: #5b5bd6; color: #fff; }
.btn.primary:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; }
.btn.small { height: 34px; padding: 0 13px; font-size: 13px; border-radius: 8px; }
.btn.danger { color: var(--red); border-color: color-mix(in srgb, var(--red) 35%, transparent); }
.btn[disabled] { opacity: .5; cursor: default; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 8px; flex: none;
  border: 1px solid var(--border-strong); background: var(--card);
  display: grid; place-items: center; cursor: pointer;
}
.icon-btn:hover { background: var(--card-hover); }

.wrap { max-width: 1200px; margin: 0 auto; }
.store-top { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 20px; }
.store-top .cat-tabs { flex: 1; margin-bottom: 0; }
.store-top .search { flex: 0 0 280px; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.search {
  flex: 1 1 220px; min-width: 160px;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 13px; border-radius: 8px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--muted);
}
.search input {
  flex: 1; border: 0; outline: 0; background: transparent; color: var(--text);
  font-size: 14px; min-width: 0;
}
.cat-tabs { display: flex; gap: 2px; flex-wrap: wrap; margin-bottom: 18px; }
.cat-tab {
  border: 0; background: transparent; color: var(--muted);
  padding: 6px 11px; border-radius: 6px; cursor: pointer;
  font-size: 14px; font-weight: 500; line-height: 1.4;
}
.cat-tab:hover { color: var(--text); background: var(--chip); }
.cat-tab[aria-selected="true"] { background: var(--text); color: var(--bg); font-weight: 600; }
.cat-tab span { display: none; }
.cat-tab svg { color: var(--faint); }
.cat-tab[aria-selected="true"] svg { color: inherit; }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
.card {
  position: relative; display: block;
  padding: 15px 16px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--border); box-shadow: none;
  transition: border-color .15s, background .15s;
}
.card:hover { border-color: var(--border-strong); background: var(--card-hover); }
.card-link { display: block; }
.card-top { display: flex; align-items: center; gap: 10px; min-height: 40px; padding-right: 30px; }
.skill-tile {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  font-family: "Outfit", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px; font-weight: 600; line-height: 1;
}
.card h3 {
  margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card p { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 40px; }
.card-meta { display: flex; align-items: center; gap: 14px; margin-top: 12px; font-size: 12px; color: var(--faint); }
.metric { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.metric-price { color: var(--text); font-weight: 600; }
.metric-price.free { color: var(--green); }
.quick-add {
  position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; padding: 0;
  border: 1px solid var(--border); border-radius: 50%;
  background: var(--card); color: var(--muted);
  font-size: 16px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background .15s, color .15s, border-color .15s;
}
.quick-add:hover { background: var(--chip); color: var(--text); }
.quick-add.on { background: var(--text); border-color: var(--text); color: var(--bg); font-size: 13px; }
.chip {
  display: inline-block; font-size: 12px; padding: 3px 9px; border-radius: 6px;
  background: var(--chip); color: var(--muted); font-weight: 500;
}

.empty, .loading { padding: 56px 16px; text-align: center; color: var(--muted); }
.skeleton { height: 150px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); opacity: .55; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .28; } }

.price-note {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  margin: 26px 0 0; padding: 14px 16px; border-radius: 8px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--muted); font-size: 13px;
}
.price-note b { color: var(--text); font-weight: 600; }

/* detail page */
.detail-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 384px;
  grid-template-areas: "head side" "body side";
  gap: 0 40px; align-items: start;
}
.detail-head { grid-area: head; }
.detail-body { grid-area: body; min-width: 0; }
.install-panel { grid-area: side; }
@media (max-width: 820px) {
  .detail-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "head" "side" "body";
    gap: 26px;
  }
}
.back { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.back:hover { color: var(--text); }
.detail-head { display: flex; align-items: flex-start; gap: 18px; }
.skill-icon {
  flex: none; width: 64px; height: 64px; margin-top: 1px;
  display: grid; place-items: center; border-radius: 14px;
  background: linear-gradient(160deg, #3a3a40, #1c1c1e);
  color: #fff; font-family: "Outfit", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 28px; font-weight: 600; line-height: 1;
}
.detail-head-main { min-width: 0; flex: 1; }
.detail-head h1 { font-size: 24px; margin: 0 0 8px; line-height: 1.35; font-weight: 600; letter-spacing: -.24px; }
.detail-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 10px; }
.detail-meta .slug { font-size: 13px; color: var(--faint); }
.detail-head p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.panel {
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: none;
}
.content-panel {
  background: transparent; border: 0; border-top: 1px solid var(--border);
  border-radius: 0; padding: 26px 0 0; margin-top: 30px;
}
.content-panel h2 {
  font-size: 13px; margin: 0 0 14px; color: var(--faint);
  font-weight: 600; letter-spacing: .04em;
}
.md { font-size: 16px; line-height: 1.75; color: var(--text); }
.md h2, .md h3, .md h4, .md h5 { margin: 24px 0 10px; line-height: 1.4; letter-spacing: -.01em; }
.md h2 { font-size: 24px; font-weight: 600; } .md h3 { font-size: 19px; font-weight: 600; }
.md h4 { font-size: 16px; font-weight: 600; } .md h5 { font-size: 15px; font-weight: 600; }
.md p { margin: 10px 0; } .md ul, .md ol { margin: 10px 0; padding-left: 24px; }
.md li { margin: 4px 0; }
.md pre { background: var(--chip); padding: 14px 16px; border-radius: 8px; overflow-x: auto; font-size: 13px; }
.md code { background: var(--chip); padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.md pre code { background: none; padding: 0; }
.md a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.md blockquote { margin: 12px 0; padding: 6px 16px; border-left: 3px solid var(--border-strong); color: var(--muted); }

.install-panel {
  background: transparent; border: 0; box-shadow: none; padding: 0;
  position: sticky; top: 88px;
}
@media (max-width: 820px) { .install-panel { position: static; } }
.install-panel h2 { font-size: 15px; margin: 0 0 4px; }
.install-sub { font-size: 12px; color: var(--muted); margin: 0 0 14px; }
.install-actions { display: flex; flex-direction: column; gap: 8px; }
.install-actions .btn { width: 100%; }
.install-note { margin: 14px 0 0; font-size: 12px; color: var(--faint); line-height: 1.65; }
.install-panel .access-badge { margin-bottom: 12px; }
.prompt-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 16px 16px;
  background: var(--card);
}
.prompt-title { font-size: 15px; font-weight: 600; line-height: 1.5; text-align: center; }
.prompt-text {
  margin: 8px 0 0; font-size: 12.5px; line-height: 1.65;
  color: var(--muted); text-align: center;
}
.prompt-btn {
  display: block; width: 100%; height: 40px; margin-top: 16px; padding: 1.5px;
  border: 0; border-radius: 20px;
  background: linear-gradient(90deg, #ff4242, #ffa142, #dada0b, #28bd28,
                              #42d0ff, #6666ff, #ff42ff, #ff4242);
  cursor: pointer; box-shadow: none;
  transition: transform .15s ease, filter .15s ease;
}
.prompt-btn > span {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; border-radius: 18.5px;
  background: var(--card); color: var(--text);
  font: inherit; font-size: 14px; font-weight: 600;
}
.prompt-btn:hover { transform: translateY(-1px); filter: saturate(1.15); }
.prompt-btn:active { transform: scale(.99); }
.install-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.fav-list { margin-top: 10px; }
.install-row {
  position: relative; display: flex; align-items: center; justify-content: center;
  gap: 9px; width: 100%; height: 48px; padding: 0 16px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--card); color: var(--text);
  font: inherit; font-size: 14px; font-weight: 400; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.install-row:hover { background: var(--card-hover); border-color: var(--border-strong); }
.install-row svg { flex: none; opacity: .65; }
.install-row.active { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 40%, transparent); }
.install-row.active svg { fill: var(--amber); stroke: var(--amber); opacity: 1; }
.install-row .row-hint {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 12px; font-weight: 400; color: var(--faint); white-space: nowrap;
}
.access-badge {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
  padding: 9px 12px; border-radius: 8px; font-size: 13px;
  background: color-mix(in srgb, var(--green) 10%, transparent); color: var(--green);
}
.access-badge.warn {
  background: transparent; color: var(--muted);
  padding: 0 2px; margin-bottom: 12px;
}
.buy-box { margin-top: 0; padding-top: 0; border-top: 0; }
.buy-option {
  padding: 16px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--card);
}
.buy-option-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.buy-title { font-size: 15px; font-weight: 600; line-height: 1.4; }
.buy-sub { margin-top: 3px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.buy-price {
  flex: none; font-family: "Outfit", sans-serif;
  font-size: 22px; font-weight: 600; line-height: 1.2; white-space: nowrap;
}
.buy-price small {
  margin-left: 2px; font-family: inherit;
  font-size: 12px; font-weight: 400; color: var(--muted);
}
.buy-option .btn { width: 100%; }
.buy-option .prompt-btn { margin-top: 0; }
.buy-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0; color: var(--faint); font-size: 12px;
}
.buy-divider::before, .buy-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}
.buy-link {
  display: block; margin-top: 12px; text-align: center;
  color: var(--link); font-size: 12.5px; font-weight: 600; text-decoration: none;
}
.buy-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.buy-refresh {
  display: block; width: 100%; margin-top: 12px; padding: 4px;
  border: 0; background: transparent; color: var(--muted);
  font: inherit; font-size: 12px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}
.buy-refresh:hover { color: var(--text); }

/* admin */
.admin-nav { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 18px; }
.admin-nav button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  padding: 7px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 600;
}
.admin-nav button:hover { background: var(--chip); color: var(--text); }
.admin-nav button[aria-selected="true"] { background: var(--card); color: var(--text); box-shadow: var(--shadow); border: 1px solid var(--border); }
.admin-section { display: none; }
.admin-section.active { display: block; }
.admin-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.stat-row { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin-bottom: 18px; }
.stat { padding: 13px 15px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); }
.stat b { display: block; font-size: 20px; line-height: 1.2; }
.stat span { font-size: 11.5px; color: var(--muted); }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { color: var(--faint); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
.table tr:hover td { background: var(--chip); }
.scroll-x { overflow-x: auto; border-radius: 12px; background: var(--card); border: 1px solid var(--border); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.badge.ok { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.badge.draft { background: var(--chip); color: var(--muted); }
.badge.paid { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.badge.pending { background: color-mix(in srgb, var(--amber) 16%, transparent); color: var(--amber); }

.form-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--border-strong); background: var(--bg); color: var(--text);
  font-size: 14px; outline: none; font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 90px; line-height: 1.55; }
.field .hint { font-size: 11px; color: var(--faint); }

.modal-mask {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(0, 0, 0, .45); backdrop-filter: blur(3px);
  align-items: center; justify-content: center; padding: 18px;
}
.modal-mask.open { display: flex; }
.modal {
  width: min(560px, 100%); max-height: 88vh; overflow: auto;
  background: var(--card); border: 1px solid var(--border-strong);
  border-radius: 12px; padding: 22px; box-shadow: 0 24px 80px rgba(0,0,0,.2);
}
.modal.wide { width: min(820px, 100%); }
.modal h2 { margin: 0 0 4px; font-size: 18px; }
.modal .sub { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.modal .close-x {
  float: right; border: 0; background: var(--chip); color: var(--muted);
  width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 16px;
}
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.tabs2 { display: flex; gap: 4px; background: var(--chip); padding: 3px; border-radius: 9px; margin-bottom: 16px; }
.tabs2 button { flex: 1; border: 0; background: transparent; color: var(--muted); padding: 7px; border-radius: 7px; cursor: pointer; font-weight: 600; font-size: 13px; }
.tabs2 button[aria-selected="true"] { background: var(--card); color: var(--text); box-shadow: var(--shadow); }

/* hot board (admin) */
.board-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 10px 2px 12px; }
.board-head h2 { font-size: 16px; margin: 0; }
.board-head .bh-sub { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.board-head .bh-desc { display: block; font-size: 12px; color: var(--faint); margin-top: 3px; line-height: 1.6; max-width: 760px; }
.curate-filter { display: flex; gap: 3px; background: var(--chip); padding: 3px; border-radius: 9px; white-space: nowrap; }
.curate-filter button {
  border: 0; background: transparent; color: var(--muted); padding: 6px 10px;
  border-radius: 7px; cursor: pointer; font-weight: 600; font-size: 12px;
}
.curate-filter button[aria-selected="true"] { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.curate-filter button span { color: var(--faint); font-weight: 600; margin-left: 3px; }
.search-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 2px 12px; }
.search-toolbar .search { flex: 1 1 320px; }
.search-status { font-size: 12px; color: var(--muted); margin: 0 2px 12px; line-height: 1.7; }
.search-status .src { display: inline-block; margin-right: 12px; white-space: nowrap; }
.search-status .warn { color: var(--amber); }
.search-status .err { color: var(--red); }
.search-group-title {
  list-style: none; margin: 16px 2px 8px; font-size: 12px; font-weight: 700;
  color: var(--faint); letter-spacing: .03em;
}
.source-chips { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.source-chips .badge { font-size: 10px; font-weight: 600; }
.search-hit .rank { color: var(--faint); }
.board-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; scrollbar-width: none; }
.board-tabs::-webkit-scrollbar { display: none; }
.board-tabs button {
  flex: none; padding: 7px 12px; border-radius: 9px; cursor: pointer;
  border: 1px solid transparent; background: transparent; color: var(--muted);
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.board-tabs button[aria-selected="true"] { background: var(--card); color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow); }
.hot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hot-item {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: start;
  padding: 12px 14px; border-radius: 13px; background: var(--card);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.hot-item .rank { text-align: center; color: var(--faint); font-weight: 700; font-size: 13px; padding-top: 2px; }
.hot-item .rank.top { color: var(--accent); }
.hot-item .rank-delta { display: block; margin-top: 3px; font-size: 10px; font-weight: 700; line-height: 1.1; }
.hot-item .rank-delta.up { color: var(--green); }
.hot-item .rank-delta.down { color: var(--red); }
.hot-item .rank-delta.new {
  color: #fff; background: var(--green); border-radius: 4px; padding: 2px 0;
}
.hot-item h3 { margin: 0; font-size: 14.5px; font-weight: 650; }
.hot-item h3 .badge { margin-left: 6px; vertical-align: 1px; font-size: 10.5px; }
.hot-item .by { font-size: 11.5px; color: var(--faint); margin-top: 1px; word-break: break-all; }
.hot-item p { margin: 5px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hot-item p.desc-en { color: var(--faint); font-size: 12px; }
.hot-item p.desc-zh { color: var(--text); margin-top: 3px; }
.hot-item .ops { display: flex; align-items: center; gap: 4px; }
.hot-item .metric { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.star-btn { border: 0; background: transparent; color: var(--faint); font-size: 17px; cursor: pointer; line-height: 1; padding: 2px 4px; }
.star-btn[aria-pressed="true"] { color: var(--amber); }

@media (max-width: 820px) {
  .store-top { flex-direction: column-reverse; gap: 12px; }
  .store-top .search { flex: 1 1 auto; width: 100%; }
}
@media (max-width: 480px) {
  .install-row .row-hint { right: 10px; font-size: 11px; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .brand .sub { display: none; }
  .detail-head { gap: 13px; }
  .skill-icon { width: 52px; height: 52px; border-radius: 12px; font-size: 23px; }
  .detail-head h1 { font-size: 22px; }
  .detail-head p { font-size: 14px; }
  .content-panel { padding: 22px 0 0; }
  .md { font-size: 15px; }
  .md h2 { font-size: 21px; }
  .md h3 { font-size: 17px; }
}

/* ---------- 套餐页 ---------- */
.nav-link {
  font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none;
  padding: 6px 10px; border-radius: 8px; white-space: nowrap;
}
.nav-link:hover { background: var(--chip); color: var(--text); }
.nav-link[aria-current="page"] { background: var(--chip); color: var(--text); }

.pricing-wrap { padding-top: 6px; padding-bottom: 44px; }
.price-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px; margin-top: 16px;
}
.price-card {
  display: flex; flex-direction: column; min-width: 0;
  border: 1px solid var(--border-strong); border-radius: 12px;
  background: var(--card); padding: 22px 20px 18px;
}
.price-card.svip { border-color: #d4af37; }
.price-name { font-size: 15px; font-weight: 700; }
.price-amount {
  font-size: 34px; font-weight: 700; margin-top: 12px;
  letter-spacing: -.02em; line-height: 1.1;
}
.price-amount small { font-size: 13px; color: var(--faint); font-weight: 500; }
.price-unit { color: var(--red); font-weight: 600; font-size: 14px; margin-top: 5px; }
.price-card.svip .price-unit { color: #a07c10; }
.svip-head {
  background: #d4af37; margin: -22px -20px 16px; padding: 11px 20px;
  border-radius: 11px 11px 0 0;
}
.svip-head .price-name { color: #3b2a08; letter-spacing: .04em; }
.svip-body { margin-top: 2px; }
.price-desc { font-size: 12px; color: var(--muted); margin: 14px 0 0; line-height: 1.6; }
.price-divider { height: 1px; background: var(--border); margin: 14px 0; }
.price-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 9px; }
.price-list li { font-size: 13px; color: var(--text); padding-left: 20px; position: relative; line-height: 1.5; }
.price-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 700;
}
.price-btn {
  margin-top: auto; width: 100%; height: 52px; padding: 0 10px; border-radius: 10px;
  border: 0; background: #e84a73; color: #fff;
  font-weight: 600; font-size: 15px; cursor: pointer; font-family: inherit;
  transition: background .15s ease;
}
.price-btn:hover { background: #d93e66; }
.price-btn.svip-btn { background: #d4af37; color: #3b2a08; }
.price-btn.svip-btn:hover { background: #c5a130; }
.price-active {
  margin-top: auto; text-align: center; padding: 10px; border-radius: 8px;
  background: var(--chip); color: var(--muted); font-size: 13px; font-weight: 600;
}
.price-support {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px; margin-top: 18px; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: 12px;
  font-size: 12.5px; color: var(--muted);
}
.price-support b { color: var(--text); font-weight: 600; }
.price-support span {
  background: var(--chip); border-radius: 6px; padding: 3px 8px;
}
.price-refund { text-align: center; color: var(--faint); font-size: 12px; margin: 16px 0 0; }

@media (max-width: 900px) {
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .price-grid { grid-template-columns: 1fr; }
  .price-amount { font-size: 30px; }
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin: 56px -16px 0;
  padding: 34px 16px 26px;
  background: color-mix(in srgb, var(--bg) 92%, var(--chip));
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 32px 56px;
}
.footer-brand { display: flex; align-items: flex-start; gap: 10px; min-width: 220px; }
.footer-brand .brand-mark { width: 32px; height: 32px; border-radius: 9px; font-size: 14px; }
.footer-brand b { font-size: 15px; }
.footer-muted { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.footer-col { display: flex; flex-direction: column; gap: 7px; min-width: 96px; }
.footer-col h4 {
  margin: 0 0 3px; font-size: 12px; font-weight: 600;
  color: var(--faint); letter-spacing: .02em;
}
.footer-col a { font-size: 13px; color: var(--muted); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1200px; margin: 26px auto 0; padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--faint); font-size: 12px;
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .site-footer { margin-top: 40px; }
  .footer-inner { gap: 24px 40px; }
}

/* ---------- 关于我们 / 合作 ---------- */
.subpage { max-width: 760px; margin: 0 auto; padding: 34px 0 0; }
.subpage-hero { margin-bottom: 30px; }
.subpage-hero .eyebrow {
  font-size: 12px; font-weight: 600; color: var(--muted);
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px;
}
.subpage-hero h1 { font-size: 30px; margin: 0 0 10px; line-height: 1.3; }
.subpage-hero p { color: var(--muted); font-size: 15px; margin: 0; max-width: 600px; }
.prose-block { margin: 0 0 28px; }
.prose-block h2 { font-size: 17px; margin: 0 0 8px; }
.prose-block p { margin: 0 0 8px; color: var(--muted); font-size: 14.5px; line-height: 1.8; }
.prose-block ul { margin: 4px 0 0; padding-left: 20px; color: var(--muted); font-size: 14.5px; line-height: 1.8; }
.coop-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px; margin: 6px 0 30px;
}
.coop-card {
  border: 1px solid var(--border); border-radius: 14px; padding: 20px;
  background: var(--card);
}
.coop-card h3 { font-size: 15px; margin: 0 0 7px; }
.coop-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.7; }
.coop-card .coop-for { color: var(--faint); font-size: 12.5px; margin-top: 9px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 8px 0 30px; }
.step {
  border: 1px solid var(--border); border-radius: 12px; padding: 14px 14px 12px;
  background: var(--card);
}
.step b { display: block; font-size: 13px; margin-bottom: 4px; }
.step span { color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.contact-card {
  border: 1px solid var(--border); border-radius: 14px; padding: 22px;
  background: var(--card); display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: space-between;
}
.contact-card b { font-size: 15px; }
.contact-card .contact-mail { font-size: 14px; color: var(--link); word-break: break-all; }
.subpage-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
@media (max-width: 760px) {
  .coop-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subpage-hero h1 { font-size: 25px; }
  .subpage { padding-top: 24px; }
}
@media (max-width: 440px) {
  .steps { grid-template-columns: 1fr; }
}
