/* YSFX public application theme */
:root {
  color-scheme: dark;
  --bg: #070a12;
  --bg-soft: #0d1220;
  --panel: rgba(19, 25, 43, .74);
  --panel-solid: #111827;
  --panel-strong: #151d31;
  --line: rgba(148, 163, 184, .14);
  --line-strong: rgba(148, 163, 184, .24);
  --text: #f4f7ff;
  --muted: #97a3bb;
  --subtle: #6f7c96;
  --accent: #8b5cf6;
  --accent-2: #ec4899;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #f43f5e;
  --radius: 20px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .36);
  --font: "Inter", "SF Pro Display", "Segoe UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(900px 620px at 9% -5%, rgba(124, 58, 237, .25), transparent 65%),
    radial-gradient(750px 600px at 100% 18%, rgba(236, 72, 153, .14), transparent 62%),
    linear-gradient(160deg, #070a12 0%, #0a0f1c 44%, #070a12 100%);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .24;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
img { max-width: 100%; }
::selection { background: rgba(139, 92, 246, .42); color: #fff; }
:focus-visible { outline: 2px solid #a78bfa; outline-offset: 3px; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; position: relative; z-index: 1; }
.icon { width: 19px; height: 19px; flex: 0 0 auto; display: inline-block; vertical-align: -4px; }
.sr-only { position: absolute!important; width: 1px!important; height: 1px!important; padding: 0!important; margin: -1px!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; white-space: nowrap!important; border: 0!important; }
.site-orbit { position: fixed; border-radius: 999px; filter: blur(2px); pointer-events: none; z-index: 0; opacity: .6; }
.site-orbit-a { width: 420px; height: 420px; border: 1px solid rgba(139,92,246,.15); top: -210px; right: -140px; box-shadow: inset 0 0 90px rgba(139,92,246,.05); }
.site-orbit-b { width: 240px; height: 240px; border: 1px solid rgba(236,72,153,.12); bottom: 10%; left: -140px; }
.site-header { position: sticky; top: 0; z-index: 50; padding: 14px 0; background: linear-gradient(to bottom, rgba(7,10,18,.92), rgba(7,10,18,.58), transparent); backdrop-filter: blur(16px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 58px; padding: 8px 10px 8px 16px; border: 1px solid rgba(255,255,255,.07); border-radius: 18px; background: rgba(13,18,32,.58); box-shadow: 0 12px 40px rgba(0,0,0,.2); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(145deg, #8b5cf6, #ec4899); box-shadow: 0 8px 24px rgba(139,92,246,.38), inset 0 1px rgba(255,255,255,.3); }
.brand-mark .icon { width: 21px; height: 21px; }
.brand-text { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a, .nav-info { border: 0; border-radius: 10px; padding: 9px 14px; color: #bdc6d9; background: transparent; cursor: pointer; font-size: 14px; display: inline-flex; align-items: center; gap: 7px; transition: .2s ease; }
.main-nav a:hover, .nav-info:hover { color: #fff; background: rgba(255,255,255,.07); }
main { position: relative; z-index: 1; }
.hero { padding: clamp(54px, 10vw, 112px) 0 clamp(52px, 8vw, 90px); position: relative; }
.hero::after { content: ""; position: absolute; width: min(680px, 65vw); aspect-ratio: 1; border-radius: 50%; top: 8%; left: 52%; transform: translateX(-50%); background: radial-gradient(circle, rgba(139,92,246,.18), rgba(236,72,153,.06) 45%, transparent 70%); filter: blur(20px); pointer-events: none; }
.hero-inner { text-align: center; max-width: 930px; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; color: #b7a4ff; font-size: 12px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow .icon { width: 16px; height: 16px; }
.hero h1 { margin: 18px auto 18px; max-width: 850px; font-size: clamp(44px, 7.2vw, 84px); line-height: 1.06; letter-spacing: -.055em; font-weight: 850; background: linear-gradient(120deg, #fff 20%, #d8cffd 55%, #f5b7d7); -webkit-background-clip: text; background-clip: text; color: transparent; text-wrap: balance; }
.hero p { max-width: 700px; margin: 0 auto; color: var(--muted); font-size: clamp(16px, 2vw, 19px); line-height: 1.9; text-wrap: balance; }
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.button { display: inline-flex; min-height: 45px; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 12px; padding: 11px 18px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button.primary { color: #fff; background: linear-gradient(135deg, #8b5cf6, #a855f7 52%, #ec4899); box-shadow: 0 12px 32px rgba(139,92,246,.3), inset 0 1px rgba(255,255,255,.22); }
.button.primary:hover { box-shadow: 0 16px 40px rgba(139,92,246,.42), inset 0 1px rgba(255,255,255,.22); }
.button.ghost { border-color: var(--line-strong); color: #dce3f4; background: rgba(255,255,255,.045); backdrop-filter: blur(12px); }
.button.ghost:hover { border-color: rgba(167,139,250,.48); background: rgba(139,92,246,.12); }
.button.lg { min-height: 52px; padding-inline: 24px; }
.button.sm { min-height: 36px; padding: 7px 13px; font-size: 13px; border-radius: 9px; }
.button.full { width: 100%; }
.button:disabled, .button.disabled { opacity: .46; cursor: not-allowed; transform: none; }
.hero-stats { display: flex; justify-content: center; margin-top: 48px; border: 1px solid var(--line); border-radius: 18px; background: rgba(14,20,34,.62); max-width: 580px; margin-inline: auto; overflow: hidden; backdrop-filter: blur(18px); }
.hero-stats div { min-width: 150px; flex: 1; padding: 17px 22px; display: flex; flex-direction: column; gap: 1px; }
.hero-stats div + div { border-left: 1px solid var(--line); }
.hero-stats strong { font-size: 22px; line-height: 1.2; }
.hero-stats span { color: var(--subtle); font-size: 12px; }
.apps-section { padding: 28px 0 82px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { margin: 10px 0 5px; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.04em; line-height: 1.1; }
.section-heading p { margin: 0; color: var(--muted); }
.category-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.filter-chip { border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; background: rgba(17,24,39,.58); color: #9ba8c0; cursor: pointer; transition: .2s; }
.filter-chip:hover { color: #fff; border-color: var(--line-strong); }
.filter-chip.active { color: #fff; border-color: rgba(167,139,250,.48); background: rgba(139,92,246,.22); box-shadow: inset 0 0 0 1px rgba(167,139,250,.08); }
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.app-grid-item[hidden] { display: none!important; }
.app-card { position: relative; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(155deg, rgba(24,31,51,.78), rgba(13,18,32,.82)); box-shadow: 0 18px 60px rgba(0,0,0,.2), inset 0 1px rgba(255,255,255,.04); backdrop-filter: blur(18px); transition: border-color .25s, transform .25s, box-shadow .25s; }
.app-card::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--accent), transparent 70%); opacity: .7; }
.app-card:hover { border-color: rgba(167,139,250,.32); transform: translateY(-4px); box-shadow: 0 26px 76px rgba(0,0,0,.31), 0 0 0 1px rgba(139,92,246,.08); }
.featured-badge { position: absolute; z-index: 2; right: 17px; top: 17px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; border: 1px solid rgba(244,63,94,.25); background: rgba(244,63,94,.13); color: #ff9eb1; font-size: 11px; font-weight: 700; }
.featured-badge .icon { width: 13px; height: 13px; }
.app-card-header { display: flex; align-items: center; gap: 15px; padding: 25px 25px 18px; }
.app-icon-wrap { width: 72px; height: 72px; flex: 0 0 auto; padding: 4px; border-radius: 20px; background: linear-gradient(145deg, rgba(255,255,255,.17), rgba(255,255,255,.02)); box-shadow: 0 12px 30px rgba(0,0,0,.28); }
.app-icon-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; display: block; background: #141a2a; }
.app-card-title { min-width: 0; padding-right: 62px; }
.app-card-title h2 { margin: 0 0 3px; font-size: 22px; line-height: 1.25; letter-spacing: -.025em; }
.app-card-title h2 a:hover { color: #c9baff; }
.app-card-title p { margin: 0; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-card-body { padding: 0 25px 23px; }
.tag-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-height: 25px; }
.tag { --tag-color: #8b5cf6; display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; color: color-mix(in srgb, var(--tag-color) 48%, white); border: 1px solid color-mix(in srgb, var(--tag-color) 30%, transparent); background: color-mix(in srgb, var(--tag-color) 11%, transparent); font-size: 11px; font-weight: 700; line-height: 1.6; }
.app-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 49px; margin: 13px 0 18px; color: #aab5ca; font-size: 13px; line-height: 1.8; }
.download-grid { display: grid; gap: 10px; }
.download-item { border: 1px solid rgba(148,163,184,.12); border-radius: 13px; padding: 9px; background: rgba(7,10,18,.3); }
.download-button { width: 100%; display: flex; align-items: center; gap: 11px; border: 1px solid rgba(255,255,255,.06); border-radius: 10px; padding: 10px 12px; background: linear-gradient(135deg, rgba(139,92,246,.18), rgba(236,72,153,.08)); color: inherit; cursor: pointer; text-align: left; text-decoration: none; transition: .2s; }
.download-button:hover:not(:disabled) { border-color: rgba(167,139,250,.34); background: linear-gradient(135deg, rgba(139,92,246,.3), rgba(236,72,153,.12)); }
.download-button:disabled { cursor: default; opacity: .72; }
.download-button.unavailable { background: rgba(148,163,184,.055); }
.platform-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #dcd3ff; }
.platform-icon .icon { width: 19px; height: 19px; }
.download-copy { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.35; }
.download-copy small { color: #9ba7bf; font-size: 10px; letter-spacing: .04em; }
.download-copy strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.download-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 3px 1px; color: #8995ac; font-size: 11px; }
.mini-badge { color: #d2c6ff; padding: 1px 7px; border-radius: 5px; background: rgba(139,92,246,.14); }
.copy-code { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border: 1px solid rgba(167,139,250,.2); border-radius: 5px; color: #c9baff; background: rgba(139,92,246,.08); cursor: pointer; font-size: 11px; }
.copy-code .icon { width: 12px; height: 12px; }
.download-note { margin: 8px 3px 0; color: #7f8ba3; font-size: 11px; line-height: 1.6; }
.empty-download { padding: 18px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; color: var(--muted); font-size: 13px; }
.guide-box { margin-top: 16px; border: 1px solid rgba(148,163,184,.13); border-radius: 12px; background: rgba(7,10,18,.28); overflow: hidden; }
.guide-box summary { display: flex; align-items: center; gap: 7px; cursor: pointer; list-style: none; padding: 10px 13px; color: #c5cee1; font-size: 12px; font-weight: 650; }
.guide-box summary::-webkit-details-marker { display: none; }
.guide-box summary::after { content: "+"; margin-left: auto; color: var(--subtle); }
.guide-box[open] summary::after { content: "−"; }
.guide-box ol { margin: 0; padding: 0 24px 14px 38px; color: #8f9bb2; font-size: 12px; }
.guide-box li + li { margin-top: 5px; }
.detail-link { display: flex; justify-content: flex-end; align-items: center; gap: 4px; margin-top: 15px; color: #afa0ee; font-size: 12px; font-weight: 650; }
.detail-link:hover { color: #fff; }
.detail-link .icon { width: 14px; height: 14px; }
.trust-strip { padding: 0 0 80px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: rgba(13,18,32,.52); }
.trust-grid > div { display: flex; align-items: center; justify-content: center; gap: 11px; padding: 24px; color: var(--muted); font-size: 12px; }
.trust-grid > div + div { border-left: 1px solid var(--line); }
.trust-grid .icon { color: #a78bfa; width: 22px; height: 22px; }
.trust-grid strong { display: block; color: #e8edf8; font-size: 13px; }
.site-footer { padding: 44px 0 28px; border-top: 1px solid var(--line); background: rgba(7,10,18,.65); }
.footer-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 60px; }
.footer-brand { font-weight: 800; font-size: 17px; margin-bottom: 8px; }
.footer-grid p { color: var(--subtle); font-size: 12px; line-height: 1.8; max-width: 560px; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 24px; align-content: start; font-size: 13px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: #fff; }
.footer-bottom { margin-top: 30px; padding-top: 17px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: var(--subtle); font-size: 11px; }
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 58px 24px; border: 1px dashed var(--line-strong); border-radius: 18px; color: var(--muted); background: rgba(13,18,32,.36); }
.empty-state.compact { padding: 24px; border: 0; background: none; }
.empty-state h3 { margin: 8px 0 4px; color: var(--text); }
.empty-state p { margin: 0 0 18px; }
.empty-icon, .empty-state > span > .icon { width: 48px; height: 48px; color: #7f6ac7; }
.app-detail-page { padding: 34px 0 80px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 24px; color: var(--muted); font-size: 13px; }
.back-link:hover { color: #fff; }
.detail-hero { display: flex; gap: 25px; align-items: center; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 16%, rgba(17,24,39,.9)), rgba(11,16,28,.82)); box-shadow: var(--shadow); }
.detail-hero > img { width: 112px; height: 112px; flex: 0 0 auto; border-radius: 26px; object-fit: cover; box-shadow: 0 18px 40px rgba(0,0,0,.32); background: var(--panel-solid); }
.detail-hero h1 { margin: 6px 0 5px; font-size: clamp(32px, 5vw, 52px); line-height: 1.1; letter-spacing: -.045em; }
.detail-hero p { margin: 0; max-width: 700px; color: #b4bed1; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; color: var(--muted); font-size: 12px; }
.detail-meta span { display: inline-flex; align-items: center; gap: 5px; }
.detail-meta .icon { width: 15px; height: 15px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; margin-top: 22px; align-items: start; }
.detail-main, .detail-side { display: grid; gap: 18px; }
.detail-side { position: sticky; top: 96px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 25px; background: linear-gradient(155deg, rgba(20,27,45,.74), rgba(12,17,30,.72)); box-shadow: inset 0 1px rgba(255,255,255,.035); }
.panel.compact { padding: 20px; }
.panel h2 { margin: 0 0 13px; font-size: 19px; }
.panel > p { color: var(--muted); font-size: 14px; line-height: 1.9; }
.panel dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 13px; }
.panel dt { color: var(--subtle); }
.panel dd { margin: 0; text-align: right; color: #d6deed; }
.detail-main .app-card { background: rgba(13,18,32,.62); }
.support-page { padding: 58px 0 90px; }
.support-shell { max-width: 900px; }
.support-header { text-align: center; margin-bottom: 35px; }
.support-header h1 { margin: 14px 0 8px; font-size: clamp(36px, 6vw, 58px); letter-spacing: -.045em; line-height: 1.1; }
.support-header p { color: var(--muted); max-width: 680px; margin: 0 auto; }
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.support-grid .panel, .contact-panel { padding: 28px; }
.support-grid h2, .contact-panel h2 { display: flex; align-items: center; gap: 9px; }
.support-grid p { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.support-grid .button + .button { margin-top: 9px; }
.contact-panel { margin-top: 18px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.contact-grid div { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(7,10,18,.3); }
.contact-grid span { display: block; color: var(--subtle); font-size: 11px; }
.contact-grid strong { color: #e5eaf6; font-size: 14px; }
.status-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.status-card { width: min(560px, 100%); text-align: center; padding: 52px 36px; border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(155deg, rgba(24,31,51,.84), rgba(12,17,30,.9)); box-shadow: var(--shadow); }
.status-icon { width: 72px; height: 72px; display: inline-grid; place-items: center; border-radius: 22px; margin-bottom: 19px; color: #fbbf24; background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.2); }
.status-icon .icon { width: 34px; height: 34px; }
.status-card h1 { margin: 10px 0; font-size: 34px; letter-spacing: -.035em; }
.status-card p { color: var(--muted); margin: 0 auto 24px; max-width: 430px; }
.status-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.error-body { background: radial-gradient(700px 500px at 50% 0%, rgba(244,63,94,.16), transparent 70%), #070a12; }
.error-code { display: block; font-size: clamp(70px, 16vw, 130px); line-height: 1; font-weight: 900; letter-spacing: -.08em; background: linear-gradient(120deg,#fff,#a78bfa,#f472b6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; visibility: hidden; opacity: 0; transition: opacity .22s ease, visibility .22s ease; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3,6,12,.76); backdrop-filter: blur(9px); }
.modal-dialog { position: relative; width: min(680px, 100%); max-height: min(86vh, 820px); overflow: auto; border: 1px solid var(--line-strong); border-radius: 23px; background: linear-gradient(155deg, #171f34, #0d1220); box-shadow: 0 40px 120px rgba(0,0,0,.65); transform: translateY(14px) scale(.98); transition: transform .22s ease; }
.modal.is-open .modal-dialog { transform: none; }
.modal-header { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 23px 25px 18px; border-bottom: 1px solid var(--line); background: rgba(20,27,45,.94); backdrop-filter: blur(18px); }
.modal-header h2 { margin: 4px 0 0; font-size: 23px; }
.icon-button { width: 34px; height: 34px; flex: 0 0 auto; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: #9eabc1; background: rgba(255,255,255,.035); cursor: pointer; transition: .2s; }
.icon-button:hover { color: #fff; border-color: var(--line-strong); background: rgba(255,255,255,.07); }
.icon-button.danger:hover { color: #ff9bae; border-color: rgba(244,63,94,.35); background: rgba(244,63,94,.12); }
.icon-button .icon { width: 17px; height: 17px; }
.modal-body { padding: 21px 25px; }
.notice-item { padding: 16px; margin-bottom: 12px; border: 1px solid rgba(96,165,250,.17); border-radius: 12px; background: rgba(59,130,246,.06); }
.notice-item h3 { margin: 0 0 7px; font-size: 14px; }
.notice-item p { margin: 0; color: #aab6ca; font-size: 13px; line-height: 1.8; }
.notice-warning { border-color: rgba(245,158,11,.18); background: rgba(245,158,11,.06); }
.notice-danger { border-color: rgba(244,63,94,.2); background: rgba(244,63,94,.065); }
.notice-success { border-color: rgba(16,185,129,.18); background: rgba(16,185,129,.06); }
.modal-section { margin-top: 20px; padding-top: 19px; border-top: 1px solid var(--line); }
.modal-section h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 5px; font-size: 14px; }
.modal-section p { color: var(--muted); font-size: 12px; margin: 0 0 12px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.modal-section.split { display: grid; grid-template-columns: 1fr 220px; gap: 18px; }
.contact-box { padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: rgba(7,10,18,.32); }
.contact-box span { display: block; color: var(--subtle); font-size: 11px; }
.contact-box strong { display: block; margin-top: 5px; font-size: 12px; color: #dae1ef; }
.modal-footer { position: sticky; bottom: 0; display: flex; justify-content: flex-end; padding: 16px 25px; border-top: 1px solid var(--line); background: rgba(13,18,32,.95); backdrop-filter: blur(18px); }
.muted { color: var(--muted); }
body.modal-open { overflow: hidden; }
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .app-grid { grid-template-columns: 1fr; }
  .app-grid-item .app-card { max-width: none; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .category-filter { justify-content: flex-start; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-side { position: static; grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .support-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1180px); }
  .site-header { padding: 8px 0; }
  .header-inner { padding: 7px 8px 7px 11px; border-radius: 14px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .brand-text { max-width: 132px; font-size: 14px; }
  .main-nav { gap: 2px; }
  .main-nav a { display: inline-flex; }
  .main-nav a.nav-home { display: none; }
  .main-nav a.nav-support { display: inline-flex; padding: 8px 9px; font-size: 12px; }
  .nav-info { padding: 8px 8px; font-size: 12px; }
  .nav-info .icon { display: none; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: clamp(39px, 14vw, 62px); }
  .hero p { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .hero-stats { margin-top: 35px; }
  .hero-stats div { min-width: 0; padding: 13px 8px; }
  .hero-stats strong { font-size: 17px; }
  .hero-stats span { font-size: 10px; }
  .apps-section { padding-top: 18px; }
  .app-card-header { padding: 20px 18px 15px; }
  .app-card-body { padding: 0 18px 19px; }
  .app-card-title { padding-right: 0; }
  .app-card-title h2 { font-size: 20px; }
  .featured-badge { top: 13px; right: 13px; }
  .app-card-title { padding-right: 58px; }
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 5px; }
  .detail-hero { align-items: flex-start; flex-direction: column; padding: 24px; }
  .detail-hero > img { width: 88px; height: 88px; border-radius: 21px; }
  .detail-side { grid-template-columns: 1fr; }
  .panel { padding: 20px; }
  .contact-grid { grid-template-columns: 1fr; }
  .modal { padding: 10px; }
  .modal-dialog { max-height: 94vh; border-radius: 18px; }
  .modal-header, .modal-body, .modal-footer { padding-left: 18px; padding-right: 18px; }
  .modal-section.split { grid-template-columns: 1fr; }
  .status-card { padding: 40px 22px; }
  .error-code { font-size: 82px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms!important; animation-iteration-count: 1!important; transition-duration: .01ms!important; }
  .js .reveal { opacity: 1; transform: none; }
}


/* ==========================================================================
   Theme system + public support components
   ========================================================================== */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fb;
  --bg-soft: #eef2f8;
  --panel: rgba(255,255,255,.82);
  --panel-solid: #ffffff;
  --panel-strong: #f8fafc;
  --line: rgba(15,23,42,.10);
  --line-strong: rgba(15,23,42,.18);
  --text: #15203a;
  --muted: #5f6f89;
  --subtle: #8490a5;
  --shadow: 0 24px 70px rgba(31,41,55,.12);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070a12;
  --bg-soft: #0d1220;
  --panel: rgba(19,25,43,.74);
  --panel-solid: #111827;
  --panel-strong: #151d31;
  --line: rgba(148,163,184,.14);
  --line-strong: rgba(148,163,184,.24);
  --text: #f4f7ff;
  --muted: #97a3bb;
  --subtle: #6f7c96;
  --shadow: 0 24px 70px rgba(0,0,0,.36);
}
html[data-theme="light"] body {
  background:
    radial-gradient(900px 620px at 9% -5%, rgba(124,58,237,.11), transparent 65%),
    radial-gradient(750px 600px at 100% 18%, rgba(236,72,153,.08), transparent 62%),
    linear-gradient(160deg, #f8fafc 0%, #f3f6fb 46%, #f8fafc 100%);
}
html[data-theme="light"] body::before {
  opacity: .55;
  background-image:
    linear-gradient(rgba(15,23,42,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.035) 1px, transparent 1px);
}
html[data-theme="dark"] body::before {
  opacity: .24;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
}
html[data-theme="light"] .site-header {
  background: linear-gradient(to bottom, rgba(248,250,252,.96), rgba(248,250,252,.78) 65%, transparent);
}
html[data-theme="light"] .header-inner {
  border-color: rgba(15,23,42,.08);
  background: rgba(255,255,255,.78);
  box-shadow: 0 12px 38px rgba(31,41,55,.07);
}
html[data-theme="light"] .main-nav a,
html[data-theme="light"] .nav-info { color: #5d6b83; }
html[data-theme="light"] .main-nav a:hover,
html[data-theme="light"] .nav-info:hover { color: #172033; background: rgba(15,23,42,.055); }
html[data-theme="light"] .hero::after {
  background: radial-gradient(circle, rgba(139,92,246,.12), rgba(236,72,153,.045) 45%, transparent 70%);
}
html[data-theme="light"] .hero h1 {
  background: linear-gradient(120deg, #15203a 12%, #5b3cc4 56%, #be3f78);
  -webkit-background-clip: text;
  background-clip: text;
}
html[data-theme="light"] .eyebrow { color: #7357ca; }
html[data-theme="light"] .button.ghost {
  color: #34415a;
  background: rgba(255,255,255,.72);
  border-color: rgba(15,23,42,.14);
}
html[data-theme="light"] .button.ghost:hover {
  color: #4c2ca5;
  border-color: rgba(124,58,237,.34);
  background: rgba(139,92,246,.08);
}
html[data-theme="light"] .hero-stats {
  background: rgba(255,255,255,.70);
  box-shadow: 0 14px 42px rgba(31,41,55,.05);
}
html[data-theme="light"] .filter-chip {
  color: #607088;
  background: rgba(255,255,255,.72);
}
html[data-theme="light"] .filter-chip:hover { color: #172033; }
html[data-theme="light"] .filter-chip.active {
  color: #5b35b7;
  border-color: rgba(124,58,237,.32);
  background: rgba(139,92,246,.12);
  box-shadow: inset 0 0 0 1px rgba(124,58,237,.04);
}
html[data-theme="light"] .app-card {
  background: linear-gradient(155deg, rgba(255,255,255,.94), rgba(248,250,252,.90));
  box-shadow: 0 18px 58px rgba(31,41,55,.08), inset 0 1px rgba(255,255,255,.9);
}
html[data-theme="light"] .app-card:hover {
  border-color: rgba(124,58,237,.25);
  box-shadow: 0 26px 72px rgba(31,41,55,.14), 0 0 0 1px rgba(139,92,246,.05);
}
html[data-theme="light"] .featured-badge {
  color: #cf315d;
  border-color: rgba(225,29,72,.18);
  background: rgba(244,63,94,.08);
}
html[data-theme="light"] .app-icon-wrap {
  background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(241,245,249,.9));
  box-shadow: 0 10px 26px rgba(31,41,55,.12), inset 0 0 0 1px rgba(15,23,42,.05);
}
html[data-theme="light"] .app-icon-wrap img { background: #f1f5f9; }
html[data-theme="light"] .app-card-title h2 a:hover { color: #6d4ac5; }
html[data-theme="light"] .tag {
  color: color-mix(in srgb, var(--tag-color) 58%, #111827);
  border-color: color-mix(in srgb, var(--tag-color) 24%, transparent);
  background: color-mix(in srgb, var(--tag-color) 8%, transparent);
}
html[data-theme="light"] .app-description { color: #68778f; }
html[data-theme="light"] .download-item {
  border-color: rgba(15,23,42,.08);
  background: rgba(248,250,252,.9);
}
html[data-theme="light"] .download-button {
  border-color: rgba(15,23,42,.07);
  background: linear-gradient(135deg, rgba(139,92,246,.12), rgba(236,72,153,.055));
}
html[data-theme="light"] .download-button:hover:not(:disabled) {
  border-color: rgba(124,58,237,.28);
  background: linear-gradient(135deg, rgba(139,92,246,.19), rgba(236,72,153,.085));
}
html[data-theme="light"] .download-button.unavailable { background: rgba(148,163,184,.09); }
html[data-theme="light"] .platform-icon {
  color: #6948bb;
  background: rgba(139,92,246,.10);
}
html[data-theme="light"] .download-copy small { color: #77849a; }
html[data-theme="light"] .download-meta { color: #7c899e; }
html[data-theme="light"] .mini-badge {
  color: #6541b5;
  background: rgba(139,92,246,.10);
}
html[data-theme="light"] .copy-code {
  color: #6242ad;
  border-color: rgba(124,58,237,.20);
  background: rgba(139,92,246,.075);
}
html[data-theme="light"] .copy-code:hover { background: rgba(139,92,246,.14); }
html[data-theme="light"] .download-note { color: #7d8b9f; }
html[data-theme="light"] .guide-box {
  border-color: rgba(15,23,42,.09);
  background: rgba(248,250,252,.85);
}
html[data-theme="light"] .guide-box summary { color: #3e4d65; }
html[data-theme="light"] .guide-box ol { color: #68778e; }
html[data-theme="light"] .detail-link { color: #6e4ac9; }
html[data-theme="light"] .detail-link:hover { color: #3f2386; }
html[data-theme="light"] .trust-grid {
  background: rgba(255,255,255,.68);
  box-shadow: 0 16px 48px rgba(31,41,55,.05);
}
html[data-theme="light"] .trust-grid strong { color: #283651; }
html[data-theme="light"] .trust-grid .icon { color: #7c5bcf; }
html[data-theme="light"] .site-footer {
  background: rgba(255,255,255,.62);
}
html[data-theme="light"] .footer-links a:hover,
html[data-theme="light"] .back-link:hover { color: #39216f; }
html[data-theme="light"] .empty-state { background: rgba(255,255,255,.56); }
html[data-theme="light"] .empty-icon,
html[data-theme="light"] .empty-state > span > .icon { color: #7a60bd; }
html[data-theme="light"] .detail-hero {
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 12%, #ffffff), rgba(255,255,255,.88));
  box-shadow: 0 24px 70px rgba(31,41,55,.10);
}
html[data-theme="light"] .detail-hero > img {
  box-shadow: 0 18px 40px rgba(31,41,55,.16);
}
html[data-theme="light"] .detail-hero p { color: #5d6d86; }
html[data-theme="light"] .panel {
  background: linear-gradient(155deg, rgba(255,255,255,.95), rgba(248,250,252,.90));
  box-shadow: inset 0 1px rgba(255,255,255,.94), 0 15px 44px rgba(31,41,55,.055);
}
html[data-theme="light"] .panel dd { color: #2e3d56; }
html[data-theme="light"] .detail-main .app-card { background: rgba(255,255,255,.78); }
html[data-theme="light"] .contact-grid div { background: rgba(248,250,252,.88); }
html[data-theme="light"] .contact-grid strong { color: #2d3b54; }
html[data-theme="light"] .status-card {
  background: linear-gradient(155deg, rgba(255,255,255,.96), rgba(248,250,252,.94));
}
html[data-theme="light"] .error-body {
  background: radial-gradient(700px 500px at 50% 0%, rgba(244,63,94,.10), transparent 70%), #f8fafc;
}
html[data-theme="light"] .error-code {
  background: linear-gradient(120deg,#15203a,#6d4ac5,#c13a74);
  -webkit-background-clip: text;
  background-clip: text;
}
html[data-theme="light"] .modal-backdrop { background: rgba(15,23,42,.32); }
html[data-theme="light"] .modal-dialog {
  background: linear-gradient(155deg, #ffffff, #f7f9fc);
  box-shadow: 0 40px 120px rgba(15,23,42,.24);
}
html[data-theme="light"] .modal-header { background: rgba(255,255,255,.94); }
html[data-theme="light"] .modal-footer { background: rgba(255,255,255,.96); }
html[data-theme="light"] .icon-button {
  color: #69768c;
  background: rgba(15,23,42,.035);
}
html[data-theme="light"] .icon-button:hover {
  color: #172033;
  background: rgba(15,23,42,.065);
}
html[data-theme="light"] .notice-item p { color: #64738a; }
html[data-theme="light"] .contact-box { background: rgba(248,250,252,.85); }
html[data-theme="light"] .contact-box strong { color: #2e3c55; }
html[data-theme="dark"] .hero h1 {
  background: linear-gradient(120deg, #fff 20%, #d8cffd 55%, #f5b7d7);
  -webkit-background-clip: text;
  background-clip: text;
}
html[data-theme="dark"] .site-header {
  background: linear-gradient(to bottom, rgba(7,10,18,.92), rgba(7,10,18,.58), transparent);
}
html[data-theme="dark"] .header-inner {
  border-color: rgba(255,255,255,.07);
  background: rgba(13,18,32,.58);
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
}
html[data-theme="dark"] .main-nav a,
html[data-theme="dark"] .nav-info { color: #bdc6d9; }
html[data-theme="dark"] .main-nav a:hover,
html[data-theme="dark"] .nav-info:hover { color: #fff; background: rgba(255,255,255,.07); }
html[data-theme="dark"] .button.ghost {
  color: #dce3f4;
  background: rgba(255,255,255,.045);
  border-color: var(--line-strong);
}
html[data-theme="dark"] .modal-dialog { background: linear-gradient(155deg, #171f34, #0d1220); }
html[data-theme="dark"] .modal-header { background: rgba(20,27,45,.94); }
html[data-theme="dark"] .modal-footer { background: rgba(13,18,32,.95); }
html[data-theme="dark"] .contact-box { background: rgba(7,10,18,.32); }
html[data-theme="dark"] .contact-box strong { color: #dae1ef; }
html[data-theme="dark"] .error-body {
  background: radial-gradient(700px 500px at 50% 0%, rgba(244,63,94,.16), transparent 70%), #070a12;
}
html[data-theme="dark"] .error-code {
  background: linear-gradient(120deg,#fff,#a78bfa,#f472b6);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Theme switch */
.theme-toggle {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--line-strong); background: color-mix(in srgb, var(--text) 5%, transparent); transform: rotate(-8deg); }
.theme-toggle .icon { width: 17px; height: 17px; }
.theme-toggle .theme-icon { display: inline-flex; align-items: center; justify-content: center; }
.theme-toggle .theme-icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .theme-icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .theme-icon-sun { display: inline-flex; }
.nav-theme-toggle { margin-left: 3px; }

/* Download / copy feedback */
.copy-feedback { font-weight: 700; }
.copy-code.is-copied {
  color: #047857!important;
  border-color: rgba(16,185,129,.32)!important;
  background: rgba(16,185,129,.12)!important;
}
.copy-code.is-copy-failed {
  color: #be123c!important;
  border-color: rgba(244,63,94,.32)!important;
  background: rgba(244,63,94,.10)!important;
}

/* Sponsorship */
.donate-section {
  margin: 34px 0 20px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.donate-heading { align-items: center; margin-bottom: 22px; }
.donate-heading h2 { margin-bottom: 6px; }
.donate-safe {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid rgba(16,185,129,.22);
  border-radius: 999px;
  color: #059669;
  background: rgba(16,185,129,.08);
  font-size: 11px;
  font-weight: 700;
}
html[data-theme="dark"] .donate-safe { color: #6ee7b7; }
.donate-safe .icon { width: 15px; height: 15px; }
.donate-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.donate-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel-solid) 84%, transparent);
  overflow: hidden;
}
.donate-card-head { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.donate-card-head h3 { margin: 0; font-size: 16px; }
.donate-card-head p { margin: 1px 0 0; color: var(--subtle); font-size: 11px; }
.donate-logo {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
}
.donate-wechat .donate-logo { background: linear-gradient(145deg, #22c55e, #16a34a); box-shadow: 0 8px 20px rgba(22,163,74,.22); }
.donate-alipay .donate-logo { background: linear-gradient(145deg, #3b82f6, #1677ff); box-shadow: 0 8px 20px rgba(22,119,255,.22); }
.donate-logo .icon { width: 20px; height: 20px; }
.qr-button {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  cursor: zoom-in;
  overflow: hidden;
}
.qr-button img {
  width: auto;
  height: auto;
  max-width: min(100%, 270px);
  max-height: 340px;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}
.qr-button span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 7px;
  color: #fff;
  background: rgba(15,23,42,.72);
  font-size: 10px;
  opacity: 0;
  transform: translateY(4px);
  transition: .2s;
}
.qr-button:hover span, .qr-button:focus-visible span { opacity: 1; transform: none; }
.qr-button span .icon { width: 12px; height: 12px; }
.qr-empty {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed var(--line-strong);
  border-radius: 15px;
  color: var(--subtle);
  background: color-mix(in srgb, var(--bg-soft) 65%, transparent);
  font-size: 12px;
}
.qr-empty .icon { width: 34px; height: 34px; }
.mobile-donate-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  color: var(--subtle);
  font-size: 10px;
}
.mobile-donate-hint .icon { width: 13px; height: 13px; }
.qr-dialog { width: min(520px, 100%); }
.qr-modal-body { padding: 22px 25px 25px; text-align: center; }
.qr-modal-body img {
  width: auto;
  height: auto;
  max-width: min(100%, 410px);
  max-height: min(72vh, 620px);
  display: block;
  margin: 0 auto 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  object-fit: contain;
  background: #fff;
}
.qr-modal-body p { display: inline-flex; align-items: center; gap: 5px; margin: 0; color: var(--subtle); font-size: 11px; }
.qr-modal-body p .icon { width: 14px; height: 14px; }
.faq-panel { margin-top: 18px; }
.faq-list { padding: 0 22px 22px; display: grid; gap: 8px; }
.faq-item { border: 1px solid var(--line); border-radius: 11px; background: color-mix(in srgb, var(--panel-solid) 56%, transparent); overflow: hidden; }
.faq-item summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 700;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { width: 15px; height: 15px; margin-left: auto; color: var(--subtle); transition: transform .2s; }
.faq-item[open] summary .icon { transform: rotate(90deg); }
.faq-item > div { padding: 0 14px 14px; color: var(--muted); font-size: 12px; line-height: 1.8; }
html[data-theme="light"] .donate-card { box-shadow: 0 12px 32px rgba(31,41,55,.055); }
html[data-theme="dark"] .donate-card { background: rgba(13,18,32,.72); }
@media (max-width: 700px) {
  .donate-grid { grid-template-columns: 1fr; }
  .donate-heading { align-items: flex-start; }
  .donate-safe { margin-top: 5px; }
}
