/* =========================================================

   个人中心专属样式
   ========================================================= */

/* ==================== 头像与会员视觉样式 ==================== */
.profile-avatar-container {
    position: relative;
    width: 64px;  /* 可根据实际 UI 调整尺寸 */
    height: 64px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 头像框背景 (底图) */
.profile-avatar-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
}

/* 头像图片 (居中裁剪) */
.profile-avatar-img {
    width: 82%;
    height: 82%;
    object-fit: cover;
    border-radius: 50%;
    z-index: 2;
}

/* 用户名与会员图标布局 */
.profile-nickname-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-nickname {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
}

/* 会员/永久会员名称右侧图标 */
.profile-vip-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    vertical-align: middle;
}

/* 香槟金流光文字 (会员与永久会员共用或定制) */
.profile-nickname.is-vip-name {
    background: linear-gradient(270deg, #996515, #f3e5ab, #d4af37, #f3e5ab, #996515);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700 !important;
    animation: goldShimmer 4s ease infinite;
}

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

/* 越狱/巨魔点击跳转的指针与样式 */
.tool-link-clickable {
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}


.profile-page {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 24px 16px 40px;

    color: #202124;
}


/* =========================================================
   用户信息
   ========================================================= */

.profile-user-header {
    display: flex;
    align-items: center;

    min-height: 52px;

    margin-bottom: 22px;
}


/*.profile-avatar-frame {*/
/*    position: relative;*/

/*    width: 48px;*/
/*    height: 48px;*/

/*    flex: 0 0 48px;*/

/*    border: 2px solid #d0d0d5;*/
/*    border-radius: 50%;*/

/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*}*/


/*.profile-avatar {*/
/*    width: 36px;*/
/*    height: 36px;*/

/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/

/*    color: #b5b5bb;*/
/*}*/


.profile-avatar svg {
    width: 34px;
    height: 34px;

    fill: currentColor;
}


.profile-v-badge {
    position: absolute;

    top: -3px;
    right: -4px;

    width: 16px;
    height: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1.5px solid #ffffff;
    border-radius: 50%;

    background: #b5b5b9;

    color: #ffffff;

    font-size: 10px;
    font-weight: 700;
}


.profile-user-info {
    min-width: 0;

    margin-left: 12px;
}


.profile-nickname {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}


.profile-subtitle {
    margin-top: 2px;

    color: #8b8b91;

    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   试用 Banner
   ========================================================= */

.profile-trial-card {
    padding: 18px;

    border-radius: 20px;

    background: #ffffff;

    margin-bottom: 25px;
}


.profile-trial-header {
    display: flex;
    align-items: center;
}


.profile-trial-icon {
    width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
}


.profile-trial-title {
    margin-left: 8px;

    font-size: 17px;
    font-weight: 700;
}


.profile-trial-subtitle {
    margin-top: 10px;

    color: #777980;

    font-size: 13px;
    line-height: 1.7;
}


.profile-trial-button {
    width: 100%;
    height: 42px;

    margin-top: 16px;

    border: 0;
    border-radius: 21px;

    background: #202124;

    color: #ffffff;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    -webkit-tap-highlight-color: transparent;
}


.profile-trial-button:active {
    opacity: 0.75;
}


.profile-trial-tip {
    margin-top: 10px;

    color: #a0a0a6;

    font-size: 10px;

    text-align: center;

    line-height: 1.5;
}


/* =========================================================
   Section
   ========================================================= */

.profile-section {
    margin-top: 25px;
}


.profile-section-title {
    margin: 0 0 7px 4px;

    color: #73747a;

    font-size: 13px;
    font-weight: 600;

    line-height: 20px;
}


/* =========================================================
   通用卡片
   ========================================================= */

.profile-card {
    overflow: hidden;

    border-radius: 16px;

    background: #ffffff;
}


/* =========================================================
   激活信息
   ========================================================= */

.profile-info-row {
    min-height: 52px;

    padding: 0 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
}


.profile-info-left {
    display: flex;
    align-items: center;

    min-width: 0;

    font-size: 17px;
    font-weight: 400;
}


.profile-info-icon {
    width: 22px;
    height: 22px;

    margin-right: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #6f7076;

    font-size: 19px;
}


.profile-info-value {
    flex-shrink: 0;

    max-width: 58%;

    color: #777980;

    font-size: 17px;
    font-weight: 400;

    text-align: right;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.profile-divider {
    height: 1px;

    margin-left: 16px;

    background: rgba(0, 0, 0, 0.06);
}


/* =========================================================
   Switch
   ========================================================= */

.profile-switch {
    position: relative;

    display: block;

    width: 51px;
    height: 31px;

    flex: 0 0 51px;

    cursor: pointer;
}


.profile-switch input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
}


.profile-switch-track {
    position: absolute;

    inset: 0;

    border-radius: 999px;

    background: #d1d1d6;

    transition: 0.2s ease;
}


.profile-switch-track::after {
    content: "";

    position: absolute;

    top: 3px;
    left: 3px;

    width: 25px;
    height: 25px;

    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.20);

    transition: 0.2s ease;
}


