:root {
    --bg: #f4f6fb;
    --surface: rgba(255, 255, 255, 0.96);
    --surface-strong: #ffffff;
    --surface-soft: #f8fafc;
    --primary: #df4336;
    --primary-dark: #bc2b1f;
    --primary-soft: #fff1ef;
    --accent: #ffb59f;
    --text: #1c2430;
    --text-secondary: #66717f;
    --text-hint: #99a3af;
    --line: rgba(217, 224, 232, 0.88);
    --success: #17a564;
    --warning: #ef9f28;
    --shadow: 0 24px 60px rgba(24, 36, 54, 0.12);
    --shadow-soft: 0 12px 30px rgba(24, 36, 54, 0.08);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 18px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background:
        radial-gradient(circle at top, rgba(255, 214, 207, 0.55) 0%, rgba(255, 214, 207, 0) 28%),
        linear-gradient(180deg, #edf2f8 0%, #f7f9fc 100%);
    color: var(--text);
    font-family: Arial, "Microsoft YaHei", sans-serif;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

.preview-shell {
    width: min(100vw, 430px);
    max-width: 100vw;
    min-height: 100vh;
    margin: 0 auto;
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 22%),
        var(--bg);
    box-shadow: var(--shadow);
    overflow-x: hidden;
    overflow-y: visible;
}

.content,
.detail-content {
    padding-left: 20px;
    padding-right: 20px;
}

.content {
    padding-top: 14px;
    padding-bottom: 118px;
}

.detail-content {
    padding-top: 18px;
    padding-bottom: 120px;
}

.status-bar,
.hero-topbar,
.section-title,
.detail-topbar,
.ladder-row,
.sticky-actions,
.goods-card-top,
.goods-meta,
.goods-price-row,
.detail-hero-top,
.detail-meta-row,
.detail-info-row,
.similar-card-top {
    display: flex;
    align-items: center;
}

.status-bar {
    display: none;
}

.status-right {
    display: flex;
    gap: 10px;
}

.hero-panel,
.banner,
.card,
.soft-panel,
.detail-hero,
.quote-panel {
    border-radius: var(--radius-xl);
}

.hero-panel {
    margin-top: 18px;
    padding: 22px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 34%),
        linear-gradient(135deg, #1d2735 0%, #2b3645 44%, #3b4350 100%);
    box-shadow: var(--shadow);
}

.hero-topbar {
    justify-content: space-between;
    gap: 12px;
}

.brand-tag {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.92);
}

.hero-caption {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
}

.greeting {
    margin: 18px 0 0;
    font-size: 31px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.subtitle {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.78);
}

.action-group {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.pill-action,
.goods-tag,
.sim-tag,
.detail-meta-pill,
.chip,
.service-button,
.ghost-button,
.primary-button,
.quote-link,
.section-note,
.topbar-link {
    border-radius: 999px;
}

.pill-action {
    min-width: 58px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-align: center;
    color: #fff;
    backdrop-filter: blur(12px);
    font-size: 12px;
}

.search-bar {
    height: 56px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--surface-strong);
    box-shadow: var(--shadow-soft);
}

.search-bar-hero {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: none;
    backdrop-filter: blur(16px);
}

.search-bar-hero .search-icon,
.search-bar-hero .search-text {
    color: #fff;
}

.search-bar-hero .search-text {
    color: rgba(255, 255, 255, 0.78);
}

.search-icon {
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
}

.search-text {
    color: var(--text-hint);
    font-size: 14px;
}

.hero-stats {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.stat-card {
    padding: 14px 10px;
    text-align: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.stat-card strong {
    display: block;
    font-size: 18px;
    line-height: 1;
}

.stat-card span {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

.banner {
    margin-top: 18px;
    padding: 22px 20px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 30%),
        linear-gradient(135deg, var(--primary) 0%, #ed6a53 52%, var(--primary-dark) 100%);
    box-shadow: var(--shadow-soft);
}

.banner-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 12px;
    font-weight: 700;
}

.banner h3 {
    margin: 12px 0 0;
    font-size: 23px;
    line-height: 1.38;
    letter-spacing: -0.02em;
}

.banner p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    line-height: 1.7;
}

.section-title {
    justify-content: space-between;
    margin-top: 24px;
    gap: 12px;
}

.section-title h4 {
    margin: 0;
    font-size: 19px;
    letter-spacing: -0.01em;
}

.section-link {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.section-note {
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--line);
    color: var(--text-secondary);
    font-size: 12px;
}

.card,
.soft-panel,
.quote-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.soft-panel {
    background: linear-gradient(180deg, #fcfdff 0%, #f6f8fb 100%);
}

.quick-grid {
    margin-top: 14px;
    padding: 18px 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 6px;
}

.quick-item {
    text-align: center;
}

.quick-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff6f4 0%, #ffe7e1 100%);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.quick-label {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.4;
}

.goods-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.goods-card {
    padding: 16px;
    display: block;
    background:
        radial-gradient(circle at top right, rgba(255, 241, 239, 0.85) 0%, rgba(255, 241, 239, 0) 36%),
        var(--surface-strong);
}

.goods-card-top {
    justify-content: space-between;
    gap: 10px;
}

.goods-tag,
.sim-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    height: 28px;
    padding: 0 12px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.goods-tag-alt,
.sim-tag-alt {
    background: #f3f6fb;
    color: #536171;
}

.goods-brand,
.similar-brand,
.detail-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(28, 36, 48, 0.06);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
}

.goods-code {
    margin-top: 14px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.01em;
    word-break: break-word;
}

