:root {
    --store-bg: #f5f5f7;
    --store-surface: rgba(255, 255, 255, 0.92);
    --store-surface-strong: #ffffff;
    --store-border: rgba(15, 23, 42, 0.08);
    --store-text: #111827;
    --store-muted: #667085;
    --store-accent: #2563eb;
    --store-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, #f8f8fa 0%, var(--store-bg) 100%);
    color: var(--store-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.store-preview-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: #fff3f2;
    color: #c2410c;
    border-bottom: 1px solid #fed7d2;
    font-size: 13px;
}

.store-preview-banner__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
}

.store-shell {
    min-height: 100vh;
}

.store-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 32px;
    background: rgba(245, 245, 247, 0.86);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.store-header__brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.store-header__brand img {
    width: auto;
    height: 44px;
    max-width: min(280px, 42vw);
    object-fit: contain;
}

.store-header__nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

.store-header__nav a {
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 14px;
    color: var(--store-muted);
}

.store-header__nav a.is-active,
.store-header__nav a:hover {
    background: rgba(255, 255, 255, 0.88);
    color: var(--store-text);
}

.store-main {
    width: min(1280px, calc(100% - 48px));
    margin: 0 auto;
    padding: 30px 0 64px;
}

.detail-hero,
.detail-panel,
.store-card,
.screenshot-card,
.store-empty {
    background: var(--store-surface);
    border: 1px solid var(--store-border);
    box-shadow: var(--store-shadow);
}

.detail-hero {
    display: grid;
    gap: 22px;
    padding: 26px;
    border-radius: 24px;
}

.store-eyebrow,
.store-section__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
}

.store-page-title,
.detail-hero h1 {
    margin: 12px 0 0;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.12;
    font-weight: 750;
}

.store-page-title--plain,
.store-section__title--plain,
.detail-hero__title--plain {
    margin-top: 0;
}

.store-page-desc,
.detail-hero p {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--store-muted);
    font-size: 14px;
    line-height: 1.75;
}

.store-section {
    margin-top: 28px;
}

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

.store-section__head > div {
    min-width: 0;
}

.store-section__head h2 {
    margin: 10px 0 0;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 750;
}

.store-section__count {
    color: var(--store-muted);
    font-size: 14px;
}

.store-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.store-filter {
    padding: 9px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--store-muted);
    font-size: 13px;
}

.store-filter.is-active,
.store-filter:hover {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}

.store-empty {
    padding: 36px;
    border-radius: 28px;
}

.store-empty h3 {
    margin: 0;
    font-size: 24px;
}

.store-empty p {
    margin: 12px 0 0;
    color: var(--store-muted);
    line-height: 1.8;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.store-card {
    display: grid;
    gap: 13px;
    min-height: 186px;
    padding: 18px;
    border-radius: 22px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.store-card:hover {
    transform: translateY(-2px);
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.07);
}

.store-card__top {
    display: flex;
    gap: 13px;
    align-items: start;
}

.store-app-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--store-accent);
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
}

.store-app-icon.is-large {
    width: 76px;
    height: 76px;
    border-radius: 22px;
}

.store-app-icon svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.store-app-icon .module-payroll-icon {
    stroke-width: 4;
}

.store-app-icon.is-large svg {
    width: 36px;
    height: 36px;
}

.store-card__meta {
    min-width: 0;
    flex: 1;
}

.store-card__meta h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.22;
    font-weight: 740;
}

.store-card__meta span,
.store-card__version,
.store-card__code,
.store-card__cta {
    color: var(--store-muted);
    font-size: 13px;
}

.store-card__version {
    flex-shrink: 0;
    align-self: center;
}

.store-card__summary {
    margin: 0;
    color: #475467;
    font-size: 13px;
    line-height: 1.72;
}

.store-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.store-card__cta {
    color: #111827;
    font-weight: 700;
}

.detail-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.detail-hero__main {
    display: flex;
    gap: 18px;
    align-items: start;
}

.detail-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.detail-hero__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: var(--store-muted);
    font-size: 12px;
}

.detail-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.detail-button.secondary {
    background: #ffffff;
    color: #111827;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.screenshot-browser {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
}

.screenshot-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 420px);
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.screenshot-rail::-webkit-scrollbar {
    display: none;
}

.screenshot-card {
    overflow: hidden;
    border-radius: 22px;
    scroll-snap-align: start;
}

.screenshot-preview-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.screenshot-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.screenshot-preview-trigger:hover img {
    transform: scale(1.025);
    filter: saturate(1.04);
}