.profile-switch input:checked
+ .profile-switch-track {
    background: #34c759;
}


.profile-switch input:checked
+ .profile-switch-track::after {
    transform: translateX(20px);
}


/* =========================================================
   卡密管理
   ========================================================= */

.profile-card-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 10px;
}


.profile-action-card {
    height: 72px;

    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;

    background: #ffffff;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    cursor: pointer;

    color: #202124;

    -webkit-tap-highlight-color: transparent;
}


.profile-action-card:active {
    transform: scale(0.97);

    background: #f2f2f4;
}


.profile-action-icon {
    height: 22px;

    display: flex;
    align-items: center;

    font-size: 22px;
    line-height: 1;
}


.profile-action-title {
    margin-top: 5px;

    font-size: 12px;
    font-weight: 500;
}


/* =========================================================
   帮助与支持
   ========================================================= */

.profile-help-row {
    position: relative;

    width: 100%;
    min-height: 52px;

    padding: 0 16px;

    border: 0;

    background: transparent;

    display: flex;
    align-items: center;

    color: #202124;

    text-align: left;

    cursor: pointer;
}


.profile-help-row:active {
    background: rgba(0, 0, 0, 0.035);
}


.profile-help-icon {
    width: 22px;

    margin-right: 12px;

    display: flex;
    justify-content: center;

    color: #6f7076;

    font-size: 20px;
}


.profile-help-title {
    flex: 1;

    font-size: 17px;
}


.profile-help-author {
    margin-right: 12px;

    color: #8a8b91;

    font-size: 17px;
}


.profile-help-arrow {
    color: #a4a5aa;

    font-size: 24px;
    line-height: 1;
}


/* =========================================================
   定制服务
   ========================================================= */

.profile-custom-card {
    padding: 18px 16px;
}


.profile-custom-title {
    margin: 0 0 10px;

    font-size: 17px;
    font-weight: 700;
}


.profile-custom-content {
    margin: 0;

    color: #777980;

    font-size: 13px;
    line-height: 1.8;
}


.profile-custom-content b,
.profile-warning b {
    color: #202124;
}


.profile-qr-wrap {
    margin: 18px auto;

    display: flex;
    justify-content: center;
}


.profile-qr {
    width: 200px;
    height: 200px;

    object-fit: contain;

    border-radius: 8px;
}


.profile-warning {
    margin: 0;

    color: #777980;

    font-size: 13px;
    line-height: 1.8;
}


/* =========================================================
   Footer
   ========================================================= */

.profile-footer {
    padding-top: 32px;

    text-align: center;
}


.profile-brand {
    font-size: 15px;
    font-weight: 700;
}


.profile-motto {
    margin-top: 8px;

    color: #85868c;

    font-size: 12px;
    font-weight: 500;
}


.profile-build {
    margin-top: 12px;

    color: #aaaab0;

    font-size: 11px;
}


/* =========================================================
   Toast
   ========================================================= */

.profile-toast {
    position: fixed;

    left: 50%;
    bottom: 30px;

    z-index: 9999;

    transform:
        translate(-50%, 10px);

    padding: 10px 16px;

    border-radius: 12px;

    background: rgba(30, 30, 32, 0.92);

    color: #ffffff;

    font-size: 13px;

    opacity: 0;
    pointer-events: none;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}


.profile-toast.show {
    opacity: 1;

    transform:
        translate(-50%, 0);
}


/* =========================================================
   手机端
   ========================================================= */

@media (max-width: 420px) {

    .profile-page {
        padding-left: 16px;
        padding-right: 16px;
    }

    .profile-info-value {
        font-size: 15px;
    }

    .profile-help-title {
        font-size: 16px;
    }

    .profile-help-author {
        font-size: 15px;
    }

}


/* =========================================================
   深色模式
   如果你的 design.css 已经强制 light，
   可以直接删除这一段。
   ========================================================= */

@media (prefers-color-scheme: dark) {

    .profile-page {
        color: #f2f2f5;
    }

    .profile-trial-card,
    .profile-card,
    .profile-action-card {
        background: #1e1e22;
    }

    .profile-action-card {
        border-color: rgba(255,255,255,0.08);
        color: #f2f2f5;
    }

    .profile-help-row {
        color: #f2f2f5;
    }

    .profile-custom-content,
    .profile-warning,
    .profile-trial-subtitle {
        color: #a3a3ad;
    }

    .profile-divider {
        background: rgba(255,255,255,0.08);
    }

    .profile-v-badge {
        border-color: #1e1e22;
    }

    .profile-trial-button {
        background: #ffffff;
        color: #17171a;
    }

    .profile-custom-content b,
    .profile-warning b {
        color: #ffffff;
    }

}

/* =========================================================
   设备信息长文本/可复制行专属样式
   ========================================================= */
.profile-long-value {
    max-width: 95% !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: pre-wrap !important;
    word-break: break-all !important;
    text-align: right !important;
}

.profile-info-row-copy {
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.profile-info-row-copy:active {
    background: rgba(0, 0, 0, 0.03);
}

@media (max-width: 380px) {
    .profile-long-value {
        font-size: 14px !important;
    }
}



