/* 账户设置页面样式 */

/* 账户设置页面需要占满整个content-area */
#account-settings-page.active {
    height: 100%;
    display: flex !important;
    flex-direction: column;
    padding: 0;
    margin: 0;
}

#account-settings-page .main-content {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.account-settings-container {
    flex: 1;
    display: flex;
    gap: 20px;
    padding: 20px;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

/* 左侧区域 */
.account-settings-left {
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
    height: 100%;
    min-height: 0;
}

/* 用户卡片 - 参考图片风格 */
.user-profile-card {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    border-radius: 20px;
    padding: 30px;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.user-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
}

.user-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #b2b7a3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    border: 4px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    overflow: hidden;
}

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

.user-profile-info {
    flex: 1;
}

.user-profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.user-profile-status {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.user-profile-menu {
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
}

.user-profile-menu:hover {
    color: white;
}

/* 用户统计信息 */
.user-profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.user-stat-item {
    text-align: center;
}

.user-stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
}

.user-stat-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

/* 用户详细信息 */
.user-profile-details {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.user-detail-label {
    color: rgba(255, 255, 255, 0.6);
}

.user-detail-value {
    color: white;
    font-weight: 500;
}

/* 导航按钮区域 - 垂直布局，样式与消息中心的filter-tabs一致 */
.account-nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #e8e8e8;
    border-radius: 15px;
    padding: 8px;
    flex: 1;
    min-height: 0;
    position: relative;
    --indicator-top: 0px;
    --indicator-height: 0px;
}

/* 滑动背景指示器 - 垂直方向 */
.account-nav-buttons::before {
    content: '';
    position: absolute;
    left: 8px;
    top: var(--indicator-top, 8px);
    width: calc(100% - 16px);
    height: var(--indicator-height, 0px);
    background: #3d3d3d;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    pointer-events: none;
}

.account-nav-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
    z-index: 1;
}

.account-nav-button:hover {
    color: #333;
}

.account-nav-button.active {
    color: white;
    font-weight: 500;
}

/* 按钮行容器 - 用于将两个按钮放在一行 */
.account-nav-button-row {
    display: flex;
    gap: 8px;
    width: 100%;
}

/* 半宽按钮 - 用于一行显示两个按钮 */
.account-nav-button-half {
    flex: 1;
    min-width: 0;
}

/* 右侧内容区域 */
.account-settings-right {
    flex: 1;
    background: white;
    border-radius: 15px;
    padding: 30px;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.settings-section {
    display: none;
}

.settings-section.active {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.settings-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: -30px -30px 20px -30px;
    padding: 20px 30px 15px 30px;
    background: #fafafa;
    border-bottom: 1px solid #d0d0d0;
    text-align: center;
}

/* 固定标题栏样式 - 用于使用记录和充值记录 */
.settings-section-title-fixed {
    background: #fafafa;
    margin: -30px -30px 0 -30px;
    padding: 20px 30px 15px 30px;
    border-bottom: 1px solid #d0d0d0;
    position: sticky;
    top: -30px;
    z-index: 10;
    flex-shrink: 0;
    text-align: center;
}

/* 表单样式 */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.form-input {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #87CEEB;
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.1);
}

.form-input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

/* 按钮样式 - 与开始使用按钮一致，但背景色改为黑色 */
.form-button {
    padding: 12px 24px;
    font-size: 17px;
    line-height: 1.17648;
    font-weight: 400;
    border-radius: 980px; /* 苹果胶囊形状 */
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 120px;
    text-align: center;
    letter-spacing: -0.022em;
    background: #3d3d3d; /* 黑色背景，与导航栏按钮一致 */
    color: #fff;
    align-self: flex-start;
}

.form-button:hover {
    background: #2a2a2a; /* 深一点的黑色 */
    transform: scale(1.02);
}

.form-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    opacity: 0.6;
}

/* 记录网格布局 */
.records-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

/* 可滚动的记录网格 - 用于使用记录 */
.records-grid-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
    margin: 0 -30px;
    padding-left: 30px;
    padding-right: 30px;
}

/* 记录列表样式 - 网格布局，每行2个 */
.records-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* 当记录列表为空时，让空状态占据整个宽度并居中 */
.records-list .empty-state {
    grid-column: 1 / -1; /* 占据所有列 */
    min-height: 300px; /* 只在空状态时设置最小高度 */
}

.record-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: row;
    gap: 15px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
    height: 180px; /* 固定高度，确保所有卡片一致 */
}

.record-item:hover {
    background: #ffffff;
    border-color: #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* 选中状态 - 与消息中心选中颜色一致 */
.record-item.selected {
    background: #FFD580 !important;
    border-color: #FFD580 !important;
}

/* 失败记录状态 */
.record-item.record-failed {
    border-left: 3px solid #ef4444;
}

.record-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    overflow: hidden; /* 防止内容溢出 */
}

