:root {
  color-scheme: light;
  --text: #0a0a0a;
  --muted: #5a5a5c;
  --subtle: #888888;
  --line: #e5e5e5;
  --surface: #ffffff;
  --soft: #f7f7f7;
  --soft-blue: #f2fbf8;
  --primary: #0a0a0a;
  --primary-dark: #1c1c1e;
  --green: #00d4a4;
  --green-deep: #00b48a;
  --code: #1c1c1e;
  --shadow: 0 24px 48px rgba(0, 0, 0, .12);
  --heading-weight: 650;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "HarmonyOS Sans SC",
    "MiSans",
    "Source Han Sans SC",
    -apple-system,
    BlinkMacSystemFont,
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    "Noto Sans SC",
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: geometricPrecision;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a,
button,
summary,
label,
[role="button"],
.btn,
.nav-burger,
.store-action-btn,
.checkout-pay-method,
.admin-icon-link,
.admin-user-trigger {
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
}

.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 10px 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 0;
}

.is-scrolled .topbar {
  background: transparent;
  box-shadow: none;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .is-scrolled .nav,
  .nav:has(.nav-toggle:checked) {
    background: rgba(255, 255, 255, .94);
  }
}

.nav {
  width: min(1180px, calc(100% - 40px));
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 8px 0 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    background .28s ease,
    border-color .28s ease,
    box-shadow .28s ease,
    transform .28s ease;
}

.is-scrolled .nav {
  border-color: rgba(15, 23, 42, .08);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
}

.brand > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  background: url("/assets/logo.png") center / contain no-repeat;
}

@keyframes dot-breathe {
  0%,
  100% {
    opacity: .36;
    transform: scale(.84);
  }

  48% {
    opacity: .78;
    transform: scale(1.18);
  }
}

.brand-logo {
  display: block;
  width: 146px;
  height: 30px;
  background: url("/assets/logo-horizontal.png") left center / contain no-repeat;
}

.nav-menu {
  display: contents;
}

.nav-overlay {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  color: #4f5865;
  font-size: 13px;
  font-weight: 500;
}

.nav-links a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 10px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(15, 23, 42, .06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.site-account-cluster {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
}

.site-topbar-menu {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.site-topbar-menu > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  list-style: none;
  list-style-type: none;
  line-height: 1;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
}

.site-topbar-menu > summary::-webkit-details-marker {
  display: none !important;
  width: 0;
  height: 0;
}

.site-topbar-menu > summary::marker {
  content: "" !important;
  display: none;
  font-size: 0 !important;
}

.site-message-button,
.site-user-trigger {
  width: auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #4f5865;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
}

.site-trigger-surface {
  position: relative;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.site-message-button {
  width: 36px;
  height: 36px;
  justify-content: center;
  padding: 0;
}

.site-message-button .site-trigger-surface {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
}

.site-message-button .material-icons-outlined {
  font-size: 18px;
  line-height: 1;
}

.site-message-button em {
  position: absolute;
  top: 1px;
  right: 1px;
  min-width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 999px;
  padding: 0 5px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  line-height: 11px;
}

.site-user-trigger {
  max-width: 184px;
  padding: 0;
}

.site-user-trigger .site-trigger-surface {
  max-width: 184px;
  padding: 3px 2px 3px 4px;
}

.site-message-button:hover .site-trigger-surface,
.site-user-trigger:hover .site-trigger-surface,
.site-topbar-menu[open] .site-message-button .site-trigger-surface,
.site-topbar-menu[open] .site-user-trigger .site-trigger-surface {
  border-color: transparent;
  background: rgba(15, 23, 42, .06);
  color: var(--text);
}

.site-message-button:focus,
.site-user-trigger:focus {
  outline: 0;
}

.site-message-button:focus-visible .site-trigger-surface,
.site-user-trigger:focus-visible .site-trigger-surface {
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .16);
}

.site-avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
}

.site-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.site-user-name {
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-user-chevron {
  display: none;
  margin-left: -2px;
  color: var(--subtle);
  font-size: 16px;
  line-height: 1;
}

.site-dropdown-panel {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 45;
  width: min(340px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .10);
}

.site-dropdown-head {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  padding: 0 14px;
}

.site-dropdown-head strong {
  font-size: 14px;
  font-weight: 650;
}

.site-dropdown-head button {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.site-notification-list {
  max-height: min(360px, 58vh);
  overflow: auto;
}

.site-notification-item {
  position: relative;
  display: grid;
  gap: 5px;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  padding: 12px 14px 12px 18px;
}

.site-notification-item:last-child {
  border-bottom: 0;
}

.site-notification-item.is-unread::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 8px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--green);
}

.site-notification-item span,
.site-notification-item time {
  color: var(--subtle);
  font-size: 11px;
  line-height: 15px;
}

.site-notification-item strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  line-height: 18px;
}

.site-notification-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}

.site-user-panel {
  width: 232px;
  padding: 6px;
}

.site-user-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  margin: 0 0 5px;
  padding: 8px 8px 10px;
}

.site-user-panel-head .site-avatar {
  width: 32px;
  height: 32px;
}

.site-user-panel-head div {
  min-width: 0;
}

.site-user-panel-head strong,
.site-user-panel-head small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-user-panel-head strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  line-height: 18px;
}

.site-user-panel-head small {
  color: var(--subtle);
  font-size: 11px;
  line-height: 16px;
}

.site-user-panel a {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 7px;
  padding: 0 10px;
  color: #4f5865;
  font-size: 13px;
  font-weight: 500;
}

.site-user-panel .material-icons-outlined {
  color: var(--subtle);
  font-size: 17px;
}

.site-user-panel a:hover {
  background: #f5f5f5;
  color: var(--text);
}

.site-user-panel a:hover .material-icons-outlined {
  color: var(--text);
}

.site-user-panel a.is-danger {
  color: #b91c1c;
}

.site-dropdown-empty {
  padding: 28px 14px;
  color: var(--subtle);
  font-size: 13px;
  text-align: center;
}

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.nav-burger span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .2s ease, opacity .2s ease;
}

.btn {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  transition: border-color .16s ease, color .16s ease, background .16s ease, transform .16s ease;
}

.btn:hover { border-color: var(--text); }

.btn.primary {
  border-color: #0d9488;
  background: #0d9488;
  color: #fff;
}

.btn.primary:hover {
  border-color: #0f766e;
  background: #0f766e;
  color: #fff;
}

.btn.is-disabled,
.btn.is-disabled:hover {
  border-color: #d8dde3;
  background: #eef1f4;
  color: #7a828c;
  cursor: not-allowed;
  transform: none;
}

.btn.accent {
  border-color: var(--green);
  background: var(--green);
  color: var(--primary);
}

.btn.text {
  border-color: #0d9488;
  background: rgba(13, 148, 136, .08);
  color: #0d9488;
}

.btn.text:hover {
  border-color: #0f766e;
  background: rgba(15, 118, 110, .12);
  color: #0f766e;
}

.hero {
  position: relative;
  margin-top: -72px;
  padding: 148px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% -10%, rgba(0, 212, 164, .18), transparent 42%),
    radial-gradient(circle at 92% 4%, rgba(21, 50, 74, .10), transparent 46%),
    linear-gradient(180deg, #ffffff 0%, #f4f8f7 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(21, 50, 74, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 50, 74, .04) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(circle at 28% 36%, #000 0%, transparent 70%);
  mask-image: radial-gradient(circle at 28% 36%, #000 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero.compact {
  margin-top: -72px;
  padding: 132px 0 56px;
}

.hero.compact .hero-inner {
  text-align: center;
}

.hero.compact h1 {
  font-size: clamp(42px, 7vw, 88px);
  font-weight: var(--heading-weight);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
}

.hero-grid .hero-inner {
  text-align: left;
}

.hero-grid h1 {
  margin: 0 0 24px;
  max-width: none;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.08;
  font-weight: var(--heading-weight);
}

.hero-grid .hero-copy {
  margin: 0;
}

.hero-grid .hero-actions {
  justify-content: flex-start;
}

.hero-trust {
  margin: 28px 0 0;
  color: var(--subtle);
  font-size: 14px;
  font-weight: 500;
}

.hero-trust span {
  color: var(--green-deep);
}

.eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .04);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 212, 164, .18);
  animation: dot-breathe 2.8s ease-out infinite;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

body,
button,
input,
select,
textarea {
  -webkit-text-size-adjust: 100%;
  font-variation-settings: normal;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: transparent;
  color: inherit;
}

button,
select {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: .62;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
select,
textarea {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(0, 212, 164, .24);
  outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
.btn:focus:not(:focus-visible),
.brand:focus:not(:focus-visible),
.nav-links a:focus:not(:focus-visible),
.store-action-btn:focus:not(:focus-visible),
.checkout-pay-method:focus:not(:focus-visible) {
  outline: 0;
  box-shadow: none;
}

.btn:active,
.store-action-btn:active,
.checkout-pay-method:active,
.brand:active {
  outline: 0;
  box-shadow: none;
}

@media (hover: none) and (pointer: coarse) {
  a:focus,
  button:focus,
  summary:focus,
  label:focus,
  [role="button"]:focus,
  .btn:focus,
  .nav-burger:focus,
  .store-action-btn:focus,
  .checkout-pay-method:focus,
  .brand:focus {
    outline: 0;
    box-shadow: none;
  }

  a:active,
  button:active,
  summary:active,
  label:active,
  [role="button"]:active,
  .btn:active,
  .nav-burger:active,
  .store-action-btn:active,
  .checkout-pay-method:active,
  .brand:active {
    outline: 0;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow-dot {
    animation: none;
    opacity: .46;
    transform: scale(1);
  }
}

.captcha-box {
  min-height: 44px;
  display: flex;
  align-items: center;
  margin-top: 2px;
}

select {
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px !important;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

input[type="file"] {
  padding: 7px 10px !important;
}

input[type="file"]::file-selector-button {
  min-height: 28px;
  margin-right: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 10px;
  background: var(--soft);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

input[type="file"]::file-selector-button:hover {
  background: #eeeeee;
}

h1 {
  max-width: 980px;
  margin: 0 auto 24px;
  font-size: clamp(40px, 6.5vw, 80px);
  line-height: 1.06;
  font-weight: var(--heading-weight);
}

.hero > .hero-inner > h1 {
  font-size: clamp(40px, 6.7vw, 74px);
  font-weight: var(--heading-weight);
}

.hero-inner h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--green-deep), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-media {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 44px max(20px, calc((100vw - 1180px) / 2));
  border-top: 1px solid rgba(10, 10, 10, .04);
  border-bottom: 1px solid rgba(10, 10, 10, .04);
  background: #fbfbfc;
}

.metric {
  padding: 0 18px;
  text-align: center;
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  font-weight: 500;
}

.metric span {
  color: #666d78;
  font-size: 15px;
  line-height: 1.45;
}

.section {
  padding: 88px 0;
}

.section.alt {
  background: var(--soft);
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  font-weight: var(--heading-weight);
}

.section-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.feature-grid,
.store-grid,
.download-grid,
.two-column {
  display: grid;
  gap: 20px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.store-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.store-page {
  padding: 54px 0 88px;
}

.store-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.store-heading h1 {
  margin: 0 0 8px;
  font-size: clamp(36px, 5.4vw, 56px);
  line-height: 1.08;
  font-weight: var(--heading-weight);
}

.store-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.store-search {
  min-width: min(360px, 100%);
}

.store-search label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.store-search input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  font: inherit;
  background: var(--surface);
}

.store-search input:focus {
  outline: 2px solid rgba(13, 148, 136, .26);
  border-color: #0d9488;
}

.store-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.store-tabs a {
  position: relative;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.store-tabs a.active {
  border-color: #0d9488;
  background: #0d9488;
  color: #fff;
}

.store-tabs span {
  color: inherit;
  opacity: .66;
  font-size: 12px;
}

.store-notice {
  margin-bottom: 24px;
  border: 1px solid #e2e6eb;
  border-radius: 10px;
  padding: 11px 13px;
  color: #5f6672;
  background: #fbfcfd;
  font-size: 14px;
  line-height: 1.6;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.catalog-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}

.catalog-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
  position: relative;
  overflow: hidden;
}

.catalog-thumb::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.catalog-thumb span {
  position: absolute;
  left: 48px;
  right: 48px;
  top: 50%;
  height: 12px;
  transform: translateY(-50%);
  border-radius: 99px;
  background: var(--text);
}

.catalog-thumb span::before,
.catalog-thumb span::after {
  content: "";
  position: absolute;
  left: 0;
  height: 9px;
  border-radius: 99px;
  background: #d8d8d8;
}

.catalog-thumb span::before {
  width: 64%;
  top: 26px;
}

.catalog-thumb span::after {
  width: 42%;
  top: 48px;
}

.theme-thumb {
  background: #f6f3ee;
}

.plugin-thumb {
  background: #eef9f5;
}

.guard-thumb {
  background: #f5f5f5;
}

.catalog-body {
  padding: 18px;
}

.catalog-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.catalog-title a {
  font-size: 18px;
  font-weight: var(--heading-weight);
}

.catalog-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.catalog-body p {
  min-height: 48px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.catalog-links {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
  font-size: 14px;
}

.catalog-links a,
.catalog-links span {
  color: var(--text);
  font-weight: 400;
}

.catalog-links span {
  color: var(--muted);
}

.catalog-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.catalog-tags span,
.catalog-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.catalog-tags a:hover {
  color: var(--text);
  background: #eceff1;
}

.app-detail-hero {
  position: relative;
  margin-top: -72px;
  padding: 132px 0 64px;
  background:
    radial-gradient(circle at 18% -10%, rgba(0, 212, 164, .14), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #f5f8f7 100%);
}

.app-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
}

.app-detail-grid h1 {
  margin-left: 0;
  margin-right: 0;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: var(--heading-weight);
}

.app-detail-grid .hero-copy {
  margin-left: 0;
  max-width: 720px;
}

.store-back {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.store-back:hover {
  color: var(--text);
}

.store-flash {
  max-width: 640px;
  margin: 18px 0 0;
}

.store-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.store-action-btn {
  position: relative;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 10px;
  padding: 0 13px;
  background: rgba(255, 255, 255, .78);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
}

.store-action-btn:hover,
.store-action-btn.active {
  border-color: rgba(13, 148, 136, .40);
  background: rgba(13, 148, 136, .08);
  color: #0d9488;
}

.app-detail-panel {
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 14px;
  background: rgba(255, 255, 255, .82);
  padding: 22px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .06);
}

.app-detail-tags {
  margin-top: 18px;
}

.app-author-card {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.app-author-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
}

.app-author-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 500;
}

.app-author-card p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.app-author-card a {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.app-author-card a:hover {
  text-decoration: underline;
}

.license-download-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.license-download-form label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.license-download-form div {
  display: flex;
  gap: 8px;
}

.license-download-form input,
.checkout-field input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.license-download-form input:focus,
.checkout-field input:focus {
  outline: 2px solid rgba(0, 212, 164, .24);
  border-color: var(--green);
}

.download-note {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.app-detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 42px;
  align-items: start;
}

.detail-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.app-shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 34px;
}

.app-shot {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 16px;
}

.app-shot-visual {
  position: relative;
  aspect-ratio: 16 / 10;
  margin-bottom: 14px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .96)),
    linear-gradient(135deg, #eef3f1 0%, #f8faf9 100%);
  border: 1px solid var(--line);
  overflow: hidden;
}

.app-shot-visual::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f5f7f6 100%);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .05);
}

