* { box-sizing: border-box; }

:root {
    --csp-page-bg: #f4f7fb;
    --csp-topbar-bg: #ffffff;
    --csp-primary: #2563eb;
    --csp-accent: #14b8a6;
    --csp-hero-start: #0f2f5f;
    --csp-hero-end: #0f766e;
    --csp-hero-panel: #ffffff;
    --csp-card-bg: #ffffff;
    --csp-card-image-bg: #dbeafe;
    --csp-price: #c2410c;
    --csp-stock: #047857;
    --csp-desktop-columns: 4;
    --csp-mobile-columns: 1;
}

body.csp-page {
    margin: 0;
    min-height: 100vh;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
    color: #172033;
    background: var(--csp-page-bg);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--csp-primary) 10%, transparent) 0%, transparent 34%),
        linear-gradient(225deg, color-mix(in srgb, var(--csp-accent) 12%, transparent) 0%, transparent 36%),
        var(--csp-page-bg);
}

body.csp-glow-off {
    background: var(--csp-page-bg);
}

body.csp-glow-on::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(105deg, transparent 0%, color-mix(in srgb, var(--csp-primary) 15%, transparent) 18%, transparent 42%),
        linear-gradient(255deg, transparent 0%, color-mix(in srgb, var(--csp-accent) 14%, transparent) 24%, transparent 54%);
    filter: blur(34px);
    opacity: .72;
    animation: cspGlow 12s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes cspGlow {
    from { transform: translate3d(-1.5%, 0, 0) scale(1); }
    to { transform: translate3d(1.5%, 14px, 0) scale(1.04); }
}

.csp-topbar {
    height: 66px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(122, 139, 164, .18);
    background: rgba(255,255,255,.92);
    background: color-mix(in srgb, var(--csp-topbar-bg) 92%, transparent);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.csp-brand, .csp-nav a, .csp-nav button {
    color: #172033;
    text-decoration: none;
    font-weight: 700;
}

.csp-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.csp-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--csp-primary), var(--csp-accent));
    color: #fff;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(37, 99, 235, .18);
    box-shadow: 0 12px 24px color-mix(in srgb, var(--csp-primary) 22%, transparent);
    overflow: hidden;
}

.csp-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.csp-nav { display: flex; align-items: center; gap: 18px; }

.csp-nav a,
.csp-nav button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.csp-nav button {
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.csp-nav-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    flex: 0 0 auto;
}

.csp-nav-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    stroke: currentColor;
}

.csp-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto;
    position: relative;
    z-index: 1;
}

.csp-hero {
    min-height: 280px;
    border-radius: 8px;
    padding: 42px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: center;
    gap: 28px;
    color: #fff;
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, var(--csp-hero-start), var(--csp-hero-end));
    background:
        linear-gradient(120deg, color-mix(in srgb, var(--csp-hero-start) 94%, #000), var(--csp-hero-end)),
        var(--csp-hero-start);
    box-shadow: 0 24px 70px rgba(15, 47, 95, .18);
    box-shadow: 0 24px 70px color-mix(in srgb, var(--csp-hero-start) 24%, transparent);
}

.csp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255,255,255,.2) 0%, transparent 34%),
        linear-gradient(155deg, transparent 0 42%, rgba(255,255,255,.1) 42% 43%, transparent 43% 100%),
        linear-gradient(34deg, transparent 0 68%, rgba(255,255,255,.14) 68% 100%);
    opacity: .9;
}

.csp-hero::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -140px;
    width: 420px;
    height: 330px;
    border-radius: 8px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--csp-accent) 48%, transparent), transparent 70%);
    opacity: .68;
    transform: rotate(-16deg);
}

.csp-hero > div {
    position: relative;
    z-index: 1;
}

.csp-kicker {
    margin: 0 0 14px;
    text-transform: uppercase;
    font-size: 13px;
    line-height: 1.3;
    letter-spacing: 0;
    color: rgba(255,255,255,.74);
}

