:root {
    --ps-red: #ff2442;
    --ps-red-dark: #d91f38;
    --ps-coral: #ff6b81;
    --ps-ink: #15171f;
    --ps-text: #2d3340;
    --ps-muted: #6b7280;
    --ps-line: #ece7e4;
    --ps-page: #fff8f6;
    --ps-soft: #fff1f3;
    --ps-card: #ffffff;
    --ps-amber: #d98524;
    --ps-green: #168064;
    --ps-shadow: 0 18px 50px rgba(33, 24, 22, .08);
    --ps-shadow-hover: 0 24px 70px rgba(33, 24, 22, .13);
}

* { box-sizing: border-box; }
html { min-width: 0; scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 0;
    color: var(--ps-text);
    background: var(--ps-page);
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    font-size: 16px;
    line-height: 1.75;
    letter-spacing: 0;
}

a { color: inherit; text-decoration: none; transition: color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease; }
a:hover { color: var(--ps-red); }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; letter-spacing: 0; }
button, a, .sku-item, .payment-method-card, .address-card, .profile-quick-card { cursor: pointer; }
input, textarea {
    width: 100%;
    border: 1px solid #ded7d3;
    border-radius: 8px;
    background: #fff;
    color: var(--ps-ink);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
input { height: 46px; padding: 0 14px; }
textarea { min-height: 112px; padding: 12px 14px; resize: vertical; }
input:focus, textarea:focus {
    border-color: var(--ps-red);
    box-shadow: 0 0 0 3px rgba(255, 36, 66, .12);
}

.hidden { display: none !important; }
.q-container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 84px 0; background: #fff; }
.section-alt { background: var(--ps-page); }
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ps-red);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.section-kicker::before {
    content: "";
    width: 24px;
    height: 2px;
    background: var(--ps-red);
    border-radius: 2px;
}
.section-title-block { max-width: 740px; margin: 0 auto 36px; text-align: center; }
.section-title-block .section-kicker { justify-content: center; }
.section-title-block h2, .home-title, .section-head h2 {
    margin: 8px 0 10px;
    color: var(--ps-ink);
    font-size: 36px;
    line-height: 1.28;
    font-weight: 800;
}
.section-title-block p, .section-head p { margin: 0; color: var(--ps-muted); }
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}
.view-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--ps-red);
    font-weight: 700;
    white-space: nowrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}