.app-shot-visual::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 24px;
  height: 9px;
  border-radius: 99px;
  background: rgba(15, 23, 42, .88);
  box-shadow:
    0 22px 0 rgba(15, 23, 42, .14),
    0 44px 0 rgba(15, 23, 42, .10);
}

.app-shot-visual.has-img::before,
.app-shot-visual.has-img::after {
  display: none;
}

.app-shot-visual.has-img img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-shot-visual span {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  display: inline-flex;
  min-width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid rgba(15, 23, 42, .08);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.app-shot strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
}

.app-shot p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.version-list {
  display: grid;
  gap: 12px;
}

.version-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 18px 20px;
}

.version-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.version-item-head strong {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 500;
}

.version-item-head span,
.version-item-meta {
  color: var(--muted);
  font-size: 13px;
}

.version-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 10px;
}

.version-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
}

.comment-panel {
  display: grid;
  gap: 16px;
}

.comment-form,
.comment-login,
.comment-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.comment-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.comment-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.comment-form select,
.comment-form textarea,
.reply-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.comment-form select {
  min-height: 42px;
  padding: 0 12px;
}

.comment-form textarea,
.reply-form textarea {
  min-height: 108px;
  padding: 11px 12px;
  resize: vertical;
  line-height: 1.65;
}

.comment-form select:focus,
.comment-form textarea:focus,
.reply-form textarea:focus {
  outline: 2px solid rgba(0, 212, 164, .22);
  border-color: var(--green);
}

.comment-login {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}

.comment-list {
  display: grid;
  gap: 12px;
}

.comment-item {
  padding: 18px;
}

.comment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.comment-head strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.comment-head span,
.comment-rating {
  color: var(--muted);
  font-size: 13px;
}

.comment-rating {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 9px;
  background: var(--soft);
  white-space: nowrap;
}

.comment-item > p {
  margin: 0;
  color: var(--text);
  line-height: 1.72;
}

.developer-reply {
  margin-top: 14px;
  border-left: 3px solid var(--green);
  border-radius: 0 10px 10px 0;
  background: var(--soft-blue);
  padding: 12px 14px;
}

.developer-reply strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
}

.developer-reply p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.reply-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.reply-form .btn {
  justify-self: start;
}

.related-list {
  display: grid;
  gap: 10px;
}

.related-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  background: #fff;
}

.related-item span,
.related-item small {
  font-weight: 400;
}

.related-item small {
  color: var(--muted);
}

.checkout-page {
  background: #fafafa;
}

.checkout-hero {
  margin-top: -72px;
  padding: 128px 0 34px;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.checkout-hero-inner {
  max-width: 860px;
}

.checkout-hero h1 {
  margin-left: 0;
  margin-right: 0;
  font-size: clamp(40px, 6vw, 70px);
}

.checkout-hero .hero-copy {
  margin-left: 0;
  max-width: 680px;
}

.checkout-section {
  padding-top: 28px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 18px;
  align-items: start;
}

.checkout-card,
.checkout-summary {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.checkout-card {
  display: grid;
  gap: 20px;
  padding: 0;
}

.checkout-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 22px;
}

.checkout-card-head > div {
  flex: 1;
}

.checkout-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--soft);
  color: var(--text);
  font-size: 18px;
  font-weight: 650;
}

.checkout-card h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.checkout-card-head p,
.checkout-summary p,
.order-status-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.checkout-card > .admin-alert,
.checkout-field,
.checkout-pay-box,
.checkout-methods,
.checkout-actions,
.order-status-head,
.order-code-box {
  margin-left: 22px;
  margin-right: 22px;
}

.checkout-card > :last-child {
  margin-bottom: 22px;
}

.checkout-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.checkout-field > span,
.checkout-methods > span,
.checkout-pay-box > span,
.order-code-box > span,
.checkout-lines span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.checkout-field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.checkout-field input:focus {
  outline: 2px solid rgba(0, 212, 164, .24);
  border-color: var(--green);
}

.checkout-pay-box {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 10px;
  background: #fbfbfc;
  padding: 12px 14px;
}

.checkout-pay-box strong {
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1;
  font-weight: var(--heading-weight);
}

.checkout-methods {
  display: grid;
  gap: 10px;
}

.checkout-method {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--text);
  border-radius: 10px;
  background: var(--text);
  color: #fff;
  padding: 0 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.checkout-method span {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: inset 0 0 0 5px var(--text);
}

.checkout-summary {
  padding: 20px;
}

.checkout-summary-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.checkout-method-list {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.checkout-pay-method {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  padding: 11px 13px;
  font: inherit;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.checkout-pay-method:hover {
  border-color: var(--text);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
  transform: translateY(-1px);
}

.checkout-pay-method span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.checkout-pay-method strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 750;
}

.checkout-summary-head > span,
.status-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 24px;
  margin-bottom: 10px;
  border: 1px solid rgba(0, 212, 164, .28);
  border-radius: 999px;
  background: var(--soft-blue);
  color: var(--green-deep);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 600;
}

.checkout-summary-head > strong {
  display: block;
  font-size: 24px;
  line-height: 1.18;
  font-weight: var(--heading-weight);
}

.checkout-lines {
  display: grid;
  gap: 0;
  margin: 16px 0;
}

.checkout-lines div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}

.checkout-lines div:first-child {
  border-top: 1px solid var(--line);
}

.checkout-lines strong {
  text-align: right;
  font-weight: 600;
}

.order-status-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.order-status-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f2f4f7;
  color: #5f6672;
  font-size: 20px;
  font-weight: 750;
}

.order-status-mark.is-success,
.status-badge.is-success {
  border-color: rgba(0, 212, 164, .38);
  background: var(--soft-blue);
  color: var(--green-deep);
}

.status-badge.is-pending {
  border-color: #e4e7ec;
  background: #f7f7f8;
  color: #5f6672;
}

.order-status-card h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
}

.order-code-box {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 10px;
  background: #fbfbfc;
  padding: 14px;
}

.order-code-box.is-license {
  border-color: rgba(0, 212, 164, .38);
  background: var(--soft-blue);
}

.order-code-box strong {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(18px, 3vw, 26px);
  line-height: 1.3;
  word-break: break-all;
}

.order-code-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.pagination a {
  min-width: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--muted);
}

.pagination a.active {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}

.docs-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 760px);
  gap: 64px;
  padding-top: 54px;
  padding-bottom: 88px;
}

.docs-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 14px;
}

.docs-sidebar strong {
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 400;
}

.docs-sidebar a {
  min-height: 32px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  padding: 0 10px;
  font-weight: 400;
}

.docs-sidebar a:hover {
  background: var(--soft);
  color: var(--text);
}

.docs-content h1 {
  margin-left: 0;
  margin-right: 0;
}

.docs-content .hero-copy {
  margin-left: 0;
  margin-right: 0;
}

.docs-content code {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--soft);
  padding: 2px 6px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: .92em;
}

.docs-section {
  padding-top: 42px;
  scroll-margin-top: 96px;
}

.docs-section h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: var(--heading-weight);
}

.docs-section p {
  color: var(--muted);
  line-height: 1.72;
}

.timeline {
  max-width: 900px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 36px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline-item time {
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.timeline-item h2 {
  margin-bottom: 12px;
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: var(--heading-weight);
}

.timeline-item p {
  color: var(--muted);
  line-height: 1.72;
}

.timeline-item ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.download-grid,
.two-column {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  align-items: start;
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 28px;
}

.card h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.28;
  font-weight: 600;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.card.highlight {
  border-color: rgba(0, 212, 164, .5);
  background: var(--soft-blue);
}

.feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: var(--green);
  color: var(--text);
  font-weight: 400;
}

.app-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
}

.app-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.app-icon {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--soft-blue);
  border: 1px solid rgba(0, 212, 164, .34);
}

.app-card:nth-child(2n) .app-icon {
  background: #fafafa;
  border-color: var(--line);
}

.app-type {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.app-card h3 {
  margin-bottom: 8px;
  font-weight: 600;
}

.app-card p {
  color: var(--muted);
}

.app-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
  color: var(--subtle);
  font-size: 14px;
}

.meta-list {
  display: grid;
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.meta-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 400;
}

.meta-item strong {
  color: var(--text);
  text-align: right;
  font-weight: 400;
}

.code-block {
  overflow-x: auto;
  margin: 0;
  border-radius: 8px;
  background: var(--code);
  color: #edf5ff;
  padding: 26px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.85;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  color: var(--muted);
}

.footer .site-shell {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.footer-links a:hover {
  color: var(--text);
}

.empty-state {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px;
  color: var(--muted);
  background: var(--soft);
  text-align: center;
}

.admin-body {
  --admin-font:
    "Public Sans",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    "Noto Sans SC",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  --admin-bg: #ffffff;
  --admin-surface: #ffffff;
  --admin-soft: #fafafa;
  --admin-muted-soft: #f4f4f5;
  --admin-line: #e4e4e7;
  --admin-line-strong: #d4d4d8;
  --admin-text: #18181b;
  --admin-muted: #71717a;
  --admin-faint: #a1a1aa;
  --admin-accent: #18181b;
  --admin-accent-soft: #f4f4f5;
  background: var(--admin-bg);
  color: var(--admin-text);
  font-family: var(--admin-font);
  font-size: 14px;
  font-weight: 400;
}

.admin-shell {
  min-height: 100dvh;
  background: var(--admin-bg);
  font-family: var(--admin-font);
}

.admin-body .layui-layout,
.admin-body .layui-nav,
.admin-body .layui-btn,
.admin-body input,
.admin-body select,
.admin-body textarea,
.admin-body button {
  font-family: var(--admin-font);
}

.admin-body input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.admin-body select,
.admin-body textarea {
  border-color: var(--admin-line);
  border-radius: 8px;
  background-color: #fff;
  color: var(--admin-text);
}

.admin-body a:focus,
.admin-body button:focus,
.admin-body input:focus,
.admin-body select:focus,
.admin-body textarea:focus {
  outline: 0;
}

.admin-body a:focus-visible,
.admin-body button:focus-visible,
.admin-body input:focus-visible,
.admin-body select:focus-visible,
.admin-body textarea:focus-visible {
  outline: 2px solid rgba(24, 24, 27, .16);
  outline-offset: 2px;
}

.layui-layout-admin .admin-topbar {
  left: 0;
  right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  border-bottom: 0;
  background: rgba(255, 255, 255, .96) !important;
  color: var(--admin-text);
  box-shadow: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.layui-layout-admin .admin-sidebar {
  top: 56px;
  bottom: 0;
  width: 220px;
  border-right: 1px solid var(--admin-line);
  background: #fbfbfc;
  padding: 10px 8px;
  overflow: hidden;
}

.admin-sidebar .layui-side-scroll {
  width: 220px;
  height: 100%;
  overflow-x: hidden;
}

.admin-brand {
  min-height: 38px;
  display: flex;
  align-items: center;
  margin: 0 4px 8px;
  padding: 0 6px;
  font-size: 14px;
  font-weight: 600;
}

.admin-nav.layui-nav {
  margin: 0;
  padding: 0 0 8px;
  border: 0 !important;
  background: transparent !important;
  color: var(--admin-text);
  box-shadow: none !important;
}

.admin-nav-label {
  min-height: 28px;
  display: flex;
  align-items: center;
  padding: 10px 10px 3px;
  color: var(--admin-faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 20px;
}

.admin-nav.layui-nav-tree .layui-nav-item {
  border: 0 !important;
  background: transparent !important;
  line-height: normal;
}

.admin-nav.layui-nav-tree .layui-nav-item a {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 1px 0;
  border: 0 !important;
  border-radius: 7px;
  padding: 0 10px;
  background: transparent !important;
  color: #3f3f46;
  font-size: 13px;
  line-height: 36px;
  outline: 0;
  box-shadow: none !important;
}

.admin-nav.layui-nav-tree .layui-nav-item a:hover,
.admin-nav.layui-nav-tree .layui-this > a {
  background: #f0f0f2 !important;
  color: var(--admin-text);
}

.admin-nav.layui-nav-tree .layui-this,
.admin-nav.layui-nav-tree .layui-this > a,
.admin-nav.layui-nav-tree .layui-this > a:hover {
  border: 0 !important;
  box-shadow: none !important;
}

.admin-nav.layui-nav-tree .layui-nav-item a:focus {
  outline: 0;
}

.admin-nav.layui-nav-tree .layui-nav-item a:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(24, 24, 27, .14) !important;
}

.admin-nav.layui-nav-tree .layui-this:after,
.admin-nav.layui-nav-tree .layui-nav-bar,
.admin-nav.layui-nav-tree .layui-this::before,
.admin-nav.layui-nav-tree .layui-this::after {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
}

.admin-nav-icon,
.admin-nav-external,
.admin-head-action .material-icons-outlined,
.admin-side-foot .material-icons-outlined,
.admin-menu-toggle .material-icons-outlined,
.admin-icon-link .material-icons-outlined,
.admin-user-trigger .material-icons-outlined,
.admin-dropdown-panel .material-icons-outlined {
  font-size: 18px;
  line-height: 1;
}

.admin-nav-external {
  margin-left: auto;
  color: var(--admin-faint);
  font-size: 15px;
}

.admin-side-foot {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--admin-line);
}

.admin-side-foot a {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 7px;
  padding: 0 10px;
  color: var(--admin-muted);
  font-size: 13px;
  outline: 0;
  box-shadow: none;
}

.admin-side-foot a:hover {
  background: #f0f0f2;
  color: var(--admin-text);
}

.admin-workspace {
  min-width: 0;
  min-height: calc(100dvh - 56px);
}

.layui-layout-admin .admin-workspace {
  top: 56px;
  left: 220px;
  bottom: 0;
  overflow: auto;
}

.admin-topbar {
  min-height: 56px;
  gap: 10px;
  padding: 0 18px;
  border: 0 !important;
  box-shadow: none !important;
}

.admin-topbar.layui-header,
.admin-topbar .layui-logo,
.admin-topbar .admin-topbar-title {
  border: 0 !important;
  box-shadow: none !important;
}

.admin-menu-toggle {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent !important;
  color: var(--admin-muted);
  cursor: pointer;
}

.admin-menu-toggle:hover,
.admin-icon-link:hover {
  border-color: var(--admin-line);
  background: #f7f7f8 !important;
  color: var(--admin-text);
}

.admin-menu-toggle:focus-visible,
.admin-icon-link:focus-visible {
  outline: 2px solid rgba(24, 24, 27, .16);
  outline-offset: 2px;
}

.admin-topbar .admin-topbar-title {
  position: static;
  width: auto;
  min-width: 0;
  height: 56px;
  flex: 1;
  padding-left: 0;
  color: var(--admin-text);
  font-size: 15px;
  font-weight: 650;
  line-height: 56px;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-topbar-menu {
  position: relative;
}

.admin-topbar-menu[open] {
  z-index: 1020;
}

.admin-topbar-menu > summary {
  list-style: none;
}

.admin-topbar-menu > summary::-webkit-details-marker {
  display: none;
}

.admin-notification-trigger {
  position: relative;
  cursor: pointer;
}

.admin-notification-count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 999px;
  padding: 0 4px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 12px;
}

.admin-user-trigger {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  padding: 3px 8px 3px 4px;
  background: #fff;
  color: var(--admin-text);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
  transition: background .16s ease, border-color .16s ease;
}

.admin-user-trigger:hover,
.admin-topbar-menu[open] .admin-user-trigger {
  border-color: #d4d4d8;
  background: #f7f7f8;
}

.admin-avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #18181b;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
}

