* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #f5f5f7;
    color: #333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

#app {
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    background: #fff;
    position: relative;
}

.page {
    display: none;
    min-height: 100vh;
    flex-direction: column;
}

.page.active {
    display: flex;
}

/* ============ 欢迎页 ============ */
.welcome-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    min-height: 100vh;
}

.welcome-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.welcome-container h1 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.welcome-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.welcome-desc {
    margin-bottom: 40px;
    font-size: 15px;
    opacity: 0.85;
    line-height: 1.8;
}

.welcome-desc p {
    margin-bottom: 8px;
}

.btn-primary {
    background: #fff;
    color: #667eea;
    border: none;
    padding: 14px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.welcome-tip {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.8;
}

.welcome-tip a {
    color: #fff;
    text-decoration: underline;
}

/* ============ 通用头部 ============ */
.timeline-header, .stage-header, .chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.timeline-header h2, .stage-header h2, .chat-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.btn-back {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-reset {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-toggle-voice {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.btn-toggle-voice:hover {
    background: #f0f0f0;
}

.btn-toggle-voice.active {
    background: #e3f2fd;
    color: #1565c0;
}

/* ============ 时间轴页 ============ */
.timeline-intro {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
    background: #f9f9fb;
}

.timeline-container {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.timeline-node {
    display: flex;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.timeline-node:hover {
    transform: translateX(5px);
}

.timeline-node-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 15px;
    min-width: 50px;
}

.timeline-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 2;
}

.timeline-line {
    width: 2px;
    flex: 1;
    background: #e0e0e0;
    margin-top: 5px;
    min-height: 20px;
}

.timeline-node:last-child .timeline-line {
    display: none;
}

.timeline-node-right {
    flex: 1;
    background: #f9f9fb;
    border-radius: 12px;
    padding: 15px;
    border-left: 4px solid;
}

.timeline-node-age {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.timeline-node-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-node-question {
    font-size: 13px;
    color: #666;
}

.timeline-footer {
    padding: 20px;
    text-align: center;
    font-size: 14px;
    color: #666;
    border-top: 1px solid #eee;
}

.timeline-footer a {
    color: #667eea;
    text-decoration: none;
}

/* ============ 阶段详情页 ============ */
.stage-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.stage-hero {
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    color: #fff;
}

.stage-hero-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.stage-hero h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.stage-hero-age {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 15px;
}

.stage-hero-question {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
}

.stage-hero-summary {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.7;
}

.stage-section {
    margin-bottom: 25px;
}

.stage-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid #667eea;
}

.stage-section ul {
    list-style: none;
    padding: 0;
}

.stage-section li {
    padding: 8px 0;
    font-size: 14px;
    color: #444;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.6;
}

.stage-section li:last-child {
    border-bottom: none;
}

.path-item {
    background: #f9f9fb;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
}

.path-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 6px;
    color: #333;
}

.path-pros {
    font-size: 13px;
    color: #2e7d32;
    margin-bottom: 4px;
}

.path-cons {
    font-size: 13px;
    color: #c62828;
}

.stage-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background: #fff;
}

.stage-footer .btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

/* ============ 对话页 ============ */
.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f5f5f7;
}

.message {
    margin-bottom: 15px;
    display: flex;
}

.message.user {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.6;
    word-wrap: break-word;
}

.message.assistant .message-bubble {
    background: #fff;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.message.user .message-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.message-bubble p {
    margin-bottom: 8px;
}

.message-bubble p:last-child {
    margin-bottom: 0;
}

.message-bubble strong {
    font-weight: 600;
}

.message-bubble ul, .message-bubble ol {
    margin: 8px 0;
    padding-left: 20px;
}

.message-bubble li {
    margin-bottom: 4px;
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    width: fit-content;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #999;
    margin: 0 2px;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-5px); opacity: 1; }
}

.chat-input-area {
    display: flex;
    align-items: flex-end;
    padding: 10px 15px;
    background: #fff;
    border-top: 1px solid #eee;
    gap: 10px;
}

