*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --ink: #1D2129;
  --ink-soft: #4E5969;
  --muted: #86909C;
  --subtle: #a4a4ad;
  --line: #E5E6EB;
  --line-strong: rgba(17, 17, 20, 0.16);
  --page: #F7F8FA;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #FFFFFF;
  --blue: #165DFF;
  --blue-soft: #e8f3ff;
  --green: #00B42A;
  --coral: #ff6b5f;
  --amber: #FF7D00;
  --violet: #7657ff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.08);
  --max: 1180px;
  --radius: 12px;
  --radius-sm: 12px;
  --radius-xs: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--page);
  color: var(--ink);
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
  padding: 0 clamp(18px, 5vw, 120px);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(22px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  background: linear-gradient(145deg, var(--blue), #0A3D9E);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 15px;
  font-weight: 700;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  color: rgba(17, 17, 20, 0.72);
  font-size: 13px;
  font-weight: 600;
}

.top-nav:empty {
  display: none;
}

.top-nav a {
  transition: color 180ms ease;
}

.top-nav a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-menu {
  position: relative;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-solid);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  z-index: 30;
}

.user-menu.open .user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
  white-space: nowrap;
}

.user-dropdown-item:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

.user-dropdown-item[data-logout-open] {
  color: var(--muted);
}

.user-dropdown-item[data-logout-open]:hover {
  background: #fff1f0;
  color: #d63031;
}

.user-menu.open [data-user-menu-toggle]:hover {
  transform: none;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
  white-space: nowrap;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.primary-button {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(22, 93, 255, 0.24);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 113, 227, 0.3);
}

.secondary-button,
.ghost-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
}

.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: #fff;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.detail-copy h1 {
  margin-bottom: 18px;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: 0;
}

.section-heading p,
.detail-title-row p {
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.7;
}

.meta-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.detail-hero-preview,
.screenshot-card,
.app-card,
.comment-form,
.comment-item {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(24px);
}

.section-wrap {
  width: min(1220px, calc(100% - 128px));
  margin: 0 auto;
  padding: clamp(42px, 5vw, 64px) 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading.compact {
  margin-bottom: 0;
}

.section-heading h2 {
  margin-bottom: 12px;
  color: #6e6e73;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.08;
  font-weight: 800;
}

.section-heading h2 span {
  color: #1d1d1f;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
}

.segmented button {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.segmented button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  min-width: min(100%, 320px);
  padding: 0 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-box:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.search-box:focus-within {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--accent) 15%, transparent);
}

.search-icon {
  flex: 0 0 auto;
  color: var(--muted);
  transition: color 0.2s ease;
}

.search-box:focus-within .search-icon {
  color: var(--accent);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

.search-box input::placeholder {
  color: var(--muted);
  font-weight: 400;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-inline: 0;
  padding: 0;
  overflow: visible;
}

.app-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.app-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 113, 227, 0.28);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.12);
}

.app-art {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eef2f7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.art-dashboard,
.art-mobile,
.art-media,
.art-dev {
  position: absolute;
  inset: 0;
  padding: 22px;
}

.app-art::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.48), transparent 52%);
  content: "";
}

.theme-blue {
  background: linear-gradient(145deg, #e8f3ff, #dcefff 45%, #ffffff);
}

.theme-green {
  background: linear-gradient(145deg, #e8fff8, #dff7ef 48%, #ffffff);
}

.theme-coral {
  background: linear-gradient(145deg, #fff0ee, #ffe7dc 48%, #ffffff);
}

.theme-violet {
  background: linear-gradient(145deg, #f0edff, #e4e7ff 48%, #ffffff);
}

.mini-window,
.mini-phone,
.mini-panel {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(18px);
}

.mini-window {
  min-height: 188px;
  border-radius: 20px;
  padding: 18px;
}

.mini-window::before {
  display: block;
  width: 76px;
  height: 10px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: rgba(17, 17, 20, 0.14);
  content: "";
}

.bars {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 96px;
}

.bars i {
  flex: 1;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, var(--blue), var(--green));
}

.mini-phone {
  width: 118px;
  min-height: 212px;
  margin: 0 auto;
  border-radius: 28px;
  padding: 16px 14px;
}

.mini-phone::before {
  display: block;
  width: 44px;
  height: 5px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: rgba(17, 17, 20, 0.18);
  content: "";
}

.mini-panel {
  height: 76px;
  margin-bottom: 12px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(0, 113, 227, 0.92), rgba(118, 87, 255, 0.82));
}

.mini-lines {
  display: grid;
  gap: 8px;
}

.mini-lines i {
  height: 9px;
  border-radius: 999px;
  background: rgba(17, 17, 20, 0.12);
}

.mini-lines i:nth-child(2) {
  width: 72%;
}

.mini-lines i:nth-child(3) {
  width: 48%;
}

.media-tile-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
}

.media-tile-grid i {
  min-height: 86px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.76);
}

.media-tile-grid i:first-child {
  grid-row: span 2;
  background: linear-gradient(145deg, var(--coral), var(--amber));
}

.code-lines {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.code-lines i {
  height: 10px;
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.38);
}

.code-lines i:nth-child(2n) {
  width: 74%;
  background: rgba(20, 184, 166, 0.86);
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 18px 18px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.card-top h3 {
  margin: 0 0 4px;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.app-category-inline {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.08);
  color: var(--blue);
  vertical-align: middle;
  white-space: nowrap;
  margin-left: 2px;
}

.card-top p,
.app-desc {
  color: var(--muted);
  line-height: 1.58;
}

.price-badge {
  align-self: start;
  min-width: max-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.1);
  color: var(--blue);
  font-size: 15px;
  font-weight: 800;
}

.price-badge.has-discount {
  background: rgba(234, 67, 53, 0.1);
  color: #ea4335;
  display: flex;
  align-items: center;
  gap: 6px;
}

.price-badge.is-free {
  background: rgba(13, 159, 110, 0.1);
  color: #0d9f6e;
}

.price-original {
  text-decoration: line-through;
  opacity: 0.55;
  font-weight: 600;
  font-size: 13px;
}