.csp-hero h1 {
    margin: 0;
    font-size: 48px;
    line-height: 1.05;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.csp-hero p:not(.csp-kicker) {
    margin: 18px 0 0;
    max-width: 620px;
    font-size: 18px;
    line-height: 1.55;
    color: rgba(255,255,255,.88);
}

.csp-hero-panel {
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 8px;
    padding: 24px;
    background: rgba(255,255,255,.12);
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--csp-hero-panel) 22%, transparent), rgba(255,255,255,.08));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.26), 0 20px 46px rgba(0,0,0,.16);
    backdrop-filter: blur(12px);
}

.csp-hero-panel span {
    display: block;
    color: rgba(255,255,255,.72);
    font-size: 15px;
    line-height: 1.4;
}

.csp-hero-panel strong {
    display: block;
    color: #fff;
    font-size: 54px;
    line-height: 1;
    margin: 10px 0;
}

.csp-notice, .csp-alert {
    margin: 18px 0;
    padding: 14px 16px;
    border-radius: 8px;
    background: #fff7e6;
    border: 1px solid #ffe3ad;
}

.csp-notice :first-child { margin-top: 0; }
.csp-notice :last-child { margin-bottom: 0; }
.csp-notice a { color: var(--csp-primary); font-weight: 800; }
.csp-notice img { max-width: 100%; height: auto; border-radius: 8px; }
.csp-notice ul,
.csp-notice ol { padding-left: 1.4em; }
.csp-notice blockquote {
    margin: 10px 0;
    border-left: 4px solid var(--csp-primary);
    padding: 8px 12px;
    background: #fff;
}

.csp-filter { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0; }

.csp-filter button {
    border: 1px solid #d9e1ee;
    border-radius: 8px;
    padding: 9px 15px;
    background: #fff;
    cursor: pointer;
    font-weight: 800;
    color: #243044;
    box-shadow: 0 6px 18px rgba(32, 44, 68, .04);
}

.csp-filter button.is-active {
    background: var(--csp-primary);
    background: linear-gradient(135deg, var(--csp-primary), color-mix(in srgb, var(--csp-primary) 70%, var(--csp-accent)));
    border-color: transparent;
    color: #fff;
}