.input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: flex-end;
}

#chat-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 10px 50px 10px 15px;
    font-size: 15px;
    font-family: inherit;
    resize: none;
    max-height: 100px;
    outline: none;
    transition: border-color 0.3s;
}

#chat-input:focus {
    border-color: #667eea;
}

.btn-voice {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s;
    /* 防止长按选中文本/弹出菜单 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn-voice:hover {
    background: #f0f0f0;
}

.btn-voice.recording {
    background: #ff4444;
    animation: pulse 1s infinite;
}

.btn-voice:active {
    transform: scale(0.95);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,68,68,0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255,68,68,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,68,68,0); }
}

.btn-send {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-send:hover {
    opacity: 0.9;
}

.btn-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.voice-status {
    padding: 12px 20px;
    background: #e3f2fd;
    border-top: 1px solid #bbdefb;
    font-size: 14px;
    color: #1565c0;
}

.voice-status-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.voice-recording {
    font-weight: 600;
    white-space: nowrap;
}

.voice-wave {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 24px;
    flex: 1;
}

.voice-wave span {
    width: 3px;
    background: #1565c0;
    border-radius: 2px;
    animation: wave 1s ease-in-out infinite;
}

.voice-wave span:nth-child(1) { animation-delay: 0s; height: 8px; }
.voice-wave span:nth-child(2) { animation-delay: 0.1s; height: 16px; }
.voice-wave span:nth-child(3) { animation-delay: 0.2s; height: 24px; }
.voice-wave span:nth-child(4) { animation-delay: 0.3s; height: 16px; }
.voice-wave span:nth-child(5) { animation-delay: 0.4s; height: 8px; }

@keyframes wave {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1.2); }
}

.voice-result {
    font-size: 13px;
    color: #666;
    word-break: break-all;
}

/* 语音消息播放器 */
.audio-player {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 8px 12px;
    background: #f5f5f7;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.audio-player:hover {
    background: #ebebef;
}

.audio-play-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #667eea;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.audio-progress {
    flex: 1;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    overflow: hidden;
}

.audio-progress-bar {
    height: 100%;
    background: #667eea;
    width: 0%;
    transition: width 0.1s;
}

.audio-duration {
    font-size: 12px;
    color: #999;
    flex-shrink: 0;
}

/* ============ 快捷操作 ============ */
.chat-quick-actions {
    padding: 8px 15px;
    background: #fff;
    border-top: 1px solid #eee;
}

