/* ========== 公告详情弹框通用样式 ========== */
.notic-detail-modal .modal-dialog {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

.notic-detail-modal .modal-content {
    width: 100%;
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.notic-detail-modal .modal-header {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 24px;
}

.notic-detail-modal .modal-header .modal-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 1.15rem;
}

.notic-detail-modal .modal-header .btn-close {
    opacity: 0.5;
    transition: all 0.2s ease;
}

.notic-detail-modal .modal-header .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.notic-detail-modal .modal-body {
    padding: 28px 24px;
    min-height: 200px;
    max-height: 70vh;
    overflow-y: auto;
    line-height: 1.8;
    font-size: 0.95rem;
    color: #334155;
}

.notic-detail-modal .modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 8px 0;
}

.notic-detail-modal .modal-footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 16px 24px;
}

.notic-detail-modal .modal-footer .modal-meta {
    font-size: 0.85rem;
    color: #64748b;
}

/* ========== 会员中心全局样式 ========== */
html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    /* 始终显示滚动条，避免弹框打开时滚动条隐藏/显示导致跳动 */
    overflow-y: scroll;
    min-height: 100vh;
}

/* 防止 Bootstrap 模态框打开时页面跳动 */
body.modal-open {
    overflow: hidden !important;
    /* 让 Bootstrap 自动处理 padding-right 补偿，不要覆盖 */
}

/* 弹框自身不产生滚动条，只保留页面滚动条和弹框内容滚动条 */
.modal {
    overflow: hidden !important;
}

.modal-dialog {
    overflow: hidden !important;
}

* {
    box-sizing: border-box;
}

/* 全局链接样式 - 移除下划线 */
a,
a:hover,
a:focus,
a:active {
    text-decoration: none;
}

/* 可点击元素鼠标指针 */
button,
a,
input[type="button"],
input[type="submit"],
input[type="reset"],
[role="button"],
.bd-btn,
.pay-btn,
.pay-back-btn,
.success-btn,
.btn,
button[role="button"],
.payment-item,
.bd-card,
.table-row,
.renew-btn,
.detail-btn,
.countdown-box,
.pay-tips,
.pay-info-item {
    cursor: pointer;
}

:root {
    --bd-primary: #2563eb;
    --bd-primary-hover: #1d4ed8;
    --bd-primary-light: #eff6ff;
    --bd-accent: #f97316;
    --bd-accent-hover: #ea580c;
    --bd-accent-light: #fff7ed;
    --bd-success: #16a34a;
    --bd-danger: #dc2626;
    --bd-warning: #f59e0b;
    --bd-info: #0ea5e9;
    --bd-sidebar-width: 220px;
    --bd-sidebar-bg: #1e293b;
    --bd-sidebar-text: #cbd5e1;
    --bd-sidebar-active: #2563eb;
    --bd-header-bg: #ffffff;
    --bd-header-height: 64px;
    --bd-body-bg: #f1f5f9;
    --bd-card-bg: #ffffff;
    --bd-card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --bd-card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --bd-radius: 0.5rem;
    --bd-radius-sm: 0.375rem;
    --bd-radius-lg: 0.75rem;
    --bd-transition: all 0.2s ease;
}

body {
    font-family: "Microsoft Yahei","Hiragino Sans GB","Helvetica Neue",Helvetica,tahoma,arial,Verdana,sans-serif,"WenQuanYi Micro Hei","\5B8B\4F53";
    background-color: var(--bd-body-bg);
    color: #334155;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    max-width: 100vw;
}

/* ========== 会员中心布局 ========== */
.bd-member-container {
    display: flex;
    min-height: 100vh;
    max-width: 100vw;
    overflow-x: hidden;
}

.bd-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}

.bd-sidebar-overlay.show {
    display: block;
}

