/* ============================================================
   CPS 返利 H5 前台（移动端）
   配色：主色 #ff2d55（返利红），辅助 #7c5cff（会员紫），深色卡 #1c1d22
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background: #f5f6f8;
    color: #1f2126;
    font-size: 14px;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button {
    font: inherit;
    border: 0;
    background: none;
    cursor: pointer;
}

input,
textarea {
    font: inherit;
    color: inherit;
    outline: none;
}

/* ---------------------------------------------------------- 骨架 */

.page {
    min-height: 100vh;
    padding-bottom: 76px;
    /* 给固定 tabbar 留位置 */
}

.page--plain {
    padding-bottom: 24px;
}

/* 搜索页带底部 tabbar */
.page--search {
    padding-bottom: 76px;
}

.page-body {
    padding: 12px;
}

/* 顶部导航 */
.navbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    padding: 0 12px;
    background: #fff;
    border-bottom: 1px solid #eef0f3;
}

.navbar__back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: -4px;
    color: #1f2126;
    font-size: 20px;
}

.navbar__title {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.navbar__extra {
    min-width: 28px;
    text-align: right;
    font-size: 12px;
    color: #8b90a0;
}

/* 底部 tabbar */
.tabbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: 56px;
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid #eef0f3;
    backdrop-filter: blur(12px);
}

.tabbar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #9aa0ae;
    font-size: 10px;
}

.tabbar__icon {
    display: grid;
    place-items: center;
    height: 20px;
    font-size: 19px;
    line-height: 1;
}

.tabbar__icon svg {
    width: 20px;
    height: 20px;
}

.tabbar__item.is-active {
    color: #ff2d55;
    font-weight: 600;
}

/* ---------------------------------------------------------- 通用组件 */

.card {
    padding: 14px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(17, 24, 39, .04);
}

.card + .card {
    margin-top: 12px;
}

.card__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 700;
}

.card__hint {
    font-size: 12px;
    font-weight: 400;
    color: #9aa0ae;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 44px;
    padding: 0 18px;
    border-radius: 22px;
    font-size: 15px;
    font-weight: 600;
}

.btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #ff5c6c, #ff2d55);
    box-shadow: 0 6px 16px rgba(255, 45, 85, .28);
}

.btn--ghost {
    color: #ff2d55;
    background: #fff0f2;
}

.btn--block {
    width: 100%;
}

.btn--sm {
    height: 32px;
    padding: 0 14px;
    font-size: 13px;
    border-radius: 16px;
}

.tag {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.tag--tb {
    color: #fff;
    background: #ff5000;
}

.tag--pdd {
    color: #fff;
    background: #e02e24;
}

.tag--jd {
    color: #fff;
    background: #e1251b;
}

.tag--vip {
    color: #fff;
    background: #e4007f;
}

.tag--dy {
    color: #fff;
    background: #161823;
}

.tag--soft {
    color: #ff2d55;
    background: #fff0f2;
}

.price {
    color: #ff2d55;
    font-weight: 700;
}

.price__symbol {
    font-size: 12px;
}

.price__int {
    font-size: 20px;
}

.price__dec {
    font-size: 12px;
}

.price-old {
    margin-left: 4px;
    color: #a9aebb;
    font-size: 11px;
    text-decoration: line-through;
}

.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 56px 0;
    color: #adb2c0;
    font-size: 13px;
    text-align: center;
}

.empty__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #f0f1f4;
    font-size: 40px;
}

.tabs {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 0 12px;
    background: #fff;
    border-bottom: 1px solid #eef0f3;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tabs__item {
    position: relative;
    flex: 0 0 auto;
    padding: 11px 0;
    border: 0;
    background: none;
    color: #5d6272;
    font-family: inherit;
    font-size: 14px;
    white-space: nowrap;
}

.tabs__item.is-active {
    color: #1f2126;
    font-weight: 700;
}

.tabs__item.is-active::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 18px;
    height: 3px;
    background: #ff2d55;
    border-radius: 2px;
    transform: translateX(-50%);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 7px 14px;
    color: #4a4f5e;
    font-size: 13px;
    background: #fff;
    border-radius: 16px;
}

.chip.is-active {
    color: #ff2d55;
    background: #fff0f2;
    font-weight: 600;
}

.flash {
    margin: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
}

.flash--ok {
    color: #0f7b46;
    background: #e8f8ef;
}

.flash--error {
    color: #b42318;
    background: #fdecea;
}

/* ---------------------------------------------------------- 首页 */

.home-top {
    padding: 10px 12px 14px;
    background: #fff;
}

.home-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 17px;
    font-weight: 700;
}

.home-subtitle {
    color: #9aa0ae;
    font-size: 12px;
    font-weight: 400;
}

.searchbar {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 6px 0 14px;
    background: #f5f6f8;
    border: 1.5px solid #ffd5db;
    border-radius: 20px;
}

.searchbar__input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    font-size: 13px;
}

.searchbar__btn {
    height: 30px;
    padding: 0 14px;
    color: #4a4f5e;
    font-size: 13px;
    font-weight: 600;
}

.banner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 158px;
    margin: 12px;
    padding: 20px;
    overflow: hidden;
    color: #fff;
    border-radius: 16px;
    background: linear-gradient(120deg, #2b1e5c 0%, #4b2bd6 45%, #7b3bff 100%);
}

.banner__text {
    position: relative;
    z-index: 2;
    max-width: 66%;
}

.banner__title {
    margin-bottom: 8px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: .5px;
}

.banner__desc {
    font-size: 12px;
    opacity: .85;
}

.banner__art {
    position: absolute;
    top: 50%;
    right: -18px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ff8a5c, #ff2d55 70%);
    transform: translateY(-50%);
    opacity: .9;
}

.banner__art::after {
    content: "抖";
    position: absolute;
    top: 50%;
    left: 50%;
    color: #fff;
    font-size: 64px;
    font-weight: 900;
    transform: translate(-50%, -50%);
}

.dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 8px;
}

.dots__item {
    width: 5px;
    height: 5px;
    background: #d9dce3;
    border-radius: 50%;
}

.dots__item.is-active {
    width: 14px;
    background: #ff2d55;
    border-radius: 3px;
}

.kk-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px 4px;
    padding: 16px 10px;
    background: #fff;
    border-radius: 14px;
    margin: 0 12px;
}

.kk-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #444a58;
    text-align: center;
}