.btn-quick {
    width: 100%;
    background: #f0f0ff;
    color: #667eea;
    border: 1px dashed #667eea;
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-quick:hover {
    background: #e8e8ff;
}

/* ============ 弹窗 ============ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.modal-tip {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.6;
}

.modal-tip-small {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
}

#resume-text {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    outline: none;
    line-height: 1.6;
}

#resume-text:focus {
    border-color: #667eea;
}

.modal-footer {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #eee;
}

.btn-cancel {
    flex: 1;
    background: #f5f5f5;
    color: #666;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
}

.btn-submit {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

/* ============ 特殊时期标签 ============ */
.tags-section {
    margin-top: 28px;
    padding: 16px 0;
    border-top: 1px dashed #e0e0e0;
}

.tags-section-title {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.tags-section-icon {
    font-size: 26px;
    line-height: 1.2;
}

.tags-section-title h3 {
    font-size: 17px;
    color: #1a237e;
    margin: 0 0 4px 0;
}

.tags-section-title p {
    font-size: 13px;
    color: #78909c;
    margin: 0;
}

.tags-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.tag-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e8eaf6;
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.tag-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #c5cae9;
}

.tag-card:active {
    transform: scale(0.98);
}

.tag-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.tag-card-body {
    flex: 1;
    min-width: 0;
}

.tag-card-name {
    font-size: 16px;
    font-weight: 700;
    color: #263238;
    margin-bottom: 2px;
}

.tag-card-age {
    font-size: 12px;
    color: #90a4ae;
    margin-bottom: 4px;
}

.tag-card-question {
    font-size: 13px;
    color: #607d8b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============ 响应式 ============ */
@media (max-width: 480px) {
    .welcome-container h1 {
        font-size: 24px;
    }
    
    .welcome-icon {
        font-size: 60px;
    }
    
    .message-bubble {
        max-width: 85%;
        font-size: 14px;
    }
}

/* ============ 底部导航 ============ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    border-top: 1px solid #e8eaf6;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}
.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 0;
    font-size: 11px;
    color: #90a4ae;
    cursor: pointer;
    transition: color 0.2s;
}
.bottom-nav-item .bn-icon {
    font-size: 20px;
}
.bottom-nav-item.active {
    color: #667eea;
    font-weight: 600;
}
.page {
    padding-bottom: 70px;
}
/* ============ 历史记录 ============ */
.btn-history {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
}
.history-intro {
    padding: 12px 16px;
    color: #78909c;
    font-size: 14px;
}
.history-list {
    padding: 8px 16px;
}
.history-item {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e8eaf6;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.history-item:hover {
    border-color: #c5cae9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.history-item-main {
    flex: 1;
    min-width: 0;
}
.history-item-title {
    font-size: 15px;
    font-weight: 600;
    color: #263238;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.history-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.h-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
}
.h-tag.stage {
    background: #e8eaf6;
    color: #3949ab;
}
.h-tag.tag {
    background: #fce4ec;
    color: #c2185b;
}
.h-time {
    font-size: 11px;
    color: #b0bec5;
}
.h-count {
    font-size: 11px;
    color: #b0bec5;
}
.history-item-del {
    background: none;
    border: none;
    font-size: 20px;
    color: #ef9a9a;
    cursor: pointer;
    padding: 4px 8px;
}
.loading-text, .empty-text {
    text-align: center;
    color: #90a4ae;
    padding: 30px 0;
    font-size: 14px;
}
/* ============ 测评中心 ============ */
.assessment-intro {
    padding: 12px 16px;
    color: #78909c;
    font-size: 14px;
}
.assessment-list {
    padding: 8px 16px;
}
.assessment-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1px solid #e8eaf6;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.assessment-card:hover {
    border-color: #c5cae9;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}
.assessment-icon {
    font-size: 34px;
    flex-shrink: 0;
}
.assessment-body {
    flex: 1;
}
.assessment-name {
    font-size: 16px;
    font-weight: 700;
    color: #263238;
    margin-bottom: 4px;
}
.assessment-desc {
    font-size: 13px;
    color: #607d8b;
    line-height: 1.5;
    margin-bottom: 6px;
}
.assessment-meta {
    font-size: 12px;
    color: #667eea;
}
.assessment-run-content {
    padding: 16px;
}
.assessment-form {
    background: #fff;
    border-radius: 14px;
    padding: 20px 16px;
}
.aq-item {
    margin-bottom: 18px;
}
.aq-item label {
    display: block;
    font-size: 14px;
    color: #37474f;
    font-weight: 600;
    margin-bottom: 8px;
}
.aq-item input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}
.assessment-result {
    background: #fff;
    border-radius: 14px;
    padding: 20px 16px;
}
.ar-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 14px;
    text-align: center;
}
.ar-content {
    font-size: 15px;
    color: #37474f;
    line-height: 1.7;
    margin-bottom: 14px;
}
.ar-detail {
    border-top: 1px dashed #e0e0e0;
    padding-top: 12px;
    margin-top: 12px;
}
.ar-score-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
}
.ar-bar {
    flex: 1;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}