.bd-sidebar {
    width: 220px;
    background: linear-gradient(180deg, #1a1f36 0%, #0d1117 100%);
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.bd-sidebar::-webkit-scrollbar {
    display: none;
}

.bd-sidebar-header {
    padding: 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bd-user-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.user-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(249, 115, 22, 0.4);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.2);
}

.avatar-badge {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid #1a1f36;
}

.user-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

.user-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-name {
    color: #f1f5f9;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

.realname-badge-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.6;
    transition: all 0.2s;
    margin-top: 4px;
}

.realname-badge-link.badge-pending {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
}

.realname-badge-link.badge-verified {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.realname-badge-link.badge-unverified {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.user-company {
    color: #64748b;
    font-size: 0.75rem;
    margin: 3px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.user-assets-row {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 10px;
    font-size: 0.75rem;
    line-height: 1;
}

.asset-item {
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.asset-item i {
    font-size: 0.7rem;
    color: #64748b;
}

.asset-divider {
    color: #334155;
    margin: 0 8px;
    font-size: 0.7rem;
}

.bd-sidebar-nav {
    flex: 1;
    padding: 0.5rem 0;
}

.nav-section {
    margin-bottom: 0.2rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem 0.35rem 40px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    font-weight: 700;
    margin: 0;
}

.section-title i {
    font-size: 0.85rem;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin-bottom: 1px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1rem 1rem 40px;
    color: #cbd5e1;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
    color: #f1f5f9;
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.2) 0%, transparent 100%);
    border-left-color: #f97316;
    font-weight: 600;
}

.nav-link i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.nav-link.logout-link {
    color: #f87171;
}

.nav-link.logout-link:hover {
    color: #fca5a5;
    background: rgba(248, 113, 113, 0.1);
}

.bd-sidebar-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bd-sidebar-footer .copyright {
    margin: 0;
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
}

.bd-main-wrapper {
    flex: 1;
    margin-left: 220px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: calc(100vw - 220px);
    overflow-x: hidden;
}

/* ========== 顶部导航 ========== */
.bd-navbar {
    height: 64px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 220px;
    right: 0;
    z-index: 1030;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    gap: 1rem;
    box-sizing: border-box;
}

.navbar-center {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100% - 280px);
    overflow: hidden;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.bd-mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.3rem;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
}

/* ========== 多条公告左右滚动 ========== */
.bd-notice-scroll {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(90deg, #fff7ed 0%, #fff 100%);
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 0.375rem 0.75rem;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.notice-scroll-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
}

.notice-scroll-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 22px;
}

.notice-scroll-track {
    display: flex;
    gap: 2rem;
    animation: scrollLeft 25s linear infinite;
    white-space: nowrap;
}

.notice-scroll-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    color: #92400e;
    font-weight: 500;
    padding-right: 2rem;
}

.notice-scroll-item i {
    font-size: 0.75rem;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ========== 访问首页按钮 ========== */
.bd-home-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #64748b;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.bd-home-btn:hover {
    background: #e2e8f0;
    color: #2563eb;
    transform: translateY(-1px);
    text-decoration: none;
}

.bd-home-btn i {
    font-size: 1.15rem;
}

/* 桌面端显示文字 */
@media (min-width: 768px) {
    .bd-home-btn {
        width: auto;
        padding: 0.375rem 0.85rem;
        gap: 0.4rem;
        font-size: 0.85rem;
    }

    .bd-home-btn i {
        font-size: 1rem;
    }
}

/* ========== 当前时间 ========== */
.bd-time-widget {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    flex-shrink: 0;
    white-space: nowrap;
}

.bd-time-widget>i {
    font-size: 1rem;
    color: #2563eb;
}

.time-full-display {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
}

/* ========== 天气显示 ========== */
.bd-weather-widget {
    display: flex;
    align-items: center;
    height: 40px;
    overflow: hidden;
    flex-shrink: 0;
}

.bd-weather-widget iframe {
    border: none;
    height: 40px;
}

/* ========== 消息提醒 ========== */
.bd-message-btn {
    position: relative;
}

.message-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.message-toggle:hover {
    background: #e2e8f0;
    color: #2563eb;
}

.message-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    background: #dc2626;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid #fff;
}

