@charset "utf-8";
/* ==========================================================================
   SHEIN 商城 · 页面内容样式（各页面共用同一份）
   1. 首页主视觉 hero
   2. 分类宫格 cate-grid
   3. 返利专区 banner
   4. 分类页 / 返利页 / 我的页 / 搜索页
   ========================================================================== */

/* ---------- 1. 首页主视觉 ---------- */
.hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
    padding: 20px 16px 26px;
    background: linear-gradient(118deg, #ffd0dd 0%, #ffe4ec 46%, #ffd8e4 100%);
}

.hero__deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero__deco i {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
}

.hero__deco i:nth-child(1) { width: 120px; height: 120px; top: -46px; right: 64px; opacity: .55; }
.hero__deco i:nth-child(2) { width: 66px;  height: 66px;  bottom: -22px; left: 96px; opacity: .45; }
.hero__deco i:nth-child(3) { width: 28px;  height: 28px;  top: 34px; left: 150px; background: rgba(255, 45, 85, .12); }

.hero__text {
    position: relative;
    z-index: 2;
    max-width: 62%;
}

.hero__tag {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #b3768c;
    text-transform: uppercase;
}

.hero__title {
    margin-top: 7px;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: .5px;
    color: #2b1f24;
}

.hero__sub {
    margin-top: 5px;
    font-size: 12px;
    color: #6b535c;
}

.hero__en {
    margin-top: 2px;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: 14px;
    color: #c07d94;
}

.hero__btn {
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    padding: 7px 16px;
    border-radius: 4px;
    background: linear-gradient(135deg, #ff5372, #ff2d55);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    box-shadow: 0 6px 14px rgba(255, 45, 85, .3);
    transition: transform .16s ease;
}

.hero__btn:active {
    transform: scale(.95);
}

.hero__visual {
    position: absolute;
    right: 6px;
    bottom: 0;
    z-index: 1;
    width: 132px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__model {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 30%, #fff, #ffc3d5 62%, #ff9fb8);
    font-size: 46px;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(199, 88, 124, .22);
}

.hero__dots {
    position: absolute;
    left: 50%;
    bottom: 9px;
    z-index: 3;
    display: flex;
    gap: 4px;
    transform: translateX(-50%);
}

.hero__dots i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .75);
}

.hero__dots i.is-on {
    width: 12px;
    border-radius: 3px;
    background: var(--brand);
}

/* ---------- 2. 分类宫格 ---------- */
.cate-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px 2px;
    background: #fff;
    border-radius: var(--radius);
    margin: 0 10px 12px;
    padding: 16px 6px;
}

.cate-grid__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: transform .16s ease;
}

.cate-grid__item:active {
    transform: scale(.92);
}

.cate-grid__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: var(--brand);
    background: var(--brand-soft);
}

.cate-grid__icon .ic {
    width: 23px;
    height: 23px;
}