.admin-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.admin-user-text {
  min-width: 0;
  display: grid;
  gap: 1px;
  text-align: left;
}

.admin-user-text strong,
.admin-user-text small {
  max-width: 116px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-text strong {
  color: var(--admin-text);
  font-size: 12px;
  font-weight: 650;
  line-height: 15px;
}

.admin-user-text small {
  color: var(--admin-muted);
  font-size: 11px;
  line-height: 13px;
}

.admin-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1010;
  width: min(360px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .14);
}

.admin-dropdown-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--admin-line);
  padding: 0 14px;
}

.admin-dropdown-head strong {
  font-size: 14px;
  font-weight: 700;
}

.admin-dropdown-head button {
  color: var(--admin-muted);
  font-size: 12px;
}

.admin-dropdown-head button:hover {
  color: var(--admin-text);
}

.admin-notification-list {
  max-height: 360px;
  overflow: auto;
}

.admin-notification-item {
  position: relative;
  display: grid;
  gap: 5px;
  border-bottom: 1px solid var(--admin-line);
  padding: 12px 14px 12px 18px;
}

.admin-notification-item:last-child {
  border-bottom: 0;
}

.admin-notification-item.is-unread::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 8px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--admin-accent);
}

.admin-notification-item span {
  color: var(--admin-muted);
  font-size: 11px;
  line-height: 15px;
}

.admin-notification-item strong {
  color: var(--admin-text);
  font-size: 13px;
  font-weight: 650;
  line-height: 18px;
}

.admin-notification-item p {
  margin: 0;
  color: #52525b;
  font-size: 12px;
  line-height: 18px;
}

.admin-notification-item time {
  color: var(--admin-faint);
  font-size: 11px;
}

.admin-dropdown-empty {
  padding: 22px 16px;
  color: var(--admin-muted);
  font-size: 13px;
  text-align: center;
}

.admin-dropdown-foot {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--admin-line);
  color: var(--admin-text);
  font-size: 13px;
  font-weight: 600;
}

.admin-dropdown-foot:hover {
  background: #f7f7f8;
}

.admin-user-panel {
  width: 240px;
  padding: 6px;
}

.admin-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
}

.admin-user-card .admin-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.admin-user-card div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.admin-user-card strong,
.admin-user-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-card strong {
  color: var(--admin-text);
  font-size: 13px;
  font-weight: 650;
}

.admin-user-card small {
  color: var(--admin-muted);
  font-size: 12px;
}

.admin-user-panel a {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 8px;
  padding: 0 9px;
  color: var(--admin-text);
  font-size: 13px;
}

.admin-user-panel a:hover {
  background: #f4f4f5;
}

.admin-user-panel a.is-danger {
  color: #b91c1c;
}

.admin-notice-compose form {
  display: grid;
  gap: 14px;
}

.admin-status.is-muted {
  background: #f4f4f5;
  color: #71717a;
}

.admin-icon-link {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--admin-muted);
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.admin-drawer-mask {
  display: none;
}

.admin-main {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto 0 0;
  padding: 22px 24px;
}

.admin-body .btn,
.admin-body .layui-btn {
  min-height: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  padding: 0 14px;
  border-color: transparent;
  background: #0d9488;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 40px;
  box-shadow: none;
  outline: 0;
}

.admin-body .layui-btn-sm {
  min-height: 34px;
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
  line-height: 34px;
}

.admin-body .btn:hover,
.admin-body .layui-btn:hover {
  border-color: transparent;
  background: #0f766e;
  color: #fff;
}

.admin-body .btn.primary {
  border-color: transparent;
  background: #0d9488;
  color: #fff;
  box-shadow: none;
}

.admin-body .btn.primary:hover {
  border-color: transparent;
  background: #0f766e;
  color: #fff;
}

.admin-body .btn.text {
  background: transparent;
  color: #0d9488;
}

.admin-body .layui-btn-primary,
.admin-body .btn:not(.primary) {
  border: 1px solid var(--admin-line);
  background: #fff;
  color: var(--admin-text);
}

.admin-body .layui-btn-primary:hover,
.admin-body .btn:not(.primary):hover {
  border-color: var(--admin-line-strong);
  background: #f4f4f5;
  color: var(--admin-text);
}

.admin-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 0;
  margin-bottom: 0;
}

.admin-body .admin-page-head h1 {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.admin-page-head.has-action,
.admin-page-head:has(.admin-head-action) {
  min-height: 40px;
  margin-bottom: 16px;
}

.admin-page-head h1 + * {
  margin: 0;
}

.admin-visible-title {
  margin: 0;
  color: var(--admin-text);
  font-size: clamp(22px, 1.8vw, 26px);
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: 0;
}

.admin-head-action {
  flex-shrink: 0;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.admin-stats article,
.admin-panel,
.admin-form-panel,
.admin-login-card {
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: var(--admin-surface);
  box-shadow: none;
}

.admin-stats article {
  min-height: 92px;
  padding: 14px 16px;
}

.admin-stats span {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.admin-stats strong {
  display: block;
  margin-top: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
}

.admin-panel {
  overflow: hidden;
}

.admin-panel + .admin-panel,
.admin-form-panel + .admin-form-panel {
  margin-top: 14px;
}

.admin-panel-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  border-bottom: 1px solid var(--admin-line);
  background: #fff;
}

.admin-form-panel > .admin-panel-head {
  margin: -18px -18px 16px;
}

.admin-panel-head-plain {
  background: transparent;
}

.admin-panel-head h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
}

.admin-form-panel > h2 {
  margin: 0 0 12px;
  color: var(--admin-text);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 600;
}

.admin-panel-head a,
.admin-panel-head span {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 500;
}

.admin-panel-head a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--admin-accent);
}

.admin-panel-head a:hover {
  background: var(--admin-accent-soft);
}

.admin-user-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-mini-list {
  display: grid;
  min-height: 172px;
}

.admin-mini-item {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 5px;
  border-bottom: 1px solid var(--admin-line);
  padding: 11px 15px;
  color: inherit;
  overflow-wrap: anywhere;
}

.admin-mini-item:last-child {
  border-bottom: 0;
}

a.admin-mini-item:hover,
a.admin-recommend-card:hover {
  background: #fafafa;
}

.admin-mini-item strong,
.admin-recommend-card strong {
  color: var(--admin-text);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
}

.admin-mini-item span,
.admin-recommend-card span {
  color: var(--admin-muted);
  font-size: 12px;
  line-height: 1.45;
}

.admin-empty-state {
  min-height: 110px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 15px;
  color: var(--admin-muted);
  font-size: 13px;
  line-height: 1.55;
}

.admin-empty-state a {
  color: var(--admin-accent);
  font-weight: 600;
}

.admin-recommend-panel,
.admin-developer-entry {
  margin-top: 14px;
}

.admin-recommend-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-recommend-card {
  min-height: 84px;
  display: grid;
  align-content: center;
  gap: 7px;
  border-right: 1px solid var(--admin-line);
  padding: 14px 16px;
  color: inherit;
  overflow-wrap: anywhere;
}

.admin-recommend-card:last-child {
  border-right: 0;
}

.admin-developer-entry .admin-form-panel {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.admin-developer-entry p {
  margin: 0;
  color: var(--admin-muted);
  font-size: 13px;
  line-height: 1.65;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th {
  background: var(--admin-soft);
  color: var(--admin-faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-align: left;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--admin-line);
  padding: 10px 14px;
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: #fafafa;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-table td strong {
  display: block;
  margin-bottom: 2px;
  color: var(--admin-text);
  font-weight: 600;
}

.admin-table td span {
  color: var(--admin-muted);
  font-size: 12px;
}

.admin-status {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--admin-line);
  border-radius: 999px;
  padding: 0 9px;
  background: #fafafa;
  color: var(--admin-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.admin-roadmap {
  margin-top: 16px;
}

.admin-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.admin-roadmap-grid article {
  min-height: 118px;
  border-right: 1px solid var(--admin-line);
  padding: 16px;
}

.admin-roadmap-grid article:last-child {
  border-right: 0;
}

.admin-roadmap-grid strong {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.admin-roadmap-grid span {
  color: var(--admin-muted);
  font-size: 13px;
  line-height: 1.55;
}

.admin-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.admin-actions a,
.admin-actions button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 7px;
  padding: 0 10px;
  background: var(--admin-accent-soft);
  color: var(--admin-text);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  outline: 0;
  box-shadow: none;
}

.admin-actions a:hover,
.admin-actions button:hover {
  background: #e4e4e7;
}

.admin-actions button {
  background: #fef2f2;
  color: #b91c1c;
}

.admin-actions button:not(.danger) {
  background: var(--admin-accent-soft);
  color: var(--admin-text);
}

.admin-withdraw-panel {
  margin-bottom: 14px;
}

.admin-withdraw-review {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto auto;
  align-items: center;
}

.admin-withdraw-review input {
  min-height: 30px;
  border: 1px solid var(--admin-line);
  border-radius: 7px;
  padding: 0 9px;
  background: #fff;
  color: var(--admin-text);
  font: inherit;
  font-size: 12px;
}

.admin-withdraw-review input:focus {
  outline: 0;
  border-color: var(--admin-line-strong);
  box-shadow: 0 0 0 3px rgba(24, 24, 27, .06);
}

.admin-alert {
  margin-bottom: 14px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  padding: 11px 13px;
  background: #fafafa;
  color: var(--admin-text);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
}

.admin-alert.error {
  border-color: #f0c6bd;
  background: #fff7f5;
  color: #a23a2f;
}

.admin-source-note {
  margin: 0 0 14px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--admin-muted);
  font-size: 13px;
  line-height: 1.55;
}

.admin-source-note strong {
  color: var(--admin-text);
  font-weight: 650;
}

.admin-source-note span {
  margin-left: 8px;
}

.admin-form-panel {
  padding: 18px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 20px;
}

.admin-app-form-grid {
  grid-template-columns: 1fr;
}

.admin-form-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--admin-line);
}

.admin-form-section-spaced {
  margin-top: 24px;
}

