/* =========================================================================
   首页 banner 行两栏布局 + 个人中心卡片（common/user-card.html 组件样式）
   结构：.banner-row(.container) = .cv-cat(240px 分类列) + .banner-box(flex:1) + .uc-slot(240px)
   PC 端两栏同高（421px 由 .cv-f 决定）；≤992px 卡片隐藏、banner 恢复整行
   ========================================================================= */

/* ---------- banner 行两栏（无缝拼接，与轮播图融为一体） ---------- */
.banner-row {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.banner-row .banner-box {
    flex: 1;
    min-width: 0; /* slick 内部有绝对定位元素，防止撑破 */
    width: auto !important; /* 覆盖 slick.css 的 width:100% !important，交给 flex 分配 */
}

.uc-slot {
    flex: none;
    width: 240px; /* 与左侧常驻分类栏同宽 */
    display: flex;
}

/* ---------- 卡片通用（直角、无边框，与轮播图融为一体） ---------- */
.uc-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: var(--color-bg-card);
    border: 1px solid rgba(0, 0, 0, 0.05); /* 与左侧常驻分类栏同款边框 */
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.05); /* 同款柔和投影 */
    border-radius: 0;
    padding: 18px 20px 14px;
    box-sizing: border-box;
}

/* 头部：头像 + 问候 */
.uc-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.uc-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.uc-head-text {
    min-width: 0;
}

.uc-hello {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uc-sub {
    font-size: 12px;
    color: var(--color-text-tertiary);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- 按钮 ---------- */
.uc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 35px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-base);
}

/* 未登录：微信登录通栏 CTA */
.uc-btn--wechat {
    background: #07c160;
    color: #fff;
}

.uc-btn--wechat:hover {
    background: #06ad56;
    box-shadow: 0 6px 16px rgba(7, 193, 96, 0.35);
}

.uc-btn--wechat .fa-weixin {
    font-size: 18px;
}

/* 登录态：双按钮行（两端撑开，与下方积分条左右边缘对齐） */
.uc-btn-row {
    display: flex;
    justify-content: space-between;
}

/* 双按钮高度对齐下方「更多商品」按钮（more-btn 基础尺寸：4px 12px / 13px 字号） */
.uc-row-btn {
    flex: none;
    font-size: var(--font-size-caption);
    line-height: normal;
}

/* 个人中心按钮无边框，上下各补 1px，与带边框的 more-btn 等高 */
.uc-row-btn.cv__btn {
    padding: 5px 12px;
}

/* 用户卡内按钮 hover 不投影（卡片空间小，下方投影显脏） */
.uc-row-btn.cv__btn:hover,
.uc-row-btn.more-btn:hover {
    box-shadow: none;
}

/* CTA 下辅助说明（首次登录自动建号） */
.uc-tip {
    text-align: center;
    font-size: 11px;
    color: var(--color-text-tertiary);
    margin-top: 10px;
}

/* ---------- 积分条（未登录态用） ---------- */
.uc-points {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin-top: 12px;
    text-decoration: none;
    transition: var(--transition-base);
}

.uc-points--red {
    background: #fdf1f1;
}

.uc-points--red:hover {
    background: #fbe7e7;
}

.uc-points-icon {
    color: var(--color-primary);
    font-size: 20px;
}

.uc-points-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.uc-points-text b {
    font-size: 13px;
    color: #c0392b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.uc-points-text i {
    font-style: normal;
    font-size: 11px;
    color: #bd8f8f;
    margin-top: 3px;
}

/* ---------- 登录态资产条：积分 + 可提现（左右双栏） ---------- */
.uc-asset {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 10px 12px;
    margin-top: 12px;
}

.uc-asset-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease;
}

.uc-asset-item:hover {
    background: #faf7f7;
}

.uc-asset-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 13px;
    flex-shrink: 0;
}

.uc-asset-icon--gold {
    background: #fdf6ec;
    color: #d99b26;
}

.uc-asset-icon--red {
    background: #fdf1f1;
    color: var(--color-primary);
}

.uc-asset-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.uc-asset-label {
    font-size: 11px;
    color: #868e96;
    white-space: nowrap;
}

.uc-asset-value {
    font-size: var(--font-size-btn);
    font-weight: var(--font-weight-btn);
    white-space: nowrap;
}

.uc-asset-value--gold {
    color: #d99b26;
}

.uc-asset-value--red {
    color: var(--color-primary);
}

.uc-asset-divider {
    width: 1px;
    height: 26px;
    background: #f0e0e0;
    margin: 0 8px;
    flex-shrink: 0;
}

/* ---------- 每日签到按钮（描边样式同推广赚钱；登录态为微信绿实底同微信登录 CTA） ---------- */
.uc-signin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: #fff;
    color: var(--color-primary);
    border: 1px solid #eee;
    border-radius: var(--radius-md);
    font-size: 13px;
    padding: 8px 0;
    margin-top: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* 登录引导链接（<a> 无 UA 默认边框，border:none 干净无 outset 风险） */
.uc-signin--login {
    border: none;
}

.uc-signin:hover {
    background: #fdf1f1;
}

/* 登录态：微信绿实底（同微信登录按钮），未登录引导链接保持描边原样 */
.uc-signin:not(.uc-signin--login) {
    background: var(--color-wechat);
    color: #fff;
    border: none;
}

.uc-signin:not(.uc-signin--login):hover {
    background: #06ad56;
}

.uc-signin-arrow {
    font-size: 10px;
}

.uc-signin--done,
.uc-signin:disabled {
    background: #f7f7f7;
    color: #aaa;
    border-color: #eee;
    cursor: default;
}

.uc-signin--done:hover,
.uc-signin:disabled:hover {
    background: #f7f7f7;
}

/* ---------- 宫格 2 列（横排小格：图标左、文字右、左对齐） ---------- */
.uc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 12px;
    flex: 1;
    min-height: 0;
}

.uc-cell {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 8px;
    text-decoration: none;
    border-radius: var(--radius-md);
}

.uc-cell-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    text-align: center;
    color: var(--color-text-body);
    font-size: 16px;
    transition: color 0.2s ease, transform 0.2s ease;
}

/* hover：图标右移 2px + 图标文字变红（位移动效对齐更多商品按钮） */
.uc-cell:hover .uc-cell-icon {
    color: var(--color-primary);
    transform: translateX(2px);
}

.uc-cell:hover .uc-cell-label {
    color: var(--color-primary);
    transform: translateX(2px);
}

.uc-cell-label {
    font-size: 13px;
    color: var(--color-text-body);
    transition: color 0.2s ease, transform 0.2s ease;
}/* ---------- 响应式：≤992px 隐藏卡片与分类列，banner 恢复整行 ---------- */
@media (max-width: 992px) {
    .banner-row {
        display: block;
    }

    .cv-cat,
    .uc-slot {
        display: none;
    }
}