.cate-grid__text {
    max-width: 100%;
    font-size: 11px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 图标底色自动轮换，视觉更丰富 */
.cate-grid__item:nth-child(5n+1) .cate-grid__icon { background: #fff0e6; color: #cf8a4f; }
.cate-grid__item:nth-child(5n+2) .cate-grid__icon { background: #ffeaf1; color: #ea648e; }
.cate-grid__item:nth-child(5n+3) .cate-grid__icon { background: #eef2ff; color: #7f8ede; }
.cate-grid__item:nth-child(5n+4) .cate-grid__icon { background: #eafaf3; color: #5cbf95; }
.cate-grid__item:nth-child(5n+5) .cate-grid__icon { background: #fff7e3; color: #d8ac4a; }

/* ---------- 3. 返利专区 banner ---------- */
.rebate-banner {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin: 0 10px 12px;
    padding: 16px;
    border-radius: var(--radius);
    background: linear-gradient(100deg, #ff5b7c 0%, #ff7f9b 52%, #ffa2b7 100%);
    box-shadow: 0 8px 20px rgba(255, 91, 124, .22);
}

.rebate-banner::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -40px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
}

.rebate-banner__text {
    position: relative;
    z-index: 2;
    flex: 1;
    color: #fff;
}

.rebate-banner__title {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(180, 30, 60, .18);
}

.rebate-banner__sub {
    margin-top: 4px;
    font-size: 11.5px;
    opacity: .92;
}

.rebate-banner__gift {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-right: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

.rebate-banner__gift .ic {
    width: 30px;
    height: 30px;
}

.rebate-banner__btn {
    position: relative;
    z-index: 2;
    flex: none;
    padding: 7px 13px;
    border-radius: 999px;
    background: #fff;
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(160, 30, 60, .18);
}

.rebate-banner:active .rebate-banner__btn {
    transform: scale(.95);
}

/* ---------- 4. 页面级样式 ---------- */

/* 区块外层白卡 */
.section {
    margin: 0 10px 12px;
    padding: 14px 12px;
    background: #fff;
    border-radius: var(--radius);
}

/* 横向商品条之间的间距 */
.goods-row + .goods-row {
    margin-top: 14px;
}

/* 分类页 */
.cate-page__aside {
    display: flex;
    gap: 10px;
    padding: 10px;
}

.cate-group {
    margin: 0 10px 12px;
    padding: 14px 12px;
    background: #fff;
    border-radius: var(--radius);
}

.cate-group__title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
}

.cate-group__title::before {
    content: "";
    width: 3px;
    height: 13px;
    border-radius: 2px;
    background: var(--brand);
}

.cate-group__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.cate-group__item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    border-radius: 8px;
    background: #f7f7fa;
    font-size: 12px;
    color: #4a4a52;
    transition: background .18s ease, color .18s ease, transform .16s ease;
}

.cate-group__item:active {
    background: var(--brand-soft);
    color: var(--brand);
    transform: scale(.95);
}

/* 我的页 */
.user-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: -0px 0 12px;
    padding: 20px 16px 26px;
    background: linear-gradient(120deg, #ffd3e0, #ffe8ef 60%, #ffdde8);
}

.user-hero__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    flex: none;
    border-radius: 50%;
    background: #fff;
    font-size: 28px;
    box-shadow: 0 6px 16px rgba(199, 88, 124, .18);
}

.user-hero__name {
    font-size: 16px;
    font-weight: 700;
    color: #2b1f24;
}

.user-hero__level {
    display: inline-flex;
    align-items: center;
    margin-top: 5px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .7);
    color: #b3768c;
    font-size: 10.5px;
    font-weight: 600;
}

.user-assets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: -18px 10px 12px;
    padding: 14px 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 6px 18px rgba(20, 20, 20, .05);
}

.user-assets__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.user-assets__icon {
    color: var(--brand);
}

.user-assets__icon .ic {
    width: 22px;
    height: 22px;
}

.user-assets__value {
    font-size: 14px;
    font-weight: 700;
}

.user-assets__label {
    font-size: 11px;
    color: var(--text-2);
}

/* 我的页：功能入口六宫格（充值 / 提现 / 分享链接 / 我的下级 / 每日任务 / 下载应用） */
.user-entries {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    padding: 14px 8px;
}

.user-entries__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: transform .16s ease;
}

.user-entries__item:active {
    transform: scale(.9);
}

.user-entries__icon {
    width: auto;
    height: 30px;
}

.user-entries__text {
    max-width: 100%;
    font-size: 12px;
    color: #1f1f24;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 搜索页 */
.search-page {
    padding: 14px 10px;
}

.search-page__tip {
    padding: 10px 2px 14px;
    font-size: 12.5px;
    color: var(--text-2);
}

.search-page__tip em {
    color: var(--brand);
    font-style: normal;
    font-weight: 600;
}

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

.chip {
    padding: 6px 13px;
    border-radius: 999px;
    background: #fff;
    color: #4a4a52;
    font-size: 12px;
    transition: background .18s ease, color .18s ease, transform .16s ease;
}

.chip:active {
    background: var(--brand-soft);
    color: var(--brand);
    transform: scale(.95);
}

/* ---------- 5. 内页通用（二级页面） ---------- */

/* 内页背景：与内页头部浅粉渐变自然衔接 */
.page--inner {
    padding: 10px 0 24px;
    background: linear-gradient(180deg, #fff1f5 0%, #fdf8fa 26%, #ffffff 58%);
}

/* 表单卡片 */
.form-card {
    margin: 10px 12px 12px;
    padding: 16px 14px 18px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 8px 22px rgba(214, 168, 182, .14);
}

.form-card__title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .2px;
}

.form-card__divider {
    margin: 13px 0 2px;
    border: 0;
    border-top: 1px dashed #ededf1;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
}

.form-row__label {
    width: 66px;
    flex: none;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
}

.form-row__input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: #f5f5f7;
    font-size: 13.5px;
    color: var(--text);
    outline: none;
    transition: background .18s ease, box-shadow .18s ease;
}

.form-row__input::placeholder {
    color: #b6b6c0;
}

.form-row__input:focus {
    background: #fff;
    box-shadow: 0 0 0 1.5px rgba(255, 45, 85, .34);
}

/* 通栏主按钮 */
.btn-block {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    margin-top: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff7090, #ff2d55);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .5px;
    box-shadow: 0 10px 20px rgba(255, 45, 85, .26);
    transition: transform .15s ease, box-shadow .18s ease;
}

.btn-block:active {
    transform: scale(.985);
    box-shadow: 0 5px 12px rgba(255, 45, 85, .22);
}

/* 设置类列表项（带右箭头） */
.setting-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 2px;
    font-size: 14px;
    font-weight: 600;
}

