/* ================================================
   人教培训服务 - Claude 浅色优雅主题 (Mobile First)
   ================================================ */

:root {
    --bg-primary: #fdfcf5;
    --bg-surface: #ffffff;
    --border: #e8e6df;
    --border-focus: #d8785e;
    --text-primary: #2d2825;
    --text-secondary: #6e6b66;
    --text-muted: #a3a09b;
    --accent: #d8785e;
    --accent-hover: #c4664c;
    --accent-glow: rgba(216, 120, 94, 0.15);
    --success: #4a8b5e;
    --error: #cc4f4f;
    --font-serif: -apple-system, "Songti SC", "SimSun", "Noto Serif SC", "Source Han Serif SC", STSong, Georgia, serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --radius-lg: 24px;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
}

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

html, body {
    min-height: 100vh;
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
}

/* ==================== 居中容器 ==================== */
.centered-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px 60px;
    width: 100%;
    max-width: 800px;
    min-width: 0;
    margin: 0 auto;
    text-align: center;
}

/* ==================== 核心提示区域 ==================== */
.prompt-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 12px;
}

.main-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* ==================== 文本排版 ==================== */
h1#main-prompt {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    word-break: break-word;
    transition: all 0.3s ease;
}

p#sub-prompt {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
    transition: all 0.3s ease;
}

/* ==================== 输入区域 ==================== */
.input-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin-bottom: 24px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.input-wrapper.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    position: absolute;
}

#user-input {
    width: 100%;
    padding: 22px 28px;
    padding-right: 60px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 19px;
    font-family: var(--font-sans);
    box-shadow: var(--shadow-sm);
    outline: none;
    transition: all 0.3s ease;
}

#user-input:focus {
    border-color: var(--border-focus);
    box-shadow: var(--shadow-md), 0 0 0 3px var(--accent-glow);
}

#user-input::placeholder {
    color: var(--text-muted);
}

#user-input:disabled {
    background: #f5f4ef;
    color: var(--text-secondary);
    cursor: not-allowed;
}

.unified-input {
    width: 100%;
    padding: 16px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 17px;
    font-family: var(--font-sans);
    box-shadow: var(--shadow-sm);
    outline: none;
    transition: all 0.3s ease;
}

/* Hide number input spinners */
input[type="number"]::-webkit-inner-spin-button, 
input[type="number"]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}
input[type="number"] {
    -moz-appearance: textfield;
}

.unified-input:focus {
    border-color: var(--border-focus);
    box-shadow: var(--shadow-md), 0 0 0 3px var(--accent-glow);
}

.unified-input::placeholder {
    color: var(--text-muted);
}

#resend-btn {
    position: absolute;
    right: 68px; /* 位于右箭头左侧 */
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--accent);
    background: none;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    border-radius: 6px;
}

#resend-btn:hover:not(:disabled) {
    background: rgba(216, 120, 94, 0.1);
}

#resend-btn:disabled {
    color: var(--text-muted);
    cursor: not-allowed;
    background: none;
}

#send-btn {
    position: absolute;
    right: 12px;
    top: 12px;
    bottom: 12px;
    width: 44px;
    border-radius: 12px;
    border: none;
    background: var(--accent);
    color: var(--bg-surface);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

#send-btn:hover:not(:disabled) {
    background: #e3866d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(216, 120, 94, 0.3);
}

#send-btn:active:not(:disabled) {
    transform: translateY(1px);
    box-shadow: none;
}

#send-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ==================== 选项按钮（学段/学科等） ==================== */
.choices-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    width: 100%;
    max-width: 480px;
    margin-bottom: 24px;
    transition: opacity 0.3s ease;
}

