* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
}

/* 登录页面样式 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-box h1 {
    text-align: center;
    color: #667eea;
    margin-bottom: 10px;
    font-size: 28px;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
    margin-top: 20px;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-danger {
    background: #e74c3c;
    color: white;
    margin-top: 20px;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
    width: auto;
    background: #f0f0f0;
    color: #333;
}

.btn-send {
    width: auto;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-message {
    color: #e74c3c;
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

/* 功能选择页面样式 */
.scenario-container {
    background: rgba(255, 255, 255, 0.95);
    min-height: 100vh;
    padding: 40px 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h2 {
    color: #333;
    margin-bottom: 10px;
}

.user-info {
    color: #666;
}

.scenario-header-actions {
    text-align: right;
    margin-bottom: 20px;
}

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

.profile-actions .btn {
    flex: 1;
}

.scenario-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.scenario-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.scenario-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: #667eea;
}

.scenario-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.scenario-card h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 20px;
}

.scenario-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* 对话页面样式 */
.chat-container {
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.chat-header {
    background: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-header h3 {
    color: #333;
}

.scenario-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
}

.score-panel {
    background: white;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: none;
}

.score-panel.visible {
    display: block;
}

.score-panel.hidden {
    display: none;
}

.score-content h4 {
    margin-bottom: 10px;
    color: #333;
}

.score-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 14px;
}

.score-value {
    font-weight: 600;
    color: #667eea;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 70%;
    padding: 15px 20px;
    border-radius: 20px;
    line-height: 1.6;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.bot {
    background: white;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.message.user {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.message.system {
    background: #fff3cd;
    color: #856404;
    align-self: center;
    max-width: 90%;
    font-size: 14px;
    text-align: center;
}

.message .timestamp {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 8px;
}

.chat-input {
    background: white;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.input-container {
    display: flex;
    gap: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

#messageInput {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 16px;
    resize: none;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

#messageInput:focus {
    border-color: #667eea;
}

.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 10px;
}

.typing-indicator span {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* 用户信息管理页面样式 */
.profile-container {
    background: rgba(255, 255, 255, 0.95);
    min-height: 100vh;
    padding: 40px 20px;
}

.profile-content {
    max-width: 800px;
    margin: 0 auto;
}

.profile-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-section h3 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.profile-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 16px;
}

.profile-item label {
    color: #666;
    font-weight: 500;
}

.practice-history {
    max-height: 300px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 10px;
}

.history-item .scenario {
    font-weight: 600;
    color: #333;
}

.history-item .date {
    color: #666;
    font-size: 14px;
}

.history-item .score {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
}

.no-data {
    text-align: center;
    color: #999;
    padding: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* ==================== 小程序风格首页 ==================== */

/* 首页容器 */
.home-container {
    background: #f5f7fa;
    min-height: 100vh;
    padding: 0;
}

.home-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 20px 40px;
}

/* 欢迎区 */
.welcome-section {
    margin-bottom: 24px;
}

.welcome-banner {
    display: flex;
    align-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #4A90E2, #6C63FF);
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.35);
}

.welcome-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    backdrop-filter: blur(4px);
}

.welcome-detail {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.welcome-name {
    font-size: 20px;
    font-weight: 700;
}

.welcome-role {
    font-size: 13px;
    opacity: 0.85;
}

.welcome-actions {
    display: flex;
    gap: 8px;
}

.welcome-action-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.welcome-action-btn:hover {
    background: rgba(255,255,255,0.35);
}

/* 统计卡片 */
.home-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}

.home-stat-card {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.home-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.home-stat-value {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: #4A90E2;
    margin-bottom: 4px;
    line-height: 1.2;
}

.home-stat-label {
    font-size: 13px;
    color: #999;
}

/* 区块标题 */
.home-section {
    margin-bottom: 28px;
}

.home-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.home-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #333;
}

.home-section-more {
    font-size: 13px;
    color: #4A90E2;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.home-section-more:hover {
    text-decoration: underline;
}

/* 快速练习列表 */
.quick-practice-list {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.quick-practice-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.15s;
}

.quick-practice-item:last-child {
    border-bottom: none;
}

.quick-practice-item:hover {
    background: #f8faff;
}

.qp-icon {
    width: 44px;
    height: 44px;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f4ff;
    border-radius: 12px;
    margin-right: 14px;
    flex-shrink: 0;
}

.qp-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.qp-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.qp-desc {
    font-size: 12px;
    color: #999;
}

.qp-arrow {
    font-size: 22px;
    color: #ccc;
    font-weight: 300;
    margin-left: 8px;
}

/* 最近练习记录 */
.recent-record-list {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.recent-record-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.15s;
}

.recent-record-item:last-child {
    border-bottom: none;
}

.recent-record-item:hover {
    background: #f8faff;
}

.rr-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 700;
    color: #4A90E2;
}