.record-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0;
}

.record-details {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

.record-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

/* 记录缩略图 */
.record-thumbnail {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.record-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.record-thumbnail-placeholder {
    color: #999;
    font-size: 0.85rem;
    text-align: center;
    padding: 10px;
}

/* 图片加载失败时的提示 */
.record-thumbnail-missing {
    width: 100%;
    height: 100%;
    background: #d0d0d0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.record-thumbnail-missing span {
    color: #666;
    font-size: 0.7rem;
    line-height: 1.3;
    text-align: center;
}

/* 问题反馈按钮 - 与form-button样式一致 */
.record-button {
    padding: 8px 16px;
    font-size: 14px;
    line-height: 1.17648;
    font-weight: 400;
    border-radius: 980px; /* 苹果胶囊形状 */
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    letter-spacing: -0.022em;
    background: #3d3d3d; /* 黑色背景，与导航栏按钮一致 */
    color: #fff;
}

.record-button:hover {
    background: #2a2a2a; /* 深一点的黑色 */
    transform: scale(1.02);
}

/* 重新下载按钮 - 白色背景、黑色边框 */
.record-button-outline {
    padding: 8px 16px;
    font-size: 14px;
    line-height: 1.17648;
    font-weight: 400;
    border-radius: 980px; /* 苹果胶囊形状 */
    border: 1px solid #3d3d3d; /* 黑色边框 */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    letter-spacing: -0.022em;
    background: #fff; /* 白色背景 */
    color: #3d3d3d; /* 黑色文字 */
}

.record-button-outline:hover {
    background: #f5f5f5; /* 浅灰色背景 */
    border-color: #2a2a2a; /* 深一点的黑色边框 */
    transform: scale(1.02);
}

.record-button-outline:disabled,
.record-button-outline.disabled {
    background: #f5f5f5;
    border-color: #ccc;
    color: #999;
    cursor: not-allowed;
    transform: none;
    opacity: 0.6;
}

.record-button-outline:disabled:hover,
.record-button-outline.disabled:hover {
    background: #f5f5f5;
    border-color: #ccc;
    transform: none;
}

/* 模态框样式 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-radius: 32px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08);
    animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
    flex-shrink: 0;
    position: relative;
}

.modal-header h3,
.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    text-align: center;
    flex: 1;
    padding: 0 50px; /* 为关闭按钮留出空间 */
}

.modal-close {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: absolute;
    right: 20px;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 24px 24px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.modal-footer {
    padding: 20px 0;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-shrink: 0;
}

.modal-button {
    padding: 10px 38px;
    border: none;
    border-radius: 980px;
    font-size: 14px;
    line-height: 1.17648;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 96px;
    letter-spacing: -0.022em;
}

.modal-button-primary {
    background: #333;
    color: white;
}

.modal-button-primary:hover {
    background: #1a1a1a;
    transform: scale(1.02);
}

.modal-button-secondary {
    background: white;
    color: #333;
    border: 2px solid #333;
}

.modal-button-secondary:hover {
    background: #f5f5f5;
    transform: scale(1.02);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 1.1rem;
    color: #666;
}

/* 账户安全部分样式 */
.security-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e8e8e8;
}

.security-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.security-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.binding-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.binding-info {
    font-size: 0.95rem;
    color: #666;
}

/* 信息展示组样式 */
.info-display-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-display-content {
    flex: 0 0 auto;
    width: 300px;
}

.info-display-value {
    display: inline-block;
    padding: 10px 15px;
    background: #f5f5f5;
    border-radius: 8px;
    color: #333;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
}

/* 确保输入框和显示值宽度一致 */
.info-display-content .form-input {
    width: 100%;
    box-sizing: border-box;
}

/* 账户安全页面的编辑按钮 - 统一宽度 */
#security-section .edit-button {
    min-width: 130px;
    width: 130px;
    padding: 8px 16px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* 基本设置页面的编辑按钮 */
#basic-section .edit-button {
    min-width: 80px;
    width: 80px;
    padding: 8px 16px;
    flex-shrink: 0;
}

/* 绑定按钮容器 - 用于支付宝和微信等多按钮场景 */
.binding-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.binding-buttons .form-button {
    min-width: 130px;
    width: 130px;
    white-space: nowrap;
}

/* 验证方式选择标签 - 与消息中心样式一致 */
.verify-method-tabs {
    display: flex;
    gap: 8px;
    padding: 6px;
    background: #e8e8e8;
    border-radius: 30px;
    justify-content: space-between;
    position: relative;
    --indicator-left: 0px;
    --indicator-width: 0px;
}