.choice-btn {
    padding: 16px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: 17px;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.choice-btn:hover {
    border-color: var(--border-focus);
    background: #fffafa;
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.choice-btn:active {
    transform: translateY(0);
}

.choice-btn.selected {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
.choice-btn.selected span {
    color: white !important;
}

.action-btn.primary {
    width: 100%;
    padding: 14px 24px;
    border-radius: 12px;
    border: none;
    background: var(--accent);
    color: var(--bg-surface);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.action-btn.primary:hover {
    background: #e3866d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(216, 120, 94, 0.3);
}

.action-btn.primary:active {
    transform: translateY(1px);
    box-shadow: none;
}

/* ==================== 状态提示 ==================== */
.status-message {
    font-size: 15px;
    font-weight: 600;
    min-height: 24px;
    margin-top: 14px;
    margin-bottom: 4px;
    text-align: center;
    transition: all 0.3s ease;
}

.status-message:empty {
    display: none;
}

.status-message.success { color: var(--success); }
.status-message.error { color: #cc4f4f; font-weight: 600; }
.status-message.loading { color: var(--text-secondary); }

.input-shake-error {
    animation: shake 0.45s ease-in-out;
    border-color: #cc4f4f !important;
    box-shadow: 0 0 0 3px rgba(204, 79, 79, 0.18) !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* ==================== 用户信息卡片 ==================== */
.info-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-md);
    margin-top: 8px;
    text-align: left;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.info-card h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 24px;
    text-align: center;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 16px;
}

.info-row:last-child { border-bottom: none; }

.info-label {
    color: var(--text-secondary);
}

.info-value {
    color: var(--text-primary);
    font-weight: 600;
}

/* ==================== 动画 ==================== */
@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.35); }
}

/* ==================== 页脚 ==================== */
.site-footer {
    position: static;
    margin-top: auto;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
}

.powered-by {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

.thinking-text {
    display: inline-block;
    position: relative;
    color: var(--accent);
    animation: text-breathe 1.8s ease-in-out infinite;
    font-weight: 500;
}
@keyframes text-breathe {
    0%, 100% { 
        opacity: 1; 
        text-shadow: 0 0 8px rgba(216, 120, 94, 0.3);
    }
    50% { 
        opacity: 0.4; 
        text-shadow: 0 0 0px rgba(216, 120, 94, 0);
    }
}

.claude-icon {
    animation: breathe 2.5s ease-in-out infinite;
    transform-origin: center;
}

.inline-claude-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    animation: breathe 2.5s ease-in-out infinite;
    transform-origin: center;
}

/* ==================== 响应式适配 ==================== */
@media (max-width: 768px) {
    .main-icon { width: 44px; height: 44px; }
    h1#main-prompt { font-size: 32px; }
    p#sub-prompt { font-size: 16px; }
    #user-input { padding: 18px 24px; font-size: 17px; }
    .choice-btn { padding: 14px 24px; font-size: 16px; }
}

@media (max-width: 480px) {
    .prompt-container { gap: 10px; }
    .main-icon { width: 36px; height: 36px; }
    h1#main-prompt { font-size: 28px; }
    #user-input { padding: 16px 20px; font-size: 16px; }
    .choice-btn { padding: 12px 20px; font-size: 15px; width: 100%; }
    .info-card { padding: 24px 20px; }
    .site-footer { position: static; margin-top: auto; padding-bottom: 16px; }
}

/* 返回按钮样式（文字超链接） */
.back-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
    margin-top: 15px;
    padding: 8px;
    transition: all 0.2s;
    width: 100%;
}
.back-btn:hover {
    color: var(--accent);
}

/* ==================== 完成页面：小象与标题 ==================== */
.complete-header-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.complete-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.complete-elephant-icon {
    width: 68px;
    height: 68px;
    object-fit: contain;
}

.complete-main-title {
    font-family: var(--font-serif);
    font-size: 34px;
    font-weight: 700;
    color: #2b2b2b;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.complete-green-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #52c41a;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-size: 20px;
}

.complete-subtitle-text {
    margin-top: 12px;
    font-size: 15px;
    color: #6e6b66;
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
}

.complete-subtitle-text .sparkle-icon {
    color: #d8785e;
    font-size: 15px;
}

.progress-view-link {
    color: #d8785e;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
    margin-left: 2px;
    transition: color 0.2s;
}
.progress-view-link:hover {
    color: #c4664c;
}

/* ==================== 报名成功卡片 (严格还原图1) ==================== */
.enroll-card {
    width: 100%;
    max-width: 540px;
    background: #ffffff;
    border-radius: 20px;
    padding: 36px 36px 28px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
    text-align: left;
    margin: 0 auto 20px;
    animation: popIn 0.5s ease forwards;
}