.message-dropdown {
    width: 340px;
    padding: 0;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    margin-top: 0.75rem;
}

.message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.message-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.message-mark-read {
    font-size: 0.8rem;
    color: #2563eb;
    text-decoration: none;
}

.message-mark-read:hover {
    text-decoration: underline;
}

.message-list {
    max-height: 320px;
    overflow-y: auto;
}

.message-item {
    display: flex;
    gap: 0.875rem;
    padding: 0.875rem 1.25rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f8fafc;
}

.message-item:hover {
    background: #f8fafc;
}

.message-item.unread {
    background: #eff6ff;
}

.message-item.unread:hover {
    background: #dbeafe;
}

.message-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}

.message-icon.bg-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.message-icon.bg-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.message-icon.bg-success {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.message-content {
    flex: 1;
    min-width: 0;
}

.message-text {
    font-size: 0.875rem;
    color: #334155;
    font-weight: 500;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.message-time {
    font-size: 0.75rem;
    color: #94a3b8;
}

.message-footer {
    padding: 0.875rem 1.25rem;
    text-align: center;
    border-top: 1px solid #f1f5f9;
}

.view-all-message {
    font-size: 0.875rem;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.view-all-message:hover {
    text-decoration: underline;
}

/* ========== 主内容区 ========== */
.bd-main-content {
    flex: 1;
    padding: 1.75rem;
    background: #f8fafc;
    max-width: 100%;
    overflow-x: hidden;
    margin-top: 64px;
}

/* ========== 卡片样式 ========== */
.bd-card {
    background: var(--bd-card-bg);
    border-radius: var(--bd-radius-lg);
    box-shadow: var(--bd-card-shadow);
    border: none;
    transition: var(--bd-transition);
    max-width: 100%;
    overflow-x: hidden;
}

.bd-card .bd-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
}

.bd-card .bd-card-header h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.bd-card .bd-card-body {
    padding: 1.5rem;
    max-width: 100%;
}

/* ========== 表单样式 ========== */
.bd-form .form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: #475569;
    margin-bottom: 0.4rem;
}

.bd-form .form-control,
.bd-form .form-select {
    border: 1.5px solid #e2e8f0;
    border-radius: var(--bd-radius-sm);
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    transition: var(--bd-transition);
    background: #fff;
}

.bd-form .form-control:focus,
.bd-form .form-select:focus {
    border-color: var(--bd-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.bd-form .form-control::placeholder {
    color: #cbd5e1;
}

.bd-form .input-group-text {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    color: #94a3b8;
    font-size: 0.875rem;
}

.bd-btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    transition: var(--bd-transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.bd-btn-primary {
    background: var(--bd-primary);
    color: #fff;
}

.bd-btn-primary:hover:not(:disabled) {
    background: var(--bd-primary-hover);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.bd-btn-accent {
    background: var(--bd-accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.bd-btn-accent:hover:not(:disabled) {
    background: var(--bd-accent-hover);
    color: #fff;
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.45);
    transform: translateY(-2px);
}

.bd-btn:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
    transform: none;
}

.bd-btn-outline {
    background: transparent;
    color: var(--bd-primary);
    border: 1.5px solid var(--bd-primary);
}

.bd-btn-outline:hover {
    background: var(--bd-primary);
    color: #fff;
}

.bd-btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
}

.bd-btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.bd-btn-block {
    display: block;
    width: 100%;
}

/* ========== 验证码输入组 ========== */
.bd-captcha-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bd-captcha-group .form-control {
    flex: 1;
    min-width: 0;
}

.bd-captcha-group .btn-send-code {
    flex-shrink: 0;
    white-space: nowrap;
}

/* ========== 密码强度检测 v2.0 ========== */

/* 输入框醒目标记：基础规则未满足时变红 */
.pwd-input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.pwd-input-error:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.25) !important;
}

.bd-pwd-strength {
    margin-top: 6px;
}

.bd-pwd-strength-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}

.bd-pwd-strength-bar .strength-seg {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: #e2e8f0;
    transition: background 0.3s ease;
}

/* 弱（1分）：1段红色 */
.bd-pwd-strength-bar.level-weak .strength-seg:nth-child(1) {
    background: #ef4444;
}

/* 中（2分）：2段橙色 */
.bd-pwd-strength-bar.level-medium .strength-seg:nth-child(1),
.bd-pwd-strength-bar.level-medium .strength-seg:nth-child(2) {
    background: #f59e0b;
}

/* 强（3分）：3段绿色 */
.bd-pwd-strength-bar.level-strong .strength-seg:nth-child(1),
.bd-pwd-strength-bar.level-strong .strength-seg:nth-child(2),
.bd-pwd-strength-bar.level-strong .strength-seg:nth-child(3) {
    background: #22c55e;
}

/* 极强（4分）：4段深绿/蓝色 */
.bd-pwd-strength-bar.level-super .strength-seg:nth-child(1),
.bd-pwd-strength-bar.level-super .strength-seg:nth-child(2),
.bd-pwd-strength-bar.level-super .strength-seg:nth-child(3),
.bd-pwd-strength-bar.level-super .strength-seg:nth-child(4) {
    background: #15803d;
}

.bd-pwd-strength-text {
    font-size: 12px;
    color: #94a3b8;
    transition: color 0.3s ease;
    line-height: 1.6;
}

/* 基础规则未满足时的红色提示 */
.bd-pwd-strength-text.level-hint {
    color: #ef4444;
    font-weight: 500;
}

.bd-pwd-strength-text.level-weak {
    color: #ef4444;
}

.bd-pwd-strength-text.level-medium {
    color: #f59e0b;
}

.bd-pwd-strength-text.level-strong {
    color: #22c55e;
}

.bd-pwd-strength-text.level-super {
    color: #15803d;
    font-weight: 600;
}

/* 等级标签（弱/中/强/极强 - 描述） */
.bd-pwd-strength-text .pwd-level-label {
    display: block;
}

/* 改进建议（较小字体，次要颜色） */
.bd-pwd-strength-text .pwd-hints {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
    font-weight: 400;
}

/* ========== 表格样式 ========== */
.bd-table {
    width: 100%;
    font-size: 0.875rem;
}

.bd-table thead th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.85rem 1rem;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.bd-table tbody td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #475569;
}