.kk-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.kk-item:nth-child(5n+1) .kk-item__icon {
    background: linear-gradient(135deg, #ff8a5c, #ff4d4f);
}

.kk-item:nth-child(5n+2) .kk-item__icon {
    background: linear-gradient(135deg, #a06bff, #7c3aed);
}

.kk-item:nth-child(5n+3) .kk-item__icon {
    background: linear-gradient(135deg, #ffb020, #ff7a45);
}

.kk-item:nth-child(5n+4) .kk-item__icon {
    background: linear-gradient(135deg, #4ad991, #16a34a);
}

.kk-item:nth-child(5n+5) .kk-item__icon {
    background: linear-gradient(135deg, #66b3ff, #2563eb);
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 16px 12px 8px;
}

.section-head__title {
    font-size: 16px;
    font-weight: 800;
}

.section-head__more {
    color: #9aa0ae;
    font-size: 12px;
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 0 12px;
}

.topic {
    padding: 10px 8px;
    color: #fff;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff7a8a, #ff2d55);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.topic:nth-child(2) {
    background: linear-gradient(135deg, #ffb457, #ff7a18);
}

.topic:nth-child(3) {
    background: linear-gradient(135deg, #8f7bff, #5b45e0);
}

.topic:nth-child(4) {
    background: linear-gradient(135deg, #4ec3ff, #1e86ff);
}

.topic__sub {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    font-weight: 400;
    opacity: .9;
}

/* 商品卡（横排） */
.pcard {
    display: flex;
    gap: 10px;
    padding: 12px;
    background: #fff;
    border-radius: 14px;
}

.pcard + .pcard {
    margin-top: 10px;
}

.pcard__img {
    position: relative;
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(135deg, #eef1f6, #dfe4ec);
}

.pcard__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pcard__ph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #b7bdc9;
    font-size: 24px;
}

.pcard__rank {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 30px;
    padding: 2px 6px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffb457, #ff7a18);
    border-bottom-right-radius: 10px;
}

.pcard__body {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
}

.pcard__title {
    display: -webkit-box;
    overflow: hidden;
    color: #23262f;
    font-size: 13px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pcard__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: #8b90a0;
    font-size: 11px;
}

.pcard__coupon {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 8px;
    color: #ff2d55;
    font-size: 11px;
    font-weight: 600;
    background: #fff0f2;
    border-radius: 4px;
}

.pcard__foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
}

.pcard__earn {
    color: #ff7a18;
    font-size: 11px;
    font-weight: 600;
}

.pcard__buy {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, #ff8a4c, #ff4d2d);
    border-radius: 14px;
    white-space: nowrap;
}

/* ---------------------------------------------------------- 我的 */

.me-hero {
    position: relative;
    padding: 22px 16px 22px;
    color: #fff;
    background: linear-gradient(150deg, #6f5bff 0%, #8f7bff 45%, #b3a4ff 100%);
}

.me-hero__row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

/* 右上角：设置 / 消息 */
.me-actions {
    position: absolute;
    top: 14px;
    right: 12px;
    display: flex;
    gap: 8px;
}

.me-actions__btn {
    position: relative;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    text-decoration: none;
}

.me-actions__btn:active {
    background: rgba(255, 255, 255, .3);
}

.me-actions__btn svg {
    width: 18px;
    height: 18px;
}

.me-actions__dot {
    position: absolute;
    top: 7px;
    right: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff4d4f;
    box-shadow: 0 0 0 2px rgba(143, 123, 255, .55);
}

.me-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .6);
    border-radius: 50%;
    background: rgba(255, 255, 255, .25);
    font-size: 24px;
}

.me-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.me-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 17px;
    font-weight: 700;
}

.me-level {
    height: 18px;
    padding: 0 7px;
    color: #7a4a00;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    background: linear-gradient(135deg, #ffe1a8, #ffb84d);
    border-radius: 9px;
}

.me-code {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 12px;
    opacity: .9;
}

/* 邀请码复制（图标按钮） */
.me-code__copy {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 6px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.me-code__copy svg {
    width: 13px;
    height: 13px;
}

.me-code__copy:active {
    background: rgba(255, 255, 255, .32);
}

.me-code__copy.is-done {
    background: rgba(43, 182, 115, .9);
    border-color: rgba(43, 182, 115, .9);
    color: #fff;
}

.me-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 18px;
    text-align: center;
}

.me-stats__num {
    font-size: 19px;
    font-weight: 700;
}

.me-stats__label {
    font-size: 11px;
    opacity: .85;
}

/* 余额汇总：并入头部统计区，字号与左右排布沿用原 .balance-card */
.me-hero__sum {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    text-decoration: none;
}

.me-hero__sum-label {
    font-size: 11.5px;
    opacity: .8;
}

.me-hero__sum-num {
    margin-top: 2px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.me-hero__sum-meta {
    font-size: 11px;
    line-height: 1.45;
    text-align: right;
    opacity: .85;
}

.me-body {
    margin-top: 0;
    padding: 0 12px 12px;
}

/* ---------------------------------------------------------- 个人信息页 */

.set-list {
    margin: 10px 12px 0;
    overflow: hidden;
    background: #fff;
    border-radius: 14px;
}

.set-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 10px 14px;
    border: 0;
    border-bottom: 1px solid #f1f3f7;
    background: none;
    color: #2b2f3a;
    font-family: inherit;
    font-size: 13.5px;
    text-align: left;
}

.set-row:last-child {
    border-bottom: 0;
}

.set-row__label {
    flex: none;
}

.set-row__value {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    color: #9aa0ae;
    font-size: 12.5px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.set-row__value--empty {
    color: #b9bec9;
}

.set-row__avatar {
    display: grid;
    flex: none;
    place-items: center;
    width: 38px;
    height: 38px;
    overflow: hidden;
    border-radius: 50%;
    background: #f1f3f7;
    color: #9aa0ae;
    font-size: 14px;
    font-weight: 700;
}

.set-row__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.set-row__copy {
    display: grid;
    flex: none;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    color: #b9bec9;
}

.set-row__copy svg {
    width: 15px;
    height: 15px;
}

.set-row__copy:active {
    color: #ff2d55;
}

.set-row__arrow {
    flex: none;
    color: #c8cdd6;
    font-size: 15px;
    line-height: 1;
}

/* ---------------------------------------------------------- 消息中心 */

/* 消息中心：三个 tab 等宽平分整行，选中项加粗 + 短下划线 */
.tabs--msg {
    gap: 0;
    overflow: visible;
    padding: 0;
}

.tabs--msg .tabs__item {
    flex: 1 1 0;
    padding: 15px 0 15px;
    color: #8a8f9c;
    font-size: 15px;
    line-height: 1.2;
    text-align: center;
}

.tabs--msg .tabs__item.is-active {
    color: #1f2126;
    font-weight: 700;
}

.tabs--msg .tabs__item.is-active::after {
    bottom: 5px;
    width: 26px;
    height: 3px;
    background: #ff2d55;
    border-radius: 2px;
}

.msg-empty {
    padding: 64px 24px 0;
    text-align: center;
}

.msg-empty__art {
    width: 210px;
    max-width: 70%;
    height: auto;
}

.msg-empty p {
    margin: 4px 0 0;
    color: #9aa0ae;
    font-size: 13px;
}

/* tab 未读角标 */
.tabs__badge {
    display: inline-block;
    min-width: 16px;
    height: 16px;
    margin-left: 2px;
    padding: 0 4px;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
    vertical-align: 1px;
    background: #ff2d55;
    border-radius: 8px;
}

/* 消息列表 */
.msg-list {
    padding: 12px;
}

.msg-card {
    padding: 12px 14px;
    background: #fff;
    border-radius: 14px;
}

.msg-card + .msg-card,
.msg-card + .pcard,
.pcard + .msg-card,
.msg-list .pcard + .pcard {
    margin-top: 10px;
}

.msg-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.msg-card__type {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 8px;
    color: #ff2d55;
    font-size: 11px;
    font-weight: 600;
    background: #fff0f2;
    border-radius: 4px;
}

.msg-card__time {
    color: #a9aebb;
    font-size: 11px;
}

.msg-card__title {
    margin-top: 8px;
    color: #23262f;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.msg-card__body {
    margin-top: 4px;
    color: #6d7280;
    font-size: 12px;
    line-height: 1.6;
    white-space: pre-line;
    word-break: break-word;
}

/* 爆款推荐卡里的推荐文案（最多两行） */
.pcard__desc {
    display: -webkit-box;
    overflow: hidden;
    color: #8b90a0;
    font-size: 11px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notice {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    margin-top: 12px;
    padding: 14px 14px 14px 13px;
    border: 1px solid #ffe0a8;
    border-radius: 14px;
    background: linear-gradient(118deg, #fff8e6 0%, #fff1cf 55%, #ffe6b4 100%);
    color: #7c4b00;
    font-size: 12px;
    box-shadow: 0 6px 16px rgba(255, 176, 61, .16);
}

.notice__ico {
    display: grid;
    flex: none;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 16px;
    background: linear-gradient(140deg, #ffe6a8, #ffb23a);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65);
}

.notice__txt {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.notice__txt b {
    color: #6d3f00;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.notice__txt em {
    color: #a9741c;
    font-size: 10.5px;
    font-style: normal;
    line-height: 1.2;
}

.notice__cta {
    flex: none;
    margin-left: 4px;
    padding: 7px 13px;
    border-radius: 15px;
    background: linear-gradient(135deg, #ffb340, #ff8a00);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(255, 138, 0, .3);
}



.balance-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding: 13px 14px;
    overflow: hidden;
    color: #1f2329;
    border: 1px solid #ece8fb;
    border-radius: 13px;
    /* 白 → 极浅紫灰，和下方纯白网格拉开一点层次 */
    background: linear-gradient(135deg, #ffffff 0%, #f6f4ff 100%);
    box-shadow: 0 6px 18px rgba(88, 66, 214, .08);
}

.balance-card > div {
    position: relative;
    z-index: 1;
}

.balance-card__label {
    color: #8b90a0;
    font-size: 11.5px;
}

.balance-card__num {
    margin-top: 2px;
    color: #6b7280;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.balance-card__meta {
    color: #8b90a0;
    text-align: right;
    font-size: 11px;
    line-height: 1.45;
}

.grid-cell {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-top: 12px;
    padding: 16px 6px;
    background: #fff;
    border-radius: 14px;
}

.grid-cell__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    color: #3c4150;
    font-size: 12px;
}

.grid-cell__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #ff2d55;
    font-size: 18px;
    background: #fff1f3;
}

/* ---------------------------------------------------------- 收益 */

.earn-head {
    padding: 18px 16px 26px;
    color: #fff;
    background: #1c1d22;
}

.earn-head__label {
    font-size: 12px;
    opacity: .7;
}

.earn-head__num {
    margin-top: 6px;
    font-size: 28px;
    font-weight: 700;
}

.earn-sum {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: -16px 12px 0;
    padding: 16px 8px;
    background: #fff;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(17, 24, 39, .06);
}

.earn-sum__num {
    font-size: 18px;
    font-weight: 700;
}

.earn-sum__label {
    color: #9aa0ae;
    font-size: 11px;
}

.period {
    display: flex;
    gap: 6px;
    margin: 14px 12px 0;
    padding: 4px;
    background: #fff;
    border-radius: 12px;
}

.period__item {
    flex: 1;
    padding: 8px 0;
    color: #6b7080;
    font-size: 13px;
    text-align: center;
    border-radius: 9px;
}

.period__item.is-active {
    color: #ff2d55;
    font-weight: 700;
    background: #fff0f2;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
    text-align: center;
}

.two-col__num {
    font-size: 18px;
    font-weight: 700;
}

.two-col__label {
    color: #9aa0ae;
    font-size: 11px;
}

.cell {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 14px;
    background: #fff;
    font-size: 14px;
}

.cell + .cell {
    border-top: 1px solid #f2f3f6;
}

.cell__arrow {
    margin-left: auto;
    color: #c2c7d1;
}

.cell-group {
    margin-top: 12px;
    overflow: hidden;
    border-radius: 14px;
}

/* ---------------------------------------------------------- 团队 */

.team-hero {
    padding: 16px;
    color: #fff;
    background: linear-gradient(150deg, #5f7bff, #8f7bff);
}

.team-search {
    display: flex;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    background: #fff;
    border-radius: 18px;
}

.team-search input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    font-size: 13px;
}

.team-count {
    margin: 18px 0 6px;
    font-size: 13px;
    text-align: center;
    opacity: .9;
}

.team-count__num {
    display: block;
    font-size: 30px;
    font-weight: 800;
}

.team-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    opacity: .95;
}

.subtabs {
    display: flex;
    gap: 26px;
    padding: 0 16px;
    background: #fff;
}

.subtabs__item {
    position: relative;
    padding: 12px 0;
    color: #6b7080;
    font-size: 14px;
}

.subtabs__item.is-active {
    color: #1f2126;
    font-weight: 700;
}

.subtabs__item.is-active::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 22px;
    height: 3px;
    background: #ff2d55;
    border-radius: 2px;
    transform: translateX(-50%);
}

.member {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
}

.member + .member {
    border-top: 1px solid #f2f3f6;
}

.member__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-size: 15px;
    background: linear-gradient(135deg, #a0a8ff, #7c5cff);
    overflow: hidden;
}

.member__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member__name {
    font-size: 14px;
    font-weight: 600;
}

.member__sub {
    color: #9aa0ae;
    font-size: 11px;
}

.member__time {
    margin-left: auto;
    color: #9aa0ae;
    font-size: 11px;
}

/* ---------------------------------------------------------- 订单 */

.order {
    padding: 12px 14px;
    background: #fff;
}

.order + .order {
    border-top: 8px solid #f5f6f8;
}

.order__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #8b90a0;
    font-size: 12px;
}

.order__status {
    margin-left: auto;
    color: #ff2d55;
    font-weight: 600;
}

.order__body {
    display: flex;
    gap: 10px;
}

.order__img {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border-radius: 8px;
    background: #eef1f6;
}

.order__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order__title {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.order__meta {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    color: #9aa0ae;
    font-size: 11px;
}

/* ---------------------------------------------------------- 登录 */

.login {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: center;
    padding: 0 26px;
    background: linear-gradient(160deg, #fff 0%, #fff0f2 45%, #ffe3e8 100%);
}

.login__brand {
    margin-bottom: 26px;
    text-align: center;
}

.login__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: 12px;
    color: #fff;
    font-size: 26px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff7a8a, #ff2d55);
    box-shadow: 0 10px 24px rgba(255, 45, 85, .3);
}

.login__title {
    font-size: 20px;
    font-weight: 800;
}

.login__sub {
    margin-top: 4px;
    color: #9aa0ae;
    font-size: 12px;
}

.login__field {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 50px;
    margin-bottom: 12px;
    padding: 0 16px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(17, 24, 39, .05);
}

.login__field input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    font-size: 15px;
}

.login__tip {
    margin: 14px 0;
    color: #9aa0ae;
    font-size: 11px;
    text-align: center;
}

/* 公众号内微信一键登录 */
.login-wechat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 12px 0;
    border: 1px solid #dff2e6;
    border-radius: 26px;
    background: #fff;
    color: #07c160;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(7, 193, 96, .08);
}

.login-wechat svg {
    width: 20px;
    height: 20px;
}

.login-wechat:active {
    background: #f4fbf6;
}

/* ---------------------------------------------------------- 邀请 / 转链 */

.poster-shot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px auto 8px;
    width: 240px;
    aspect-ratio: 750 / 1320;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(160deg, #ff8a5c, #ff2d55);
    box-shadow: 0 12px 30px rgba(255, 80, 0, .22);
}

.poster-shot__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-shot__loading {
    padding: 0 16px;
    color: #fff;
    font-size: 12px;
    line-height: 1.8;
    text-align: center;
}

.poster-shot--error {
    background: #f4f5f7;
    box-shadow: none;
}

.poster-shot--error .poster-shot__loading {
    color: #9aa0ae;
}

.poster-shot__tip {
    margin-bottom: 14px;
    color: #9aa0ae;
    font-size: 11px;
    text-align: center;
}

.poster-toast {
    position: fixed;
    left: 50%;
    bottom: 96px;
    z-index: 999;
    padding: 10px 18px;
    max-width: 78vw;
    color: #fff;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
    background: rgba(20, 22, 28, .86);
    border-radius: 20px;
    opacity: 0;
    transform: translate(-50%, 8px);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
}

.poster-toast--show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.rule-list {
    margin: 0;
    padding-left: 18px;
    color: #6b7080;
    font-size: 12px;
    line-height: 1.9;
}

.convert-box {
    margin: 12px;
    padding: 16px;
    background: #fff;
    border-radius: 14px;
}

.convert-box textarea {
    width: 100%;
    min-height: 108px;
    padding: 12px;
    background: #f7f8fa;
    border: 0;
    border-radius: 10px;
    font-size: 13px;
    resize: vertical;
}

.convert-result {
    margin-top: 12px;
    padding: 12px;
    font-size: 12px;
    background: #f7f8fa;
    border-radius: 10px;
    word-break: break-all;
}

.tutorial {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 12px;
}

.tutorial__item {
    padding: 14px;
    background: #fff;
    border-radius: 12px;
    font-size: 12px;
    color: #6b7080;
    line-height: 1.6;
}

.tutorial__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-bottom: 6px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    background: #ff2d55;
    border-radius: 50%;
}

/* ---------------------------------------------------------- 升级 */

.upgrade-hero {
    padding: 20px 16px 26px;
    color: #f6e2b3;
    background: linear-gradient(160deg, #2a1c05, #4a3410 60%, #6b4a12);
}

.upgrade-id {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(246, 226, 179, .35);
    border-radius: 14px;
}

.upgrade-id__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(246, 226, 179, .18);
    font-size: 20px;
}

.upgrade-id__btn {
    margin-left: auto;
    height: 30px;
    padding: 0 14px;
    color: #3a2600;
    font-size: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffe1a8, #e0b064);
    border-radius: 15px;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 8px;
    padding: 22px 12px;
    text-align: center;
}

.benefits__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 auto 6px;
    border-radius: 12px;
    color: #f6e2b3;
    font-size: 17px;
    background: rgba(246, 226, 179, .12);
}

.benefits__title {
    font-size: 12px;
    font-weight: 700;
}

.benefits__desc {
    color: rgba(246, 226, 179, .65);
    font-size: 10px;
}

/* 升级任务 / 代理加盟 */
.upgrade-task {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f7f8fa;
    border-radius: 12px;
}

.upgrade-task__title {
    font-size: 13px;
    font-weight: 600;
    color: #23262f;
}

.upgrade-task__sub {
    margin-top: 3px;
    color: #9aa0ae;
    font-size: 11px;
}

.upgrade-progress {
    height: 6px;
    margin-top: 12px;
    overflow: hidden;
    background: #eef1f6;
    border-radius: 3px;
}

.upgrade-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, #ffb340, #ff2d55);
    border-radius: 3px;
    transition: width .3s;
}

.upgrade-cond {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 12px;
}

.upgrade-cond__dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: #fff;
    font-size: 10px;
    background: #d5d9e2;
    border-radius: 50%;
}

.upgrade-cond__dot.is-ok {
    background: #34c759;
}

.upgrade-cond__label {
    flex: 1;
    color: #6d7280;
}

.upgrade-cond__value {
    color: #23262f;
    font-weight: 600;
}

.upgrade-hint {
    margin-top: 12px;
    color: #9aa0ae;
    font-size: 12px;
}

.btn[disabled] {
    color: #b6bac4;
    background: #f2f3f7;
    cursor: not-allowed;
}

.dialog {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(17, 19, 24, .55);
}

.dialog.is-open {
    display: flex;
}

.dialog__box {
    width: 100%;
    max-width: 300px;
    overflow: hidden;
    background: #fff;
    border-radius: 14px;
    text-align: center;
}

.dialog__title {
    padding: 18px 16px 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    background: #3a3d46;
}

.dialog__body {
    padding: 14px 16px 18px;
    font-size: 13px;
    color: #4a4f5e;
}

.dialog__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #eef0f3;
}