.enroll-card-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #2d2825;
    margin-bottom: 28px;
    letter-spacing: 1px;
}

.enroll-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}

.enroll-label {
    font-size: 15px;
    color: #6e6b66;
    min-width: 70px;
    letter-spacing: 0.5px;
}

.enroll-value {
    font-size: 16px;
    font-weight: 700;
    color: #2d2825;
    text-align: right;
    word-break: break-word;
}

.enroll-value.project-title {
    font-size: 15px;
    font-weight: 700;
    color: #2d2825;
    line-height: 1.4;
    max-width: 360px;
}

.enroll-value-with-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.enroll-code-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, monospace;
    font-size: 16px;
    font-weight: 700;
    color: #2d2825;
    letter-spacing: 0.5px;
}

.enroll-phone-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, monospace;
    font-size: 17px;
    font-weight: 700;
    color: #d8785e;
    letter-spacing: 0.5px;
}

.copy-pill-btn {
    background: #ffffff;
    border: 1px solid #666666;
    color: #333333;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.copy-pill-btn.phone-btn {
    border-color: #d8785e;
    color: #d8785e;
}

.copy-pill-btn:hover {
    background: #fdfcf5;
    border-color: #d8785e;
    color: #d8785e;
}

.copy-pill-btn.copied {
    background: #52c41a !important;
    border-color: #52c41a !important;
    color: #ffffff !important;
    font-weight: 500;
}

.enroll-divider {
    height: 1px;
    border-bottom: 1px dashed #e8e6df;
    width: 100%;
}

.enroll-note-box {
    margin-top: 10px;
    text-align: right;
}

.enroll-note-text {
    font-size: 12px;
    color: #d8785e;
    letter-spacing: 0.2px;
}

.enroll-bottom-bar {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.btn-view-password {
    background: #b86f4a;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(184, 111, 74, 0.25);
    transition: all 0.2s ease;
}

.btn-view-password:hover {
    background: #a65e3b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(184, 111, 74, 0.35);
}

.btn-view-password:active {
    transform: translateY(1px);
}

/* ==================== 弹窗模态框 (严格还原图2) ==================== */
.custom-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.custom-modal-card {
    background: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 360px;
    padding: 30px 24px 26px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.modal-header-title {
    font-size: 18px;
    font-weight: 700;
    color: #2b2b2b;
    margin-bottom: 20px;
}

.modal-large-password {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, monospace;
    font-size: 32px;
    font-weight: 800;
    color: #d85b00;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    word-break: break-all;
    user-select: all;
}

.modal-notice-warning {
    font-size: 13px;
    color: #e65100;
    margin-bottom: 26px;
    font-weight: 500;
    line-height: 1.5;
}

.modal-action-confirm-btn {
    background: #c75a00;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 10px 38px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-action-confirm-btn:hover {
    background: #b35100;
    transform: translateY(-1px);
}

/* ==================== 信息核对步骤 (学段/学科选择) ==================== */
.verify-card {
    width: 100%;
    max-width: 540px;
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 28px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    margin: 0 auto 20px;
    text-align: left;
    animation: popIn 0.4s ease;
}

.verify-header-title {
    font-size: 20px;
    font-weight: 700;
    color: #2d2825;
    text-align: center;
    margin-bottom: 20px;
}

.verify-field-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 15px;
}

.verify-field-label {
    color: #6e6b66;
}

.verify-field-val {
    font-weight: 600;
    color: #2d2825;
}

.tag-lock {
    background: #f5f5f5;
    color: #8c8c8c;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 6px;
    font-weight: normal;
}

.verify-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #2d2825;
    margin: 18px 0 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.verify-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.chip-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: #fdfcf5;
    color: #4a4643;
    font-size: 13.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.chip-btn:hover {
    border-color: #d8785e;
    color: #d8785e;
    background: #ffffff;
}

.chip-btn.active {
    background: #d8785e;
    border-color: #d8785e;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(216, 120, 94, 0.25);
}

.btn-submit-verify {
    width: 100%;
    margin-top: 20px;
    padding: 14px 0;
    background: #d8785e;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(216, 120, 94, 0.25);
}

.btn-submit-verify:hover {
    background: #c4664c;
    transform: translateY(-1px);
}

/* 任务进度追踪弹窗 */
.progress-list {
    text-align: left;
    margin: 18px 0 22px;
}

.progress-step-item {
    display: flex;
    gap: 12px;
    padding-bottom: 16px;
    position: relative;
}

.progress-step-item:last-child {
    padding-bottom: 0;
}

.progress-step-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 20px;
    bottom: 0;
    width: 2px;
    background: #e8e6df;
}