.rr-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.rr-top-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rr-doctor {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.rr-dept {
    font-size: 11px;
    color: #4A90E2;
    background: rgba(74, 144, 226, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.rr-scenario {
    font-size: 12px;
    color: #666;
}

.rr-time {
    font-size: 11px;
    color: #999;
}

.rr-score {
    display: flex;
    align-items: baseline;
    gap: 2px;
    flex-shrink: 0;
    margin-left: 10px;
}

.rr-score-value {
    font-size: 24px;
    font-weight: 800;
    color: #4A90E2;
}

.rr-score-unit {
    font-size: 12px;
    color: #999;
}

/* 空状态 */
.home-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

/* ==================== 经理仪表盘 ==================== */

.manager-container {
    background: #f5f7fa;
    min-height: 100vh;
}

.manager-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 20px 40px;
}

/* 经理头部 */
.manager-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 16px;
    color: #fff;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.35);
}

.manager-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.manager-avatar-icon {
    font-size: 36px;
}

.manager-name {
    font-size: 20px;
    font-weight: 700;
}

.manager-role-label {
    font-size: 13px;
    opacity: 0.85;
}

.manager-logout-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.manager-logout-btn:hover {
    background: rgba(255,255,255,0.35);
}

/* 经理统计卡片 */
.manager-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.manager-stat-card {
    background: #fff;
    padding: 20px 14px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s;
}

.manager-stat-card:hover {
    transform: translateY(-2px);
}

.ms-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
}

.ms-value {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #4A90E2;
    margin-bottom: 4px;
}

.ms-label {
    font-size: 12px;
    color: #999;
}

/* 快捷功能 */
.manager-quick-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}

.mqa-card {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.mqa-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.mqa-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}

.mqa-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.mqa-desc {
    font-size: 12px;
    color: #999;
}

/* 下属列表 */
.subordinate-list {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.subordinate-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.15s;
}

.subordinate-item:last-child {
    border-bottom: none;
}

.subordinate-item:hover {
    background: #f8faff;
}

.sub-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    flex-shrink: 0;
    color: #fff;
    font-weight: 700;
    font-size: 17px;
}

.sub-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sub-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.sub-stats {
    font-size: 12px;
    color: #999;
}

.sub-arrow {
    font-size: 22px;
    color: #ccc;
    margin-left: 8px;
}

/* 排行榜 */
.performance-list {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.performance-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.performance-item:last-child {
    border-bottom: none;
}

.perf-rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    margin-right: 14px;
    flex-shrink: 0;
    background: #f0f0f0;
    color: #999;
}