.admin-form-section-head span {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

.admin-form-section-head strong {
  color: var(--admin-text);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.2;
}

.admin-form-panel label,
.admin-login-card label {
  min-width: 0;
  display: grid;
  gap: 8px;
  color: var(--admin-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.admin-form-panel label > span,
.admin-login-card label > span {
  color: var(--admin-text);
  min-width: 0;
  overflow-wrap: normal;
}

.admin-form-panel input,
.admin-form-panel select,
.admin-form-panel textarea,
.admin-login-card input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  box-sizing: border-box;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  padding: 8px 11px;
  background: #fff;
  color: var(--admin-text);
  font: inherit;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.admin-form-panel textarea {
  resize: vertical;
  line-height: 1.6;
}

.admin-form-panel input:focus,
.admin-form-panel select:focus,
.admin-form-panel textarea:focus,
.admin-login-card input:focus {
  outline: 0;
  border-color: var(--admin-accent);
  background: var(--admin-surface);
  box-shadow: 0 0 0 3px rgba(24, 24, 27, .08);
}

.field-error {
  color: #a73a32;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.admin-wide {
  margin-top: 20px;
}

.admin-shot-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.admin-shot-previews figure {
  margin: 0;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--admin-line, #e4e4e7);
  border-radius: 8px;
  overflow: hidden;
  background: #f4f4f5;
}

.admin-shot-previews img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.seo-settings-form {
  display: grid;
  gap: 14px;
}

.seo-settings-panel {
  display: grid;
  gap: 18px;
}

.seo-panel-title,
.admin-seo-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--admin-line);
}

.seo-panel-title h2 {
  margin: 3px 0 0;
  color: var(--admin-text);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
}

.seo-panel-title span,
.admin-seo-block-head span {
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.admin-switch {
  min-height: 34px;
  display: inline-flex !important;
  align-items: center;
  gap: 10px !important;
  color: var(--admin-muted) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.admin-switch-line {
  display: inline-flex !important;
  align-items: center;
  gap: 10px !important;
  color: var(--admin-text);
  font-size: 13px;
  font-weight: 500;
}

.admin-switch-line input[type="checkbox"] {
  width: 16px !important;
  min-width: 16px;
  height: 16px;
  min-height: 16px !important;
  accent-color: var(--admin-accent);
}

.admin-switch-list {
  display: grid;
  gap: 12px;
}

.admin-settings-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  max-width: 1080px;
}

.admin-settings-grid > .admin-form-panel {
  min-width: 0;
}

.admin-settings-grid > .admin-form-panel + .admin-form-panel {
  margin-top: 0;
}

.admin-rich-editor {
  position: relative;
  overflow: visible;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  background: #fff;
}

.admin-rich-toolbar {
  position: relative;
  z-index: 3;
  overflow: visible;
  border-bottom: 1px solid var(--admin-line);
  background: #f8f8f8;
}

.admin-rich-toolbar .w-e-bar {
  min-width: max-content;
  border-radius: 0;
  background: transparent;
}

.admin-rich-toolbar .w-e-bar-item button {
  border-radius: 6px;
  color: var(--admin-text);
}

.admin-rich-toolbar .w-e-drop-panel,
.admin-rich-toolbar .w-e-modal {
  z-index: 20;
}

.admin-rich-toolbar .w-e-modal {
  max-width: min(360px, calc(100vw - 32px));
}

.admin-body > .w-e-modal {
  position: fixed !important;
  top: max(76px, calc(env(safe-area-inset-top) + 64px)) !important;
  left: 50% !important;
  right: auto !important;
  z-index: 1100 !important;
  width: min(360px, calc(100vw - 32px)) !important;
  min-width: 0 !important;
  max-width: calc(100vw - 32px) !important;
  max-height: min(70dvh, 520px);
  overflow: auto;
  border-radius: 10px;
  padding: 18px 14px 0;
  transform: translateX(-50%) !important;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .16);
}

.admin-body > .w-e-modal input[type="text"],
.admin-body > .w-e-modal input[type="number"],
.admin-body > .w-e-modal textarea {
  min-height: 38px;
  border-radius: 8px;
}

.admin-body > .w-e-modal .btn-close {
  top: 8px;
  right: 8px;
}

.admin-rich-area {
  min-height: 300px;
  color: var(--admin-text);
  font-size: 14px;
  line-height: 1.7;
}

.admin-rich-area .w-e-text-container {
  min-height: 300px !important;
  border: 0 !important;
  background: #fff;
}

.admin-rich-area .w-e-scroll {
  min-height: 300px;
}

.admin-rich-area [data-slate-editor] {
  min-height: 260px;
  padding: 12px;
  color: var(--admin-text);
  font-size: 14px;
  line-height: 1.75;
}

.admin-rich-area [data-slate-editor] input[type="checkbox"] {
  width: 16px !important;
  min-width: 16px;
  height: 16px !important;
  min-height: 16px !important;
  margin: 0;
  vertical-align: -3px;
  accent-color: var(--admin-accent);
}

.app-rich-content {
  min-width: 0;
  display: grid;
  gap: 12px;
  overflow-wrap: break-word;
}

.app-rich-content p,
.app-rich-content ul,
.app-rich-content ol,
.app-rich-content blockquote,
.app-rich-content pre,
.app-rich-content table {
  margin: 0;
}

.app-rich-content ul,
.app-rich-content ol {
  padding-left: 1.3em;
}

.app-rich-content li + li {
  margin-top: 4px;
}

.app-rich-content [data-w-e-type="todo"] {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fafafa;
  color: var(--text);
  line-height: 1.6;
}

.app-rich-content [data-w-e-type="todo"] input[type="checkbox"] {
  width: 16px !important;
  min-width: 16px;
  height: 16px !important;
  min-height: 16px !important;
  margin: 3px 0 0;
  flex: 0 0 16px;
  accent-color: var(--green-deep);
}

.app-rich-content [data-w-e-type="todo"] input[type="checkbox"]:disabled {
  cursor: default;
  opacity: 1;
}

.app-rich-content [data-w-e-type="todo"] span {
  min-width: 0;
}

.app-rich-content h2,
.app-rich-content h3,
.app-rich-content h4 {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 1.18em;
  line-height: 1.35;
  font-weight: 650;
}

.app-rich-content blockquote {
  border-left: 3px solid #d4d4d8;
  padding: 8px 0 8px 12px;
  background: #fafafa;
  color: var(--muted);
}

.app-rich-content img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.app-rich-content pre,
.app-rich-content code {
  border-radius: 6px;
  background: #f5f5f5;
  color: #18181b;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.app-rich-content pre {
  overflow: auto;
  padding: 12px;
  font-size: 13px;
  line-height: 1.65;
}

.app-rich-content code {
  padding: 2px 5px;
}

.app-rich-content hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
}

.app-rich-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 14px;
  -webkit-overflow-scrolling: touch;
}

.app-rich-content th,
.app-rich-content td {
  min-width: 120px;
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
}

.app-rich-content th {
  background: #f7f7f7;
  font-weight: 600;
}

.app-rich-content a {
  color: var(--green-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.admin-switch input {
  width: 34px !important;
  min-width: 34px;
  height: 19px;
  min-height: 19px !important;
  appearance: none;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 0 !important;
  background: #d4d4d8 !important;
  box-shadow: inset 0 0 0 1px rgba(24, 24, 27, .08);
  cursor: pointer;
}

.admin-switch input::before {
  content: "";
  width: 15px;
  height: 15px;
  display: block;
  margin: 2px;
  border-radius: 50%;
  background: #fff;
  transition: transform .16s ease;
}

.admin-switch input:checked {
  background: var(--admin-accent) !important;
}

.admin-switch input:checked::before {
  transform: translateX(15px);
}

.seo-settings-hint {
  margin: 0;
  color: var(--admin-muted);
  font-size: 12px;
  line-height: 1.6;
}

.seo-settings-actions {
  margin-top: 0;
}

.admin-seo-block {
  margin-top: 20px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  padding: 16px;
  background: #fafafa;
}

.admin-seo-block-head {
  margin-bottom: 16px;
}

.admin-seo-block-head strong {
  color: var(--admin-text);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 600;
}

.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.admin-login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(32px, env(safe-area-inset-top)) 16px max(32px, env(safe-area-inset-bottom));
  background: #fbfbfc;
}

.admin-login-card {
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
}

.admin-login-brand {
  margin-bottom: 0;
  font-size: 15px;
}

.admin-login-card h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.22;
  font-weight: 650;
}

.auth-title {
  display: grid;
  gap: 6px;
}

.auth-title p {
  margin: 0;
  color: var(--admin-muted);
  font-size: 14px;
  line-height: 1.6;
}

.auth-check {
  min-height: 24px;
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px !important;
  color: #4b5563;
  font-size: 13px;
}

.auth-check input {
  width: 16px !important;
  min-height: 16px !important;
  margin: 0;
  accent-color: #18181b;
}

.auth-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
}

.auth-links a {
  color: #4b5563;
}

.auth-links a:hover {
  color: var(--admin-text);
}

.admin-login-card button {
  width: 100%;
  min-height: 44px;
  margin-top: 0;
  border-radius: 8px;
}

.admin-login-card button:disabled {
  border-color: #d9dee6;
  background: #eef1f4;
  color: #8b949e;
  cursor: not-allowed;
}

.admin-login-card small {
  display: block;
  margin-top: 0;
  color: var(--admin-muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.install-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(32px, env(safe-area-inset-top)) 16px max(32px, env(safe-area-inset-bottom));
  background: #fbfbfc;
}

.install-shell {
  width: min(720px, 100%);
  gap: 20px;
  padding: 28px;
}

.install-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.install-checks span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--admin-line);
  border-radius: 7px;
  padding: 0 10px;
  background: #fafafa;
  color: var(--admin-muted);
  font-size: 12px;
  font-weight: 500;
}

.install-checks i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: currentColor;
}

.install-checks .ok {
  border-color: #d7e4dc;
  background: #fbfffc;
  color: #256343;
}

.install-checks .bad {
  border-color: #efc7c7;
  background: #fff7f7;
  color: #b42318;
}

.install-head {
  display: grid;
  gap: 14px;
}

.install-form {
  display: grid;
  gap: 18px;
}

.install-form-section {
  display: grid;
  gap: 12px;
}

.install-form-section + .install-form-section {
  border-top: 1px solid var(--admin-line);
  padding-top: 20px;
}

.install-section-head {
  display: grid;
  gap: 3px;
}

.install-section-head span {
  color: var(--admin-muted);
  font-size: 12px;
  line-height: 1.3;
}

.install-section-head strong {
  color: var(--admin-text);
  font-size: 15px;
  line-height: 1.3;
  font-weight: 650;
}

.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 12px;
}

.install-grid-even {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.install-actions {
  display: grid;
  gap: 10px;
}

/* 已安装提示页（安装入口锁定说明） */
.admin-alert.info {
  border-color: #c9d8ef;
  background: #f2f7fd;
  color: #31537e;
}
.admin-alert.info code {
  padding: 1px 5px;
  border-radius: 4px;
  background: #e3ecf8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}
.install-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--admin-line);
  font-size: 13px;
  color: #666;
  line-height: 1.8;
}
.install-note ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.admin-alert.error > div + div {
  margin-top: 6px;
}