.progress-step-item.done::before {
    background: #52c41a;
}

.step-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e8e6df;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    z-index: 1;
    flex-shrink: 0;
}

.step-circle.done {
    background: #52c41a;
}

.step-circle.active {
    background: #d8785e;
    animation: text-breathe 1.5s infinite;
}

.step-content strong {
    font-size: 14px;
    color: #2d2825;
    display: block;
    margin-bottom: 2px;
}

.step-content span {
    font-size: 12px;
    color: #8c8c8c;
}

/* ==================== 气泡返回按钮 (Bubble Back Button) ==================== */
.back-bubble-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -6px;
    margin-bottom: 22px;
    width: 100%;
}

.back-bubble-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 9999px;
    border: 1px solid rgba(216, 120, 94, 0.35);
    background: #ffffff;
    color: #6a615a;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(216, 120, 94, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    user-select: none;
}

.back-bubble-btn svg {
    color: var(--accent);
    transition: transform 0.22s ease;
}

.back-bubble-btn:hover {
    background: #fff8f6;
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-1.5px);
    box-shadow: 0 5px 14px rgba(216, 120, 94, 0.18);
}

.back-bubble-btn:hover svg {
    transform: translateX(-3px);
}

.back-bubble-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(216, 120, 94, 0.1);
}

.verify-actions-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    width: 100%;
}

.verify-actions-row .back-bubble-btn {
    flex-shrink: 0;
    padding: 13px 18px;
    border-radius: 12px;
}

.verify-actions-row .btn-submit-verify {
    flex: 1;
    margin-top: 0;
}

/* ==================== 深度思考 (Deep Thinking) 组件 ==================== */
.thinking-card {
    width: 100%;
    max-width: 520px;
    margin: 0 auto 20px auto;
    background: #faf8f5;
    border: 1px solid rgba(216, 120, 94, 0.25);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(216, 120, 94, 0.06);
    transition: all 0.25s ease;
    animation: fadeIn 0.35s ease;
}

.thinking-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(216, 120, 94, 0.05);
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.thinking-card-header:hover {
    background: rgba(216, 120, 94, 0.09);
}

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

.thinking-sparkle {
    display: inline-block;
    color: var(--accent);
    font-size: 16px;
    font-weight: 700;
    animation: spinSlow 5s linear infinite;
    transform-origin: center;
}

.thinking-sparkle.completed {
    animation: none;
    color: #52c41a;
}

@keyframes spinSlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.thinking-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #3b332d;
    letter-spacing: -0.2px;
}

.thinking-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.thinking-badge {
    font-size: 11.5px;
    padding: 2px 9px;
    border-radius: 9999px;
    background: rgba(216, 120, 94, 0.12);
    color: var(--accent);
    font-weight: 500;
}

.thinking-badge.success {
    background: #e8f5e9;
    color: #2e7d32;
}

.thinking-chevron {
    font-size: 13px;
    color: #8c827a;
    transition: transform 0.25s ease;
}

.thinking-chevron.collapsed {
    transform: rotate(-90deg);
}