.btn-primary { color: #fff; background: var(--ps-red); box-shadow: 0 12px 28px rgba(255, 36, 66, .24); }
.btn-primary:hover { color: #fff; background: var(--ps-red-dark); transform: translateY(-1px); box-shadow: 0 18px 36px rgba(255, 36, 66, .28); }
.btn-outline { color: var(--ps-red); background: #fff; border-color: rgba(255, 36, 66, .32); }
.btn-outline:hover { background: var(--ps-soft); border-color: var(--ps-red); }
.btn-dark { color: #fff; background: var(--ps-ink); }
.btn-dark:hover { color: #fff; background: #2c2f38; }
.btn-light { color: var(--ps-red); background: #fff; border-color: rgba(255,255,255,.65); }
.btn-small { min-height: 34px; padding: 0 14px; font-size: 14px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 248, 246, .96);
    border-bottom: 1px solid rgba(236, 231, 228, .86);
    box-shadow: 0 8px 26px rgba(33, 24, 22, .05);
}
.topbar { border-bottom: 1px solid rgba(236, 231, 228, .72); background: #fff; color: var(--ps-muted); font-size: 13px; }
.topbar-inner { height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar-links { display: flex; align-items: center; gap: 16px; }
.nav-wrap { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 210px; color: var(--ps-ink); font-weight: 800; font-size: 20px; }
.brand img { width: 42px; height: 42px; object-fit: contain; border-radius: 8px; background: #fff; }
.main-nav { flex: 1; display: flex; align-items: center; justify-content: center; gap: 28px; }
.main-nav a { color: #333743; font-size: 15px; font-weight: 700; }
.main-nav a:hover { color: var(--ps-red); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-consult {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    border-radius: 8px;
    color: #fff;
    background: var(--ps-ink);
    font-weight: 700;
}
.nav-consult:hover { color: #fff; background: var(--ps-red); }
.icon-link, .mobile-menu {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(45, 51, 64, .12);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ps-ink);
    background: #fff;
}
.header-icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon-link:hover, .mobile-menu:hover { color: var(--ps-red); border-color: rgba(255, 36, 66, .35); background: var(--ps-soft); }
.mobile-menu { display: none; padding: 0; }

.hero-xhs-legacy {
    position: relative;
    overflow: hidden;
    min-height: 720px;
    background:
        radial-gradient(circle at 85% 8%, rgba(255, 107, 129, .16), transparent 30%),
        linear-gradient(135deg, #fffaf8 0%, #fff1f3 100%);
}
.hero-bg-slides { position: absolute; inset: 0; pointer-events: none; }
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-size: cover;
    background-position: center;
    transition: opacity .7s ease;
}
.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 248, 246, .86);
}
.hero-slide.is-active { opacity: 1; }
.hero-layout {
    position: relative;
    z-index: 2;
    min-height: 720px;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(420px, .86fr);
    align-items: center;
    gap: 64px;
    padding: 68px 0;
}
.hero-copy h1 {
    margin: 12px 0 18px;
    color: var(--ps-ink);
    font-size: 58px;
    line-height: 1.12;
    font-weight: 900;
    max-width: 740px;
}
.hero-copy p { margin: 0; max-width: 650px; color: #515866; font-size: 18px; line-height: 1.9; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.hero-tags span, .service-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--ps-red);
    background: #fff;
    border: 1px solid rgba(255, 36, 66, .16);
    font-size: 13px;
    font-weight: 700;
}
.hero-dashboard {
    position: relative;
    min-height: 520px;
}
.note-card, .data-panel, .diagnosis-card {
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(236, 231, 228, .92);
    border-radius: 18px;
    box-shadow: var(--ps-shadow);
}
.note-card-main {
    width: min(390px, 100%);
    margin-left: auto;
    padding: 18px;
}
.note-cover {
    height: 220px;
    border-radius: 14px;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(21, 23, 31, .05), rgba(21, 23, 31, .72)),
        linear-gradient(135deg, #ff2442, #d98524);
}
.note-cover span { font-size: 22px; font-weight: 900; }
.note-card h3 { margin: 16px 2px 6px; color: var(--ps-ink); font-size: 20px; line-height: 1.4; }
.note-card p, .data-panel p, .diagnosis-card p { margin: 0; color: var(--ps-muted); font-size: 14px; }
.note-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.note-stats span {
    padding: 10px;
    border-radius: 12px;
    background: var(--ps-page);
    color: var(--ps-muted);
    font-size: 13px;
}
.note-stats strong { display: block; color: var(--ps-red); font-size: 20px; line-height: 1.2; }
.data-panel {
    position: absolute;
    left: 0;
    bottom: 44px;
    width: 286px;
    padding: 18px;
}
.data-panel-head { display: flex; justify-content: space-between; align-items: center; color: var(--ps-muted); font-weight: 700; }
.data-panel-head strong { color: var(--ps-green); font-size: 26px; }
.chart-bars { height: 130px; display: flex; align-items: end; gap: 12px; padding: 18px 4px 12px; }
.chart-bars span {
    flex: 1;
    min-width: 20px;
    border-radius: 8px 8px 2px 2px;
    background: linear-gradient(180deg, var(--ps-coral), var(--ps-red));
}
.diagnosis-card {
    position: absolute;
    right: 18px;
    top: 40px;
    width: 260px;
    padding: 18px;
}
.diagnosis-card span { color: var(--ps-red); font-weight: 800; font-size: 13px; }
.diagnosis-card strong { display: block; margin: 8px 0 6px; color: var(--ps-ink); font-size: 22px; line-height: 1.3; }
.hero-arrow {
    position: absolute;
    z-index: 4;
    bottom: 46px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,36,66,.18);
    border-radius: 50%;
    background: #fff;
    color: var(--ps-red);
    pointer-events: auto;
}
.hero-prev { right: 96px; }
.hero-next { right: 48px; }
.hero-dots {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 56px;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}
.hero-dot {
    width: 26px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: rgba(255,36,66,.24);
}
.hero-dot.is-active { background: var(--ps-red); }

.advantage-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.service-capability-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.advantage {
    background: #fff;
    border: 1px solid var(--ps-line);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(33,24,22,.05);
}
.advantage:hover { transform: translateY(-2px); box-shadow: var(--ps-shadow); }
.advantage-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--ps-red);
    background: var(--ps-soft);
    font-size: 24px;
}
.advantage h3 { margin: 18px 0 8px; color: var(--ps-ink); font-size: 20px; line-height: 1.35; }
.advantage p { margin: 0; color: var(--ps-muted); font-size: 14px; }

.process-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.process-steps article {
    position: relative;
    min-height: 210px;
    padding: 24px 20px;
    border: 1px solid var(--ps-line);
    border-radius: 14px;
    background: #fff;
}
.process-steps article::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 0;
    height: 3px;
    background: var(--ps-red);
    border-radius: 3px 3px 0 0;
}
.process-steps span { color: rgba(255,36,66,.25); font-size: 38px; font-weight: 900; line-height: 1; }
.process-steps h3 { margin: 20px 0 8px; color: var(--ps-ink); font-size: 18px; }
.process-steps p { margin: 0; color: var(--ps-muted); font-size: 14px; }

.result-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 44px; align-items: center; }
.result-copy h2 { margin: 10px 0 14px; color: var(--ps-ink); font-size: 38px; line-height: 1.28; font-weight: 900; }
.result-copy p { margin: 0; color: var(--ps-muted); }
.result-metrics { margin-top: 28px; display: grid; gap: 12px; }
.result-metrics span {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--ps-page);
    color: var(--ps-muted);
}
.result-metrics strong { color: var(--ps-red); font-size: 26px; }
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.case-card, .article-card, .help-article {
    display: block;
    background: #fff;
    border: 1px solid var(--ps-line);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(33,24,22,.05);
}
.case-card:hover, .article-card:hover, .help-article:hover, .service-card:hover { transform: translateY(-2px); box-shadow: var(--ps-shadow-hover); }
.case-cover {
    height: 140px;
    margin: -8px -8px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #15171f, #ff2442);
    font-weight: 900;
    letter-spacing: .08em;
}
.case-cover img { width: 100%; height: 100%; object-fit: cover; }
.case-card strong, .article-card h3, .help-article h3 { display: block; margin: 0 0 8px; color: var(--ps-ink); font-size: 18px; line-height: 1.45; }
.case-card p, .article-card p, .help-article p { margin: 0; color: var(--ps-muted); font-size: 14px; }
.case-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 16px; color: var(--ps-red); font-weight: 700; }
.article-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.article-kicker { display: inline-flex; margin-bottom: 12px; color: var(--ps-red); font-size: 12px; font-weight: 800; }

.search-content-page {
    padding: 46px 0 78px;
    background: var(--ps-page);
}
.content-search-panel {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(420px, 1fr);
    gap: 28px;
    align-items: end;
    padding: 30px;
    border: 1px solid var(--ps-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(33,24,22,.05);
}
.content-search-copy h2 {
    margin: 8px 0 8px;
    color: var(--ps-ink);
    font-size: 28px;
    line-height: 1.3;
    font-weight: 900;
}
.content-search-copy p { margin: 0; color: var(--ps-muted); }
.content-search-form {
    padding: 10px;
    border: 1px solid var(--ps-line);
    border-radius: 12px;
    background: var(--ps-page);
}
.content-search-form input { border-color: #fff; background: #fff; }
.content-search-form .btn { min-width: 108px; }
.content-search-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin: 30px 0 16px;
    color: var(--ps-muted);
}
.content-search-summary span {
    color: var(--ps-ink);
    font-size: 20px;
    font-weight: 900;
}
.content-search-summary small { font-size: 14px; }
.content-search-results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.content-search-results .article-card {
    min-height: 190px;
    padding: 24px;
}
.content-search-results .article-card h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.content-search-results .article-card p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-band {
    padding: 26px 0;
    background: var(--ps-ink);
}
.search-box {
    display: flex;
    align-items: center;
    gap: 14px;
}
.search-label { color: #fff; font-weight: 800; white-space: nowrap; }
.search-box input { flex: 1; min-width: 0; border-color: transparent; }

.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.service-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: #fff;
    border: 1px solid var(--ps-line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(33,24,22,.05);
}
.service-cover { position: relative; display: block; height: 190px; background: var(--ps-soft); overflow: hidden; }
.service-cover img { width: 100%; height: 100%; object-fit: cover; }
.service-cover-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    min-height: 28px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    color: #fff;
    background: var(--ps-red);
    font-size: 12px;
    font-weight: 800;
}
.service-body { flex: 1; display: flex; flex-direction: column; padding: 20px; }
.service-kicker { color: var(--ps-red); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.service-title {
    margin: 8px 0;
    color: var(--ps-ink);
    font-size: 19px;
    line-height: 1.42;
    font-weight: 800;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.service-body p {
    margin: 0;
    color: var(--ps-muted);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.service-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.service-tags span { min-height: 26px; padding: 0 10px; font-size: 12px; }
.service-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; }
.price, .shop-search-price { color: var(--ps-red); font-size: 22px; line-height: 1.2; font-weight: 900; }
.service-hot { color: var(--ps-muted); font-size: 13px; }

.page-hero {
    padding: 88px 0;
    background:
        linear-gradient(135deg, rgba(255,36,66,.10), rgba(255,248,246,1)),
        var(--ps-page);
}
.page-hero-compact { padding: 72px 0 56px; }
.page-hero h1 { margin: 8px 0 10px; color: var(--ps-ink); font-size: 42px; line-height: 1.25; font-weight: 900; }
.page-hero p { margin: 0; max-width: 680px; color: var(--ps-muted); }
.shop-breadcrumb, .help-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 24px 0;
    color: var(--ps-muted);
    font-size: 14px;
}
.shop-breadcrumb strong, .help-breadcrumb strong { color: var(--ps-ink); }
.shop-list-page, .shop-search-page, .help-page, .profile-page, .shop-cart-page, .checkout-page, .payment-page, .order-page, .address-page, .settings-page, .order-detail-page {
    background: var(--ps-page);
    min-height: 58vh;
    padding-bottom: 72px;
}
.shop-list-head, .shop-search-head, .shop-cart-head, .order-list-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 24px;
}
.shop-list-head h1, .shop-search-head h1, .shop-cart-head h1, .order-list-head h1, .checkout-title, .settings-title {
    margin: 0 0 8px;
    color: var(--ps-ink);
    font-size: 34px;
    line-height: 1.3;
    font-weight: 900;
}
.shop-list-head p, .shop-search-head p, .shop-cart-head p, .order-list-head p { margin: 0; color: var(--ps-muted); }
.shop-category-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.shop-category-tabs a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid var(--ps-line);
    border-radius: 8px;
    background: #fff;
    color: var(--ps-text);
    font-weight: 700;
}
.shop-category-tabs a.active, .shop-category-tabs a:hover { color: #fff; background: var(--ps-red); border-color: var(--ps-red); }
.shop-list-count, .shop-search-summary {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 18px;
    color: var(--ps-muted);
}
.shop-service-grid { margin-bottom: 24px; }

.shop-detail-card {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(360px, .72fr);
    gap: 28px;
    align-items: stretch;
}
.shop-detail-media, .shop-detail-info, .shop-detail-tabs, .panel, .checkout-card, .checkout-summary, .shop-cart-panel, .summary-bar, .profile-card, .profile-panel, .settings-panel, .order-tabs-panel {
    background: #fff;
    border: 1px solid var(--ps-line);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(33,24,22,.05);
}
.shop-detail-media { position: relative; min-height: 520px; overflow: hidden; }
.shop-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-note-caption {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    padding: 18px;
    border-radius: 12px;
    color: #fff;
    background: rgba(21,23,31,.82);
}
.detail-note-caption span { display: block; color: #ffb1bd; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.detail-note-caption strong { display: block; margin-top: 5px; font-size: 20px; }
.shop-detail-info { padding: 30px; }
.shop-detail-info h1 { margin: 8px 0 14px; color: var(--ps-ink); font-size: 34px; line-height: 1.3; font-weight: 900; }
.shop-detail-info p { color: var(--ps-muted); }
.shop-detail-meta { display: flex; flex-wrap: wrap; gap: 10px 16px; color: var(--ps-muted); font-size: 14px; }
.shop-price-row {
    margin: 24px 0;
    padding: 18px;
    border-radius: 12px;
    background: var(--ps-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.shop-price-row span { color: var(--ps-muted); font-weight: 700; }
.sku-list { display: flex; flex-wrap: wrap; gap: 10px; }
.sku-item {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--ps-line);
    border-radius: 8px;
    background: #fff;
}
.sku-item.active, .sku-item:hover { color: var(--ps-red); border-color: var(--ps-red); background: var(--ps-soft); }
.sku-item.disabled { opacity: .45; cursor: not-allowed; }
.qty-stepper { display: inline-flex; height: 40px; border: 1px solid var(--ps-line); border-radius: 8px; overflow: hidden; background: #fff; }
.qty-stepper button { width: 40px; border: 0; background: #fff; color: var(--ps-ink); }
.qty-stepper input { width: 64px; height: 40px; padding: 0; border: 0; border-left: 1px solid var(--ps-line); border-right: 1px solid var(--ps-line); text-align: center; border-radius: 0; }
.shop-detail-actions { margin-top: 26px; }
.shop-detail-tabs { margin-top: 34px; overflow: hidden; margin-bottom: 84px;}
.shop-detail-tab-head {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--ps-line);
    padding: 0 28px;
    background: #fff;
}
.shop-detail-tab-head span {
    position: relative;
    padding: 20px 0 18px;
    font-weight: 900;
    color: var(--ps-muted);
}
.shop-detail-tab-head span.active { color: var(--ps-red); }
.shop-detail-tab-head span.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--ps-red);
}
.shop-detail-content { padding: 38px 34px 42px; }
.content-body { color: #303643; line-height: 1.9; }
.content-body img { height: auto; border-radius: 10px; }
.content-body h1, .content-body h2, .content-body h3 { color: var(--ps-ink); line-height: 1.35; }

.help-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 20px; }
.help-nav-panel, .sidebar-diagnosis {
    background: #fff;
    border: 1px solid var(--ps-line);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(33,24,22,.05);
}
.help-nav-panel h2 { margin: 0 0 16px; color: var(--ps-ink); font-size: 20px; }
.help-nav { display: grid; gap: 8px; }
.help-nav a { padding: 10px 12px; border-radius: 8px; color: var(--ps-text); font-weight: 700; }
.help-nav a.active, .help-nav a:hover { color: var(--ps-red); background: var(--ps-soft); }
.sidebar-diagnosis { margin-top: 16px; background: var(--ps-ink); color: #fff; }
.sidebar-diagnosis span { color: #ffb1bd; font-weight: 800; }
.sidebar-diagnosis p { color: rgba(255,255,255,.76); font-size: 14px; }
.sidebar-diagnosis a { color: #fff; font-weight: 800; }
.help-content { padding: 26px; }
.help-article-list { display: grid; gap: 14px; }
.help-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; color: var(--ps-muted); font-size: 13px; }
.help-detail-head h1 { margin: 8px 0 12px; color: var(--ps-ink); font-size: 34px; line-height: 1.35; font-weight: 900; }
.help-detail-body { padding-top: 20px; border-top: 1px solid var(--ps-line); }
.help-detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--ps-line); }

.shop-search-head { display: block; padding: 30px; border: 1px solid var(--ps-line); border-radius: 14px; background: #fff; box-shadow: 0 10px 30px rgba(33,24,22,.05); }
.shop-search-form {
    width: 100%;
    margin-top: 20px;
    padding: 10px;
    border: 1px solid var(--ps-line);
    border-radius: 12px;
    background: var(--ps-page);
}
.shop-search-form input { border-color: #fff; background: #fff; }
.shop-search-form .btn { min-width: 108px; }
.shop-search-form .search-label { color: var(--ps-ink); }
.shop-search-results { display: grid; gap: 16px; }
.shop-search-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 20px;
    padding: 16px;
    border: 1px solid var(--ps-line);
    border-radius: 14px;
    background: #fff;
}
.shop-search-cover { height: 136px; border-radius: 12px; overflow: hidden; background: var(--ps-soft); }
.shop-search-cover img { width: 100%; height: 100%; object-fit: cover; }
.shop-search-body { display: flex; flex-direction: column; min-width: 0; }
.shop-search-body strong { color: var(--ps-ink); font-size: 20px; line-height: 1.4; }
.shop-search-desc { margin-top: 6px; color: var(--ps-muted); }
.shop-search-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; color: var(--ps-muted); font-size: 13px; }
.shop-search-foot { margin-top: auto; }
.shop-search-empty { padding: 48px 24px; text-align: center; border-radius: 14px; background: #fff; border: 1px solid var(--ps-line); }
.shop-search-empty-icon { color: var(--ps-red); font-size: 42px; }
.shop-search-empty p { margin: 8px 0; color: var(--ps-ink); font-size: 22px; font-weight: 800; }
.shop-search-empty span { display: block; margin-bottom: 20px; color: var(--ps-muted); }

.auth-shell {
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 24px;
    background:
        radial-gradient(circle at 18% 10%, rgba(255, 36, 66, .10), transparent 28%),
        var(--ps-page);
}
.auth-card { width: min(460px, 100%); padding: 34px; }
.auth-card h1 { margin: 0 0 8px; color: var(--ps-ink); font-size: 30px; font-weight: 900; }
.form-row { margin-top: 16px; }
.form-row label { display: block; margin-bottom: 7px; color: var(--ps-ink); font-weight: 800; }
.form-actions, .address-modal-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 22px; }
.cart-sub, .auth-sub { color: var(--ps-muted); font-size: 14px; }
.check-row { display: flex; gap: 8px; align-items: flex-start; margin-top: 16px; color: var(--ps-muted); font-size: 14px; }
.check-row input { width: 16px; height: 16px; margin-top: 5px; }
.code-input-row, .address-region-grid { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.address-region-grid { grid-template-columns: repeat(3, 1fr); }

.shop-cart-panel { overflow-x: auto; }
.cart-table-head, .cart-row {
    min-width: 780px;
    display: grid;
    grid-template-columns: 70px minmax(240px, 1.4fr) .7fr .8fr .8fr 90px;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
}
.cart-table-head { color: var(--ps-muted); font-weight: 800; border-bottom: 1px solid var(--ps-line); }
.cart-row { border-bottom: 1px solid var(--ps-line); background: #fff; }
.cart-row:last-child { border-bottom: 0; }
.cart-product { display: flex; gap: 12px; align-items: center; }
.cart-product img { width: 72px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--ps-soft); }
.cart-title { color: var(--ps-ink); font-weight: 800; }
.cart-price, .cart-subtotal { color: var(--ps-red); font-weight: 900; }
.summary-bar {
    margin-top: 18px;
    padding: 18px 22px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
}
.summary-label { color: var(--ps-muted); font-weight: 800; }
.summary-bar strong { color: var(--ps-red); font-size: 26px; }

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.checkout-main { display: grid; gap: 18px; }
.checkout-card, .checkout-summary { padding: 24px; }
.checkout-card-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.checkout-card-head h2, .checkout-summary h2, .settings-panel h2 { margin: 0; color: var(--ps-ink); font-size: 21px; font-weight: 900; }
.checkout-card-head-bordered { padding-bottom: 14px; border-bottom: 1px solid var(--ps-line); }
.checkout-manage-link { color: var(--ps-red); font-weight: 800; }
.checkout-address-list, .checkout-items { display: grid; gap: 12px; }
.checkout-address, .checkout-item, .address-card, .order-card, .payment-method-card {
    border: 1px solid var(--ps-line);
    border-radius: 12px;
    background: #fff;
}
.checkout-address { padding: 16px; }
.checkout-address.active { border-color: var(--ps-red); background: var(--ps-soft); }
.checkout-address-card {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    border: 1px solid var(--ps-line);
    border-radius: 12px;
    background: #fff;
}
.checkout-address-card.active { border-color: var(--ps-red); background: var(--ps-soft); }
.checkout-address-card input { width: 16px; height: 16px; margin-top: 6px; }
.checkout-address-person { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; color: var(--ps-ink); }
.checkout-address-person strong { font-weight: 900; }
.checkout-address-person em {
    padding: 2px 8px;
    border-radius: 999px;
    color: var(--ps-red);
    background: #fff;
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}
.checkout-address-body p { margin: 6px 0 0; color: var(--ps-muted); font-size: 14px; }
.checkout-product-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--ps-line);
}
.checkout-product-row:last-child { border-bottom: 0; }
.checkout-product-row img { width: 72px; height: 58px; object-fit: cover; border-radius: 8px; background: var(--ps-soft); }
.checkout-product-info h3 { margin: 0 0 4px; color: var(--ps-ink); font-size: 16px; font-weight: 900; line-height: 1.4; }
.checkout-product-info p, .checkout-product-price small { margin: 0; color: var(--ps-muted); font-size: 13px; }
.checkout-product-price { display: grid; justify-items: end; color: var(--ps-red); font-weight: 900; }
.checkout-product-row > strong { color: var(--ps-red); font-size: 18px; }
.checkout-empty, .cart-empty, .order-empty, .address-empty, .empty-state {
    padding: 34px 22px;
    border: 1px dashed rgba(255,36,66,.26);
    border-radius: 12px;
    background: var(--ps-page);
    text-align: center;
    color: var(--ps-muted);
}
.checkout-selected-address {
    margin-top: 16px;
    padding: 14px;
    border-radius: 10px;
    background: var(--ps-page);
    color: var(--ps-muted);
    font-size: 14px;
}
.checkout-selected-label { color: var(--ps-red); font-weight: 900; font-size: 12px; }
.checkout-selected-address strong { display: block; margin-top: 4px; color: var(--ps-ink); }
.checkout-summary-lines { display: grid; gap: 10px; }
.checkout-summary-line { display: flex; justify-content: space-between; color: var(--ps-muted); }
.checkout-summary-line strong { color: var(--ps-ink); }
.checkout-summary-line.total { padding-top: 12px; border-top: 1px solid var(--ps-line); font-size: 18px; }
.checkout-summary-line.total strong { color: var(--ps-red); font-size: 24px; }
.checkout-summary .btn { width: 100%; margin-top: 20px; }
.checkout-agreement, .payment-agreement { color: var(--ps-muted); font-size: 13px; text-align: center; }
.checkout-remark { margin-top: 20px; }
.payment-method-list { display: grid; gap: 12px; }
.payment-method-card { display: flex; align-items: center; gap: 14px; padding: 16px; }
.payment-method-card.active { border-color: var(--ps-red); background: var(--ps-soft); }
.payment-method-card input { width: 16px; height: 16px; }
.payment-method-icon { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--ps-red); background: #fff; font-size: 22px; }
.payment-method-copy strong { display: block; color: var(--ps-ink); }
.payment-method-copy small { color: var(--ps-muted); }
.payment-info-list { display: grid; gap: 12px; }
.payment-info-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--ps-line);
    border-radius: 12px;
    background: var(--ps-page);
}
.payment-info-row i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--ps-red);
    background: #fff;
    font-size: 22px;
}
.payment-info-row span { display: block; color: var(--ps-muted); font-size: 13px; }
.payment-info-row strong { display: block; color: var(--ps-ink); line-height: 1.45; word-break: break-word; }

