:root {
    --store-primary: #598fff;
    --store-ink: #333;
    --store-muted: #929aa8;
    --store-line: #edf0f5;
    --store-background: #f7f8fa;
}
* {
    box-sizing: border-box;
}
html {
    -webkit-text-size-adjust: 100%;
}
body {
    margin: 0;
    background: var(--store-background);
    color: var(--store-ink);
    font-family:
        -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}
button,
input,
textarea {
    font: inherit;
}
button,
a,
input {
    -webkit-tap-highlight-color: transparent;
}
button,
a {
    touch-action: manipulation;
}
button {
    cursor: pointer;
}
button:disabled {
    cursor: default;
    opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid #91b0f7;
    outline-offset: 3px;
}
a {
    color: inherit;
    text-decoration: none;
}
.app-container {
    width: 100%;
    max-width: 500px;
    min-height: 100vh;
    margin: 0 auto;
    padding-bottom: 24px;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}
.sticky-nav {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    max-width: 500px;
    height: 46px;
    padding: 0 12px;
    visibility: hidden;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transform: translateX(-50%) translateY(-100%);
    transition:
        transform 0.25s,
        visibility 0.25s;
    pointer-events: none;
}
.sticky-nav.show {
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.sn-left,
.sn-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sn-left {
    flex: 1;
    min-width: 0;
}
.sn-avatar {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border: 1px solid #eee;
    border-radius: 50%;
    object-fit: cover;
}
.sn-title {
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sn-right {
    flex: 0 0 auto;
}
.sn-btn-icon,
.sn-btn-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 30px;
    border: 0;
    border-radius: 15px;
    background: #f4f6f9;
    color: #333;
    font-size: 13px;
}
.sn-btn-icon {
    width: 30px;
    padding: 0;
}
.sn-btn-text {
    padding: 0 10px;
}
.sn-btn-icon:active,
.sn-btn-text:active {
    background: #e4e6ea;
}
.store-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 18px 15px 22px;
    background: linear-gradient(180deg, #4480ff 0%, #598fff 100%);
    color: #fff;
}
.store-brand,
.store-top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.store-header-main {
    flex: 1;
    min-width: 0;
    margin-top: 12px;
}
.store-header-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 0;
}
.store-header-actions {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}
.store-top-actions {
    gap: 6px;
}
.store-brand {
    align-items: flex-start;
    flex: 1;
    width: 100%;
    min-width: 0;
}
.store-logo {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 22px rgba(32, 70, 160, 0.18);
    object-fit: cover;
}
.store-name-group {
    flex: 1;
    min-width: 0;
}
.store-name-line {
    display: flex;
    align-items: center;
    gap: 3px;
    min-width: 0;
    margin: 0 0 7px;
}
.store-name-group h1 {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 19px;
    font-weight: 650;
    line-height: 1.4;
    overflow-wrap: anywhere;
    white-space: normal;
}
.shop-verified-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 2px;
    margin-top: 0;
    padding: 2px 4px;
    border: 1px solid rgba(247, 218, 148, 0.9);
    border-radius: 4px;
    background: linear-gradient(135deg, #fffdf4, #fff5d8);
    color: #b88016;
    box-shadow:
        0 1px 4px rgba(116, 79, 12, 0.12),
        inset 0 1px 0 #fff;
    font-size: 9px;
    font-weight: 650;
    line-height: 1.3;
    white-space: nowrap;
}
.verified-seal {
    flex: 0 0 11px;
    width: 11px;
    height: 11px;
}
.shop-deposit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
    margin-top: 0;
    padding: 2px 0;
    border: none;
    color: #fff0c2;
    font-size: 10px;
    line-height: 1.4;
    vertical-align: top;
}
.deposit-icon {
    display: inline-flex;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
}
.deposit-icon svg {
    width: 100%;
    height: 100%;
}
.deposit-icon svg {
    width: 100%;
    height: 100%;
}
.deposit-value {
    min-width: 0;
    margin-left: 2px;
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}
.deposit-unset {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.8;
}
.store-subline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
}
.store-catalog-count {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 10px;
}
.store-catalog-count span {
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
}
.store-service,
.store-orders,
.store-search {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.17);
    color: #fff;
    font-size: 11px;
}
.store-service {
    min-height: 22px;
    padding: 2px 9px;
    background: #fff;
    color: #3b6fff;
}
.store-search {
    width: 26px;
    height: 26px;
    padding: 0;
}
.store-header-foot {
    display: flex;
    align-items: center;
    flex-basis: 100%;
    gap: 12px;
    margin-top: 12px;
}
.shop-notice {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    gap: 8px;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    line-height: 1.7;
}
.shop-notice i {
    margin-top: 3px;
    color: #fff;
}
.shop-notice span {
    min-width: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.mini-music-player {
    position: fixed;
    top: 146px;
    left: 14px;
    z-index: 99;
    width: 136px;
    height: 42px;
    max-width: calc(100vw - 16px);
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    background: rgba(235, 244, 255, 0.93);
    box-shadow:
        0 8px 22px rgba(26, 64, 160, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    color: #4f7ac2;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    cursor: grab;
    touch-action: none;
    user-select: none;
}
.mini-music-player.is-dragging {
    cursor: grabbing;
}
.music-row {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 100%;
}
.music-play-btn {
    display: flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    background: #f5f9ff;
    color: #4f8bff;
    box-shadow: 0 4px 10px rgba(44, 99, 190, 0.12);
}
.music-play-btn i {
    font-size: 11px;
}
.music-main {
    flex: 1;
    min-width: 0;
}
.music-progress-wrap {
    position: relative;
    display: flex;
    align-items: center;
    height: 12px;
}
.music-progress-track {
    width: 100%;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: #c8dcf7;
}
.music-progress {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #598fff;
}
.music-seek {
    position: absolute;
    inset: -4px 0;
    width: 100%;
    height: 20px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
.music-progress-wrap:focus-within {
    outline: 2px solid #91b0f7;
    outline-offset: 2px;
    border-radius: 4px;
}
.music-time {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    font-size: 9px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}
.mini-music-player.has-error .music-play-btn {
    color: #bc7e36;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.main-content {
    position: relative;
    margin-top: -14px;
    padding: 20px 15px;
    border-radius: 15px 15px 0 0;
    background: #fff;
}
.tab-wrapper {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f2f5;
}
.tab-item {
    position: relative;
    flex: 1;
    padding: 0 0 10px;
    color: var(--store-muted);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}
.tab-item.active {
    color: var(--store-ink);
}
.tab-item.active::after {
    content: '';
    position: absolute;
    right: 20%;
    bottom: -1px;
    left: 20%;
    height: 3px;
    border-radius: 3px;
    background: var(--store-primary);
}
.cat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 26px;
}
.catalog-category-title {
    display: none;
}
.catalog-products {
    min-width: 0;
}
.cat-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    min-height: 64px;
    overflow: hidden;
    padding: 6px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #f8f9fb;
    cursor: pointer;
}
.cat-item.active {
    background: linear-gradient(135deg, #5c8aff 0%, #406dff 100%);
    color: #fff;
}
.cat-item.active::after {
    content: '';
    position: absolute;
    right: -5px;
    bottom: -5px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}
.cat-item.active::before {
    content: '\2713';
    position: absolute;
    right: 8px;
    bottom: 5px;
    z-index: 1;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
}
.cat-img {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: cover;
}
.cat-text-box {
    flex: 1;
    min-width: 0;
}
.cat-name {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.cat-desc {
    margin-top: 3px;
    padding-right: 15px;
    color: var(--store-muted);
    font-size: 11px;
}
.cat-item.active .cat-desc {
    color: rgba(255, 255, 255, 0.9);
}
.catalog-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.section-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}
#catalogCount {
    color: var(--store-muted);
    font-size: 12px;
}
.goods-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.goods-card-img {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--store-line);
    border-radius: 8px;
    background: #fff;
    color: var(--store-ink);
    text-align: left;
    transition:
        border-color 0.18s,
        transform 0.18s;
}
.goods-card-img:hover {
    border-color: #c1d1f2;
    transform: translateY(-2px);
}
.goods-pic-wrap {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8f9fa;
}
.goods-pic-wrap.is-placeholder {
    background: linear-gradient(140deg, #f3f6fc, #e9effa);
}
.goods-pic-wrap.is-placeholder::before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    content: '\e637';
    color: #9badc7;
    font: normal 30px/1 icon, sans-serif;
}
.goods-pic[hidden] { display: none; }
.goods-new-tag {
    position: absolute;
    top: 12px;
    left: -26px;
    width: 90px;
    padding: 3px 0;
    transform: rotate(-45deg);
    background: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
    pointer-events: none;
}
.goods-pic {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cat-img.is-fallback {
    object-fit: contain;
}
.goods-title {
    display: block;
    min-height: 44px;
    padding: 7px 10px 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.goods-bottom {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 5px;
    margin-top: auto;
    padding: 0 10px 10px;
}
.goods-price {
    color: #ff5000;
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.goods-gift-tag {
    align-self: flex-start;
    max-width: calc(100% - 20px);
    margin: 0 10px 6px;
    padding: 2px 7px;
    border-radius: 5px;
    background: #edf3ff;
    color: #365eb1;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.gift-checkout-line {
    flex: 0 0 auto;
    padding: 7px 16px;
    border-top: 1px solid #e5edfd;
    background: #f2f6ff;
    color: #365a9e;
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.goods-status {
    padding: 3px 7px;
    border: 1px solid #cdebd5;
    border-radius: 999px;
    background: #edf8f0;
    color: #2e7d32;
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
}
.status-off {
    border-color: #ffd7d7;
    background: #ffeeee;
    color: #ce6666;
}
.status-low {
    border-color: #ffe0c7;
    background: #fff0e6;
    color: #c97935;
}
.status-mid {
    border-color: #ffe9ad;
    background: #fff7df;
    color: #a37a2c;
}
.no-more,
.empty-tip,
.review-empty {
    grid-column: 1 / -1;
    padding: 26px 12px;
    color: #9aa6ba;
    font-size: 12px;
    text-align: center;
}
.overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(22, 32, 52, 0.38);
}
.overlay.show {
    display: flex !important;
}
.center-modal,
.modal-sheet,
.notice-popup {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 15px 60px rgba(20, 35, 60, 0.2);
}
.modal-header-row,
.buy-modal-header,
.notice-head {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--store-line);
}
.modal-title-small,
.notice-title {
    font-size: 15px;
    font-weight: 600;
}
.buy-title-wrap {
    min-width: 0;
}
.buy-modal-main-title {
    margin-bottom: 4px;
    color: var(--store-muted);
    font-size: 11px;
}
.buy-product-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.close-circle-btn,
.close-icon,
.notice-close {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: #f2f5fa;
    color: #8491a6;
    font-size: 24px;
    line-height: 26px;
    text-align: center;
}
.search-box-wrap {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    padding: 16px;
}
.search-box-wrap input,
.input-field {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 8px 11px;
    border: 1px solid #dfe5ef;
    border-radius: 6px;
    background: #fff;
    color: var(--store-ink);
    font-size: 16px;
}
.search-box-wrap button,
.submit-btn,
.notice-ok-btn {
    flex: 0 0 auto;
    padding: 9px 14px;
    border: 0;
    border-radius: 6px;
    background: var(--store-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
.search-res-scroll,
.buy-modal-body,
.notice-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.search-res-scroll {
    padding: 0 16px 16px;
}
.search-res-scroll .goods-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.buy-modal-body {
    padding: 16px 18px;
}
.desc-title {
    margin-bottom: 7px;
    color: var(--store-muted);
    font-size: 11px;
}
.desc-content {
    max-height: none;
    overflow: visible;
    padding: 12px;
    border-radius: 7px;
    background: #f6f8fc;
    color: #61718b;
    font-size: 12px;
    line-height: 1.7;
    overflow-wrap: anywhere;
    isolation: isolate;
}
.desc-content img,
.notice-body img {
    max-width: 100%;
    height: auto;
}
.desc-content p {
    margin: 0 0 8px;
}
.desc-content pre {
    white-space: pre-wrap;
}
.desc-content table {
    max-width: 100%;
}
.desc-content .ql-align-center,
.desc-content .text-center {
    text-align: center;
}
.desc-content .ql-align-right,
.desc-content .text-right {
    text-align: right;
}
.desc-content .ql-align-left,
.desc-content .text-left {
    text-align: left;
}
.desc-content .ql-align-justify,
.desc-content .text-justify {
    text-align: justify;
}
.input-group-custom {
    margin-top: 16px;
}
.input-label {
    display: block;
    margin-bottom: 7px;
    color: #61718b;
    font-size: 12px;
    font-weight: 400;
}
.input-label span {
    color: #d96b75;
}
.input-label b {
    font-weight: 400;
}
.stock-line {
    margin-top: 12px;
    color: var(--store-muted);
    font-size: 11px;
}
.pay-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
}
.pay-btn {
    min-width: 0;
    padding: 10px;
    border: 1px solid var(--store-line);
    border-radius: 6px;
    color: #718099;
    font-size: 12px;
    text-align: center;
    cursor: pointer;
    overflow-wrap: anywhere;
}
.pay-btn.active {
    border-color: #a8bff1;
    background: #f0f5ff;
    color: var(--store-primary);
}
.pay-btn i {
    margin-right: 4px;
}
.icon-wx {
    color: #279e6e;
}
.icon-zfb {
    color: #3e87dc;
    font-weight: 700;
}
.pay-empty {
    padding-top: 12px;
    color: #b0797c;
    font-size: 12px;
}
.bottom-action-bar {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 18px max(13px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--store-line);
}
.price-display {
    min-width: 0;
    color: var(--store-primary);
    font-size: 21px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.price-caption {
    display: block;
    margin-bottom: 2px;
    color: var(--store-muted);
    font-size: 10px;
    font-weight: 400;
}
.price-display small {
    font-size: 13px;
}
.price-display.is-free small {
    display: none;
}
.right-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}
.qty-pill {
    display: flex;
    height: 32px;
    border: 1px solid var(--store-line);
    border-radius: 5px;
    overflow: hidden;
}
.qty-pill button,
.qty-pill input {
    width: 30px;
    padding: 0;
    border: 0;
    background: #f8faff;
    color: #687c9e;
    font-size: 14px;
    text-align: center;
}
.qty-pill input {
    width: 40px;
    background: #fff;
    appearance: textfield;
    -moz-appearance: textfield;
}
.qty-pill input::-webkit-inner-spin-button {
    appearance: none;
}
.submit-btn {
    min-height: 38px;
}
.notice-body {
    padding: 18px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}
.notice-body a {
    color: var(--store-primary);
}
.notice-footer {
    padding: 12px 18px 16px;
    border-top: 1px solid var(--store-line);
}
.notice-ok-btn {
    width: 100%;
    min-height: 38px;
}
.overlay.purchase-agreement-overlay {
    z-index: 1100;
    align-items: center;
    padding: 16px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.agreement-popup {
    width: min(100%, 600px);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
}
.agreement-head {
    align-items: center;
}
.agreement-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: var(--store-ink);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
}
.agreement-title::before {
    width: 3px;
    height: 17px;
    border-radius: 2px;
    background: var(--store-primary);
    content: '';
}
.agreement-title:focus {
    outline: none;
}
.agreement-body {
    color: #515c6e;
    font-size: 14px;
    line-height: 1.9;
}
.agreement-body p {
    margin: 0 0 14px;
}
.agreement-body p:last-child {
    margin-bottom: 0;
}
.agreement-body table {
    max-width: 100%;
}
.agreement-footer {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid var(--store-line);
    background: #fafbfd;
}
.agreement-footer button {
    flex: 1;
    min-width: 0;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #dfe5ef;
    border-radius: 6px;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}
.agreement-decline-btn {
    background: #fff;
    color: #7c8798;
}
.agreement-footer .agreement-accept-btn {
    border-color: var(--store-primary);
    background: var(--store-primary);
    color: #fff;
}
.agreement-declined-popup {
    width: min(100%, 500px);
    padding: 30px 22px;
    overflow-y: auto;
    text-align: center;
}
.agreement-declined-popup h2 {
    flex-shrink: 0;
    margin: 0;
    color: var(--store-ink);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.6;
}
.agreement-declined-popup p {
    flex-shrink: 0;
    margin: 22px 0 26px;
    color: #778294;
    font-size: 14px;
    line-height: 1.9;
}
.agreement-declined-popup p a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.agreement-declined-actions {
    display: flex;
    flex-shrink: 0;
    justify-content: center;
    gap: 10px;
}
.agreement-declined-actions button,
.agreement-declined-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 13px;
    border: 1px solid #dfe5ef;
    border-radius: 5px;
    background: #fff;
    color: var(--store-primary);
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
}
.purchase-agreement-overlay button:focus-visible,
.purchase-agreement-overlay a:focus-visible,
.agreement-body:focus-visible {
    outline: 2px solid var(--store-primary);
    outline-offset: 2px;
}
@media (max-width: 639px) {
    .overlay {
        align-items: flex-end;
        padding: 12px;
    }
    .notice-overlay {
        align-items: center;
    }
    .modal-sheet,
    .center-modal {
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
    }
    .bottom-action-bar {
        flex-wrap: wrap;
        padding-right: 14px;
        padding-left: 14px;
    }
    .right-actions {
        gap: 6px;
    }
    .submit-btn {
        padding-right: 10px;
        padding-left: 10px;
        font-size: 12px;
    }
}
@media (min-width: 640px) {
    body.jingpro-store {
        background: #eff3fa;
    }
    .app-container {
        width: calc(100% - 40px);
        max-width: 1000px;
        min-height: calc(100vh - 40px);
        margin: 20px auto;
        border: 1px solid #e3eaf5;
        border-radius: 20px;
    }
    .sticky-nav {
        width: calc(100% - 40px);
        max-width: 1000px;
        height: 56px;
        padding: 0 20px;
        border-radius: 0 0 14px 14px;
    }
    .store-header {
        padding: 24px 24px 28px;
        border-radius: 19px 19px 0 0;
        background: linear-gradient(120deg, #326bdf, #4989ee 68%, #528ff6);
    }
    .store-header-main {
        min-width: 0;
    }
    .store-logo {
        flex-basis: 56px;
        width: 56px;
        height: 56px;
    }
    .store-name-group h1 {
        font-size: 23px;
    }
    .store-name-line { gap: 10px; }
    .store-header-actions {
        flex-direction: row;
        gap: 8px;
        align-items: center;
    }
    .store-service,
    .store-orders,
    .store-search { min-height: 30px; }
    .store-search { width: 30px; }
    .shop-notice { font-size: 13px; }
    .mini-music-player {
        top: auto;
        right: 24px;
        bottom: 20px;
        left: auto;
    }
    .main-content {
        padding: 22px 24px 32px;
        border-radius: 18px 18px 0 0;
    }
    .tab-wrapper { gap: 22px; }
    .tab-item {
        flex: 0 0 auto;
        padding: 0 14px 12px;
        font-size: 15px;
    }
    .tab-item.active::after { right: 0; left: 0; }
    .cat-grid,
    .goods-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }
    .cat-item { border-radius: 10px; }
    .catalog-heading { margin-bottom: 16px; }
    .section-title { font-size: 19px; }
    .goods-card-img { border-radius: 12px; }
    .goods-title {
        min-height: 48px;
        padding: 9px 13px 5px;
        font-size: 13px;
    }
    .goods-bottom { padding: 0 13px 13px; }
    .goods-gift-tag { margin-left: 13px; }
    .goods-price { font-size: 18px; }
    .goods-pic-wrap { aspect-ratio: 5 / 4; }
    .center-modal,
    .modal-sheet { max-width: 580px; }
}
@media (min-width: 1024px) {
    .app-container,
    .sticky-nav {
        width: calc(100% - 64px);
        max-width: 1320px;
    }
    .app-container { margin: 26px auto; }
    .store-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 17px 24px;
        padding: 30px 36px 34px;
    }
    .store-name-group h1 { font-size: 27px; }
    .store-logo {
        flex-basis: 68px;
        width: 68px;
        height: 68px;
    }
    .store-header-tools {
        flex-direction: column;
        align-items: flex-end;
        margin-top: 0;
    }
    .shop-notice {
        margin-top: 0;
    }
    .store-header-foot {
        grid-column: 1 / -1;
    }
    .main-content { padding: 24px 32px 36px; }
    .catalog-layout.has-categories {
        display: grid;
        grid-template-columns: 220px minmax(0, 1fr);
        align-items: start;
        gap: 24px;
    }
    .catalog-categories {
        position: sticky;
        top: 72px;
        max-height: calc(100vh - 92px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 13px;
        border: 1px solid #e6ebf4;
        border-radius: 14px;
        background: #f9fbff;
    }
    .catalog-category-title {
        display: block;
        margin: 2px 5px 11px;
        color: #526787;
        font-size: 13px;
        font-weight: 650;
    }
    .catalog-categories .cat-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        margin: 0;
    }
    .catalog-categories .cat-item {
        background: transparent;
        min-height: 50px;
        padding: 9px 10px;
    }
    .catalog-categories .cat-item:hover { background: #eef3fc; }
    .catalog-categories .cat-item.active {
        border-color: #d4e1fb;
        background: #e8f0ff;
        color: #224fac;
    }
    .catalog-categories .cat-item.active .cat-desc { color: #5673ad; }
    .catalog-categories .cat-item.active::before { color: #3a68cd; }
    .catalog-categories .cat-item.active::after { display: none; }
    .catalog-categories .cat-img {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
    }
    .goods-grid { gap: 14px; }
    .modal-sheet { max-width: 620px; }
}
@media (min-width: 1240px) {
    .goods-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@supports not (aspect-ratio: 1 / 1) {
    .goods-pic-wrap::after { content: ''; display: block; padding-bottom: 100%; }
    .goods-pic-wrap .goods-pic { position: absolute; top: 0; left: 0; }
}
@media (max-width: 420px) {
    .mini-music-player {
        top: 142px;
        left: 12px;
        width: 128px;
        height: 40px;
        padding: 6px 7px;
    }
    .music-play-btn {
        flex-basis: 26px;
        width: 26px;
        height: 26px;
    }
    .music-time {
        font-size: 8.5px;
    }
}
@media (max-width: 360px) {
    .mini-music-player {
        top: 140px;
        width: 118px;
    }
    .store-header {
        padding-right: 12px;
        padding-left: 12px;
    }
    .store-brand {
        gap: 9px;
    }
    .store-name-group h1 {
        font-size: 17px;
    }
    .store-service,
    .store-orders {
        padding-right: 8px;
        padding-left: 8px;
        font-size: 11px;
    }
    .cat-item {
        gap: 4px;
        padding: 6px;
    }
    .cat-img {
        flex-basis: 24px;
        width: 24px;
        height: 24px;
    }
    .goods-price {
        font-size: 15px;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* 移动端店铺名称适配：缩小字号，名称与徽章保持同行 */
@media (max-width: 639px) {
    .store-name-group h1 {
        font-size: clamp(10px, 3.4vw, 13px);
        line-height: 1.4;
    }
}