.detail-price {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(234, 67, 53, 0.1);
  color: #ea4335;
  font-size: 15px;
  font-weight: 700;
}

.detail-price .price-original {
  font-size: 13px;
}

.detail-price.is-free {
  background: rgba(13, 159, 110, 0.1);
  color: #0d9f6e;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.card-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(245, 245, 247, 0.9);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 14px;
}

.app-tags span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.card-actions .secondary-button,
.card-actions .primary-button {
  flex: 1;
  min-height: 40px;
  padding-inline: 14px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 34px clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  display: block;
  color: var(--ink);
  margin-bottom: 5px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
}

.footer-icp {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  line-height: 1.5;
}

.footer-icp a {
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-icp a:hover {
  color: var(--blue);
}

.xunchang-logo {
  height: 60px;
  width: auto;
  vertical-align: middle;
}

.footer-powered {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}

.powered-label {
  white-space: nowrap;
}

.powered-name {
  font-weight: 700;
  white-space: nowrap;
}

.powered-slogan {
  font-style: italic;
  opacity: 0.7;
  white-space: nowrap;
}

.detail-page {
  background: var(--page);
}

.detail-container {
  width: min(var(--max), calc(100% - 128px));
  margin: 0 auto;
  padding: 32px 0 80px;
}

.detail-back-link {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  transition: color 180ms ease;
}

.detail-back-link:hover {
  color: var(--blue);
}

.detail-hero {
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: clamp(28px, 5vw, 48px);
  align-items: start;
  margin-bottom: 40px;
}

.detail-hero-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.app-icon-large {
  display: grid;
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--blue), var(--green));
  color: #fff;
  font-size: 36px;
  font-weight: 800;
  box-shadow: none;
  overflow: hidden;
}

.detail-title-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-title-text h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  color: #1D2129;
  line-height: 1.2;
}

.detail-category-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}

.detail-category-tag {
  display: inline-flex;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(22, 93, 255, 0.08);
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.detail-version {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.detail-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-solid);
  font-size: 14px;
  color: var(--ink-soft);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.detail-meta-item .meta-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.detail-meta-item .meta-label {
  color: var(--muted);
  margin-right: 4px;
}

.detail-meta-item .meta-value {
  color: var(--ink);
  font-weight: 500;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.detail-hero-preview {
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(145deg, #e8f3ff, #f0fff8);
  max-height: 380px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transition: transform 300ms ease;
  border: 1px solid var(--line);
}

.detail-hero-preview:hover {
  transform: scale(1.02);
}

.detail-hero-preview img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

.detail-showcase {
  position: relative;
  height: 100%;
  min-height: 360px;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.detail-showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 无封面时的默认占位 */
.default-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 360px;
  background: linear-gradient(145deg, #EEF2FF, #F0FFF4);
  border-radius: var(--radius);
}

.default-cover-letter {
  font-size: 64px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.default-cover-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.detail-anchor-nav {
  position: sticky;
  top: 64px;
  z-index: 15;
  display: flex;
  gap: 4px;
  margin-bottom: 48px;
  padding: 6px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.anchor-tab {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 8px;
  border-bottom: none;
  transition: color 180ms ease, background 180ms ease;
}

.anchor-tab:hover {
  color: var(--ink);
  background: rgba(0, 0, 0, 0.03);
}

.anchor-tab.active {
  color: var(--blue);
  background: var(--blue-soft);
  font-weight: 600;
  border-bottom: none;
}

.detail-section {
  margin-bottom: 56px;
}

.section-header {
  margin-bottom: 24px;
}

.section-header h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  color: #1D2129;
}

.section-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.screenshot-carousel {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.screenshot-carousel::-webkit-scrollbar {
  height: 6px;
}

.screenshot-carousel::-webkit-scrollbar-track {
  background: transparent;
}

.screenshot-carousel::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}

.screenshot-card {
  flex: 0 0 auto;
  width: 340px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  scroll-snap-align: start;
  cursor: pointer;
  transition: box-shadow 200ms ease, transform 200ms ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.screenshot-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.screenshot-art {
  min-height: 200px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-art img {
  display: block;
  max-width: 100%;
  max-height: 640px;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
  object-fit: contain;
}

.screenshot-caption {
  padding: 16px;
}

.screenshot-caption h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.screenshot-caption p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-item {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-solid);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.feature-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.feature-item span {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.feature-item h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: #1D2129;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.detail-split-layout {
  display: grid;
  grid-template-columns: 65fr 30fr;
  gap: clamp(22px, 5vw, 48px);
  align-items: start;
}

.detail-about-panel {
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.detail-about-panel h3 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 500;
  color: #4E5969;
}

.detail-about-body {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

.detail-about-body p {
  margin: 0 0 12px;
}

.detail-about-body p:last-child {
  margin-bottom: 0;
}

.detail-changelog-panel {
  position: sticky;
  top: 120px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  position: relative;
  padding-left: 18px;
}

.timeline-item::before {
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

.timeline-item strong {
  display: block;
  margin-bottom: 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}

.timeline-item .timeline-date {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--muted);
}

.timeline-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.timeline-item.is-current strong::after {
  content: "当前";
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--blue);
  background: rgba(22, 93, 255, 0.08);
  border-radius: 4px;
  vertical-align: middle;
}

.comment-overview {
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 28px 32px;
  margin-bottom: 24px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.comment-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 120px;
}

.comment-score-num {
  font-size: 42px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.comment-score-stars {
  color: var(--amber);
  font-size: 16px;
  letter-spacing: 2px;
}

.comment-score-count {
  font-size: 12px;
  color: var(--muted);
}

.comment-distribution {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.star-dist-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.star-dist-row .star-label {
  min-width: 28px;
  text-align: right;
  color: var(--ink-soft);
  font-weight: 500;
}

.star-dist-bar {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}

.star-dist-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--amber);
  transition: width 400ms ease;
}

.star-dist-count {
  min-width: 24px;
  text-align: right;
}

.comment-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

.comment-list-col {
  display: grid;
  gap: 12px;
}

.comment-form-col {
  position: sticky;
  top: 120px;
}

.comment-form {
  padding: 24px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  display: grid;
  gap: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.comment-form-login-hint {
  padding: 10px 14px;
  border-radius: var(--radius);
  background: rgba(22, 93, 255, 0.06);
  color: var(--blue);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.comment-form-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: rgba(22, 93, 255, 0.04);
}

.comment-user-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.comment-user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.comment-form.is-locked {
  opacity: 0.55;
  pointer-events: none;
}

.star-rating-field {
  display: flex;
  align-items: center;
  gap: 10px;
}

.star-rating-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-soft);
}

.star-rating-input {
  display: flex;
  gap: 2px;
}

.star-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--line);
  cursor: pointer;
  padding: 0 2px;
  transition: color 140ms ease, transform 140ms ease;
}

.star-btn:hover {
  transform: scale(1.15);
}

.star-btn.active {
  color: var(--amber);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 12px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  outline: 0;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input,
select {
  height: 44px;
  padding: 0 12px;
}

textarea {
  min-height: 112px;
  margin-bottom: 14px;
  padding: 12px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(0, 113, 227, 0.54);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.11);
}

input:user-invalid,
textarea:user-invalid,
select:user-invalid {
  border-color: var(--coral);
  background: rgba(255, 107, 95, 0.06);
  box-shadow: 0 0 0 4px rgba(255, 107, 95, 0.1);
}

.field-err {
  margin: -6px 0 0;
  color: var(--coral);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.comment-list {
  display: grid;
  gap: 12px;
}

.comment-item {
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  transition: box-shadow 200ms ease;
}

.comment-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.comment-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.comment-head strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.comment-head span {
  color: var(--amber);
  font-size: 13px;
}

.comment-date {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--muted);
}

.comment-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.62;
}

dialog {
  width: min(620px, calc(100% - 28px));
  border: 0;
  padding: 0;
  background: transparent;
}

dialog::backdrop {
  background: rgba(17, 17, 20, 0.32);
  backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  padding: clamp(24px, 5vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.modal-card h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}

.modal-note,
.form-message,
.purchase-card p {
  color: var(--muted);
  line-height: 1.58;
}

/* 错误提示：红字 */
.form-message.error {
  color: #e74c3c;
}

/* 成功提示：绿字 */
.form-message.success {
  color: #27ae60;
}

.download-card h2 {
  margin: 0 0 6px;
}

.platform-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 8px;
}

.platform-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  text-align: left;
  width: 100%;
  font: inherit;
}

.platform-item:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(0, 113, 227, 0.1);
}

.platform-item.is-recommended {
  border-color: var(--blue);
  background: rgba(0, 113, 227, 0.04);
}

.platform-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(0, 113, 227, 0.08);
  font-size: 20px;
  flex-shrink: 0;
}