.bd-table tbody tr:hover {
    background: #f8fafc;
}

/* ========== 徽章样式 ========== */
.bd-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 2rem;
    line-height: 1.5;
}

.bd-badge-success {
    background: #f0fdf4;
    color: #16a34a;
}

.bd-badge-danger {
    background: #fef2f2;
    color: #dc2626;
}

.bd-badge-warning {
    background: #fffbeb;
    color: #d97706;
}

.bd-badge-info {
    background: #eff6ff;
    color: #2563eb;
}

.bd-badge-accent {
    background: #fff7ed;
    color: #ea580c;
}

/* ========== 加载和空状态 ========== */
.bd-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
}

.bd-empty-state .empty-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.bd-empty-state h5 {
    color: #64748b;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.bd-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* ========== 提醒/警告框 ========== */
.bd-alert {
    padding: 1rem 1.25rem;
    border-radius: var(--bd-radius);
    border: none;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.bd-alert-info {
    background: #eff6ff;
    color: #1e40af;
    border-left: 4px solid #2563eb;
}

.bd-alert-success {
    background: #f0fdf4;
    color: #166534;
    border-left: 4px solid #16a34a;
}

.bd-alert-warning {
    background: #fffbeb;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.bd-alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #dc2626;
}

/* ========== 页脚 ========== */
.bd-footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    margin-top: auto;
}

/* ========== 选项卡 ========== */
.bd-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.bd-tab {
    padding: 0.7rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--bd-transition);
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.bd-tab:hover {
    color: #475569;
}

.bd-tab.active {
    color: var(--bd-primary);
    border-bottom-color: var(--bd-primary);
}

/* ========== 响应式 ========== */
@media (max-width: 991.98px) {
    .bd-sidebar {
        left: -100%;
        top: 64px;
    }

    .bd-sidebar.show {
        left: 0;
    }

    .bd-sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
    }

    .bd-sidebar-overlay.show {
        display: block;
    }

    .bd-main-wrapper {
        margin-left: 0;
        max-width: 100vw;
    }

    .bd-navbar {
        left: 0;
        right: 0;
    }

    .bd-main-content {
        padding: 1rem;
    }

    .bd-mobile-menu-btn {
        display: inline-flex !important;
    }

    .navbar-center {
        display: none;
    }

    .bd-weather-widget {
        display: none;
    }

    .bd-time-widget {
        display: none;
    }

    .message-dropdown {
        width: 300px;
    }
}