.ar-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
}
/* ============ 进度追踪 ============ */
.btn-add {
    background: none;
    border: none;
    font-size: 24px;
    color: #667eea;
    cursor: pointer;
    padding: 4px 10px;
}
.goals-intro {
    padding: 12px 16px;
    color: #78909c;
    font-size: 14px;
}
.goals-list {
    padding: 8px 16px;
}
.goal-item {
    background: #fff;
    border: 1px solid #e8eaf6;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
}
.goal-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.goal-title {
    font-size: 15px;
    font-weight: 700;
    color: #263238;
}
.goal-status {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    color: #455a64;
    background: #fff;
}
.goal-desc {
    font-size: 13px;
    color: #607d8b;
    line-height: 1.5;
    margin-bottom: 8px;
}
.goal-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #b0bec5;
}
.goal-del {
    background: none;
    border: none;
    color: #ef9a9a;
    font-size: 12px;
    cursor: pointer;
}
.goals-footer {
    padding: 16px;
    text-align: center;
}
.goal-review-result {
    background: linear-gradient(135deg, #e8eaf6, #f3e5f5);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
}
.goal-review-result h4 {
    margin: 0 0 10px 0;
    color: #1a237e;
    font-size: 15px;
}
/* ============ 我的 / 用户画像 ============ */
.profile-section {
    background: #fff;
    border-radius: 14px;
    margin: 12px 16px;
    padding: 18px 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.profile-section h3 {
    margin: 0 0 6px 0;
    font-size: 16px;
    color: #1a237e;
}
.profile-tip {
    font-size: 13px;
    color: #90a4ae;
    margin: 0 0 14px 0;
}
.profile-form label {
    display: block;
    font-size: 13px;
    color: #607d8b;
    margin: 10px 0 4px 0;
}
.profile-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}
.btn-save {
    margin-top: 16px;
    width: 100%;
}
.profile-menu {
    display: flex;
    flex-direction: column;
}
.profile-menu-item {
    padding: 14px 0;
    font-size: 15px;
    color: #37474f;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
}
.profile-menu-item:last-child {
    border-bottom: none;
}
.ai-flag-note {
    padding: 12px 16px;
    font-size: 12px;
    color: #b0bec5;
    text-align: center;
}
/* ============ AI生成内容标识 ============ */
.ai-flag {
    font-size: 11px;
    color: #b0bec5;
    margin-top: 6px;
    padding-top: 4px;
    border-top: 1px dashed #eee;
}
/* ============ 弹窗通用 ============ */
.modal label {
    display: block;
    font-size: 14px;
    color: #37474f;
    font-weight: 600;
    margin: 12px 0 6px 0;
}
.modal input[type="text"],
.modal textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}
.modal textarea {
    resize: vertical;
}
.misconception-list li {
    color: #c62828;
}
.tool-list li {
    color: #00695c;
}

/* ============ 语音通话模式(流式连续对话) ============ */
.chat-input-area {
    position: relative;
}
.btn-call {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 22px;
    background: linear-gradient(135deg, #7c4dff, #536dfe);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(83, 109, 254, 0.35);
    transition: all .2s;
}
.btn-call:hover { transform: translateY(-1px); box-shadow: 0 5px 14px rgba(83, 109, 254, 0.45); }
.btn-call.calling {
    background: linear-gradient(135deg, #e53935, #ff7043);
    animation: callPulse 1.6s infinite;
}
@keyframes callPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(229, 57, 53, 0); }
}

.call-status {
    margin-top: 10px;
    background: linear-gradient(135deg, #ede7f6, #e8eaf6);
    border-radius: 16px;
    padding: 12px 16px;
    border: 1px solid #d1c4e9;
    animation: viewIn .3s ease both;
}
.call-status-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.call-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e53935;
    animation: blink 1s infinite;
}
.call-title {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #4a148c;
}
.call-timer {
    font-size: 13px;
    color: #5c6bc0;
    font-variant-numeric: tabular-nums;
}
.call-end {
    background: #e53935;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 4px 14px;
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
}
.call-live-text {
    min-height: 40px;
    background: rgba(255,255,255,.7);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    max-height: 80px;
    overflow-y: auto;
    word-break: break-all;
}
.call-live-text.interim { color: #888; }
.call-live-text.ai-responding { color: #7b1fa2; }
.call-volume {
    margin-top: 8px;
    height: 6px;
    background: rgba(0,0,0,.08);
    border-radius: 3px;
    overflow: hidden;
}
.call-volume-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #7c4dff, #e53935);
    border-radius: 3px;
    transition: width .1s;
}
.call-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #7e57c2;
    text-align: center;
}