.profile-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.profile-card, .profile-panel { padding: 24px; }
.profile-avatar {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--ps-red);
    font-size: 34px;
    font-weight: 900;
}
.profile-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.profile-card h1 { margin: 18px 0 4px; color: var(--ps-ink); font-size: 24px; }
.profile-card .btn { width: 100%; margin-top: 12px; }
.profile-main { display: grid; gap: 18px; }
.profile-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.profile-panel-head h2 { margin: 0; color: var(--ps-ink); font-size: 22px; font-weight: 900; }
.profile-quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.profile-quick-card { padding: 18px; border: 1px solid var(--ps-line); border-radius: 12px; background: var(--ps-page); }
.profile-quick-icon { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; color: var(--ps-red); background: #fff; font-size: 22px; }
.profile-quick-card strong { display: block; margin-top: 12px; color: var(--ps-ink); }
.profile-quick-card small, .profile-empty-orders { color: var(--ps-muted); }

.address-page-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 22px; }
.address-page-head h1 { margin: 0; color: var(--ps-ink); font-size: 34px; font-weight: 900; }
.address-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.address-card { padding: 20px; }
.address-default-tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    margin-bottom: 12px;
    border-radius: 999px;
    color: var(--ps-red);
    background: var(--ps-soft);
    font-size: 12px;
    font-weight: 900;
}
.address-person { display: flex; justify-content: space-between; gap: 12px; color: var(--ps-ink); font-weight: 800; }
.address-card-body p { color: var(--ps-muted); margin: 8px 0 0; }
.address-card-actions, .address-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.address-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 24px; }
.address-modal-backdrop { position: absolute; inset: 0; background: rgba(21,23,31,.45); }
.address-modal-dialog { position: relative; width: min(620px, 100%); max-height: 92vh; overflow: auto; background: #fff; border-radius: 14px; padding: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.22); }
.address-modal-dialog h2 { margin: 0 0 14px; color: var(--ps-ink); }
.form-required { color: var(--ps-red); }

.order-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 14px; }
.order-tabs a { white-space: nowrap; padding: 9px 14px; border-radius: 8px; color: var(--ps-text); font-weight: 800; }
.order-tabs a.active, .order-tabs a:hover { color: var(--ps-red); background: var(--ps-soft); }
.order-list-stack { display: grid; gap: 16px; margin-top: 18px; }
.order-card { padding: 20px; }
.order-head, .order-foot { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.order-meta-line { display: flex; flex-wrap: wrap; gap: 12px; color: var(--ps-muted); font-size: 14px; }
.tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f2f2f2;
    color: var(--ps-muted);
    font-size: 12px;
    font-weight: 800;
}
.tag-primary { color: var(--ps-red); background: var(--ps-soft); }
.tag-warning { color: var(--ps-amber); background: #fff2dd; }
.tag-success { color: var(--ps-green); background: #e9f7f2; }
.order-items { display: grid; gap: 10px; margin: 18px 0; }
.order-item { display: flex; gap: 12px; align-items: center; }
.order-item img { width: 72px; height: 56px; object-fit: cover; border-radius: 8px; }
.order-total strong { color: var(--ps-red); font-size: 20px; }
.order-detail-shell, .payment-result-card { background: #fff; border: 1px solid var(--ps-line); border-radius: 14px; padding: 28px; box-shadow: 0 10px 30px rgba(33,24,22,.05); }
.order-detail-loading, .payment-loading { color: var(--ps-muted); text-align: center; padding: 34px; }
.order-detail-hero { margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--ps-line); }
.order-detail-title { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.order-detail-title h1 { margin: 0; color: var(--ps-ink); font-size: 32px; font-weight: 900; }
.order-detail-no { margin-top: 8px; color: var(--ps-muted); }
.order-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.order-detail-main, .order-detail-side { display: grid; gap: 16px; }
.order-detail-card { padding: 20px; border: 1px solid var(--ps-line); border-radius: 12px; background: #fff; }
.order-detail-card h2, .order-detail-card-head h2 {
    margin: 0 0 16px;
    color: var(--ps-ink);
    font-size: 20px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 10px;
}
.order-detail-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--ps-red);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.order-timeline { display: grid; gap: 0; }
.order-timeline-item { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding-bottom: 18px; }
.order-timeline-item::before { content: ""; position: absolute; left: 11px; top: 20px; bottom: 0; width: 2px; background: var(--ps-line); }
.order-timeline-item.is-last::before { display: none; }
.order-timeline-marker span { width: 22px; height: 22px; display: block; border-radius: 50%; border: 5px solid #fff; background: #c8c8c8; box-shadow: 0 0 0 1px var(--ps-line); }
.order-timeline-item.is-done .order-timeline-marker span { background: var(--ps-red); box-shadow: 0 0 0 1px rgba(255,36,66,.28); }
.order-timeline-copy strong { color: var(--ps-ink); }
.order-timeline-copy p { margin: 3px 0 0; color: var(--ps-muted); font-size: 13px; }
.order-detail-product {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--ps-line);
}
.order-detail-product:last-child { border-bottom: 0; }
.order-detail-product img { width: 76px; height: 60px; border-radius: 8px; object-fit: cover; background: var(--ps-soft); }
.order-detail-product-info h3 { margin: 0 0 4px; color: var(--ps-ink); font-size: 16px; font-weight: 900; }
.order-detail-product-info p, .order-detail-product-price small { margin: 0; color: var(--ps-muted); font-size: 13px; }
.order-detail-product-price { display: grid; justify-items: end; color: var(--ps-red); font-weight: 900; }
.order-detail-product > strong { color: var(--ps-red); }
.order-address strong { color: var(--ps-ink); }
.order-address p, .order-delivery-box p { margin: 6px 0 0; color: var(--ps-muted); }
.order-info-list, .order-cost-list { display: grid; gap: 10px; }
.order-info-row { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; align-items: center; }
.order-info-row span { color: var(--ps-muted); font-size: 13px; }
.order-info-row strong { display: block; color: var(--ps-ink); word-break: break-word; }
.order-cost-list > div { display: flex; justify-content: space-between; gap: 12px; color: var(--ps-muted); }
.order-cost-list strong { color: var(--ps-ink); }
.order-cost-total { padding-top: 12px; border-top: 1px solid var(--ps-line); }
.order-cost-total strong { color: var(--ps-red); font-size: 22px; }
.order-detail-actions { display: grid; gap: 10px; }
.order-detail-actions .btn { width: 100%; }
.payment-result-card { max-width: 620px; margin: 0 auto; text-align: center; }
.payment-result-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    background: var(--ps-soft);
    color: var(--ps-red);
}
.payment-result-icon.success { color: var(--ps-green); background: #e9f7f2; }
.payment-result-icon.error { color: var(--ps-red); }
.payment-result-icon.pending { color: var(--ps-amber); background: #fff2dd; }
.payment-result-card h1 { margin: 0 0 10px; color: var(--ps-ink); font-size: 30px; font-weight: 900; }
.payment-result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.settings-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.settings-panel { padding: 24px; }

.site-footer { background: #15171f; color: rgba(255,255,255,.74); }
.footer-cta {
    transform: translateY(-36px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 30px;
    border-radius: 16px;
    background: var(--ps-red);
    color: #fff;
    box-shadow: 0 24px 70px rgba(255,36,66,.28);
}
.footer-cta .section-kicker { color: #fff; }
.footer-cta .section-kicker::before { background: #fff; }
.footer-cta h3 { margin: 6px 0 8px; color: #fff; font-size: 28px; line-height: 1.35; }
.footer-cta p { margin: 0; color: rgba(255,255,255,.82); }
.footer-grid { display: grid; grid-template-columns: 1.45fr .75fr .75fr 1fr; gap: 34px; padding: 28px 0 48px; }
.footer-kicker { color: #ffb1bd; font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.footer-grid h3 { margin: 8px 0 10px; color: #fff; font-size: 26px; }
.footer-grid h4 { margin: 0 0 14px; color: #fff; font-size: 17px; }
.footer-grid a, .footer-grid p { display: block; margin: 8px 0; color: rgba(255,255,255,.72); }
.footer-grid a:hover { color: #fff; }
.footer-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.footer-trust span { padding: 6px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: rgba(255,255,255,.88); font-size: 12px; }
.footer-bottom { padding: 18px 24px; text-align: center; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.58); font-size: 13px; }
.footer-bottom a { color: rgba(255,255,255,.72); display: inline; }

.pagination {
    width: 100%;
    margin-top: 30px;
    padding: 4px 0 10px;
    overflow-x: auto;
    overflow-y: hidden;
    text-align: center;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}
.pagination::-webkit-scrollbar { height: 6px; }
.pagination::-webkit-scrollbar-thumb { background: rgba(255,36,66,.22); border-radius: 999px; }
.pagination ul {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: max-content;
    margin: 0;
    padding: 0;
    list-style: none;
    vertical-align: top;
}
.pagination li {
    display: inline-flex;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}
.pagination a, .pagination span {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    margin: 0 4px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--ps-line);
    background: #fff;
    color: var(--ps-text);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(33,24,22,.04);
}
.pagination li a, .pagination li span { margin: 0; }
.pagination a:hover {
    color: var(--ps-red);
    border-color: rgba(255,36,66,.34);
    background: var(--ps-soft);
}
.pagination .current,
.pagination .active,
.pagination span.active,
.pagination li.active a,
.pagination li.active span {
    color: #fff;
    background: var(--ps-red);
    border-color: var(--ps-red);
    box-shadow: 0 10px 24px rgba(255,36,66,.18);
}
.pagination .disabled,
.pagination li.disabled a,
.pagination li.disabled span {
    color: #b8b0ad;
    background: #f7f2f0;
    border-color: var(--ps-line);
    box-shadow: none;
    cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media (max-width: 1100px) {
    .hero-layout { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
    .hero-xhs-legacy, .hero-layout { min-height: auto; }
    .hero-dashboard { min-height: 460px; }
    .advantage-grid, .service-capability-grid, .service-grid, .article-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .content-search-panel { grid-template-columns: 1fr; align-items: start; }
    .content-search-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .result-layout, .shop-detail-card, .checkout-layout, .profile-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .topbar { display: none; }
    .nav-wrap { min-height: 64px; }
    .brand { min-width: 0; font-size: 18px; }
    .main-nav {
        position: absolute;
        left: 24px;
        right: 24px;
        top: 66px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px;
        border: 1px solid var(--ps-line);
        border-radius: 12px;
        background: #fff;
        box-shadow: var(--ps-shadow);
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px 10px; border-radius: 8px; }
    .main-nav a:hover { background: var(--ps-soft); }
    .mobile-menu { display: inline-flex; }
    .nav-consult { display: none; }
    .hero-copy h1 { font-size: 42px; }
    .shop-list-head { display: block; }
    .shop-category-tabs { justify-content: flex-start; margin-top: 18px; }
    .case-grid, .address-grid, .settings-stack { grid-template-columns: 1fr; }
    .footer-cta { transform: none; margin-top: 0; border-radius: 0; width: 100%; }
    .site-footer { padding-top: 0; }
}

@media (max-width: 640px) {
    .q-container { width: min(100% - 32px, 1200px); }
    .section { padding: 52px 0; }
    .section-head { display: block; }
    .section-title-block h2, .home-title, .section-head h2, .result-copy h2 { font-size: 28px; }
    .hero-layout { padding: 42px 0 58px; }
    .hero-copy h1 { font-size: 34px; line-height: 1.18; }
    .hero-copy p { font-size: 16px; }
    .hero-actions, .form-actions, .footer-cta { flex-direction: column; align-items: stretch; }
    .hero-dashboard { min-height: 0; display: grid; gap: 14px; }
    .note-card-main, .data-panel, .diagnosis-card { position: static; width: 100%; margin: 0; }
    .note-cover { height: 170px; }
    .hero-arrow, .hero-dots { display: none; }
    .advantage-grid, .service-capability-grid, .service-grid, .article-list, .process-steps, .profile-quick-grid { grid-template-columns: 1fr; }
    .content-search-panel { padding: 22px; }
    .content-search-copy h2 { font-size: 24px; }
    .content-search-results { grid-template-columns: 1fr; }
    .content-search-summary { display: block; }
    .content-search-summary small { display: block; margin-top: 4px; }
    .pagination { text-align: left; margin-left: -2px; margin-right: -2px; }
    .pagination ul { justify-content: flex-start; }
    .pagination a, .pagination span { min-width: 34px; height: 34px; padding: 0 10px; font-size: 13px; }
    .search-box { flex-direction: column; align-items: stretch; }
    .search-label { color: #fff; }
    .shop-search-card { grid-template-columns: 1fr; }
    .shop-search-cover { height: 190px; }
    .shop-detail-media { min-height: 300px; }
    .shop-detail-info, .shop-detail-content, .help-content, .checkout-card, .checkout-summary, .auth-card { padding: 22px; }
    .shop-detail-info h1, .help-detail-head h1, .shop-list-head h1, .shop-search-head h1, .shop-cart-head h1, .order-list-head h1, .checkout-title, .settings-title { font-size: 28px; }
    .help-layout { grid-template-columns: 1fr; }
    .checkout-layout { gap: 18px; }
    .checkout-product-row, .order-detail-product { grid-template-columns: 64px minmax(0, 1fr); }
    .checkout-product-price, .checkout-product-row > strong, .order-detail-product-price, .order-detail-product > strong { grid-column: 2; justify-items: start; }
    .order-detail-layout { grid-template-columns: 1fr; }
    .summary-bar { justify-content: space-between; flex-wrap: wrap; }
    .summary-bar .btn { width: 100%; }
    .cart-table-head { display: none; }
    .cart-row { min-width: 0; grid-template-columns: 28px 1fr; gap: 12px; padding: 16px; }
    .cart-row > div:nth-child(n+3) { grid-column: 2; }
    .address-region-grid, .code-input-row { grid-template-columns: 1fr; }
    .order-head, .order-foot, .checkout-card-head, .address-page-head { display: block; }
    .footer-grid { grid-template-columns: 1fr; padding-top: 42px; }
    .footer-cta h3 { font-size: 24px; }
    .icon-link.auth-guest, .icon-link.auth-user { display: none; }
}

/* Ecommerce redesign override */
:root {
    --ps-red: #c84d34;
    --ps-red-dark: #a63d2a;
    --ps-coral: #e7a067;
    --ps-ink: #171715;
    --ps-text: #37352f;
    --ps-muted: #77736b;
    --ps-line: #e3ddd1;
    --ps-page: #f7f3ec;
    --ps-soft: #efe7da;
    --ps-card: #fffdf8;
    --ps-amber: #b77a2f;
    --ps-green: #3d775f;
    --ps-shadow: 0 18px 48px rgba(54, 45, 31, .10);
    --ps-shadow-hover: 0 26px 70px rgba(54, 45, 31, .15);
}

body {
    background:
        radial-gradient(circle at 9% 8%, rgba(200, 77, 52, .08), transparent 28rem),
        linear-gradient(180deg, #fbf8f1 0%, var(--ps-page) 44%, #f3efe6 100%);
    color: var(--ps-text);
    font-family: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .24;
    background-image:
        linear-gradient(rgba(23, 23, 21, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 23, 21, .035) 1px, transparent 1px);
    background-size: 38px 38px;
}

.q-container { width: min(1280px, calc(100% - 56px)); }
.section { background: transparent; padding: 86px 0; }
.section-alt { background: rgba(255, 253, 248, .58); border-block: 1px solid rgba(227, 221, 209, .72); }
.section-kicker { color: var(--ps-green); letter-spacing: .12em; }
.section-kicker::before { background: var(--ps-green); }
.section-title-block h2,
.home-title,
.section-head h2,
.result-copy h2 {
    color: var(--ps-ink);
    font-size: clamp(30px, 3vw, 48px);
    line-height: 1.12;
    font-weight: 900;
    text-wrap: balance;
}
.section-title-block p,
.section-head p,
.result-copy p { max-width: 720px; color: var(--ps-muted); }

.btn {
    min-height: 46px;
    border-radius: 4px;
    padding: 0 20px;
    font-weight: 800;
    box-shadow: none;
}
.btn-primary { background: var(--ps-ink); color: #fff; box-shadow: 0 14px 34px rgba(23, 23, 21, .18); }
.btn-primary:hover { background: var(--ps-red); box-shadow: 0 18px 40px rgba(200, 77, 52, .22); }
.btn-dark { background: var(--ps-red); color: #fff; }
.btn-dark:hover { background: var(--ps-red-dark); color: #fff; }
.btn-outline {
    color: var(--ps-ink);
    border-color: rgba(23, 23, 21, .22);
    background: rgba(255, 253, 248, .8);
}
.btn-outline:hover { color: var(--ps-red); background: #fffdf8; border-color: rgba(200, 77, 52, .42); }
.btn-light { color: var(--ps-ink); background: #fffdf8; border-color: rgba(255,255,255,.58); }
input,
textarea,
select {
    border-radius: 4px;
    border-color: var(--ps-line);
    background: #fffdf8;
}
input:focus,
textarea:focus {
    border-color: var(--ps-red);
    box-shadow: 0 0 0 3px rgba(200, 77, 52, .14);
}

.site-header {
    background: rgba(247, 243, 236, .9);
    border-bottom-color: rgba(227, 221, 209, .78);
    box-shadow: 0 10px 34px rgba(54, 45, 31, .08);
    backdrop-filter: blur(18px);
}
.topbar {
    background: #171715;
    border-bottom: 0;
    color: rgba(255, 253, 248, .72);
}
.topbar-links a:hover { color: #fffdf8; }
.nav-wrap { min-height: 82px; }
.brand { min-width: 230px; font-size: 21px; letter-spacing: 0; }
.brand img {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    background: #fffdf8;
    box-shadow: inset 0 0 0 1px rgba(23, 23, 21, .08);
}
.main-nav { gap: 8px; }
.main-nav a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 4px;
    color: var(--ps-text);
    font-size: 15px;
}
.main-nav a:hover { color: var(--ps-red); background: rgba(255, 253, 248, .76); }
.nav-consult {
    min-height: 42px;
    border-radius: 4px;
    background: var(--ps-red);
    color: #fff;
}
.nav-consult:hover { background: var(--ps-ink); }
.icon-link,
.mobile-menu {
    border-radius: 4px;
    border-color: rgba(23, 23, 21, .13);
    background: rgba(255, 253, 248, .84);
}
.icon-link:hover,
.mobile-menu:hover {
    color: var(--ps-red);
    border-color: rgba(200, 77, 52, .34);
    background: #fffdf8;
}

.commerce-hero {
    min-height: 760px;
    background:
        linear-gradient(110deg, rgba(247, 243, 236, .96) 0%, rgba(247, 243, 236, .78) 52%, rgba(239, 231, 218, .92) 100%),
        var(--ps-page);
}
.commerce-hero .hero-slide::after {
    background: linear-gradient(90deg, rgba(247, 243, 236, .95), rgba(247, 243, 236, .64));
}
.hero-layout {
    min-height: 760px;
    grid-template-columns: minmax(0, .96fr) minmax(430px, .86fr);
    gap: 70px;
    padding: 82px 0 88px;
}
.hero-label {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(61, 119, 95, .3);
    border-radius: 4px;
    color: var(--ps-green);
    background: rgba(255, 253, 248, .68);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
}
.hero-copy h1 {
    max-width: 780px;
    margin: 18px 0 20px;
    font-size: clamp(44px, 5vw, 76px);
    line-height: .98;
    font-weight: 950;
    color: var(--ps-ink);
    text-wrap: balance;
}
.hero-copy p {
    max-width: 680px;
    color: #5d594f;
    font-size: 18px;
    line-height: 1.85;
}
.hero-search {
    width: min(680px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-top: 30px;
    padding: 8px;
    border: 1px solid rgba(23, 23, 21, .10);
    border-radius: 6px;
    background: rgba(255, 253, 248, .88);
    box-shadow: var(--ps-shadow);
}
.hero-search input {
    height: 48px;
    border: 0;
    background: transparent;
}
.hero-actions { margin-top: 18px; }
.hero-tags span,
.service-tags span {
    border-radius: 4px;
    color: var(--ps-green);
    border-color: rgba(61, 119, 95, .2);
    background: rgba(255, 253, 248, .78);
}
.commerce-showcase { min-height: 560px; }
.note-card,
.data-panel,
.diagnosis-card,
.advantage,
.case-card,
.article-card,
.help-article,
.service-card,
.shop-detail-media,
.shop-detail-info,
.shop-detail-tabs,
.panel,
.checkout-card,
.checkout-summary,
.shop-cart-panel,
.summary-bar,
.profile-card,
.profile-panel,
.settings-panel,
.order-tabs-panel,
.help-nav-panel,
.sidebar-diagnosis,
.shop-search-head,
.order-detail-shell,
.payment-result-card {
    border: 1px solid rgba(227, 221, 209, .92);
    border-radius: 6px;
    background: rgba(255, 253, 248, .94);
    box-shadow: var(--ps-shadow);
}
.note-card-main { padding: 16px; transform: rotate(1.2deg); }
.note-cover {
    height: 250px;
    border-radius: 4px;
    background:
        linear-gradient(180deg, rgba(23, 23, 21, .06), rgba(23, 23, 21, .68)),
        linear-gradient(135deg, #3d775f, #c84d34);
}
.data-panel { bottom: 30px; border-left: 4px solid var(--ps-green); }
.diagnosis-card { top: 26px; right: 4px; border-top: 4px solid var(--ps-red); }
.hero-arrow {
    border-radius: 4px;
    border-color: rgba(23, 23, 21, .14);
    color: var(--ps-ink);
}
.hero-dot { background: rgba(23, 23, 21, .18); }
.hero-dot.is-active { background: var(--ps-red); }

.commerce-benefits {
    margin-top: -42px;
    padding-top: 0;
    position: relative;
    z-index: 3;
}
.advantage-grid { gap: 18px; }
.advantage {
    padding: 26px;
    min-height: 190px;
}
.advantage:hover,
.case-card:hover,
.article-card:hover,
.help-article:hover,
.service-card:hover,
.shop-search-card:hover,
.profile-quick-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ps-shadow-hover);
}
.advantage-icon {
    border-radius: 4px;
    color: var(--ps-red);
    background: rgba(200, 77, 52, .10);
}
.process-steps article {
    border-radius: 6px;
    background: rgba(255, 253, 248, .92);
}
.process-steps article::after { background: var(--ps-green); }
.process-steps span { color: rgba(200, 77, 52, .24); }
.result-metrics span { border-radius: 4px; background: rgba(255, 253, 248, .72); }
.result-metrics strong,
.price,
.shop-search-price,
.cart-price,
.cart-subtotal,
.summary-bar strong,
.checkout-summary-line.total strong,
.order-cost-total strong,
.order-detail-product > strong { color: var(--ps-red); }
.case-cover {
    border-radius: 4px;
    background:
        linear-gradient(180deg, rgba(23, 23, 21, .02), rgba(23, 23, 21, .62)),
        linear-gradient(135deg, #171715, #3d775f);
}

.service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}
.service-card {
    overflow: hidden;
    min-height: 100%;
}
.service-cover {
    height: 220px;
    background:
        linear-gradient(135deg, rgba(61, 119, 95, .16), rgba(200, 77, 52, .12)),
        var(--ps-soft);
}
.service-cover img { transition: transform .42s ease; }
.service-card:hover .service-cover img { transform: scale(1.045); }
.service-cover-badge {
    left: 12px;
    top: 12px;
    border-radius: 4px;
    background: rgba(23, 23, 21, .86);
    backdrop-filter: blur(10px);
}
.service-body { padding: 20px 20px 22px; }
.service-kicker { color: var(--ps-green); letter-spacing: .10em; }
.service-title {
    min-height: 54px;
    font-size: 20px;
    color: var(--ps-ink);
}
.service-meta {
    border-top: 1px solid var(--ps-line);
    margin-top: 18px;
}
.service-hot { color: var(--ps-muted); }

.page-hero {
    background:
        linear-gradient(110deg, rgba(247, 243, 236, .98), rgba(239, 231, 218, .72)),
        var(--ps-page);
    border-bottom: 1px solid rgba(227, 221, 209, .72);
}
.page-hero h1,
.shop-list-head h1,
.shop-search-head h1,
.shop-cart-head h1,
.order-list-head h1,
.checkout-title,
.settings-title,
.shop-detail-info h1,
.help-detail-head h1,
.address-page-head h1,
.order-detail-title h1 {
    color: var(--ps-ink);
    font-weight: 950;
    text-wrap: balance;
}
.shop-breadcrumb,
.help-breadcrumb {
    color: var(--ps-muted);
}
.shop-category-tabs a,
.order-tabs a,
.sku-item,
.pagination a,
.pagination span {
    border-radius: 4px;
    background: rgba(255, 253, 248, .88);
}
.shop-category-tabs a.active,
.shop-category-tabs a:hover,
.order-tabs a.active,
.order-tabs a:hover,
.pagination .current,
.pagination .active,
.pagination span.active,
.pagination li.active a,
.pagination li.active span {
    color: #fff;
    background: var(--ps-ink);
    border-color: var(--ps-ink);
}
.shop-list-count,
.shop-search-summary {
    padding: 14px 16px;
    border: 1px solid rgba(227, 221, 209, .8);
    border-radius: 4px;
    background: rgba(255, 253, 248, .72);
}
.shop-detail-card { gap: 24px; }
.shop-detail-media { border-radius: 6px; }
.detail-note-caption {
    border-radius: 4px;
    background: rgba(23, 23, 21, .84);
}
.detail-note-caption span { color: #f3c6a3; }
.shop-price-row {
    border-radius: 4px;
    background: rgba(200, 77, 52, .09);
}
.sku-item.active,
.sku-item:hover,
.checkout-address.active,
.checkout-address-card.active,
.payment-method-card.active {
    color: var(--ps-red);
    border-color: rgba(200, 77, 52, .48);
    background: rgba(200, 77, 52, .08);
}
.qty-stepper,
.qty-stepper button,
.qty-stepper input,
.shop-search-cover,
.checkout-address,
.checkout-item,
.address-card,
.order-card,
.payment-method-card,
.checkout-address-card,
.profile-quick-card,
.order-detail-card,
.payment-info-row,
.address-modal-dialog {
    border-radius: 4px;
}
.shop-search-card {
    border-radius: 6px;
    background: rgba(255, 253, 248, .94);
    border: 1px solid rgba(227, 221, 209, .92);
    box-shadow: 0 12px 34px rgba(54, 45, 31, .07);
}
.shop-search-empty,
.checkout-empty,
.cart-empty,
.order-empty,
.address-empty,
.empty-state {
    border-radius: 6px;
    border-color: rgba(61, 119, 95, .34);
    background: rgba(255, 253, 248, .72);
}
.cart-table-head,
.cart-row {
    background: rgba(255, 253, 248, .96);
}
.summary-bar,
.checkout-summary {
    position: sticky;
    bottom: 18px;
}
.checkout-summary { top: 108px; bottom: auto; }
.profile-avatar {
    border-radius: 6px;
    background: linear-gradient(135deg, var(--ps-red), var(--ps-green));
}
.profile-avatar img { border-radius: 6px; }
.tag,
.address-default-tag,
.checkout-address-person em,
.footer-trust span {
    border-radius: 4px;
}
.tag-primary,
.address-default-tag { color: var(--ps-red); background: rgba(200, 77, 52, .10); }
.tag-success { color: var(--ps-green); background: rgba(61, 119, 95, .12); }
.tag-warning { color: var(--ps-amber); background: rgba(183, 122, 47, .12); }

.site-footer {
    margin-top: 40px;
    background:
        linear-gradient(135deg, rgba(200, 77, 52, .08), transparent 38%),
        #171715;
}
.footer-cta {
    border-radius: 6px;
    background: linear-gradient(135deg, var(--ps-green), #274e40);
    box-shadow: 0 24px 68px rgba(39, 78, 64, .24);
}
.footer-kicker { color: #f3c6a3; }
.footer-bottom { border-top-color: rgba(255,255,255,.12); }

@media (max-width: 1100px) {
    .hero-layout {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 34px;
    }
    .commerce-hero { min-height: auto; }
    .service-grid,
    .advantage-grid,
    .service-capability-grid,
    .article-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .commerce-benefits { margin-top: 0; padding-top: 56px; }
    .checkout-summary { position: static; }
}

@media (max-width: 900px) {
    .q-container { width: min(100% - 40px, 1280px); }
    .main-nav {
        border-radius: 6px;
        background: rgba(255, 253, 248, .98);
    }
    .hero-copy h1 { font-size: 44px; }
    .summary-bar { position: static; }
}

@media (max-width: 640px) {
    .q-container { width: min(100% - 28px, 1280px); }
    .section { padding: 56px 0; }
    .hero-layout { padding: 44px 0 58px; }
    .hero-copy h1 { font-size: 36px; line-height: 1.08; }
    .hero-search { grid-template-columns: 1fr; }
    .hero-search .btn { width: 100%; }
    .hero-actions,
    .form-actions,
    .footer-cta { align-items: stretch; }
    .service-grid,
    .advantage-grid,
    .service-capability-grid,
    .article-list,
    .process-steps,
    .case-grid,
    .profile-quick-grid { grid-template-columns: 1fr; }
    .service-cover { height: 210px; }
    .service-title { min-height: auto; }
    .shop-list-count,
    .shop-search-summary { display: block; }
    .footer-cta { border-radius: 0; }
}

/* Xiaohongshu operation studio theme override */
:root {
    --ps-red: #ff3157;
    --ps-red-dark: #d9143d;
    --ps-coral: #ff7a90;
    --ps-ink: #161319;
    --ps-text: #36313a;
    --ps-muted: #746d78;
    --ps-line: #efe5eb;
    --ps-page: #fff7fb;
    --ps-soft: #ffe8f0;
    --ps-card: #ffffff;
    --ps-amber: #f4a938;
    --ps-green: #217a63;
    --ps-shadow: 0 18px 55px rgba(255, 49, 87, .10);
    --ps-shadow-hover: 0 26px 78px rgba(255, 49, 87, .16);
}

body {
    color: var(--ps-text);
    background:
        linear-gradient(180deg, #fff7fb 0%, #fff 42%, #fff7fb 100%);
}

.q-container { width: min(1240px, calc(100% - 56px)); }
.section { padding: 92px 0; background: #fff; }
.section-alt { background: #fff7fb; }
.section-kicker {
    color: var(--ps-red);
    letter-spacing: .12em;
}
.section-kicker::before {
    width: 18px;
    background: currentColor;
}
.section-title-block h2,
.home-title,
.section-head h2 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: 0;
}

.btn {
    border-radius: 999px;
    min-height: 46px;
    padding: 0 24px;
}
.btn-primary {
    background: var(--ps-red);
    box-shadow: 0 16px 34px rgba(255, 49, 87, .24);
}
.btn-primary:hover { background: var(--ps-red-dark); }
.btn-dark {
    color: #fff;
    background: #161319;
    box-shadow: 0 16px 36px rgba(22, 19, 25, .18);
}
.btn-dark:hover { background: #2a222c; }
.btn-outline {
    color: #161319;
    background: #fff;
    border-color: rgba(22, 19, 25, .14);
}
.btn-outline:hover {
    color: var(--ps-red);
    background: #fff;
    border-color: rgba(255, 49, 87, .34);
}

.site-header {
    background: rgba(255, 247, 251, .92);
    border-bottom: 1px solid rgba(239, 229, 235, .9);
    box-shadow: 0 10px 34px rgba(22, 19, 25, .05);
    backdrop-filter: blur(18px);
}
.topbar {
    background: #161319;
    color: rgba(255,255,255,.78);
    border-bottom: 0;
}
.topbar a:hover { color: #fff; }
.nav-wrap { min-height: 72px; gap: 26px; }
.brand { min-width: 190px; font-size: 19px; }
.brand img {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(255, 49, 87, .14);
}
.main-nav a {
    position: relative;
    color: #2f2933;
    font-weight: 800;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--ps-red);
    transition: transform .2s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }
.nav-consult {
    min-height: 42px;
    border-radius: 999px;
    background: #161319;
}
.icon-link,
.mobile-menu {
    border-radius: 999px;
    border-color: rgba(22, 19, 25, .11);
}

.hero-xhs {
    position: relative;
    overflow: hidden;
    min-height: 760px;
    background:
        linear-gradient(120deg, rgba(255,49,87,.13), transparent 34%),
        radial-gradient(circle at 76% 18%, rgba(255,122,144,.28), transparent 32%),
        linear-gradient(180deg, #fff7fb 0%, #fff 100%);
}
.hero-xhs::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .32;
    background-image:
        linear-gradient(rgba(22,19,25,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22,19,25,.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, #000, transparent 82%);
}
.hero-bg-slides { position: absolute; inset: 0; pointer-events: none; }
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-size: cover;
    background-position: center;
    transition: opacity .7s ease;
}
.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 247, 251, .9);
}
.hero-slide.is-active { opacity: 1; }
.xhs-hero-layout,
.hero-layout {
    position: relative;
    z-index: 2;
    min-height: 760px;
    grid-template-columns: minmax(0, 1fr) minmax(390px, .78fr);
    gap: 70px;
    padding: 82px 0 72px;
}
.hero-label {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(255, 49, 87, .22);
    border-radius: 999px;
    color: var(--ps-red);
    background: rgba(255,255,255,.74);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
}
.hero-copy h1 {
    margin: 18px 0 18px;
    max-width: 780px;
    color: var(--ps-ink);
    font-size: clamp(42px, 6.6vw, 78px);
    line-height: 1.02;
    font-weight: 950;
}
.hero-copy p {
    max-width: 680px;
    color: #5e5662;
    font-size: 18px;
    line-height: 1.9;
}
.hero-search {
    max-width: 680px;
    margin-top: 34px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 8px;
    border: 1px solid rgba(255, 49, 87, .16);
    border-radius: 999px;
    background: rgba(255,255,255,.84);
    box-shadow: 0 22px 60px rgba(255, 49, 87, .10);
}
.hero-search input {
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: transparent;
}
.hero-search input:focus { box-shadow: none; }
.hero-actions { margin-top: 28px; }
.hero-tags span,
.service-tags span {
    color: #9b1230;
    border-color: rgba(255, 49, 87, .15);
    background: #fff;
}
.hero-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(22, 19, 25, .72);
    transform: translateY(-50%);
}
.hero-prev { left: 24px; }
.hero-next { right: 24px; }
.hero-dots {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
}

.xhs-studio-board {
    min-height: 560px;
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 18px;
}
.xhs-note-card,
.xhs-metric-card,
.xhs-brief-card {
    border: 1px solid rgba(239, 229, 235, .95);
    background: rgba(255,255,255,.86);
    box-shadow: 0 24px 70px rgba(255, 49, 87, .12);
    backdrop-filter: blur(16px);
}
.xhs-note-main {
    width: min(420px, 100%);
    margin-left: auto;
    padding: 16px;
    border-radius: 30px;
    transform: rotate(2deg);
}
.xhs-note-cover {
    min-height: 300px;
    padding: 24px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(22,19,25,.02), rgba(22,19,25,.68)),
        radial-gradient(circle at 80% 20%, #ffb1c0 0 16%, transparent 17%),
        linear-gradient(135deg, #ff3157 0%, #ff7a90 52%, #161319 100%);
}
.xhs-note-channel {
    align-self: flex-start;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.2);
    font-size: 12px;
    font-weight: 900;
}
.xhs-note-cover strong {
    max-width: 300px;
    font-size: 32px;
    line-height: 1.12;
}
.xhs-note-copy { padding: 18px 6px 4px; }
.xhs-note-copy span,
.xhs-metric-card span,
.xhs-brief-card span {
    color: var(--ps-red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
}
.xhs-note-copy h3 {
    margin: 8px 0;
    color: var(--ps-ink);
    font-size: 21px;
    line-height: 1.35;
}
.xhs-note-copy p,
.xhs-brief-card p {
    margin: 0;
    color: var(--ps-muted);
}
.xhs-metric-card {
    width: min(310px, 80%);
    margin-top: -42px;
    padding: 20px;
    border-radius: 24px;
}
.xhs-metric-card strong {
    display: block;
    margin-top: 6px;
    color: var(--ps-ink);
    font-size: 18px;
}
.chart-bars {
    height: 130px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-top: 18px;
}
.chart-bars span {
    flex: 1;
    border-radius: 999px 999px 6px 6px;
    background: linear-gradient(180deg, #ff3157, #ffc1ce);
}
.xhs-brief-card {
    width: min(340px, 86%);
    justify-self: end;
    margin-top: -36px;
    padding: 22px;
    border-radius: 24px;
}
.xhs-brief-card strong {
    display: block;
    margin: 8px 0 8px;
    color: var(--ps-ink);
    font-size: 22px;
    line-height: 1.25;
}

.commerce-benefits {
    position: relative;
    z-index: 2;
    margin-top: -46px;
    padding-top: 0;
    background: transparent;
}
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.advantage {
    padding: 28px;
    border: 1px solid rgba(239, 229, 235, .95);
    border-radius: 26px;
    background: rgba(255,255,255,.9);
    box-shadow: var(--ps-shadow);
}
.advantage-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    color: #fff;
    background: var(--ps-red);
}
.advantage h3 { color: var(--ps-ink); }

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.service-card {
    overflow: hidden;
    border: 1px solid rgba(239, 229, 235, .95);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 16px 45px rgba(22, 19, 25, .06);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ps-shadow-hover);
}
.service-cover {
    height: 250px;
    border-radius: 0;
    background:
        linear-gradient(135deg, rgba(255,49,87,.16), rgba(255,255,255,.65));
}
.service-cover::after {
    content: "";
    position: absolute;
    inset: auto 14px 14px 14px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.7));
    pointer-events: none;
}
.service-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.service-cover-badge {
    left: 16px;
    top: 16px;
    border-radius: 999px;
    background: rgba(22, 19, 25, .82);
}
.service-body { padding: 22px; }
.service-kicker {
    color: var(--ps-red);
    font-weight: 900;
    letter-spacing: .08em;
}
.service-title {
    min-height: 56px;
    color: var(--ps-ink);
    font-size: 20px;
    line-height: 1.35;
}
.service-body p { color: var(--ps-muted); }
.service-meta .price,
.price,
.shop-search-price {
    color: var(--ps-red);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}
.process-steps article {
    border-radius: 24px;
    border-color: rgba(239, 229, 235, .95);
    background: #fff;
}
.process-steps article span {
    color: var(--ps-red);
    background: var(--ps-soft);
}

.result-layout {
    display: grid;
    grid-template-columns: .84fr 1.16fr;
    gap: 48px;
    align-items: center;
}
.result-copy h2 {
    color: var(--ps-ink);
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.1;
}
.result-metrics span {
    border-radius: 20px;
    background: #fff7fb;
}
.case-grid,
.article-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.article-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.case-card,
.article-card,
.panel,
.shop-detail-card,
.shop-detail-tabs,
.shop-list-head,
.shop-list-count,
.checkout-card,
.checkout-summary,
.profile-card,
.profile-panel,
.settings-panel,
.shop-cart-panel,
.order-tabs-panel,
.payment-result-card,
.address-card,
.address-modal-dialog,
.shop-search-card,
.content-search-panel,
.help-content {
    border-radius: 26px;
    border: 1px solid rgba(239, 229, 235, .95);
    background: #fff;
    box-shadow: 0 16px 45px rgba(22, 19, 25, .055);
}
.case-card:hover,
.article-card:hover,
.shop-search-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ps-shadow-hover);
}
.case-cover { border-radius: 22px; }
.article-kicker { color: var(--ps-red); }

.page-hero {
    background:
        linear-gradient(120deg, rgba(255,49,87,.14), transparent 40%),
        linear-gradient(180deg, #fff7fb 0%, #fff 100%);
}
.page-hero h1 {
    color: var(--ps-ink);
    font-size: clamp(36px, 5.4vw, 68px);
    line-height: 1.05;
}
.shop-breadcrumb {
    color: var(--ps-muted);
}
.shop-breadcrumb a:hover { color: var(--ps-red); }
.shop-category-tabs a {
    border-radius: 999px;
}
.shop-category-tabs a.active,
.order-tabs a.active {
    color: #fff;
    background: var(--ps-red);
    border-color: var(--ps-red);
}

.shop-detail-page,
.shop-list-page,
.shop-search-page,
.shop-cart-page,
.checkout-page,
.payment-page,
.profile-page,
.address-page,
.settings-page,
.order-page,
.order-detail-page {
    background: #fff7fb;
}
.shop-detail-card {
    grid-template-columns: minmax(0, .92fr) minmax(380px, .78fr);
    gap: 28px;
    padding: 20px;
}
.shop-detail-media {
    border-radius: 24px;
    background: linear-gradient(135deg, #ff3157, #161319);
}
.detail-note-caption {
    border-radius: 22px;
    background: rgba(22, 19, 25, .78);
}
.buy-panel {
    padding: 28px;
    border-radius: 24px;
    background: #fff;
}
.shop-price-row {
    border-radius: 22px;
    background: #fff7fb;
}
.sku-item,
.payment-method-card,
.address-card,
.checkout-address-card,
.profile-quick-card {
    border-radius: 20px;
}
.sku-item.active,
.payment-method-card.active,
.checkout-address-card.active {
    border-color: rgba(255,49,87,.6);
    box-shadow: 0 0 0 4px rgba(255,49,87,.10);
}

.auth-shell {
    background:
        radial-gradient(circle at 16% 24%, rgba(255,49,87,.18), transparent 28%),
        linear-gradient(180deg, #fff7fb, #fff);
}
.auth-card {
    border-radius: 30px;
}
.profile-avatar {
    border-radius: 24px;
    background: linear-gradient(135deg, #ff3157, #161319);
}
.footer-cta {
    border-radius: 34px;
    background:
        radial-gradient(circle at 88% 18%, rgba(255,255,255,.24), transparent 24%),
        linear-gradient(135deg, #ff3157, #161319);
    box-shadow: 0 28px 82px rgba(255, 49, 87, .22);
}
.site-footer {
    background:
        radial-gradient(circle at 82% 10%, rgba(255,49,87,.20), transparent 26%),
        #161319;
}
.footer-kicker { color: #ff9caf; }
.footer-trust span {
    border-radius: 999px;
    background: rgba(255,255,255,.08);
}

@media (max-width: 1100px) {
    .xhs-hero-layout,
    .hero-layout,
    .shop-detail-card,
    .result-layout {
        grid-template-columns: 1fr;
    }
    .hero-xhs,
    .xhs-hero-layout,
    .hero-layout { min-height: auto; }
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .article-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .q-container { width: min(100% - 40px, 1240px); }
    .main-nav {
        background: rgba(255,255,255,.98);
        border-radius: 24px;
    }
    .hero-arrow { display: none; }
    .xhs-note-main { margin-left: 0; transform: none; }
    .xhs-metric-card,
    .xhs-brief-card {
        width: 100%;
        margin-top: 0;
    }
}

@media (max-width: 640px) {
    .q-container { width: min(100% - 28px, 1240px); }
    .section { padding: 58px 0; }
    .xhs-hero-layout,
    .hero-layout { padding: 48px 0 58px; }
    .hero-search {
        grid-template-columns: 1fr;
        border-radius: 26px;
    }
    .hero-search .btn { width: 100%; }
    .hero-copy h1 { font-size: 38px; }
    .advantage-grid,
    .service-grid,
    .process-steps,
    .case-grid,
    .article-list {
        grid-template-columns: 1fr;
    }
    .service-cover { height: 220px; }
    .footer-cta { border-radius: 26px; }
}

/* Service catalog page: stacked layout, no left-right header split */
.service-catalog-page {
    background:
        radial-gradient(circle at 10% 18%, rgba(255,49,87,.10), transparent 26%),
        linear-gradient(180deg, #fff7fb 0%, #fff 46%, #fff7fb 100%);
}

.service-page-hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 64px;
    border-bottom: 0;
    background:
        linear-gradient(180deg, rgba(255,247,251,.96), rgba(255,255,255,.92)),
        radial-gradient(circle at 82% 18%, rgba(255,49,87,.18), transparent 30%);
}

.service-page-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,49,87,.22), transparent);
}

.service-page-hero .q-container {
    max-width: 920px;
    text-align: center;
}

.service-page-hero .section-kicker {
    justify-content: center;
}

.service-page-hero h1 {
    margin-top: 14px;
    font-size: clamp(42px, 6vw, 76px);
}

.service-page-hero p {
    margin: 16px auto 0;
    max-width: 760px;
    font-size: 18px;
    line-height: 1.85;
}

.service-catalog-intro {
    margin: 0 0 22px;
    padding: 34px;
    border: 1px solid rgba(239, 229, 235, .95);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255,49,87,.07), transparent 34%),
        rgba(255,255,255,.9);
    box-shadow: 0 18px 52px rgba(22, 19, 25, .055);
}

.service-catalog-intro h2 {
    margin: 12px 0 12px;
    max-width: 900px;
    color: var(--ps-ink);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    font-weight: 950;
}

.service-catalog-intro p {
    margin: 0;
    max-width: 840px;
    color: var(--ps-muted);
    font-size: 17px;
    line-height: 1.85;
}

.service-stage-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.service-stage-strip span {
    min-height: 82px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 18px;
    border: 1px solid rgba(255,49,87,.14);
    border-radius: 22px;
    color: var(--ps-ink);
    background: #fff;
    font-weight: 900;
}

.service-stage-strip strong {
    color: var(--ps-red);
    font-size: 13px;
    letter-spacing: .08em;
}

.service-category-panel {
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid rgba(239, 229, 235, .95);
    border-radius: 28px;
    background: rgba(255,255,255,.86);
    box-shadow: 0 14px 38px rgba(22, 19, 25, .045);
}

.service-category-title {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--ps-ink);
}

.service-category-title span {
    font-size: 18px;
    font-weight: 950;
}

.service-category-title small {
    color: var(--ps-muted);
}

.service-category-tabs,
.service-catalog-page .shop-category-tabs {
    justify-content: flex-start;
    gap: 10px;
}

.service-catalog-page .shop-category-tabs a {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
}

.service-list-toolbar,
.service-catalog-page .shop-list-count {
    display: block;
    padding: 18px 20px;
    border-radius: 24px;
    border-color: rgba(239, 229, 235, .95);
    background: rgba(255,255,255,.72);
}

.service-list-toolbar span {
    display: block;
    margin-bottom: 4px;
    color: var(--ps-ink);
    font-weight: 950;
}

.service-list-toolbar small {
    color: var(--ps-muted);
}

.service-catalog-page .shop-service-grid {
    margin-top: 22px;
}

@media (max-width: 900px) {
    .service-stage-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .service-catalog-intro {
        padding: 26px;
    }
}

@media (max-width: 560px) {
    .service-page-hero {
        padding: 58px 0 44px;
    }
    .service-catalog-intro,
    .service-category-panel {
        border-radius: 24px;
    }
    .service-stage-strip {
        grid-template-columns: 1fr;
    }
    .service-category-title {
        display: block;
    }
    .service-category-title small {
        display: block;
        margin-top: 4px;
    }
}

/* News index page: stacked content layout, diagnosis block removed */
.news-index-page {
    padding: 0 0 82px;
    background:
        radial-gradient(circle at 88% 12%, rgba(255,49,87,.10), transparent 28%),
        linear-gradient(180deg, #fff 0%, #fff7fb 100%);
}

.news-page-hero {
    text-align: center;
    background:
        linear-gradient(180deg, rgba(255,247,251,.96), rgba(255,255,255,.96)),
        radial-gradient(circle at 18% 18%, rgba(255,49,87,.16), transparent 28%);
}

.news-page-hero .section-kicker {
    justify-content: center;
}

.news-page-hero p {
    margin-left: auto;
    margin-right: auto;
}

.news-index-shell {
    display: block;
}

.news-channel-panel {
    margin: 22px 0 18px;
    padding: 20px;
    border: 1px solid rgba(239, 229, 235, .95);
    border-radius: 28px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 16px 46px rgba(22, 19, 25, .055);
}

.news-channel-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
}

.news-channel-head span {
    color: var(--ps-ink);
    font-size: 18px;
    font-weight: 950;
}

.news-channel-head small {
    color: var(--ps-muted);
}

.news-channel-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.news-channel-nav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    border: 1px solid rgba(239, 229, 235, .95);
    border-radius: 999px;
    color: var(--ps-text);
    background: #fff;
    font-weight: 900;
}

.news-channel-nav a.active,
.news-channel-nav a:hover {
    color: #fff;
    background: var(--ps-red);
    border-color: var(--ps-red);
}

.news-list-panel {
    padding: 30px;
    border-radius: 30px;
}

.news-list-head {
    margin: 0 0 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(239, 229, 235, .95);
}

.news-list-head h2 {
    margin: 10px 0 0;
    max-width: 760px;
    color: var(--ps-ink);
    font-size: clamp(28px, 3.6vw, 44px);
    line-height: 1.14;
    font-weight: 950;
}

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

.news-article-card {
    min-height: 230px;
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255,49,87,.06), transparent 36%),
        #fff;
}

.news-article-card h3 {
    font-size: 20px;
}

.news-article-card p {
    flex: 1;
    line-height: 1.75;
}

.news-article-card .help-meta {
    padding-top: 14px;
    border-top: 1px solid rgba(239, 229, 235, .86);
}

.aftersale-list-page {
    padding: 46px 0 82px;
    background: linear-gradient(180deg, #fff7fb 0%, #fff 44%, #fff7fb 100%);
}

.aftersale-article-grid {
    margin-top: 0;
}

@media (max-width: 980px) {
    .news-article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .news-channel-head {
        display: block;
    }
    .news-channel-head small {
        display: block;
        margin-top: 4px;
    }
    .news-list-panel {
        padding: 22px;
    }
    .news-article-grid {
        grid-template-columns: 1fr;
    }
}

/* Home course page without product shelves */
.course-hero .hero-copy h1 {
    max-width: 860px;
}

.course-hero .xhs-hero-layout {
    padding-top: 108px;
}

.hero-payment-notice {
    grid-column: 1 / -1;
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    margin-bottom: -32px;
    padding: 18px 22px;
    border: 1px solid rgba(255,255,255,.62);
    border-radius: 26px;
    color: #fff;
    background:
        radial-gradient(circle at 95% 8%, rgba(255,255,255,.28), transparent 24%),
        linear-gradient(135deg, #ff3157, #161319);
    box-shadow: 0 28px 80px rgba(255,49,87,.28);
}

.hero-payment-notice span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    color: #161319;
    background: #fff;
    font-size: 13px;
    font-weight: 950;
    white-space: nowrap;
}

.hero-payment-notice strong {
    font-size: clamp(20px, 2.6vw, 32px);
    line-height: 1.18;
    font-weight: 950;
}

.hero-payment-notice em {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255,255,255,.16);
    font-style: normal;
    font-size: 18px;
    font-weight: 950;
    white-space: nowrap;
}

.course-hero .hero-actions {
    margin-top: 34px;
}

.course-dashboard .xhs-note-cover {
    background:
        linear-gradient(180deg, rgba(22,19,25,.04), rgba(22,19,25,.72)),
        radial-gradient(circle at 78% 18%, #ffd5df 0 16%, transparent 17%),
        linear-gradient(135deg, #ff3157 0%, #ff8ca1 48%, #161319 100%);
}

.course-benefits {
    margin-top: -38px;
}

.course-outline-section {
    background: #fff;
}

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

.course-module-grid article {
    min-height: 220px;
    padding: 26px;
    border: 1px solid rgba(239, 229, 235, .95);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255,49,87,.06), transparent 36%),
        #fff;
    box-shadow: 0 16px 45px rgba(22, 19, 25, .055);
}

.course-module-grid span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border-radius: 16px;
    color: #fff;
    background: var(--ps-red);
    font-weight: 950;
}

.course-module-grid h3 {
    margin: 0 0 10px;
    color: var(--ps-ink);
    font-size: 22px;
    line-height: 1.32;
}

.course-module-grid p {
    margin: 0;
    color: var(--ps-muted);
    line-height: 1.8;
}

.course-delivery-layout {
    display: grid;
    grid-template-columns: minmax(0, .96fr) minmax(320px, .52fr);
    gap: 34px;
    align-items: center;
}

.course-contact-card {
    padding: 30px;
    border-radius: 30px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 12%, rgba(255,255,255,.22), transparent 28%),
        linear-gradient(135deg, #ff3157, #161319);
    box-shadow: 0 26px 74px rgba(255,49,87,.20);
}

.course-contact-card span {
    color: rgba(255,255,255,.76);
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .08em;
}

.course-contact-card strong {
    display: block;
    margin: 10px 0 12px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.04;
}

.course-contact-card p {
    margin: 0 0 24px;
    color: rgba(255,255,255,.78);
}

.course-contact-card .btn-primary {
    color: var(--ps-red);
    background: #fff;
    box-shadow: none;
}

.course-contact-card .btn-primary:hover {
    color: var(--ps-red-dark);
    background: #fff7fb;
}

@media (max-width: 980px) {
    .course-delivery-layout {
        display: block;
    }
    .course-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .course-contact-card {
        margin-top: 22px;
    }
    .hero-payment-notice {
        grid-template-columns: 1fr;
        margin-bottom: 10px;
    }
    .course-hero .xhs-hero-layout {
        padding-top: 58px;
    }
}

@media (max-width: 620px) {
    .course-module-grid {
        grid-template-columns: 1fr;
    }
    .hero-payment-notice {
        padding: 18px;
        border-radius: 22px;
    }
    .hero-payment-notice em {
        justify-content: center;
        width: 100%;
        font-size: 16px;
    }
}