.platform-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.platform-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.platform-info strong {
  font-size: 15px;
  color: var(--ink);
}

.platform-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  margin-left: auto;
}

.platform-arch {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.08);
  color: var(--blue);
}

.platform-size {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}

.platform-file {
  color: var(--subtle);
  font-weight: 500;
  font-size: 11px;
  font-family: var(--mono, "SF Mono", "Fira Code", monospace);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
}

.download-recommended {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 2px solid var(--blue);
  border-radius: 14px;
  background: rgba(0, 113, 227, 0.04);
  margin-bottom: 14px;
}

.download-recommended-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.download-recommended-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.download-recommended-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.download-recommended-info strong {
  font-size: 15px;
  color: var(--ink);
}

.download-recommended-info small {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}

.download-arch {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.08);
  color: var(--blue);
}

.download-primary-btn {
  width: 100%;
  justify-content: center;
}

.download-all-title {
  margin: 4px 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.download-area {
  margin-top: 16px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 22px 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(245, 245, 247, 0.86);
}

.auth-tabs button {
  min-height: 36px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.auth-tabs button.active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.08);
}

.auth-panel {
  display: none;
  gap: 14px;
}

.auth-panel.active {
  display: grid;
}

.forgot-link {
  justify-self: end;
  margin-top: -4px;
  font-size: 13px;
  color: var(--blue, #0071e3);
  text-decoration: none;
  cursor: pointer;
}

.forgot-link:hover {
  text-decoration: underline;
}

.inline-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.inline-field .secondary-button {
  align-self: start;
  margin-top: 26px;
  min-height: 44px;
  min-width: max-content;
  white-space: nowrap;
}

.inline-field .secondary-button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
}

.captcha-refresh {
  display: block;
  margin: 6px auto 0;
  background: none;
  border: none;
  font-size: 13px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  transition: color 140ms ease, background 140ms ease;
}

.captcha-refresh:hover {
  color: var(--blue);
  background: rgba(0, 113, 227, 0.08);
}

.slide-captcha {
  user-select: none;
  -webkit-user-select: none;
}

.captcha-image-wrapper {
  position: relative;
  width: 310px;
  height: 155px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f0f0f0;
}

.captcha-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.captcha-jigsaw {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  pointer-events: none;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.35));
}

.captcha-slider-track {
  position: relative;
  width: 310px;
  height: 40px;
  margin-top: 12px;
  background: #e8e8e8;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.captcha-slider-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(0, 113, 227, 0.18), rgba(0, 113, 227, 0.32));
  border-radius: 20px;
  transition: none;
}

.captcha-slider-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 36px;
  height: 36px;
  background: var(--blue);
  border-radius: 50%;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.35);
  transition: box-shadow 140ms ease;
  z-index: 2;
}

.captcha-slider-thumb::after {
  content: "⟩";
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.captcha-slider-thumb:active {
  cursor: grabbing;
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.5);
}

.captcha-slider-track.success .captcha-slider-fill {
  background: linear-gradient(90deg, rgba(82, 196, 26, 0.18), rgba(82, 196, 26, 0.32));
}

.captcha-slider-track.success .captcha-slider-thumb {
  background: #52c41a;
  box-shadow: 0 2px 8px rgba(82, 196, 26, 0.35);
}