/* 微信式按住说话优化 */
.btn-voice {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
    -webkit-user-select: none;
    user-select: none;
    touch-action: none;
}
.btn-voice.recording {
    background: #ffebee;
    border-color: #e53935;
    animation: callPulse 1.2s infinite;
}
.call-mode-on .input-wrapper { opacity: .35; pointer-events: none; }
.call-mode-on .btn-send { opacity: .35; pointer-events: none; }

/* ============================================================
   多主题系统(温暖治愈 / 专业清晰 / 极简禅意)
   body[data-theme=...] 切换,设置页可选
   ============================================================ */
body[data-theme="warm"] {
    --theme-bg: #FDF8F3;
    --theme-bg2: #FBF3EA;
    --theme-card: #FFFFFF;
    --theme-ink: #4A3F35;
    --theme-ink2: #7C6F63;
    --theme-primary: #E8844A;
    --theme-primary-deep: #C96A33;
    --theme-primary-soft: #FCE8D7;
    --theme-line: rgba(74, 63, 53, 0.12);
}
body[data-theme="pro"] {
    --theme-bg: #F3F6FB;
    --theme-bg2: #E9EEF6;
    --theme-card: #FFFFFF;
    --theme-ink: #1F2A3D;
    --theme-ink2: #5A6B85;
    --theme-primary: #2563EB;
    --theme-primary-deep: #1D4ED8;
    --theme-primary-soft: #DBEAFE;
    --theme-line: rgba(31, 42, 61, 0.10);
}
body[data-theme="zen"] {
    --theme-bg: #F7F6F3;
    --theme-bg2: #EFEDE8;
    --theme-card: #FDFCFA;
    --theme-ink: #3D3A36;
    --theme-ink2: #8A857D;
    --theme-primary: #6B7280;
    --theme-primary-deep: #4B5563;
    --theme-primary-soft: #F0EFEC;
    --theme-line: rgba(61, 58, 54, 0.10);
}

body[data-theme] { background: var(--theme-bg); color: var(--theme-ink); }
body[data-theme] .topbar { background: var(--theme-bg2); border-bottom-color: var(--theme-line); }
body[data-theme] .btn-primary { background: var(--theme-primary); }
body[data-theme] .btn-primary:hover { background: var(--theme-primary-deep); }
body[data-theme] .btn-soft { background: var(--theme-primary-soft); color: var(--theme-primary-deep); }
body[data-theme] .stage-card { background: var(--theme-card); border-color: var(--theme-line); }
body[data-theme] .bottom-nav { background: var(--theme-card); border-top-color: var(--theme-line); }
body[data-theme] .bottom-nav-item.active { color: var(--theme-primary); }
body[data-theme] .chip { border-color: var(--theme-line); }
body[data-theme] input, body[data-theme] textarea, body[data-theme] select { border-color: var(--theme-line); background: var(--theme-card); color: var(--theme-ink); }
body[data-theme] .chat-input-area { background: var(--theme-card); border-color: var(--theme-line); }
body[data-theme] .chat-input-area input:focus { box-shadow: 0 0 0 3px var(--theme-primary-soft); }
body[data-theme] .btn-toggle-voice.active { background: var(--theme-primary-soft); color: var(--theme-primary-deep); }

/* 主题选择器 */
.theme-options { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.theme-option {
    flex: 1;
    min-width: 90px;
    border: 2px solid var(--line);
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    background: var(--card);
}
.theme-option.active { border-color: var(--primary); background: var(--primary-pale); }
.theme-option .to-dot {
    width: 22px; height: 22px;
    border-radius: 50%;
    margin: 0 auto 8px;
    border: 2px solid rgba(0,0,0,.08);
}
.theme-option .to-name { font-size: 13px; font-weight: 500; }