.admin-code-inline {
  display: inline-flex;
  max-width: 100%;
  border: 1px solid var(--admin-line);
  border-radius: 6px;
  padding: 4px 7px;
  background: #fafafa;
  color: var(--admin-text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  white-space: normal;
}

.admin-purchase-secondary {
  margin-top: 14px;
}

.api-token-value {
  display: block;
  margin-top: 8px;
  padding: 8px 10px;
  background: #1c1c1c;
  color: #6ee7b7;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  word-break: break-all;
  user-select: all;
}

@media (max-width: 1100px) {
  .site-user-trigger {
    width: auto;
    height: auto;
    max-width: none;
    padding: 0;
  }

  .site-user-trigger .site-trigger-surface {
    width: 36px;
    height: 36px;
    max-width: none;
    padding: 4px;
  }

  .site-user-name {
    display: none;
  }

  .admin-settings-grid {
    max-width: 760px;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body {
    font-size: 15px;
  }

  .nav {
    position: relative;
    width: min(100%, calc(100vw - 24px));
    gap: 4px;
    min-height: 58px;
    padding: 0 6px;
    border-radius: 999px;
  }

  .nav-burger {
    display: flex;
    order: 4;
    width: 36px;
    height: 36px;
    margin-left: 0;
    border-color: transparent;
    background: transparent;
    border-radius: 10px;
  }

  .nav-actions {
    order: 3;
    margin-left: auto;
    gap: 4px;
  }

  .nav-menu {
    display: block;
    order: 5;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 42;
    padding: 10px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 24px 50px rgba(15, 23, 42, .10);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height .24s ease, opacity .2s ease;
  }

  .nav-toggle:checked ~ .nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 31;
    display: block;
    cursor: default;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    font-size: 14px;
    font-weight: 400;
  }

  .nav-links a {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 10px;
  }

  .nav-actions {
    flex-direction: row;
    align-items: center;
  }

  .nav-actions .btn {
    min-height: 34px;
    padding: 0 12px;
    font-weight: 500;
  }

  .nav-actions .btn.primary {
    display: none;
  }

  .site-topbar-menu {
    width: auto;
    height: 36px;
    align-items: center;
    justify-content: center;
  }

  .site-account-cluster {
    gap: 4px;
    align-items: center;
    height: 36px;
  }

  .site-message-button,
  .site-user-trigger {
    flex: 0 0 auto;
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    color: #1f2933;
    -webkit-user-select: none;
    user-select: none;
  }

  .site-message-button .site-trigger-surface,
  .site-user-trigger .site-trigger-surface {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    min-height: 36px;
    margin: 0;
    padding: 0;
    border-radius: 10px;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
  }

  .site-message-button:hover .site-trigger-surface,
  .site-user-trigger:hover .site-trigger-surface {
    background: transparent;
  }

  .site-message-button:active .site-trigger-surface,
  .site-user-trigger:active .site-trigger-surface,
  .nav-burger:active,
  .site-topbar-menu[open] .site-message-button .site-trigger-surface,
  .site-topbar-menu[open] .site-user-trigger .site-trigger-surface {
    background: rgba(15, 23, 42, .07);
    color: var(--text);
  }

  .site-message-button .material-icons-outlined {
    font-size: 17px;
  }

  .site-message-button em {
    top: 2px;
    right: 2px;
    min-width: 14px;
    height: 14px;
    border-width: 2px;
    padding: 0 4px;
    font-size: 9px;
    line-height: 10px;
  }

  .site-user-trigger {
    max-width: none;
    justify-content: center;
  }

  .site-user-trigger .site-avatar {
    width: 25px;
    height: 25px;
    font-size: 12px;
  }

  .site-user-name,
  .site-user-chevron {
    display: none !important;
    width: 0;
    height: 0;
    margin: 0;
    overflow: hidden;
  }

  .site-dropdown-panel {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 68px);
    right: 12px;
    left: 12px;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .10);
  }

  .site-user-panel,
  .site-notification-panel {
    width: auto;
  }

  .site-notification-list {
    max-height: min(58vh, 360px);
  }

  .nav-toggle:checked ~ .nav-menu {
    max-height: 80vh;
    opacity: 1;
    pointer-events: auto;
  }

  .nav:has(.nav-toggle:checked) {
    border-color: rgba(15, 23, 42, .08);
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .07);
  }

  .nav-toggle:checked ~ .nav-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle:checked ~ .nav-burger span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked ~ .nav-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    margin-top: -74px;
    padding: 112px 0 48px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8f7 100%);
  }

  .hero::after {
    display: none;
  }

  .hero.compact {
    margin-top: -74px;
    padding: 100px 0 42px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-grid .hero-inner,
  .hero-grid h1,
  .hero-grid .hero-copy {
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(34px, 10.8vw, 50px);
    line-height: 1.08;
    font-weight: var(--heading-weight);
  }

  .hero-grid h1 {
    font-size: clamp(28px, 7vw, 38px);
    font-weight: var(--heading-weight);
  }

  .hero-copy {
    max-width: 34rem;
    font-size: 16px;
    line-height: 1.72;
  }

  .eyebrow {
    min-height: 30px;
    margin-bottom: 18px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 400;
  }

  h1 {
    font-size: clamp(34px, 10.8vw, 50px);
    font-weight: var(--heading-weight);
  }

  h2 {
    font-size: clamp(28px, 8vw, 42px);
    line-height: 1.1;
    font-weight: var(--heading-weight);
  }

  .section-note {
    font-size: 16px;
    line-height: 1.7;
  }

  .card h3,
  .catalog-title a,
  .timeline-item h2,
  .docs-section h2,
  .store-heading h1 {
    font-weight: var(--heading-weight);
  }

  .hero-grid .hero-copy {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-grid .hero-actions {
    justify-content: center;
  }

  .hero-trust {
    text-align: center;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
    padding: 34px 18px;
  }

  .metric {
    padding: 6px 10px;
  }

  .metric:nth-child(2n) {
    border-right: 0;
  }

  .metric:nth-child(-n + 2) {
    border-bottom: 0;
  }

  .feature-grid,
  .download-grid,
  .two-column,
  .docs-layout,
  .timeline-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .docs-layout {
    gap: 26px;
    padding-top: 40px;
    padding-bottom: 68px;
  }

  .docs-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
  }

  .docs-sidebar strong {
    width: 100%;
  }

  .docs-sidebar a {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 12px;
  }

  .store-heading {
    display: block;
  }

  .store-heading h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .store-search {
    margin-top: 20px;
  }

  .store-tabs a {
    border-radius: 10px;
  }

  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
  }

  .app-detail-hero {
    margin-top: -74px;
    padding: 104px 0 44px;
  }

  .app-detail-grid,
  .app-detail-content,
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .app-detail-grid h1 {
    font-size: clamp(34px, 10.8vw, 50px);
  }

  .app-detail-panel {
    padding: 18px;
  }

  .checkout-hero {
    margin-top: -74px;
    padding: 104px 0 28px;
  }

  .checkout-card-head {
    padding: 18px;
  }

  .checkout-card > .admin-alert,
  .checkout-field,
  .checkout-pay-box,
  .checkout-methods,
  .checkout-actions,
  .order-status-head,
  .order-code-box {
    margin-left: 18px;
    margin-right: 18px;
  }

  .detail-steps {
    grid-template-columns: 1fr;
  }

  .app-shot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .version-item {
    padding: 16px 18px;
  }

  .admin-shell {
    min-height: 100dvh;
  }

  body.admin-nav-open {
    overflow: hidden;
  }

  .layui-layout-admin .admin-sidebar {
    top: 56px;
    left: 0;
    width: min(17rem, calc(100vw - 24px));
    border-right: 1px solid var(--admin-line);
    padding: 12px 10px;
    transform: translateX(-100%);
    transition: transform .18s ease-out;
    z-index: 1002;
  }

  .admin-sidebar .layui-side-scroll {
    width: 100%;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }

  .admin-nav-open .admin-sidebar {
    transform: translateX(0);
    box-shadow: 12px 0 32px rgba(15, 23, 42, .12);
  }

  .admin-nav-open .admin-drawer-mask {
    position: fixed;
    inset: 56px 0 0;
    z-index: 1001;
    display: block;
    background: rgba(15, 23, 42, .20);
  }

  .layui-layout-admin .admin-workspace {
    top: 56px;
    left: 0;
  }

  .admin-topbar {
    min-height: 56px;
    padding: 0 max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
  }

  .admin-topbar .admin-topbar-title {
    height: 56px;
    line-height: 56px;
  }

  .admin-user-text,
  .admin-user-trigger .material-icons-outlined {
    display: none;
  }

  .admin-user-trigger {
    width: 36px;
    height: 36px;
    justify-content: center;
    padding: 0;
  }

  .admin-user-trigger .admin-avatar {
    width: 28px;
    height: 28px;
  }

  .admin-brand {
    display: flex;
    min-height: 38px;
  }

  .admin-side-foot {
    display: grid;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--admin-line);
  }

  .admin-nav {
    margin: 0;
    padding: 0 0 8px;
  }

  .admin-nav-label {
    display: block;
  }

  .admin-main {
    width: 100%;
    padding: 18px 16px;
  }

  .admin-stats,
  .admin-user-grid,
  .admin-form-grid,
  .admin-roadmap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-recommend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-recommend-card:nth-child(2n) {
    border-right: 0;
  }

  .admin-recommend-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--admin-line);
  }

  .admin-roadmap-grid article:nth-child(2n) {
    border-right: 0;
  }

  .admin-roadmap-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--admin-line);
  }
}