.dialog__btn {
    height: 46px;
    color: #6b7080;
    font-size: 14px;
}

.dialog__btn--primary {
    color: #ff2d55;
    font-weight: 700;
    border-left: 1px solid #eef0f3;
}

/* ============================================================
   首页（对齐参考小程序版式）：顶部搜索 / 轮播 / 金刚区 / 热卖头条
   / 活动入口 / 限时秒杀 / 精选推荐 / 热词
   ============================================================ */

.page--home {
    padding-bottom: 88px;
}

.hp-top {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 10px 12px 8px;
    background: #fff;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
}

.hp-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
}

.hp-brand__logo {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #16171c;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.hp-brand__logo--img {
    display: block;
    object-fit: cover;
    padding: 0;
    background: transparent;
    border: 1px solid var(--cps-line, #e6ecf0);
}

.hp-brand__txt b {
    display: block;
    font-size: 15.5px;
    font-weight: 800;
    letter-spacing: .2px;
    color: #16181d;
}

.hp-brand__txt em {
    display: block;
    margin-top: 1px;
    font-size: 10.5px;
    font-style: normal;
    color: #9aa0ae;
}

.hp-headrow {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hp-search {
    display: flex;
    flex: 1;
    min-width: 0;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 4px 0 10px;
    background: #fff;
    border: 1.5px solid #16171c;
    border-radius: 17px;
}

.hp-convert {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 36px;
}

.hp-convert__ico {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid #eceff5;
    border-radius: 9px;
    background: #f7f9fc;
    color: #5b6272;
}

.hp-convert__ico svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hp-convert__txt {
    margin-top: -3px;
    padding: 1px 5px;
    border-radius: 7px;
    background: #ff2d55;
    color: #fff;
    font-size: 9.5px;
    font-weight: 600;
    line-height: 12px;
}

.hp-search__ico {
    width: 15px;
    height: 15px;
    flex: none;
    color: #9aa0ae;
}

.hp-search__input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    background: transparent;
    font-size: 12.5px;
    -webkit-appearance: none;
}

.hp-search__input::placeholder {
    color: #a8aebb;
}

.hp-search__btn {
    flex: none;
    height: 26px;
    padding: 0 12px;
    border-radius: 13px;
    background: #16171c;
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}

/* 轮播 */

.hp-banner {
    position: relative;
    margin: 10px 12px 0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.hp-banner__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.hp-banner__track::-webkit-scrollbar,
.hp-news__list::-webkit-scrollbar,
.hp-flash__list::-webkit-scrollbar {
    display: none;
}

/* 精选推荐标签栏用自定义滑动条，隐藏原生滚动条 */
.hp-rec__tabs::-webkit-scrollbar {
    display: none;
}

.hp-rec__scrollbar {
    height: 5px;
    margin: 4px 12px 1px;
    border-radius: 5px;
    background: #f2f3f6;
    overflow: hidden;
    opacity: 1;
    transition: opacity .2s ease;
}

.hp-rec__tabs:hover + .hp-rec__scrollbar,
.hp-rec__scrollbar:hover,
.hp-rec__scrollbar.is-show {
    opacity: 1;
}

.hp-rec__thumb {
    display: block;
    height: 100%;
    min-width: 30px;
    border-radius: 5px;
    background: rgba(120, 126, 140, .18);
    transition: transform .1s linear, width .2s ease;
}

.hp-banner__slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: block;
}

.hp-banner__slide img {
    width: 100%;
    aspect-ratio: 2.34 / 1;
    object-fit: cover;
}

.hp-banner__poster {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    height: 150px;
    padding: 0 20px;
    overflow: hidden;
    color: #fff;
}

.hp-banner__poster b {
    position: relative;
    z-index: 2;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: .5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.hp-banner__poster em {
    position: relative;
    z-index: 2;
    font-size: 11px;
    font-style: normal;
    opacity: .9;
}

.hp-banner__cta {
    position: relative;
    z-index: 2;
    align-self: flex-start;
    margin-top: 4px;
    padding: 3px 12px;
    border-radius: 11px;
    background: rgba(255, 255, 255, .22);
    font-size: 10.5px;
    font-style: normal;
    text-decoration: none;
    backdrop-filter: blur(2px);
}

.hp-banner__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: .5;
}

.hp-banner__blob--a {
    top: -30px;
    right: -10px;
    width: 130px;
    height: 130px;
    background: rgba(255, 255, 255, .28);
}

.hp-banner__blob--b {
    right: 60px;
    bottom: -46px;
    width: 96px;
    height: 96px;
    background: rgba(255, 255, 255, .18);
}

.hp-banner__poster--0 {
    background: linear-gradient(120deg, #1d2a86, #6f3bff 55%, #ff3b7f);
}

.hp-banner__poster--1 {
    background: linear-gradient(120deg, #ff8a1f, #ff3d1f);
}

.hp-banner__poster--2 {
    background: linear-gradient(120deg, #ff5f8f, #ff2d55);
}

.hp-banner__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    display: flex;
    justify-content: center;
    gap: 4px;
    pointer-events: none;
}

.hp-banner__dots .hp-dot {
    pointer-events: auto;
    background: rgba(255, 255, 255, .55);
}

.hp-banner__dots .hp-dot.is-active {
    background: #fff;
}

.hp-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #d3d8e2;
    transition: background .2s;
}

.hp-dot.is-active {
    background: #2b2f3a;
}

/* 热卖头条 */

.hp-news {
    display: flex;
    gap: 8px;
    margin: 10px 12px 0;
    padding: 10px 10px 8px;
    background: #fff;
    border-radius: 12px;
}

.hp-news__label {
    flex: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 30px;
    color: #ff2d55;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
}

.hp-news__body {
    flex: 1;
    min-width: 0;
}

/* 热卖头条：固定一条高度，纵向排列，由脚本逐条向上滚动 */
.hp-news__list {
    height: 56px;
    overflow: hidden;
}

.hp-news__track {
    will-change: transform;
}

.hp-news__item {
    flex: none;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hp-news__main {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.hp-news__title {
    overflow: hidden;
    font-size: 12px;
    color: #2b2f3a;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hp-news__meta {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 11px;
}

.hp-news__meta .hp-price {
    color: #ff2d55;
    font-style: normal;
    font-weight: 700;
}

.hp-news__meta s {
    color: #a9aebb;
    font-size: 10.5px;
}

.hp-news__meta b {
    color: #ff8f1f;
    font-size: 10.5px;
    font-weight: 600;
}

.hp-news__thumb {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    background: #f2f4f8;
}

.hp-news__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-news__dots {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}

/* 平台标签 */

.hp-tag {
    display: inline-block;
    height: 14px;
    margin-right: 4px;
    padding: 0 4px;
    border-radius: 3px;
    background: #ff5000;
    color: #fff;
    font-size: 9.5px;
    font-style: normal;
    line-height: 14px;
    vertical-align: 1px;
}

.hp-tag--jd {
    background: #e1251b;
}

.hp-tag--pdd {
    background: #e02e24;
}

.hp-tag--douyin {
    background: #161823;
}

.hp-tag--vip {
    background: #f10180;
}

/* 四个活动入口 */

.hp-promos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin: 10px 12px 0;
}

.hp-promo {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 6px;
    background: #fff;
    border-radius: 10px;
}

.hp-promo__head {
    padding: 3px 0;
    color: #fff;
    font-size: 10.5px;
    font-weight: 600;
    text-align: center;
}

.hp-promo__sub {
    padding: 3px 2px;
    font-size: 9.5px;
    text-align: center;
    transform: scale(.98);
}

.hp-promo__body {
    display: grid;
    place-items: center;
    flex: 1;
    min-height: 44px;
    margin: 0 5px;
    border-radius: 6px;
}

.hp-promo__body img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.hp-promo__badge {
    padding: 2px 8px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .9);
    font-size: 9.5px;
    font-style: normal;
    font-weight: 800;
}

.hp-promo--0 .hp-promo__head {
    background: linear-gradient(90deg, #ff6a9c, #ff2d73);
}

.hp-promo--0 .hp-promo__sub {
    color: #ff2d73;
}

.hp-promo--0 .hp-promo__body {
    background: #fff2f7;
}

.hp-promo--0 .hp-promo__badge {
    color: #ff2d73;
}

.hp-promo--1 .hp-promo__head {
    background: linear-gradient(90deg, #ff6b5e, #ff3b30);
}

.hp-promo--1 .hp-promo__sub {
    color: #ff3b30;
}

.hp-promo--1 .hp-promo__body {
    background: #fff2f1;
}

.hp-promo--1 .hp-promo__badge {
    color: #ff3b30;
}

.hp-promo--2 .hp-promo__head {
    background: linear-gradient(90deg, #ffa53b, #ff7a1a);
}

.hp-promo--2 .hp-promo__sub {
    color: #ff7a1a;
}

.hp-promo--2 .hp-promo__body {
    background: #fff7ea;
}

.hp-promo--2 .hp-promo__badge {
    color: #ff7a1a;
}

.hp-promo--3 .hp-promo__head {
    background: linear-gradient(90deg, #ff7a86, #ff2d55);
}

.hp-promo--3 .hp-promo__sub {
    color: #ff2d55;
}

.hp-promo--3 .hp-promo__body {
    background: #fff2f5;
}

.hp-promo--3 .hp-promo__badge {
    color: #ff2d55;
}

/* 中部宽幅广告位 */

.hp-ad {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 12px 0;
    padding: 11px 12px;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(90deg, #ffe6e6, #fff6e9 55%, #ffe7c4);
}

.hp-ad__left {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    width: 74px;
    padding: 7px 4px 8px;
    border-radius: 9px;
    background: linear-gradient(160deg, #ff6b5e, #ff2d2d);
    color: #fff;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 6px 14px rgba(255, 45, 45, .25);
}

.hp-ad__left i,
.hp-ad__left b {
    width: 100%;
    text-align: center;
    overflow-wrap: anywhere;
}

.hp-ad__left i {
    font-size: 9px;
    font-style: normal;
    opacity: .92;
}

.hp-ad__left b {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.15;
}

.hp-ad__mid {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.hp-ad__mid b {
    overflow: hidden;
    color: #e8391f;
    font-size: 14px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hp-ad__mid em {
    overflow: hidden;
    color: #c58a3c;
    font-size: 10px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hp-ad__go {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd166, #ffab00);
    color: #7a3d00;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 5px 12px rgba(255, 171, 0, .38);
}

/* ---------- 新手攻略 + 无门槛红包（左右各占一半） ---------- */
.hp-guide {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin: 10px 12px 0;
}

.hp-guide__left {
    flex: 1 1 46%;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border-radius: 14px;
    background: linear-gradient(90deg, #fff7f5, #fffdf7 55%, #fff3ea);
    box-sizing: border-box;
}

.hp-guide__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

.hp-guide__tag {
    align-self: flex-start;
    padding: 1px 7px;
    border-radius: 6px;
    background: #ff2d55;
    color: #fff;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    line-height: 16px;
}

.hp-guide__title {
    color: #1f2126;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.1;
}

.hp-guide__sub {
    color: #9aa0ae;
    font-size: 11px;
    font-style: normal;
}

.hp-guide__btn {
    flex: 0 0 auto;
    margin-right: 0;
    padding: 6px 10px;
    border-radius: 15px;
    background: linear-gradient(135deg, #ff6a7d, #ff2d55);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(255, 45, 85, .22);
}

.hp-guide__ad {
    flex: 1 1 54%;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffe4df, #fff3e0);
    box-sizing: border-box;
}

.hp-guide__adleft {
    flex: 0 0 auto;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 60px;
    padding: 8px 6px;
    border-radius: 10px;
    background: linear-gradient(160deg, #ff6b5e, #ff2d2d);
    color: #fff;
    box-sizing: border-box;
    box-shadow: 0 6px 14px rgba(255, 45, 45, .25);
    text-align: center;
}

.hp-guide__adleft i,
.hp-guide__adleft b {
    width: 100%;
    text-align: center;
    overflow-wrap: anywhere;
}

.hp-guide__adleft i {
    font-size: 9px;
    font-style: normal;
    opacity: .95;
}

.hp-guide__adleft b {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.1;
}

.hp-guide__admid {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    text-align: center;
}

.hp-guide__admid b {
    overflow: hidden;
    color: #e8391f;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hp-guide__admid em {
    overflow: hidden;
    color: #c58a3c;
    font-size: 10px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hp-guide__adgo {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd166, #ffab00);
    color: #7a3d00;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 5px 12px rgba(255, 171, 0, .38);
}

/* ---------- 新手攻略详情页 ---------- */
.page--guide {
    background: #f5f6f8;
    min-height: 100vh;
}

.guide-head {
    padding: 16px 16px 6px;
}

.guide-head h1 {
    margin: 0;
    color: #1f2126;
    font-size: 20px;
    font-weight: 800;
}

.guide-head p {
    margin: 4px 0 0;
    color: #9aa0ae;
    font-size: 12px;
}

.guide-wrap {
    padding: 6px 12px 24px;
}

.guide-card {
    margin-top: 8px;
    padding: 14px 14px 16px;
    border-radius: 12px;
    background: #fff;
}

.guide-card__title {
    margin: 0 0 8px;
    color: #1f2126;
    font-size: 15px;
    font-weight: 800;
}

.guide-card__body {
    color: #3c4150;
    font-size: 13px;
    line-height: 1.75;
    word-break: break-word;
}

.guide-card__body p {
    margin: 0 0 8px;
}

.guide-card__body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 8px 0;
    border-radius: 8px;
}

.guide-card__body h1,
.guide-card__body h2,
.guide-card__body h3 {
    margin: 12px 0 6px;
    color: #1f2126;
    font-weight: 800;
}

.guide-card__body ul,
.guide-card__body ol {
    padding-left: 20px;
    margin: 6px 0;
}

.guide-empty {
    margin-top: 24px;
    padding: 40px 0;
    color: #9aa0ae;
    font-size: 13px;
    text-align: center;
}

.guide-steps {
    margin-top: 10px;
}

.guide-step {
    padding: 8px 0;
}

.guide-step__img {
    display: block;
    width: 100%;
    border-radius: 10px;
    background: #f5f6f8;
}

.guide-step__text {
    margin: 8px 0 0;
    color: #3c4150;
    font-size: 13px;
    line-height: 1.7;
}

/* 限时秒杀 */

.hp-flash {
    margin: 10px 12px 0;
    padding: 12px 12px 14px;
    background: #fff;
    border-radius: 12px;
}

.hp-flash__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.hp-flash__title {
    font-size: 16px;
    font-weight: 800;
    color: #16181d;
    white-space: nowrap;
}

/* 限时秒杀：标题旁的倒计时 */
.hp-flash__countdown {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: none;
}

.hp-flash__cd-label {
    color: #ff2d55;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.hp-flash__cd-time {
    padding: 2px 5px;
    border-radius: 4px;
    background: #ff2d55;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.hp-flash__slots {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.hp-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 0;
    border: 0;
    background: none;
    color: #9aa0ae;
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.hp-slot em {
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
}

.hp-slot i {
    padding: 0 5px;
    border-radius: 8px;
    font-size: 9.5px;
    font-style: normal;
    line-height: 15px;
}

.hp-slot.is-active em,
.hp-slot.is-live em {
    color: #ff2d55;
}

.hp-slot.is-active em {
    font-weight: 800;
}

.hp-slot.is-live i {
    background: #ff2d55;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.hp-flash__list.is-hide {
    display: none;
}

.hp-flash__empty {
    display: block;
    padding: 26px 0;
    color: #a9aebb;
    font-size: 12px;
}

.hp-flash__list {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.hp-flash__item {
    display: flex;
    flex: 0 0 30.5%;
    flex-direction: column;
    gap: 6px;
    scroll-snap-align: start;
}

.hp-flash__img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f2f4f8;
}

.hp-flash__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-flash__name {
    display: -webkit-box;
    overflow: hidden;
    font-size: 11px;
    color: #4a4f5e;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hp-flash__price {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hp-flash__price b {
    color: #ff2d55;
    font-size: 14px;
    font-weight: 800;
}

.hp-flash__price i {
    padding: 0 3px;
    border: 1px solid #ffd0d8;
    border-radius: 3px;
    color: #ff2d55;
    font-size: 9px;
    font-style: normal;
    line-height: 13px;
}

/* 精选推荐 */

.hp-rec {
    margin-top: 10px;
}

.hp-rec__tabs {
    display: flex;
    gap: 10px;
    padding: 5px 12px;
    overflow-x: auto;
    background: #f2f3f6;
    scrollbar-width: none;
}

.hp-rec__tab {
    flex: none;
    padding: 3px 11px;
    border-radius: 12px;
    color: #6b7080;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.hp-rec__tab.is-active {
    background: linear-gradient(135deg, #ff6a7d, #ff2d55);
    color: #fff;
    font-weight: 700;
}

.hp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px 12px 0;
}

.hp-gcard {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border-radius: 10px;
}

.hp-gcard__img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f2f4f8;
}

.hp-gcard__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hp-gcard__title {
    display: -webkit-box;
    overflow: hidden;
    padding: 6px 8px 0;
    font-size: 11.5px;
    color: #2b2f3a;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hp-gcard__meta {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 6px 8px 10px;
}

.hp-gcard__prices {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.hp-gcard__meta-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}

.hp-gcard__meta b {
    color: #000;
    font-size: 14px;
    font-weight: 800;
}

.hp-gcard__meta s {
    color: #aab1bf;
    font-size: 10.5px;
}

.hp-gcard__meta em {
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(255, 45, 85, .1);
    color: #ff2d55;
    font-size: 14px;
    font-weight: 700;
    font-style: normal;
    line-height: 18px;
}

.hp-gcard__meta em i {
    padding: 0 3px;
    border-radius: 3px;
    background: #ff2d55;
    color: #fff;
    font-style: normal;
}

.hp-gcard__coupon {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 5px;
    border: 1px solid #ff2d55;
    border-radius: 4px;
    color: #ff2d55;
    font-size: 12px;
    font-weight: 700;
    line-height: 17px;
    white-space: nowrap;
}

.hp-gcard__coupon-label {
    padding: 0 2px;
    border-radius: 2px;
    background: rgba(255, 45, 85, .12);
    font-style: normal;
}

.hp-gcard__coupon-sep {
    width: 1px;
    height: 12px;
    background: #ff2d55;
}

.hp-gcard__sold {
    margin-left: auto;
    color: #9aa0ae;
    font-size: 10.5px;
}

/* 热搜词 */

.hp-hot {
    margin: 10px 12px 0;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
}

.hp-hot__title {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #16181d;
}

.hp-hot__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hp-hot__chip {
    padding: 5px 12px;
    border-radius: 14px;
    background: #f5f6f8;
    color: #4a4f5e;
    font-size: 12px;
}

/* 无图占位 */

.hp-ph {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #eef2f8, #e2e8f2);
    color: #b4bdcc;
    font-size: 26px;
    font-style: normal;
    font-weight: 700;
}

.hp-ph--sm {
    font-size: 16px;
}

/* 回到顶部 */

.hp-totop {
    position: fixed;
    right: 12px;
    bottom: 86px;
    z-index: 40;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .16);
    color: #6b7080;
    font-size: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}

.hp-totop.is-show {
    opacity: 1;
    pointer-events: auto;
}

/* ============================================================
   桌面浏览器：整体按手机宽度居中，避免移动端版式被拉宽
   ============================================================ */

@media (min-width: 640px) {
    body {
        background: #eceef3;
    }

    .page {
        max-width: 430px;
        margin: 0 auto;
        background: #f5f6f8;
        box-shadow: 0 0 0 1px rgba(15, 23, 42, .04), 0 20px 60px rgba(15, 23, 42, .10);
    }

    .tabbar {
        left: 50%;
        right: auto;
        width: 430px;
        max-width: 430px;
        transform: translateX(-50%);
    }

    .hp-totop {
        right: calc(50% - 215px + 12px);
    }
}

/* ============================================================
   商品详情：底部三操作区（主按钮通栏 + 两个等宽次按钮）
   ============================================================ */

.pdp-actions {
    padding: 0 12px 26px;
}

.pdp-actions__primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff6a3d, #ff3b1f);
    box-shadow: 0 10px 22px rgba(255, 59, 31, .26);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .3px;
}

.pdp-actions__primary:active {
    transform: translateY(1px);
    box-shadow: 0 6px 14px rgba(255, 59, 31, .22);
}

.pdp-actions__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.pdp-actions__ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    border: 1px solid #ffd8ca;
    border-radius: 11px;
    background: #fff;
    color: #f0472a;
    font-size: 13.5px;
    font-weight: 600;
}

.pdp-actions__ghost:active {
    background: #fff6f2;
    border-color: #ffb59c;
}

.pdp-actions__primary svg,
.pdp-actions__ghost svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pdp-actions__hint {
    margin-top: 10px;
    color: #6b7080;
    font-size: 12px;
    line-height: 1.8;
}

/* ============================================================
   商品列表页
   ============================================================ */

.pl-head {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 10px 12px;
    background: #fff;
}

.pl-search {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 4px 0 10px;
    border: 1.5px solid #16171c;
    border-radius: 17px;
    background: #fff;
}

.pl-search__ico {
    flex: none;
    width: 15px;
    height: 15px;
    color: #9aa0ae;
}

.pl-search__input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    background: transparent;
    font-size: 12.5px;
}

.pl-search__btn {
    flex: none;
    height: 26px;
    padding: 0 12px;
    border: 0;
    border-radius: 13px;
    background: #16171c;
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
}

.pl-tabs {
    display: flex;
    gap: 20px;
    padding: 6px 12px 10px;
    overflow-x: auto;
    background: #fff;
    scrollbar-width: none;
}

.pl-tabs::-webkit-scrollbar {
    display: none;
}

.pl-tab {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.pl-tab b {
    font-size: 14px;
    font-weight: 600;
    color: #2b2f3a;
}

.pl-tab em {
    font-size: 9.5px;
    font-style: normal;
    color: #9aa0ae;
}

.pl-tab.is-active b {
    color: #ff2d55;
    font-weight: 800;
}

.pl-tab.is-active em {
    padding: 0 4px;
    border-radius: 6px;
    background: #fff0f4;
    color: #ff2d55;
}

.pl-count {
    padding: 9px 12px 0;
    color: #9aa0ae;
    font-size: 11.5px;
}

.pl-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px 12px 0;
}

.pl-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
}

.pl-card__img {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1.2;
    overflow: hidden;
    background: #f2f4f8;
}

.pl-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pl-card__badge {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 1px 6px;
    border-radius: 8px;
    background: rgba(22, 23, 28, .72);
    color: #fff;
    font-size: 9.5px;
    font-style: normal;
    line-height: 15px;
}

.pl-card__body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px 8px 10px;
}

.pl-card__title {
    display: -webkit-box;
    overflow: hidden;
    color: #2b2f3a;
    font-size: 12px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.pl-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.pl-card__earn,
.pl-card__coupon {
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 9.5px;
    font-style: normal;
    line-height: 15px;
}

.pl-card__earn {
    background: #16171c;
    color: #fff;
}

.pl-card__coupon {
    background: #fff1e8;
    color: #ff5a1f;
}

.pl-card__price {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.pl-card__price b {
    color: #ff2d55;
    font-size: 16px;
    font-weight: 800;
}

.pl-card__price s {
    color: #aab1bf;
    font-size: 10.5px;
}

.pl-card__sales {
    color: #9aa0ae;
    font-size: 10.5px;
}

.pl-more {
    display: block;
    margin: 14px 12px 24px;
    padding: 11px 0;
    border-radius: 10px;
    background: #fff;
    color: #ff2d55;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.pl-guide {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.pl-guide__label {
    flex: none;
    color: #6b7080;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}

.pl-guide span {
    flex: 1;
    padding: 8px 0;
    border-radius: 8px;
    background: #fff;
    color: #6b7080;
    font-size: 11.5px;
    text-align: center;
}

.pl-subtitle {
    margin: 20px 0 8px;
    font-size: 14px;
    font-weight: 700;
}

/* ============================================================
   商品详情页
   ============================================================ */

.page--pdp {
    padding-bottom: 74px;
    background: #f5f6f8;
}

.pd-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f2f4f8;
}

.pd-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 多图轮播：横向 scroll-snap，JS 自动播放 */
.pd-hero__track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.pd-hero__track::-webkit-scrollbar {
    display: none;
}

.pd-hero__slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
}

.pd-hero__dots {
    position: absolute;
    right: 0;
    bottom: 10px;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.pd-hero__dots i {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .6);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
    transition: width .2s ease, background .2s ease;
}

.pd-hero__dots i.is-active {
    width: 16px;
    background: #fff;
}

.pd-hero__dots.is-hide {
    display: none;
}

/* 推荐理由 */
.pd-reason {
    display: flex;
    gap: 8px;
    margin: 10px 12px 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff;
    color: #4a4f5e;
    font-size: 12px;
    line-height: 1.75;
}

.pd-reason b {
    flex: none;
    color: #ff2d55;
    font-weight: 700;
}

.pd-reason.is-hide {
    display: none;
}

/* 宝贝详情 */
.pd-detail {
    margin-top: 10px;
    background: #fff;
}

.pd-detail__head {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 0 10px;
    color: #9aa0ae;
    font-size: 12px;
}

.pd-detail__head::before,
.pd-detail__head::after {
    content: "";
    width: 28px;
    height: 1px;
    margin: 0 8px;
    background: #e9ecf2;
}

.pd-detail__body img {
    display: block;
    width: 100%;
}

.pd-detail.is-hide {
    display: none;
}

/* 猜你喜欢 */
.pd-rec {
    margin-top: 10px;
    padding-bottom: 6px;
}

.pd-rec__head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 0 10px;
    color: #2b2f3a;
    font-size: 13px;
    font-weight: 800;
}

.pd-rec__head i {
    width: 24px;
    height: 1px;
    background: #dfe3ea;
}

.pd-rec__grid {
    padding: 0 12px;
}

.pd-hero__ph {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #c3cbd9;
    font-size: 64px;
    font-weight: 700;
    background: linear-gradient(135deg, #f7f9fc, #e9eef6);
}

.pd-hero__back {
    position: absolute;
    top: 12px;
    left: 12px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(15, 20, 30, .38);
    color: #fff;
    backdrop-filter: blur(3px);
}

.pd-hero__back svg {
    width: 18px;
    height: 18px;
}

.pd-main {
    padding: 12px 14px 14px;
    background: #fff;
}

.pd-price {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.pd-price__left {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
}

.pd-price__tag {
    display: inline-block;
    padding: 0 5px;
    border-radius: 3px;
    background: #ff2d55;
    color: #fff;
    font-size: 10px;
    line-height: 15px;
    vertical-align: 3px;
}

.pd-price__now {
    color: #ff2d55;
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -.5px;
}

.pd-price__old {
    color: #a9aebb;
    font-size: 11px;
    text-decoration: line-through;
}

.pd-price__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    color: #9aa0ae;
    font-size: 10px;
    white-space: nowrap;
}

.pd-price__right b {
    color: #ff8f1f;
    font-size: 14px;
    font-weight: 800;
}

.pd-title {
    margin-top: 8px;
    color: #1f2126;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.5;
}

.pd-agent {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 11px;
    padding: 9px 12px;
    border-radius: 9px;
    background: linear-gradient(90deg, #3b2f28, #574235);
    color: #f7e7c8;
    font-size: 11.5px;
}

.pd-agent__go {
    margin-left: auto;
    color: #ffd166;
    font-weight: 600;
    white-space: nowrap;
}

.pd-coupon {
    display: flex;
    align-items: stretch;
    margin: 10px 12px 0;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(90deg, #ff8a5c, #ff4d3d 62%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(255, 77, 61, .22);
}

.pd-coupon__left {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
    padding: 12px 14px;
}

.pd-coupon__left b {
    font-size: 15.5px;
    font-weight: 800;
}

.pd-coupon__left em {
    font-size: 10.5px;
    font-style: normal;
    opacity: .9;
}

.pd-coupon__btn {
    flex: none;
    width: 96px;
    border: 0;
    background: linear-gradient(160deg, #ff3b30, #d81a10);
    color: #fff;
    font-size: 13.5px;
    font-weight: 800;
}

.pd-info {
    margin: 10px 12px 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff;
}

.pd-info__row {
    display: flex;
    gap: 10px;
    color: #6b7080;
    font-size: 11.5px;
    line-height: 1.7;
}

.pd-info__row + .pd-info__row {
    margin-top: 6px;
}

.pd-info__row span {
    flex: none;
    width: 66px;
    color: #2b2f3a;
    font-size: 13px;
    font-weight: 800;
}

/* 店铺行：整行加粗加黑，比说明行更醒目 */
.pd-info__row--shop {
    align-items: baseline;
    color: #1f2329;
    font-size: 16px;
    font-weight: 800;
}

.pd-info__row--shop span,
.pd-info__row--shop em {
    color: #1f2329;
    font-size: 16px;
    font-style: normal;
    font-weight: 800;
}

.pd-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .98);
    border-top: 1px solid #eef0f3;
    backdrop-filter: blur(10px);
}

/* 回到顶部：浮在底部操作栏上方 */
.pd-top {
    position: fixed;
    right: 12px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    z-index: 39;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #eef0f3;
    border-radius: 50%;
    background: rgba(255, 255, 255, .96);
    color: #4a4f5e;
    box-shadow: 0 4px 14px rgba(31, 35, 41, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.pd-top.is-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pd-top svg {
    width: 18px;
    height: 18px;
}

.pd-bar__side {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: #5b6272;
    font-size: 9.5px;
    text-decoration: none;
}

.pd-bar__side svg {
    width: 19px;
    height: 19px;
}

.pd-bar__side.is-active {
    color: #ff2d55;
}

.pd-bar__main {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    height: 42px;
    border: 0;
    border-radius: 21px;
    font-size: 13px;
    font-weight: 700;
}

.pd-bar__main b {
    font-size: 13.5px;
    line-height: 1.1;
}

.pd-bar__main em {
    max-width: 100%;
    overflow: hidden;
    font-size: 9.5px;
    font-style: normal;
    line-height: 1.1;
    opacity: .85;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pd-bar__main--share {
    background: #16171c;
    color: #fff;
}

.pd-bar__main--self {
    background: linear-gradient(135deg, #ffd84d, #ffc61a);
    color: #4a2c00;
}

.pd-toast {
    position: fixed;
    bottom: 86px;
    left: 50%;
    z-index: 60;
    max-width: 82%;
    padding: 9px 16px;
    border-radius: 8px;
    background: rgba(20, 22, 28, .88);
    color: #fff;
    font-size: 12px;
    line-height: 1.5;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(6px);
    transition: opacity .2s, transform .2s;
}

.pd-toast.is-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================================
   创建分享页
   ============================================================ */

.page--share {
    padding-bottom: 104px;
    background: #f5f6f8;
}

.sh-tabs {
    display: flex;
    background: #fff;
    border-bottom: 1px solid #f0f2f5;
}

.sh-tab {
    position: relative;
    flex: 1;
    height: 44px;
    border: 0;
    background: none;
    color: #6b7080;
    font-size: 14px;
    font-weight: 600;
}

.sh-tab.is-active {
    color: #ff2d55;
    font-weight: 800;
}

.sh-tab.is-active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 24px;
    height: 3px;
    margin-left: -12px;
    border-radius: 2px;
    background: #ff2d55;
}

.sh-panel {
    padding: 12px;
}

.sh-panel.is-hide {
    display: none;
}

.sh-tip {
    margin: 0 0 10px;
    color: #9aa0ae;
    font-size: 11.5px;
    line-height: 1.7;
}

.sh-earn {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fff;
    color: #6b7080;
    font-size: 12px;
}

.sh-earn b {
    color: #ff2d55;
}

.sh-earn__ico {
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ff2d55;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.sh-text {
    margin-top: 10px;
    padding: 12px;
    border-radius: 10px;
    background: #fff;
    color: #2b2f3a;
    font-size: 12.5px;
    line-height: 1.9;
    white-space: pre-wrap;
    word-break: break-all;
}

.sh-opts-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-top: 14px;
}

.sh-opts-head b {
    color: #2b2f3a;
    font-size: 12.5px;
}

.sh-opts-head em {
    color: #9aa0ae;
    font-size: 11px;
    font-style: normal;
}

.sh-opts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.sh-opt {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border: 1px solid #e9ecf2;
    border-radius: 16px;
    background: #fff;
    color: #6b7080;
    font-size: 12px;
    white-space: nowrap;
}

.sh-opt input {
    width: 12px;
    height: 12px;
    margin: 0;
    accent-color: #ff2d55;
}

.sh-opt.is-active {
    border-color: #ff2d55;
    background: #fff5f7;
    color: #ff2d55;
}

/* 未登录提示条 */
.sh-login {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    background: #fff7e8;
    color: #a97a1c;
    font-size: 11.5px;
    line-height: 1.5;
}

.sh-login.is-hide {
    display: none;
}

.sh-login__txt {
    flex: 1;
}

.sh-login__btn {
    flex: none;
    padding: 5px 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffb340, #ff8a00);
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none;
}

.sh-bar {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.sh-mini {
    padding: 6px 16px;
    border: 1px solid #ffd3dd;
    border-radius: 15px;
    background: #fff1f4;
    color: #ff2d55;
    font-size: 12.5px;
    font-weight: 600;
}

.sh-mini:active {
    background: #ffe3e9;
}

.sh-assets {
    margin-top: 14px;
}

.sh-assets__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
}

.sh-assets__head b {
    color: #2b2f3a;
    font-size: 12.5px;
}

.sh-assets__head em {
    color: #9aa0ae;
    font-size: 11px;
    font-style: normal;
}

.sh-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.sh-assets .sh-thumbs {
    margin-top: 0;
}

.sh-thumb {
    display: block;
    width: 92px;
    height: 92px;
    overflow: hidden;
    border-radius: 8px;
    background: #f2f4f8;
}

.sh-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sh-product {
    margin-bottom: 10px;
    color: #2b2f3a;
    font-size: 12.5px;
    line-height: 1.6;
}

.sh-code {
    color: #ff2d55;
    letter-spacing: 1px;
}

.sh-poster {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 140px;
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
}

.sh-poster img {
    display: none;
    width: 100%;
}

.sh-poster img.is-ready {
    display: block;
}

.sh-poster__loading {
    position: absolute;
    color: #9aa0ae;
    font-size: 12px;
}

.sh-poster__loading.is-hide {
    display: none;
}

.sh-poster__price {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    color: #9aa0ae;
    font-size: 11px;
}

.sh-poster__price b {
    color: #ff2d55;
    font-size: 16px;
}

.sh-poster__coupon {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 6px;
    background: #fff0f0;
    color: #ff2d55;
    font-size: 11px;
    font-style: normal;
}

.sh-save {
    display: block;
    width: 100%;
    height: 44px;
    margin-top: 16px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff5f5f, #e8231a);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.sh-actions {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #eef0f3;
}

.sh-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: none;
    color: #4a4f5e;
    font-size: 10.5px;
}

.sh-action__ico {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
}

.sh-action__ico svg {
    width: 18px;
    height: 18px;
}

.sh-action__ico--blue {
    background: linear-gradient(135deg, #57a8ff, #2f7cff);
}

.sh-action__ico--yellow {
    background: linear-gradient(135deg, #ffc93c, #ff9f1a);
}

.sh-action__ico--purple {
    background: linear-gradient(135deg, #b18cff, #7b4dff);
}

.sh-action__ico--orange {
    background: linear-gradient(135deg, #ff8a4c, #ff5722);
}

/* 桌面端：固定底栏跟随手机画布 */
@media (min-width: 640px) {
    .pd-bar,
    .sh-actions {
        right: auto;
        left: 50%;
        width: 430px;
        transform: translateX(-50%);
    }
}

/* 个人信息编辑弹层 */
.set-sheet {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: flex;
    align-items: flex-end;
}

.set-sheet[hidden] {
    display: none;
}

.set-sheet__mask {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .45);
}

.set-sheet__panel {
    position: relative;
    width: 100%;
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
    border-radius: 16px 16px 0 0;
    background: #fff;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, .12);
}

.set-sheet__title {
    color: #1a1d24;
    font-size: 15px;
    font-weight: 600;
}

.set-sheet__input {
    box-sizing: border-box;
    width: 100%;
    height: 44px;
    margin-top: 14px;
    padding: 0 12px;
    border: 1px solid #e6e9f0;
    border-radius: 10px;
    background: #f7f8fb;
    color: #1a1d24;
    font-size: 14px;
}

.set-sheet__input:focus {
    outline: none;
    border-color: #6d5bff;
    background: #fff;
}

.set-sheet__hint {
    margin-top: 8px;
    color: #9aa0ae;
    font-size: 11.5px;
    line-height: 1.5;
}

.set-sheet__actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.set-sheet__btn {
    flex: 1;
    height: 42px;
    border: 0;
    border-radius: 21px;
    background: #f2f4f8;
    color: #4b5163;
    font-size: 14px;
}

.set-sheet__btn--primary {
    background: linear-gradient(135deg, #6f5bff, #4a3aff);
    color: #fff;
    font-weight: 600;
}

/* ---------------------------------------------------------- 会员中心 / 团长中心 */

/* 我的页面：两个中心的入口卡 */
.hub-entries {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 12px;
}

.hub-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 12px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(17, 24, 39, .04);
}

.hub-entry__ico {
    display: grid;
    flex: none;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 17px;
    background: #fff1f3;
}

.hub-entry__txt {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.hub-entry__txt b {
    color: #1f2126;
    font-size: 14px;
    font-weight: 700;
}

.hub-entry__txt em {
    color: #9aa0ae;
    font-size: 10.5px;
    font-style: normal;
    line-height: 1.3;
}

.hub-entry__arrow {
    flex: none;
    color: #c2c7d1;
    font-size: 16px;
}

/* 顶部身份卡 */
.hub-hero {
    padding: 16px 16px 18px;
    color: #fff;
    background: linear-gradient(150deg, #6f5bff 0%, #8f7bff 55%, #b3a4ff 100%);
}

.hub-hero--agent {
    background: linear-gradient(150deg, #ff8a3d 0%, #ff6a3d 45%, #ff4d6d 100%);
}

.hub-hero__row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hub-avatar {
    display: grid;
    flex: none;
    place-items: center;
    width: 52px;
    height: 52px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .75);
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    font-size: 19px;
    font-weight: 700;
}

.hub-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hub-avatar--agent {
    border-radius: 16px;
}

.hub-hero__info {
    flex: 1;
    min-width: 0;
}

.hub-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 17px;
    font-weight: 700;
}

.hub-level {
    padding: 2px 8px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .24);
    font-size: 10.5px;
    font-weight: 600;
}

.hub-code {
    margin-top: 4px;
    font-size: 11.5px;
    opacity: .85;
}

.hub-hero__more {
    flex: none;
    color: #fff;
    font-size: 12px;
    opacity: .9;
}

.hub-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 16px;
    text-align: center;
}

.hub-stats__item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: #fff;
}

.hub-stats__item b {
    font-size: 17px;
    font-weight: 700;
}

.hub-stats__item span {
    font-size: 11px;
    opacity: .85;
}

/* 卡片内的小格 */
.hub-grid4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
    text-align: center;
}

.hub-grid4__item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: #1f2126;
}

.hub-grid4__item b {
    font-size: 15px;
    font-weight: 700;
}

.hub-grid4__item span {
    color: #9aa0ae;
    font-size: 11px;
}

.hub-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    background: #1c1d22;
    color: #fff;
}

.hub-balance__num {
    font-size: 24px;
    font-weight: 700;
}

.hub-balance__label {
    margin-top: 2px;
    font-size: 11px;
    opacity: .7;
}

.hub-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.hub-benefit {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 8px;
    border-radius: 12px;
    background: #f7f8fb;
    text-align: center;
}

.hub-benefit b {
    color: #3c4150;
    font-size: 11.5px;
}

.hub-benefit span {
    color: #ff2d55;
    font-size: 12px;
    font-weight: 700;
}

.hub-progress {
    margin-top: 14px;
}

.hub-progress__meta {
    display: flex;
    justify-content: space-between;
    color: #666e80;
    font-size: 11.5px;
}

.hub-progress__bar {
    height: 8px;
    margin-top: 6px;
    overflow: hidden;
    border-radius: 4px;
    background: #f0f2f7;
}

.hub-progress__bar i {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #8f7bff, #6f5bff);
}

.hub-progress__tip,
.hub-tip {
    margin-top: 8px;
    color: #9aa0ae;
    font-size: 11.5px;
    line-height: 1.5;
}

.hub-target {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff7ef;
}

.hub-target__label {
    display: block;
    color: #b3763a;
    font-size: 11px;
}

.hub-target__name {
    color: #1f2126;
    font-size: 15px;
}

.hub-target__fee b {
    color: #ff5a2d;
    font-size: 15px;
}

.hub-conditions {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.hub-conditions__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid #f2f3f6;
    color: #3c4150;
    font-size: 12.5px;
}

.hub-conditions__item:last-child {
    border-bottom: 0;
}

.hub-conditions__flag {
    display: grid;
    flex: none;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f2f3f6;
    color: #9aa0ae;
    font-size: 10px;
}

.hub-conditions__item.is-met .hub-conditions__flag {
    background: #e8f8ef;
    color: #1aa35a;
}

.hub-conditions__num {
    margin-left: auto;
    color: #6b7280;
    font-size: 12px;
}

.hub-rate-title {
    margin: 14px 0 2px;
    color: #6b7280;
    font-size: 11.5px;
}

.hub-rate-title:first-of-type {
    margin-top: 4px;
}

/* 团长中心 · 分红记录（团队分红 / 全球分红，平级奖随订单实时结算） */
.div-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.div-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff5f0, #fff0eb);
}

.div-row__info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.div-row__info b {
    display: flex;
    align-items: center;
    color: #ff5b3a;
    font-size: 13px;
}

.div-row__rate {
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(255, 91, 58, .1);
    font-size: 10.5px;
    font-weight: 600;
    color: #ff5b3a;
}

.div-row__info > span {
    color: #9aa0ae;
    font-size: 11px;
}

.div-row__amount {
    color: #ff5b3a;
    font-size: 15px;
}

.card .btn--block {
    margin-top: 12px;
}

.card .btn[disabled] {
    opacity: .55;
}

/* ---------------------------------------------------------- 收藏 / 足迹 / 导师 / 邀请码 */

.list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 2px 10px;
    color: #9aa0ae;
    font-size: 11.5px;
}

.list-head a {
    color: #6f5bff;
}

.list-head__link {
    padding: 0;
    border: 0;
    background: none;
    color: #9aa0ae;
    font-size: 11.5px;
    text-decoration: underline;
}

.list-item {
    margin-bottom: 12px;
}

.list-item__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 6px 2px 0;
    color: #9aa0ae;
    font-size: 11px;
}

.list-item__time {
    color: #9aa0ae;
    font-size: 11px;
}

.list-item__del {
    padding: 4px 10px;
    border: 1px solid #f0d0d6;
    border-radius: 10px;
    background: #fff;
    color: #ff2d55;
    font-size: 11.5px;
}

.list-more {
    display: block;
    padding: 12px 0;
    color: #6f5bff;
    font-size: 12px;
    text-align: center;
}

/* 导师微信 */
.mentor {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 2px 0 12px;
}

.mentor__avatar {
    display: grid;
    flex: none;
    place-items: center;
    width: 52px;
    height: 52px;
    overflow: hidden;
    border-radius: 50%;
    background: #f2f0ff;
    color: #6f5bff;
    font-size: 18px;
    font-weight: 700;
}

.mentor__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mentor__info {
    min-width: 0;
}

.mentor__name {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1f2126;
    font-size: 15px;
    font-weight: 600;
}

.mentor__sub {
    margin-top: 3px;
    color: #9aa0ae;
    font-size: 11.5px;
}

.mentor__row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px solid #f4f5f8;
    color: #6b7280;
    font-size: 12.5px;
}

.mentor__row b {
    color: #1f2126;
    font-weight: 600;
}

.mentor__none {
    color: #c2c7d1 !important;
    font-weight: 400 !important;
}

.mentor__qr {
    margin-top: 12px;
    text-align: center;
}

.mentor__qr img {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    background: #fff;
    object-fit: contain;
}

.mentor__qr span {
    display: block;
    margin-top: 6px;
    color: #9aa0ae;
    font-size: 11.5px;
}

.copy-btn {
    margin-left: auto;
    padding: 4px 12px;
    border: 1px solid #e6e2ff;
    border-radius: 10px;
    background: #f7f5ff;
    color: #6f5bff;
    font-size: 11.5px;
}

.hub-level--dark {
    background: #f2f0ff;
    color: #6f5bff;
}

/* 定制邀请码 */
.code-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    background: #1c1d22;
    color: #fff;
}

.code-box__code {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 3px;
}

.code-box .copy-btn {
    border-color: rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.code-form {
    margin-top: 4px;
}

.code-form__input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e6e8ef;
    border-radius: 12px;
    background: #f7f8fb;
    color: #1f2126;
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.code-form__input:focus {
    border-color: #6f5bff;
    background: #fff;
    outline: none;
}

/* 注册页：同意协议勾选 */
.login__agree {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 4px 10px;
    font-size: 13px;
    color: #8a8a8a;
}

.login__agree input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #ff2d55;
}

/* ============================================================
   首页金刚区（一页 5 列 × 2 行，入口多于 10 个左右滑动翻页）
   后台「首页装修 → 多眼导航」控制列数与条目；图标可上传，
   未上传时用「名称首字 + 渐变圆底」占位，避免空白。
   ============================================================ */
.hp-kk {
    margin: 12px 10px 2px;
    padding: 18px 8px 14px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(120, 90, 100, .08);
    /* 整块可拖动：拖的时候不选中文字；悬停保持普通光标 */
    user-select: none;
    -webkit-user-select: none;
}

.hp-kk.is-dragging,
.hp-kk.is-dragging a {
    cursor: grabbing;
}

.hp-kk__dots .hp-dot {
    cursor: pointer;
}

.hp-kk__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.hp-kk__track::-webkit-scrollbar {
    display: none;
}

/* 两侧空白页：滑到尽头时还能把整组图标拉出视野 */
.hp-kk__edge {
    flex: 0 0 100%;
}

.hp-kk__page {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: repeat(var(--hp-kk-cols, 5), minmax(0, 1fr));
    gap: 22px 6px;
    scroll-snap-align: start;
}

.hp-kk__dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 14px;
}

.hp-kk__dots:empty {
    display: none;
}

.hp-kk__dots .hp-dot {
    width: 8px;
    height: 8px;
    background: #cdd2dc;
}

.hp-kk__dots .hp-dot.is-active {
    background: #1f232b;
}

.hp-kk__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 0;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.hp-kk__item:active {
    transform: scale(.96);
}

.hp-kk__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    object-fit: cover;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(15, 23, 42, .10);
}

.hp-kk__icon--tone0 {
    background: linear-gradient(140deg, #ff7a8f, #ff2d55);
}

.hp-kk__icon--tone1 {
    background: linear-gradient(140deg, #ffb44d, #ff8a1f);
}

.hp-kk__icon--tone2 {
    background: linear-gradient(140deg, #7f8cff, #5761f0);
}

.hp-kk__icon--tone3 {
    background: linear-gradient(140deg, #4dd6b0, #16a985);
}

.hp-kk__label {
    max-width: 100%;
    overflow: hidden;
    font-family: "Alibaba PuHuiTi 2.0", "Alibaba PuHuiTi", "AlibabaPuHuiTi-2-55-Regular", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
    color: #2b2f3a;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================================
   AI比价（搜索页入口 + 比价结果）
   ============================================================ */

.ai-compare-entry {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    padding: 5px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.ai-body { padding: 6px 12px 24px; }

.ai-tip { font-size: 12px; line-height: 1.7; color: #8a94a6; margin: 6px 0 12px; }

.ai-loading { padding: 22px 0; text-align: center; font-size: 13px; color: #7c3aed; }

.ai-error { padding: 12px 14px; margin-bottom: 12px; border-radius: 10px; background: #fef1f1; color: #d03a3a; font-size: 12.5px; }

.ai-answer { padding: 12px 14px; margin-bottom: 12px; border-radius: 10px; background: #f4f0ff; color: #4c1d95; font-size: 12.5px; }

.ai-list { display: flex; flex-direction: column; gap: 12px; }

.ai-item { padding: 12px 14px; border: 1px solid #eef1f7; border-radius: 12px; background: #fff; }

.ai-item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }

.ai-item-title { font-size: 13.5px; font-weight: 600; color: #1f2430; line-height: 1.4; }

.ai-badge { flex: none; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 8px; }
.ai-badge--on { background: #fef3c7; color: #b45309; }
.ai-badge--off { background: #fee2e2; color: #b91c1c; }

.ai-note { display: inline-block; margin-left: 6px; font-size: 11px; color: #b45309; }

.ai-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; }

.ai-platform { font-size: 11px; color: #7c3aed; font-weight: 600; }
.ai-price { font-size: 15px; font-weight: 700; color: #e11d48; }

.ai-reason { margin-top: 6px; font-size: 12px; line-height: 1.6; color: #6b7280; }

.ai-line { margin-top: 6px; font-size: 12.5px; color: #374151; }
.ai-line b { color: #1f2430; }

.ai-kouling { color: #e11d48; font-weight: 700; word-break: break-all; }

.ai-link { color: #2563eb; word-break: break-all; }
.ai-link--off { color: #b91c1c; }

.ai-rebate { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: #fdf6ec; }

.ai-empty { padding: 24px 0; text-align: center; font-size: 13px; color: #9aa0ae; }

/* ============================================================
   AI搜索历史 / 排序栏
   ============================================================ */

.ai-history { padding: 2px 12px 10px; }

.ai-history-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: #2b2f3a;
}

.ai-history-head a { font-size: 11px; font-weight: 500; color: #9aa0ae; }

.ai-history-list { display: flex; flex-wrap: wrap; gap: 8px; }

.ai-history-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 13px;
    background: #fff;
    font-size: 12px;
    color: #2b2f3a;
}

.ai-history-item a { color: #2b2f3a; }

.ai-history-del { font-style: normal; color: #b9bec9; cursor: pointer; padding: 0 2px; }

#history-toggle { margin-top: 8px; color: #7c3aed; font-size: 11px; }

/* 热门榜：实时/飙升切换 + 平台筛选 + 只看有券 */
.hot-board__bar {
    display: flex;
    align-items: center;
    /* 「只看有券」紧跟榜单切换按钮靠左排列，不再推到最右侧 */
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.hot-board__types {
    display: flex;
    gap: 6px;
}

.hot-board__types button {
    padding: 4px 12px;
    border: 0;
    border-radius: 12px;
    background: #f2f3f6;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.hot-board__types button.is-active {
    background: #16171c;
    color: #fff;
}

.hot-board__coupon {
    flex: none;
    padding: 4px 10px;
    border: 1px solid #e5e7ef;
    border-radius: 12px;
    background: #fff;
    color: #6b7280;
    font-size: 11.5px;
    line-height: 1.5;
}

.hot-board__coupon.is-active {
    border-color: #ff2d55;
    background: #fff0f2;
    color: #ff2d55;
    font-weight: 600;
}

.hot-board__plats {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    margin-bottom: 8px;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.hot-board__plats::-webkit-scrollbar {
    display: none;
}

.hot-board__plats button {
    flex: none;
    padding: 4px 10px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: #4a4f5e;
    font-size: 11.5px;
    line-height: 1.5;
}

.hot-board__plats button.is-active {
    background: #fff0f2;
    color: #ff2d55;
    font-weight: 600;
}

/* 榜单行默认 flex，靠内联 display:none 控制显隐，切换时移除内联即可恢复 */
.hot-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
}

.hot-board__empty {
    padding: 24px 0;
    text-align: center;
    color: #9aa0ae;
    font-size: 12px;
}

.ai-sortbar {
    display: flex;
    gap: 18px;
    padding: 8px 12px;
    background: #fff;
    border-bottom: 1px solid #f2f3f6;
    overflow-x: auto;
    scrollbar-width: none;
}

.ai-sortbar::-webkit-scrollbar { display: none; }

.ai-sortbar button {
    flex: none;
    border: 0;
    background: transparent;
    padding: 0;
    font-size: 12.5px;
    color: #6b7280;
    cursor: pointer;
}

.ai-sortbar button.is-active { color: #ff2d55; font-weight: 700; }

.ai-sortbar button .ai-sort-arrow { font-size: 10px; margin-left: 2px; }