.goods-desc {
    margin-top: 8px;
    min-height: 42px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.goods-meta {
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.goods-stock,
.goods-update {
    font-size: 12px;
}

.goods-stock,
.sim-stock,
.detail-meta-pill.success {
    color: var(--success);
}

.goods-update {
    color: var(--text-hint);
}

.goods-price-row {
    justify-content: flex-start;
    gap: 4px;
    margin-top: 12px;
}

.goods-price {
    color: var(--primary);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.goods-unit {
    color: var(--text-secondary);
    font-size: 12px;
    align-self: flex-end;
    padding-bottom: 2px;
}

.service-board {
    margin-top: 14px;
    display: grid;
    gap: 12px;
}

.service-card {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 249, 252, 0.95) 100%);
    box-shadow: var(--shadow-soft);
}

.service-title {
    font-size: 16px;
    font-weight: 700;
}

.service-card p {
    margin: 10px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
}

.bottom-nav,
.sticky-actions {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: min(100%, 430px);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
}

.bottom-nav {
    bottom: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(217, 224, 232, 0.75);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    z-index: 40;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    text-align: center;
    color: #8791a0;
    font-size: 12px;
    padding: 10px 0 8px;
    border-radius: 16px;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.nav-item span {
    display: block;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.nav-item.active {
    color: var(--primary);
    background: linear-gradient(180deg, #fff5f3 0%, #ffece8 100%);
    font-weight: 700;
}

.nav-cart-badge {
    position: absolute;
    top: 6px;
    right: 12px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #df4336;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(223, 67, 54, 0.35);
}

.cart-feedback-toast {
    position: fixed;
    left: 50%;
    bottom: 108px;
    transform: translate(-50%, 12px);
    opacity: 0;
    pointer-events: none;
    z-index: 90;
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    transition: all .2s ease;
}

.cart-feedback-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.detail-topbar {
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(217, 224, 232, 0.68);
    position: sticky;
    top: 0;
    z-index: 20;
}

.detail-topbar strong {
    font-size: 16px;
    letter-spacing: -0.01em;
}

.detail-app-shell {
    padding-bottom: 92px;
    background:
        radial-gradient(circle at top left, rgba(255, 235, 231, 0.92) 0%, rgba(255, 235, 231, 0) 26%),
        radial-gradient(circle at top right, rgba(233, 242, 255, 0.78) 0%, rgba(233, 242, 255, 0) 24%),
        linear-gradient(180deg, #f9fbff 0%, #f3f6fb 100%);
}

.detail-app-topbar {
    position: sticky;
    top: 0;
    z-index: 22;
    padding: 12px 16px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 10px;
    background: rgba(249, 251, 255, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(217, 224, 232, 0.55);
}

.detail-app-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(24, 36, 54, 0.08);
}

.detail-app-search {
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 24px rgba(24, 36, 54, 0.08);
}

.detail-app-search span {
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
}

.detail-app-search-input {
    flex: 1;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text-hint);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-app-search-input::placeholder {
    color: var(--text-hint);
}

.detail-app-search-submit {
    height: 30px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(223, 67, 54, 0.1);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.detail-app-page {
    padding: 16px 16px 0;
}

.detail-app-price-card,
.detail-app-service-card,
.detail-app-panel {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 28px;
    border: 1px solid rgba(235, 240, 247, 0.92);
    box-shadow: 0 18px 36px rgba(24, 36, 54, 0.08);
}

.detail-app-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-app-badge-row-top {
    margin-bottom: 14px;
}

.detail-app-badge {
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f6f8fb;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.detail-app-badge-hot {
    background: var(--primary-soft);
    color: var(--primary);
}

.detail-app-price-card {
    margin-top: 0;
    padding: 20px 18px 18px;
    background:
        radial-gradient(circle at top right, rgba(255, 224, 216, 0.95) 0%, rgba(255, 224, 216, 0) 30%),
        radial-gradient(circle at bottom left, rgba(233, 242, 255, 0.88) 0%, rgba(233, 242, 255, 0) 28%),
        linear-gradient(180deg, #fff8f7 0%, #ffffff 100%);
    overflow: hidden;
    position: relative;
}

.detail-app-price-card::after {
    content: "";
    position: absolute;
    top: 16px;
    right: 18px;
    width: 84px;
    height: 84px;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.52) 0%, rgba(255, 255, 255, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
    pointer-events: none;
}

.detail-app-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(148px, 0.9fr);
    gap: 14px;
    align-items: stretch;
}

.detail-app-hero-main {
    position: relative;
    z-index: 1;
}

.detail-app-hero-side {
    position: relative;
    z-index: 1;
}

.detail-app-hero-side-card {
    height: 100%;
    padding: 16px 14px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(250, 252, 255, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

.detail-app-hero-side-label {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(223, 67, 54, 0.1);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
}

.detail-app-hero-side-card strong {
    display: block;
    color: var(--text);
    font-size: 22px;
    line-height: 1.2;
}

.detail-app-hero-side-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.7;
}

.detail-app-hero-side-meta {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    background: rgba(31, 42, 56, 0.06);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
}

.detail-app-price-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.detail-app-price {
    color: var(--primary);
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: flex-end;
    gap: 6px;
    white-space: nowrap;
}

.detail-app-price small {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
}

.detail-app-price-sub {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.65;
}

.detail-app-price-tag {
    min-width: 82px;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.detail-app-title {
    margin: 16px 0 0;
    color: var(--text);
    font-size: 28px;
    line-height: 1.26;
    letter-spacing: -0.02em;
}

.detail-app-subtitle {
    margin: 10px 0 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.75;
}

.detail-app-priority-card {
    margin-top: 18px;
    padding: 15px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(247, 250, 255, 0.92) 100%);
    border: 1px solid rgba(223, 67, 54, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.detail-app-priority-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.detail-app-priority-head strong {
    color: var(--text);
    font-size: 15px;
}

.detail-app-priority-head span {
    color: var(--text-hint);
    font-size: 11px;
}

.detail-app-priority-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.detail-app-priority-block {
    padding: 13px 12px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    border: 1px solid rgba(229, 236, 244, 0.9);
}

.detail-app-priority-label {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
}

.detail-app-tier-list,
.detail-app-stock-list {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.detail-app-tier-list div,
.detail-app-stock-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.detail-app-tier-list em,
.detail-app-stock-list em {
    color: var(--text-secondary);
    font-size: 12px;
    font-style: normal;
}

.detail-app-tier-list strong,
.detail-app-stock-list strong {
    color: var(--text);
    font-size: 13px;
}

.detail-app-tier-list strong {
    color: var(--primary);
}

.detail-app-tags {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-app-tags span {
    min-height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(231, 236, 243, 0.9);
    color: var(--text-secondary);
    font-size: 12px;
    box-shadow: 0 8px 16px rgba(24, 36, 54, 0.04);
}

.detail-app-overview-panel {
    background:
        radial-gradient(circle at top left, rgba(233, 242, 255, 0.9) 0%, rgba(233, 242, 255, 0) 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.98) 100%);
}

.detail-app-sell-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.detail-app-sell-card {
    position: relative;
    padding: 18px 12px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(230, 236, 245, 0.92);
    box-shadow: 0 14px 26px rgba(24, 36, 54, 0.06);
    text-align: center;
    overflow: hidden;
}

.detail-app-sell-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff7e68 0%, #ffc16f 100%);
}

.detail-app-sell-card:nth-child(2)::before {
    background: linear-gradient(90deg, #5b8eff 0%, #67c4ff 100%);
}

.detail-app-sell-card:nth-child(3)::before {
    background: linear-gradient(90deg, #8e75ff 0%, #c191ff 100%);
}

.detail-app-sell-card:nth-child(4)::before {
    background: linear-gradient(90deg, #29b57e 0%, #6ed9b4 100%);
}

.detail-app-sell-card span {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
}

.detail-app-sell-card strong {
    display: block;
    margin-top: 10px;
    color: var(--text);
    font-size: 20px;
}

.detail-app-service-card,
.detail-app-panel {
    margin-top: 16px;
    padding: 18px 16px;
}

.detail-app-panel-soft {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 255, 0.98) 100%);
}

.detail-app-panel-warm {
    background:
        radial-gradient(circle at top right, rgba(255, 239, 233, 0.9) 0%, rgba(255, 239, 233, 0) 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 250, 248, 0.98) 100%);
}

.detail-app-service-card-strong {
    background:
        radial-gradient(circle at top left, rgba(233, 242, 255, 0.92) 0%, rgba(233, 242, 255, 0) 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.98) 100%);
}

.detail-app-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.detail-app-section-head h3 {
    margin: 0;
    color: var(--text);
    font-size: 17px;
    position: relative;
    padding-left: 14px;
}

.detail-app-section-head h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--primary) 0%, #ffb067 100%);
}

.detail-app-section-head a,
.detail-app-section-head span {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.detail-app-service-list,
.detail-app-reco-list {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.detail-app-service-item {
    padding: 15px 14px 15px 16px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(230, 237, 246, 0.92);
    position: relative;
}

.detail-app-service-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff7c66 0%, #ffb76c 100%);
}

.detail-app-service-item strong {
    display: block;
    color: var(--text);
    font-size: 15px;
}

.detail-app-service-item span {
    display: block;
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.65;
}

.detail-app-ladder-table {
    margin-top: 14px;
    display: grid;
    gap: 8px;
}

.detail-app-ladder-head {
    padding: 0 14px 6px;
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    gap: 12px;
}

.detail-app-ladder-head span {
    color: var(--text-hint);
    font-size: 11px;
    font-weight: 700;
}

.detail-app-ladder-row {
    padding: 16px 14px;
    border-radius: 20px;
    background: #f8fafd;
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    gap: 12px;
    align-items: center;
}

.detail-app-ladder-row.active {
    background:
        radial-gradient(circle at top right, rgba(255, 241, 239, 0.9) 0%, rgba(255, 241, 239, 0) 34%),
        #fff9f8;
    border: 1px solid rgba(223, 67, 54, 0.1);
}

.detail-app-ladder-row span {
    color: var(--text-secondary);
    font-size: 13px;
}

.detail-app-ladder-row strong {
    color: var(--primary);
    font-size: 20px;
    white-space: nowrap;
}

.detail-app-ladder-tip {
    margin-top: 12px;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.7;
}

.detail-app-spec-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.detail-app-spec-item {
    padding: 16px 14px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(232, 238, 246, 0.94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.detail-app-spec-item:nth-child(4n + 1) {
    background: linear-gradient(180deg, #fffdfb 0%, #fff7f4 100%);
}

.detail-app-spec-item:nth-child(4n + 2) {
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
}

.detail-app-spec-item span {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
}

.detail-app-spec-item strong {
    display: block;
    margin-top: 10px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
}

.detail-app-spec-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.detail-app-spec-link::after {
    content: "›";
    width: 16px;
    height: 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(223, 67, 54, 0.1);
    font-size: 12px;
    line-height: 1;
}

.detail-app-reco-card {
    padding: 16px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.98) 100%);
    border: 1px solid rgba(231, 237, 246, 0.94);
    box-shadow: 0 12px 24px rgba(24, 36, 54, 0.05);
}

.detail-app-reco-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.detail-app-reco-tag-gray {
    background: #f3f6fb;
    color: #5d6978;
}

.detail-app-reco-card strong {
    display: block;
    margin-top: 12px;
    color: var(--text);
    font-size: 16px;
}

.detail-app-reco-card p {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.65;
}

.detail-app-reco-card span:last-child {
    display: inline-block;
    margin-top: 12px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.detail-app-buybar {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(100%, 430px);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(217, 224, 232, 0.62);
    border-radius: 24px 24px 0 0;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    box-shadow: 0 -10px 28px rgba(24, 36, 54, 0.08);
    z-index: 24;
}

.detail-app-buy-service {
    width: 58px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f9fc;
    border: 1px solid var(--line);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
}

.detail-app-qty {
    width: 190px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
    display: grid;
    grid-template-columns: 32px minmax(112px, 1fr) 32px;
    align-items: center;
    gap: 4px;
    padding: 0 6px;
}

.detail-app-qty button {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: #f2f6fb;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
}

.detail-app-qty input {
    width: 100%;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: #f8fafc;
    text-align: right;
    padding: 0 8px;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    appearance: textfield;
    -moz-appearance: textfield;
}

.detail-app-qty input::-webkit-outer-spin-button,
.detail-app-qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.detail-app-buy-cart,
.detail-app-buy-now {
    flex: 1;
    height: 46px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.detail-app-buy-cart {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--text);
}

.detail-app-buy-cart.is-disabled {
    background: #cbd5e1;
    border-color: #cbd5e1;
    color: #f8fafc;
    pointer-events: none;
}

.detail-app-buy-now {
    background: linear-gradient(135deg, var(--primary) 0%, #ef6b53 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(223, 67, 54, 0.24);
}

@media (max-width: 340px) {
    .detail-app-hero-grid {
        grid-template-columns: 1fr;
    }

    .detail-app-priority-grid,
    .detail-app-sell-grid,
    .detail-app-spec-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-app-price-row {
        display: grid;
    }

    .detail-app-ladder-row {
        grid-template-columns: 1fr;
    }

    .detail-app-ladder-head {
        display: none;
    }

    .detail-app-priority-grid {
        grid-template-columns: 1fr;
    }
}

.desktop-tip {
    position: fixed;
    right: 18px;
    top: 18px;
    z-index: 20;
    padding: 10px 12px;
    background: rgba(28, 36, 48, 0.88);
    color: #fff;
    border-radius: 12px;
    font-size: 12px;
}

@media (max-width: 480px) {
    .desktop-tip {
        display: none;
    }

    .preview-shell,
    .bottom-nav,
    .sticky-actions {
        max-width: none;
        width: 100%;
        box-shadow: none;
    }
}

/* Home Page Redesign */
.home-page {
    padding-bottom: 112px;
}

.home-header {
    padding: 14px 18px 22px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 28%),
        linear-gradient(180deg, #eb5549 0%, #df4336 58%, #f4f6fb 58%, #f4f6fb 100%);
}

.home-status {
    color: #fff;
}

.home-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    gap: 12px;
}

.home-brand-name {
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.home-brand-sub {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
}

.home-top-actions {
    display: flex;
    gap: 10px;
}

.home-top-icon {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.home-search {
    margin-top: 18px;
    height: 52px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(188, 43, 31, 0.18);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px 0 16px;
}

.home-search-icon {
    color: var(--primary);
    font-size: 17px;
    font-weight: 700;
}

.home-search-text {
    flex: 1;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text-hint);
    font-size: 14px;
}

.home-search-text::placeholder {
    color: var(--text-hint);
}

.home-search-action {
    min-width: 68px;
    height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    background: linear-gradient(135deg, #1f2a38 0%, #364150 100%);
}

.home-hero-card {
    margin-top: 18px;
    padding: 22px 20px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 30%),
        linear-gradient(135deg, #fff8f7 0%, #ffffff 56%, #fff3f1 100%);
    box-shadow: 0 24px 40px rgba(188, 43, 31, 0.12);
}

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.home-hero-card h1 {
    margin: 14px 0 0;
    color: var(--text);
    font-size: 28px;
    line-height: 1.26;
    letter-spacing: -0.03em;
}

.home-hero-card p {
    margin: 10px 0 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.home-hero-metrics {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.home-metric {
    padding: 14px 10px;
    border-radius: 20px;
    text-align: center;
    background: #fff;
    border: 1px solid rgba(223, 67, 54, 0.08);
    box-shadow: 0 10px 18px rgba(31, 42, 56, 0.06);
}

.home-metric strong {
    display: block;
    color: var(--text);
    font-size: 18px;
    line-height: 1;
}

.home-metric span {
    display: block;
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 12px;
}

.home-body {
    padding: 0 18px 0;
}

.home-entry-panel {
    margin-top: -4px;
    padding: 18px 14px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 32px rgba(24, 36, 54, 0.08);
}

.home-entry-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px 8px;
}

.home-entry-item {
    text-align: center;
}

.home-entry-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(31, 42, 56, 0.12);
}

.home-entry-red {
    background: linear-gradient(135deg, #ff7867 0%, #df4336 100%);
}

.home-entry-orange {
    background: linear-gradient(135deg, #ffb34d 0%, #ef8e1b 100%);
}

.home-entry-blue {
    background: linear-gradient(135deg, #5e9dff 0%, #3d73e0 100%);
}

.home-entry-green {
    background: linear-gradient(135deg, #41c790 0%, #159d67 100%);
}

.home-entry-violet {
    background: linear-gradient(135deg, #9c88ff 0%, #6e5de7 100%);
}

.home-entry-label {
    margin-top: 10px;
    color: var(--text);
    font-size: 12px;
    line-height: 1.4;
}

.home-promo-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.home-promo-card {
    min-height: 136px;
    padding: 18px 16px;
    border-radius: 24px;
    color: #fff;
    box-shadow: 0 18px 28px rgba(24, 36, 54, 0.1);
}

.home-promo-title {
    font-size: 17px;
    font-weight: 700;
}

.home-promo-card p {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.84);
}

[data-home-news-content] {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-promo-card span {
    display: inline-block;
    margin-top: 16px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.home-promo-warm {
    background: linear-gradient(135deg, #ff8a78 0%, #eb5d4f 100%);
}

.home-promo-dark {
    background: linear-gradient(135deg, #222d3b 0%, #3a4756 100%);
}

.home-section-head {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.home-section-head h3 {
    margin: 0;
    color: var(--text);
    font-size: 22px;
    letter-spacing: -0.02em;
}

.home-section-head p {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.home-section-head a {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.home-section-head-compact {
    margin-top: 20px;
}

.home-category-strip {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 10px;
}

.home-category-card {
    min-height: 96px;
    padding: 12px 8px 10px;
    border-radius: 20px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 24px rgba(24, 36, 54, 0.07);
    text-align: center;
}

.home-category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0 auto;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
}

.home-category-name {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.home-category-red {
    background: rgba(255, 255, 255, 0.96);
}

.home-category-red .home-category-icon {
    background: linear-gradient(145deg, #ff8677 0%, #df4336 100%);
    color: #fff;
}

.home-category-gold {
    background: rgba(255, 255, 255, 0.96);
}

.home-category-gold .home-category-icon {
    background: linear-gradient(145deg, #f3b456 0%, #d78a17 100%);
    color: #fff;
}

.home-category-blue {
    background: rgba(255, 255, 255, 0.96);
}

.home-category-blue .home-category-icon {
    background: linear-gradient(145deg, #5e9dff 0%, #3d73e0 100%);
    color: #fff;
}

.home-category-green {
    background: rgba(255, 255, 255, 0.96);
}

.home-category-green .home-category-icon {
    background: linear-gradient(145deg, #41c790 0%, #159d67 100%);
    color: #fff;
}

.home-category-violet .home-category-icon {
    background: linear-gradient(145deg, #9c88ff 0%, #6e5de7 100%);
    color: #fff;
}

.home-category-cyan .home-category-icon {
    background: linear-gradient(145deg, #4ec8e8 0%, #1aa2c8 100%);
    color: #fff;
}

.home-category-orange .home-category-icon {
    background: linear-gradient(145deg, #ffb666 0%, #f18a1e 100%);
    color: #fff;
}

.home-category-slate .home-category-icon {
    background: linear-gradient(145deg, #7d8ea3 0%, #556476 100%);
    color: #fff;
}

.home-product-list {
    margin-top: 14px;
    display: grid;
    gap: 14px;
}

.home-product-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 30px rgba(24, 36, 54, 0.08);
}

.home-product-media {
    position: relative;
    min-height: 132px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    overflow: hidden;
}

.home-product-media::before,
.home-product-media::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.home-product-media::before {
    width: 88px;
    height: 88px;
    right: -16px;
    top: -18px;
}

.home-product-media::after {
    width: 64px;
    height: 64px;
    left: -14px;
    bottom: -12px;
}

.home-product-media span {
    position: relative;
    z-index: 1;
}

.home-product-media-red {
    background: linear-gradient(145deg, #ff8677 0%, #df4336 100%);
}

.home-product-media-dark {
    background: linear-gradient(145deg, #2b3746 0%, #1d2735 100%);
}

.home-product-media-gold {
    background: linear-gradient(145deg, #f3b456 0%, #d78a17 100%);
}

.home-product-info {
    min-width: 0;
}

.home-product-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.home-product-tag-gray {
    background: #f3f6fb;
    color: #5d6978;
}

.home-product-info h4 {
    margin: 12px 0 0;
    color: var(--text);
    font-size: 18px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.home-product-info p {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.65;
}

.home-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    color: var(--success);
    font-size: 12px;
}

.home-product-meta span:last-child {
    color: var(--text-hint);
}

.home-product-price-row {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.home-product-price-row strong {
    color: var(--primary);
    font-size: 24px;
    line-height: 1;
}

.home-product-price-row span {
    color: var(--text-secondary);
    font-size: 12px;
    padding-bottom: 2px;
}

.home-service-strip {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.home-service-item {
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 249, 252, 0.96) 100%);
    box-shadow: 0 16px 26px rgba(24, 36, 54, 0.06);
}

.home-service-item strong {
    display: block;
    color: var(--text);
    font-size: 15px;
}

.home-service-item span {
    display: block;
    margin-top: 7px;
    color: var(--text-secondary);
    font-size: 13px;
}

/* BOM Page */
.bom-page {
    padding: 14px 16px 112px;
    background: #f3f6fb;
    min-height: 100vh;
}

.bom-head {
    margin-top: 10px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
}

.bom-back {
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.bom-head h1 {
    margin: 0;
    font-size: 18px;
    color: #0f172a;
}

.bom-head p {
    margin: 4px 0 0;
    font-size: 12px;
    color: #64748b;
}

.bom-input-card,
.bom-result-card {
    margin-top: 14px;
    padding: 14px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.bom-input-card textarea {
    width: 100%;
    min-height: 140px;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    background: #f8fafc;
    padding: 12px;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
    outline: none;
}

.bom-upload-zone {
    margin-bottom: 10px;
    border: 1.5px dashed #c7d7f4;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fbff 0%, #f1f6ff 100%);
    min-height: 72px;
    padding: 10px 12px;
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
    cursor: pointer;
}

.bom-upload-zone strong {
    font-size: 13px;
    color: #1d4ed8;
}

.bom-upload-zone span {
    margin-top: 4px;
    font-size: 11px;
    color: #64748b;
}

.bom-actions {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.bom-btn {
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.bom-btn-ghost {
    background: #ecf2ff;
    color: #1d4ed8;
}

.bom-tip {
    margin: 10px 2px 0;
    font-size: 12px;
    color: #64748b;
}

.bom-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.bom-result-head h3 {
    margin: 0;
    font-size: 15px;
    color: #0f172a;
}

.bom-result-head span {
    font-size: 12px;
    color: #2563eb;
    font-weight: 700;
}

.bom-result-list {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.bom-result-item {
    border: 1px solid #e4ebf5;
    border-radius: 14px;
    padding: 12px;
    background: #f8fbff;
}

.bom-result-item h4 {
    margin: 0;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-all;
}

.bom-result-desc {
    margin: 6px 0 0;
    color: #475569;
    font-size: 12px;
    line-height: 1.45;
}

.bom-result-meta {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bom-result-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #e8f0ff;
    color: #1e3a8a;
    font-size: 11px;
}

.bom-result-stock {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
}

.bom-result-stock strong {
    color: #0f172a;
    font-size: 13px;
}

.bom-result-qty {
    margin-top: 10px;
    display: inline-grid;
    grid-template-columns: 30px 72px 30px;
    align-items: center;
    gap: 6px;
}

.bom-qty-btn {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: #e2e8f0;
    color: #0f172a;
    font-size: 16px;
    font-weight: 700;
}

[data-bom-qty-input] {
    width: 72px;
    height: 30px;
    border: 1px solid #d1dbe8;
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    color: #0f172a;
    background: #fff;
}

.bom-result-foot {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.bom-result-foot strong {
    color: #dc2626;
    font-size: 17px;
}

.bom-result-foot a {
    min-width: 76px;
    height: 30px;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bom-result-foot-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bom-cart-btn {
    min-width: 92px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.bom-empty {
    padding: 18px 12px;
    border-radius: 12px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
    background: #f8fafc;
}

@media (max-width: 340px) {
    .home-entry-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .home-category-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px 8px;
    }

    .home-promo-grid {
        grid-template-columns: 1fr;
    }

    .home-product-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .home-hero-card h1 {
        font-size: 24px;
    }
}

/* Category Page */
.category-page {
    padding-bottom: 112px;
}

.category-header {
    padding: 14px 18px 18px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 32%),
        linear-gradient(180deg, #eb5549 0%, #df4336 100%);
}

.category-status {
    color: #fff;
}

.category-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.category-back,
.category-more {
    min-width: 52px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.category-title-block {
    text-align: center;
    color: #fff;
}

.category-title-block strong {
    display: block;
    font-size: 17px;
    letter-spacing: -0.01em;
}

.category-title-block span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.category-search {
    margin-top: 18px;
    height: 48px;
    border-radius: 999px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    box-shadow: 0 14px 30px rgba(188, 43, 31, 0.18);
}

.category-search-icon {
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
}

.category-search-text {
    flex: 1;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text-hint);
    font-size: 14px;
}

.category-search-text::placeholder {
    color: var(--text-hint);
}

.category-search-submit {
    height: 32px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: rgba(223, 67, 54, 0.12);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.category-main {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: calc(100vh - 220px);
}

.category-sidebar {
    padding: 12px 10px 18px;
    background: #f1f4f8;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-tab {
    min-height: 54px;
    padding: 10px 8px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.35;
}

.category-tab.active {
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(24, 36, 54, 0.06);
}

.category-content {
    padding: 14px 14px 0;
}

.category-hero {
    padding: 18px;
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 32%),
        linear-gradient(145deg, #222d3b 0%, #39485a 100%);
    box-shadow: 0 18px 30px rgba(24, 36, 54, 0.12);
}

.category-hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 12px;
    font-weight: 700;
}

.category-hero h1 {
    margin: 14px 0 0;
    font-size: 26px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.category-hero p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.7;
}

.category-block {
    margin-top: 16px;
    padding: 18px 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 28px rgba(24, 36, 54, 0.07);
}

.category-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.category-block-head h3 {
    margin: 0;
    color: var(--text);
    font-size: 17px;
}

.category-block-head a {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.category-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 10px;
}

.category-mini-card {
    padding: 14px 10px 12px;
    border-radius: 18px;
    background: #f8fafd;
    text-align: center;
}

.category-mini-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.category-mini-card span {
    display: block;
    margin-top: 10px;
    color: var(--text);
    font-size: 12px;
    line-height: 1.4;
}

.category-empty {
    grid-column: 1 / -1;
    padding: 18px 14px;
    border-radius: 18px;
    background: #f8fafd;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}

.category-mini-red {
    background: linear-gradient(145deg, #ff8677 0%, #df4336 100%);
}

.category-mini-gold {
    background: linear-gradient(145deg, #f3b456 0%, #d78a17 100%);
}

.category-mini-blue {
    background: linear-gradient(145deg, #5e9dff 0%, #3d73e0 100%);
}

.category-mini-green {
    background: linear-gradient(145deg, #41c790 0%, #159d67 100%);
}

.category-mini-violet {
    background: linear-gradient(145deg, #9c88ff 0%, #6e5de7 100%);
}

.category-mini-cyan {
    background: linear-gradient(145deg, #4ec8e8 0%, #1aa2c8 100%);
}

.category-brand-list {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-brand-chip {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f6f8fb;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.category-hot-list {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.category-hot-card {
    padding: 14px;
    border-radius: 18px;
    background: #f8fafd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.category-hot-card strong {
    display: block;
    color: var(--text);
    font-size: 15px;
}

.category-hot-card p {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.55;
}

.category-hot-card span {
    flex-shrink: 0;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

/* Cart Page */
.cart-page {
    padding-bottom: 168px;
}

.cart-header {
    padding: 14px 18px 18px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 32%),
        linear-gradient(180deg, #eb5549 0%, #df4336 60%, #f4f6fb 60%, #f4f6fb 100%);
}

.cart-status {
    color: #fff;
}

.cart-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.cart-back,
.cart-manage {
    min-width: 52px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.cart-title-block {
    text-align: center;
    color: #fff;
}

.cart-title-block strong {
    display: block;
    font-size: 17px;
    letter-spacing: -0.01em;
}

.cart-title-block span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.cart-summary-card {
    margin-top: 18px;
    padding: 22px 20px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0) 34%),
        linear-gradient(145deg, #ffffff 0%, #fff7f5 56%, #fff0ed 100%);
    box-shadow: 0 24px 40px rgba(188, 43, 31, 0.12);
}

.cart-summary-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.cart-summary-card h1 {
    margin: 14px 0 0;
    color: var(--text);
    font-size: 28px;
    line-height: 1.28;
    letter-spacing: -0.03em;
}

.cart-summary-card p {
    margin: 10px 0 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.cart-summary-metrics {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.cart-summary-metric {
    padding: 14px 12px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 20px rgba(24, 36, 54, 0.06);
}

.cart-summary-metric strong {
    display: block;
    color: var(--text);
    font-size: 18px;
    line-height: 1.2;
    white-space: nowrap;
}

.cart-summary-metric > span {
    display: block;
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 12px;
}

.cart-body {
    padding: 4px 18px 0;
}

.cart-store-card,
.cart-benefit-card,
.cart-note-card {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 28px rgba(24, 36, 54, 0.07);
}

.cart-store-card {
    padding: 16px;
}

.cart-store-head {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 14px;
}

.cart-store-head strong {
    font-size: 15px;
}

.cart-store-head span {
    margin-left: auto;
    color: var(--text-secondary);
    font-size: 12px;
}

.cart-item {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(217, 224, 232, 0.8);
    position: relative;
}

.cart-check {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 2px solid #cfd6de;
    background: #fff;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cart-check.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.cart-check.active {
    border-color: var(--primary);
    background: var(--primary);
}

.cart-check.active::after {
    content: "✓";
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    transform: translateY(-0.5px);
}

.cart-item-remove {
    position: absolute;
    top: 14px;
    right: 0;
    height: 28px;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    background: #eef2f7;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.cart-item-media {
    min-height: 102px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    font-size: 18px;
    font-weight: 700;
    background: #f3f6fb;
    border: 1px solid rgba(217, 224, 232, 0.85);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.cart-item-info {
    min-width: 0;
}

.cart-item-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.cart-item-tag-gray {
    background: #f3f6fb;
    color: #5d6978;
}

.cart-item-info h3 {
    margin: 10px 0 0;
    color: var(--text);
    font-size: 17px;
    line-height: 1.45;
}

.cart-item-title-link {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    max-width: 100%;
}

.cart-item-title-link:active {
    opacity: 0.8;
}

.cart-item-brand {
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.cart-item-info p {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.cart-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    font-size: 12px;
}

.cart-item-oos {
    color: #df4336;
    font-weight: 700;
}

.cart-item-meta span:first-child {
    color: var(--success);
}

.cart-item-meta span:last-child {
    color: var(--text-hint);
}

.cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.cart-price {
    color: var(--primary);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.cart-stepper {
    min-width: 98px;
    height: 34px;
    padding: 0 6px;
    border-radius: 999px;
    background: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--text);
    font-size: 13px;
}

.cart-stepper span,
.cart-stepper strong {
    width: 24px;
    text-align: center;
}

.cart-stepper input[data-cart-qty-input] {
    width: 74px;
    height: 24px;
    border: 0;
    border-radius: 8px;
    text-align: right;
    padding: 0 6px;
    background: #fff;
    color: var(--text);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.cart-stepper span[data-cart-dec],
.cart-stepper span[data-cart-inc] {
    cursor: pointer;
    user-select: none;
}

.cart-empty {
    margin-top: 14px;
    border-radius: 16px;
    padding: 16px 14px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    background: #f8fafc;
}

.cart-benefit-card {
    margin-top: 10px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cart-benefit-left strong {
    display: block;
    color: var(--text);
    font-size: 16px;
}

.cart-benefit-left p {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.65;
}

.cart-benefit-link {
    flex-shrink: 0;
    min-width: 68px;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.cart-note-card {
    margin-top: 16px;
    padding: 18px;
}

.cart-note-title {
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
}

.cart-note-card p {
    margin: 10px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.75;
}

.cart-checkout-bar {
    position: fixed;
    left: 50%;
    bottom: 68px;
    transform: translateX(-50%);
    width: min(100%, 430px);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(217, 224, 232, 0.7);
    box-shadow: 0 -8px 24px rgba(24, 36, 54, 0.05);
    z-index: 30;
}

.cart-checkout-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.cart-checkout-left strong {
    display: block;
    color: var(--text);
    font-size: 14px;
}

.cart-checkout-left span {
    display: block;
    margin-top: 4px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.home-product-price-row {
    align-items: center;
}

.home-product-cart-btn {
    margin-left: auto;
    min-width: 84px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff8677 0%, #df4336 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.home-product-cart-btn.is-disabled,
.search-result-cart-btn.is-disabled,
.bom-cart-btn.is-disabled {
    background: #94a3b8 !important;
    color: #e2e8f0 !important;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

.cart-checkout-btn {
    min-width: 118px;
    height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff8677 0%, #df4336 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(223, 67, 54, 0.24);
}

.cart-checkout-btn.is-disabled {
    background: #94a3b8;
    box-shadow: none;
    pointer-events: none;
}

@media (max-width: 480px) {
    .cart-checkout-bar {
        width: 100%;
        max-width: none;
        box-shadow: none;
    }
}

/* Checkout Page */
.checkout-page {
    padding-bottom: 182px;
}

.checkout-header {
    padding: 14px 18px 18px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 32%),
        linear-gradient(180deg, #eb5549 0%, #df4336 60%, #f4f6fb 60%, #f4f6fb 100%);
}

.checkout-status {
    color: #fff;
}

.checkout-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.checkout-back,
.checkout-action {
    min-width: 52px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.checkout-title-block {
    text-align: center;
    color: #fff;
}

.checkout-title-block strong {
    display: block;
    font-size: 17px;
    letter-spacing: -0.01em;
}

.checkout-title-block span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.checkout-summary-card,
.checkout-section {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 28px rgba(24, 36, 54, 0.08);
}

.checkout-summary-card {
    margin-top: 18px;
    padding: 22px 20px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0) 34%),
        linear-gradient(145deg, #ffffff 0%, #fff7f5 56%, #fff0ed 100%);
}

.checkout-summary-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.checkout-summary-card h1 {
    margin: 14px 0 0;
    color: var(--text);
    font-size: 28px;
    line-height: 1.28;
    letter-spacing: -0.03em;
}

.checkout-summary-card p {
    margin: 10px 0 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.checkout-summary-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.checkout-summary-item {
    padding: 14px 10px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 20px rgba(24, 36, 54, 0.06);
    text-align: center;
}

.checkout-summary-item strong {
    display: block;
    color: var(--text);
    font-size: 18px;
    line-height: 1.1;
    white-space: nowrap;
}

.checkout-summary-item > span {
    display: block;
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 12px;
}

.checkout-body {
    padding: 4px 18px 0;
}

.checkout-plain-section {
    margin-top: 18px;
    padding: 0;
    background: transparent;
}

.checkout-plain-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkout-plain-head-with-link {
    justify-content: space-between;
}

.checkout-plain-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkout-plain-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7bb04a;
    flex: 0 0 auto;
}

.checkout-plain-head h3 {
    margin: 0;
    color: #111827;
    font-size: 18px;
    font-weight: 700;
}

.checkout-inline-link {
    border: 0;
    background: transparent;
    color: #2563eb;
    font-size: 13px;
    cursor: pointer;
    padding: 0;
}

.checkout-section {
    margin-top: 16px;
    padding: 18px 16px;
}

.checkout-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.checkout-section-head h3 {
    margin: 0;
    color: var(--text);
    font-size: 17px;
}

.checkout-section-head a,
.checkout-section-head span {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.checkout-order-note-input {
    width: 100%;
    margin-top: 12px;
    min-height: 88px;
    border-radius: 14px;
    border: 1px solid rgba(217, 224, 232, 0.88);
    background: #fff;
    color: var(--text);
    font-size: 13px;
    line-height: 1.7;
    padding: 12px 14px;
    resize: vertical;
}

.checkout-order-note-input:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.checkout-address-card {
    margin-top: 14px;
    padding: 16px;
    border-radius: 20px;
    background: #f8fafd;
}

.checkout-address-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.checkout-address-top strong {
    color: var(--text);
    font-size: 15px;
}

.checkout-address-tag {
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
}

.checkout-address-card p {
    margin: 10px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
}

.checkout-delivery-toggle {
    margin-top: 14px;
    display: flex;
    gap: 12px;
    padding-left: 16px;
}

.checkout-delivery-toggle label {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.checkout-delivery-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkout-delivery-toggle span {
    display: block;
    text-align: center;
    padding: 10px 0;
    border: 1px solid #9ca3af;
    border-radius: 0;
    background: #fff;
    color: #111827;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    transition: all 0.2s;
}

.checkout-delivery-toggle input:checked + span {
    border-color: #df4336;
    color: #df4336;
    background: #fff;
    font-weight: 700;
}

.checkout-delivery-toggle input:checked + span::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 18px;
    height: 18px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="%23df4336" d="M20 20V0L0 20h20z"/><path fill="%23fff" d="M15 13.5l-4.5 4.5-2.5-2.5 1.5-1.5 1 1 3-3z"/></svg>') no-repeat right bottom;
    border-bottom-right-radius: 0;
}

.checkout-address-list,
.checkout-pickup-block {
    margin-top: 14px;
    background: #fff;
}

.checkout-address-row,
.checkout-pickup-row {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    margin-bottom: 10px;
}

.checkout-address-row-main,
.checkout-pickup-row-main {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 6px;
}

.checkout-address-row strong,
.checkout-pickup-row strong {
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.checkout-address-row p,
.checkout-pickup-row p,
.checkout-pickup-note {
    margin: 0;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.7;
}

.checkout-address-row-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-address-chip {
    min-width: 140px;
    min-height: 28px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    font-size: 13px;
    line-height: 1.2;
    position: relative;
}

.checkout-address-row.is-active .checkout-address-chip {
    border-color: #ef4444;
}

.checkout-address-row.is-active .checkout-address-chip::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 18px;
    height: 18px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox=\"0 0 20 20\"><path fill=\"%23ef4444\" d=\"M20 20V0L0 20h20z\"/><path fill=\"%23fff\" d=\"M15 13.5l-4.5 4.5-2.5-2.5 1.5-1.5 1 1 3-3z\"/></svg>') no-repeat right bottom;
}

.checkout-default-tag,
.checkout-pickup-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 8px;
    background: #ef4444;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.checkout-pickup-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkout-pickup-head strong {
    color: #111827;
    font-size: 15px;
    font-weight: 700;
}

.checkout-pickup-time-row {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    color: #111827;
    font-size: 14px;
}

.checkout-pickup-time-row strong {
    color: #111827;
    font-size: 15px;
}

.checkout-pickup-list {
    margin-top: 14px;
}

.checkout-pickup-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #fff;
    flex: 0 0 auto;
}

.checkout-pickup-row.is-active .checkout-pickup-radio {
    border: 6px solid #ef4444;
}

.checkout-empty-line {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.8;
    padding-left: 16px;
}

.checkout-form-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 10px;
}

.checkout-field {
    display: grid;
    gap: 8px;
}

.checkout-field-full {
    grid-column: 1 / -1;
}

.checkout-field span {
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.checkout-field input,
.checkout-field select,
.checkout-field textarea {
    width: 100%;
    border: 1px solid rgba(217, 224, 232, 0.88);
    border-radius: 16px;
    background: #f8fafd;
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    padding: 13px 14px;
    outline: none;
}

.checkout-field select {
    appearance: none;
}

.checkout-field textarea {
    resize: vertical;
    min-height: 88px;
    line-height: 1.65;
}

.checkout-field-help {
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafd;
    border: 1px solid rgba(217, 224, 232, 0.88);
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.6;
}

.checkout-field-help.warning {
    color: #b45309;
    background: #fff8eb;
    border-color: rgba(253, 186, 116, 0.55);
}

.checkout-field input:focus,
.checkout-field select:focus,
.checkout-field textarea:focus {
    border-color: rgba(223, 67, 54, 0.44);
    box-shadow: 0 0 0 3px rgba(223, 67, 54, 0.08);
}

.checkout-radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.checkout-radio {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafd;
    border: 1px solid rgba(217, 224, 232, 0.88);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.checkout-radio input {
    margin: 0;
}

.checkout-radio em {
    font-style: normal;
}

.checkout-edit-card {
    width: 100%;
    margin-top: 14px;
    padding: 16px;
    border: 1px solid rgba(217, 224, 232, 0.86);
    border-radius: 20px;
    background: #f8fafd;
    text-align: left;
    color: inherit;
}

.checkout-edit-card span,
.checkout-edit-card strong,
.checkout-edit-card p,
.checkout-edit-card em {
    display: block;
}

.checkout-edit-label {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.checkout-edit-card strong {
    margin-top: 10px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.45;
}

.checkout-edit-card p {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.65;
}

.checkout-edit-card em {
    margin-top: 12px;
    color: var(--text-hint);
    font-size: 12px;
    font-style: normal;
}

.checkout-modal[hidden] {
    display: none;
}

.checkout-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
}

.checkout-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(28, 36, 48, 0.38);
}

.checkout-modal-sheet {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(100%, 430px);
    max-height: 82vh;
    overflow-y: auto;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
    border-radius: 28px 28px 0 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -18px 32px rgba(24, 36, 54, 0.12);
}

.checkout-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.checkout-modal-head strong {
    color: var(--text);
    font-size: 18px;
}

.checkout-modal-head button {
    min-width: 52px;
    height: 34px;
    padding: 0 12px;
    border: none;
    border-radius: 999px;
    background: #f3f6fb;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
}

.checkout-modal-head-actions {
    display: flex;
    gap: 8px;
}

.checkout-modal-actions {
    margin-top: 6px;
    display: flex;
    gap: 10px;
}

.checkout-modal-cancel,
.checkout-modal-save {
    flex: 1;
    height: 44px;
    border: none;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.checkout-modal-cancel {
    background: #f3f6fb;
    color: var(--text);
}

.checkout-modal-save {
    background: linear-gradient(135deg, #ff8677 0%, #df4336 100%);
    color: #fff;
    box-shadow: 0 10px 20px rgba(223, 67, 54, 0.2);
}

.checkout-address-form-pc {
    margin-top: 10px;
    grid-template-columns: 1fr;
    gap: 10px;
}

.checkout-address-form-pc .checkout-field-line {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

.checkout-address-form-pc .checkout-field-line > span {
    color: #111827;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-align: right;
}

.checkout-address-form-pc .checkout-field-line input,
.checkout-address-form-pc .checkout-field-line select {
    border-radius: 0;
    border: 1px solid #d1d5db;
    background: #fff;
    padding: 8px 10px;
    font-size: 13px;
    min-height: 38px;
}

.checkout-address-form-pc .checkout-field-line input:focus,
.checkout-address-form-pc .checkout-field-line select:focus {
    border-color: #ef4444;
    box-shadow: none;
}

.checkout-region-group {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 8px;
}

.checkout-address-form-pc .checkout-modal-actions {
    margin-top: 10px;
    justify-content: flex-start;
}

.checkout-address-form-pc .checkout-modal-save,
.checkout-address-form-pc .checkout-modal-cancel {
    min-height: 38px;
    border-radius: 4px;
    max-width: 96px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: none;
}

.checkout-address-form-pc .checkout-modal-save {
    background: #ef4444;
}

.checkout-address-form-pc .checkout-modal-cancel {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.checkout-option-list {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.checkout-option-item {
    padding: 14px;
    border-radius: 18px;
    background: #f8fafd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.checkout-option-item strong {
    display: block;
    color: var(--text);
    font-size: 15px;
}

.checkout-option-item p {
    margin: 6px 0 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.65;
}

.checkout-option-value {
    flex-shrink: 0;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.checkout-goods-list {
    margin-top: 14px;
    display: grid;
    gap: 12px;
}

.checkout-goods-item {
    padding: 16px;
    border-radius: 20px;
    background: #f8fafd;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.checkout-goods-info {
    min-width: 0;
}

.checkout-goods-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
}

.checkout-goods-info h4 {
    margin: 10px 0 0;
    color: var(--text);
    font-size: 16px;
    line-height: 1.45;
}

.checkout-goods-info p {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.65;
}

.checkout-goods-bottom {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.checkout-goods-bottom span {
    color: var(--text-secondary);
    font-size: 12px;
}

.checkout-goods-bottom strong {
    color: var(--primary);
    font-size: 16px;
}

.checkout-total-list {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.checkout-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 13px;
}

.checkout-total-row strong {
    color: var(--text);
    font-size: 14px;
}

.checkout-total-row.total {
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid rgba(217, 224, 232, 0.82);
}

.checkout-total-row.total span,
.checkout-total-row.total strong {
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
}

.checkout-note {
    margin-top: 14px;
    padding: 14px;
    border-radius: 18px;
    background: #f8fafd;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.7;
}

.checkout-submit-bar {
    position: fixed;
    left: 50%;
    bottom: 68px;
    transform: translateX(-50%);
    width: min(100%, 430px);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(217, 224, 232, 0.72);
    box-shadow: 0 -8px 24px rgba(24, 36, 54, 0.05);
    z-index: 30;
}

.checkout-submit-left strong {
    display: block;
    color: var(--text);
    font-size: 14px;
}

.checkout-submit-left span {
    display: block;
    margin-top: 4px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.checkout-submit-btn {
    min-width: 126px;
    height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff8677 0%, #df4336 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(223, 67, 54, 0.24);
}

/* Payment Page */
.payment-page {
    padding-bottom: 182px;
}

.payment-header {
    padding: 14px 18px 18px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 32%),
        linear-gradient(180deg, #eb5549 0%, #df4336 60%, #f4f6fb 60%, #f4f6fb 100%);
}

.payment-status {
    color: #fff;
}

.payment-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.payment-back,
.payment-action {
    min-width: 52px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.payment-title-block {
    text-align: center;
    color: #fff;
}

.payment-title-block strong {
    display: block;
    font-size: 17px;
    letter-spacing: -0.01em;
}

.payment-title-block span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.payment-summary-card,
.payment-section {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 28px rgba(24, 36, 54, 0.08);
}

.payment-summary-card {
    margin-top: 18px;
    padding: 22px 20px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0) 34%),
        linear-gradient(145deg, #ffffff 0%, #fff7f5 56%, #fff0ed 100%);
}

.payment-summary-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.payment-summary-card h1 {
    margin: 14px 0 0;
    color: var(--text);
    font-size: 28px;
    line-height: 1.28;
    letter-spacing: -0.03em;
}

.payment-summary-card p {
    margin: 10px 0 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.payment-body {
    padding: 4px 18px 0;
}

.payment-section {
    margin-top: 16px;
    padding: 18px 16px;
}

.payment-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.payment-section-head h3 {
    margin: 0;
    color: var(--text);
    font-size: 17px;
}

.payment-section-head span {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.payment-method-list {
    margin-top: 14px;
    display: grid;
    gap: 12px;
}

.payment-method-card {
    padding: 16px;
    border-radius: 20px;
    border: 1px solid transparent;
    background: #f8fafd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    cursor: pointer;
    text-align: left;
    appearance: none;
}

.payment-method-card.is-active {
    border-color: rgba(223, 67, 54, 0.28);
    background: #fff5f3;
}

.payment-method-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.payment-method-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.payment-method-red {
    background: linear-gradient(145deg, #ff8677 0%, #df4336 100%);
}

.payment-method-blue {
    background: linear-gradient(145deg, #5e9dff 0%, #3d73e0 100%);
}

.payment-method-dark {
    background: linear-gradient(145deg, #2b3746 0%, #1d2735 100%);
}

.payment-method-main strong {
    display: block;
    color: var(--text);
    font-size: 15px;
}

.payment-method-main p {
    margin: 6px 0 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.6;
}

.payment-method-check {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 2px solid #cfd6de;
    background: #fff;
    flex-shrink: 0;
}

.payment-method-check.active {
    border-color: var(--primary);
    background: linear-gradient(145deg, #ff8677 0%, #df4336 100%);
    box-shadow: inset 0 0 0 4px #fff;
}

.payment-note {
    margin-top: 14px;
    padding: 14px;
    border-radius: 18px;
    background: #f8fafd;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.7;
}

.payment-submit-bar {
    position: fixed;
    left: 50%;
    bottom: 68px;
    transform: translateX(-50%);
    width: min(100%, 430px);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(217, 224, 232, 0.72);
    box-shadow: 0 -8px 24px rgba(24, 36, 54, 0.05);
    z-index: 30;
}

.payment-submit-left strong {
    display: block;
    color: var(--text);
    font-size: 14px;
}

.payment-submit-left span {
    display: block;
    margin-top: 4px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.payment-submit-btn {
    min-width: 126px;
    height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff8677 0%, #df4336 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(223, 67, 54, 0.24);
}

/* Wechat Cashier Page */
.wechat-pay-page {
    padding-bottom: 182px;
}

.wechat-pay-header {
    padding: 14px 18px 18px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 32%),
        linear-gradient(180deg, #14b36a 0%, #07a155 60%, #f4f6fb 60%, #f4f6fb 100%);
}

.wechat-pay-status {
    color: #fff;
}

.wechat-pay-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.wechat-pay-back,
.wechat-pay-action {
    min-width: 52px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.wechat-pay-title-block {
    text-align: center;
    color: #fff;
}

.wechat-pay-title-block strong {
    display: block;
    font-size: 17px;
    letter-spacing: -0.01em;
}

.wechat-pay-title-block span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 12px;
}

.wechat-pay-summary-card,
.wechat-pay-section {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 28px rgba(24, 36, 54, 0.08);
}

.wechat-pay-summary-card {
    margin-top: 18px;
    padding: 22px 20px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 34%),
        linear-gradient(145deg, #ffffff 0%, #f6fffa 56%, #ebfff5 100%);
}

.wechat-pay-summary-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(7, 161, 85, 0.12);
    color: #07a155;
    font-size: 12px;
    font-weight: 700;
}

.wechat-pay-summary-card h1 {
    margin: 14px 0 0;
    color: var(--text);
    font-size: 28px;
    line-height: 1.28;
    letter-spacing: -0.03em;
}

.wechat-pay-summary-card p {
    margin: 10px 0 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.wechat-pay-body {
    padding: 4px 18px 0;
}

.wechat-pay-section {
    margin-top: 16px;
    padding: 18px 16px;
}

.wechat-pay-qr-panel {
    border-radius: 18px;
    border: 1px solid rgba(7, 161, 85, 0.14);
    background: linear-gradient(180deg, #ffffff 0%, #f7fffb 100%);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.wechat-pay-qr-panel.is-hidden,
.wechat-pay-frame-wrap.is-hidden {
    display: none;
}

.wechat-pay-qr-image {
    width: min(100%, 260px);
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    display: block;
}

.wechat-pay-qr-tip {
    margin: 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.6;
}

.wechat-pay-frame-wrap {
    margin-top: 12px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(7, 161, 85, 0.12);
    background: #fff;
    min-height: 300px;
}

.wechat-pay-frame {
    width: 100%;
    min-height: 300px;
    border: 0;
    display: block;
    background: #fff;
}

.wechat-pay-note {
    margin-top: 14px;
    padding: 14px;
    border-radius: 18px;
    background: #f8fafd;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.7;
}

.wechat-pay-submit-bar {
    position: fixed;
    left: 50%;
    bottom: 68px;
    transform: translateX(-50%);
    width: min(100%, 430px);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(217, 224, 232, 0.72);
    box-shadow: 0 -8px 24px rgba(24, 36, 54, 0.05);
    z-index: 30;
}

.wechat-pay-btn {
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.wechat-pay-btn-light {
    background: #f1f5f9;
    color: #334155;
}

.wechat-pay-btn-primary {
    background: linear-gradient(135deg, #22c677 0%, #07a155 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(7, 161, 85, 0.24);
}

/* Offline Cashier Page */
.offline-pay-page {
    padding-bottom: 182px;
}

.offline-pay-header {
    padding: 14px 18px 18px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 32%),
        linear-gradient(180deg, #3f6de0 0%, #3158bf 60%, #f4f6fb 60%, #f4f6fb 100%);
}

.offline-pay-status { color: #fff; }

.offline-pay-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.offline-pay-back,
.offline-pay-action {
    min-width: 52px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.offline-pay-title-block { text-align: center; color: #fff; }
.offline-pay-title-block strong { display: block; font-size: 17px; letter-spacing: -0.01em; }
.offline-pay-title-block span { display: block; margin-top: 4px; color: rgba(255,255,255,.84); font-size: 12px; }

.offline-pay-summary-card,
.offline-pay-section {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 28px rgba(24, 36, 54, 0.08);
}

.offline-pay-summary-card {
    margin-top: 18px;
    padding: 22px 20px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 34%),
        linear-gradient(145deg, #ffffff 0%, #f7faff 56%, #edf3ff 100%);
}

.offline-pay-summary-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(49, 88, 191, 0.12);
    color: #3158bf;
    font-size: 12px;
    font-weight: 700;
}

.offline-pay-summary-card h1 {
    margin: 14px 0 0;
    color: var(--text);
    font-size: 28px;
    line-height: 1.28;
    letter-spacing: -0.03em;
}

.offline-pay-summary-card p {
    margin: 10px 0 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.offline-pay-body { padding: 4px 18px 0; }
.offline-pay-section { margin-top: 16px; padding: 18px 16px; }

.offline-pay-bank-card,
.offline-pay-voucher-card {
    border-radius: 18px;
    border: 1px solid rgba(49, 88, 191, 0.12);
    background: #fff;
    padding: 14px;
}

.offline-pay-bank-card h3,
.offline-pay-voucher-card h4 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 15px;
}

.offline-pay-bank-card p,
.offline-pay-voucher-card p {
    margin: 6px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.offline-pay-bank-tip {
    margin-top: 10px !important;
    color: #3158bf !important;
}

.offline-pay-voucher-card {
    margin-top: 12px;
}

.offline-pay-note {
    margin-top: 12px;
    padding: 12px;
    border-radius: 14px;
    background: #f8fafd;
    color: var(--text-secondary);
    font-size: 12px;
}

.offline-pay-submit-bar {
    position: fixed;
    left: 50%;
    bottom: 68px;
    transform: translateX(-50%);
    width: min(100%, 430px);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(217, 224, 232, 0.72);
    box-shadow: 0 -8px 24px rgba(24, 36, 54, 0.05);
    z-index: 30;
}

.offline-pay-btn {
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.offline-pay-btn.is-disabled {
    opacity: 0.55;
    pointer-events: none;
}

.offline-pay-btn-light {
    background: #f1f5f9;
    color: #334155;
}

.offline-pay-btn-primary {
    background: linear-gradient(135deg, #5f84eb 0%, #3158bf 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(49, 88, 191, 0.24);
}

@media (max-width: 480px) {
    .checkout-submit-bar {
        width: 100%;
        max-width: none;
        box-shadow: none;
    }

    .checkout-modal-sheet {
        width: 100%;
        max-width: none;
        border-radius: 26px 26px 0 0;
    }

    .payment-submit-bar {
        width: 100%;
        max-width: none;
        box-shadow: none;
    }

    .wechat-pay-submit-bar {
        width: 100%;
        max-width: none;
        box-shadow: none;
    }

    .offline-pay-submit-bar {
        width: 100%;
        max-width: none;
        box-shadow: none;
    }
}

@media (max-width: 340px) {
    .checkout-summary-grid {
        grid-template-columns: 1fr;
    }

    .checkout-goods-item,
    .checkout-submit-bar {
        grid-template-columns: 1fr;
    }

    .checkout-submit-bar {
        display: grid;
    }

    .checkout-form-grid,
    .payment-submit-bar {
        grid-template-columns: 1fr;
    }

    .payment-submit-bar {
        display: grid;
    }

    .wechat-pay-submit-bar {
        grid-template-columns: 1fr;
    }

    .offline-pay-submit-bar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {
    .home-body,
    .category-body,
    .cart-body,
    .checkout-body,
    .payment-body,
    .wechat-pay-body,
    .offline-pay-body,
    .my-body,
    .login-body,
    .account-body,
    .search-body,
    .brand-body,
    .brand-list-body,
    .article-recommend,
    .article-card {
        padding-left: clamp(14px, 3.8vw, 18px);
        padding-right: clamp(14px, 3.8vw, 18px);
    }
}

/* My Page */
.my-page {
    padding-bottom: 112px;
}

.my-header {
    padding: 14px 18px 22px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 30%),
        linear-gradient(180deg, #eb5549 0%, #df4336 58%, #f4f6fb 58%, #f4f6fb 100%);
}

.my-status {
    color: #fff;
}

.my-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    gap: 12px;
}

.my-title-block {
    color: #fff;
}

.my-title-block strong {
    display: block;
    font-size: 19px;
    letter-spacing: -0.01em;
}

.my-title-block span {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.my-top-actions {
    display: flex;
    gap: 10px;
}

.my-top-action {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border: 0;
}

.my-profile-card {
    margin-top: 18px;
    padding: 22px 20px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 34%),
        linear-gradient(145deg, #ffffff 0%, #fff8f7 56%, #fff1ee 100%);
    box-shadow: 0 24px 40px rgba(188, 43, 31, 0.12);
}

.my-profile-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.my-avatar {
    width: 58px;
    height: 58px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #ff8a7a 0%, #df4336 100%);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    box-shadow: 0 14px 26px rgba(223, 67, 54, 0.22);
}

.my-profile-info {
    min-width: 0;
    flex: 1;
}

.my-profile-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.my-profile-info h1 {
    margin: 12px 0 0;
    color: var(--text);
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.my-profile-info p {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.65;
}

.my-profile-link {
    flex-shrink: 0;
    min-width: 72px;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f8fb;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.my-overview-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.my-overview-item {
    display: block;
    padding: 14px 10px;
    border-radius: 20px;
    text-align: center;
    background: #fff;
    box-shadow: 0 10px 18px rgba(24, 36, 54, 0.06);
}

.my-overview-item strong {
    display: block;
    color: var(--text);
    font-size: 18px;
    line-height: 1.1;
}

.my-overview-item span {
    display: block;
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 12px;
}

.my-overview-item.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    user-select: none;
    pointer-events: none;
}

.my-body {
    padding: 0 18px;
}

.my-section {
    margin-top: 16px;
    padding: 18px 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 28px rgba(24, 36, 54, 0.07);
}

.my-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.my-section-head h3 {
    margin: 0;
    color: var(--text);
    font-size: 17px;
}

.my-section-head a {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.my-order-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 8px;
}

.my-order-item {
    text-align: center;
}

.my-order-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.my-order-red {
    background: linear-gradient(145deg, #ff8677 0%, #df4336 100%);
}

.my-order-gold {
    background: linear-gradient(145deg, #f3b456 0%, #d78a17 100%);
}

.my-order-blue {
    background: linear-gradient(145deg, #5e9dff 0%, #3d73e0 100%);
}

.my-order-green {
    background: linear-gradient(145deg, #41c790 0%, #159d67 100%);
}

.my-order-item span {
    display: block;
    margin-top: 10px;
    color: var(--text);
    font-size: 12px;
    line-height: 1.4;
}

.my-tool-list {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.my-tool-card {
    padding: 14px;
    border-radius: 18px;
    background: #f8fafd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.my-tool-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.my-tool-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.my-tool-main strong {
    display: block;
    color: var(--text);
    font-size: 15px;
}

.my-tool-main p {
    margin: 6px 0 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.6;
}

.my-tool-arrow {
    flex-shrink: 0;
    color: var(--text-hint);
    font-size: 16px;
}

.my-vip-card {
    margin-top: 16px;
    padding: 18px;
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 32%),
        linear-gradient(145deg, #222d3b 0%, #39485a 100%);
    box-shadow: 0 18px 30px rgba(24, 36, 54, 0.12);
}

.my-vip-card strong {
    display: block;
    font-size: 18px;
}

.my-vip-card p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    line-height: 1.7;
}

.my-vip-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    height: 34px;
    padding: 0 14px;
    margin-top: 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.my-logout-card {
    margin-top: 16px;
}

.my-logout-btn {
    width: 100%;
    height: 48px;
    border: 1px solid rgba(223, 67, 54, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
}

.login-page {
    min-height: 100vh;
    padding-bottom: 40px;
    background:
        radial-gradient(circle at top left, rgba(255, 235, 231, 0.92) 0%, rgba(255, 235, 231, 0) 26%),
        radial-gradient(circle at top right, rgba(233, 242, 255, 0.78) 0%, rgba(233, 242, 255, 0) 24%),
        linear-gradient(180deg, #f9fbff 0%, #f3f6fb 100%);
}

.login-header {
    padding: 14px 18px 56px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 30%),
        linear-gradient(180deg, #eb5549 0%, #df4336 72%, #f4f6fb 72%, #f4f6fb 100%);
}

.login-status {
    color: #fff;
}

.login-topbar {
    margin-top: 14px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
}

.login-back,
.login-help {
    min-width: 54px;
    height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.login-title-block {
    color: #fff;
    min-width: 0;
}

.login-title-block strong {
    display: block;
    font-size: 19px;
    letter-spacing: -0.01em;
}

.login-title-block span {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.login-body {
    padding: 0 18px;
    margin-top: 42px;
}

.login-hero-card {
    padding: 18px 18px 16px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 36%),
        linear-gradient(145deg, #ffffff 0%, #fff8f7 56%, #fff1ee 100%);
    box-shadow: 0 18px 34px rgba(188, 43, 31, 0.12);
}

.login-hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.login-hero-card h1 {
    margin: 12px 0 0;
    color: var(--text);
    font-size: 20px;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.login-hero-card p {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
}

.login-card {
    margin-top: 14px;
    padding: 18px 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 28px rgba(24, 36, 54, 0.07);
}

.login-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.login-tab {
    height: 40px;
    border: 1px solid rgba(217, 224, 232, 0.9);
    border-radius: 999px;
    background: #f8fafc;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
}

.login-tab.active {
    background: var(--primary-soft);
    border-color: rgba(223, 67, 54, 0.18);
    color: var(--primary);
}

.login-form {
    margin-top: 14px;
    display: grid;
    gap: 12px;
}

.login-form-hidden {
    display: none;
}

.login-field span {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    margin-left: 2px;
}

.login-input {
    margin-top: 8px;
    height: 46px;
    padding: 0 12px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(217, 224, 232, 0.9);
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-input input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--text);
}

.login-input-split input {
    flex: 1;
    min-width: 0;
}

.login-code-btn {
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 0;
    background: rgba(223, 67, 54, 0.12);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.login-submit {
    height: 48px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #ff8677 0%, #df4336 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 14px 24px rgba(223, 67, 54, 0.22);
}

.checkout-submit-btn.is-disabled {
    background: #94a3b8;
    box-shadow: none;
    pointer-events: none;
}

.login-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.login-links a {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.login-agreement {
    margin-top: 14px;
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
}

.login-agreement a {
    color: var(--primary);
    font-weight: 700;
}

/* Account Pages */
.account-page {
    padding-bottom: 112px;
}

.account-header {
    padding: 14px 18px 30px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 32%),
        linear-gradient(180deg, #eb5549 0%, #df4336 72%, #f4f6fb 72%, #f4f6fb 100%);
}

.account-status {
    color: #fff;
}

.account-topbar {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.account-back,
.account-action {
    width: 52px;
    min-width: 52px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.account-title-block {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 34px;
    padding: 0 4px;
    text-align: center;
    color: #fff;
}

.account-title-block strong {
    display: block;
    font-size: 17px;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-title-block span {
    display: none;
}

.account-body {
    padding: 18px 18px 0;
}

.account-summary-card,
.account-section {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 28px rgba(24, 36, 54, 0.08);
}

.account-summary-card {
    padding: 20px 18px;
}

.account-summary-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.account-summary-card h1 {
    margin: 14px 0 0;
    color: var(--text);
    font-size: 26px;
    line-height: 1.28;
    letter-spacing: -0.02em;
}

.account-summary-card p {
    margin: 10px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
}

.account-summary-strip {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.account-summary-item {
    padding: 14px 10px;
    border-radius: 18px;
    background: #f8fafd;
    text-align: center;
}

.account-summary-item strong {
    display: block;
    color: var(--text);
    font-size: 17px;
}

.account-summary-item span {
    display: block;
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 12px;
}

.account-section {
    margin-top: 16px;
    padding: 18px 16px;
}

.account-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.account-section-head h3 {
    margin: 0;
    color: var(--text);
    font-size: 17px;
}

.account-section-head a,
.account-section-head span {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.account-card-list {
    margin-top: 14px;
    display: grid;
    gap: 12px;
}

.account-card {
    padding: 16px;
    border-radius: 20px;
    background: #f8fafd;
}

.account-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.account-card-tag {
    min-height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.account-card-status {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
}

.account-card h4 {
    margin: 12px 0 0;
    color: var(--text);
    font-size: 16px;
    line-height: 1.45;
}

.account-card p {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.65;
}

.account-card-meta {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.account-card-meta span {
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--text-secondary);
    font-size: 11px;
    border: 1px solid rgba(217, 224, 232, 0.78);
}

.account-card-bottom {
    margin-top: 14px;
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 10px;
}

.account-card-value {
    flex: 1 0 100%;
    color: var(--primary);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
}

.account-card-link {
    min-width: 0;
    flex: 1 1 calc(33.333% - 8px);
    height: 36px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(217, 224, 232, 0.85);
    white-space: nowrap;
}

.account-card-link.is-disabled {
    opacity: 0.55;
    pointer-events: none;
}

@media (max-width: 340px) {
    .my-order-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .my-overview-grid {
        grid-template-columns: 1fr;
    }

    .account-summary-strip {
        grid-template-columns: 1fr;
    }

    .account-card-bottom {
        display: grid;
    }
}

@media (max-width: 420px) {
    .account-card-link {
        flex-basis: calc(50% - 5px);
    }
}

@media (max-width: 340px) {
    .account-card-link {
        flex-basis: 100%;
    }
}

/* Search Page */
.search-page {
    padding-bottom: 112px;
}

.search-header {
    padding: 14px 18px 18px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 32%),
        linear-gradient(180deg, #eb5549 0%, #df4336 60%, #f4f6fb 60%, #f4f6fb 100%);
}

.search-status {
    color: #fff;
}

.search-topbar {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    align-items: center;
    gap: 10px;
}

.search-back,
.search-action-btn {
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.service-contact-section {
    margin-top: 14px;
    padding: 18px 16px;
}

.service-contact-list {
    display: grid;
    gap: 12px;
}

.service-contact-item span {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
}

.service-contact-item strong {
    display: block;
    margin-top: 6px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
}

.service-contact-item a {
    color: var(--primary);
    font-weight: 800;
}

.service-qr-card {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(217, 224, 232, 0.8);
}

.service-qr-head strong {
    display: block;
    color: var(--text);
    font-size: 16px;
}

.service-qr-head span {
    display: block;
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 12px;
}

.service-qr-frame {
    margin-top: 14px;
    border-radius: 22px;
    background: #fff;
    border: 1px dashed rgba(223, 67, 54, 0.22);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-qr-img {
    width: 220px;
    height: 220px;
    object-fit: contain;
    background: #fff;
    border-radius: 14px;
}

.search-input-shell {
    height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 24px rgba(188, 43, 31, 0.14);
}

.search-input-icon {
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
}

.search-input-text {
    flex: 1;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.search-input-text::placeholder {
    color: #99a3b5;
    font-weight: 600;
}

.search-hot-row {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.84);
    font-size: 12px;
}

.search-hot-row a {
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 12px;
}

.search-body {
    padding: 0 16px 0;
}

.search-summary-card,
.search-result-card {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 28px rgba(24, 36, 54, 0.08);
}

.search-summary-card {
    margin-top: 6px;
    padding: 18px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.search-summary-card strong {
    display: block;
    color: var(--text);
    font-size: 16px;
}

.search-summary-card p {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.6;
}

.search-summary-link {
    flex-shrink: 0;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.search-filter-row {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.search-filter-row::-webkit-scrollbar {
    display: none;
}

.search-filter-chip {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(24, 36, 54, 0.05);
    white-space: nowrap;
}

.search-filter-chip.active {
    background: var(--primary);
    color: #fff;
}

.search-sort-row {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.search-sort-label {
    color: var(--text-secondary);
    font-size: 12px;
}

.search-sort-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-sort-tags span {
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f6f8fb;
    color: var(--text-secondary);
    font-size: 11px;
}

.search-result-list {
    margin-top: 14px;
    display: grid;
    gap: 12px;
}

.search-empty {
    padding: 26px 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
    box-shadow: 0 16px 28px rgba(24, 36, 54, 0.07);
}

.search-result-card {
    padding: 18px 16px;
    border-radius: 24px;
}

.search-result-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.search-result-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.search-result-badges span {
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
}

.search-result-title {
    display: block;
    margin-top: 10px;
    color: var(--text);
    font-size: 20px;
    line-height: 1.35;
}

.search-result-desc {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.65;
}

.search-result-desc-row {
    margin-top: 8px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.search-result-desc-row .search-result-desc {
    margin: 0;
    flex: 1;
    min-width: 0;
}

.search-result-desc-brand {
    min-height: 28px;
    padding: 0 10px 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #fff3f0 0%, #ffe7e2 100%);
    box-shadow: inset 0 0 0 1px rgba(223, 67, 54, 0.1);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.search-result-desc-brand::after {
    content: "›";
    width: 16px;
    height: 16px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(223, 67, 54, 0.1);
    font-size: 12px;
    line-height: 1;
}

.search-result-subinfo {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.search-result-price-stock {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
}

.search-result-price-card {
    height: 180px;
    padding: 10px 10px 9px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background:
        radial-gradient(circle at top right, rgba(255, 232, 227, 0.72) 0%, rgba(255, 232, 227, 0) 34%),
        #fff8f6;
    border: 1px solid rgba(223, 67, 54, 0.08);
}

.search-result-price-card > span,
.search-result-stock-block > span {
    display: block;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}

.search-result-stock-card {
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
}

.search-result-stock-block {
    padding: 8px 10px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(217, 224, 232, 0.92);
}

.search-result-stock-card > .search-result-stock-block:nth-child(1) {
    background: #fafcfd; /* 极浅偏蓝/灰，区分头部 */
}

.search-result-stock-card > .search-result-stock-block:nth-child(2) {
    background: #ffffff; /* 纯白，突出核心库存数据 */
}

.search-result-stock-card > .search-result-stock-block:nth-child(3) {
    background: #f4f7fb; /* 浅灰蓝，增加按钮感 */
    border-color: rgba(217, 224, 232, 0.7);
}

.search-result-stock-meta {
    display: grid;
    gap: 6px;
}

.search-result-stock-meta div,
.search-result-stock-split div {
    padding: 1px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.search-result-stock-meta em,
.search-result-stock-split em {
    color: #4b5563;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
}

.search-result-stock-meta strong,
.search-result-stock-split strong {
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.search-result-meta-spec {
    min-height: 30px;
}

.search-result-meta-spec strong {
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    background: #f6f8fb;
}

.search-result-price-ladder {
    margin-top: 6px;
    display: grid;
    gap: 2px;
}

.search-result-price-ladder div {
    padding: 1px 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    border-bottom: 1px dashed rgba(223, 67, 54, 0.14);
}

.search-result-price-ladder em,
.search-result-price-ladder strong {
    line-height: 1.25;
}

.search-result-price-ladder em {
    color: var(--text);
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
}

.search-result-price-ladder strong {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.search-result-price-ladder div:last-child {
    border-bottom: none;
}

.search-result-stock-split {
    margin-top: 6px;
    display: grid;
    gap: 2px;
}

.search-result-stock-split div {
    border-bottom: 1px dashed rgba(148, 163, 184, 0.2);
}

.search-result-stock-split div:last-child {
    border-bottom: none;
}

.search-result-stock-sheet {
    margin-top: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-result-stock-sheet .search-result-sheet-btn {
    width: 100%;
    min-height: 36px;
    border: none;
    background: transparent;
    color: #526173;
    font-weight: 500;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.search-result-stock-sheet .search-result-sheet-btn-disabled {
    color: var(--text-hint);
    background: transparent;
}

.search-result-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(217, 224, 232, 0.75);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.search-result-qty {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-result-qty span {
    color: var(--text-secondary);
    font-size: 12px;
}

.search-result-stepper {
    min-width: 108px;
    height: 38px;
    padding: 0 6px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f6f8fb;
}

.search-result-stepper button {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.search-result-stepper strong {
    color: var(--text);
    font-size: 13px;
}

.search-result-stepper input[data-search-qty-input] {
    width: 44px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    text-align: center;
    background: #fff;
    color: var(--text);
    font-size: 13px;
}

.search-result-action-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: auto;
}

/* ========== 品牌专区页样式 ========== */
.brand-page-body {
    background: #f4f6fb;
}

.brand-page {
    padding-bottom: 40px;
}

.brand-header {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 32%),
        linear-gradient(180deg, #eb5549 0%, #df4336 64%, #f4f6fb 64%, #f4f6fb 100%);
}

.brand-body {
    padding: 0 18px 0;
}

.brand-summary-card {
    margin-top: -6px;
}

.brand-summary-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.brand-logo-pill {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #ff8a78 0%, #eb5d4f 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    box-shadow: 0 14px 24px rgba(223, 67, 54, 0.18);
}

.brand-logo-pill img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
    background: #fff;
}

.brand-summary-copy {
    min-width: 0;
    flex: 1;
}

.brand-summary-copy .home-hero-badge {
    min-width: 64px;
}

.brand-summary-copy h1 {
    margin: 10px 0 0;
    color: var(--text);
    font-size: 28px;
    line-height: 1.22;
    letter-spacing: -0.03em;
}

.brand-summary-copy p {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
}

.brand-summary-desc {
    word-break: break-word;
}

.brand-summary-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-top: 10px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.brand-summary-toggle[hidden] {
    display: none;
}

.brand-summary-metrics {
    margin-top: 18px;
}

.brand-sort-panel {
    position: sticky;
    top: 52px;
    z-index: 35;
    margin-top: 14px;
    padding: 8px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 28px rgba(24, 36, 54, 0.08);
}

.brand-sort-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.brand-sort-bar .sort-item {
    min-height: 40px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.brand-sort-bar .sort-item.active {
    background: var(--primary-soft);
    color: var(--primary);
}

.brand-sort-bar .sort-arrows {
    display: inline-flex;
    flex-direction: column;
    gap: 1px;
}

.brand-results-wrap {
    margin-top: 14px;
    padding: 0;
}

.home-entry-item {
    display: block;
    color: inherit;
    text-decoration: none;
    text-align: center;
}

/* ========== 品牌分类列表页 ========== */
.brand-list-page {
    padding-bottom: 42px;
}

.brand-list-header {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 32%),
        linear-gradient(180deg, #eb5549 0%, #df4336 64%, #f4f6fb 64%, #f4f6fb 100%);
}

.brand-list-body {
    padding: 0 18px 0;
}

.brand-list-hero {
    margin-top: -6px;
}

.brand-list-metrics {
    margin-top: 16px;
}

.brand-hot-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.brand-hot-card {
    min-height: 154px;
    padding: 16px 14px;
    border-radius: 24px;
    display: block;
    color: inherit;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 28px rgba(24, 36, 54, 0.08);
}

.brand-hot-logo {
    width: 150px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 14px 26px rgba(31, 42, 56, 0.14);
}

.brand-hot-logo img,
.brand-directory-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
    background: #fff;
}

.brand-hot-logo-red {
    background: linear-gradient(135deg, #ff7867 0%, #df4336 100%);
}

.brand-hot-logo-blue {
    background: linear-gradient(135deg, #5e9dff 0%, #3d73e0 100%);
}

.brand-hot-logo-slate {
    background: linear-gradient(135deg, #394654 0%, #222d3b 100%);
}

.brand-hot-logo-violet {
    background: linear-gradient(135deg, #9c88ff 0%, #6e5de7 100%);
}

.brand-hot-logo-orange {
    background: linear-gradient(135deg, #ffb34d 0%, #ef8e1b 100%);
}

.brand-hot-logo-green {
    background: linear-gradient(135deg, #41c790 0%, #159d67 100%);
}

.brand-hot-card strong {
    display: block;
    margin-top: 14px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.4;
}

.brand-hot-card p {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.6;
}

.brand-hot-card span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-top: 14px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.brand-letter-shell {
    position: sticky;
    top: 52px;
    z-index: 35;
    margin-top: 18px;
}

.brand-letter-bar {
    padding: 8px;
    border-radius: 22px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 28px rgba(24, 36, 54, 0.08);
}

.brand-letter-bar a {
    min-height: 38px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.brand-letter-bar a:first-child,
.brand-letter-bar a.active {
    background: var(--primary-soft);
    color: var(--primary);
}

.brand-directory-section {
    margin-top: 18px;
}

.brand-directory-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-directory-head strong {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1f2a38;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.brand-directory-head span {
    color: var(--text-secondary);
    font-size: 12px;
}

.brand-directory-card {
    margin-top: 12px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 28px rgba(24, 36, 54, 0.08);
    overflow: hidden;
}

.brand-directory-row {
    padding: 16px;
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 14px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(232, 237, 243, 0.92);
}

.brand-directory-row:last-child {
    border-bottom: none;
}

.brand-directory-mark {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.brand-directory-info strong {
    display: block;
    color: var(--text);
    font-size: 15px;
    line-height: 1.35;
}

.brand-directory-row > span {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}

.brand-list-empty {
    min-height: 120px;
    padding: 24px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 28px rgba(24, 36, 54, 0.08);
    color: var(--text-secondary);
}

.search-result-sheet-btn,
.search-result-detail-btn,
.search-result-cart-btn {
    min-width: 88px;
    height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.search-result-sheet-btn {
    background: #f4f7fb;
    color: #526173;
    border: 1px solid rgba(217, 224, 232, 0.92);
    width: 100%;
}

.search-result-sheet-btn-disabled {
    color: var(--text-hint);
    background: #f8fafd;
}

.search-result-detail-btn {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--text);
}

.search-result-cart-btn {
    background: linear-gradient(135deg, var(--primary) 0%, #ef6b53 100%);
    color: #fff;
    box-shadow: 0 10px 18px rgba(223, 67, 54, 0.18);
}

@media (max-width: 420px) {
    .search-result-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .search-result-qty {
        justify-content: space-between;
    }

    .search-result-action-links {
        width: 100%;
        margin-left: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .search-result-detail-btn,
    .search-result-cart-btn {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 340px) {
    .search-topbar {
        grid-template-columns: 48px minmax(0, 1fr) 48px;
    }

    .search-summary-card,
    .search-result-price-stock,
    .search-result-actions {
        display: grid;
    }
}

/* Cart Page Redesign */
.cart2-header {
    padding: 14px 18px 22px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 32%),
        linear-gradient(180deg, #eb5549 0%, #df4336 60%, #f4f6fb 60%, #f4f6fb 100%);
}

.cart2-status {
    color: #fff;
}

.cart2-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.cart2-back,
.cart2-manage {
    min-width: 52px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.cart2-title-block {
    text-align: center;
    color: #fff;
}

.cart2-title-block strong {
    display: block;
    font-size: 18px;
    letter-spacing: -0.01em;
}

.cart2-title-block span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
}

.cart2-summary {
    margin-top: 18px;
    padding: 22px 20px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 34%),
        linear-gradient(145deg, #ffffff 0%, #fff9f8 52%, #fff0ec 100%);
    box-shadow: 0 22px 40px rgba(188, 43, 31, 0.14);
}

.cart2-summary-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.cart2-summary-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.cart2-summary h1 {
    margin: 14px 0 0;
    color: var(--text);
    font-size: 30px;
    line-height: 1.22;
    letter-spacing: -0.03em;
}

.cart2-summary p {
    margin: 10px 0 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.cart2-summary-total {
    flex-shrink: 0;
    min-width: 108px;
    padding: 12px 12px 10px;
    border-radius: 20px;
    background: #fff;
    text-align: right;
    box-shadow: 0 12px 24px rgba(24, 36, 54, 0.07);
}

.cart2-summary-total span {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
}

.cart2-summary-total strong {
    display: block;
    margin-top: 8px;
    color: var(--primary);
    font-size: 20px;
    line-height: 1.1;
}

.cart2-summary-strip {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.cart2-pill {
    padding: 14px 10px;
    border-radius: 18px;
    text-align: center;
    background: #fff;
    box-shadow: 0 10px 18px rgba(24, 36, 54, 0.06);
}

.cart2-pill strong {
    display: block;
    color: var(--text);
    font-size: 17px;
    line-height: 1.1;
}

.cart2-pill span {
    display: block;
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 12px;
}

.cart2-body {
    padding: 0 18px 152px;
}

.cart2-toolbar,
.cart2-store,
.cart2-suggest {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 28px rgba(24, 36, 54, 0.08);
}

.cart2-toolbar {
    margin-top: 4px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cart2-coupon {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.cart2-coupon-label {
    flex-shrink: 0;
    min-width: 42px;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.cart2-coupon strong {
    display: block;
    color: var(--text);
    font-size: 15px;
}

.cart2-coupon p {
    margin: 6px 0 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.6;
}

.cart2-coupon-link {
    flex-shrink: 0;
    min-width: 64px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f8fb;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.cart2-store {
    margin-top: 16px;
    padding: 16px;
}

.cart2-store-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart2-store-head strong {
    color: var(--text);
    font-size: 15px;
}

.cart2-store-head span {
    margin-left: auto;
    color: var(--text-secondary);
    font-size: 12px;
}

.cart2-check {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 2px solid #d3dbe4;
    background: #fff;
    flex-shrink: 0;
}

.cart2-check.active {
    border-color: var(--primary);
    background: linear-gradient(145deg, #ff8677 0%, #df4336 100%);
    box-shadow: inset 0 0 0 4px #fff;
}

.cart2-item {
    margin-top: 16px;
    padding: 16px;
    border-radius: 22px;
    background: #fafbfd;
    display: grid;
    grid-template-columns: 20px 84px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.cart2-item-unchecked {
    opacity: 0.92;
}

.cart2-thumb {
    min-height: 100px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    overflow: hidden;
    position: relative;
}

.cart2-thumb::before {
    content: "";
    position: absolute;
    width: 68px;
    height: 68px;
    right: -12px;
    top: -12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.cart2-thumb span {
    position: relative;
    z-index: 1;
}

.cart2-thumb-red {
    background: linear-gradient(145deg, #ff8677 0%, #df4336 100%);
}

.cart2-thumb-dark {
    background: linear-gradient(145deg, #2b3746 0%, #1d2735 100%);
}

.cart2-thumb-gold {
    background: linear-gradient(145deg, #f3b456 0%, #d78a17 100%);
}

.cart2-item-main {
    min-width: 0;
}

.cart2-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cart2-tag {
    min-width: 72px;
    height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.cart2-tag-muted {
    background: #f1f4f8;
    color: #5a6676;
}

.cart2-remove {
    color: var(--text-hint);
    font-size: 12px;
}

.cart2-item-main h3 {
    margin: 10px 0 0;
    color: var(--text);
    font-size: 17px;
    line-height: 1.4;
}

.cart2-item-main p {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

.cart2-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.cart2-meta span {
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--text-secondary);
    font-size: 11px;
    border: 1px solid rgba(217, 224, 232, 0.75);
}

.cart2-meta span:first-child {
    color: var(--success);
}

.cart2-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.cart2-price-wrap {
    display: flex;
    align-items: flex-end;
    gap: 4px;
}

.cart2-price-wrap strong {
    color: var(--primary);
    font-size: 24px;
    line-height: 1;
}

.cart2-price-wrap span {
    color: var(--text-secondary);
    font-size: 12px;
    padding-bottom: 2px;
}

.cart2-stepper {
    min-width: 102px;
    height: 36px;
    padding: 0 6px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid rgba(217, 224, 232, 0.8);
    color: var(--text);
    font-size: 13px;
}

.cart2-stepper span,
.cart2-stepper strong {
    width: 24px;
    text-align: center;
}

.cart2-suggest {
    margin-top: 16px;
    padding: 18px 16px;
}

.cart2-suggest-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cart2-suggest-title strong {
    color: var(--text);
    font-size: 17px;
}

.cart2-suggest-title a {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.cart2-suggest-list {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.cart2-suggest-card {
    padding: 14px;
    border-radius: 20px;
    background: #fafbfd;
}

.cart2-suggest-chip {
    min-width: 46px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
}

.cart2-suggest-chip-dark {
    background: #eef2f7;
    color: #5a6676;
}

.cart2-suggest-card strong {
    display: block;
    margin-top: 12px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.4;
}

.cart2-suggest-card p {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.6;
}

.cart2-suggest-card span {
    display: block;
    margin-top: 12px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.cart2-checkout {
    position: fixed;
    left: 50%;
    bottom: 68px;
    transform: translateX(-50%);
    width: min(100%, 430px);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(217, 224, 232, 0.75);
    box-shadow: 0 -8px 24px rgba(24, 36, 54, 0.06);
}

.cart2-checkout-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.cart2-checkout-left strong {
    display: block;
    color: var(--text);
    font-size: 14px;
}

.cart2-checkout-left span {
    display: block;
    margin-top: 4px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.cart2-checkout-btn {
    min-width: 118px;
    height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff8677 0%, #df4336 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(223, 67, 54, 0.24);
}

@media (max-width: 480px) {
    .cart2-checkout {
        width: 100%;
        max-width: none;
        box-shadow: none;
    }
}

/* Article Page */
.article-page {
    padding-bottom: 112px;
}

.article-card {
    padding: 20px 18px 18px;
}

.article-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.article-tag {
    min-width: 72px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.article-meta-row span {
    color: var(--text-secondary);
    font-size: 13px;
}

.article-title {
    margin: 18px 0 0;
    color: var(--text);
    font-size: 26px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.article-submeta {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 12px;
}

.article-cover {
    margin-top: 20px;
    min-height: 200px;
    border-radius: 24px;
    background: linear-gradient(145deg, #2b3746 0%, #1d2735 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.article-content {
    margin-top: 24px;
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.article-content p {
    margin: 16px 0 0;
    color: var(--text);
    font-size: 15px;
    line-height: 1.8;
}

.article-content h2 {
    margin: 28px 0 0;
    color: var(--text);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
}

.article-content ul,
.article-content ol {
    margin: 12px 0 0;
    padding-left: 22px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.8;
}

.article-content li {
    margin-top: 8px;
}

/* 移动端正文兜底：长英文、长链接、代码块、表格不撑破容器 */
.article-content * {
    max-width: 100%;
    box-sizing: border-box;
}

.article-content a,
.article-content p,
.article-content li,
.article-content span,
.article-content strong,
.article-content em,
.article-content b,
.article-content i {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.article-content pre,
.article-content code,
.article-content kbd,
.article-content samp {
    word-break: break-all;
    white-space: pre-wrap;
}

.article-content img,
.article-content video,
.article-content iframe,
.article-content embed {
    max-width: 100%;
    height: auto;
}

.article-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.article-divider {
    margin-top: 28px;
    height: 1px;
    background: rgba(217, 224, 232, 0.8);
}

.article-actions {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.article-action-btn {
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 20px;
    border: 0;
    background: #f8fafd;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    font-family: inherit;
}

.article-action-btn span {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1;
}

.article-action-btn strong {
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.article-section-head {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.article-section-head h3 {
    margin: 0;
    color: var(--text);
    font-size: 19px;
    letter-spacing: -0.02em;
}

.article-recommend {
    padding: 0 18px;
}

.article-recommend-list {
    margin-top: 14px;
    display: grid;
    gap: 12px;
}

.article-recommend-card {
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 28px rgba(24, 36, 54, 0.07);
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 14px;
    color: inherit;
    text-decoration: none;
}

.article-recommend-cover {
    min-height: 80px;
    border-radius: 16px;
    background: linear-gradient(145deg, #394654 0%, #222d3b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.article-recommend-info strong {
    display: block;
    color: var(--text);
    font-size: 15px;
    line-height: 1.4;
}

.article-recommend-info p {
    margin: 8px 0 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.6;
}