.captcha-slider-track.success .captcha-slider-thumb::after {
  content: "✓";
}

.captcha-slider-track.fail .captcha-slider-fill {
  background: linear-gradient(90deg, rgba(255, 107, 95, 0.18), rgba(255, 107, 95, 0.32));
}

.captcha-slider-track.fail .captcha-slider-thumb {
  background: var(--coral);
  box-shadow: 0 2px 8px rgba(255, 107, 95, 0.35);
}

.captcha-slider-track.fail .captcha-slider-thumb::after {
  content: "✕";
}

.captcha-slider-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #999;
  font-size: 13px;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 140ms ease;
}

.captcha-slider-track.dragging .captcha-slider-hint,
.captcha-slider-track.success .captcha-slider-hint,
.captcha-slider-track.fail .captcha-slider-hint {
  opacity: 0;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.icon-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(17, 17, 20, 0.08);
  color: var(--ink);
  font-size: 22px;
}

.checkout-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(245, 245, 247, 0.74);
}

.checkout-box span {
  color: var(--muted);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 50px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.orders-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.orders-tab {
  padding: 7px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-solid);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.orders-tab:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.orders-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.orders-list {
  display: grid;
  gap: 14px;
}

.orders-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-solid);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--blue);
  color: var(--blue);
}

.page-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-info {
  font-size: 13px;
  color: var(--muted);
  padding: 0 8px;
}

.order-card {
  display: grid;
  gap: 12px;
  padding: 20px 24px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.order-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.order-info h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
}

.order-no {
  font-size: 12px;
  color: var(--muted);
}

.order-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.order-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.status-paid {
  background: #e6f9f0;
  color: #0d9f6e;
}

.status-pending {
  background: #fff7e6;
  color: #c27803;
}

.status-cancelled {
  background: #f5f5f7;
  color: var(--muted);
}

.status-refunded {
  background: #ffe6e6;
  color: #d63031;
}

.order-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.order-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-time {
  font-size: 13px;
  color: var(--muted);
}

.order-action {
  font-size: 13px;
  padding: 6px 16px;
}

.pay-card {
  max-width: 480px;
  margin: 0 auto;
}

.pay-body {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin: 20px 0 0;
}

.pay-qr-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pay-qr-wrapper [data-pay-qr-container] {
  display: contents;
}

.pay-qr-wrapper [data-pay-qr-container] canvas,
.pay-qr-wrapper [data-pay-qr-container] img {
  display: block;
  width: 180px !important;
  height: 180px !important;
}

.pay-qr-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
}

.pay-qr-overlay span {
  font-size: 15px;
  font-weight: 700;
  color: var(--coral);
}

.pay-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.pay-amount-row,
.pay-countdown-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.pay-amount-label,
.pay-countdown-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.pay-amount-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--coral);
  line-height: 1;
}

.pay-countdown-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.pay-countdown-value.is-urgent {
  color: var(--coral);
}

.pay-hint {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.pay-hint strong {
  color: var(--blue);
}

.status-activated {
  background: #e8f3ff;
  color: var(--blue);
}

.status-refunding {
  background: #fff7e6;
  color: #c27803;
}

.profile-card {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 32px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.profile-avatar {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.profile-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-label {
  flex-shrink: 0;
  width: 72px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.profile-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-all;
}

.profile-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

@media (max-width: 520px) {
  .profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .profile-label {
    width: auto;
  }
}

@media (max-width: 520px) {
  .pay-body {
    flex-direction: column;
    align-items: center;
  }

  .pay-info {
    width: 100%;
  }
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  animation: soft-rise 620ms ease both;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes soft-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

@media (max-width: 980px) {
  .top-nav {
    display: none;
  }

  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-hero-preview {
    max-height: 280px;
  }

  .detail-split-layout {
    grid-template-columns: 1fr;
  }

  .detail-changelog-panel {
    position: static;
    max-height: none;
  }

  .comment-layout {
    grid-template-columns: 1fr;
  }

  .comment-form-col {
    position: static;
  }

  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 720px) {
  .site-header {
    height: 60px;
  }

  .detail-container {
    width: min(100% - 28px, var(--max));
  }

  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-hero-preview {
    max-height: 220px;
  }

  .detail-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-meta-grid {
    grid-template-columns: 1fr 1fr;
  }

  .detail-anchor-nav {
    top: 60px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .anchor-tab {
    padding: 12px 16px;
    white-space: nowrap;
    font-size: 13px;
  }

  .detail-section {
    margin-bottom: 48px;
  }

  .detail-split-layout {
    grid-template-columns: 1fr;
  }

  .detail-changelog-panel {
    position: static;
    max-height: none;
  }

  .comment-overview {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .comment-layout {
    grid-template-columns: 1fr;
  }

  .comment-form-col {
    position: static;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .segmented {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .search-box {
    min-width: 0;
  }

  .app-grid,
  .feature-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .app-grid {
    display: grid;
    grid-auto-flow: row;
    grid-auto-columns: initial;
    overflow-x: visible;
    padding-inline: 0;
    margin-inline: 0;
  }

  .app-art {
    aspect-ratio: 16 / 9;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .modal-actions,
  .card-actions {
    flex-direction: column;
  }

  .detail-showcase {
    min-height: 280px;
  }
}

/* ============ 授权码展示 ============ */
.license-success-card {
  max-width: 480px;
  margin: 0 auto;
}

.license-success-head {
  text-align: center;
  margin-bottom: 16px;
}

.license-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #34d399, #10b981);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 12px;
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.28);
}

.license-success-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 4px;
}

.license-success-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.license-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
}

.license-item {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  transition: border-color 0.2s ease;
}

.license-item:hover {
  border-color: var(--blue);
}

.license-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.license-item-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8f3ff;
  color: var(--blue);
}

.license-item-tag.is-platform {
  background: #e6f9f0;
  color: #0d9f6e;
}

.license-code-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.license-code {
  flex: 1;
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, monospace;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  user-select: all;
  word-break: break-all;
}

.license-copy-btn {
  flex-shrink: 0;
  font-size: 12px;
  padding: 8px 14px;
  font-weight: 700;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.license-copy-btn:hover {
  background: #2c5fc7;
}

.license-copy-btn.is-copied {
  background: #10b981;
}

.license-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.license-item-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.license-item-meta-item strong {
  color: var(--ink);
  font-weight: 700;
}

.license-tip {
  margin: 12px 0 0;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.6;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
}

.license-tip strong {
  color: #78350f;
}

/* 订单卡片内嵌的授权码区 */
.order-licenses {
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-licenses-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.order-licenses-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.order-licenses-title::before {
  content: "🔑";
  font-size: 14px;
}

.order-licenses-toggle {
  font-size: 12px;
  color: var(--blue);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  font-weight: 600;
}

.order-licenses-toggle:hover {
  text-decoration: underline;
}

.order-licenses-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-licenses-body.is-collapsed {
  display: none;
}

.order-license-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}

.order-license-row code {
  flex: 1;
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--ink);
  word-break: break-all;
  user-select: all;
}

.order-license-copy {
  flex-shrink: 0;
  font-size: 11px;
  padding: 4px 10px;
  font-weight: 700;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.order-license-copy.is-copied {
  background: #10b981;
}

.order-license-meta {
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .license-code {
    font-size: 14px;
  }

  .license-copy-btn {
    padding: 8px 10px;
    font-size: 11px;
  }

  .order-license-meta {
    display: none;
  }
}

/* ============ Toast 轻提示 ============ */
.toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: calc(100vw - 32px);
}

.toast-container.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22);
  backdrop-filter: blur(8px);
  max-width: 480px;
  word-break: break-word;
}

.toast-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.toast-success {
  background: linear-gradient(135deg, #34d399, #059669);
}

.toast-error {
  background: linear-gradient(135deg, #f87171, #dc2626);
}

.toast-warning {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #2d1a04;
}

/* ============ 安装详情表格 ============ */
.install-guide-block {
  margin-bottom: 20px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.04), rgba(99, 102, 241, 0.06));
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: var(--radius);
}

.install-guide-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
}

.install-guide-body p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.install-guide-body p:last-child {
  margin-bottom: 0;
}

.install-version-info {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--muted);
}