.screenshot-arrow {
    position: absolute;
    top: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 100%;
    padding: 0;
    border: 0;
    color: #ffffff;
    box-shadow: none;
    cursor: pointer;
    transition: filter 0.18s ease;
}

.screenshot-arrow span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 58px;
    color: rgba(255, 255, 255, 0.96);
    font-size: 38px;
    line-height: 1;
    text-shadow: 0 10px 18px rgba(15, 23, 42, 0.42), 0 2px 6px rgba(15, 23, 42, 0.38);
    transition: transform 0.18s ease, color 0.18s ease, text-shadow 0.18s ease;
}

.screenshot-arrow.is-prev {
    left: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.26) 0%, rgba(15, 23, 42, 0.13) 45%, rgba(15, 23, 42, 0) 100%);
}

.screenshot-arrow.is-next {
    right: 0;
    background: linear-gradient(270deg, rgba(15, 23, 42, 0.26) 0%, rgba(15, 23, 42, 0.13) 45%, rgba(15, 23, 42, 0) 100%);
}

.screenshot-arrow:hover {
    filter: saturate(1.05);
}

.screenshot-arrow:disabled {
    cursor: default;
}

.screenshot-arrow.is-prev:hover {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.34) 0%, rgba(15, 23, 42, 0.16) 48%, rgba(15, 23, 42, 0) 100%);
}

.screenshot-arrow.is-next:hover {
    background: linear-gradient(270deg, rgba(15, 23, 42, 0.34) 0%, rgba(15, 23, 42, 0.16) 48%, rgba(15, 23, 42, 0) 100%);
}

.screenshot-arrow.is-prev:hover span {
    transform: translateX(-3px);
}

.screenshot-arrow.is-next:hover span {
    transform: translateX(3px);
}

.screenshot-arrow:active {
    filter: brightness(0.96);
}

.screenshot-arrow:active span {
    transform: scale(0.96);
}

.screenshot-arrow:disabled span {
    color: rgba(100, 116, 139, 0.72);
    background: rgba(255, 255, 255, 0.46);
    border-radius: 14px;
    text-shadow: none;
}

.screenshot-arrow.is-prev:disabled,
.screenshot-arrow.is-prev:disabled:hover {
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.22) 0%, rgba(148, 163, 184, 0.1) 45%, rgba(148, 163, 184, 0) 100%);
}

.screenshot-arrow.is-next:disabled,
.screenshot-arrow.is-next:disabled:hover {
    background: linear-gradient(270deg, rgba(148, 163, 184, 0.22) 0%, rgba(148, 163, 184, 0.1) 45%, rgba(148, 163, 184, 0) 100%);
}

.screenshot-arrow:disabled:hover span {
    transform: none;
}

.screenshot-lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 86px;
    background: rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(6px) saturate(1.04);
}

.screenshot-lightbox__image {
    display: block;
    max-width: min(1120px, 92vw);
    max-height: 84vh;
    object-fit: contain;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.18);
}

.screenshot-lightbox__close {
    position: fixed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.78);
    color: #111827;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12), 0 8px 16px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    backdrop-filter: blur(14px);
    transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

.screenshot-lightbox__close {
    top: 24px;
    right: 24px;
    border-radius: 999px;
    font-size: 28px;
    line-height: 1;
}

.screenshot-lightbox__arrow {
    position: fixed;
    top: 0;
    z-index: 81;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 100%;
    padding: 0;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    line-height: 1;
    transition: filter 0.18s ease;
}

.screenshot-lightbox__arrow.is-prev {
    left: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.24) 0%, rgba(15, 23, 42, 0.12) 46%, rgba(15, 23, 42, 0) 100%);
}

.screenshot-lightbox__arrow.is-next {
    right: 0;
    background: linear-gradient(270deg, rgba(15, 23, 42, 0.24) 0%, rgba(15, 23, 42, 0.12) 46%, rgba(15, 23, 42, 0) 100%);
}

.screenshot-lightbox__arrow {
    font-size: 0;
}

.screenshot-lightbox__arrow::before {
    color: rgba(255, 255, 255, 0.96);
    font-size: 42px;
    line-height: 1;
    text-shadow: 0 10px 18px rgba(15, 23, 42, 0.42), 0 2px 6px rgba(15, 23, 42, 0.38);
    transition: transform 0.18s ease, color 0.18s ease, text-shadow 0.18s ease;
}