.thinking-detail {
    padding: 12px 18px 14px;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.thinking-detail.collapsed {
    display: none;
}

.thinking-steps {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.thinking-step-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
    line-height: 1.65;
    color: #61564f;
    animation: fadeIn 0.25s ease;
}

.thinking-step-icon {
    font-size: 11px;
    color: #52c41a;
    margin-top: 1px;
    flex-shrink: 0;
}

.thinking-step-text {
    flex: 1;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.thinking-step-text strong {
    color: #2b2523;
    font-weight: 600;
}

.thinking-step-text .highlight {
    color: var(--accent);
    font-weight: 600;
}

/* ==================== 培训进度与考核完成情况仪表盘 ==================== */
.progress-dashboard-container {
    width: 100%;
    max-width: 540px;
    margin: 24px auto 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    animation: popIn 0.5s ease forwards;
}

.progress-summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 16px;
    padding: 16px 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.summary-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.stat-num {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #2b2b2b;
}

.stat-label {
    font-size: 12px;
    color: #8c857f;
    font-weight: 500;
}

.stat-status-badge {
    font-size: 12px;
    font-weight: 600;
    color: #d8785e;
    background: rgba(216, 120, 94, 0.12);
    padding: 2px 8px;
    border-radius: 9999px;
}

.summary-divider-v {
    width: 1px;
    height: 30px;
    background: #ede9e3;
}

.enroll-card.progress-card {
    padding: 24px 28px 22px;
    margin: 0;
    border-radius: 18px;
}

.progress-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.progress-card-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-card-icon {
    font-size: 20px;
}

.progress-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #2d2825;
}

.progress-status-pill {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 9999px;
    font-weight: 600;
}

.progress-status-pill.running {
    background: #fff3e0;
    color: #e65100;
}

.progress-status-pill.waiting {
    background: #fdf6ec;
    color: #b45309;
    border: 1px solid rgba(217, 119, 6, 0.25);
}

.progress-status-pill.done {
    background: #e8f5e9;
    color: #2e7d32;
}

/* 进度条 */
.progress-bar-wrapper {
    margin-bottom: 16px;
}

.progress-bar-track {
    width: 100%;
    height: 8px;
    background: #f0ede8;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #d8785e, #f59e0b);
    border-radius: 9999px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-bar-fill.school-fill {
    background: linear-gradient(90deg, #3b82f6, #10b981);
}

.progress-bar-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #8c857f;
    margin-top: 6px;
}

/* 子任务网格 */
.task-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
    margin: 16px 0;
}

.task-grid-item {
    background: #fcfbfa;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.task-item-label {
    font-size: 12px;
    color: #8c857f;
    font-weight: 500;
}

.task-item-val-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.task-item-val {
    font-size: 14px;
    font-weight: 700;
    color: #2d2825;
}

.task-item-sub {
    font-size: 11px;
    color: #a39c95;
}

.task-card-footer-note {
    font-size: 12px;
    color: #8c857f;
    background: rgba(216, 120, 94, 0.05);
    border-radius: 8px;
    padding: 8px 12px;
    line-height: 1.5;
    margin-top: 6px;
}

/* 5项横排网格 (严格复现官方远程考核面板) */
.task-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin: 16px 0;
}

.task-grid-5 .task-grid-item {
    text-align: center;
    align-items: center;
    padding: 10px 6px;
}

.task-grid-5 .task-item-val-group {
    align-items: center;
}

.task-grid-5 .task-item-val {
    font-size: 15px;
    margin-bottom: 2px;
}

.task-grid-5 .task-item-label {
    font-size: 12px;
    color: #2d2825;
    font-weight: 600;
}

.text-red {
    color: #e04b4b !important;
}

.text-green {
    color: #10b981 !important;
}

/* 校本研修等待任务发布提示框 */
.school-waiting-state {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fdfaf6;
    border: 1px dashed #eed8c5;
    border-radius: 12px;
    padding: 14px 16px;
}

.waiting-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #fff8f0;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.08);
}

.waiting-text-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.waiting-main-title {
    font-size: 14px;
    font-weight: 700;
    color: #92400e;
}

.waiting-sub-title {
    font-size: 12px;
    color: #9a7b62;
    line-height: 1.4;
}

.task-grid.task-grid-2 {
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 600px) {
    .task-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 420px) {
    .task-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .progress-summary-bar {
        padding: 12px 14px;
    }
    .stat-num {
        font-size: 14px;
    }
    .stat-label {
        font-size: 11px;
    }
    .enroll-card.progress-card {
        padding: 20px 18px 18px;
    }
    .task-grid {
        gap: 10px;
    }
    .task-grid-item {
        padding: 10px 12px;
    }
}