/* 滑动背景指示器 */
.verify-method-tabs::before {
    content: '';
    position: absolute;
    top: 6px;
    left: var(--indicator-left, 6px);
    width: var(--indicator-width, 0px);
    height: calc(100% - 12px);
    background: #3d3d3d;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    pointer-events: none;
}

.verify-method-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
    min-height: auto;
    height: auto;
    z-index: 1;
}

.verify-method-tab:hover {
    color: #333;
}

.verify-method-tab.active {
    color: white;
    font-weight: 500;
}

.verify-form {
    margin-top: 24px;
}

/* 验证表单中的最后一个表单组保持底部间距 */
.verify-form .form-group:last-child {
    margin-bottom: 20px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .records-list {
        grid-template-columns: 1fr;
    }
}

/* 768px 布局断点已迁移至 responsive.css */

/* 头像选择器样式 */
.avatar-selector {
    display: flex;
    align-items: center;
    gap: 20px;
}

.current-avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #b2b7a3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    border: 3px solid #e8e8e8;
    overflow: hidden;
    flex-shrink: 0;
}

.current-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-buttons {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

/* 头像相关按钮 - 更小的尺寸 */
.btn-select-avatar.form-button,
.btn-upload-avatar.form-button,
.btn-save-avatar.form-button {
    padding: 8px 16px;
    font-size: 14px;
    min-width: 90px;
}

/* 上传头像按钮 - 黑框白底 */
.btn-upload-avatar.form-button {
    background: white !important;
    color: #3d3d3d !important;
    border: 2px solid #3d3d3d !important;
}

.btn-upload-avatar.form-button:hover {
    background: #f5f5f5 !important;
    border-color: #2d2d2d !important;
    color: #2d2d2d !important;
    transform: scale(1.02) !important;
}

/* 保存头像按钮 - 与选择头像按钮颜色一致 */
.btn-save-avatar.form-button {
    background: #3d3d3d !important;
    color: white !important;
    border: none !important;
}

.btn-save-avatar.form-button:hover {
    background: #2a2a2a !important;
    transform: scale(1.02) !important;
}

.btn-save-avatar.form-button:disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
    transform: none !important;
    opacity: 0.6 !important;
}

.avatar-selector-modal {
    max-width: 700px;
    width: 90%;
}

.avatar-selector-modal .modal-body {
    min-height: 520px;
    height: 520px;
    display: flex;
    flex-direction: column;
}

/* 头像选择器性别筛选标签 */
.avatar-selector-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    background: #f5f5f5;
    padding: 4px;
    border-radius: 25px;
    flex-shrink: 0;
}

.avatar-selector-tab {
    flex: 1;
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
    font-weight: 400;
}

.avatar-selector-tab:hover:not(.active) {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
}

.avatar-selector-tab.active {
    background: #333;
    color: #fff;
    font-weight: 500;
}

/* 头像网格 - 固定5排高度 (每排约95px: 80px头像 + 15px间距) */
.avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    padding: 10px;
    height: 475px;
    min-height: 475px;
    max-height: 475px;
    overflow-y: auto;
    flex: none;
}

.avatar-grid-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #999;
}

.avatar-option {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    overflow: hidden;
}

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

.avatar-option:hover {
    transform: scale(1.1);
    border-color: #87CEEB;
}

.avatar-option.selected {
    border-color: #3d3d3d;
    box-shadow: 0 0 0 3px rgba(61, 61, 61, 0.2);
}

/* 输入框内部右侧提示样式 */
.input-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.input-wrapper .form-input {
    width: 100%;
    padding-right: 160px;
    box-sizing: border-box;
}

.field-error-message,
.field-hint-message {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    pointer-events: none;
    background: transparent;
    padding: 0 5px;
    z-index: 1;
    white-space: nowrap;
}

.field-error-message {
    color: #e74c3c;
}

.field-hint-message {
    color: #999;
}

.field-hint-message.error {
    color: #e74c3c;
}

/* ==================== 深色模式适配 ==================== */

/* 容器背景 */
body.dark-mode .account-settings-container {
    background: #1a1a1a;
}

body.dark-mode .account-settings-right {
    background: #2a2a2a;
}

body.dark-mode .settings-section {
    background: #2a2a2a;
}

/* 表单元素 */
body.dark-mode .form-label {
    color: #e0e0e0;
}

body.dark-mode .form-input {
    background: #333;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode .form-input:focus {
    background: #3a3a3a;
    border-color: #87CEEB;
}

body.dark-mode .form-input:disabled {
    background: #333;
    color: #666;
}

body.dark-mode .info-display-value {
    background: #333;
    color: #e0e0e0;
}