.perf-rank.rank-1 { background: linear-gradient(135deg, #FFD700, #FFA500); color: #fff; }
.perf-rank.rank-2 { background: linear-gradient(135deg, #C0C0C0, #A0A0A0); color: #fff; }
.perf-rank.rank-3 { background: linear-gradient(135deg, #CD7F32, #A0522D); color: #fff; }

.perf-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.perf-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.perf-detail {
    font-size: 12px;
    color: #999;
}

.perf-score {
    font-size: 18px;
    font-weight: 800;
    color: #4A90E2;
    margin-left: 10px;
}

.perf-score-unit {
    font-size: 12px;
    color: #999;
    font-weight: 400;
}

/* 经理区块标题 */
.mgr-section {
    margin-bottom: 28px;
}

.mgr-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.mgr-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #333;
}

.mgr-refresh-btn {
    background: none;
    border: none;
    font-size: 14px;
    color: #4A90E2;
    cursor: pointer;
    padding: 4px 8px;
}

.mgr-empty {
    text-align: center;
    padding: 30px 20px;
    color: #999;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-box {
        padding: 30px 20px;
    }

    .scenario-grid {
        grid-template-columns: 1fr;
    }

    .message {
        max-width: 85%;
    }

    .chat-header {
        flex-direction: column;
        gap: 10px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .manager-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .manager-quick-actions {
        flex-direction: column;
    }

    .welcome-banner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .welcome-avatar {
        margin-right: 0;
    }

    .welcome-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .login-box h1 {
        font-size: 24px;
    }

    .header-left {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==================== 设置页面样式 ==================== */
.settings-container {
    background: rgba(255, 255, 255, 0.95);
    min-height: 100vh;
    padding: 20px;
}

.settings-header {
    max-width: 900px;
    margin: 0 auto 30px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.settings-header h2 {
    color: #333;
}

.settings-content {
    max-width: 900px;
    margin: 0 auto;
}

.settings-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.settings-section h3 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    font-size: 20px;
}

/* 头像设置 */
.avatar-section {
    text-align: center;
}

.avatar-display {
    display: inline-block;
    margin-bottom: 20px;
}

#currentAvatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #667eea;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.avatar-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.avatar-actions .btn {
    width: auto;
    min-width: 120px;
}

.avatar-hint {
    color: #999;
    font-size: 14px;
}

/* 设置表单 */
.settings-form {
    max-width: 500px;
}

.settings-form .form-group {
    margin-bottom: 20px;
}

.settings-form label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.settings-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.settings-form input:focus {
    outline: none;
    border-color: #667eea;
}

.settings-form input:disabled {
    background: #f5f5f5;
    color: #999;
}

.settings-form .btn {
    margin-top: 10px;
}

/* 账户信息 */
.account-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f9f9f9;
    border-radius: 10px;
}

.info-item label {
    color: #666;
    font-weight: 500;
}

.info-item span {
    color: #333;
    font-weight: 600;
}

/* 历史筛选 */
.history-filter {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.history-filter select {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

/* 详细历史记录 */
.detailed-history {
    max-height: 500px;
    overflow-y: auto;
}

.history-detail-item {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.history-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.scenario-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
}

.history-date {
    color: #999;
    font-size: 13px;
}

.history-detail-scores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.score-detail {
    display: flex;
    align-items: center;
    gap: 10px;
}

.score-label {
    font-size: 13px;
    color: #666;
    min-width: 50px;
}

.score-bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s;
}

.score-num {
    font-weight: 600;
    color: #667eea;
    min-width: 25px;
    text-align: right;
}

/* 分页 */
.history-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.pagination-btn:hover:not(:disabled) {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info,
.pagination-total {
    color: #666;
    font-size: 14px;
}

/* 危险区域 */
.danger-zone {
    border: 2px solid #ff6b6b;
}

.danger-zone h3 {
    color: #ff6b6b;
    border-bottom-color: #ff6b6b;
}

.warning-text {
    color: #ff6b6b;
    margin-bottom: 15px;
}

.danger-zone .btn {
    margin-top: 10px;
    margin-right: 10px;
}

/* Toast 消息 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transform: translateX(400px);
    transition: transform 0.3s;
    z-index: 1000;
    font-weight: 500;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-left: 4px solid #28a745;
    color: #28a745;
}

.toast-error {
    border-left: 4px solid #dc3545;
    color: #dc3545;
}

.toast-warning {
    border-left: 4px solid #ffc107;
    color: #ffc107;
}

.toast-info {
    border-left: 4px solid #17a2b8;
    color: #17a2b8;
}

/* 设置页面响应式 */
@media (max-width: 768px) {
    .settings-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .history-detail-scores {
        grid-template-columns: 1fr;
    }
    
    .score-detail {
        background: white;
        padding: 8px;
        border-radius: 6px;
    }
    
    .history-pagination {
        flex-direction: column;
        gap: 10px;
    }
    
    .avatar-actions {
        flex-direction: column;
    }
    
    .settings-section h3 {
        font-size: 18px;
    }
}

/* 滚动条美化 */
.detailed-history::-webkit-scrollbar {
    width: 8px;
}

.detailed-history::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.detailed-history::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.detailed-history::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}

.practice-history::-webkit-scrollbar {
    width: 6px;
}

.practice-history::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.practice-history::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}