.setting-item + .setting-item {
    border-top: 1px solid var(--line);
}

.setting-item__label {
    flex: 1;
}

.setting-item .ic {
    width: 15px;
    height: 15px;
    color: var(--text-3);
}

.setting-item:active {
    opacity: .6;
}

/* 账号管理页：首张卡片与内页头部之间留出间距 */
.account-page .section {
    margin-top: 12px;
}

/* 设置列表（白卡内的行，虚线分隔） */
.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 17px 0;
    font-size: 15px;
    color: var(--text);
    transition: opacity .18s ease;
}

.menu-item + .menu-item {
    border-top: 1px dashed #ececf0;
}

.menu-item__label {
    flex: 1;
    min-width: 0;
}

/* 行尾状态文字（如「已认证」） */
.menu-item__value {
    flex: none;
    font-size: 14px;
    font-weight: 700;
    color: var(--brand);
}

.menu-item .ic {
    flex: none;
    width: 15px;
    height: 15px;
    color: #c6c6cd;
}

.menu-item:active {
    opacity: .6;
}

/* 语言切换行 */
.lang-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-row__label {
    flex: none;
    font-size: 15px;
    font-weight: 600;
}

/* 分段切换控件：整行右侧，选中项为品牌色胶囊 */
.lang-switch {
    display: flex;
    flex: 1;
    max-width: 68%;
    margin-left: auto;
    padding: 3px;
    border-radius: 999px;
    background: #fdeef2;
}

.lang-switch__item {
    flex: 1;
    height: 28px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 500;
    color: #7c6b72;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}

.lang-switch__item.is-on {
    background: linear-gradient(135deg, #ff7090, #ff2d55);
    font-weight: 600;
    color: #fff;
    box-shadow: 0 4px 10px rgba(255, 45, 85, .26);
}

/* 通栏主按钮（独立于卡片，自带左右边距；配合 .btn-block 使用）
   button 在 width:auto 下是收缩宽度，这里必须用 calc 撑满 */
.btn-block--outer {
    width: calc(100% - 20px);
    margin: 20px 10px 0;
}
