: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: 16px 0 64px;
}

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

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

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

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

.detail-hero p {
    max-width: 760px;
    margin: 8px 0 0;
    color: var(--store-muted);
    font-size: 13px;
    line-height: 1.68;
}

.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--store {
    align-items: flex-end;
    margin-bottom: 34px;
}

.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-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;
    font-weight: 700;
}

.store-filter.is-active,
.store-filter:hover {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
    box-shadow: 0 14px 26px color-mix(in srgb, #10b981 18%, transparent);
}

.store-title-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}

.store-section__head h2.store-featured-label {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--store-muted);
}

.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: 64px;
    height: 64px;
    margin-top: 12px;
    border-radius: 18px;
}

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

.store-app-icon .is-filled-icon,
.store-app-icon .is-filled-icon * {
    fill: currentColor;
    stroke: none;
}

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

.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__cta {
    color: var(--store-muted);
    font-size: 13px;
}

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

.store-card__footer {
    display: flex;
    justify-content: flex-end;
    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: 16px;
    align-items: flex-start;
}

.detail-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.detail-hero__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 11px;
    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: 11px;
}

.detail-hero__meta .detail-certified-badge {
    gap: 6px;
    font-weight: 760;
}

.detail-certified-badge__icon {
    width: 14px;
    height: 14px;
    color: currentColor;
    flex-shrink: 0;
}

.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);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    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: #4b5563;
    font-size: 15px;
    line-height: 1.9;
    font-weight: 400;
    word-break: break-word;
}

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

.module-store-rich-content {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.9;
    font-weight: 400;
    word-break: break-word;
}

.module-store-rich-content p {
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    font-weight: inherit;
}

.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: 16px;
    }

    .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: 26px;
    }

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

    .store-section__head--store {
        align-items: flex-start;
        margin-bottom: 22px;
    }

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

}