.screenshot-lightbox__arrow.is-prev::before {
    content: "‹";
}

.screenshot-lightbox__arrow.is-next::before {
    content: "›";
}

.screenshot-lightbox__close:hover {
    background: #ffffff;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16), 0 12px 22px rgba(15, 23, 42, 0.1);
    transform: scale(1.05);
}

.screenshot-lightbox__arrow:hover {
    filter: saturate(1.05);
}

.screenshot-lightbox__arrow.is-prev:hover {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.32) 0%, rgba(15, 23, 42, 0.15) 48%, rgba(15, 23, 42, 0) 100%);
}

.screenshot-lightbox__arrow.is-next:hover {
    background: linear-gradient(270deg, rgba(15, 23, 42, 0.32) 0%, rgba(15, 23, 42, 0.15) 48%, rgba(15, 23, 42, 0) 100%);
}

.screenshot-lightbox__arrow.is-prev:hover::before {
    transform: translateX(-3px);
}

.screenshot-lightbox__arrow.is-next:hover::before {
    transform: translateX(3px);
}

.screenshot-lightbox__arrow:active {
    filter: brightness(0.96);
}

.screenshot-lightbox__arrow:disabled {
    cursor: default;
}

.screenshot-lightbox__arrow:disabled::before {
    color: rgba(100, 116, 139, 0.72);
    text-shadow: none;
}

.screenshot-lightbox__arrow.is-prev:disabled,
.screenshot-lightbox__arrow.is-prev:disabled:hover {
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.18) 0%, rgba(148, 163, 184, 0.08) 46%, rgba(148, 163, 184, 0) 100%);
}

.screenshot-lightbox__arrow.is-next:disabled,
.screenshot-lightbox__arrow.is-next:disabled:hover {
    background: linear-gradient(270deg, rgba(148, 163, 184, 0.18) 0%, rgba(148, 163, 184, 0.08) 46%, rgba(148, 163, 184, 0) 100%);
}

.screenshot-lightbox__arrow:disabled:hover::before {
    transform: none;
}

.is-store-preview-open {
    overflow: hidden;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
    gap: 18px;
    margin-top: 24px;
    align-items: start;
}

.detail-sidebar {
    display: grid;
    gap: 18px;
}

.detail-panel {
    padding: 20px;
    border-radius: 22px;
}

.detail-copy p {
    margin: 0 0 16px;
    color: #475467;
    font-size: 13px;
    line-height: 1.86;
}

.detail-copy p:last-child {
    margin-bottom: 0;
}

.feature-list {
    display: grid;
    gap: 12px;
}

.feature-item {
    display: flex;
    gap: 12px;
    align-items: start;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.88);
    border: 1px solid rgba(15, 23, 42, 0.05);
    color: #344054;
    font-size: 13px;
    line-height: 1.8;
}

.feature-item__dot {
    width: 8px;
    height: 8px;
    margin-top: 8px;
    border-radius: 999px;
    background: var(--store-accent);
    flex-shrink: 0;
}

.token-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.token-list span {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.05);
    color: #344054;
    font-size: 13px;
}

@media (max-width: 1080px) {
    .store-grid,
    .detail-layout,
    .detail-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .store-main {
        width: min(100% - 28px, 1280px);
        padding-top: 22px;
    }

    .store-header {
        padding: 14px 18px;
    }

    .store-header,
    .store-header__nav,
    .detail-hero__main {
        flex-direction: column;
        align-items: stretch;
    }

    .detail-hero,
    .detail-panel,
    .store-card {
        padding: 20px;
        border-radius: 22px;
    }

    .store-page-title,
    .detail-hero h1 {
        font-size: clamp(28px, 10vw, 40px);
    }

    .store-section__head h2 {
        font-size: 24px;
    }

    .store-card__top {
        flex-wrap: wrap;
    }

    .screenshot-rail {
        grid-auto-columns: minmax(240px, 84vw);
    }

    .screenshot-arrow {
        width: 48px;
        height: 100%;
    }

    .screenshot-arrow span {
        width: 26px;
        height: 48px;
        font-size: 32px;
    }

    .screenshot-lightbox {
        padding: 18px 58px;
    }

    .screenshot-lightbox__image {
        border-radius: 18px;
    }

    .screenshot-lightbox__close {
        top: 14px;
        right: 14px;
    }

    .screenshot-lightbox__arrow {
        width: 54px;
        height: 100%;
    }

    .screenshot-lightbox__arrow::before {
        font-size: 32px;
    }

}