.install-version-info strong {
  color: var(--fg);
}

.install-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.install-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.install-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.install-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.install-table tbody tr:last-child td {
  border-bottom: none;
}

.install-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.04);
}

.install-table tr.is-recommended {
  background: rgba(59, 130, 246, 0.06);
}

.install-table tr.is-recommended:hover {
  background: rgba(59, 130, 246, 0.1);
}

.install-platform {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.install-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

.install-filename {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono, "SF Mono", "Fira Code", monospace);
  font-size: 13px;
  color: var(--muted);
}

.install-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.08);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.install-download-btn:hover {
  background: rgba(59, 130, 246, 0.18);
  color: #2563eb;
}

.install-na {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 640px) {
  .install-table th,
  .install-table td {
    padding: 10px 10px;
    font-size: 13px;
  }

  .install-filename {
    max-width: 120px;
  }
}

.toast-warning .toast-icon {
  background: rgba(45, 26, 4, 0.18);
}

.toast-info {
  background: linear-gradient(135deg, #60a5fa, #2563eb);
}

@media (max-width: 520px) {
  .toast {
    font-size: 13px;
    padding: 10px 16px;
    max-width: calc(100vw - 24px);
  }
}

/* ============ 2026 editorial refresh ============ */
:root {
  --ink: #151515;
  --ink-soft: #54504b;
  --muted: #7c746c;
  --subtle: #a79f96;
  --line: #ded9d1;
  --line-strong: #aaa197;
  --page: #f4f1eb;
  --surface: rgba(255, 253, 249, 0.82);
  --surface-solid: #fffdf9;
  --blue: #b63326;
  --blue-soft: #f4e5df;
  --coral: #b63326;
  --accent: #b63326;
  --shadow: 0 26px 70px rgba(44, 35, 25, 0.12);
  --shadow-soft: 0 12px 32px rgba(44, 35, 25, 0.08);
  --radius: 3px;
  --radius-sm: 3px;
  --radius-xs: 2px;
}

body {
  background:
    radial-gradient(circle at 8% 0%, rgba(197, 79, 55, 0.075), transparent 26rem),
    linear-gradient(90deg, rgba(39, 31, 22, 0.025) 1px, transparent 1px),
    var(--page);
  background-size: auto, 5px 5px, auto;
  color: var(--ink);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 49.96%, rgba(30, 25, 19, 0.032) 50%, transparent 50.04%);
  content: "";
}

