:root {
    color-scheme: light;
    --paper: #f6f7f2;
    --white: #fff;
    --ink: #182821;
    --muted: #66766e;
    --forest: #123629;
    --green: #185940;
    --mint: #c9f5df;
    --line: #e4e9e2;
    --sidebar: 226px;
    --radius: 20px;
    --zh-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 76px; }
body { margin: 0; font: 14px/1.55 var(--zh-font); background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #40a984; outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 40; padding: 8px 15px; border-radius: 8px; background: var(--white); transform: translateY(calc(-100% - 15px)); }
.skip-link:focus { transform: translateY(0); }
.muted { color: var(--muted); }

.store-sidebar { position: fixed; z-index: 15; inset: 0 auto 0 0; display: flex; flex-direction: column; width: var(--sidebar); padding: 23px 16px 17px; border-right: 1px solid var(--line); background: #fbfcf8; }
.store-brand { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; width: fit-content; min-width: 0; font-size: 15px; font-weight: 800; letter-spacing: -.055em; line-height: 1.25; }
.store-sidebar > .store-brand { margin: 0 4px 33px; }
.store-brand > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-image, .brand-mark { width: 35px; height: 35px; border-radius: 11px; flex: none; }
.brand-image { position: absolute; inset: 0; object-fit: contain; background: #fbfcf8; }
.brand-mark { position: relative; display: grid; grid-template-columns: repeat(2, 8px); grid-template-rows: repeat(2, 8px); place-content: center; gap: 2px; background: #1c4e3a; color: #cff8e1; }
.brand-mark i { width: 8px; height: 8px; border-radius: 2px; background: currentColor; }
.brand-mark i:nth-child(2) { transform: translate(1px, -2px) rotate(19deg); background: #79dbac; }
.sidebar-scroll { overflow-y: auto; min-height: 0; scrollbar-width: thin; }
.desktop-nav, .sidebar-categories { display: grid; gap: 4px; }
.desktop-nav a, .sidebar-categories a { display: flex; align-items: center; min-width: 0; height: 43px; padding: 0 13px; gap: 13px; border-radius: 11px; font-weight: 650; color: #4e6257; transition: background .18s, color .18s; }
.desktop-nav a i, .sidebar-categories a i { width: 17px; text-align: center; color: #617e70; }
.desktop-nav a.active, .sidebar-categories a.active { background: #dff3e8; color: #1c6247; }
.desktop-nav a.active i, .sidebar-categories a.active i { color: #287c5d; }
.desktop-nav a:hover, .sidebar-categories a:hover { background: #edf3ec; color: var(--ink); }
.sidebar-categories { margin-top: 28px; max-height: 420px; }
.sidebar-categories a { height: 37px; font-size: 13px; font-weight: 550; }
.sidebar-label { padding: 0 13px 6px; color: #75877b; font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.sidebar-bottom { margin-top: auto; padding-top: 22px; }
.sidebar-promo { display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid #e6e9dc; border-radius: 14px; background: #f3f6ec; }
.sidebar-promo:hover { border-color: #c4decc; }
.promo-icon { width: 33px; height: 33px; border-radius: 10px; display: grid; place-items: center; color: #796021; background: #f5ebc9; }
.promo-copy { display: grid; flex: 1; min-width: 0; color: #314b3b; }
.promo-copy strong { font-size: 13px; }
.promo-copy small { color: var(--muted); font-size: 11px; }
.sidebar-promo > i { color: #859188; font-size: 10px; }
.sidebar-admin { display: inline-flex; align-items: center; padding: 8px 3px 0; gap: 8px; font-size: 12px; color: var(--muted); }

.store-workspace { margin-left: var(--sidebar); min-height: 100vh; display: flex; flex-direction: column; }
.store-topbar { border-bottom: 1px solid var(--line); background: #fafbf7; }
.topbar-inner { display: flex; align-items: center; gap: 20px; justify-content: space-between; min-height: 70px; max-width: 1440px; margin-inline: auto; padding-inline: 34px; }
.mobile-brand { display: none; }
.topbar-context { display: inline-flex; align-items: center; gap: 8px; color: #52665a; font-size: 13px; font-weight: 700; white-space: nowrap; }
.topbar-context span { display: block; width: 7px; height: 7px; border-radius: 50%; background: #53ac84; box-shadow: 0 0 0 3px #deefe2; }
.global-search { width: min(380px, 51%); height: 40px; display: flex; align-items: center; gap: 11px; min-width: 0; border: 1px solid #e6ece4; border-radius: 10px; padding: 0 10px 0 13px; background: #f0f3ee; font-size: 13px; }
.global-search > i { color: #698075; }
.global-search input { min-width: 0; flex: 1; padding: 6px 0; border: 0; outline: none; background: transparent; }
.global-search input::placeholder { color: #77887e; }
.global-search:focus-within { border-color: #71bd9d; box-shadow: 0 0 0 2px #d7eee1; }
.global-search button { display: none; padding: 0 2px; border: 0; background: transparent; color: var(--green); }
.global-search:focus-within button, .global-search:hover button { display: block; }
.global-search:focus-within kbd, .global-search:hover kbd { display: none; }
.global-search kbd { border: 1px solid #dce6dd; background: #f8faf6; border-radius: 5px; padding: 0 6px; line-height: 20px; color: #718377; }
.header-user { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; font-weight: 750; color: #385446; }
.header-user > span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 100px; }
.avatar, .review-avatar, .account-avatar { flex: none; display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; color: #347356; background: #e2f2e8; }
.store-main, .store-footer { width: 100%; max-width: 1440px; padding-inline: 34px; margin-inline: auto; }
.store-main { flex: 1; padding-top: 28px; padding-bottom: 43px; }
.store-footer { display: flex; flex-wrap: wrap; gap: 8px 20px; border-top: 1px solid var(--line); color: var(--muted); padding-block: 22px; font-size: 12px; }
.store-footer a:hover { color: var(--green); }
.mobile-dock { display: none; }
.store-alert { margin-bottom: 16px; padding: 12px 16px; border-radius: 12px; background: #e6f5eb; border: 1px solid #c8ead5; color: #216346; font-weight: 650; overflow-wrap: anywhere; }
.alert-error { background: #fff2ec; border-color: #f2d9cb; color: #973f2e; }

.home-hero { --hero-size: clamp(306px, 31vw, 386px); position: relative; overflow: hidden; isolation: isolate; border-radius: 24px; background: #15362b; color: #fff; box-shadow: 0 12px 35px #203c2814; }
.hero-slide { height: var(--hero-size); display: flex; align-items: center; position: relative; isolation: isolate; overflow: hidden; }
.hero-slide::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #142f25 0%, #142f25 26%, #142f25eb 40%, #142f2555 62%, transparent 81%); }
.hero-art { position: absolute; z-index: -2; inset: 0 0 0 auto; width: 74%; height: 100%; object-fit: cover; object-position: 50% 52%; }
.hero-content { position: relative; width: 100%; max-width: 63%; padding: 19px 0 31px clamp(27px, 4.3vw, 64px); animation: hero-reveal .43s cubic-bezier(.22,.8,.36,1) both; }
@keyframes hero-reveal { from { opacity: .1; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero-content h2 { font-size: clamp(32px, 4.05vw, 60px); line-height: 1.15; letter-spacing: -.065em; font-weight: 900; white-space: pre-line; text-wrap: balance; overflow-wrap: anywhere; max-width: 100%; }
.hero-content p { margin: 15px 0 25px; color: #cde0d3; font-size: clamp(12px, 1.15vw, 15px); max-width: 380px; }
.hero-content h2, .hero-content p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; min-height: 41px; width: fit-content; padding: 8px 15px; font-weight: 750; transition: background .18s, box-shadow .18s, border-color .18s, transform .18s; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(1px); }
.button.primary { color: #fff; background: #245e46; border-color: #245e46; }
.button.primary:hover { background: #174830; box-shadow: 0 4px 12px #244f3824; }
.button.secondary { border-color: #dce6dc; color: var(--green); background: #f5f8f3; }
.button.secondary:hover { border-color: #bdd7c4; background: #edf5ee; }
.button.unavailable:hover { transform: none; border-color: #dce6dc; background: #f5f8f3; }
.hero-button { background: #cbf4dc; color: #183f2c; padding-inline: 17px; }
.hero-button:hover { background: #e2faec; }
.hero-button i { font-size: 11px; transition: transform .18s; }
.hero-button:hover i { transform: translateX(2px); }
.carousel-controls { position: absolute; z-index: 2; left: clamp(27px, 4.3vw, 64px); right: 22px; bottom: 17px; display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.carousel-dots, .carousel-arrows { display: flex; gap: 6px; align-items: center; }
.carousel-dots button { width: 19px; height: 21px; border: 0; background: transparent; position: relative; transition: width .22s; padding: 0; }
.carousel-dots button[aria-pressed=true] { width: 31px; }
.carousel-dots button::before { content: ""; position: absolute; inset: 9px 2px; border-radius: 5px; background: #d1ead971; }
.carousel-dots button[aria-pressed=true]::before { background: #d2f9e1; }
.carousel-arrows button { width: 31px; height: 31px; border: 1px solid #d1ead950; border-radius: 50%; background: #173b32a6; color: #e4f2e8; font-size: 10px; }
.carousel-arrows button:hover { background: #315e4a; }
.market-announcement { margin-top: 15px; display: flex; align-items: start; gap: 8px; color: #586e60; font-size: 12px; }
.market-announcement p { overflow-wrap: anywhere; white-space: pre-line; }
.market-announcement span { color: #4c866b; }
.hot-searches { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin-top: 20px; font-size: 12px; color: #5c6d62; }
.hot-label { font-weight: 800; margin-right: 2px; color: #4f6255; }
.hot-label i { color: #bb6a38; margin-right: 4px; }
.hot-searches a { padding: 4px 10px; border: 1px solid #e5eae1; border-radius: 100px; background: #fcfdf9; }
.hot-searches a:hover { background: #e6f3e9; border-color: #c6e5d0; color: var(--green); }

.home-section, .detail-section { margin-top: 34px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(19px, 2.2vw, 24px); font-weight: 850; line-height: 1.25; letter-spacing: -.035em; display: flex; align-items: center; gap: 9px; }
.section-glyph { width: 29px; height: 29px; border-radius: 9px; background: #e7f2e8; color: #39805e; display: inline-grid; place-items: center; font-size: 13px; flex: none; }
.section-more { color: #386a50; font-size: 12px; font-weight: 750; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.section-more:hover { color: #164a32; }
.section-more i { font-size: 10px; }

.category-shortcuts { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.category-shortcuts a { display: flex; align-items: center; justify-content: center; gap: 7px; flex-direction: column; min-width: 0; padding: 12px 4px 9px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; font-weight: 700; font-size: 12px; line-height: 1.3; text-align: center; transition: transform .18s, border-color .18s; }
.category-shortcuts a:hover { transform: translateY(-2px); border-color: #b3dbc1; }
.category-shortcuts a > span:last-child { overflow-wrap: anywhere; }
.category-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #e0f1e5; color: #2b7452; font-size: 14px; }
.category-tone-1 { background: #e9e9f8; color: #5f5696; }
.category-tone-2 { background: #e2eef8; color: #426991; }
.category-tone-3 { background: #faeadf; color: #9c5d38; }
.category-tone-4 { background: #f7efda; color: #8c6b27; }
.category-tone-5 { background: #f9e8eb; color: #9b5260; }

.app-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.app-card { min-width: 0; border: 1px solid var(--line); background: var(--white); border-radius: 16px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.app-card:hover { transform: translateY(-3px); border-color: #c5decd; box-shadow: 0 6px 18px #244f3810; }
.card-body { display: flex; flex-direction: column; height: 100%; padding: 14px; border-radius: inherit; }
.card-app-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.app-icon { position: relative; width: 48px; height: 48px; border-radius: 13px; display: inline-grid; place-items: center; flex: none; overflow: hidden; color: #2b7152; background: #e2f2e7; font-size: 20px; }
.app-icon img { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; background: inherit; }
.app-tone-1, .app-tone-5 { color: #865034; background: #f8e7d9; }
.app-tone-2, .app-tone-6 { color: #373e85; background: #e9ebfb; }
.app-tone-3 { color: #467080; background: #def1f1; }
.app-tone-4, .app-tone-7 { color: #785719; background: #f5edcf; }
.card-app-name { min-width: 0; }
.card-app-name h3 { font-size: 15px; font-weight: 800; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-app-name > span { display: block; color: var(--muted); margin-top: 3px; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-body p { margin: 11px 0 13px; color: #66796e; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-app-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 5px; justify-content: space-between; margin-top: auto; }
.card-meta { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 750; font-variant-numeric: tabular-nums; }
.rating-dot { color: #ba7a21; }
.metadata-separator { width: 3px; height: 3px; margin-inline: 1px; border-radius: 50%; background: #8fa299; }
.card-price { display: inline-flex; border-radius: 7px; padding: 4px 7px; color: #21674b; background: #e8f4eb; font-size: 11px; line-height: 1.3; font-weight: 800; white-space: nowrap; }
.home-columns { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); gap: 24px; }
.home-columns .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.ranking-list { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rank-row { display: flex; align-items: center; min-width: 0; gap: 12px; padding: 11px 13px; transition: background .18s; }
.rank-row + .rank-row { border-top: 1px solid #edf0eb; }
.rank-row:hover { background: #f5f9f4; }
.rank-row:focus-visible { outline-offset: -3px; }
.rank-number { flex: 0 0 25px; color: #75877c; text-align: center; font-size: 14px; font-family: "SFMono-Regular", Consolas, monospace; font-weight: 750; font-variant-numeric: tabular-nums; }
.rank-1 { color: #a06c1c; }
.rank-2 { color: #457163; }
.rank-3 { color: #9a5940; }
.rank-row .app-icon { width: 40px; height: 40px; border-radius: 11px; font-size: 16px; }
.rank-app { min-width: 0; flex: 1; display: grid; }
.rank-app strong, .rank-app small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-app strong { font-size: 13px; }
.rank-app small, .rank-stat, .rank-arrow { font-size: 11px; color: var(--muted); }
.rank-stat { white-space: nowrap; }
.page-rank .rank-row { padding: 13px 20px; gap: 16px; }
.page-rank .rank-row .app-icon { width: 45px; height: 45px; }
.page-rank .rank-number, .page-rank .rank-app strong { font-size: 16px; }

.page-title { margin-bottom: 21px; }
.page-title h1, .account-title h1 { font-size: clamp(27px, 3.6vw, 43px); line-height: 1.16; font-weight: 850; letter-spacing: -.05em; overflow-wrap: anywhere; }
.page-title p, .account-title p { color: var(--muted); margin-top: 8px; }
.store-tabs { display: flex; gap: 6px; margin-bottom: 17px; padding: 5px; background: #eef2ec; border: 1px solid var(--line); border-radius: 13px; width: fit-content; max-width: 100%; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.store-tabs a { padding: 7px 12px; border: 1px solid transparent; border-radius: 8px; white-space: nowrap; scroll-snap-align: start; font-weight: 650; color: #5d6e64; }
.store-tabs a:hover { color: var(--green); }
.store-tabs a[aria-current=page] { border-color: #e0e8df; background: var(--white); color: #205c43; box-shadow: 0 1px 2px #253e2810; }
.catalog-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 14px; margin-bottom: 17px; }
.filter-group { display: flex; align-items: center; gap: 7px; min-width: 0; }
.filter-group label { color: #516559; font-size: 12px; font-weight: 700; }
select, input:not([type=radio]):not([type=hidden]), textarea { max-width: 100%; }
.catalog-filters select, .checkout-form select { min-height: 38px; padding: 6px 10px; border: 1px solid #dfe7de; border-radius: 9px; background: var(--white); }
.catalog-filters .button { min-height: 38px; font-size: 12px; }
.catalog-filters[data-enhanced] .button { display: none; }
.pagination { display: flex; justify-content: center; gap: 6px; margin: 23px 0 4px; }
.pagination a { min-width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font-weight: 700; color: #476351; padding-inline: 7px; }
.pagination a[aria-current=page], .pagination a:hover { background: #e1f2e6; border-color: #c7e0ce; }
.empty-state { border: 1px dashed #d5e3d8; border-radius: 16px; background: #fafcf8; display: grid; place-items: center; gap: 9px; padding: 27px 16px; text-align: center; color: var(--muted); }
.empty-state > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: #e7f3ea; color: #4a8163; }
.empty-state > .button { margin-top: 4px; }
.store-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); padding: clamp(16px, 2.4vw, 30px); }

.breadcrumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 12px; margin-bottom: 13px; }
.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs i { font-size: 9px; }
.breadcrumbs span { overflow-wrap: anywhere; }
.detail-hero { background: linear-gradient(125deg, #fff 25%, #eef7ee 100%); border-color: #dce8db; }
.detail-intro { display: flex; align-items: center; gap: clamp(13px, 3vw, 27px); }
.detail-app-icon { width: clamp(68px, 10vw, 108px); height: clamp(68px, 10vw, 108px); border-radius: clamp(17px, 2.7vw, 27px); font-size: 37px; }
.detail-title { min-width: 0; }
.detail-title h1 { font-size: clamp(26px, 4.8vw, 54px); line-height: 1.18; font-weight: 850; letter-spacing: -.055em; overflow-wrap: anywhere; }
.detail-title p { margin-top: 5px; color: var(--muted); overflow-wrap: anywhere; }
.detail-eyebrow { color: #42745b; font-size: 11px; font-weight: 800; margin-bottom: 6px; }
.detail-eyebrow span { margin: 0 2px; }
.detail-numbers { border-top: 1px solid #e0e9e0; margin-top: 23px; padding-top: 17px; display: grid; grid-template-columns: repeat(3, minmax(0, .93fr)) minmax(0, 1.3fr); gap: 13px; }
.detail-numbers dl { border-right: 1px solid #e0e9e0; padding-right: 7px; }
.detail-numbers dl:last-child { border-right: 0; }
.detail-numbers dt { font-size: 11px; color: var(--muted); font-weight: 700; }
.detail-numbers dd { font-size: clamp(14px, 2vw, 19px); font-weight: 800; overflow-wrap: anywhere; }
.detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.detail-actions .button { min-height: 44px; }
.detail-entitlement { color: #316247; border: 1px solid #d6e7da; background: #f2f8f1; border-radius: 8px; padding: 5px 9px; font-size: 11px; font-weight: 750; }
.favorite-button.is-favorite i { color: #b64c6e; }
.detail-vip-link { display: inline-flex; align-items: center; gap: 6px; padding-top: 14px; color: #74591c; font-size: 12px; font-weight: 700; }
.detail-vip-link:hover { color: #503a0b; }
.checkout-form { display: flex; align-items: stretch; flex-wrap: wrap; gap: 7px; }
.checkout-form select { min-height: 41px; }
.screenshots { display: flex; align-items: stretch; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.screenshots a { scroll-snap-align: start; flex: 0 0 min(245px, 72vw); border: 1px solid var(--line); border-radius: 14px; background: #ecf1ec; overflow: hidden; }
.screenshots img { width: 100%; height: 310px; object-fit: contain; }
.description-panel p, .review-card p, .account-review p { white-space: pre-wrap; overflow-wrap: anywhere; color: #4d6256; }
.ratings-panel { display: flex; align-items: center; gap: clamp(15px, 5vw, 60px); }
.ratings-score { display: grid; min-width: 86px; text-align: center; color: var(--muted); font-size: 12px; font-weight: 650; }
.ratings-score strong { font-size: clamp(32px, 5vw, 53px); letter-spacing: -.045em; color: var(--green); line-height: 1.1; }
.ratings-bars { display: grid; gap: 4px; width: min(440px, 100%); }
.rating-line { display: grid; grid-template-columns: 28px 1fr 25px; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.rating-line progress { width: 100%; height: 7px; appearance: none; border: 0; background: #edf2eb; border-radius: 10px; overflow: hidden; }
.rating-line progress::-webkit-progress-bar { background: #edf2eb; }
.rating-line progress::-webkit-progress-value { border-radius: 10px; background: #58a77e; }
.rating-line progress::-moz-progress-bar { border-radius: 10px; background: #58a77e; }
.review-form, .leave-review, .ratings-panel + .empty-state, .leave-review + .empty-state, .review-form + .empty-state { margin-top: 12px; }
.review-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review-heading h3 { font-size: 16px; }
.form-stack .star-field { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; border: 0; margin: 0; padding: 0; }
.star-field label { color: #c6cfc6; cursor: pointer; font-size: 20px; padding: 3px 2px; }
.star-field input { position: absolute; opacity: 0; pointer-events: none; }
.star-field input:focus-visible + label { outline: 2px solid #40a984; outline-offset: 1px; border-radius: 5px; }
.star-field input:checked ~ label, .star-field label:hover, .star-field label:hover ~ label { color: #c88628; }
.leave-review { color: var(--muted); }
.leave-review a, .auth-switch a { color: #266948; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.reviews-list { display: grid; gap: 10px; margin-top: 12px; }
.review-card { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 11px; padding-block: 15px; }
.review-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.review-meta small { color: var(--muted); }
.review-meta strong { overflow-wrap: anywhere; }
.review-stars { color: #bd8126; font-size: 11px; margin: 3px 0 4px; display: flex; gap: 3px; }
.account-review .section-more { margin-top: 8px; }

.vip-hero { min-height: 235px; position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; padding: clamp(25px, 5vw, 66px); background: radial-gradient(circle at 78% 34%, #4b7256, #163829 54%, #143226); color: #fafbf1; border-radius: 24px; }
.vip-hero h1 { font-size: clamp(30px, 5vw, 58px); line-height: 1.16; letter-spacing: -.05em; margin: 7px 0 11px; }
.vip-hero p { color: #d5e6d3; }
.vip-kicker, .vip-hero .vip-expiration { color: #f5d88f; font-size: 12px; font-weight: 800; }
.vip-hero .vip-expiration { margin-top: 10px; }
.vip-hero-mark { z-index: -1; position: absolute; top: 13%; right: 10%; font-size: clamp(105px, 18vw, 245px); line-height: 1; color: #f3d9982e; transform: rotate(-14deg); }
.vip-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.vip-card { display: flex; flex-direction: column; min-width: 0; }
.plan-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; color: #8a6322; background: #f9efd2; margin-bottom: 9px; }
.vip-card h3 { margin-bottom: 4px; font-size: 17px; }
.vip-card p { color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: auto; margin-bottom: 12px; color: var(--muted); font-size: 12px; }
.plan-price strong { color: var(--green); font-size: clamp(20px, 3vw, 31px); font-variant-numeric: tabular-nums; }
.plan-note { color: var(--muted); font-size: 12px; margin-top: 14px; }
.plan-note i { margin-right: 3px; }

.auth-layout { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr); width: min(850px, 100%); gap: 14px; margin: 24px auto 0; }
.auth-art { min-height: 378px; position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius); display: flex; align-items: flex-end; padding: clamp(16px, 3vw, 33px); background: radial-gradient(circle at 69% 31%, #4b7457, #123a2a 67%); color: #e6f5e9; }
.auth-art p { font-size: clamp(24px, 3vw, 42px); line-height: 1.16; letter-spacing: -.045em; font-weight: 850; }
.auth-ornament { position: absolute; z-index: -1; right: -10px; top: 0; color: #a4d4a845; font-size: 154px; transform: rotate(15deg); }
.auth-card { padding: clamp(18px, 3vw, 38px); }
.auth-switch { color: var(--muted); font-size: 13px; margin-top: 18px; }
.form-stack { display: grid; gap: 8px; }
.form-stack > label { color: #4a6354; font-size: 13px; font-weight: 700; }
.form-stack input:not([type=hidden]):not([type=radio]), .form-stack textarea { min-width: 0; width: 100%; min-height: 42px; border: 1px solid #dfe8de; border-radius: 9px; padding: 8px 11px; background: #fafbf8; }
.form-stack textarea { resize: vertical; }
.form-stack .button { margin-top: 5px; }
.form-stack h2 { margin-bottom: 5px; font-size: 19px; }
.account-shell { width: min(680px, 100%); margin-inline: auto; }
.account-heading { display: flex; align-items: center; gap: 11px; justify-content: space-between; margin-bottom: 20px; }
.account-title, .account-actions { display: flex; align-items: center; min-width: 0; gap: 9px; }
.account-avatar { width: 48px; height: 48px; font-size: 19px; }
.account-title h1 { font-size: clamp(23px, 3.8vw, 36px); }
.account-title p { font-size: 12px; margin-top: 4px; }
.account-actions { flex: none; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; width: min(930px, 100%); }
.order-list { display: grid; gap: 10px; }
.order-card { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 15px; padding: 15px; }
.order-name { display: flex; align-items: center; gap: 10px; min-width: 0; overflow-wrap: anywhere; }
.order-name h3 { font-size: 15px; }
.order-name span:not(.section-glyph), .order-name small { display: block; color: var(--muted); font-size: 11px; }
.order-cost { text-align: center; display: grid; gap: 4px; justify-items: center; }
.order-card .button { font-size: 12px; min-height: 35px; }
.status-pill { display: inline-flex; width: fit-content; color: #4d6256; background: #edf2eb; padding: 3px 7px; border-radius: 6px; font-size: 11px; font-weight: 750; }
.status-paid { color: #1d6044; background: #e2f4e8; }
.status-pending, .status-refunding { color: #795c23; background: #f8efda; }

@media (max-width: 1200px) {
    :root { --sidebar: 202px; }
    .topbar-inner, .store-main, .store-footer { padding-inline: 24px; }
    .store-brand { font-size: 14px; }
    .app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 970px) {
    :root { --sidebar: 182px; }
    .store-sidebar { padding-inline: 11px; }
    .category-shortcuts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .home-columns { gap: 15px; }
    .home-columns .card-body { padding: 10px; }
    .home-columns .app-icon { width: 37px; height: 37px; border-radius: 9px; }
    .home-columns .card-app-head { gap: 7px; }
    .home-ranks .rank-row { gap: 6px; padding-inline: 8px; }
}

@media (max-width: 760px) {
    html { scroll-padding-top: 12px; }
    .store-sidebar, .topbar-context { display: none; }
    .store-workspace { margin-left: 0; }
    .store-main, .store-footer, .topbar-inner { padding-inline: 17px; }
    .store-main { padding-top: 15px; padding-bottom: 31px; }
    .store-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); padding-top: 15px; }
    .topbar-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px 14px; padding-block: 11px; }
    .mobile-brand { display: block; min-width: 0; }
    .store-brand { font-size: 15px; }
    .brand-image, .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
    .header-user { align-self: center; justify-self: end; grid-area: 1 / 2; font-size: 12px; }
    .avatar { width: 29px; height: 29px; font-size: 11px; }
    .global-search { width: 100%; grid-column: 1 / -1; height: 37px; }
    .global-search button { display: block; width: 28px; }
    .global-search kbd { display: none; }

    .mobile-dock { --active: 2; --dock-pad: 7px; position: fixed; z-index: 20; bottom: calc(13px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: min(420px, calc(100% - 24px)); max-width: calc(100% - env(safe-area-inset-left) - env(safe-area-inset-right)); padding: 5px var(--dock-pad); border: 1px solid #dce9e0; border-radius: 19px; background: #fffffff2; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 6px 25px #163e3029; user-select: none; }
    .mobile-dock[data-active="0"] { --active: 0; }
    .mobile-dock[data-active="1"] { --active: 1; }
    .mobile-dock[data-active="3"] { --active: 3; }
    .mobile-dock[data-active="4"] { --active: 4; }
    .dock-indicator { position: absolute; top: 5px; bottom: 5px; left: calc(var(--dock-pad) + ((100% - 2 * var(--dock-pad)) / 5) * var(--active)); width: calc((100% - 2 * var(--dock-pad)) / 5); border-radius: 13px; background: #e2f4e9; pointer-events: none; transition: left .24s cubic-bezier(.23,.65,.27,1); }
    .mobile-dock a { position: relative; overflow: hidden; display: grid; place-items: center; align-content: center; min-height: 48px; padding: 3px; gap: 2px; border-radius: 13px; font-weight: 700; color: #61736a; font-size: 10px; -webkit-tap-highlight-color: transparent; }
    .mobile-dock a[aria-current=page], .mobile-dock .dock-selected { color: #23674a; }
    .dock-glyph { font-size: 16px; }
    .dock-selected .dock-glyph { animation: dock-bounce .29s cubic-bezier(.2,.7,.35,1.25); }
    .dock-ripple { position: absolute; top: var(--ripple-y, 50%); left: var(--ripple-x, 50%); width: 5px; height: 5px; border-radius: 50%; background: #72bc98; transform: translate(-50%, -50%); pointer-events: none; animation: dock-ripple .28s ease-out forwards; }
    @keyframes dock-bounce { 50% { transform: translateY(-4px) scale(1.14); } }
    @keyframes dock-ripple { from { opacity: .34; transform: translate(-50%, -50%) scale(.5); } to { opacity: 0; transform: translate(-50%, -50%) scale(25); } }

    .home-hero { --hero-size: 290px; border-radius: 18px; }
    .hero-art { width: 83%; object-position: 57% 50%; opacity: .83; }
    .hero-content { max-width: 76%; padding-left: 23px; padding-bottom: 33px; }
    .hero-content h2 { font-size: clamp(27px, 5.9vw, 43px); }
    .hero-content p { margin: 11px 0 18px; max-width: 200px; }
    .hero-button { min-height: 37px; padding: 7px 11px; font-size: 12px; }
    .carousel-controls { left: 23px; right: 13px; bottom: 9px; }
    .carousel-arrows button { width: 26px; height: 26px; }
    .home-section, .detail-section { margin-top: 26px; }
    .home-columns { display: block; }
    .home-columns .card-body { padding: 12px; }
    .home-columns .app-icon { width: 45px; height: 45px; border-radius: 11px; }
    .home-ranks .rank-row { gap: 10px; padding-inline: 12px; }
    .auth-layout { margin-top: 3px; }
    .auth-art { min-height: 300px; }
}

@media (max-width: 530px) {
    .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .category-shortcuts { gap: 7px; }
    .category-shortcuts a { padding: 10px 3px; font-size: 11px; }
    .card-body { padding: 11px; }
    .app-icon { width: 40px; height: 40px; border-radius: 11px; }
    .card-app-head { gap: 7px; }
    .card-app-name h3 { font-size: 13px; }
    .card-app-name > span { font-size: 10px; }
    .card-body p { margin: 8px 0 9px; font-size: 11px; }
    .card-price, .card-meta { font-size: 10px; }
    .store-tabs { width: 100%; }
    .store-tabs a { padding-inline: 10px; font-size: 13px; }
    .page-rank .rank-row { gap: 8px; padding-inline: 10px; }
    .page-rank .rank-number { flex-basis: 22px; }
    .page-rank .rank-row .app-icon { width: 41px; height: 41px; }
    .page-rank .rank-app strong { font-size: 14px; }
    .auth-layout { grid-template-columns: 1fr; width: min(390px, 100%); }
    .auth-art { display: none; }
    .vip-hero { min-height: 198px; }
    .vip-plans, .profile-grid { grid-template-columns: 1fr; }
    .account-actions .button { padding-inline: 9px; font-size: 12px; }
    .order-card { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
    .order-card .button { grid-column: 2; }
}

@media (max-width: 380px) {
    .store-main, .store-footer, .topbar-inner { padding-inline: 12px; }
    .home-hero { --hero-size: 270px; }
    .hero-content { padding-left: 16px; max-width: 80%; }
    .hero-slide::after { background: linear-gradient(90deg, #142f25 10%, #142f25ec 36%, #142f2583 67%, #142f2545); }
    .app-card .app-icon, .home-columns .app-icon { width: 33px; height: 33px; }
    .card-app-foot { gap: 5px; }
    .detail-intro { align-items: start; }
    .detail-numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-numbers dl:nth-child(even) { border-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
