/* 引用统一基础样式 */
/* 用户中心页面特有的主容器样式 */
.main-container {
    /* 用户中心特有的背景 */
    
    
    /* background: url('../images/user-center-bg.png') no-repeat center center, linear-gradient(180deg, #ffe8d6 0%, #fef7f0 50%, #faf8f5 100%);
    background-size: cover, 100% 100%; */
    /* background-image: url('../images/ptbcz/ptbcz-bg.png'); */ /* 已在 user-center.html 中使用 __TMPL__ 引用 */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;


    padding: 0 1.33rem;
    /* 用户中心特有的滚动行为 */
    overflow-y: auto;
    scroll-behavior:smooth;
    -webkit-overflow-scrolling: touch;
    height:calc(100vh - 4.15rem);
    min-height:auto;
}
.main-container::-webkit-scrollbar{width:0.5rem}
.main-container::-webkit-scrollbar-track{background:#f1f1f1;border-radius:0.25rem}
.main-container::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:0.25rem}
.main-container::-webkit-scrollbar-thumb:hover{background:#a8a8a8}

.bottom-nav {
    max-width: 500px;
}

/* 头部用户信息区域 */
.header {
    position: relative;
    margin-bottom: 1.66rem;
    padding-top: 0.83rem;
}

.header-actions {
    position: absolute;
    top: 0.83rem;
    right: 0;
    display: flex;
    z-index: var(--z-index-overlay);
}

.action-btn {
    width: 2.66rem;
    height: 2.66rem;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    position: relative;
}

.action-btn:hover {
    transform: scale(1.1);
    opacity: 0.7;
}

.message-icon {
    width: 1.66rem;
    height: 1.66rem;
    display: block;
}

.settings-icon {
    width: 1.83rem;
    height: 1.66rem;
    display: block;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1.33rem;
    margin-top: 2.5rem;
}

.avatar {
    width: 4.15rem;
    height: 4.15rem;
    border-radius: 50%;
    overflow: hidden;
    border: 0.083rem solid #fff;
    box-shadow: 0 0.17rem 0.66rem rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    /* 用默认 logo 作底图：img 还没下载完时背景已有 logo，加载好后 img 覆盖上去，
       避免空白→图片的闪烁；onerror 兜底也不会再露出破图。 */
    background: #fff center/cover no-repeat url('../../../../mobilepublic/assets/images/logoo.png');
}

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

.user-details {
    flex: 1;
    min-width: 0;
}

.username {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.2;
}

.account-id {
    font-size: 1.25rem;
    color: #666;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.3;
}

/* 平台币钱包卡片 */
.balance-card-section {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
}

.balance-card {
    position: relative;
    width: 100%;
    border-radius: 1.33rem;
    overflow: visible;
    color: var(--text-color-secondary, #666);
    z-index: 15; /* 高于 balance-icon (z-index: 10) 以覆盖图标 */
}

.balance-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 16px);
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    z-index: 1;
    margin-right: 16px;
}