::selection { background: #d75141; color: #fffdf9; }

.site-header {
  height: 74px;
  padding: 0 clamp(22px, 4.8vw, 96px);
  border-bottom: 1px solid rgba(21, 21, 21, 0.12);
  background: rgba(244, 241, 235, 0.82);
  box-shadow: none;
  backdrop-filter: blur(16px) saturate(110%);
}

.brand { gap: 11px; }
.brand-mark { border-radius: 50%; box-shadow: none; background: var(--ink); }
.brand strong { font-family: "Noto Serif SC", Georgia, serif; font-size: 17px; letter-spacing: 0.06em; }
.brand small { margin-top: 1px; color: var(--ink-soft); font-family: "DM Mono", monospace; font-size: 9px; letter-spacing: 0.08em; }
.top-nav { font-family: "DM Mono", monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.top-nav a { position: relative; padding: 7px 0; }
.top-nav a::after { position: absolute; right: 0; bottom: 1px; left: 0; height: 1px; background: var(--accent); content: ""; transform: scaleX(0); transform-origin: right; transition: transform 220ms ease; }
.top-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.primary-button, .secondary-button, .ghost-button {
  min-height: 44px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.primary-button { background: var(--ink); box-shadow: none; }
.primary-button:hover { background: var(--accent); box-shadow: 0 10px 22px rgba(182, 51, 38, 0.2); transform: translateY(-2px); }
.secondary-button, .ghost-button { border-color: var(--ink); background: transparent; }
.secondary-button:hover, .ghost-button:hover { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.section-wrap { width: min(1320px, calc(100% - 96px)); padding: clamp(58px, 8vw, 112px) 0; }
.section-heading { position: relative; max-width: 900px; margin-bottom: 42px; padding-top: 22px; }
.section-heading::before { position: absolute; top: 0; left: 0; width: 42px; height: 2px; background: var(--accent); content: ""; }
.section-heading h2 { max-width: 800px; margin-bottom: 16px; color: var(--ink); font-family: "Noto Serif SC", Georgia, serif; font-size: clamp(34px, 4.6vw, 64px); font-weight: 600; letter-spacing: -0.055em; line-height: 1.14; }
.section-heading h2 span { color: var(--ink-soft); }
.section-heading p, .detail-title-row p { max-width: 640px; color: var(--ink-soft); font-size: 15px; line-height: 1.85; }

.toolbar { margin-bottom: 32px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.segmented { gap: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.segmented button { min-height: 36px; padding: 0 14px; border-radius: 0; color: var(--ink-soft); font-family: "DM Mono", monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.04em; }
.segmented button:first-child { padding-left: 0; }
.segmented button.active { background: transparent; color: var(--accent); box-shadow: inset 0 -1px 0 var(--accent); }
.search-box { min-height: 38px; min-width: min(100%, 280px); padding: 0 0 0 10px; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; background: transparent; box-shadow: none; }
.search-box:hover, .search-box:focus-within { border-color: var(--ink); background: transparent; box-shadow: none; }
.search-box input { font-size: 13px; }

.app-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 420px)); gap: 24px; border: 0; background: transparent; }
.app-card { border: 1px solid var(--line); border-radius: 0; background: var(--surface-solid); box-shadow: none; }
.app-card:hover { border-color: var(--line-strong); box-shadow: 0 16px 36px rgba(44, 35, 25, 0.08); transform: translateY(-3px); }
.app-art { aspect-ratio: 16 / 9; background: #e9e4dc; }
.app-icon-img { display: block; object-fit: contain; }
.app-card:hover .app-icon-img { transform: none; }
.theme-blue { background: #dce7e4; } .theme-green { background: #dce5cf; } .theme-coral { background: #efd6cf; } .theme-violet { background: #ded9ea; }
.mini-window, .mini-phone, .mini-panel { border-color: rgba(21, 21, 21, 0.12); border-radius: 3px; box-shadow: 8px 10px 0 rgba(21, 21, 21, 0.12); backdrop-filter: none; }
.mini-panel { background: var(--ink); } .bars i { background: var(--accent); }
.card-body { padding: 22px 22px 24px; }
.card-top { margin-bottom: 10px; }
.card-top h3 { font-family: "Noto Serif SC", Georgia, serif; font-size: 21px; font-weight: 600; letter-spacing: -0.035em; }
.app-category-inline, .price-badge, .detail-price { border-radius: 0; background: transparent; color: var(--accent); font-family: "DM Mono", monospace; font-size: 13px; letter-spacing: 0.04em; }
.price-badge { padding: 5px 0; }.price-badge.has-discount { background: transparent; color: var(--accent); }.price-badge.is-free, .detail-price.is-free { background: transparent; color: #4a735b; }
.card-top p, .app-desc { color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.card-meta { gap: 5px; margin-top: 2px; }.card-meta span, .app-tags span { padding: 4px 7px; border: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink-soft); font-family: "DM Mono", monospace; font-size: 10px; font-weight: 400; }
.app-tags { margin: 12px 0 20px; }.card-actions { gap: 8px; }.card-actions .secondary-button, .card-actions .primary-button { min-height: 39px; font-size: 12px; }

.detail-page { background: transparent; }.detail-container { width: min(1320px, calc(100% - 96px)); }.detail-back-link { align-items: center; gap: 8px; color: var(--ink-soft); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; font-weight: 400; letter-spacing: 0; }.detail-back-icon { font-size: 20px; font-weight: 400; line-height: 1; }.detail-back-link:hover { color: var(--accent); }
.detail-hero { border-bottom: 0; }.detail-title-text h1, .detail-copy h1 { font-family: "Noto Serif SC", Georgia, serif; font-weight: 600; letter-spacing: -0.06em; }.detail-meta-item, .detail-hero-preview, .screenshot-card, .comment-form, .comment-item, .detail-about-panel, .detail-changelog-panel, .feature-item, .comment-overview, .profile-card, .order-card { border-color: var(--line); border-radius: 0; box-shadow: none; background: var(--surface-solid); }
.detail-split-layout { grid-template-columns: 1fr; gap: 24px; }
.detail-changelog-panel { position: static; max-height: none; }
.detail-hero-preview:hover, .screenshot-card:hover, .feature-item:hover, .comment-item:hover { box-shadow: none; transform: none; }
.detail-hero-preview, .screenshot-card { border-radius: 10px; overflow: hidden; }
.detail-hero-preview img, .screenshot-art img { border-radius: 0; }
.detail-anchor-nav { border-color: var(--line); background: rgba(244, 241, 235, .88); }.anchor-tab { font-family: "DM Mono", monospace; font-size: 11px; letter-spacing: .04em; }.anchor-tab.active { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.section-header h2 { font-family: "Noto Serif SC", Georgia, serif; font-size: clamp(27px, 3vw, 38px); font-weight: 600; letter-spacing: -.05em; }.section-desc { color: var(--ink-soft); }

.site-footer { margin-top: 30px; padding: 48px clamp(22px, 4.8vw, 96px); border-top: 1px solid var(--ink); background: var(--ink); color: #f4f1eb; }.site-footer p, .site-footer strong { color: inherit; }.site-footer nav a, .footer-icp a { color: #d9d0c5; }.site-footer nav a:hover, .footer-icp a:hover { color: #fff; }.powered-name { color: #e37b6c; }

.modal-card { border: 1px solid var(--line-strong); border-radius: 3px; background: #fffdf9; box-shadow: 16px 18px 0 rgba(21, 21, 21, .12); }.auth-modal::backdrop, .download-modal::backdrop, .purchase-modal::backdrop, .pay-modal::backdrop { background: rgba(21, 21, 21, .48); backdrop-filter: blur(4px); }.auth-tabs { border-radius: 0; background: #ede8e0; }.auth-tabs button { border-radius: 0; }.auth-tabs button.active { background: var(--ink); color: #fff; }.icon-close { border-radius: 0; }.checkout-box, .platform-item { border-radius: 0; }

@media (max-width: 980px) { .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (max-width: 720px) {
  .site-header { height: 64px; padding-inline: 18px; }
  .brand small { display: none; }
  .section-wrap, .detail-container { width: min(100% - 36px, 1320px); }
  .section-wrap { padding-block: 48px; }
  .section-heading { margin-bottom: 30px; }
  .section-heading h2 { font-size: clamp(31px, 10vw, 44px); }
  .toolbar { align-items: stretch; }
  .segmented { overflow-x: auto; }
  .segmented button { flex: 0 0 auto; }
  .search-box { width: 100%; }
  .app-grid { grid-template-columns: 1fr; gap: 16px; }
  .app-art { aspect-ratio: 16 / 9; }
  .site-footer { padding: 38px 18px; }
}

/* ============ IKEA-inspired retail palette ============ */
:root {
  --ink: #111111;
  --ink-soft: #484848;
  --muted: #737373;
  --subtle: #929292;
  --line: #dfdfdf;
  --line-strong: #8c8c8c;
  --page: #ffffff;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --blue: #0058a3;
  --blue-soft: #e8f2fb;
  --accent: #0058a3;
  --coral: #0058a3;
}

body { background: var(--page); }
body::before { display: none; }
.site-header { border-bottom-color: #e6e6e6; background: rgba(255, 255, 255, .94); }
.brand-mark { background: #0058a3; }
.primary-button { background: #0058a3; }
.primary-button:hover { background: #004f93; box-shadow: 0 10px 20px rgba(0, 88, 163, .2); }
.secondary-button:hover, .ghost-button:hover { border-color: #0058a3; background: #0058a3; }
.section-heading::before { width: 48px; background: #ffdb00; }
.section-heading h2 span { color: #0058a3; }
.section-wrap { padding-top: clamp(48px, 6vw, 84px); }

.toolbar { position: relative; margin-bottom: 36px; padding: 0; min-height: 58px; border-top: 0; border-bottom-color: #dedede; }
.segmented { position: relative; align-self: stretch; }
.segmented button { position: relative; min-height: 58px; padding: 0 18px; color: #111; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 0; transition: color 180ms ease; }
.segmented button:first-child { padding-left: 0; }
.segmented button:hover, .segmented button.active { color: #0058a3; }
.segmented button.active { box-shadow: none; }
.segmented-indicator { position: absolute; bottom: -1px; left: 0; height: 3px; background: #0058a3; pointer-events: none; transition: transform 260ms cubic-bezier(.2,.8,.2,1), width 260ms cubic-bezier(.2,.8,.2,1); }
.search-box {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #111;
  border-radius: 0;
  background: #fff;
}
.search-box:hover,
.search-box:focus-within {
  border-color: #111;
  background: #fff;
  box-shadow: none;
}
.search-box input:focus,
.search-box input:focus-visible {
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

.app-card { border-color: #dfdfdf; }.app-card:hover { border-color: #0058a3; box-shadow: 0 12px 28px rgba(0, 42, 78, .12); }
.app-art { background: #f3f3f3; }.app-category-inline, .price-badge, .detail-price { color: #0058a3; }
.price-badge.is-free, .detail-price.is-free { color: #0058a3; }.price-badge.has-discount { color: #d92d20; }
.card-meta span, .app-tags span { border-color: #d5d5d5; }
.site-footer { border-top: 0; background: #0058a3; color: #fff; }.site-footer nav a, .footer-icp a { color: #fff; }.powered-name { color: #ffdb00; }

@media (max-width: 720px) {
  .toolbar { min-height: auto; padding-bottom: 12px; }
  .segmented { min-height: 48px; }
  .segmented button { min-height: 48px; padding-inline: 14px; font-size: 13px; }
  .segmented-indicator { bottom: -1px; }
}

/* Detail page: editorial section navigation, based on the generated visual direction. */
.detail-anchor-nav {
  position: sticky;
  top: 74px;
  z-index: 15;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  min-height: 68px;
  margin-bottom: 64px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid #d9d9d9;
  border-radius: 0;
  background: rgba(255, 255, 255, .96);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.detail-anchor-nav::before {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 40px;
  height: 3px;
  background: #ffdb00;
  display: none;
  content: "";
}

.anchor-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #5d5d5d;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease;
}

.anchor-tab + .anchor-tab::before {
  display: none;
}

.anchor-tab + .anchor-tab {
  border-left: 0;
}

.anchor-tab:hover { background: #f5f8fb; color: #0058a3; }
.anchor-tab.active { background: transparent; color: #0058a3; font-weight: 800; box-shadow: none; }
.anchor-indicator {
  position: absolute;
  bottom: -1px;
  left: 0;
  z-index: 1;
  height: 3px;
  background: #0058a3;
  pointer-events: none;
  transition: transform 260ms cubic-bezier(.2,.8,.2,1), width 260ms cubic-bezier(.2,.8,.2,1);
}

@media (max-width: 720px) {
  .detail-anchor-nav { display: flex; grid-template-columns: none; top: 64px; min-height: 56px; margin-bottom: 44px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .anchor-tab { flex: 0 0 auto; min-height: 56px; padding: 0 16px; font-size: 13px; }
}

/* ============ Monochrome theme ============ */
:root {
  --ink: #111111;
  --ink-soft: #3f3f3f;
  --muted: #6e6e6e;
  --subtle: #8d8d8d;
  --line: #d9d9d9;
  --line-strong: #111111;
  --page: #ffffff;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --blue: #111111;
  --blue-soft: #f2f2f2;
  --green: #111111;
  --amber: #111111;
  --violet: #111111;
  --coral: #111111;
  --accent: #111111;
}

.brand-mark { background: #111111; }
.primary-button,
.primary-button:hover { background: #111111; box-shadow: none; }
.secondary-button:hover,
.ghost-button:hover { border-color: #111111; background: #111111; color: #fff; }
.section-heading::before,
.detail-anchor-nav::before,
.segmented-indicator,
.anchor-indicator { background: #111111; }
.section-heading h2 span,
.segmented button:hover,
.segmented button.active,
.anchor-tab:hover,
.anchor-tab.active,
.app-category-inline,
.price-badge,
.detail-price,
.price-badge.is-free,
.detail-price.is-free { color: #111111; }
.app-card:hover { border-color: #111111; box-shadow: 0 12px 28px rgba(0, 0, 0, .1); }
.price-badge.has-discount { color: #111111; }
.site-footer { background: #111111; color: #fff; }.site-footer nav a, .footer-icp a { color: #fff; }.powered-name { color: #fff; }
.install-table tbody tr:hover,
.install-table tr.is-recommended,
.install-table tr.is-recommended:hover { background: #f3f3f3; }
.install-badge { background: #111111; color: #fff; }
.install-download-btn { background: #f2f2f2; color: #111111; }
.install-download-btn:hover { background: #111111; color: #fff; }
.status-activated { background: #f2f2f2; color: #111111; }
.segmented button { color: #777777; font-weight: 600; }
.segmented button:hover { color: #3f3f3f; }
.segmented button.active { color: #111111; font-weight: 800; }
.app-card[hidden] { display: none; }
.section-heading::before { display: none; }
.site-header {
  background: rgba(255, 255, 255, .68);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
}
.section-wrap { padding-top: clamp(30px, 3vw, 44px); }

#apps .section-heading {
  padding-top: 0;
  margin-bottom: 48px;
}

.section-heading h2.shiny-text {
  position: relative;
  color: #111111;
}

.section-heading h2.shiny-text .shiny-text-base {
  color: #111111;
}

.section-heading h2.shiny-text .shiny-text-highlight {
  position: absolute;
  inset: 0;
  color: transparent;
  background: linear-gradient(110deg, transparent 42%, rgba(166, 166, 166, .55) 47%, #ffffff 50%, rgba(166, 166, 166, .55) 53%, transparent 58%);
  background-position: 160% 0;
  background-repeat: no-repeat;
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0;
  pointer-events: none;
}

.section-heading h2.shiny-text.is-shining .shiny-text-highlight {
  animation: lightstack-shiny-text 4.8s linear 1 both;
}

@keyframes lightstack-shiny-text {
  0% { background-position: 160% 0; opacity: 0; }
  4% { background-position: 160% 0; opacity: 1; }
  42% { background-position: -140% 0; opacity: 1; }
  46% { background-position: -140% 0; opacity: 0; }
  50% { background-position: 160% 0; opacity: 0; }
  54% { background-position: 160% 0; opacity: 1; }
  92% { background-position: -140% 0; opacity: 1; }
  100% { background-position: -140% 0; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .section-heading h2.shiny-text .shiny-text-highlight { display: none; }
}

.click-spark-canvas {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: block;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  mix-blend-mode: difference;
}

/* Homepage category navigation: a contained, quiet directory-style filter bar. */
#apps .toolbar {
  display: flex;
  align-items: center;
  min-height: 50px;
  margin-bottom: 36px;
  padding: 3px;
  border: 1px solid #ececec;
  border-radius: 6px;
  background: #f7f7f7;
}

#apps .segmented {
  flex: 1;
  min-width: 0;
  align-self: stretch;
  position: relative;
  isolation: isolate;
}

#apps .segmented button,
#apps .segmented button:first-child {
  position: relative;
  z-index: 1;
  width: 112px;
  min-height: 42px;
  padding: 0;
}

#apps .segmented button.active {
  background: transparent;
  border-radius: 8px;
  color: #fff;
}

#apps .segmented-indicator {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: auto;
  left: 0;
  display: block;
  height: 100%;
  border-radius: 8px;
  background: #111;
  pointer-events: none;
  transition: transform 260ms cubic-bezier(.2, .8, .2, 1), width 260ms cubic-bezier(.2, .8, .2, 1);
}

@media (prefers-reduced-motion: reduce) {
  #apps .segmented-indicator { transition: none; }
}

@media (max-width: 720px) {
  #apps .toolbar {
    min-height: 46px;
    padding: 2px;
    overflow: hidden;
  }

  #apps .segmented { overflow: visible; }
  #apps .segmented button,
  #apps .segmented button:first-child {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 40px;
    padding: 0 4px;
  }
}

.support-widget {
  position: fixed;
  top: 56%;
  right: 0;
  z-index: 40;
  width: 96px;
  height: 64px;
}

.support-fab {
  position: absolute;
  top: 0;
  right: -32px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  transition: transform 260ms cubic-bezier(.2, .8, .2, 1);
}

.support-widget:hover .support-fab,
.support-widget:focus-within .support-fab,
.support-widget.is-open .support-fab { transform: translateX(-32px); }

.support-fab img {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  object-fit: cover;
}

.support-popover {
  position: absolute;
  right: 78px;
  bottom: -6px;
  width: 236px;
  padding: 22px 18px 18px;
  border: 1px solid #111;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .16);
  text-align: center;
}

.support-popover[hidden] { display: none; }
.support-popover strong { display: block; margin-bottom: 12px; font-size: 15px; }
.support-popover > img { width: 184px; height: 184px; margin: 0 auto 12px; object-fit: cover; }
.support-popover p { margin: 0; color: #4b4b4b; font-size: 13px; line-height: 1.65; }

.support-close {
  position: absolute;
  top: 6px;
  right: 8px;
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  background: transparent;
  color: #555;
  font-size: 22px;
  line-height: 1;
}

.support-close:hover { color: #111; }

@media (max-width: 720px) {
  .support-widget { top: auto; right: 0; bottom: 28px; }
  .support-popover { right: 0; bottom: calc(100% + 12px); width: 224px; }
}