.csp-grid {
    display: grid;
    grid-template-columns: repeat(var(--csp-desktop-columns), minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.csp-product-btn {
    width: 100%;
    height: 372px;
    border: 1px solid rgba(126, 143, 167, .2);
    border-radius: 8px;
    background: var(--csp-card-bg);
    padding: 0;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    display: grid;
    grid-template-rows: 218px 92px 62px;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
    box-shadow: 0 14px 34px rgba(31, 45, 70, .06);
}

.csp-product-btn:hover {
    transform: translateY(-3px);
    border-color: var(--csp-primary);
    border-color: color-mix(in srgb, var(--csp-primary) 26%, #d9e1ee);
    box-shadow: 0 24px 58px rgba(31, 45, 70, .13);
}

.csp-cover {
    height: 218px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--csp-card-image-bg);
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--csp-card-image-bg) 82%, #fff), var(--csp-card-image-bg));
    color: var(--csp-primary);
    font-size: 54px;
    font-weight: 900;
    overflow: hidden;
}

.csp-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.csp-cover > span {
    font-size: 58px;
    line-height: 1;
}

.csp-product-body {
    padding: 12px 14px 8px;
    display: grid;
    grid-template-rows: 17px 25px 20px;
    gap: 2px;
    min-height: 0;
    overflow: hidden;
}

.csp-product-meta {
    display: block;
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 17px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.csp-product strong {
    display: block;
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    line-height: 25px;
    font-weight: 900;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
}

.csp-product small {
    display: block;
    height: 20px;
    color: #64748b;
    font-size: 13px;
    line-height: 20px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.csp-product-foot {
    border-top: 1px solid #eef2f7;
    padding: 0 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.csp-product-foot b { color: var(--csp-price); font-size: 21px; }
.csp-product-foot em { font-style: normal; color: var(--csp-stock); font-size: 13px; }
.csp-footer { padding: 36px 28px; text-align: center; color: #64748b; display: grid; gap: 8px; }
body.csp-page > .csp-footer { position: relative; z-index: 1; }
.csp-icp { font-size: 13px; color: #7b8797; }

.csp-article-card {
    width: min(760px, 100%);
    min-height: 148px;
    margin: 18px 0;
    border: 1px solid rgba(126, 143, 167, .22);
    border-radius: 8px;
    background: var(--csp-card-bg);
    padding: 0;
    text-align: left;
    display: grid;
    grid-template-columns: 178px minmax(0, 1fr);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(31, 45, 70, .08);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
    color: #172033;
    font: inherit;
}

.csp-article-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--csp-primary) 30%, #d9e1ee);
    box-shadow: 0 24px 54px rgba(31, 45, 70, .14);
}

.csp-article-card-cover {
    min-height: 148px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--csp-card-image-bg) 80%, #fff), var(--csp-card-image-bg));
    color: var(--csp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 48px;
    font-weight: 900;
}

.csp-article-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.csp-article-card-body {
    min-width: 0;
    padding: 16px 18px;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    gap: 6px;
}

.csp-article-card-meta {
    color: #64748b;
    font-size: 13px;
    line-height: 1.35;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.csp-article-card strong {
    color: #0f172a;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 900;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.csp-article-card small {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.csp-article-card-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.csp-article-card-foot b {
    color: var(--csp-price);
    font-size: 22px;
    line-height: 1.2;
}

.csp-article-card-foot em {
    color: var(--csp-stock);
    font-size: 13px;
    font-style: normal;
    margin-right: auto;
}

.csp-article-card-foot span {
    border-radius: 8px;
    background: var(--csp-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    padding: 7px 12px;
    white-space: nowrap;
}

.csp-article-category-products {
    display: grid;
    gap: 12px;
}

.csp-article-category-products .csp-article-card {
    width: 100%;
    margin: 0;
}

.csp-article-empty {
    padding: 18px;
    border: 1px dashed #d8e0ec;
    border-radius: 8px;
    color: #64748b;
    text-align: center;
}

.csp-modal {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    padding: 20px;
    z-index: 50;
}

.csp-modal.is-open { display: grid; }
.csp-modal-backdrop { position: absolute; inset: 0; background: rgba(18, 24, 38, .58); }

.csp-modal-card {
    position: relative;
    width: min(520px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .32);
}

.csp-modal-card.is-payment-stage {
    width: min(560px, 100%);
}

.csp-modal-card.is-payment-stage #payResult {
    margin-top: 0;
}

.csp-modal-card.is-payment-stage .csp-pay-panel {
    margin: 0;
}

.csp-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: #eef2f7;
    cursor: pointer;
    font-size: 22px;
}

.csp-modal h2 { margin: 0 40px 8px 0; font-size: 24px; }
.csp-modal-desc {
    color: #667085;
    line-height: 1.65;
    margin: 0 0 14px;
    word-break: break-word;
}

.csp-product-desc-html > :first-child { margin-top: 0; }
.csp-product-desc-html > :last-child { margin-bottom: 0; }
.csp-product-desc-html a { color: var(--csp-primary); font-weight: 800; }
.csp-product-desc-html img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 10px auto;
}
.csp-product-desc-html ul,
.csp-product-desc-html ol { padding-left: 1.35em; }
.csp-product-desc-html blockquote {
    margin: 10px 0;
    border-left: 4px solid var(--csp-primary);
    padding: 8px 12px;
    background: #f8fafc;
}
.csp-modal label { display: block; margin: 13px 0; font-weight: 700; }

.csp-modal input, .csp-modal select {
    width: 100%;
    margin-top: 7px;
    border: 1px solid #d8e0ec;
    border-radius: 8px;
    padding: 11px 12px;
    font: inherit;
}

.csp-field-help {
    margin: -5px 0 12px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

.csp-query-password-field {
    display: none;
}

.csp-query-password-field.is-visible {
    display: block;
}

.csp-field-title {
    display: block;
    margin: 13px 0 9px;
    font-weight: 800;
    color: #172033;
}

.csp-pay-methods {
    margin: 13px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
    gap: 10px;
}

.csp-pay-option {
    display: block;
    position: relative;
    margin: 0;
    cursor: pointer;
}

.csp-pay-option input {
    position: absolute;
    width: auto;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.csp-pay-card {
    min-height: 58px;
    height: 100%;
    border: 1px solid #d8e0ec;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.csp-pay-methods .csp-field-title {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.csp-pay-card img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
}

.csp-pay-card strong {
    color: #111827;
    font-size: 16px;
    line-height: 1.3;
}

.csp-pay-option input:checked + .csp-pay-card {
    border-color: var(--csp-primary);
    background: linear-gradient(135deg, color-mix(in srgb, var(--csp-primary) 8%, #fff), #fff);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--csp-primary) 15%, transparent);
}

.csp-total { display: flex; justify-content: space-between; margin: 16px 0; font-size: 18px; }

.csp-primary {
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: var(--csp-primary);
    background: linear-gradient(135deg, var(--csp-primary), color-mix(in srgb, var(--csp-primary) 72%, var(--csp-accent)));
    color: #fff;
    padding: 12px 14px;
    font-weight: 800;
    cursor: pointer;
}

.csp-result {
    margin-top: 16px;
    line-height: 1.7;
    display: grid;
    gap: 12px;
}

.csp-inline-alert {
    display: grid;
    grid-template-columns: 10px 1fr;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 14px;
}

.csp-inline-alert-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 7px;
}

.csp-inline-alert strong {
    display: block;
    margin-bottom: 2px;
    font-size: 14px;
    line-height: 1.35;
}

.csp-inline-alert p {
    margin: 0;
    color: inherit;
}

.csp-inline-alert.is-success {
    color: #065f46;
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.csp-inline-alert.is-success .csp-inline-alert-dot { background: #10b981; }

.csp-inline-alert.is-warning,
.csp-inline-alert.is-info {
    color: #92400e;
    background: #fffbeb;
    border-color: #fde68a;
}

.csp-inline-alert.is-warning .csp-inline-alert-dot,
.csp-inline-alert.is-info .csp-inline-alert-dot { background: #f59e0b; }

.csp-inline-alert.is-error {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.csp-inline-alert.is-error .csp-inline-alert-dot { background: #ef4444; }

.csp-result-summary,
.csp-order-box {
    border: 1px solid #e5ebf3;
    border-radius: 8px;
    background: #f8fafc;
}

.csp-result-summary {
    padding: 10px 12px;
}

.csp-result-summary p {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin: 4px 0;
    color: #64748b;
}

.csp-result-summary strong {
    color: #111827;
    text-align: right;
    word-break: break-all;
}

.csp-order-box {
    padding: 12px;
    display: grid;
    gap: 12px;
}

.csp-order-box h3 {
    margin: 0;
    font-size: 16px;
}

.csp-order-list {
    display: grid;
    gap: 10px;
}

.csp-order-list-item {
    border: 1px solid #e5ebf3;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.csp-order-list-head {
    width: 100%;
    border: 0;
    background: #fff;
    padding: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: 12px;
    text-align: left;
    cursor: pointer;
    color: #111827;
}

.csp-order-list-head:hover {
    background: #f8fafc;
}

.csp-order-list-head span {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.csp-order-list-head strong,
.csp-order-list-head b {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.csp-order-list-head strong {
    font-size: 14px;
    font-family: Menlo, Consolas, monospace;
}

.csp-order-list-head b {
    font-size: 14px;
    text-align: right;
}

.csp-order-list-head small,
.csp-order-list-head em {
    color: #64748b;
    font-size: 12px;
    font-style: normal;
}

.csp-order-list-head em {
    text-align: right;
}

.csp-order-list-detail {
    display: none;
    padding: 0 12px 12px;
}

.csp-order-list-item.is-open .csp-order-list-detail {
    display: block;
}

.csp-query-pager {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
}

.csp-query-pager button {
    border: 1px solid #d8e0ec;
    border-radius: 7px;
    background: #fff;
    color: #1f2937;
    padding: 6px 10px;
    cursor: pointer;
    font-weight: 700;
}

.csp-query-pager button.is-active {
    border-color: var(--csp-primary);
    background: var(--csp-primary);
    color: #fff;
}

.csp-query-pager button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.csp-result pre {
    white-space: pre-wrap;
    background: #fff;
    border: 1px solid #e5ebf3;
    border-radius: 8px;
    padding: 12px;
    margin: 0;
}

.csp-result img { max-width: 220px; display: block; margin: 0 auto; }

.csp-pay-panel {
    display: grid;
    gap: 14px;
    justify-items: center;
    margin: 14px 0;
    padding: 14px;
    border: 1px solid #e5ebf3;
    border-radius: 8px;
    background: linear-gradient(180deg, #f8fbff, #fff);
}

.csp-pay-qrcode {
    width: min(100%, 300px);
    border: 1px solid #dce5f1;
    border-radius: 8px;
    background: #fff;
    padding: 18px;
    text-align: center;
    box-shadow: 0 14px 34px rgba(31, 45, 70, .08);
}

.csp-pay-qrcode img {
    width: 220px;
    height: 220px;
    object-fit: contain;
}

.csp-pay-qrcode span {
    display: block;
    margin-top: 10px;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.csp-payment-poll {
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.csp-pay-link {
    display: block;
    width: 100%;
    border-radius: 8px;
    background: var(--csp-primary);
    color: #fff;
    font-weight: 800;
    text-align: center;
    padding: 11px 14px;
    text-decoration: none;
}

.csp-pay-link:hover { color: #fff; text-decoration: none; }

@media (max-width: 720px) {
    .csp-topbar { padding: 0 14px; }
    .csp-nav { gap: 10px; font-size: 14px; }
    .csp-nav a,
    .csp-nav button { gap: 5px; }
    .csp-nav-icon,
    .csp-nav-icon svg { width: 16px; height: 16px; }
    .csp-brand { gap: 9px; }
    .csp-brand-mark { width: 34px; height: 34px; }
    .csp-shell { width: min(100% - 22px, 1180px); margin-top: 16px; }
    .csp-hero {
        grid-template-columns: 1fr;
        padding: 22px;
        min-height: 0;
        gap: 16px;
    }
    .csp-kicker { margin-bottom: 10px; font-size: 12px; }
    .csp-hero h1 { font-size: 32px; line-height: 1.08; }
    .csp-hero p:not(.csp-kicker) { margin-top: 12px; font-size: 17px; line-height: 1.45; }
    .csp-hero-panel {
        width: 100%;
        padding: 12px 14px;
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 10px;
    }
    .csp-hero-panel span { font-size: 14px; }
    .csp-hero-panel strong { font-size: 34px; margin: 0; text-align: center; }
    .csp-order-list-head {
        grid-template-columns: 1fr;
    }
    .csp-order-list-head b,
    .csp-order-list-head em {
        text-align: left;
    }
    .csp-grid {
        grid-template-columns: repeat(var(--csp-mobile-columns), minmax(0, 1fr));
        gap: 14px;
    }
    .csp-product-btn { height: 326px; grid-template-rows: 190px 78px 58px; }
    .csp-cover { height: 190px; }
    .csp-cover > span { font-size: 48px; }
    .csp-product-body {
        padding: 10px 12px 7px;
        grid-template-rows: 16px 23px 18px;
        gap: 1px;
    }
    .csp-product-meta { line-height: 16px; font-size: 12px; }
    .csp-product strong { font-size: 16px; line-height: 23px; }
    .csp-product small { height: 18px; line-height: 18px; font-size: 12px; }
    .csp-article-card {
        min-height: 124px;
        grid-template-columns: 118px minmax(0, 1fr);
    }
    .csp-article-card-cover { min-height: 124px; font-size: 34px; }
    .csp-article-card-body { padding: 12px; gap: 4px; }
    .csp-article-card strong { font-size: 17px; }
    .csp-article-card small { font-size: 13px; -webkit-line-clamp: 1; }
    .csp-article-card-foot { gap: 8px; flex-wrap: wrap; }
    .csp-article-card-foot b { font-size: 19px; }
    .csp-article-card-foot span { padding: 6px 10px; }
}

@media (max-width: 720px) and (min-width: 420px) {
    .csp-product-btn { height: 320px; grid-template-rows: 184px 78px 58px; }
    .csp-cover { height: 184px; }
}

@media (max-width: 420px) {
    .csp-product-btn { height: 310px; grid-template-rows: 176px 76px 58px; }
    .csp-cover { height: 176px; }
    .csp-product-foot b { font-size: 19px; }
    .csp-article-card {
        grid-template-columns: 104px minmax(0, 1fr);
        min-height: 116px;
    }
    .csp-article-card-cover { min-height: 116px; }
    .csp-article-card-foot em { display: none; }
}

.csp-article-card {
    box-sizing: border-box;
    width: min(680px, 100%) !important;
    height: 132px;
    min-height: 132px;
    max-height: 132px;
    margin: 14px var(--csp-article-card-margin-right, auto) 14px var(--csp-article-card-margin-left, 0);
    display: grid !important;
    grid-template-columns: 132px minmax(0, 1fr) !important;
    align-items: stretch;
    border-color: #dbe5f1;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(31, 45, 70, .07);
    line-height: normal;
    text-decoration: none;
    appearance: none;
}

.csp-article-card.is-align-left {
    margin-left: 0;
    margin-right: auto;
}

.csp-article-card.is-align-center {
    margin-left: auto;
    margin-right: auto;
}

.csp-article-card.is-align-right {
    margin-left: auto;
    margin-right: 0;
}

.csp-article-card-cover {
    width: 132px;
    height: 132px;
    min-height: 0;
    aspect-ratio: 1 / 1;
    font-size: 36px;
}

.csp-article-card-body {
    min-height: 0;
    padding: 11px 14px 12px;
    grid-template-rows: 18px 25px minmax(0, 1fr) 33px;
    gap: 2px;
}

.csp-article-card-meta {
    font-size: 12px;
    line-height: 18px;
}

.csp-article-card strong {
    font-size: 18px;
    line-height: 25px;
}

.csp-article-card small {
    font-size: 13px;
    line-height: 19px;
    -webkit-line-clamp: 1;
}

.csp-article-card-foot {
    gap: 10px;
    align-self: end;
}

.csp-article-card-foot b {
    font-size: 20px;
}

.csp-article-card-foot em {
    font-size: 12px;
}

.csp-article-card-foot span {
    margin-left: auto;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 13px;
}

.csp-article-modal,
.csp-article-modal * {
    box-sizing: border-box;
}

.csp-article-modal {
    z-index: 2147482600;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    color: #0f172a;
}

.csp-article-modal .csp-modal-backdrop {
    background: rgba(15, 23, 42, .62);
    backdrop-filter: blur(2px);
}

.csp-article-modal .csp-modal-card {
    width: min(660px, calc(100vw - 32px));
    max-height: calc(100vh - 42px);
    padding: 28px 32px 32px;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    text-align: left;
    box-shadow: 0 28px 90px rgba(15, 23, 42, .32);
}

.csp-article-modal .csp-close {
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 10px;
    background: #f1f5f9;
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.csp-article-modal .csp-close:hover {
    background: #e8eef7;
}

.csp-article-modal h2 {
    margin: 0 56px 10px 0;
    color: #0f172a;
    font-size: 28px;
    line-height: 1.22;
    font-weight: 900;
    text-align: left;
}

.csp-article-modal .csp-modal-desc {
    margin: 0 0 18px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.65;
    text-align: left;
}

.csp-article-buy-card {
    width: min(720px, calc(100vw - 32px)) !important;
}

.csp-article-buy-shell .csp-modal-desc:not([hidden]) {
    padding: 12px 14px;
    border: 1px solid #e5ebf3;
    border-radius: 8px;
    background: #f8fafc;
}

.csp-article-modal form {
    display: grid;
    gap: 13px;
    margin: 0;
}

.csp-article-modal label {
    display: block;
    margin: 0;
    color: #172033;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 800;
    text-align: left;
}

.csp-article-modal input,
.csp-article-modal select {
    width: 100%;
    height: 48px;
    margin-top: 7px;
    border: 1px solid #d8e0ec;
    border-radius: 8px;
    padding: 0 14px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-weight: 700;
    text-align: left;
    box-shadow: none;
    outline: none;
}

.csp-article-modal input:focus,
.csp-article-modal select:focus {
    border-color: var(--csp-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--csp-primary) 13%, transparent);
}

.csp-article-modal .csp-field-help {
    margin: -4px 0 2px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
    text-align: left;
}

.csp-article-modal .csp-field-title {
    grid-column: 1 / -1;
    margin: 2px 0 0;
    color: #172033;
    font-size: 16px;
    font-weight: 900;
    text-align: left;
}

.csp-article-modal .csp-pay-methods {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.csp-article-modal .csp-pay-option {
    margin: 0;
}

.csp-article-modal .csp-pay-card {
    min-height: 58px;
    padding: 10px 13px;
    border-radius: 8px;
    background: #fff;
}

.csp-article-modal .csp-pay-card img {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
}

.csp-article-modal .csp-pay-card strong {
    min-width: 0;
    color: #0f172a;
    font-size: 15px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.csp-article-modal .csp-total {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 18px;
    align-items: center;
}

.csp-article-modal .csp-total strong {
    color: #0f172a;
    font-size: 22px;
    font-weight: 900;
}

.csp-article-modal .csp-primary {
    height: 48px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 16px;
    line-height: 48px;
}

.csp-article-modal .csp-result {
    margin-top: 14px;
}

.csp-article-category-modal {
    width: min(960px, calc(100vw - 40px)) !important;
    padding: 28px 32px 32px !important;
}

.csp-article-category-modal h2 {
    margin-bottom: 6px;
}

.csp-article-category-products {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    justify-content: stretch;
    align-items: start;
    gap: 16px;
    margin-top: 18px;
}

.csp-article-category-products[data-count="1"] {
    grid-template-columns: minmax(230px, 288px);
    justify-content: start;
}

.csp-article-category-products[data-count="2"] {
    grid-template-columns: repeat(2, minmax(230px, 288px));
    justify-content: start;
}

.csp-article-category-products .csp-article-card {
    width: 100% !important;
    max-width: none;
    height: 332px;
    min-height: 332px;
    max-height: none;
    margin: 0;
    grid-template-columns: 1fr !important;
    grid-template-rows: 168px minmax(0, 1fr);
    border-color: rgba(126, 143, 167, .2);
    box-shadow: 0 14px 34px rgba(31, 45, 70, .06);
}

.csp-article-category-products[data-count="1"] .csp-article-card,
.csp-article-category-products[data-count="2"] .csp-article-card {
    max-width: 288px;
}

.csp-article-category-products .csp-article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 48px rgba(31, 45, 70, .12);
}

.csp-article-category-products .csp-article-card-cover {
    width: 100%;
    height: 168px;
    min-height: 0;
    aspect-ratio: auto;
    font-size: 44px;
}

.csp-article-category-products .csp-article-card-body {
    padding: 12px 14px 14px;
    grid-template-rows: 18px 25px minmax(0, 1fr) 38px;
    gap: 3px;
}

.csp-article-category-products .csp-article-card strong {
    font-size: 18px;
}

.csp-article-category-products .csp-article-card small {
    -webkit-line-clamp: 2;
}

.csp-article-category-products .csp-article-card-foot b {
    font-size: 20px;
}

.csp-article-category-products .csp-article-card-foot span {
    padding: 8px 12px;
}

@media (max-width: 720px) {
    .csp-article-card {
        width: 100% !important;
        height: 118px;
        min-height: 118px;
        max-height: 118px;
        grid-template-columns: 118px minmax(0, 1fr) !important;
    }

    .csp-article-card-cover {
        width: 118px;
        height: 118px;
        font-size: 32px;
    }

    .csp-article-card-body {
        padding: 9px 11px;
        grid-template-rows: 16px 22px minmax(0, 1fr) 30px;
    }

    .csp-article-card-meta { font-size: 12px; line-height: 16px; }
    .csp-article-card strong { font-size: 16px; line-height: 22px; }
    .csp-article-card small { font-size: 12px; line-height: 17px; }
    .csp-article-card-foot { gap: 7px; }
    .csp-article-card-foot b { font-size: 18px; }
    .csp-article-card-foot em { display: none; }
    .csp-article-card-foot span { padding: 6px 9px; font-size: 12px; }

    .csp-article-modal {
        padding: 14px;
    }

    .csp-article-modal .csp-modal-card {
        width: 100% !important;
        max-height: calc(100vh - 28px);
        padding: 22px 18px 20px;
    }

    .csp-article-modal h2 {
        margin-right: 50px;
        font-size: 23px;
    }

    .csp-article-modal .csp-close {
        top: 16px;
        right: 16px;
        width: 38px;
        height: 38px;
        line-height: 1;
    }

    .csp-article-modal .csp-pay-methods {
        grid-template-columns: 1fr;
    }

    .csp-article-category-products {
        grid-template-columns: 1fr;
    }

    .csp-article-category-products[data-count="1"],
    .csp-article-category-products[data-count="2"] {
        grid-template-columns: 1fr;
    }

    .csp-article-category-products .csp-article-card {
        max-width: none;
        height: 300px;
        min-height: 300px;
        grid-template-rows: 150px minmax(0, 1fr);
    }

    .csp-article-category-products .csp-article-card-cover {
        width: 100%;
        height: 150px;
    }
}

@media (max-width: 430px) {
    .csp-article-card {
        height: 108px;
        min-height: 108px;
        max-height: 108px;
        grid-template-columns: 108px minmax(0, 1fr) !important;
    }

    .csp-article-card-cover {
        width: 108px;
        height: 108px;
    }

    .csp-article-card-body {
        grid-template-rows: 15px 21px minmax(0, 1fr) 28px;
        padding: 8px 10px;
    }

    .csp-article-card-foot span {
        padding: 6px 8px;
    }
}

.csp-article-buy-shell .csp-modal-card,
.csp-article-query-shell .csp-modal-card {
    width: min(520px, calc(100vw - 40px)) !important;
    max-height: calc(100vh - 40px);
    padding: 24px !important;
    border-radius: 8px;
}

.csp-article-buy-shell .csp-modal-card.is-payment-stage {
    width: min(560px, calc(100vw - 40px)) !important;
}

.csp-article-buy-shell .csp-close,
.csp-article-query-shell .csp-close {
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 22px;
    line-height: normal;
    box-shadow: none;
}

.csp-article-buy-shell h2,
.csp-article-query-shell h2 {
    margin: 0 40px 8px 0;
    font-size: 24px;
    line-height: 1.25;
}

.csp-article-buy-shell .csp-modal-desc,
.csp-article-query-shell .csp-modal-desc {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.65;
}

.csp-article-buy-shell .csp-modal-desc:not([hidden]) {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.csp-article-buy-shell form,
.csp-article-query-shell form {
    display: block;
    margin: 0;
}

.csp-article-buy-shell label,
.csp-article-query-shell label {
    margin: 13px 0;
    font-size: inherit;
    line-height: normal;
    font-weight: 700;
}

.csp-article-buy-shell input,
.csp-article-buy-shell select,
.csp-article-query-shell input,
.csp-article-query-shell select {
    height: auto;
    margin-top: 7px;
    padding: 11px 12px;
    font: inherit;
    font-weight: inherit;
}

.csp-article-buy-shell .csp-field-help,
.csp-article-query-shell .csp-field-help {
    margin: -5px 0 12px;
    font-size: 13px;
}

.csp-article-buy-shell .csp-pay-methods {
    margin: 13px 0;
    grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
    gap: 10px;
}

.csp-article-buy-shell .csp-field-title {
    margin: 13px 0 9px;
    font-size: inherit;
    font-weight: 800;
}

.csp-article-buy-shell .csp-pay-card {
    min-height: 58px;
    padding: 10px 12px;
}

.csp-article-buy-shell .csp-pay-card img {
    width: 34px;
    height: 34px;
}

.csp-article-buy-shell .csp-pay-card strong {
    font-size: 16px;
}

.csp-article-buy-shell .csp-total {
    margin: 16px 0;
    font-size: 18px;
}

.csp-article-buy-shell .csp-total strong {
    font-size: inherit;
}

.csp-article-buy-shell .csp-primary,
.csp-article-query-shell .csp-primary {
    height: auto;
    padding: 12px 14px;
    font-size: inherit;
    line-height: normal;
}

@media (max-width: 720px) {
    .csp-article-buy-shell,
    .csp-article-query-shell {
        padding: 20px;
    }

    .csp-article-buy-shell .csp-modal-card,
    .csp-article-query-shell .csp-modal-card,
    .csp-article-buy-shell .csp-modal-card.is-payment-stage {
        width: 100% !important;
        max-height: calc(100vh - 40px);
        padding: 24px !important;
    }

    .csp-article-buy-shell .csp-pay-methods {
        grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
    }
}
