:root {
  color-scheme: dark;
  --background: #141414;
  --surface: #1c1c1c;
  --line: #2b2b2b;
  --text: #f5f5f5;
  --muted: #a4a5ab;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); }
body:has(dialog[open]) { overflow: hidden; }
[hidden] { display: none !important; }
button, input { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
:focus-visible { outline: 2px solid #93a7ff; outline-offset: 4px; }
h1, h2, p, figure { margin: 0; }
.top { position: sticky; top: 0; z-index: 2; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 44px 0 24px; border-bottom: 1px solid #ffffff14; background: #141414e8; backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 740; white-space: nowrap; text-decoration: none; }
.orb { width: 28px; height: 28px; flex: none; border-radius: 50%; background: radial-gradient(circle at 27% 83%, #62aaff, transparent 57%), radial-gradient(circle at 68% 20%, #9d78f1, transparent 62%), #213f91; box-shadow: inset 0 0 6px #c9f2ff4a; }
.search { width: min(360px, 44vw); height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 15px; border: 1px solid #353535; border-radius: 13px; background: #202020; color: #8f9098; }
.search:focus-within { border-color: #777d9b; }
.search svg { flex: none; }
.search input { width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--text); font-size: 14px; outline: none; }
kbd { white-space: nowrap; color: #a6a6ab; padding: 2px 6px; background: #2c2c2c; border: 1px solid #353535; border-radius: 5px; font-size: 11px; }
.icon-wall { display: grid; gap: 24px; overflow: hidden; padding-top: 40px; pointer-events: none; mask-image: linear-gradient(90deg, #000a, black 7%, black 93%, #000a); }
.icon-row { display: flex; align-items: center; gap: 24px; width: max-content; margin-left: 16px; animation: drift 88s linear infinite; }
.icon-row + .icon-row { margin-left: -33px; animation-direction: reverse; }
.icon-group { display: flex; gap: 24px; }
@keyframes drift { to { transform: translateX(calc(-50% - 12px)); } }
.app-icon { width: 60px; height: 60px; flex: none; display: inline-grid; place-items: center; overflow: hidden; border-radius: 15px; background: var(--tile, #313a61); color: white; font-size: 20px; font-weight: 800; }
.app-icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
.icon-wall .app-icon { width: 64px; height: 64px; border-radius: 17px; opacity: .92; }
.intro { padding: 33px 20px 58px; text-align: center; }
h1 { font-size: clamp(34px, 4.45vw, 60px); line-height: 1.15; letter-spacing: -.045em; font-weight: 820; color: #e6e6e6; }
.intro > p { margin: 24px 0 40px; font-size: 17px; line-height: 1.68; color: var(--muted); }
.stats { display: inline-flex; align-items: center; gap: 39px; padding: 13px 31px; background: #1c1c1c; border: 1px solid #313131; border-radius: 100px; color: #94959d; font-size: 14px; }
.stats span { display: flex; align-items: center; gap: 9px; }
.stats strong { font-size: 24px; color: #fff; }
.gallery { max-width: 1440px; margin: auto; padding: 0 clamp(16px, 2.7vw, 38px); scroll-margin-top: 92px; }
.categories { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.pill { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 7px 16px; border: 1px solid #333; border-radius: 100px; background: #1d1d1d; color: #c4c5ca; font-size: 14px; }
.pill:hover { background: #292929; }
.pill[aria-pressed="true"] { background: #fff; color: #151515; border-color: #fff; font-weight: 700; }
.pill small { font-size: 11px; opacity: .75; padding: 2px 5px; border-radius: 8px; background: #8882; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.card { display: block; min-width: 0; overflow: hidden; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: inherit; text-align: left; transition: background .15s, border-color .15s, transform .15s; }
.card:hover { background: #222; border-color: #434343; transform: translateY(-3px); }
.card-header { display: flex; align-items: center; gap: 12px; min-width: 0; }
.card-text { display: grid; gap: 4px; flex: 1; min-width: 0; }
.card-title { font-weight: 750; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-meta { color: var(--muted); font-size: 13px; }
.badge { flex: none; border-radius: 8px; padding: 6px 8px; color: #b8bac2; background: #303030; font-size: 11px; white-space: nowrap; }
.strip { display: flex; gap: 10px; margin-top: 18px; height: clamp(138px, 16vw, 242px); overflow: hidden; }
.strip .picture { flex: 1 1 0; }
.picture { display: grid; place-items: center; overflow: hidden; min-width: 0; min-height: 0; border-radius: 12px; border: 1px solid #ffffff13; background: #252525; }
.picture img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.missing { padding: 12px; color: var(--muted); text-align: center; font-size: 13px; }
.empty { padding: 42px 20px; text-align: center; color: var(--muted); }
.empty p { margin-bottom: 14px; }
.catalog-callout { text-align: center; padding: 92px 24px 76px; }
.catalog-callout .kicker { font-size: 11px; letter-spacing: .12em; }
.catalog-callout h2 { margin: 14px 0 10px; font-size: clamp(32px, 5vw, 52px); }
.catalog-callout p { color: var(--muted); line-height: 1.7; }
.catalog-callout button { margin-top: 22px; }
.footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 20px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer div { display: flex; gap: 18px; }
.footer a, #source { text-decoration: none; }
.footer a:hover, #source:hover { text-decoration: underline; }
dialog { max-width: none; max-height: none; border: 0; padding: 0; color: var(--text); }
.detail { position: fixed; inset: 0; width: 100%; height: 100%; margin: 0; background: var(--background); overscroll-behavior: contain; }
.detail[open] { animation: rise .23s ease-out; }
@keyframes rise { from { transform: translateY(38px); opacity: .6; } }
.detail-bar { position: sticky; top: 0; z-index: 1; min-height: 80px; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; border-bottom: 1px solid #ffffff14; background: #141414ed; backdrop-filter: blur(14px); }
.detail-brand { display: flex; align-items: center; gap: 16px; font-size: 18px; font-weight: 750; }
.detail-brand .app-icon { width: 40px; height: 40px; border-radius: 10px; font-size: 14px; }
.round { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #ffffff13; color: #fff; font-size: 23px; line-height: 1; }
.round:hover { background: #ffffff28; }
.round:disabled { opacity: .3; cursor: default; }
.detail-intro { text-align: center; padding: 60px 20px 54px; }
.detail-intro .app-icon { width: 120px; height: 120px; font-size: 45px; border-radius: 30px; box-shadow: 0 8px 24px #0007; }
.detail-intro h2 { margin: 23px 0 12px; font-size: clamp(32px, 4.2vw, 46px); letter-spacing: -.025em; }
.detail-intro p, .detail-source p { color: var(--muted); }
.detail-grid { max-width: 1280px; margin: auto; padding: 0 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.detail-grid figure { min-width: 0; }
.detail-grid button { width: 100%; padding: 0; border: 0; background: none; color: inherit; }
.detail-grid .picture { width: 100%; aspect-ratio: 1.48; }
.detail-grid figcaption, .viewer figcaption { margin-top: 10px; color: #c4c5ca; font-size: 13px; }
.detail-source { max-width: 1280px; margin: 30px auto 54px; padding: 0 40px; line-height: 1.7; }
#source { color: #a7b8ff; display: inline-block; margin-top: 8px; font-size: 14px; }
.viewer { position: fixed; inset: 0; width: 100%; height: 100%; margin: 0; background: #000c; backdrop-filter: blur(9px); }
.viewer[open] { display: grid; place-items: center; }
.viewer figure { width: min(82vw, 1040px); text-align: center; }
.viewer .picture { height: 80vh; border: 0; background: transparent; }
.viewer .picture img { border-radius: 9px; width: auto; max-width: 100%; }
.viewer-close, .viewer-prev, .viewer-next { position: absolute; z-index: 1; width: 50px; height: 50px; }
.viewer-close { top: 24px; right: 24px; }
.viewer-prev, .viewer-next { top: calc(50% - 25px); }
.viewer-prev { left: 24px; }
.viewer-next { right: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip { height: clamp(128px, 24vw, 230px); }
}
@media (max-width: 580px) {
  .top { height: 62px; padding-inline: 14px; gap: 9px; }
  .brand { font-size: 14px; }
  .orb { width: 22px; height: 22px; }
  .search { height: 38px; padding-inline: 8px; gap: 5px; }
  kbd { display: none; }
  .icon-wall { padding-top: 26px; gap: 13px; }
  .icon-wall .app-icon { width: 49px; height: 49px; border-radius: 13px; }
  .icon-row, .icon-group { gap: 13px; }
  .icon-row { animation: none; }
  .intro { padding-top: 28px; padding-bottom: 37px; }
  .intro > p { margin: 18px 0 25px; font-size: 15px; }
  .categories { gap: 7px; margin-bottom: 23px; }
  .pill { padding-inline: 11px; font-size: 13px; }
  .cards { grid-template-columns: 1fr; gap: 12px; }
  .card { padding: 16px; }
  .card-header .app-icon { width: 45px; height: 45px; border-radius: 12px; }
  .strip { height: clamp(160px, 52vw, 240px); margin-top: 12px; }
  .detail-bar { min-height: 65px; padding-inline: 16px; }
  .detail-intro { padding: 34px 18px; }
  .detail-intro .app-icon { width: 84px; height: 84px; border-radius: 23px; }
  .detail-grid { grid-template-columns: 1fr; padding-inline: 16px; }
  .detail-source { padding-inline: 16px; }
  .viewer figure { width: 91vw; }
  .viewer-prev, .viewer-next { top: auto; bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.picture.segmented { container-type: size; }
.capture-segment {
  width: min(100cqw, calc(100cqh * 2853 / 2013));
  aspect-ratio: 2853 / 2013;
  display: block;
  overflow: hidden;
}
.picture .capture-segment img, .viewer .picture .capture-segment img {
  width: 100%;
  height: auto;
  max-height: none;
  border-radius: 0;
}
.capture-segment.segment-bottom img { transform: translateY(-50%); }
.capture-credit { display: block; margin-top: 5px; color: #a7b8ff; font-size: 12px; text-decoration: none; }
.capture-credit:hover { text-decoration: underline; }

.simulator-entry {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  margin-bottom: 32px;
  padding: clamp(15px, 2.5vw, 28px);
  border: 1px solid #464465;
  border-radius: 22px;
  background: linear-gradient(105deg, #28273f, #23232f 65%, #252434);
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.simulator-entry:hover { border-color: #8881bc; background: #2d2b42; }
.simulator-entry-icon, .simulator-entry-arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(40px, 5vw, 56px);
  aspect-ratio: 1;
  background: #ffffff12;
  color: #dad5ff;
}
.simulator-entry-icon { border-radius: 14px; }
.simulator-entry-arrow { border-radius: 50%; font-size: 23px; }
.simulator-entry-copy { flex: 1; display: grid; gap: 5px; }
.simulator-entry-copy strong { font-size: clamp(18px, 2vw, 24px); }
.simulator-entry-copy > span { color: #bbb8ca; font-size: 13px; line-height: 1.45; }
.simulator-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
}
.simulator-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  padding-inline: clamp(12px, 3vw, 32px);
}
.simulator-top .brand { justify-self: start; }
.simulator-top h1 { font-size: clamp(14px, 2.5vw, 19px); letter-spacing: 0; white-space: nowrap; }
.simulator-top h1 span { color: var(--muted); font-size: .75em; font-weight: 500; }
.simulator-stage { background: #f6f7f9; }
.simulator-stage iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 420px) {
  .simulator-top h1 span { display: none; }
}