/* 记录卡片 */
body.dark-mode .record-item {
    background: #333;
    border-color: #444;
}

body.dark-mode .record-item:hover {
    background: #3a3a3a;
    border-color: #555;
}

body.dark-mode .record-item.selected {
    background: #4a3a1a !important;
    border-color: #FFD580 !important;
}

body.dark-mode .record-item.record-failed {
    border-left: 3px solid #ef4444;
}

body.dark-mode .record-title {
    color: #e0e0e0;
}

body.dark-mode .record-details {
    color: #999;
}

body.dark-mode .record-thumbnail-missing {
    background: #3a3a3a;
}

body.dark-mode .record-thumbnail-missing span {
    color: #888;
}

/* 模态框 */
body.dark-mode .modal-content {
    background: rgba(42, 42, 42, 0.95);
}

body.dark-mode .modal-header {
    border-bottom-color: #444;
}

body.dark-mode .modal-header h3,
body.dark-mode .modal-title {
    color: #e0e0e0;
}

body.dark-mode .modal-close {
    color: #999;
}

body.dark-mode .modal-close:hover {
    background: #3a3a3a;
    color: #e0e0e0;
}

body.dark-mode .modal-body {
    color: #e0e0e0;
}

body.dark-mode .modal-footer {
    border-top-color: #444;
}

body.dark-mode .modal-button-secondary {
    background: #333;
    color: #e0e0e0;
    border-color: #666;
}

body.dark-mode .modal-button-secondary:hover {
    background: #3a3a3a;
    border-color: #777;
}

/* 安全设置 */
body.dark-mode .security-item {
    border-bottom-color: #444;
}

body.dark-mode .security-item-title {
    color: #e0e0e0;
}

body.dark-mode .binding-status {
    background: #333;
}

body.dark-mode .binding-info {
    color: #999;
}

/* 验证方式标签 */
body.dark-mode .verify-method-tabs {
    background: #333;
}

body.dark-mode .verify-method-tabs::before {
    background: #555;
}

body.dark-mode .verify-method-tab {
    color: #999;
}

body.dark-mode .verify-method-tab:hover {
    color: #e0e0e0;
}

body.dark-mode .verify-method-tab.active {
    color: white;
}

/* 头像选择器 */
body.dark-mode .current-avatar-preview {
    border-color: #444;
}

body.dark-mode .avatar-selector-tabs {
    background: #333;
}

body.dark-mode .avatar-selector-tab {
    color: #999;
}

body.dark-mode .avatar-selector-tab:hover:not(.active) {
    color: #e0e0e0;
    background: rgba(255, 255, 255, 0.1);
}

body.dark-mode .avatar-selector-tab.active {
    background: #555;
}

body.dark-mode .avatar-grid {
    background: #2a2a2a;
}

body.dark-mode .avatar-grid-empty {
    color: #999;
}

body.dark-mode .avatar-option.selected {
    border-color: #87CEEB;
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.3);
}

/* 空状态 */
body.dark-mode .empty-state-text {
    color: #999;
}

/* 上传按钮 */
body.dark-mode .btn-upload-avatar.form-button {
    background: #333 !important;
    color: #e0e0e0 !important;
    border-color: #666 !important;
}

body.dark-mode .btn-upload-avatar.form-button:hover {
    background: #3a3a3a !important;
    border-color: #777 !important;
}

/* 记录按钮 */
body.dark-mode .record-button-outline {
    background: transparent;
    color: #0d6efd;
    border-color: #0d6efd;
}

body.dark-mode .record-button-outline:hover {
    background: rgba(13, 110, 253, 0.1);
}

/* 统计卡片 */
body.dark-mode .user-profile-stats-item {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .stats-value {
    color: #e0e0e0;
}

body.dark-mode .stats-label {
    color: #999;
}

/* 导航按钮区域 */
body.dark-mode .account-nav-buttons {
    background: #333;
}

body.dark-mode .account-nav-buttons::before {
    background: #555;
}

body.dark-mode .account-nav-button {
    color: #e0e0e0;
}

body.dark-mode .account-nav-button:hover {
    color: #fff;
}

body.dark-mode .account-nav-button.active {
    color: #fff;
}

/* 标题栏 */
body.dark-mode .settings-section-title {
    background: #333;
    color: #e0e0e0;
    border-bottom-color: #444;
}

body.dark-mode .settings-section-title-fixed {
    background: #333;
    color: #e0e0e0;
    border-bottom-color: #444;
}

/* 左侧区域背景 */
body.dark-mode .account-settings-left {
    background: transparent;
}

/* 用户资料卡片 */
body.dark-mode .user-profile-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #333 100%);
}