.balance-card-content {
    position: relative;
    z-index: 2;
    padding: 16px 0px 10px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.balance-header {
    display: flex;
    align-items: center;
    gap: 5px;
}

.balance-title {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

.balance-title-icon {
    width: 17px;
    height: 17px;
}

.balance-amount-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin: 10px 0;
}

.balance-amount {
    font-size: 36px;
    font-weight: 600;
    line-height: 1;
    color: #ffffff;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    margin-bottom: 4px;
}

.details-link {
    background-color: #ffffff;
    color: var(--accent-color, #ff6b35);
    font-size: 13px;
    font-weight: 500;
    padding: 2px 5px;
    border-radius: 8px;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 4px;
}

.balance-details {
    display: flex;
    gap: 4px;
    margin-top: auto;
}

.balance-detail-tag {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 13px;
    font-weight: 400;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    backdrop-filter: blur(10px);
}

.recharge-button-content {
    position: absolute;
    top: 8px;
    right: 0px;
    width: 100px;
    height: 60px;
    z-index: var(--z-index-overlay);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    background-image: url('../images/recharge-button-bg.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.recharge-text-main {
    color: #333333;
    font-size: 12px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.2;
}

.recharge-text-promo {
    color: #ff6b35;
    font-size: 12px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    line-height: 1.2;
}

.balance-icon {
    position: absolute;
    top: 60px; /* 8px (recharge-button-content top) + 60px (recharge-button-content height) - 8px = 60px */
    right: 0px; /* 与 recharge-button-content 右对齐 (right: -10px) */
    width: 24px;
    height: 19px;
    z-index: var(--z-index-overlay); /* 现在可以与 balance-card (z-index: 3) 在同一层级比较 */
}

.balance-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 功能图标网格 */
.features-section {
    border-radius: 8px;
    padding: 15px 0;
    box-shadow: 0px 0px 13px rgba(126, 167, 249, 0.2);
    width: 100%;
    margin-bottom: 24px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    row-gap: 24px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 12px 4px;
    border-radius: 12px;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.feature-icon-wrapper {
    position: relative;
    width: 37px;
    height: 37px;
}

.feature-label {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-color-primary, #333);
    text-align: center;
}

/* 功能图标统一样式 */
.feature-icon {
    width: var(--feature-icon-size);
    height: var(--feature-icon-size);
}

/* 推广横幅图片统一样式 */
.promo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 推广横幅 */
.promo-banner-section {
    position: relative;
    width: 100%;
    aspect-ratio: 345 / 164;
    border-radius: 20px;
    overflow: hidden;
    /* margin-bottom: 20px; */
    margin-bottom: 80px;
}

.promo-banner-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===== 邀请好礼卡（替换 promo 图片，暧昧夜色质感） ===== */
.invite-card {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px;
    border-radius: 20px;
    overflow: hidden;
    isolation: isolate;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    background: linear-gradient(150deg, #3a1430 0%, #2a0f24 52%, #1a0a18 100%);
    box-shadow: 0 14px 30px rgba(28, 8, 26, 0.4);
    transition: transform 0.25s ease;
}

.invite-card:active {
    transform: scale(0.985);
}

/* 渐变描边 */
.invite-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 130, 160, 0.6), rgba(255, 255, 255, 0.04) 45%, rgba(255, 99, 132, 0.25));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 3;
}

/* 右侧人物图 */
.invite-photo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 58%;
    z-index: 0;
    pointer-events: none;
    /* 与图片同色的占位底，消除加载瞬间空白 */
    background: linear-gradient(150deg, #5a1f47 0%, #3a1230 60%, #24102a 100%);
    -webkit-mask: linear-gradient(to right, transparent 0%, #000 42%);
            mask: linear-gradient(to right, transparent 0%, #000 42%);
}

.invite-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% 16%;
}

/* 文案压暗蒙版（保证左侧文字可读） */
.invite-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(100deg, #1c0a18 0%, #1c0a18 28%, rgba(28, 10, 24, 0.72) 48%, rgba(28, 10, 24, 0.15) 66%, transparent 80%);
}

/* 流光扫过 */
.invite-shine {
    position: absolute;
    top: 0;
    left: -60%;
    width: 42%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
    z-index: 1;
    animation: invite-shine 5s ease-in-out infinite;
}

.invite-card-main {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 215px;
    text-shadow: 0 1px 6px rgba(10, 4, 12, 0.7);
}

.invite-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(255, 99, 132, 0.16);
    border: 1px solid rgba(255, 130, 160, 0.4);
    color: #ffb3c4;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.invite-tag::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ff6384;
    box-shadow: 0 0 7px #ff6384;
    animation: invite-blink 1.6s ease-in-out infinite;
}

.invite-card-title {
    margin: 8px 0 0;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.invite-card-title b {
    background: linear-gradient(90deg, #ffc2cf, #ff6384);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.invite-card-desc {
    margin: 6px 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.invite-card-desc b {
    color: #ffb3c4;
    font-weight: 700;
}

/* 数据行 */
.invite-proof {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin-top: 10px;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.62);
    white-space: nowrap;
}

.invite-proof b {
    color: #ff8ba6;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* 叠放头像 */
.invite-avatars {
    display: inline-flex;
    flex-shrink: 0;
}

.invite-avatars i {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid #2a0f24;
    margin-left: -6px;
}

.invite-avatars i:first-child {
    margin-left: 0;
}

.invite-avatars i:nth-child(1) { background: linear-gradient(135deg, #ff9ec4, #ff4d94); }
.invite-avatars i:nth-child(2) { background: linear-gradient(135deg, #c89bff, #8a4af0); }
.invite-avatars i:nth-child(3) { background: linear-gradient(135deg, #ffd36b, #f9a932); }

.invite-card-cta {
    position: relative;
    z-index: 1;
    align-self: flex-start;
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff7a9c, #ff3d6e);
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(255, 61, 110, 0.5);
    text-shadow: none;
}

.invite-card-cta svg {
    width: 14px;
    height: 14px;
    animation: invite-heart-beat 1.8s ease-in-out infinite;
}

@keyframes invite-shine {
    0% { left: -60%; }
    55%, 100% { left: 135%; }
}

@keyframes invite-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes invite-heart-beat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.12); }
    30% { transform: scale(1); }
    45% { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
    .invite-shine,
    .invite-tag::before,
    .invite-card-cta svg {
        animation: none;
    }
}

.promo-banner-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.promo-logo {
    position: absolute;
    top: 10px;
    left: 11px;
    width: 60.28px;
    height: 20.64px;
    text-decoration: none;
}

.promo-logo-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.promo-text {
    position: absolute;
    top: 72px;
    left: 12px;
    width: 198px;
}

.promo-text p {
    margin: 0;
    font-family: var(--font-family-special);
    font-size: 17px;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 0px 0px 3px #422013;
}

.promo-button {
    position: absolute;
    top: 118px;
    left: 12px;
    width: 117px;
    height: 33px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.promo-button-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.promo-button-text {
    position: relative;
    z-index: 2;
    font-family: var(--font-family-button);
    font-weight: 700;
    font-size: 16.5px;
    color: #ffffff;
    text-shadow: 1.4px 0.3px 1.5px #632c04;
}

/* 底部导航栏样式已移至 base.css */

/* 响应式设计 - 横屏适配 */
@media screen and (orientation: landscape) {
    /* .main-container 样式已移至 base.css */
    
    .features-grid {
        /* Keep 4 columns even in landscape */
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
    
    .feature-item {
        padding: 8px 4px;
    }
    
    
    .balance-amount {
        font-size: 28px;
    }
    
    .promo-banner {
        padding: 24px;
        min-height: 100px;
    }
    
    .banner-image {
        width: 100px;
        height: 100px;
    }

    /* .bottom-nav 样式已移至 base.css */
}

/* 响应式设计 - 大屏设备 */
/* .main-container 和 .bottom-nav 样式已移至 base.css */

/* 响应式设计 - 小屏设备 */
@media screen and (max-width: 375px) {
    /* .main-container 样式已移至 base.css */
    
    .features-grid {
        gap: 16px;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
    }
    
    .feature-icon img {
        width: 20px;
        height: 20px;
    }
    
    .balance-amount {
        font-size: 28px;
    }
}

/* 移动端特定优化 */
@media screen and (max-height: 667px) {
    /* .main-container 样式已移至 base.css */
    
    .header {
        margin-bottom: 16px;
    }
    
    .balance-card-section {
        margin-bottom: 20px;
    }
    
    .features-section {
        margin-bottom: 20px;
    }
    
    .promo-banner-section {
        /* margin-bottom: 16px; */
        margin-bottom: 80px;
    }
}

/* 超小屏幕优化 */
@media screen and (max-height: 568px) {
    /* .main-container 样式已移至 base.css */
    
    .balance-amount {
        font-size: 32px;
    }
    
    .features-grid {
        row-gap: 20px;
    }
    
    .feature-item {
        padding: 8px 4px;
    }
}

/* 移除动画效果，消除页面刷新时的闪烁现象 */

/* 触摸反馈 */
.feature-item:active,
.action-btn:active,
.details-btn:active,
.banner-btn:active {
    transform: scale(0.95);
}

/* 滚动优化和安全区域适配已移至 base.css */

/* 从 user-center.html 迁移的内联样式 */

/* 登出按钮样式 */
.user_logout {
    position: absolute;
    right: 1.3rem;
    top: 3.5rem;
    width: 5rem;
    height: 1.6rem;
    color: #2196F3;
    padding: 2px 5px;
    text-align: center;
    background-color: #fff;
    border-radius: 8px;
    user-select: none;
}

/* 提示点样式 */
.tip_dot {
    position: absolute;
    top: 0;
    right: 0px;
    width: 8px;
    height: 8px;
    background-color: #FF0000;
    border-radius: 50%;
    display: none;
}

/* 消息按钮专用角标样式 */
.message-btn .tip_dot {
    top: 0.3rem;
    right: 0.3rem;
    z-index: 10;
}

/* ============================================================
   会员标签 —— 会员炫酷版 / 非会员落差版
   ============================================================ */
.user_vip_status {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    padding: 3px 12px 3px 6px;
    width: fit-content;
    position: relative;
    overflow: hidden;
    /* 会员：金橙渐变 + 流光 + 立体阴影 */
    background: linear-gradient(135deg, #FFE7A8 0%, #FFC764 30%, #FFAA2E 60%, #FF7A18 100%);
    background-size: 200% 200%;
    box-shadow:
        0 2px 8px rgba(255, 138, 30, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
    animation: vipGradientShift 3s ease-in-out infinite;
}

/* 流光扫光（仅会员） */
.user_vip_status::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.7) 50%,
        transparent 100%);
    transform: skewX(-25deg);
    animation: vipShine 2.6s infinite;
    pointer-events: none;
}

/* SVG 皇冠图标容器 */
.user_vip_status_icon {
    display: inline-flex;
    width: 22px;
    height: 18px;
    position: relative;
    z-index: 1;
    align-items: center;
    justify-content: center;
}
.user_vip_status_icon svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* 皇冠图标投影（fill 通过 SVG attr 直接指定渐变） */
.user_vip_status svg { filter: drop-shadow(0 1px 1.5px rgba(120, 60, 0, 0.35)); }

/* 标签文字 */
.user_vip_status_lb {
    color: #6A2A00;
    font-family: "Alibaba PuHuiTi";
    font-size: 13px;
    font-weight: 800;
    line-height: normal;
    letter-spacing: 0.2px;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

/* ---------- 非会员：落差感（灰银 + 静态 + 暗示去开通） ---------- */
.user_vip_status--free {
    background: linear-gradient(135deg, #F2F4F7 0%, #DDE1E8 100%);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    animation: none;
    opacity: 0.95;
}
.user_vip_status--free::before { display: none; }

.user_vip_status--free svg { filter: none; }

.user_vip_status--free .user_vip_status_lb {
    color: #6B7280;
    text-shadow: none;
    font-weight: 700;
}

.user_vip_status_arrow {
    position: relative;
    z-index: 1;
    color: #9BA3AE;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    margin-left: -2px;
}

@keyframes vipGradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes vipShine {
    0%   { left: -75%; }
    60%  { left: 125%; }
    100% { left: 125%; }
}

/* ============================================================
   会员状态卡（普通/会员 演示切换）—— 仅前端预览
   ============================================================ */
.ucv-demo { margin: 0 0 14px; }

/* 卡片通用（圆角对齐邀请页 .ivt-card 的 18px） */
.ucv-card { border-radius: 18px; padding: 14px; }
.ucv-card-top { display: flex; align-items: flex-start; gap: 10px; }
.ucv-card-ico {
    flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.ucv-card-main { flex: 1; min-width: 0; }
.ucv-card-title { font-size: 15px; font-weight: 700; }
.ucv-card-desc { margin-top: 4px; font-size: 11.5px; line-height: 1.4; }
.ucv-card-btn {
    flex-shrink: 0; padding: 5px 12px; border-radius: 999px;
    font-size: 12.5px; font-weight: 700; text-decoration: none !important; white-space: nowrap;
}
.ucv-stats { display: flex; gap: 8px; margin-top: 14px; }
.ucv-stat {
    flex: 1; border-radius: 10px; padding: 9px 6px; text-align: center;
    display: flex; flex-direction: column; gap: 5px;
}
.ucv-stat-label { font-size: 11px; }
.ucv-stat-val { font-size: 16px; font-weight: 800; }
.ucv-stat-val .ucv-dim { font-weight: 600; opacity: 0.6; font-size: 12px; }
.ucv-infinity { letter-spacing: 1px; }
.ucv-benefits {
    display: flex; gap: 6px; margin-top: 12px; padding-top: 12px;
    border-top: 1px dashed rgba(0, 0, 0, 0.12);
}
.ucv-benefit {
    flex: 1; min-width: 0; text-align: center; font-size: 10.5px; line-height: 1.3;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.ucv-benefit i { font-size: 16px; font-style: normal; }

/* 普通用户卡：橙色 */
.ucv-card-free { background: linear-gradient(135deg, #ffe7c2 0%, #ffd49a 100%); border: 1px solid #f5c98a; }
.ucv-card-free .ucv-card-ico { background: #fff; color: #ff8a1f; }
.ucv-card-free .ucv-card-title { color: #7c4a00; }
.ucv-card-free .ucv-card-desc { color: #9a6b1f; }
.ucv-card-free .ucv-card-btn { background: linear-gradient(90deg, #ff7a18, #ff5a00); color: #fff !important; }
.ucv-card-free .ucv-stat { background: rgba(255, 255, 255, 0.6); }
.ucv-card-free .ucv-stat-label { color: #9a6b1f; }
.ucv-card-free .ucv-stat-val { color: #7c4a00; }
.ucv-card-free .ucv-benefits { border-top-color: rgba(124, 74, 0, 0.18); }
.ucv-card-free .ucv-benefit { color: #9a6b1f; }

/* 会员卡：金棕色 */
.ucv-card-member { background: linear-gradient(135deg, #6e4421 0%, #4f3015 100%); border: 1px solid #8a5a2e; }
.ucv-card-member .ucv-card-ico { background: rgba(255, 255, 255, 0.14); }
.ucv-card-member .ucv-card-title { color: #ffe9c2; }
.ucv-card-member .ucv-card-desc { color: #d9b890; }
.ucv-card-member .ucv-card-btn { background: rgba(255, 255, 255, 0.92); color: #7c4a00 !important; }
.ucv-card-member .ucv-stat { background: rgba(255, 255, 255, 0.1); }
.ucv-card-member .ucv-stat-label { color: #d9b890; }
.ucv-card-member .ucv-stat-val { color: #fff7ec; }
.ucv-card-member .ucv-infinity { color: #ffd66b; }
.ucv-card-member .ucv-benefits { border-top-color: rgba(255, 255, 255, 0.15); }
.ucv-card-member .ucv-benefit { color: #d9b890; }

/* 普通/会员 显隐切换 */
.ucv-card-member { display: none; }
.ucv-demo.is-member .ucv-card-free { display: none; }
.ucv-demo.is-member .ucv-card-member { display: block; }

/* ============================================================
   Dark-theme overrides — Phase 1 Task 3 (我的/用户中心)
   All rules scoped to html.app-dark; append-only; no layout props.
   Hardcoded light values mapped to --hd-* tokens.
   ============================================================ */

/* Scrollbar track/thumb (light greys → dark surface tones) */
html.app-dark .main-container::-webkit-scrollbar-track { background: var(--hd-surface); }
html.app-dark .main-container::-webkit-scrollbar-thumb { background: var(--hd-border); }
html.app-dark .main-container::-webkit-scrollbar-thumb:hover { background: var(--hd-text-3); }

/* Avatar border and background fallback (#fff → elevated surface) */
html.app-dark .avatar { border-color: var(--hd-elevated); background-color: var(--hd-elevated); }

/* Primary username text (#333) → main text token */
html.app-dark .username { color: var(--hd-text); }

/* Secondary account-id text (#666) → secondary text token */
html.app-dark .account-id { color: var(--hd-text-2); }

/* balance-title, balance-amount, balance-detail-tag: white-on-colored-bg — SKIP (already white on card gradient) */
/* .balance-title color:#ffffff — SKIP: white text on coloured card image */
/* .balance-amount color:#ffffff — SKIP: white text on coloured card image */
/* .balance-detail-tag color:#ffffff — SKIP: white text on coloured card image */
/* .details-link background:#ffffff — it's a small pill on the coloured card, keep as-is → map to surface */
html.app-dark .details-link { background-color: var(--hd-elevated); }

/* Recharge button text (#333333 on image bg) → main text */
html.app-dark .recharge-text-main { color: var(--hd-text); }
/* .recharge-text-promo: #ff6b35 orange accent — SKIP: semantic accent colour, keep */

/* features-section shadow uses rgba(126,167,249,0.2) → darker shadow */
html.app-dark .features-section { box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.4); }

/* feature-item hover (#rgba white tint) → use elevated surface */
html.app-dark .feature-item:hover { background: var(--hd-elevated); }

/* invite-card: deep dark purple gradient — already dark, no change needed; SKIP */
/* invite-card::after gradient masks — purely decorative, SKIP */
/* invite-photo gradient — already dark, SKIP */
/* invite-scrim gradient — already dark, SKIP */
/* invite-shine gradient — transparent/white overlay, SKIP */
/* invite-tag: rgba pink on dark card — SKIP (already dark-friendly) */
/* invite-tag::before: #ff6384 semantic accent dot — SKIP */
/* invite-card-title: #fff on dark bg — SKIP */
/* invite-card-title b gradient: pink gradient — SKIP */
/* invite-card-desc rgba(255,255,255,0.6) on dark bg — SKIP */
/* invite-card-desc b: #ffb3c4 accent — SKIP */
/* invite-proof rgba(255,255,255,0.62) on dark bg — SKIP */
/* invite-proof b: #ff8ba6 accent — SKIP */
/* invite-avatars i border: #2a0f24 (dark purple) — SKIP: already dark */
/* invite-avatars gradients — all vibrant/accent, SKIP */
/* invite-card-cta gradient + shadow — vibrant CTA, SKIP */

/* promo-text: #ffffff on coloured bg — SKIP (white on image) */
/* promo-button-text: #ffffff on coloured bg — SKIP (white on image) */

/* user_logout: blue text on white card (#2196F3, #fff) */
html.app-dark .user_logout { background-color: var(--hd-surface); color: var(--hd-accent); }

/* tip_dot: #FF0000 — semantic red indicator, SKIP */

/* VIP badge (gold gradient) — semantic/brand colour, SKIP */
/* user_vip_status_lb: #6A2A00 (dark text on gold bg) — SKIP: on gold badge */
/* user_vip_status--free gradient (#F2F4F7 → #DDE1E8 light grey) → surface */
html.app-dark .user_vip_status--free { background: var(--hd-surface); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
/* user_vip_status--free .user_vip_status_lb: #6B7280 (on light grey badge) → text-2 */
html.app-dark .user_vip_status--free .user_vip_status_lb { color: var(--hd-text-2); }
/* user_vip_status_arrow: #9BA3AE muted arrow */
html.app-dark .user_vip_status_arrow { color: var(--hd-text-3); }

/* ucv-card-free: light orange gradient (#ffe7c2 → #ffd49a, border #f5c98a) → surface/border */
html.app-dark .ucv-card-free { background: var(--hd-surface); border-color: var(--hd-border); }
/* ucv-card-free .ucv-card-ico: white bg with orange icon (#fff bg, #ff8a1f color) → elevated */
html.app-dark .ucv-card-free .ucv-card-ico { background: var(--hd-elevated); }
/* ucv-card-free title (#7c4a00 dark-on-light) → main text */
html.app-dark .ucv-card-free .ucv-card-title { color: var(--hd-text); }
/* ucv-card-free desc (#9a6b1f) → text-2 */
html.app-dark .ucv-card-free .ucv-card-desc { color: var(--hd-text-2); }
/* ucv-card-free btn: orange gradient → keep accent gradient */
html.app-dark .ucv-card-free .ucv-card-btn { background: var(--hd-grad); }
/* ucv-card-free 配额卡样式已升级为蓝/金奖励 box（见文件末「配额卡」段），此处不再覆盖 */
/* ucv-card-free benefit (#9a6b1f) → text-2 */
html.app-dark .ucv-card-free .ucv-benefit { color: var(--hd-text-2); }

/* ucv-card-member: dark gold-brown gradient (#6e4421 → #4f3015) — already dark; minor adjustments */
/* border (#8a5a2e) is acceptable in dark mode — remap to border token for consistency */
html.app-dark .ucv-card-member { border-color: var(--hd-border); }
/* title (#ffe9c2 cream) — light on dark bg, keep; desc (#d9b890) keep; stat-val (#fff7ec) keep */
/* btn: white bg with dark text (rgba(255,255,255,0.92), #7c4a00) — remap bg to elevated */
html.app-dark .ucv-card-member .ucv-card-btn { background: var(--hd-elevated); color: var(--hd-text) !important; }
/* ucv-infinity (#ffd66b gold) — semantic accent, SKIP */

/* —— 补漏：页面浅色底图(ptbcz-bg.png 桃色→白，内联设在 .main-container)使整页发白 —— */
/* 深色下去掉底图、铺深底；!important 压内联 background-image */
html.app-dark .main-container { background-image: none !important; background-color: var(--hd-bg); }
/* 功能宫格卡片(.features-section 原无背景，靠底图衬白)→ 深色卡面 */
html.app-dark .features-section { background-color: var(--hd-surface); }
/* 宫格项文字/标题深色化（未登录/请先登录用 .username/.account-id，Phase 1 已覆盖） */
html.app-dark .feature-label { color: var(--hd-text-2); }
html.app-dark .feature-item { color: var(--hd-text); }

/* ============================================================
   立体感 Depth Pass —— 参考邀请页(new_invite_friends)风格
   深色下用「微渐变面 + 顶部内高光 + 下沉投影 + 斜角流光 + 主色辉光」
   把会员卡 / 配额卡 / 宫格 / 头像做出层次。仅覆盖观感，作用域 html.app-dark。
   ============================================================ */

/* —— 页面氛围：磨砂颗粒纹理 + 多层光影，营造深色质感 —— */
/* 层序(前→后)：噪点纹理 / 顶部 hero 辉光 / 右上暖色斜光 / 底部环境冷光 / 纯色底 */
html.app-dark .main-container {
    background-color: var(--hd-bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E"),
        radial-gradient(130% 52% at 50% -8%, rgba(180, 124, 255, 0.20) 0%, rgba(255, 143, 177, 0.06) 38%, transparent 62%),
        radial-gradient(70% 50% at 86% 12%, rgba(255, 143, 177, 0.12) 0%, transparent 55%),
        radial-gradient(120% 70% at 50% 116%, rgba(180, 124, 255, 0.12) 0%, transparent 58%) !important;
    background-repeat: repeat, no-repeat, no-repeat, no-repeat;
    background-size: 160px 160px, 100% 100%, 100% 100%, 100% 100%;
    background-blend-mode: soft-light, normal, normal, normal;
    background-attachment: scroll;
}

/* —— 头像：主色描边 + 下沉投影，浮起来 —— */
html.app-dark .avatar {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.55),
        0 0 0 2px rgba(180, 124, 255, 0.32);
}

/* ============ 会员状态卡（普通 / 会员）============ */
/* 外层块容器对齐邀请页 .ivt-card —— 纯色深色面 + 柔和多层下沉投影 + 极淡顶部内高光。
   去掉原来的深色渐变面 / 斜向玻璃反光 / 超重投影，统一为邀请页那种干净克制的浮起质感。
   会员身份由 👑 图标 / 奶油色标题 / 金色 ∞ 等内部元素表达，外层面保持中性。 */
html.app-dark .ucv-card-free,
html.app-dark .ucv-card-member {
    position: relative;
    overflow: hidden;
    background: var(--hd-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.25),
        0 1px 3px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
/* 卡内容层级正常即可（外层已无流光伪元素） */
html.app-dark .ucv-card-free > *,
html.app-dark .ucv-card-member > * { position: relative; z-index: 1; }

/* —— 卡头图标 ⚡/👑：抬起的玻璃质感方块 —— */
html.app-dark .ucv-card-free .ucv-card-ico {
    background: linear-gradient(150deg, #3b2b52 0%, #281d39 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 4px 10px rgba(0, 0, 0, 0.5);
}
html.app-dark .ucv-card-member .ucv-card-ico {
    background: linear-gradient(150deg, #5a4422 0%, #3a2a12 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 235, 190, 0.2),
        0 4px 10px rgba(0, 0, 0, 0.5);
}

/* —— 立即开通 / 续购 按钮：主色辉光 + 内高光 + 斜向流光扫过 —— */
html.app-dark .ucv-card-free .ucv-card-btn {
    position: relative;
    overflow: hidden;
    background: var(--hd-grad);
    color: #fff !important;
    box-shadow:
        0 6px 18px rgba(180, 124, 255, 0.45),
        0 2px 6px rgba(255, 143, 177, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
html.app-dark .ucv-card-free .ucv-card-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -70%;
    width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: skewX(-25deg);
    animation: ucvBtnShine 2.8s infinite;
    pointer-events: none;
}
html.app-dark .ucv-card-member .ucv-card-btn {
    box-shadow:
        0 5px 14px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
@keyframes ucvBtnShine {
    0%   { left: -70%; }
    55%  { left: 130%; }
    100% { left: 130%; }
}

/* —— 配额卡（今日剩余下载/试玩）：参考邀请页奖励 box 的蓝/金立体彩卡（加强立体感）—— */
/* 结构：悬浮图标圆片 → 大发光数字 → 标签 → 「每日刷新」小药丸 */
html.app-dark .ucv-stat {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 16px 6px 14px;
    border: 0;
}
/* 左上角圆形高光（对齐邀请页 .ivt-reward-box：光影集中在左上角，而非整片斜扫） */
html.app-dark .ucv-stat::before {
    content: '';
    position: absolute;
    top: -40%; left: -30%;
    width: 62%; height: 86%;
    transform: rotate(-15deg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, transparent 72%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
/* 底部暗角，强化「上凸」体积感 */
html.app-dark .ucv-stat::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 52%;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.34));
    pointer-events: none;
    z-index: 0;
}
html.app-dark .ucv-stat > * { position: relative; z-index: 1; }

/* 图标做成悬浮圆片，多叠一层立体 */
html.app-dark .ucv-stat-ico {
    width: 42px; height: 42px;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    align-self: center;
    font-size: 22px; line-height: 1;
    margin-bottom: 6px;
}
html.app-dark .ucv-stat-val { font-size: 26px; font-weight: 900; line-height: 1.1; }
html.app-dark .ucv-stat-val .ucv-dim { font-size: 13px; }
html.app-dark .ucv-stat-label { font-size: 11.5px; font-weight: 600; margin-top: 2px; }
html.app-dark .ucv-stat-valid {
    align-self: center;
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.5;
    padding: 2px 10px;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* 蓝卡（下载）：顶部受光更亮的圆顶渐变 + 提亮发丝边 + 蓝色环境辉光（深底上靠彩色光晕浮起） */
html.app-dark .ucv-stat-blue {
    background: linear-gradient(162deg, #3e6cae 0%, #234a7e 48%, #0e2240 100%);
    box-shadow:
        inset 0 1.5px 0 rgba(208, 230, 255, 0.55),
        0 12px 26px rgba(0, 0, 0, 0.5),
        0 8px 22px rgba(54, 120, 230, 0.42);
}
html.app-dark .ucv-stat-blue .ucv-stat-ico {
    background: linear-gradient(150deg, rgba(160, 196, 255, 0.34), rgba(90, 140, 230, 0.10));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 4px 10px rgba(0, 0, 0, 0.5);
}
html.app-dark .ucv-stat-blue .ucv-stat-val {
    background: linear-gradient(180deg, #e2eeff 0%, #8fbcff 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 2px 7px rgba(47, 111, 224, 0.50));
}
html.app-dark .ucv-stat-blue .ucv-stat-label { color: var(--hd-on-tint-blue); }
html.app-dark .ucv-stat-blue .ucv-stat-valid { color: var(--hd-on-tint-blue); background: rgba(158, 197, 255, 0.18); }

/* 金卡（试玩）：顶部受光更亮的圆顶渐变 + 提亮发丝边 + 金色环境辉光（深底上靠彩色光晕浮起） */
html.app-dark .ucv-stat-gold {
    background: linear-gradient(162deg, #8f6a28 0%, #5a4316 48%, #241a07 100%);
    box-shadow:
        inset 0 1.5px 0 rgba(255, 234, 184, 0.55),
        0 12px 26px rgba(0, 0, 0, 0.5),
        0 8px 22px rgba(210, 158, 52, 0.40);
}
html.app-dark .ucv-stat-gold .ucv-stat-ico {
    background: linear-gradient(150deg, rgba(255, 214, 140, 0.34), rgba(210, 158, 52, 0.10));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 4px 10px rgba(0, 0, 0, 0.5);
}
html.app-dark .ucv-stat-gold .ucv-stat-val {
    background: linear-gradient(180deg, #fff3cf 0%, #ffce6e 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 2px 7px rgba(200, 150, 40, 0.48));
}
html.app-dark .ucv-stat-gold .ucv-stat-label { color: var(--hd-on-tint-gold); }
html.app-dark .ucv-stat-gold .ucv-stat-valid { color: var(--hd-on-tint-gold); background: rgba(255, 224, 138, 0.16); }

/* —— 权益图标：抬起的小圆片 —— */
html.app-dark .ucv-benefit i {
    width: 30px; height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(155deg, #2a2a3d 0%, #1a1a28 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 3px 8px rgba(0, 0, 0, 0.42);
}
html.app-dark .ucv-card-member .ucv-benefit i {
    background: linear-gradient(155deg, #4a3820 0%, #2a1e0f 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 225, 170, 0.12),
        0 3px 8px rgba(0, 0, 0, 0.42);
}

/* ============ 功能宫格 ============ */
/* 宫格卡面：对齐邀请页 .ivt-card —— 纯色深色面 + 极淡发丝边 + 顶部内高光 + 柔和下沉投影 */
html.app-dark .features-section {
    border-radius: 18px;
    background: var(--hd-surface);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.25),
        0 1px 3px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
/* 彩色图标投影抬起，浮在卡面之上（投影加深更跳） */
html.app-dark .feature-icon {
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.6));
    transition: filter 0.25s ease, transform 0.25s ease;
}
html.app-dark .feature-item:active .feature-icon {
    transform: translateY(1px);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

/* 顶部「消息 / 设置」图标：SVG 固定填充 #333，深色底下几乎看不见。
   图标用 <img> 引入，color/fill 无效，只能用 filter 反白。仅作用于深色模式。 */
html.app-dark .message-icon,
html.app-dark .settings-icon {
    /* brightness(0) 先压成纯黑，invert(1) 翻成接近 --hd-text 的近白色 */
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

/* —— 降低动效偏好：关闭流光 —— */
@media (prefers-reduced-motion: reduce) {
    html.app-dark .ucv-card-free .ucv-card-btn::after { animation: none; }
}

/* ============================================================
   个人中心「深色清新」重设计 — 顶部图片头 + 分区标题 + 多彩瓷砖
   作用域 html.app-dark；新结构类 .uc-hero / .uc-hero-bg / .uc-name-row / .uc-sec-title
   模块/链接/流程不变，仅观感与排布。
   ============================================================ */

/* —— 顶部图片头：图片背景 + 暗色蒙版，铺满容器宽度、底部圆角 —— */
html.app-dark .header.uc-hero {
    margin: 0 0 16px;
    padding: 52px 18px 22px;
    border-radius: 0 0 24px 24px;
    overflow: hidden;
}
html.app-dark .uc-hero .uc-hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(160deg, #3a3550 0%, #23202f 100%); /* 图片加载前/失败的兜底色 */
}
html.app-dark .uc-hero .uc-hero-bg img {
    width: 100%; height: 100%; display: block;
    object-fit: cover; object-position: center 32%;
}
html.app-dark .uc-hero .uc-hero-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15,15,23,.30) 0%, rgba(15,15,23,.66) 64%, var(--hd-bg) 100%);
}
html.app-dark .uc-hero > * { position: relative; z-index: 1; }

/* 用户信息行 */
html.app-dark .uc-hero .user-info { display: flex; align-items: center; gap: 13px; }
html.app-dark .uc-hero .avatar {
    width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; overflow: hidden;
    background: #4a4560;
    border: 2px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}
html.app-dark .uc-hero .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
html.app-dark .uc-hero .user-details { flex: 1; min-width: 0; }
html.app-dark .uc-hero .uc-name-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
html.app-dark .uc-hero .username { color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55); }

/* 帐号绑定 → 半透明小药丸 */
html.app-dark .uc-hero .account-id { margin: 0; }
html.app-dark .uc-hero .account-id a {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(0, 0, 0, 0.34); padding: 3px 10px; border-radius: 999px; font-size: 12px;
}

/* 右上浮动圆钮（消息 / 设置） */
html.app-dark .uc-hero .header-actions {
    position: absolute; top: 14px; right: 16px; z-index: 2; display: flex; gap: 10px;
}
html.app-dark .uc-hero .action-btn {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(0, 0, 0, 0.36); backdrop-filter: blur(4px);
    display: inline-flex; align-items: center; justify-content: center;
}

/* —— 分区标题：主色竖条 + 白字 —— */
html.app-dark .uc-sec-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 14px;
}
html.app-dark .uc-sec-title::before {
    content: ''; width: 4px; height: 15px; border-radius: 2px; background: var(--hd-grad);
}

/* —— 常用功能：多彩图标瓷砖（图标本身有色 → 瓷砖用同色淡底衬托，不抢色） —— */
html.app-dark .features-section { padding: 16px 14px; margin-top: 14px; }
html.app-dark .features-grid { row-gap: 18px; }
html.app-dark .features-section .feature-icon-wrapper {
    width: 50px; height: 50px; border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 4px 10px rgba(0, 0, 0, 0.35);
}
html.app-dark .features-section .feature-icon { width: 28px; height: 28px; filter: none; }
html.app-dark .features-section .feature-item:active .feature-icon { transform: translateY(1px); filter: none; }
html.app-dark .features-section .feature-label { color: #d4d4de; }
/* 按出现顺序：邀请(蓝)/我的游戏(紫)/消息(绿)/会员制度(珊瑚)/商务(青)/客服(青) */
html.app-dark .features-grid .feature-item:nth-child(1) .feature-icon-wrapper { background: rgba(80, 150, 250, 0.16); }
html.app-dark .features-grid .feature-item:nth-child(2) .feature-icon-wrapper { background: rgba(150, 90, 239, 0.16); }
html.app-dark .features-grid .feature-item:nth-child(3) .feature-icon-wrapper { background: rgba(60, 206, 162, 0.16); }
html.app-dark .features-grid .feature-item:nth-child(4) .feature-icon-wrapper { background: rgba(251, 90, 72, 0.15); }
html.app-dark .features-grid .feature-item:nth-child(5) .feature-icon-wrapper { background: rgba(51, 190, 251, 0.16); }
html.app-dark .features-grid .feature-item:nth-child(6) .feature-icon-wrapper { background: rgba(51, 190, 251, 0.16); }

/* ============================================================
   清新明亮主题覆盖 —— 个人中心专用（user-center.css 仅本页加载，作用域安全）
   纯 UI：把本页从深色翻成明亮白底；不动任何结构/链接/数据绑定/JS 钩子。
   追加在文件末尾，靠源序压过上方深色规则。
   ============================================================ */

/* 页面底色：浅灰（盖掉深色底/噪点/辉光，1084 行带 !important，故同样用 !important） */
html.app-dark .main-container { background: #eef1f5 !important; }

/* —— 顶部图片头：保留照片，修正裁切(居中偏上不再歪)，蒙版只在底部轻压暗保文字 —— */
html.app-dark .uc-hero .uc-hero-bg img { object-position: center 20%; }
html.app-dark .uc-hero .uc-hero-bg::after {
    background: linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.22) 50%, rgba(0,0,0,.42) 100%) !important;
}

/* —— 会员卡 → 白色明亮卡 —— */
html.app-dark .ucv-card-free,
html.app-dark .ucv-card-member {
    background: #fff !important;
    border: 1px solid #eceef2 !important;
    box-shadow: 0 2px 12px rgba(31,35,41,.06) !important;
}
html.app-dark .ucv-card-free .ucv-card-ico { background: linear-gradient(150deg,#fff0d6,#ffd89a) !important; box-shadow: none !important; }
html.app-dark .ucv-card-member .ucv-card-ico { background: linear-gradient(150deg,#fff0d6,#ffd89a) !important; box-shadow: none !important; }
html.app-dark .ucv-card-title { color: #1f2329 !important; }
html.app-dark .ucv-card-desc { color: #8a909a !important; }
/* CTA：开通=品牌渐变；续购=同款（原会员态白底在白卡上看不见，统一上色） */
html.app-dark .ucv-card-member .ucv-card-btn { background: var(--hd-grad) !important; color: #fff !important; box-shadow: 0 4px 12px rgba(180,124,255,.3) !important; }

/* 配额立体卡 → 浅色蓝/金瓷砖（去掉深色玻璃高光/暗角） */
html.app-dark .ucv-stat { border: 0 !important; }
html.app-dark .ucv-stat::before,
html.app-dark .ucv-stat::after { display: none !important; }
html.app-dark .ucv-stat-blue { background: linear-gradient(150deg,#eaf2ff,#d7e7ff) !important; box-shadow: none !important; }
html.app-dark .ucv-stat-gold { background: linear-gradient(150deg,#fff6e0,#ffe9b8) !important; box-shadow: none !important; }
html.app-dark .ucv-stat-blue .ucv-stat-ico { background: rgba(47,111,224,.14) !important; box-shadow: none !important; }
html.app-dark .ucv-stat-gold .ucv-stat-ico { background: rgba(216,144,26,.16) !important; box-shadow: none !important; }
html.app-dark .ucv-stat-val { background: none !important; -webkit-text-fill-color: currentColor !important; filter: none !important; }
html.app-dark .ucv-stat-blue .ucv-stat-val { color: #2f6fe0 !important; }
html.app-dark .ucv-stat-gold .ucv-stat-val { color: #d8901a !important; }
html.app-dark .ucv-stat-label { color: #7a808a !important; }
html.app-dark .ucv-stat-blue .ucv-stat-valid { color: #2f6fe0 !important; background: rgba(47,111,224,.12) !important; }
html.app-dark .ucv-stat-gold .ucv-stat-valid { color: #b8761a !important; background: rgba(216,144,26,.14) !important; }

/* 权益行 */
html.app-dark .ucv-benefits { border-top: 1px dashed #eceef2 !important; }
html.app-dark .ucv-benefit { color: #8a909a !important; }
html.app-dark .ucv-benefit i { background: #f2f4f7 !important; box-shadow: none !important; }

/* —— 分区标题：深字 + 暖色竖条 —— */
html.app-dark .uc-sec-title { color: #1f2329 !important; }
html.app-dark .uc-sec-title::before { background: linear-gradient(#ff8a3b,#ff5a1f) !important; }

/* —— 常用功能：白卡 + 浅色多彩瓷砖 —— */
html.app-dark .features-section { background: #fff !important; border: 1px solid #eceef2 !important; box-shadow: 0 2px 12px rgba(31,35,41,.06) !important; }
html.app-dark .features-section .feature-label { color: #3a3f47 !important; }
html.app-dark .features-section .feature-icon-wrapper { box-shadow: 0 3px 8px rgba(31,35,41,.08) !important; }
html.app-dark .features-grid .feature-item:nth-child(1) .feature-icon-wrapper { background: #e7f0ff !important; }
html.app-dark .features-grid .feature-item:nth-child(2) .feature-icon-wrapper { background: #f1e9ff !important; }
html.app-dark .features-grid .feature-item:nth-child(3) .feature-icon-wrapper { background: #e3f8ee !important; }
html.app-dark .features-grid .feature-item:nth-child(4) .feature-icon-wrapper { background: #ffeceb !important; }
html.app-dark .features-grid .feature-item:nth-child(5) .feature-icon-wrapper { background: #e3f7fc !important; }
html.app-dark .features-grid .feature-item:nth-child(6) .feature-icon-wrapper { background: #e3f7fc !important; }

/* —— 头图与页面背景「渐变融合」：图片底部用 mask 淡出到页面色，无硬边；上部留压暗保证文字可读 —— */
html.app-dark .header.uc-hero { border-radius: 0 !important; padding: 52px 18px 70px !important; }
html.app-dark .uc-hero .uc-hero-bg { background: #eef1f5 !important; } /* 露出的底色 = 页面底色，淡出即融合 */
html.app-dark .uc-hero .uc-hero-bg img {
    object-position: center 16%;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
}
html.app-dark .uc-hero .uc-hero-bg::after {
    background: linear-gradient(180deg, rgba(0,0,0,.26) 0%, rgba(0,0,0,.30) 48%, rgba(0,0,0,0) 80%) !important;
}

/* ============================================================
   Ethereal Mint —— 个人中心明亮/薄荷设计（DESIGN.md + code.html 参考稿）
   纯 UI 覆盖；user-center.css 仅本页加载，作用域安全。
   不动任何 HTML 数据/链接/JS 钩子/头像 src。追加在末尾，源序压过上方所有层。
   令牌：bg #f8f9ff / 白卡 #fff / 主色薄荷 #006b5f / 文字 #0b1c30 / 次文 #3c4a46
        卡片圆角 24px / 软阴影 0 4px 20px rgba(0,0,0,.04)
   ============================================================ */

/* —— 页面底色（含 html/body，否则深色主题底色 #0f0f17 会在回弹/安全区露黑） —— */
html.app-dark, html.app-dark body { background: #f8f9ff !important; background-color: #f8f9ff !important; }
html.app-dark .main-container { background: #f8f9ff !important; padding-left: 0 !important; padding-right: 0 !important; }
/* 顶部图片头撑满整宽（容器无横向内边距后，header margin:0 即铺满；内容各区块自带 20px 边距） */
html.app-dark .header.uc-hero { width: 100% !important; }

/* —— 顶部图片头：照片 + 底部融入页面色；顶栏标题；头像叠底 —— */
html.app-dark .header.uc-hero {
    position: relative; height: 300px !important;
    margin: 0 !important; padding: 0 !important; border-radius: 0 !important; overflow: hidden;
}
html.app-dark .uc-hero .uc-hero-bg { background: #f8f9ff !important; }
html.app-dark .uc-hero .uc-hero-bg img {
    width: 100%; height: 100%; object-fit: cover; object-position: center 12% !important;
    -webkit-mask-image: none !important; mask-image: none !important;
}
html.app-dark .uc-hero .uc-hero-bg::after {
    background: linear-gradient(180deg, rgba(0,0,0,.40) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,.30) 74%, #f8f9ff 100%) !important;
}
/* 顶栏标题「我的」 */
html.app-dark .uc-topbar-title {
    position: absolute; top: 18px; left: 0; right: 0; z-index: 3; text-align: center;
    color: #fff; font-size: 18px; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.5);
    pointer-events: none;
}
/* 顶栏图标：两端 + 纯白(无底片) */
html.app-dark .uc-hero .header-actions {
    position: absolute; top: 12px; left: 20px; right: 20px; z-index: 3;
    display: flex; justify-content: space-between; align-items: center;
}
html.app-dark .uc-hero .action-btn { width: auto !important; height: auto !important; background: transparent !important; backdrop-filter: none !important; }
/* 身份块叠在照片底部 */
html.app-dark .uc-hero .user-info {
    position: absolute !important; left: 20px; right: 20px; bottom: 34px; z-index: 2;
    display: flex; align-items: center; gap: 14px;
}
html.app-dark .uc-hero .avatar {
    position: relative; width: 80px !important; height: 80px !important; flex: 0 0 80px !important;
    border: 4px solid #fff !important; box-shadow: 0 6px 18px rgba(0,0,0,.28) !important;
}
html.app-dark .uc-hero .avatar img { width: 100%; height: 100%; object-fit: cover; }
html.app-dark .uc-hero .uc-verified {
    position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%;
    background: #006b5f; border: 2px solid #fff; color: #fff; font-size: 11px;
    display: flex; align-items: center; justify-content: center; line-height: 1;
}
html.app-dark .uc-hero .user-details { flex: 1; min-width: 0; }
html.app-dark .uc-hero .uc-name-row { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 0; }
html.app-dark .uc-hero .username { color: #fff !important; font-size: 22px !important; font-weight: 700 !important; text-shadow: 0 2px 8px rgba(0,0,0,.6) !important; }
/* VIP 徽章 / 帐号绑定 → 深色玻璃胶囊（叠在照片上） */
html.app-dark .uc-hero .user_vip_status {
    background: rgba(0,0,0,.42) !important; border: 1px solid rgba(255,255,255,.22) !important;
    color: #fff !important; border-radius: 999px !important; padding: 3px 11px !important;
}
html.app-dark .uc-hero .user_vip_status_lb { color: #fff !important; }
html.app-dark .uc-hero .account-id { margin: 6px 0 0 !important; }
html.app-dark .uc-hero .account-id a {
    background: rgba(0,0,0,.38) !important; color: #fff !important;
    padding: 3px 10px !important; border-radius: 999px !important; font-size: 11px !important;
}

/* —— 内容区：侧边距 20px + 负上边距与图片头叠压 —— */
html.app-dark .ucv-demo { margin: -22px 20px 0 !important; position: relative; z-index: 5; }
/* width:auto 关键：base 里 .features-section/.promo-banner-section 是 width:100%，
   加 20px 边距会比容器宽 40px 而溢出(比上方卡片更宽、且触发横向滚动)。改 auto 才与上方对齐。 */
html.app-dark .features-section { margin: 24px 20px 0 !important; width: auto !important; }
html.app-dark .promo-banner-section { margin: 24px 20px 32px !important; width: auto !important; }

/* —— 会员区：把单卡拆成「横幅 / 配额 / 权益」三张独立卡（保留 free/member 切换） —— */
html.app-dark .ucv-card-free,
html.app-dark .ucv-card-member {
    background: transparent !important; border: 0 !important; box-shadow: none !important;
    padding: 0 !important; overflow: visible !important;
}
/* 会员横幅：品牌色淡彩卡（粉紫淡底，配合浅灰页面不刺眼；强度留给 CTA 按钮） */
/* 会员横幅 → 纯白卡，与下方配额卡/功能卡统一；会员/品牌色只留给 CTA 按钮 */
html.app-dark .ucv-card-top {
    background: #fff !important;
    border-radius: 24px !important; padding: 20px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,.04) !important;
    display: flex; align-items: center; gap: 16px;
}
html.app-dark .ucv-card-free .ucv-card-ico,
html.app-dark .ucv-card-member .ucv-card-ico {
    width: 48px !important; height: 48px !important; border-radius: 14px !important; flex: 0 0 48px;
    background: #f3ecff !important; box-shadow: none !important; color: #B47CFF;
}
html.app-dark .ucv-card-title { color: #3a2b52 !important; font-size: 17px !important; font-weight: 700 !important; }
html.app-dark .ucv-card-desc { color: #7c6f90 !important; opacity: 1; font-size: 12.5px !important; }
/* CTA：品牌粉紫渐变实色 + 白字，在淡彩卡上成为唯一高饱和强调点 */
html.app-dark .ucv-card-free .ucv-card-btn,
html.app-dark .ucv-card-member .ucv-card-btn {
    background: linear-gradient(135deg, #B47CFF 0%, #FF8FB1 100%) !important; color: #fff !important;
    border-radius: 16px !important; padding: 12px 15px !important; white-space: nowrap;
    box-shadow: 0 4px 14px rgba(180,124,255,.32) !important;
}
/* 配额：两张白卡 */
html.app-dark .ucv-stats { display: grid !important; grid-template-columns: 1fr 1fr; gap: 16px !important; margin: 16px 0 0 !important; }
html.app-dark .ucv-stat {
    background: #fff !important; border: 0 !important; border-radius: 24px !important; padding: 16px 12px 14px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,.04) !important;
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
}
html.app-dark .ucv-stat::before, html.app-dark .ucv-stat::after { display: none !important; }
html.app-dark .ucv-stat-ico { width: 48px !important; height: 48px !important; border-radius: 999px !important; font-size: 22px !important; margin: 0 0 2px !important; box-shadow: none !important; }
html.app-dark .ucv-stat-blue .ucv-stat-ico { background: #eaf2ff !important; }
html.app-dark .ucv-stat-gold .ucv-stat-ico { background: #fff3e6 !important; }
html.app-dark .ucv-stat-val { font-size: 30px !important; font-weight: 800 !important; line-height: 1; background: none !important; -webkit-text-fill-color: currentColor !important; filter: none !important; }
html.app-dark .ucv-stat-blue .ucv-stat-val { color: #006b5f !important; }
html.app-dark .ucv-stat-gold .ucv-stat-val { color: #8d4f00 !important; }
html.app-dark .ucv-stat-label { color: #3c4a46 !important; font-size: 14px !important; font-weight: 400 !important; }
/* 「每日刷新」是说明文字而非操作 → 去掉填充药丸，改轻量灰色小字 caption */
html.app-dark .ucv-stat-valid { margin-top: 2px !important; border-radius: 0 !important; padding: 0 !important; font-size: 11px !important; font-weight: 400 !important; box-shadow: none !important; align-self: center; }
html.app-dark .ucv-stat-blue .ucv-stat-valid { background: transparent !important; color: #9aa0a8 !important; }
html.app-dark .ucv-stat-gold .ucv-stat-valid { background: transparent !important; color: #9aa0a8 !important; }
/* 权益：白卡 + 圆形图标 */
html.app-dark .ucv-benefits {
    background: #fff !important; border-top: 0 !important; border-radius: 24px !important;
    padding: 18px 10px !important; box-shadow: 0 4px 20px rgba(0,0,0,.04) !important;
    margin: 16px 0 0 !important; display: flex; justify-content: space-around;
}
html.app-dark .ucv-benefit { color: #3c4a46 !important; font-size: 10px !important; gap: 6px !important; }
html.app-dark .ucv-benefit i { width: 40px !important; height: 40px !important; border-radius: 999px !important; background: #e5eeff !important; box-shadow: none !important; font-size: 17px !important; }

/* —— 常用功能：无外框 + 多彩瓷砖（图标自带色，瓷砖浅色衬底；会员制度用深色强调） —— */
html.app-dark .features-section { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
html.app-dark .uc-sec-title { color: #0b1c30 !important; font-size: 18px !important; }
html.app-dark .uc-sec-title::before { background: #006b5f !important; height: 20px !important; }
/* 6 个功能 → 3 列×2 行，刚好排满、无残缺空格 */
html.app-dark .features-grid { grid-template-columns: repeat(3, 1fr) !important; row-gap: 22px !important; }
html.app-dark .features-section .feature-icon-wrapper { width: 56px !important; height: 56px !important; border-radius: 18px !important; box-shadow: 0 4px 12px rgba(0,0,0,.05) !important; }
html.app-dark .features-section .feature-icon { width: 28px !important; height: 28px !important; filter: none !important; }
html.app-dark .features-section .feature-label { color: #3c4a46 !important; font-size: 13px !important; }
html.app-dark .features-grid .feature-item:nth-child(1) .feature-icon-wrapper { background: #eaf2ff !important; }
html.app-dark .features-grid .feature-item:nth-child(2) .feature-icon-wrapper { background: #f3ecff !important; }
html.app-dark .features-grid .feature-item:nth-child(3) .feature-icon-wrapper { background: #e3f7ee !important; }
html.app-dark .features-grid .feature-item:nth-child(4) .feature-icon-wrapper { background: #ffece9 !important; }
html.app-dark .features-grid .feature-item:nth-child(5) .feature-icon-wrapper { background: #e3f7fc !important; }
html.app-dark .features-grid .feature-item:nth-child(6) .feature-icon-wrapper { background: #e8f1ff !important; }

/* —— 邀请卡：跟随卡片圆角/阴影 —— */
html.app-dark .promo-banner-section .invite-card { border-radius: 24px !important; box-shadow: 0 4px 20px rgba(0,0,0,.04) !important; }

/* —— 底部导航：浅色玻璃；未选中图标 filter 变灰（原灰白图标在浅底会消失） —— */
html.app-dark .bottom-nav {
    background: rgba(248,249,255,.92) !important; backdrop-filter: blur(16px) !important;
    border-top: 1px solid #e5eeff !important; box-shadow: 0 -4px 20px rgba(0,0,0,.05) !important;
}
html.app-dark .bottom-nav .nav-label { color: #6b7a76 !important; }



/* —— 去掉深色滚动条：在浅色页上它渲染成右侧/底部的黑条 —— */
html.app-dark .main-container { overflow-x: hidden !important; scrollbar-width: none !important; -ms-overflow-style: none !important; }
html.app-dark .main-container::-webkit-scrollbar { width: 0 !important; height: 0 !important; background: transparent !important; }
html.app-dark .main-container::-webkit-scrollbar-track { background: transparent !important; }
html.app-dark .main-container::-webkit-scrollbar-thumb { background: transparent !important; }

/* —— 修复：点按「常用功能」瓷砖出现黑块 ——
   旧规则 line 1024 `html.app-dark .feature-item:hover { background: var(--hd-elevated) }` 中
   --hd-elevated 仍是 app_dark 的深色 #20202e（本页 ethereal 用写死浅色翻亮、未重定义 token）；
   移动端点按触发 :hover 且会粘滞 → 瓷砖后出现黑块。覆盖为浅薄荷 press 反馈，根除暗 token。 */
html.app-dark .features-section .feature-item:hover,
html.app-dark .features-section .feature-item:active,
html.app-dark .feature-item:hover,
html.app-dark .feature-item:active {
    background: rgba(0, 107, 95, 0.06) !important;
}

