/* 基础布局样式 */
.user-center-wrap {
    padding: 0;
    background-color: #f7f8fa;
}

.user-center-wrap .container {
    max-width: 1420px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.user-center-grid {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 24px;
    align-items: flex-start;
}

/* 卡片通用样式 */
.card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    padding: 24px;
}

/* 豆汉学堂相关样式 */
.si-head-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.si-head-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 6px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    color: #0284c7;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(2, 132, 199, 0.1);
}

.si-head-more:hover {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: #ffffff;
    border-color: #0284c7;
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}

.si-head-more svg {
    transition: transform 0.2s ease;
}

.si-head-more:hover svg {
    transform: translateX(2px);
}

/* 新手入门区块样式 */
.user-panel {
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.user-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #f5f5f5;
}

.user-panel__title {
    margin: 0;
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.user-panel__more {
    color: #165DFF;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.user-panel__more:hover {
    background-color: #f0f7ff;
}

.user-panel__more svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.user-panel__list--newbie {
    list-style: none;
    margin: 0;
    padding: 0;
}

.user-panel__item--newbie {
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background-color 0.2s;
}

.user-panel__item--newbie:hover {
    background-color: #f9f9f9;
}

.user-panel__item--newbie:last-child {
    border-bottom: none;
}


/* 新手指南链接默认样式 - 黑色无下划线 */
.user-panel__list--newbie .user-panel__item-link {
    color: #333 !important;
    /* 默认黑色 */
    text-decoration: none !important;
    /* 始终无下划线 */
    transition: color 0.2s ease !important;
    /* 平滑过渡效果 */
    text-overflow: ellipsis;
    overflow: hidden;
    width: 10px;
}

/* 鼠标悬停样式 - 变蓝色但保持无下划线 */
.user-panel__list--newbie .user-panel__item-link:hover {
    color: #165DFF !important;
    /* 悬停时变为蓝色 */
    text-decoration: none !important;
    /* 明确移除下划线 */
    background-color: transparent !important;
    /* 确保无背景色变化 */
}

.si-img-small {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.si-img-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.si-img-small img:hover {
    transform: scale(1.05);
}

.user-panel__item-link {
    flex-grow: 1;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}

.user-panel__item-link:hover {
    color: #165DFF;
}

.user-panel__item-date {
    flex-shrink: 0;
    min-width: 85px;
    font-size: 13px;
    color: #666;
    text-align: right;
    padding-left: 10px;
}

.user-panel__empty {
    padding: 20px 0;
    text-align: center;
    color: #999;
    margin: 0;
}

/* 侧边栏样式 */
.user-center-sidebar {
    width: 280px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    padding: 0;
    position: relative;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    min-height: 1180px;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px 20px 1px;
    border-bottom: 1px solid #f0f0f0;
}

.page-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-title:hover {
    color: #4d8eff;
}

.page-title i {
    margin-right: 10px;
    color: #4d8eff;
    transition: all 0.3s ease;
}

.page-title:hover i {
    transform: scale(1.1);
}

.user-section {
    padding: 36px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.user-profile {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #4d8eff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    margin-right: 12px;
    box-shadow: 0 4px 10px rgba(77, 142, 255, 0.3);
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-details {
    flex: 1;
}

.user-id {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 500;
}

.membership-level {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #ffd54f 0%, #ffb300 100%);
    color: #7c6300;
    padding: 1px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.membership-level i {
    margin-right: 5px;
    font-size: 12px;
    color: #7c6300;
}

.upgrade-btn {
    background: #4d8eff;
    color: white !important;
    /* 强制设置默认文字为白色 */
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(77, 142, 255, 0.3);
    text-decoration: none;
    text-align: center;
}

.upgrade-btn:hover {
    background: #3a7df5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(77, 142, 255, 0.4);
    color: white !important;
    /* 确保hover时仍为白色 */
}

/* 确保按钮内的图标也是白色 */
.upgrade-btn i {
    margin-right: 6px;
    font-size: 12px;
    color: white !important;
}

.balance-section {
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.balance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.balance-title {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.balance-title i {
    margin-right: 8px;
    color: #ff9800;
}

.balance-amount {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
    padding-left: 25px;
}

.balance-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-primary {
    background: #4d8eff;
    color: white;
    box-shadow: 0 2px 6px rgba(77, 142, 255, 0.3);
}

.btn-primary:hover {
    background: #3a7df5;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(77, 142, 255, 0.4);
    color: white;
}

/* 兑换豆粒按钮样式 - 解决冲突版本 */
.btn-secondary {
    background: #e6f0ff !important;
    /* 浅蓝色背景 */
    color: #165DFF !important;
    /* 深蓝色文字 */
    border: 1px solid #bfd7ff !important;
    /* 边框颜色 */
    text-decoration: none !important;
}

.btn-secondary:hover {
    background: #d1e3ff;
    /*  hover时稍深的蓝色 */
    color: #165DFF;
    transform: translateY(-1px);
}

/* 确保按钮图标颜色匹配文字 */
.btn-secondary i {
    color: #165DFF !important;
}

.exchange-section {
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 10px;
    color: #e91e63;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    background: #fff;
}

.input-group input:focus {
    border-color: #4d8eff;
    box-shadow: 0 0 0 2px rgba(77, 142, 255, 0.1);
    outline: none;
}

.exchange-btn {
    background: #4d8eff;
    color: white;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(77, 142, 255, 0.3);
    background: #165DFF !important;
    background-image: linear-gradient(135deg, #165DFF 0%, #0E42D2 100%) !important;
    color: #FFFFFF !important;
    border: 1px solid #165DFF !important;
    font-weight: 600 !important;
    /* 统一加粗 */
    letter-spacing: 0.3px !important;
    box-shadow: 0 3px 8px rgba(22, 93, 255, 0.2) !important;
    transition: all 0.3s ease !important;
}

.exchange-btn.is-loading,
.exchange-btn[disabled] {
    opacity: 0.65 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

.exchange-message {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.exchange-message[data-state="success"] {
    color: #16a34a;
}

.exchange-message[data-state="error"] {
    color: #dc2626;
}

.exchange-message[data-state="info"] {
    color: #165DFF;
}

.exchange-btn:hover {
    background: #3a7df5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(77, 142, 255, 0.4);
}

.exchange-btn i {
    margin-right: 8px;
}

.sidebar-menu {
    list-style: none;
    padding: 10px 0;
    flex: 1;
    margin: 0;
}

.sidebar-menu li {
    margin: 0;
}

.sidebar-menu a {
    color: #333 !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 12px 20px;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 14px;
}

.sidebar-menu a:hover {
    background: #f8f9fa;
    color: #4d8eff !important;
}

.sidebar-menu a i {
    margin-right: 10px;
    width: 18px;
    text-align: center;
    font-size: 14px;
}

/* 彩色菜单图标 */
.menu-account i {
    color: #4caf50;
}

.menu-settings i {
    color: #2196f3;
}

.menu-records i {
    color: #ff9800;
}

.menu-logout i {
    color: #f44336;
}

.sidebar-menu a:hover i {
    transform: scale(1.1);
}

.badge {
    background: #e91e63;
    color: white;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 11px;
    margin-left: auto;
}

.divider {
    height: 1px;
    background: #f0f0f0;
    margin: 5px 0;
}

/* 退出登录按钮放在底部 */
.sidebar-footer {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid #f0f0f0;
}

.logout-btn {
    background: #f8f9fa;
    color: #e74c3c;
    border: 1px solid #e74c3c;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-decoration: none;
}

.logout-btn:hover {
    background: #e74c3c;
    color: white;
    transform: translateY(-1px);
}

.logout-btn i {
    margin-right: 8px;
}

/* 登录页面样式 */
.user-center-login {
    padding: 80px 0;
    background-color: #f7f8fa;
}

.user-center-login__card {
    max-width: 420px;
    margin: 0 auto;
    text-align: center;
}

.user-center-login__card #user-center-login-form {
    margin-top: 24px;
}

.user-center-login__card label {
    display: block;
    text-align: left;
    margin-bottom: 6px;
    font-weight: 500;
}

.user-center-login__card input[type="text"],
.user-center-login__card input[type="password"] {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 16px;
}

.user-center-login__card .button-primary {
    width: 100%;
}

/* 主内容区样式 */
.user-center-content {
    margin-bottom: 24px;
}

/* 响应式设计 */
@media only screen and (min-width: 1240px) and (max-width: 1419px) {
    .user-center-wrap .container {
        max-width: 1220px;
    }
}

@media only screen and (min-width: 1160px) and (max-width: 1239px) {
    .user-center-wrap .container {
        max-width: 1140px;
    }
}

@media only screen and (min-width: 960px) and (max-width: 1159px) {
    .user-center-wrap .container {
        max-width: 950px;
    }
}

@media only screen and (max-width: 959px) {
    .user-center-wrap .container {
        width: 98%;
        padding: 0 1%;
    }

    .user-center-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .user-center-wrap {
        padding: 10px 0;
    }

    .card {
        padding: 20px;
        border-radius: 8px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 959px) {

    /* 保持响应式网格布局 */
    .user-center-grid {
        gap: 26px;
        grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .user-center-sidebar {
        width: 100%;
        border-radius: 10px;
        min-height: 700px;
    }

    .sidebar-header {
        padding: 15px 15px 12px;
    }

    .page-title {
        font-size: 14px;
        line-height: 1.2;
        height: auto;
    }

    .user-section,
    .balance-section,
    .exchange-section {
        padding: 15px;
    }

    .user-avatar {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    .balance-amount {
        font-size: 16px;
    }

    .btn {
        padding: 7px 10px;
        font-size: 12px;
    }

    .exchange-btn {
        padding: 9px;
        font-size: 13px;
    }

    .sidebar-menu a {
        padding: 10px 15px;
        font-size: 13px;
    }

    .sidebar-footer {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .user-center-grid {
        display: flex;
        flex-direction: column;
    }

    .user-center-sidebar {
        width: 100%;
        max-width: 100%;
        border-radius: 8px;
        min-height: 650px;
    }

    .sidebar-header {
        padding: 12px 12px 10px;
    }

    .user-section,
    .balance-section,
    .exchange-section {
        padding: 12px;
    }

    .user-profile {
        margin-bottom: 12px;
    }

    .user-avatar {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .user-id {
        font-size: 13px;
    }

    .balance-amount {
        font-size: 16px;
    }

    .balance-actions {
        flex-direction: column;
        gap: 8px;
    }

    .btn {
        padding: 8px 10px;
    }

    .sidebar-footer {
        padding: 12px;
    }
}

/* 豆汉学堂整体容器样式 */
.user-center-related {
    background-color: #ffffff;
    /* 添加白色背景，与页面背景区分开 */
    border-radius: 12px;
    /* 保持与其他卡片一致的圆角 */
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    /* 添加阴影，增强立体感 */
    padding: 24px;
    /* 内部间距 */
    margin-bottom: 24px;
    /* 底部外边距，与其他模块分隔 */
    margin-top: 24px;

}

/* 豆汉学堂标题栏样式 - 形成独立区域 */
.mao-lists .si-head {
    display: flex;
    justify-content: space-between;
    /* 标题居左，更多按钮居右 */
    align-items: center;
    /* 垂直居中对齐 */
    padding-bottom: 16px;
    /* 底部内边距，与内容分隔 */
    margin-bottom: 16px;
    /* 底部外边距 */
    border-bottom: 1px solid #f5f5f5;
    /* 底部边框，强化标题栏边界 */
}

/* 充值弹窗样式 */
body.recharge-modal-open {
    /* overflow: hidden; */
}

.recharge-modal[hidden] {
    display: none !important;
}

.recharge-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.recharge-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
    backdrop-filter: blur(2px);
}


.recharge-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(960px, 92vw);
    height: min(640px, 82vh);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.recharge-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.08);
    color: #1f2937;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.recharge-modal__close:hover,
.recharge-modal__close:focus {
    background: rgba(15, 23, 42, 0.18);
    transform: scale(1.05);
    outline: none;
}

.recharge-modal__content {
    flex: 1 1 auto;
    overflow: auto;
    padding: 0;
    background: #fff;
}

.recharge-modal__loading {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
}

.recharge-modal__loading[hidden] {
    display: none !important;
}

.recharge-modal__spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(79, 70, 229, 0.2);
    border-top-color: #4f46e5;
    border-radius: 50%;
    animation: recharge-spin 0.9s linear infinite;
}

.recharge-modal__loading-text {
    margin: 0;
}

@keyframes recharge-spin {
    to {
        transform: rotate(360deg);
    }
}

.dh-modal-container {
    padding: 24px;
    background-color: #f5f7fa;
    min-height: 100%;
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
}

.dh-modal-container * {
    box-sizing: border-box;
}

.dh-modal-container button {
    font: inherit;
    color: inherit;
    cursor: pointer;
    min-height: 60px;
}

.dh-container {
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.dh-page-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e8e8e8;
}

.dh-page-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dh-page-title i {
    color: #165DFF;
}

.dh-recharge-card {
    background-color: #fff;
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
    margin: 0;
}

.dh-recharge-header {
    background-color: #165DFF;
    color: white;
    padding: 20px 24px;
}

.dh-recharge-header h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.dh-recharge-body {
    padding: 24px;
}

.dh-amount-section {
    margin-bottom: 30px;
}

.dh-section-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.dh-amount-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.dh-amount-option {
    background-color: #f5f7fa;
    border: 1px solid #e1e5eb;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    -webkit-appearance: none;
    appearance: none;
}

.dh-amount-option:hover {
    border-color: #165DFF;
    background-color: #f0f7ff;
}

.dh-amount-option.dh-selected {
    background-color: #e6f0ff;
    border-color: #165DFF;
    box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.1);
}

.dh-amount-option:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.2);
}

.dh-amount-value {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.dh-amount-points {
    font-size: 13px;
    color: #666;
}

.dh-custom-amount {
    margin-top: 20px;
}

.dh-custom-amount input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e1e5eb;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 8px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.dh-custom-amount input:focus {
    border-color: #165DFF;
    outline: none;
    box-shadow: 0 0 0 2px rgba(22, 93, 255, 0.1);
}

.dh-custom-hint {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

.dh-payment-section {
    margin-bottom: 30px;
}

.dh-payment-options {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.dh-payment-option {
    flex: 1;
    border: 1px solid #e1e5eb;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: #fff;
    -webkit-appearance: none;
    appearance: none;
}

.dh-payment-option:hover {
    border-color: #165DFF;
}

.dh-payment-option.dh-selected {
    border-color: #165DFF;
    background-color: #f0f7ff;
}

.dh-payment-option.dh-selected::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #165DFF;
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 14px;
}

.dh-payment-icon {
    font-size: 16px;
}

.dh-payment-name {
    font-weight: 500;
}

.dh-wechat .dh-payment-icon {
    color: #07C160;
}

.dh-alipay .dh-payment-icon {
    color: #1677FF;
}

.dh-agreement {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 30px;
    font-size: 13px;
    color: #666;
}

.dh-agreement a {
    color: #165DFF;
    text-decoration: none;
}

.dh-agreement a:hover {
    text-decoration: underline;
}

.dh-recharge-footer {
    padding: 16px 24px;
    background-color: #fafafa;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.dh-recharge-summary {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dh-summary-amount {
    font-weight: 600;
    color: #165DFF;
}

.dh-confirm-btn {
    background: linear-gradient(135deg, #165DFF 0%, #0E42D2 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(22, 93, 255, 0.25);
    text-decoration: none;
}

.dh-confirm-btn:hover {
    background: linear-gradient(135deg, #0F4FFF 0%, #0A36C4 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(22, 93, 255, 0.30);
}

.dh-confirm-btn:focus-visible {
    outline: 3px solid rgba(22, 93, 255, 0.35);
    outline-offset: 2px;
}

.dh-confirm-btn:disabled {
    background-color: #99b9ff;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 768px) {
    .dh-amount-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .dh-payment-options {
        flex-direction: column;
    }

    .dh-recharge-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .dh-confirm-btn {
        width: 100%;
    }
}

/* 确保标题文字样式合适 */
.mao-lists .si-head h2 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    /* 清除默认margin */
}

/* 豆汉学堂内容区域与标题栏区分 */
.mao-list {
    padding-top: 8px;
    /* 顶部内边距，与标题栏分隔 */
}

/* 升级会员按钮 - 增强文字突出度 */
.upgrade-btn {
    background: #E6F0FF !important;
    color: #0E42D2 !important;
    /* 加深文字颜色，提高对比度 */
    border: 1px solid #BFDBFE !important;
    font-weight: 600 !important;
    /* 加粗文字 */
    letter-spacing: 0.3px !important;
    /* 略微增加字间距 */
    transition: all 0.3s ease !important;
}

.upgrade-btn:hover {
    color: #0A3CA0 !important;
    /* 悬停时文字颜色更深 */
    background: #DBEAFE !important;
    border-color: #93C5FD !important;
    box-shadow: 0 3px 6px rgba(22, 93, 255, 0.1) !important;
    transform: translateY(-1px) !important;
}

.upgrade-btn i {
    color: #0E42D2 !important;
    /* 图标颜色同步加深 */
    font-weight: normal !important;
}

/* 充值按钮 - 增强文字突出度 */
.balance-actions .btn-primary {
    background: #F0F7FF !important;
    color: #0E42D2 !important;
    /* 加深文字颜色 */
    border: 1px solid #DBEAFE !important;
    font-weight: 600 !important;
    /* 加粗文字 */
    letter-spacing: 0.3px !important;
    /* 略微增加字间距 */
    transition: all 0.3s ease !important;
}

.balance-actions .btn-primary:hover {
    color: #0A3CA0 !important;
    /* 悬停时文字颜色更深 */
    background: #E0EFFF !important;
    border-color: #BFDBFE !important;
    box-shadow: 0 3px 6px rgba(22, 93, 255, 0.08) !important;
    transform: translateY(-1px) !important;
}

.balance-actions .btn-primary i {
    color: #0E42D2 !important;
    /* 图标颜色同步加深 */
    font-weight: normal !important;
}

/* 立即兑换按钮 - 保持现有风格 */
.exchange-btn {
    background: #165DFF !important;
    background-image: linear-gradient(135deg, #165DFF 0%, #0E42D2 100%) !important;
    color: #FFFFFF !important;
    border: 1px solid #165DFF !important;
    font-weight: 600 !important;
    /* 统一加粗 */
    letter-spacing: 0.3px !important;
    box-shadow: 0 3px 8px rgba(22, 93, 255, 0.2) !important;
    transition: all 0.3s ease !important;
}

/* 统一按钮基础样式 */
.upgrade-btn,
.balance-actions .btn-primary,
.exchange-btn {
    padding: 8px 16px !important;
    border-radius: 8px !important;
}

/* 按钮图标间距 */
.upgrade-btn i,
.balance-actions .btn-primary i,
.exchange-btn i {
    margin-right: 8px !important;
}

/* 恢复升级会员按钮的箭头图标样式 */
.upgrade-btn i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    /* 确保使用solid风格图标 */
    content: "\f062" !important;
    /* 这是向上箭头的Unicode编码 */
}

/* 如果需要更精确控制，检查并确保HTML中的图标类正确 */
/* 正确的HTML应该是：<i class="fas fa-arrow-up"></i> */

/* 升级会员按钮 - 浅蓝色次要风格（换回蓝色系） */
.upgrade-btn {
    background: #E6F0FF !important;
    color: #0E42D2 !important;
    border: 1px solid #BFDBFE !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
}

.upgrade-btn:hover {
    background: #DBEAFE !important;
    border-color: #93C5FD !important;
    color: #0A3CA0 !important;
    box-shadow: 0 3px 6px rgba(22, 93, 255, 0.1) !important;
    transform: translateY(-1px) !important;
}

.upgrade-btn i {
    color: #0E42D2 !important;
    margin-right: 8px !important;
}

/* 快速充值按钮 - 蓝色主风格（换回蓝色系） */
.balance-actions .btn-primary {
    background: #165DFF !important;
    border: 1px solid #165DFF !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    box-shadow: 0 3px 8px rgba(22, 93, 255, 0.2) !important;
    transition: all 0.3s ease !important;
}

.balance-actions .btn-primary:hover {
    background: #0F52D9 !important;
    border-color: #0F52D9 !important;
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.25) !important;
    transform: translateY(-2px) !important;
    color: #FFFFFF !important;
    /* 确保hover时文字保持白色 */
}

.balance-actions .btn-primary i {
    color: #FFFFFF !important;
    margin-right: 8px !important;
}

/* 立即兑换按钮 - 保持橘红色风格 */
.exchange-btn {
    background: #FF7D3B !important;
    background-image: linear-gradient(135deg, #FF7D3B 0%, #F5653F 100%) !important;
    color: #FFFFFF !important;
    border: 1px solid #FF7D3B !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    box-shadow: 0 3px 8px rgba(255, 125, 59, 0.2) !important;
    transition: all 0.3s ease !important;
}

.exchange-btn:hover {
    background: #FF6B2A !important;
    background-image: linear-gradient(135deg, #FF6B2A 0%, #E85A2F 100%) !important;
    border-color: #FF6B2A !important;
    box-shadow: 0 4px 12px rgba(255, 125, 59, 0.25) !important;
    transform: translateY(-2px) !important;
    color: #FFFFFF !important;
}

.exchange-btn i {
    color: #FFFFFF !important;
    margin-right: 8px !important;
}

/* 按钮点击效果统一 */
.upgrade-btn:active,
.balance-actions .btn-primary:active,
.exchange-btn:active {
    transform: translateY(0) !important;
    color: #FFFFFF !important;
}


/* 会员首页标题及图标颜色修改 */
.page-title {
    font-size: 16px;
    font-weight: 600;
    color: #333 !important;
    /* 会员首页标题文字改为白色 */
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-title:hover {
    color: #333 !important;
    /* 鼠标悬停时仍保持白色 */
}

.page-title i {
    margin-right: 10px;
    color: #333 !important;
    /* 会员首页前面的图标改为白色 */
    transition: all 0.3s ease;
}

.page-title:hover i {
    color: #333 !important;
    /* 鼠标悬停时图标仍保持白色 */
    transform: scale(1.1);
}

/* 快速充值按钮颜色强化 - 确保默认和hover都是白色文字 */
.balance-actions .btn-primary {
    background: #2196F3 !important;
    color: #FFFFFF !important;
    /* 快速充值默认文字白色 */
    border: 1px solid #2196F3 !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    box-shadow: 0 3px 8px rgba(22, 93, 255, 0.2) !important;
    transition: all 0.3s ease !important;
}

.balance-actions .btn-primary:hover {
    background: #2196F3 !important;
    border-color: #2196F3 !important;
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.25) !important;
    transform: translateY(-2px) !important;
    color: #FFFFFF !important;
    /* 快速充值hover时文字保持白色 */
}

.balance-actions .btn-primary i {
    color: #FFFFFF !important;
    /* 快速充值按钮内图标保持白色 */
    margin-right: 8px !important;
}

/* 确保按钮点击时文字仍为白色 */
.balance-actions .btn-primary:active {
    color: #FFFFFF !important;
}