@media (max-width: 760px) {
  .admin-main {
    padding: 16px 12px max(22px, env(safe-area-inset-bottom));
  }

  .admin-page-head {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
  }

  .admin-body .admin-page-head h1 {
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    margin: -1px !important;
  }

  .admin-page-head .btn,
  .admin-page-head .layui-btn {
    width: 100%;
  }

  .admin-user-grid,
  .admin-form-grid,
  .admin-settings-grid,
  .admin-recommend-grid,
  .admin-roadmap-grid {
    grid-template-columns: 1fr;
  }

  .admin-panel-head {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding: 13px 14px;
  }

  .admin-panel-head a {
    min-height: 30px;
    padding: 0;
  }

  .admin-form-panel {
    padding: 16px;
  }

  .admin-settings-grid {
    max-width: 680px;
    gap: 12px;
  }

  .admin-settings-grid > .admin-form-panel + .admin-form-panel {
    margin-top: 0;
  }

  .admin-form-section-head,
  .seo-panel-title,
  .admin-seo-block-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .admin-source-note {
    padding: 11px 12px;
  }

  .admin-source-note span {
    display: block;
    margin: 4px 0 0;
  }

  .admin-table-wrap {
    overflow: visible;
  }

  .admin-table,
  .admin-table thead,
  .admin-table tbody,
  .admin-table tr,
  .admin-table th,
  .admin-table td {
    display: block;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table tbody {
    display: grid;
    gap: 8px;
    padding: 8px;
    background: #fafafa;
  }

  .admin-table tbody tr {
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
  }

  .admin-table tbody tr:hover {
    background: #fff;
  }

  .admin-table th,
  .admin-table td {
    border-bottom: 1px solid var(--admin-line);
    padding: 10px 11px;
  }

  .admin-table td {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
  }

  .admin-table td::before {
    content: attr(data-label);
    color: var(--admin-faint);
    font-size: 12px;
    font-weight: 600;
  }

  .admin-table td:last-child {
    border-bottom: 0;
  }

  .admin-table td strong,
  .admin-table td span,
  .admin-table td code {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .admin-actions {
    min-width: 0;
    align-items: stretch;
  }

  .admin-actions a,
  .admin-actions button {
    min-height: 34px;
    justify-content: center;
  }

  .admin-withdraw-review {
    grid-template-columns: 1fr;
  }

  .admin-withdraw-review input {
    min-height: 36px;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    padding: 8px 0;
  }

  .nav {
    min-height: 52px;
    border-radius: 999px;
    padding: 0 8px;
  }

  .brand {
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  .nav-burger {
    width: 40px;
    height: 40px;
  }

  .site-topbar-menu,
  .site-account-cluster {
    height: 40px;
  }

  .site-message-button,
  .site-user-trigger {
    flex-basis: auto;
  }

  .site-message-button .site-trigger-surface,
  .site-user-trigger .site-trigger-surface {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    min-height: 40px;
  }

  .site-message-button .material-icons-outlined {
    font-size: 18px;
  }

  .site-user-trigger .site-avatar {
    width: 27px;
    height: 27px;
  }

  .brand-logo {
    width: 132px;
  }

  .hero-actions {
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
  }

  .hero-actions .btn {
    flex: 1 1 140px;
    min-width: 0;
    padding: 0 14px;
    white-space: nowrap;
  }

  .hero-media {
    width: min(100% - 20px, 1120px);
    margin-top: 38px;
    border-radius: 16px;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 30px 16px;
  }

  .metric,
  .metric:nth-child(2n),
  .metric:nth-child(-n + 2) {
    border-right: 0;
    border-bottom: 0;
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 58px 0;
  }

  .section-head {
    margin-bottom: 26px;
  }

  .card {
    padding: 22px;
  }

  .card h3 {
    font-size: 19px;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .store-tabs {
    gap: 7px;
  }

  .store-tabs a {
    min-height: 34px;
    padding: 0 11px;
    font-size: 13px;
  }

  .store-notice {
    margin-bottom: 18px;
  }

  .app-detail-grid .hero-actions .btn {
    flex: 1 1 130px;
  }

  .store-actions-row {
    align-items: stretch;
    flex-direction: column;
  }

  .store-action-btn {
    width: 100%;
  }

  .license-download-form div {
    flex-direction: column;
  }

  .license-download-form .btn {
    width: 100%;
  }

  .related-item {
    align-items: center;
  }

  .admin-login-page {
    display: grid;
    place-items: center;
    min-height: 100dvh;
    padding: max(24px, calc(env(safe-area-inset-top) + 18px)) 14px max(24px, calc(env(safe-area-inset-bottom) + 18px));
  }

  .admin-login-page .admin-login-card {
    margin-top: 0;
    width: min(420px, 100%);
    border-radius: 8px;
    padding: clamp(18px, 5.2vw, 24px);
    box-shadow: none;
  }

  .admin-login-page .admin-login-card h1 {
    font-size: clamp(25px, 7vw, 30px);
    font-weight: 700;
  }

  .admin-login-page .admin-login-brand {
    margin-bottom: 0;
  }

  .admin-login-page .admin-login-card input {
    min-height: 44px;
  }

  .admin-login-page .auth-title {
    gap: 5px;
  }

  .admin-login-page .auth-title p {
    font-size: 13px;
  }

  .admin-login-page .auth-links {
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .admin-form-panel label {
    gap: 7px;
    font-size: 13px;
    font-weight: 500;
  }

  .admin-form-panel label > span {
    display: block;
    width: auto;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .admin-form-panel input,
  .admin-form-panel select,
  .admin-form-panel textarea {
    min-height: 44px;
    padding: 9px 11px;
  }

  .admin-rich-editor {
    border-radius: 8px;
  }

  .admin-rich-toolbar {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }

  .admin-body > .w-e-modal {
    top: max(64px, calc(env(safe-area-inset-top) + 56px)) !important;
    width: min(340px, calc(100vw - 20px)) !important;
    max-width: calc(100vw - 20px) !important;
    max-height: min(74dvh, 520px);
    padding: 16px 12px 0;
  }

  .admin-rich-toolbar .w-e-bar {
    min-height: 38px;
  }

  .admin-rich-area,
  .admin-rich-area .w-e-text-container,
  .admin-rich-area .w-e-scroll {
    min-height: 240px !important;
  }

  .admin-rich-area [data-slate-editor] {
    min-height: 210px;
    padding: 11px;
    font-size: 14px;
  }

  .admin-rich-area [data-slate-editor] input[type="checkbox"],
  .app-rich-content [data-w-e-type="todo"] input[type="checkbox"] {
    width: 15px !important;
    min-width: 15px;
    height: 15px !important;
    min-height: 15px !important;
    flex-basis: 15px;
  }

  .admin-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-form-actions .btn,
  .admin-form-actions .layui-btn,
  .admin-form-actions button {
    width: 100%;
  }

  .admin-login-page .admin-login-card button {
    min-height: 44px;
  }

  .install-shell {
    width: min(420px, 100%);
    gap: 16px;
    padding: clamp(18px, 5.2vw, 24px);
  }

  .install-checks {
    gap: 6px;
  }

  .install-checks span {
    flex: 1 1 140px;
    justify-content: flex-start;
  }

  .install-grid {
    grid-template-columns: 1fr;
  }

  .metric strong {
    font-size: clamp(30px, 10vw, 42px);
  }

  .metric span {
    font-size: 13px;
  }

  .app-shot-grid {
    grid-template-columns: 1fr;
  }

  .app-shot {
    padding: 14px;
  }

  .version-item-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .version-item-meta {
    gap: 6px 12px;
  }

  .comment-login,
  .comment-head {
    align-items: stretch;
    flex-direction: column;
  }

  .comment-form,
  .comment-item {
    padding: 16px;
  }

  .admin-topbar {
    gap: 8px;
    padding: 0 10px;
  }

  .admin-menu-toggle,
  .admin-icon-link,
  .admin-user-trigger {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .admin-dropdown-panel {
    width: min(340px, calc(100vw - 16px));
    right: 0;
  }

  .admin-notification-panel {
    position: fixed;
    top: 64px;
    left: 8px;
    right: 8px;
    width: auto;
    max-height: min(70dvh, 560px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    border-radius: 14px;
  }

  .admin-notification-list {
    max-height: none;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-notification-item {
    gap: 6px;
    padding: 14px 14px 14px 20px;
  }

  .admin-notification-item strong {
    font-size: 14px;
    line-height: 20px;
  }

  .admin-notification-item p {
    display: block;
    max-height: 4.8em;
    overflow: auto;
    font-size: 13px;
    line-height: 1.6;
  }

  .admin-topbar-actions {
    gap: 4px;
  }

  .install-grid {
    grid-template-columns: 1fr;
  }

  .admin-mini-list {
    min-height: auto;
  }

  .admin-empty-state {
    min-height: 84px;
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-recommend-card,
  .admin-recommend-card:nth-child(2n),
  .admin-recommend-card:nth-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--admin-line);
  }

  .admin-recommend-card:last-child {
    border-bottom: 0;
  }

  .admin-roadmap-grid article,
  .admin-roadmap-grid article:nth-child(2n),
  .admin-roadmap-grid article:nth-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--admin-line);
  }

  .admin-roadmap-grid article:last-child {
    border-bottom: 0;
  }

  .admin-main {
    padding: 14px 12px;
  }

  .admin-stats article {
    min-height: 88px;
    padding: 14px;
  }

  .admin-stats strong {
    font-size: 26px;
  }

}

/* 账号设置-头像上传 */
.admin-field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--admin-muted, #71717a);
}

.avatar-upload {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.avatar-upload-preview {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--admin-line);
  background: #f4f4f5;
  flex-shrink: 0;
}

.avatar-upload-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.avatar-upload-actions .admin-field {
  width: 100%;
}

.avatar-upload-actions .admin-field input {
  width: 100%;
}

.avatar-upload-hint {
  color: var(--admin-muted, #71717a);
  font-size: 12px;
  line-height: 1.6;
}

/* 弹窗提示（flash → toast）：白卡片 + 状态色条 + 图标，右侧滑入，4 秒自动消失，悬停暂停，可点击关闭 */
.toast-region {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(400px, calc(100vw - 32px));
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-left: 4px solid #3b82f6;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .14);
  font-size: 13px;
  line-height: 1.55;
  color: #1e293b;
  cursor: pointer;
  word-break: break-word;
  animation: toast-in .28s cubic-bezier(.21, 1.02, .73, 1);
}

.toast-item.toast-leave {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity .24s ease, transform .24s ease;
}

.toast-item .toast-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: #3b82f6;
}

.toast-item .toast-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.toast-item .toast-msg {
  flex: 1 1 auto;
  padding-top: 1px;
}

.toast-item .toast-close {
  flex: 0 0 auto;
  margin: -2px -4px 0 0;
  padding: 2px 6px;
  border: 0;
  background: none;
  color: #94a3b8;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
}

.toast-item .toast-close:hover {
  color: #334155;
  background: rgba(15, 23, 42, .06);
}

.toast-item.toast-item-success { border-left-color: #10b981; }
.toast-item.toast-item-success .toast-icon { color: #10b981; }
.toast-item.toast-item-error { border-left-color: #ef4444; }
.toast-item.toast-item-error .toast-icon { color: #ef4444; }
.toast-item.toast-item-warning { border-left-color: #f59e0b; }
.toast-item.toast-item-warning .toast-icon { color: #f59e0b; }

@keyframes toast-in {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

/* 文档页 Markdown 渲染（docs-prose） */
.docs-section-first { padding-top: 0; }
.docs-section-first h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: var(--heading-weight);
  margin-bottom: 16px;
}

.docs-prose { color: var(--muted); line-height: 1.72; }
.docs-prose > *:first-child { margin-top: 0; }
.docs-prose p { margin: 0 0 1em; }
.docs-prose h3 { margin: 1.6em 0 .6em; font-size: 22px; color: var(--text); font-weight: var(--heading-weight); }
.docs-prose h4 { margin: 1.4em 0 .5em; font-size: 18px; color: var(--text); font-weight: 600; }
.docs-prose ul, .docs-prose ol { margin: 0 0 1em; padding-left: 1.5em; }
.docs-prose li { margin: .3em 0; }
.docs-prose a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.docs-prose a:hover { color: var(--green-deep, #00b48a); }
.docs-prose strong { color: var(--text); font-weight: 600; }
.docs-prose code {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--soft);
  padding: 2px 6px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: .92em;
}
.docs-prose pre {
  overflow-x: auto;
  margin: 0 0 1.2em;
  border-radius: 8px;
  background: var(--code);
  color: #edf5ff;
  padding: 22px 26px;
  font-size: 14px;
  line-height: 1.85;
}
.docs-prose pre code {
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.docs-prose blockquote {
  margin: 0 0 1em;
  border-left: 3px solid var(--line);
  padding: .2em 0 .2em 1em;
  color: var(--muted);
}
.docs-prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 15px; }
.docs-prose th, .docs-prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.docs-prose th { background: var(--soft); color: var(--text); font-weight: 600; }
.docs-prose hr { border: 0; border-top: 1px solid var(--line); margin: 1.6em 0; }
.md-table-wrap { overflow-x: auto; margin: 0 0 1.2em; }

/* ========== 移动端防溢出补丁 ========== */

/* iOS Safari 聚焦自动放大：控件字号 < 16px 时聚焦会放大整个页面，
   观感即「编辑器不换行 / 页面溢出」。移动端控件统一 16px。 */
@media (max-width: 900px) {
  .admin-body input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  .admin-body select,
  .admin-body textarea,
  .admin-rich-area [data-slate-editor] {
    font-size: 16px;
  }
}

/* 文档正文与商店简介：长串（URL / 文件名 / 代码术语）折行，杜绝横向溢出 */
.docs-prose,
.docs-prose p,
.app-rich-content {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.docs-prose pre {
  max-width: 100%;
}

.docs-prose img,
.app-rich-content img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .docs-prose pre {
    padding: 16px 14px;
    font-size: 13px;
  }

  .docs-prose table,
  .md-table-wrap {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ---------- 系统更新页 ---------- */
.admin-upgrade-row {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 6px 2px 2px;
}
.admin-upgrade-col p.admin-muted {
  margin: 0 0 6px;
}
.admin-upgrade-version {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--admin-text);
  letter-spacing: .2px;
}
.admin-upgrade-arrow {
  color: var(--admin-faint);
  font-size: 20px;
}
.admin-upgrade-notes {
  margin-top: 16px;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--admin-soft);
}
.admin-upgrade-notes > p {
  margin: 0 0 8px;
}
.admin-upgrade-notes-body {
  font-size: 13px;
  line-height: 1.7;
  color: var(--admin-text);
}
.admin-upgrade-notes-body p { margin: 0 0 8px; }
.admin-upgrade-notes-body ul,
.admin-upgrade-notes-body ol { margin: 0 0 8px; padding-left: 20px; }
.admin-upgrade-notes-body code {
  background: var(--admin-muted-soft);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 12px;
}
.admin-upgrade-notes-body h1,
.admin-upgrade-notes-body h2,
.admin-upgrade-notes-body h3 { margin: 12px 0 6px; font-size: 14px; }
.admin-upgrade-ops {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  vertical-align: 2px;
  margin-left: 6px;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
}
.badge-primary { background: #e4e4e7; color: #3f3f46; }
.badge-accent { background: #fde68a; color: #713f12; }

.admin-backup-msg {
  margin: 12px 0 0;
  border: 1px solid var(--admin-line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.55;
  background: #fff;
}
.admin-backup-msg-ok { border-color: #bbd7be; background: #f3faf3; color: #2d6a30; }
.admin-backup-msg-error { border-color: #f0c6bd; background: #fff7f5; color: #a23a2f; }

/* ---------- 数据备份页 ---------- */
.admin-backup-tips {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--admin-muted);
}
.admin-backup-restore-row td {
  background: var(--admin-muted-soft);
}

/* ---------- 应用详情页：紧凑的应用档案布局 ---------- */
.app-store-detail .app-detail-hero {
  margin-top: -72px;
  padding: 122px 0 48px;
  background: #f3f6f4;
  border-bottom: 1px solid #e2e8e5;
}

.app-store-detail .app-detail-grid {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 64px;
}

.app-store-detail .app-detail-summary {
  max-width: 760px;
}

.app-store-detail .store-back {
  gap: 8px;
  margin-bottom: 28px;
  color: #69736e;
}

.app-store-detail .app-detail-kicker {
  margin-bottom: 12px;
  color: #0d806f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.app-store-detail .app-detail-grid h1 {
  margin: 0 0 18px;
  color: #17211d;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: 0;
}

.app-store-detail .app-detail-lead {
  max-width: 680px;
  margin: 0;
  color: #53605a;
  font-size: 18px;
  line-height: 1.65;
}

.app-store-detail .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

.app-store-detail .hero-actions form {
  margin: 0;
}

.app-store-detail .hero-actions .btn,
.app-store-detail .hero-actions .store-action-btn {
  min-height: 40px;
  border-radius: 6px;
}

.app-detail-trust {
  margin-top: 18px;
  color: #7b8781;
  font-size: 12px;
  line-height: 1.6;
}

.app-store-detail .app-detail-panel {
  border: 1px solid #dfe7e2;
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  box-shadow: none;
}

.app-detail-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e9eeeb;
  color: #68746d;
  font-size: 13px;
}

.app-detail-price-row + .app-detail-price-row {
  padding-top: 14px;
}

.app-detail-price-row strong {
  color: #17211d;
  font-size: 17px;
  font-weight: 650;
}

.app-detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 12px;
  padding: 18px 0 4px;
}

.app-detail-meta-grid div {
  display: grid;
  gap: 5px;
}

.app-detail-meta-grid span {
  color: #7b8781;
  font-size: 12px;
}

.app-detail-meta-grid strong {
  color: #26322c;
  font-size: 14px;
  font-weight: 600;
}

.app-store-detail .app-detail-tags {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e9eeeb;
}

.app-store-detail .app-detail-content {
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 56px;
}

.app-detail-copy {
  max-width: 780px;
  margin-bottom: 48px;
}

.app-detail-copy .app-rich-content {
  color: #3f4b44;
  font-size: 16px;
  line-height: 1.85;
}

.app-detail-copy .app-rich-content p,
.app-detail-copy .app-rich-content ul,
.app-detail-copy .app-rich-content ol {
  margin-bottom: 1em;
}

.app-store-detail .section-head {
  margin-bottom: 16px;
}

.app-store-detail .section-head h2 {
  font-size: 24px;
  letter-spacing: 0;
}

.app-store-detail .app-shot-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 48px;
}

.app-store-detail .app-shot {
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.app-store-detail .app-shot-visual {
  margin-bottom: 10px;
  border-radius: 5px;
}

.app-detail-author {
  margin-bottom: 34px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.app-detail-author > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.app-detail-author strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
}

.app-detail-author p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.app-detail-author a {
  color: #0d806f;
  font-size: 13px;
}

.app-store-detail .license-download-form {
  display: none;
}

/* 文档章节 Tabs：保持单页轻量浏览，也让每个章节拥有可分享地址。 */
.docs-page {
  padding-top: 54px;
  padding-bottom: 88px;
}

.docs-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.docs-header h1 {
  margin: 0 0 10px;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.08;
  font-weight: var(--heading-weight);
}

.docs-lead {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.docs-count {
  padding-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.docs-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin-bottom: 26px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  scrollbar-width: thin;
}

.docs-tab {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 0 15px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}

.docs-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .75);
}

.docs-tab.active {
  color: var(--text);
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}

.docs-panel {
  max-width: 820px;
  min-height: 420px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}

.docs-panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.docs-panel-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.18;
  font-weight: var(--heading-weight);
}

.docs-panel-heading .eyebrow {
  margin-bottom: 8px;
}

.docs-permalink {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.docs-permalink:hover {
  color: var(--text);
}

.docs-empty {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.docs-empty h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.docs-empty p {
  margin: 0;
  color: var(--muted);
}

.store-category-tabs {
  margin-top: -4px;
  margin-bottom: 16px;
}

.store-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.store-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.store-sort label {
  white-space: nowrap;
}

.store-sort select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 30px 0 10px;
  color: var(--text);
  background: var(--surface);
  font: inherit;
  font-size: 13px;
}

.store-sort select:focus {
  outline: 2px solid rgba(13, 148, 136, .2);
  border-color: #0d9488;
}

@media (max-width: 760px) {
  .docs-page {
    padding-top: 40px;
    padding-bottom: 68px;
  }

  .docs-header {
    display: block;
    margin-bottom: 22px;
  }

  .docs-header h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .docs-count {
    display: block;
    margin-top: 14px;
  }

  .docs-tabs {
    margin-right: -2px;
    margin-left: -2px;
    margin-bottom: 22px;
  }

  .docs-tab {
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
  }

  .docs-panel {
    min-height: 0;
    padding-top: 24px;
  }

  .docs-panel-heading {
    display: block;
    margin-bottom: 20px;
  }

  .docs-permalink {
    display: inline-block;
    margin-top: 12px;
  }

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

  .store-sort {
    width: 100%;
    justify-content: space-between;
  }

  .store-sort select {
    flex: 1 1 auto;
    max-width: 220px;
  }

  .app-store-detail .app-detail-hero {
    margin-top: -74px;
    padding: 104px 0 38px;
  }

  .app-store-detail .app-detail-grid,
  .app-store-detail .app-detail-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .app-store-detail .app-detail-grid h1 {
    font-size: 40px;
  }

  .app-store-detail .app-detail-lead {
    font-size: 16px;
  }

  .app-store-detail .app-shot-grid {
    grid-template-columns: 1fr;
  }
}

/* 文档阅读布局：左侧目录负责定位，正文保持连续阅读。 */
.docs-reading-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.docs-nav {
  position: sticky;
  top: 100px;
  min-width: 0;
}

.docs-nav-title {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.docs-nav nav {
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line);
}

.docs-nav a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 36px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  padding: 0 10px 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.docs-nav a:hover {
  color: var(--text);
}

.docs-nav a.active {
  border-left-color: #0d9488;
  color: var(--text);
  background: rgba(13, 148, 136, .06);
}

.docs-mobile-nav {
  display: none;
}

.docs-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 52px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.docs-pagination a {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
}

.docs-pagination a.next {
  text-align: right;
}

.docs-pagination a:hover {
  border-color: #0d9488;
}

.docs-pagination small {
  color: var(--muted);
  font-size: 12px;
}

.docs-pagination strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .docs-reading-layout {
    display: block;
  }

  .docs-nav {
    display: none;
  }

  .docs-mobile-nav {
    display: block;
    margin-bottom: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
  }

  .docs-mobile-nav summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    padding: 0 13px;
    color: var(--text);
    font-size: 13px;
    cursor: pointer;
    list-style: none;
  }

  .docs-mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .docs-mobile-nav summary::after {
    content: '+';
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
  }

  .docs-mobile-nav[open] summary::after {
    content: '−';
  }

  .docs-mobile-nav summary span {
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .docs-mobile-nav nav {
    display: grid;
    gap: 2px;
    padding: 0 8px 8px;
  }

  .docs-mobile-nav nav a {
    min-height: 36px;
    border-radius: 5px;
    padding: 0 9px;
    color: var(--muted);
    font-size: 13px;
  }

  .docs-mobile-nav nav a.active {
    color: var(--text);
    background: var(--soft);
  }

  .docs-pagination {
    margin-top: 36px;
  }
}

/* 开发者公开主页 */
.developer-page {
  min-height: 60vh;
}

.developer-hero {
  padding: 46px 0 38px;
}

.developer-hero .store-back {
  display: inline-flex;
  margin-bottom: 26px;
}

.developer-hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.developer-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.developer-avatar {
  flex: 0 0 56px;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid #b9ddd7;
  border-radius: 50%;
  color: #0d806f;
  background: #edf8f5;
  font-size: 24px;
  font-weight: 600;
}

.developer-hero h1 {
  margin: 0 0 7px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
  font-weight: var(--heading-weight);
}

.developer-bio {
  max-width: 580px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.developer-site-link {
  color: #0d806f;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.developer-app-count {
  display: grid;
  gap: 4px;
  min-width: 120px;
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.developer-app-count strong {
  font-size: 30px;
  line-height: 1;
  font-weight: var(--heading-weight);
}

.developer-app-count span,
.developer-app-meta {
  color: var(--muted);
  font-size: 13px;
}

.developer-app-grid {
  margin-top: 22px;
}

.developer-app-meta {
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
  .developer-hero {
    padding: 38px 0 30px;
  }

  .developer-hero-row {
    display: block;
    padding-bottom: 22px;
  }

  .developer-identity {
    align-items: flex-start;
  }

  .developer-app-count {
    margin-top: 28px;
    padding-top: 16px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

/* 开发者主页最终布局：资料栏 + 应用目录，和应用商店保持同一密度。 */
.developer-page {
  padding-top: 46px;
  padding-bottom: 88px;
}

.developer-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 42px;
  color: var(--muted);
  font-size: 13px;
}

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

.developer-layout {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 68px;
  align-items: start;
}

.developer-profile {
  position: sticky;
  top: 100px;
  min-width: 0;
  padding-right: 28px;
  border-right: 1px solid var(--line);
}

.developer-profile .developer-avatar {
  margin-bottom: 22px;
}

.developer-profile .eyebrow {
  margin-bottom: 8px;
}

.developer-profile h1 {
  margin: 0 0 13px;
  font-size: 30px;
  line-height: 1.2;
  font-weight: var(--heading-weight);
}

.developer-profile .developer-bio {
  margin-bottom: 14px;
}

.developer-profile-rule {
  margin: 26px 0 20px;
  border-top: 1px solid var(--line);
}

.developer-profile .developer-app-count {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0;
  border: 0;
}

.developer-profile .developer-app-count strong {
  font-size: 26px;
}

.developer-apps {
  min-width: 0;
}

.developer-apps-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.developer-apps-head h2 {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: var(--heading-weight);
}

.developer-apps-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.developer-app-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.developer-app-grid .catalog-card {
  border-radius: 8px;
}

@media (max-width: 760px) {
  .developer-page {
    padding-top: 38px;
    padding-bottom: 68px;
  }

  .developer-breadcrumb {
    margin-bottom: 30px;
  }

  .developer-layout {
    display: block;
  }

  .developer-profile {
    position: static;
    margin-bottom: 38px;
    padding: 0 0 28px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .developer-apps-head {
    align-items: flex-start;
  }

  .developer-apps-head h2 {
    font-size: 25px;
  }

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

/* 开发者公开主页：档案式信息层级，应用以目录行呈现。 */
.developer-page {
  padding: 54px 0 96px;
}

.developer-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 13px;
}

.developer-breadcrumb a,
.developer-site-link,
.developer-app-action,
.developer-app-title a,
.developer-app-mark,
.developer-stats a,
.developer-apps-head .text-link,
.developer-empty .text-link {
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}

.developer-breadcrumb a:hover,
.developer-site-link:hover,
.developer-app-action:hover,
.developer-app-title a:hover,
.developer-stats a:hover,
.developer-apps-head .text-link:hover,
.developer-empty .text-link:hover {
  color: #0d806f;
}

.developer-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.developer-intro {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
}

.developer-avatar {
  flex: 0 0 72px;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid #b9ddd7;
  border-radius: 16px;
  color: #0d806f;
  background: #edf8f5;
  font-size: 28px;
  font-weight: 600;
}

.developer-intro-copy {
  min-width: 0;
}

.developer-kicker {
  margin: 0 0 8px;
  color: var(--subtle);
  font-size: 12px;
  letter-spacing: .06em;
}

.developer-intro h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  font-weight: var(--heading-weight);
  text-wrap: balance;
}

.developer-bio {
  max-width: 58ch;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.developer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
}

.developer-site-link {
  color: #0d806f;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.developer-handle {
  color: var(--subtle);
}

.developer-stats {
  display: flex;
  gap: 28px;
  margin: 0;
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.developer-stats div {
  min-width: 92px;
}

.developer-stats dt {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
}

.developer-stats dd {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 600;
}

.developer-stats dd a {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.developer-apps {
  min-width: 0;
  margin-top: 48px;
}

.developer-apps-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.developer-apps-head .developer-kicker {
  margin-bottom: 5px;
}

.developer-apps-head h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: var(--heading-weight);
}

.developer-apps-head .text-link,
.developer-empty .text-link {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.developer-app-list {
  border-bottom: 1px solid var(--line);
}

.developer-app-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

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

.developer-app-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
}

.developer-app-mark:hover {
  border-color: #b9ddd7;
  background: #edf8f5;
  color: #0d806f;
}

.developer-app-copy {
  min-width: 0;
}

.developer-app-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.developer-app-title h3 {
  min-width: 0;
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  font-weight: var(--heading-weight);
}

.developer-app-title h3 a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.developer-app-title > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.developer-app-copy p {
  overflow: hidden;
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.developer-app-meta {
  display: flex;
  gap: 12px;
  color: var(--subtle);
  font-size: 12px;
}

.developer-app-action {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.developer-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.developer-empty strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 600;
}

.developer-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  .developer-page {
    padding: 38px 0 68px;
  }

  .developer-breadcrumb {
    margin-bottom: 24px;
  }

  .developer-header {
    display: block;
    padding-bottom: 28px;
  }

  .developer-intro {
    gap: 14px;
  }

  .developer-avatar {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
    border-radius: 13px;
    font-size: 23px;
  }

  .developer-intro h1 {
    margin-bottom: 8px;
    font-size: 30px;
  }

  .developer-stats {
    gap: 26px;
    margin-top: 26px;
    padding: 16px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .developer-apps {
    margin-top: 36px;
  }

  .developer-apps-head {
    align-items: flex-start;
  }

  .developer-apps-head h2 {
    font-size: 25px;
  }

  .developer-app-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 17px 0;
  }

  .developer-app-mark {
    width: 44px;
    height: 44px;
    border-radius: 11px;
  }

  .developer-app-action {
    grid-column: 2;
    margin-top: -3px;
  }

  .developer-empty {
    display: block;
    padding: 22px 0;
  }

  .developer-empty .text-link {
    display: inline-block;
    margin-top: 14px;
  }
}

/* 应用商店与发布者页：参考 Halo 的目录式信息架构。 */
.market-page,
.publisher-page {
  padding: 48px 0 96px;
}

.market-breadcrumb,
.publisher-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 13px;
}

.market-breadcrumb a:hover,
.publisher-breadcrumb a:hover {
  color: var(--text);
}

.market-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 56px;
  align-items: end;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.market-kicker,
.publisher-kicker {
  margin: 0 0 8px;
  color: var(--subtle);
  font-size: 12px;
  letter-spacing: .06em;
}

.market-heading h1 {
  margin: 0 0 9px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
  font-weight: var(--heading-weight);
}

.market-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.market-search label,
.market-sort label,
.publisher-sort label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.market-search-control {
  display: flex;
  gap: 8px;
}

.market-search-control input {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border-radius: 8px;
}

.market-search-control button {
  flex: 0 0 auto;
  min-width: 64px;
  height: 42px;
  border: 1px solid #0d9488;
  border-radius: 8px;
  background: #0d9488;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

.market-search-control button:hover {
  background: #0f766e;
}

.market-controls {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  flex-wrap: wrap;
  padding: 24px 0 18px;
  border-bottom: 1px solid var(--line);
}

.market-filter-group {
  min-width: 0;
}

.market-control-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.market-filter-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.market-filter-links a,
.publisher-filters a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
}

.market-filter-links a:hover,
.publisher-filters a:hover {
  color: var(--text);
  background: var(--soft);
}

.market-filter-links a.active,
.publisher-filters a.active {
  border-color: #b9ddd7;
  background: #edf8f5;
  color: #0d806f;
}

.market-filter-links small,
.publisher-filters small {
  color: inherit;
  font-size: 11px;
  opacity: .72;
}

.market-sort {
  margin-left: auto;
  min-width: 132px;
}

.market-sort select,
.publisher-sort select {
  width: 100%;
  height: 34px;
  padding: 0 30px 0 10px;
  border-radius: 7px;
  color: var(--text);
  font-size: 13px;
}

.market-result-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 22px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.market-result-line strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
}

.market-download-total {
  margin-left: auto;
  color: var(--subtle);
  font-size: 12px;
}

.market-app-list,
.publisher-app-list {
  border-top: 1px solid var(--line);
}

.market-app-item,
.publisher-app-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 125px 24px;
  gap: 16px;
  align-items: center;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.market-app-icon,
.publisher-app-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
}

.market-app-icon:hover,
.publisher-app-icon:hover {
  border-color: #b9ddd7;
  background: #edf8f5;
  color: #0d806f;
}

.market-app-main,
.publisher-app-main {
  min-width: 0;
}

.market-app-title,
.publisher-app-title {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-width: 0;
}

.market-app-title h2,
.publisher-app-title h3 {
  min-width: 0;
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  font-weight: var(--heading-weight);
}

.market-app-title h2 a,
.publisher-app-title h3 a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-app-title > span,
.publisher-app-title > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
}

.market-app-main p,
.publisher-app-main p {
  overflow: hidden;
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-app-byline,
.publisher-app-byline,
.market-app-meta,
.publisher-app-meta {
  display: flex;
  gap: 12px;
  color: var(--subtle);
  font-size: 12px;
}

.market-app-meta,
.publisher-app-meta {
  display: grid;
  gap: 3px;
  align-content: center;
  text-align: right;
}

.market-app-meta strong,
.publisher-app-meta strong {
  color: var(--text);
  font-weight: 500;
}

.market-app-arrow,
.publisher-app-arrow {
  color: var(--subtle);
  font-size: 18px;
  text-align: right;
  transition: color .18s ease, transform .18s ease;
}

.market-app-item:hover .market-app-arrow,
.publisher-app-item:hover .publisher-app-arrow {
  color: #0d806f;
  transform: translateX(2px);
}

.market-empty,
.publisher-empty {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.market-empty strong,
.publisher-empty strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 600;
}

.market-empty p,
.publisher-empty p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.market-empty a,
.publisher-empty a,
.publisher-website {
  color: #0d806f;
  font-size: 13px;
}

.publisher-profile {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 0 0 38px;
  border-bottom: 1px solid var(--line);
}

.publisher-avatar {
  display: grid;
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  place-items: center;
  border: 1px solid #b9ddd7;
  border-radius: 16px;
  background: #edf8f5;
  color: #0d806f;
  font-size: 28px;
  font-weight: 600;
}

.publisher-profile h1 {
  margin: 0 0 2px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
  font-weight: var(--heading-weight);
}

.publisher-handle {
  margin: 0 0 10px;
  color: var(--subtle);
  font-size: 13px;
}

.publisher-bio {
  max-width: 58ch;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.publisher-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.publisher-contact {
  color: var(--muted);
  font-size: 13px;
}

.publisher-contact:hover,
.publisher-website:hover {
  color: #0d806f;
}

.publisher-apps {
  margin-top: 42px;
}

.publisher-apps-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.publisher-apps-head h2 {
  margin: 0;
  font-size: 27px;
  line-height: 1.2;
  font-weight: var(--heading-weight);
}

.publisher-sort {
  width: 132px;
}

.publisher-filters {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

@media (max-width: 760px) {
  .market-page,
  .publisher-page {
    padding: 36px 0 68px;
  }

  .market-breadcrumb,
  .publisher-breadcrumb {
    margin-bottom: 26px;
  }

  .market-heading {
    display: block;
    padding-bottom: 28px;
  }

  .market-heading h1 {
    font-size: 36px;
  }

  .market-search {
    margin-top: 24px;
  }

  .market-controls {
    display: block;
    padding: 20px 0 14px;
  }

  .market-filter-group {
    margin-bottom: 15px;
  }

  .market-sort {
    width: 150px;
    margin: 8px 0 0;
  }

  .market-download-total {
    display: none;
  }

  .market-app-item,
  .publisher-app-item {
    grid-template-columns: 44px minmax(0, 1fr) 22px;
    gap: 12px;
    align-items: start;
    padding: 16px 0;
  }

  .market-app-icon,
  .publisher-app-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
  }

  .market-app-meta,
  .publisher-app-meta {
    display: none;
  }

  .market-app-arrow,
  .publisher-app-arrow {
    grid-column: 3;
    grid-row: 1;
  }

  .market-app-main,
  .publisher-app-main {
    grid-column: 2;
    grid-row: 1;
  }

  .publisher-profile {
    gap: 14px;
    padding-bottom: 28px;
  }

  .publisher-avatar {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
    border-radius: 13px;
    font-size: 23px;
  }

  .publisher-profile h1 {
    font-size: 30px;
  }

  .publisher-apps {
    margin-top: 34px;
  }

  .publisher-apps-head {
    align-items: flex-start;
  }

  .publisher-apps-head h2 {
    font-size: 25px;
  }
}

/* 应用目录与发布者页：对齐 Halo 的轻目录节奏（搜索、下拉筛选、分隔列表）。 */
.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;
}

.market-heading {
  display: block;
  padding-bottom: 24px;
}

.market-search {
  max-width: 640px;
  margin: 0 auto;
}

.market-search-control input {
  height: 44px;
  border-radius: 7px;
}

.market-search-control button {
  min-width: 72px;
  height: 44px;
  border-radius: 7px;
}

.market-controls {
  align-items: end;
  gap: 18px;
  padding: 18px 0;
}

.market-filter-group {
  min-width: 138px;
}

.market-filter-group select,
.market-sort select,
.publisher-sort select {
  height: 36px;
  border-radius: 7px;
  background-color: #fff;
  font-size: 13px;
}

.market-result-line {
  gap: 5px;
  padding: 22px 0 14px;
}

.market-app-list,
.publisher-app-list {
  border-top: 0;
}

.market-app-item,
.publisher-app-item {
  grid-template-columns: 56px minmax(0, 1fr) 90px;
  gap: 16px;
  padding: 22px 0;
}

.market-app-icon,
.publisher-app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #f5f7f6;
}

.market-app-title > small,
.publisher-app-title > small {
  color: var(--subtle);
  font-size: 12px;
}

.market-app-meta,
.publisher-app-meta {
  display: block;
  text-align: right;
  color: var(--muted);
  font-size: 13px;
}

.market-app-meta span,
.publisher-app-meta span {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.publisher-breadcrumb-shell {
  padding-top: 0;
}

.publisher-profile {
  margin-top: 0;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f5f7f6;
}

.publisher-profile-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.publisher-avatar {
  width: 80px;
  height: 80px;
  flex-basis: 80px;
  border-radius: 50%;
  border-color: #dce5e1;
  background: #fff;
}

.publisher-profile-copy {
  min-width: 0;
}

.publisher-profile h1 {
  font-size: 24px;
}

.publisher-apps {
  margin-top: 36px;
}

@media (max-width: 760px) {
  .market-heading {
    padding-bottom: 20px;
  }

  .market-search {
    max-width: none;
  }

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

  .market-filter-group,
  .market-sort {
    width: auto;
    min-width: 0;
    margin: 0;
  }

  .market-sort {
    grid-column: span 2;
    max-width: 180px;
  }

  .market-app-item,
  .publisher-app-item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 0;
  }

  .market-app-icon,
  .publisher-app-icon {
    width: 48px;
    height: 48px;
  }

  .market-app-meta,
  .publisher-app-meta {
    display: none;
  }

  .publisher-profile {
    padding: 26px 0;
  }

  .publisher-profile-inner {
    align-items: flex-start;
    gap: 14px;
  }

  .publisher-avatar {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }

  .publisher-profile h1 {
    font-size: 23px;
  }
}

/* 应用目录卡片：截图优先，信息保持克制；与详情页共用同一组边框和留白。 */
.market-app-list,
.publisher-app-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  border: 0;
}

.market-app-item,
.publisher-app-item {
  position: relative;
  display: block;
  min-width: 0;
  padding: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.market-app-item:hover,
.publisher-app-item:hover {
  border-color: #c5d9d2;
  box-shadow: 0 8px 22px rgba(27, 54, 45, .06);
  transform: translateY(-2px);
}

.market-app-preview,
.publisher-app-preview {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #f3f7f5;
  color: #0d806f;
}

.market-app-preview img,
.publisher-app-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.market-app-item:hover .market-app-preview img,
.publisher-app-item:hover .publisher-app-preview img {
  transform: scale(1.025);
}

.market-app-preview-icon,
.publisher-app-preview-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid #cfe2db;
  border-radius: 15px;
  background: #fff;
  color: #0d806f;
  font-size: 23px;
  font-weight: 600;
}

.market-app-preview img + .market-app-preview-icon,
.publisher-app-preview img + .publisher-app-preview-icon {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-size: 16px;
  box-shadow: 0 3px 10px rgba(27, 54, 45, .12);
}

.market-app-main,
.publisher-app-main {
  padding: 16px 17px 0;
}

.market-app-title h2,
.publisher-app-title h3 {
  font-size: 17px;
}

.market-app-main p,
.publisher-app-main p {
  display: -webkit-box;
  margin: 7px 0 12px;
  overflow: hidden;
  white-space: normal;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.market-app-byline,
.publisher-app-byline {
  gap: 10px;
  flex-wrap: wrap;
}

.market-app-meta,
.publisher-app-meta {
  position: absolute;
  top: 12px;
  right: 12px;
  display: block;
  text-align: right;
}

.market-app-meta span,
.publisher-app-meta span {
  padding: 3px 7px;
  border-color: rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .92);
  font-size: 11px;
}

@media (max-width: 960px) {
  .market-app-list,
  .publisher-app-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .market-app-list,
  .publisher-app-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .market-app-item,
  .publisher-app-item {
    padding-bottom: 16px;
  }

  .market-app-main,
  .publisher-app-main {
    padding: 14px 15px 0;
  }
}

/* ---------- 官网目录页：克制的 Halo 式目录结构 ---------- */
.market-page,
.publisher-page {
  padding: 56px 0 88px;
}

.market-page > .site-shell > h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 600;
}

.market-heading {
  display: flex;
  justify-content: flex-end;
  padding: 20px 0 24px;
  border-bottom: 1px solid var(--line);
}

.market-search {
  width: min(100%, 388px);
}

.market-search label,
.market-control-label,
.market-sort label,
.publisher-sort label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.market-search-control {
  gap: 0;
}

.market-search-control input {
  height: 40px;
  border-radius: 6px 0 0 6px;
  background: #fff;
}

.market-search-control button {
  min-width: 58px;
  height: 40px;
  border-radius: 0 6px 6px 0;
  background: #18181b;
  border-color: #18181b;
}

.market-search-control button:hover {
  background: #27272a;
}

.market-controls {
  gap: 10px;
  padding: 18px 0;
  border-bottom: 0;
}

.market-filter-group select,
.market-sort select,
.publisher-sort select {
  height: 34px;
  min-width: 92px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
}

.market-sort {
  width: auto;
  min-width: 102px;
  margin-left: auto;
}

.market-result-line {
  min-height: 30px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
}

.market-result-line strong {
  font-size: 14px;
  font-weight: 500;
}

.market-download-total {
  display: none;
}

.market-app-list,
.publisher-app-list {
  gap: 16px;
}

.market-app-item,
.publisher-app-item {
  border-radius: 6px;
  padding-bottom: 15px;
  box-shadow: none;
  transition: border-color .16s ease, background-color .16s ease;
}

.market-app-item:hover,
.publisher-app-item:hover {
  border-color: #bfc4c2;
  background: #fcfdfc;
  box-shadow: none;
  transform: none;
}

.market-app-preview,
.publisher-app-preview {
  background: #f5f6f5;
}

.market-app-preview-icon,
.publisher-app-preview-icon {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 6px;
  background: #e8eeeb;
  color: #4c6258;
  font-size: 20px;
}

.market-app-preview img + .market-app-preview-icon,
.publisher-app-preview img + .publisher-app-preview-icon {
  border-radius: 6px;
}

.market-app-main,
.publisher-app-main {
  padding: 14px 15px 0;
}

.market-app-title h2,
.publisher-app-title h3 {
  font-size: 16px;
  font-weight: 600;
}

.market-app-title > span,
.publisher-app-title > span,
.market-app-title > small,
.publisher-app-title > small {
  font-size: 12px;
}

.market-app-main p,
.publisher-app-main p {
  margin: 6px 0 10px;
  color: #707571;
  font-size: 13px;
  line-height: 1.6;
}

.market-app-meta,
.publisher-app-meta {
  top: 10px;
  right: 10px;
}

.market-app-meta span,
.publisher-app-meta span {
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, .88);
  color: #565c58;
}

.publisher-profile {
  padding: 0 0 30px;
  border-bottom: 1px solid var(--line);
}

.publisher-profile-inner {
  gap: 16px;
}

.publisher-avatar {
  width: 64px;
  height: 64px;
  flex-basis: 64px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f1f3f1;
  color: #4c6258;
  font-size: 24px;
}

.publisher-profile h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
}

.publisher-bio {
  margin: 8px 0 10px;
  color: #626863;
  font-size: 14px;
}

.publisher-links {
  gap: 12px;
}

.publisher-apps {
  margin-top: 32px;
}

.publisher-apps-head h2 {
  font-size: 20px;
  font-weight: 600;
}

.publisher-filters {
  margin: 0 0 16px;
}

.publisher-filters a {
  min-height: 32px;
  border-radius: 5px;
}

/* 官网后台：侧栏、更新和备份沿用同一套紧凑信息密度。 */
.admin-nav.layui-nav-tree .layui-nav-item,
.admin-nav.layui-nav-tree .layui-nav-item a {
  min-height: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
}

.admin-nav.layui-nav-tree .layui-nav-item {
  display: block !important;
  height: 36px !important;
  min-height: 36px !important;
  margin: 0 0 2px !important;
  padding: 0 !important;
  background: transparent !important;
  line-height: 36px !important;
}

.admin-nav.layui-nav-tree .layui-nav-item a {
  box-sizing: border-box !important;
  width: auto !important;
  height: 36px !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  border-radius: 6px !important;
  background: transparent !important;
}

.admin-nav.layui-nav-tree .layui-nav-item > a {
  justify-content: flex-start !important;
  text-align: left !important;
}

.admin-nav .admin-nav-icon {
  display: inline-flex !important;
  flex: 0 0 18px !important;
  width: 18px !important;
  min-width: 18px !important;
  justify-content: center !important;
  text-align: center !important;
}

.admin-nav .layui-nav-item > a > span:not(.admin-nav-icon):not(.admin-nav-external) {
  display: inline-block !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

.admin-nav .admin-nav-external {
  margin-left: auto !important;
}

.admin-nav > .admin-nav-label {
  display: flex !important;
  box-sizing: border-box !important;
  height: 30px !important;
  min-height: 30px !important;
  margin: 8px 0 0 !important;
  padding: 8px 10px 2px !important;
  line-height: 20px !important;
}

.admin-nav.layui-nav-tree .layui-nav-item a:hover {
  background: #f1f2f1 !important;
}

.admin-nav.layui-nav-tree .layui-this > a,
.admin-nav.layui-nav-tree .layui-this > a:hover {
  background: #eef1ef !important;
  color: #202421 !important;
  font-weight: 500;
}

.admin-nav-icon {
  color: #656b66;
}

.admin-nav.layui-nav-tree .layui-this .admin-nav-icon {
  color: #3e5649;
}

.admin-page-head {
  min-height: 38px;
  margin-bottom: 20px;
}

.admin-page-head h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.admin-upgrade-row {
  gap: 18px;
  padding: 2px 0;
}

.admin-upgrade-col {
  min-width: 112px;
}

.admin-upgrade-version {
  font-size: 20px;
  font-weight: 600;
}

.admin-upgrade-notes {
  border-radius: 6px;
  background: #f7f8f7;
}

.admin-upgrade-ops {
  margin-top: 16px;
}

.admin-backup-msg {
  border-radius: 6px;
}

@media (max-width: 760px) {
  .market-page,
  .publisher-page {
    padding: 34px 0 64px;
  }

  .market-page > .site-shell > h1 {
    font-size: 25px;
  }

  .market-heading {
    display: block;
    padding: 16px 0 20px;
  }

  .market-search {
    width: 100%;
  }

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

  .market-filter-group select,
  .market-sort,
  .market-sort select {
    width: 100%;
  }

  .market-sort {
    margin: 0;
  }

  .publisher-profile {
    padding-bottom: 24px;
  }

  .publisher-profile h1 {
    font-size: 24px;
  }

  .admin-nav.layui-nav-tree .layui-nav-item,
  .admin-nav.layui-nav-tree .layui-nav-item a {
    min-height: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
  }

  .admin-nav > .admin-nav-label {
    height: 30px !important;
    min-height: 30px !important;
  }
}