@media (max-width: 767.98px) {

    /* 移动端导航栏优化 */
    .bd-navbar {
        padding: 0 1rem;
        height: 56px;
    }

    .navbar-content {
        gap: 0.5rem;
    }

    .navbar-right {
        gap: 0.5rem;
    }

    /* 移动端主内容区 */
    .bd-main-content {
        padding: 0.75rem;
        margin-top: 56px;
    }

    /* 移动端卡片优化 */
    .bd-card .bd-card-header {
        padding: 1rem;
    }

    .bd-card .bd-card-body {
        padding: 1rem;
    }

    /* 移动端表格优化 */
    .bd-table {
        font-size: 0.8rem;
    }

    .bd-table thead th {
        padding: 0.6rem 0.5rem;
        font-size: 0.75rem;
    }

    .bd-table tbody td {
        padding: 0.6rem 0.5rem;
    }

    /* 移动端按钮优化 */
    .bd-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
        min-height: 42px;
    }

    .bd-btn-sm {
        padding: 0.35rem 0.8rem;
        font-size: 0.75rem;
    }

    /* 移动端表单优化 */
    .bd-form .form-control,
    .bd-form .form-select {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }

    /* 移动端徽章优化 */
    .bd-badge {
        padding: 0.15rem 0.5rem;
        font-size: 0.7rem;
    }

    /* 移动端选项卡优化 */
    .bd-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .bd-tab {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
}

@media (max-width: 575.98px) {

    /* 超小屏幕优化 */
    .bd-main-content {
        padding: 0.5rem;
    }

    .bd-card .bd-card-header {
        padding: 0.75rem;
    }

    .bd-card .bd-card-body {
        padding: 0.75rem;
    }

    .message-dropdown {
        width: 280px;
        margin-right: -1rem;
    }

    /* 移动端公告滚动优化 */
    .bd-notice-scroll {
        padding: 0.25rem 0.5rem;
    }

    .notice-scroll-icon {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }

    .notice-scroll-item {
        font-size: 0.75rem;
    }

    /* 移动端时间组件隐藏 */
    .bd-time-widget,
    .bd-weather-widget {
        display: none;
    }
}

.bd-mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.3rem;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
}

/* ========== 动画 ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bd-animate-in {
    animation: fadeInUp 0.3s ease forwards;
}

/* ========== Toast 消息 ========== */
.bd-toast-container {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.bd-toast {
    padding: 0.85rem 1.25rem;
    border-radius: var(--bd-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInUp 0.3s ease;
    min-width: 280px;
}

.bd-toast-success {
    background: #16a34a;
    color: #fff;
}

.bd-toast-error {
    background: #dc2626;
    color: #fff;
}

.bd-toast-info {
    background: #2563eb;
    color: #fff;
}

.bd-toast-warning {
    background: #ea580c;
    color: #fff;
}

/* ========== 按钮鼠标小手效果 ========== */
button,
.btn,
.bd-btn,
.cursor-pointer,
.payment-item,
.amount-item,
.pay-method-option,
.recharge-pay-card {
    cursor: pointer;
}

/* ========== 通用工具类 ========== */
.bd-hidden {
    display: none !important;
}