/* ===== 基础样式 ===== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #0ea5e9;
    --accent: #06b6d4;
    --bg-dark: #0a1628;
    --bg-card: rgba(20, 40, 80, 0.7);
    --bg-glass: rgba(15, 35, 75, 0.5);
    --text-primary: #ffffff;
    --text-secondary: #a8c5ff;
    --text-muted: #6b8fc7;
    --border: rgba(100, 150, 255, 0.25);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gradient-start: #0d4a9c;
    --gradient-end: #051a3a;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* 覆盖外部库可能引入的默认样式 */
input, select, textarea {
    color: var(--text-primary) !important;
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid var(--border) !important;
}

input::placeholder, textarea::placeholder {
    color: var(--text-muted) !important;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.main-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* ===== 页面切换 ===== */
.page {
    display: none;
    min-height: 100vh;
    padding-bottom: 80px;
}

.page.active {
    display: block;
}

/* ===== 封面�?===== */
.cover-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 背景光效 */
.cover-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}
.cover-glow-1 {
    width: 300px;
    height: 300px;
    background: rgba(59, 130, 246, 0.25);
    top: -50px;
    left: -80px;
    animation: glow-float 8s ease-in-out infinite;
}
.cover-glow-2 {
    width: 250px;
    height: 250px;
    background: rgba(6, 182, 212, 0.2);
    bottom: 50px;
    right: -60px;
    animation: glow-float 10s ease-in-out infinite reverse;
}
@keyframes glow-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 20px) scale(1.1); }
}

.cover-logo {
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
}

/* Logo 环形动画 */
.logo-ring {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-core {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.5);
    position: relative;
    z-index: 2;
}

.logo-orbit {
    position: absolute;
    width: 90px;
    height: 90px;
    border: 2px solid transparent;
    border-top-color: rgba(59, 130, 246, 0.6);
    border-right-color: rgba(6, 182, 212, 0.4);
    border-radius: 50%;
    animation: orbit-spin 3s linear infinite;
}
@keyframes orbit-spin {
    to { transform: rotate(360deg); }
}

.cover-title {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 40%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.cover-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.cover-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    font-size: 12px;
    color: #60a5fa;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
    animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); box-shadow: 0 0 8px #3b82f6; }
}

.cover-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 340px;
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(100, 150, 255, 0.12);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateX(4px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(6, 182, 212, 0.15) 100%);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 12px;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    color: #60a5fa;
}

.feature-text h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
    color: #e2e8f0;
}

.feature-text p {
    font-size: 12px;
    color: var(--text-secondary);
}

.cover-start-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 300px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #06b6d4 100%);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px rgba(37, 99, 235, 0.45), 0 0 0 1px rgba(255,255,255,0.1) inset;
    position: relative;
    z-index: 1;
    letter-spacing: 1px;
}

.cover-start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.6), 0 0 0 1px rgba(255,255,255,0.15) inset;
}

.cover-start-btn svg {
    width: 20px;
    height: 20px;
}

.cover-tip {
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

/* ===== 测评�?===== */
.assessment-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.progress-header {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.progress-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-light);
}

.progress-bar-wrapper {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

.form-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group .required {
    color: var(--danger);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s ease;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-block {
    width: 100%;
}

/* ===== 题目卡片 ===== */
.questions-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    
}

.question-card {
    animation: fadeIn 0.3s ease;
}

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

.question-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.5;
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.option-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.5);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-item:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--border);
}

.option-item.selected {
    background: rgba(37, 99, 235, 0.15);
    border-color: var(--primary);
}

.option-item input {
    display: none;
}

.option-radio {
    width: 22px;
    height: 22px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s ease;
}

.option-item.selected .option-radio {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: inset 0 0 0 4px var(--bg-dark);
}

.option-content {
    flex: 1;
}

.option-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.option-desc {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
}

.btn-group {
    display: flex;
    gap: 12px;
}

.btn-secondary {
    padding: 14px 28px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
}

/* ===== 生成中页�?- 科幻风格 ===== */
.generating-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
}

/* 生成状态文�?*/
.generating-status {
    margin: 24px 0;
    font-size: 18px;
    color: #10b981;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 报告框架进度 - 参照用户图片样式 */
.report-framework-progress {
    width: 100%;
    max-width: 320px;
    margin: 20px 0 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.framework-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.framework-item.active {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    opacity: 1;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

.framework-item.completed {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    opacity: 1;
}

.framework-item .fw-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: transparent;
    transition: all 0.3s ease;
}

.framework-item.completed .fw-check,
.framework-item.active .fw-check {
    background: #10b981;
    color: white;
}

.framework-item .fw-text {
    font-size: 14px;
    color: #94a3b8;
    transition: all 0.3s ease;
}

.framework-item.active .fw-text {
    color: #10b981;
    font-weight: 500;
}

.framework-item.completed .fw-text {
    color: #e2e8f0;
}

/* 科幻背景 */
.scifi-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
    bottom: 20%;
    right: -50px;
    animation-delay: -2s;
}

.orb-3 {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    top: 40%;
    left: 10%;
    animation-delay: -4s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* AI核心动画 */
.ai-core-wrapper {
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
}

.ai-core {
    width: 120px;
    height: 120px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.core-inner {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    box-shadow: 
        0 0 30px rgba(59, 130, 246, 0.6),
        0 0 60px rgba(59, 130, 246, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    animation: corePulse 2s ease-in-out infinite;
}

.core-inner svg {
    width: 30px;
    height: 30px;
    color: white;
}

@keyframes corePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(59, 130, 246, 0.6), 0 0 60px rgba(59, 130, 246, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 0 40px rgba(59, 130, 246, 0.8), 0 0 80px rgba(59, 130, 246, 0.4); }
}

.core-ring {
    position: absolute;
    border: 2px solid;
    border-radius: 50%;
    animation: ringExpand 3s ease-out infinite;
}

.ring-1 {
    width: 80px;
    height: 80px;
    border-color: rgba(59, 130, 246, 0.6);
    animation-delay: 0s;
}

.ring-2 {
    width: 100px;
    height: 100px;
    border-color: rgba(6, 182, 212, 0.4);
    animation-delay: 1s;
}

.ring-3 {
    width: 120px;
    height: 120px;
    border-color: rgba(139, 92, 246, 0.3);
    animation-delay: 2s;
}

@keyframes ringExpand {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.core-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotate 10s linear infinite;
}

.core-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 10px #3b82f6;
}

.core-particles span:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.core-particles span:nth-child(2) { top: 50%; right: 0; transform: translateY(-50%); }
.core-particles span:nth-child(3) { bottom: 0; left: 50%; transform: translateX(-50%); }
.core-particles span:nth-child(4) { top: 50%; left: 0; transform: translateY(-50%); }
.core-particles span:nth-child(5) { top: 15%; right: 15%; }
.core-particles span:nth-child(6) { bottom: 15%; right: 15%; }
.core-particles span:nth-child(7) { bottom: 15%; left: 15%; }
.core-particles span:nth-child(8) { top: 15%; left: 15%; }

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ai-status {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: statusBlink 1.5s ease-in-out infinite;
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.status-text {
    font-size: 14px;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

/* 流式终端 */
.stream-terminal {
    width: 100%;
    max-width: 700px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 
        0 0 40px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

.stream-terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    animation: scanline 3s linear infinite;
}

@keyframes scanline {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(30, 41, 59, 0.8);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dots span:nth-child(1) { background: #ef4444; }
.terminal-dots span:nth-child(2) { background: #f59e0b; }
.terminal-dots span:nth-child(3) { background: #10b981; }

.terminal-title {
    font-size: 13px;
    color: var(--text-secondary);
    font-family: 'Courier New', monospace;
}

.terminal-body {
    padding: 16px;
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
}

.stream-content {
    font-family: 'Courier New', 'Monaco', monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #e2e8f0;
    text-align: left;
    white-space: pre-wrap;
    word-break: break-word;
}

.typing-cursor {
    animation: cursorBlink 1s step-end infinite;
    color: #3b82f6;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.terminal-stats {
    padding: 8px 16px;
    background: rgba(30, 41, 59, 0.6);
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    text-align: right;
}

/* ===== 生成页面加载动画 ===== */
.generating-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
}

.spinner-ring {
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #3b82f6;
    animation: spinner-spin 1.2s linear infinite;
}

.spinner-ring:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 0;
    left: 0;
    border-top-color: #3b82f6;
    animation-duration: 1.2s;
}

.spinner-ring:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    border-top-color: #06b6d4;
    animation-duration: 0.9s;
    animation-direction: reverse;
}

.spinner-ring:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 20px;
    left: 20px;
    border-top-color: #60a5fa;
    animation-duration: 0.6s;
}

@keyframes spinner-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.loading-timer {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 32px;
}

.loading-timer span {
    color: #3b82f6;
    font-weight: 600;
    font-size: 18px;
}

.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 280px;
    width: 100%;
}

.loading-step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 10px;
    opacity: 0.4;
    transition: all 0.5s ease;
}

.loading-step.active {
    opacity: 1;
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.loading-step.completed {
    opacity: 0.7;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

.loading-step.completed .step-dot {
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.step-dot {
    width: 10px;
    height: 10px;
    min-width: 10px;
    border-radius: 50%;
    background: #3b82f6;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
    animation: dot-blink 1.5s infinite;
}

.loading-step.completed .step-dot {
    animation: none;
}

@keyframes dot-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.step-text {
    font-size: 14px;
    color: #e2e8f0;
}

.loading-step.completed .step-text {
    color: #34d399;
}

/* 进度时间�?*/
.progress-timeline {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

.timeline-line {
    position: relative;
    height: 4px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 2px;
    margin-bottom: 20px;
}

.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    border-radius: 2px;
    transition: width 0.5s ease;
    width: 0%;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.timeline-steps {
    display: flex;
    justify-content: space-between;
}

.t-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.t-step.active {
    opacity: 1;
}

.t-step.completed {
    opacity: 1;
}

.t-icon {
    width: 40px;
    height: 40px;
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.t-icon svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

.t-step.active .t-icon {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.t-step.active .t-icon svg {
    color: white;
}

.t-step.completed .t-icon {
    background: #10b981;
    border-color: #10b981;
}

.t-step.completed .t-icon svg {
    color: white;
}

.t-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.t-step.active .t-label {
    color: #3b82f6;
    font-weight: 500;
}

/* ===== 报告内容样式 - 清晰美观 ===== */
.report-section {
    margin-bottom: 32px;
    padding: 24px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
}

.section-title-main {
    font-size: 18px;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.section-subtitle {
    font-size: 15px;
    font-weight: 600;
    color: #2563eb;
    margin-top: 20px;
    margin-bottom: 12px;
}

.report-paragraph {
    font-size: 14px;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 12px;
    text-align: justify;
}

.report-point {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px 14px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.point-marker {
    color: #3b82f6;
    font-weight: 700;
    flex-shrink: 0;
}

.point-text {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
}

/* 关键词高�?*/
.highlight-risk-high {
    color: #dc2626;
    font-weight: 600;
    background: #fef2f2;
    padding: 2px 6px;
    border-radius: 4px;
}

.highlight-risk-medium {
    color: #d97706;
    font-weight: 600;
    background: #fffbeb;
    padding: 2px 6px;
    border-radius: 4px;
}

.highlight-risk-low {
    color: #059669;
    font-weight: 600;
    background: #ecfdf5;
    padding: 2px 6px;
    border-radius: 4px;
}

.highlight-key {
    color: #2563eb;
    font-weight: 600;
    background: #eff6ff;
    padding: 2px 6px;
    border-radius: 4px;
}

/* 客户标记 */
.hot-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    font-size: 11px;
    font-weight: 500;
    border-radius: 10px;
    margin-left: 8px;
}

/* ===== 报告�?- 权威专业样式 ===== */
.report-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 120px;
}

.report-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.3);
}

.report-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.report-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.report-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.report-info-item {
    background: rgba(255,255,255,0.12);
    padding: 8px 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.report-info-item.full {
    grid-column: 1 / -1;
}

.info-label {
    background: rgba(59,130,246,0.4);
    color: #e0e7ff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
    flex-shrink: 0;
    font-weight: 700;
}

.info-value {
    flex: 1;
    text-align: left;
    color: rgba(255,255,255,0.95);
    word-break: break-all;
}

.report-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-action:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.btn-action.primary {
    background: #10b981;
    border-color: #10b981;
    font-weight: 500;
}

.btn-action.primary:hover {
    background: #059669;
}

.btn-action svg {
    width: 18px;
    height: 18px;
}

/* ===== 报告内容 - 清晰专业样式 ===== */
.report-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    line-height: 1.9;
    font-size: 15px;
    color: #374151;
}

.report-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1e3a8a;
    margin: 36px 0 20px 0;
    padding: 16px 0;
    border-bottom: 3px solid #3b82f6;
    display: flex;
    align-items: center;
    gap: 12px;
}

.report-content h2::before {
    content: '';
    width: 6px;
    height: 28px;
    background: linear-gradient(180deg, #3b82f6, #06b6d4);
    border-radius: 3px;
}

.report-content h2:first-child {
    margin-top: 0;
}

.report-content h3 {
    font-size: 17px;
    font-weight: 600;
    color: #1e40af;
    margin: 28px 0 16px 0;
    padding-left: 12px;
    border-left: 4px solid #60a5fa;
}

.report-content p {
    margin-bottom: 16px;
    text-align: justify;
    color: #4b5563;
}

.report-content ul,
.report-content ol {
    margin: 16px 0;
    padding-left: 28px;
}

.report-content li {
    margin-bottom: 12px;
    color: #4b5563;
    line-height: 1.7;
}

/* 风险等级标签 */
.report-content .risk-high {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #dc2626;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 600;
    border-left: 3px solid #dc2626;
}

.report-content .risk-medium {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    color: #d97706;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 600;
    border-left: 3px solid #d97706;
}

.report-content .risk-low {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #059669;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 600;
    border-left: 3px solid #059669;
}

/* ===== 个人中心全新样式 ===== */
.profile-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 100px;
    min-height: 100vh;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.profile-header {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.3);
}

/* 合并后的顶部用户+额度卡片 */
.profile-header-merged {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.3);
}
.profile-header-merged .profile-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.profile-header-merged .profile-avatar {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    flex-shrink: 0;
}
.profile-header-merged .profile-avatar svg {
    width: 30px;
    height: 30px;
    color: white;
}
.profile-header-merged .profile-info {
    text-align: left;
    flex: 1;
}
.profile-header-merged .profile-phone {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}
.profile-header-merged .profile-status {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
}
.profile-header-merged .profile-quota {
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 14px 18px;
    backdrop-filter: none;
}
.profile-header-merged .quota-label {
    display: flex;
    justify-content: space-between;
    color: white;
    font-size: 14px;
    margin-bottom: 8px;
}
.profile-header-merged .quota-label .quota-text {
    font-weight: 600;
    color: #fef3c7;
}
.profile-header-merged .quota-progress {
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    overflow: hidden;
}
.profile-header-merged .quota-bar {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar svg {
    width: 40px;
    height: 40px;
    color: white;
}

.profile-phone {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.profile-status {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

/* 额度卡片 */
.quota-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.quota-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text-secondary);
}

.quota-text {
    color: #10b981;
    font-weight: 600;
}

.quota-progress {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.quota-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* 数据卡片 */
.data-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.data-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    border: 1px solid var(--border);
}

.data-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.data-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.data-icon.reports { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.data-icon.customers { background: linear-gradient(135deg, #10b981, #34d399); }
.data-icon.views { background: linear-gradient(135deg, #f59e0b, #fbbf24); }

.data-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.data-label {
    font-size: 13px;
    color: var(--text-secondary);
}

/* 图表区域 */
.charts-section {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
}

.chart-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border);
}

.chart-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.chart-card > div {
    width: 100%;
    height: 200px;
}

/* 快捷入口 */
.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.profile-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-btn:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--primary);
}

.profile-btn svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.logout-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

/* 历史页面统计 */
.stats-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.stat-item {
    flex: 1;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    border: 1px solid var(--border);
}

.stat-num {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.stat-item .stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.float-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.float-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.float-btn svg {
    width: 24px;
    height: 24px;
}

/* ===== 底部咨询�?===== */
.consultation-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    
    z-index: 50;
}

.consultation-text strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.consultation-text span {
    font-size: 13px;
    color: var(--text-secondary);
}

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

.btn-call,
.btn-qrcode {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-call {
    background: var(--success);
    border: none;
    color: white;
}

.btn-qrcode {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.btn-call:hover,
.btn-qrcode:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-call svg,
.btn-qrcode svg {
    width: 16px;
    height: 16px;
}

/* ===== 关键词搜索 ===== */
.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    min-height: 52px;
}

.search-bar svg {
    color: var(--text-muted);
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.5;
    outline: none;
    min-height: 24px;
}

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

/* ===== 时间段筛选 ===== */
.date-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    flex-wrap: wrap;
}

.date-filter-item {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 140px;
}

.date-filter-item svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.date-input {
    flex: 1;
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    min-width: 120px;
    cursor: pointer;
}

/* ===== 自定义日历组件 ===== */
.custom-calendar {
    position: absolute;
    background: #1e293b;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(59, 130, 246, 0.08);
    border-radius: 16px;
    padding: 16px;
    z-index: 99999;
    min-width: 280px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    display: none;
    animation: calFadeIn 0.2s ease-out;
}
.custom-calendar.show {
    display: block;
}
@keyframes calFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 4px;
}
.cal-title {
    font-size: 15px;
    font-weight: 600;
    color: #e2e8f0;
    letter-spacing: 0.5px;
}
.cal-nav {
    display: flex;
    gap: 4px;
}
.cal-nav-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: none;
    background: rgba(59, 130, 246, 0.1);
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}
.cal-nav-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}
.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 6px;
}
.cal-weekday {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    padding: 6px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.cal-day {
    text-align: center;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
    color: #cbd5e1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}
.cal-day:hover:not(.disabled) {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}
.cal-day.today {
    border: 1px solid #3b82f6;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.06);
    font-weight: 700;
}
.cal-day.selected {
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
    font-weight: 600;
}
.cal-day.selected:hover {
    background: #2563eb;
}
.cal-day.other-month {
    color: #475569;
    opacity: 0.4;
}
.cal-day.disabled {
    color: #475569;
    opacity: 0.3;
    cursor: not-allowed;
}
.cal-footer {
    display: flex;
    justify-content: center;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
}
.cal-today-btn {
    font-size: 12px;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    border: none;
    border-radius: 8px;
    padding: 6px 16px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}
.cal-today-btn:hover {
    background: rgba(59, 130, 246, 0.2);
}

.date-separator {
    color: var(--text-muted);
    font-size: 13px;
}

.btn-filter-apply,
.btn-filter-reset {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-filter-apply {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: white;
}

.btn-filter-apply:hover {
    background: var(--primary-dark);
}

.btn-filter-reset {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.btn-filter-reset:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

/* ===== 雷达图区域 ===== */
.radar-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.radar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 16px;
}

.radar-chart-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== 历史报告�?===== */
.history-container,
.customers-container,
.report-views-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.page-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

/* ===== 筛选标�?===== */
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.filter-tab {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-tab:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

.filter-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ===== 客户统计 ===== */
.customer-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.stat-card.deep {
    border-color: rgba(239, 68, 68, 0.3);
}

.stat-card.general {
    border-color: rgba(245, 158, 11, 0.3);
}

.stat-card.shallow {
    border-color: rgba(16, 185, 129, 0.3);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-card.deep .stat-value {
    color: #f87171;
}

.stat-card.general .stat-value {
    color: #fbbf24;
}

.stat-card.shallow .stat-value {
    color: #34d399;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ===== 列表卡片 ===== */
.history-list,
.customers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-card,
.customer-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    
}

.history-header,
.customer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.history-title,
.customer-name {
    font-size: 16px;
    font-weight: 600;
}

.history-time,
.customer-company {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.customer-level-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.customer-level-badge.deep {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.customer-level-badge.general {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.customer-level-badge.shallow {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.history-info {
    flex: 1;
}

.history-title {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.history-title svg {
    color: var(--primary-light);
    flex-shrink: 0;
}

.history-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.history-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.history-meta svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.level-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 4px;
}

.level-tag.deep {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.level-tag.general {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.level-tag.shallow {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.history-stats,
.customer-stats-row {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.customer-info-left { flex: 1; }
.customer-info-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.call-btn-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.call-btn-danger:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

.customer-reports-list {
    margin-bottom: 12px;
    border-top: 1px solid rgba(100,150,255,0.1);
    padding-top: 10px;
}

.reports-list-title {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
}

.report-link-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
}

.report-link-item:hover {
    background: rgba(59,130,246,0.2);
    transform: translateX(4px);
}

.report-link-hidden { display: none; }

.report-toggle-btn {
    text-align: center;
    padding: 8px;
    color: #60a5fa;
    font-size: 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-top: 4px;
}

.report-toggle-btn:hover {
    background: rgba(59,130,246,0.1);
}

.history-actions,
.customer-actions {
    display: flex;
    gap: 8px;
}

.history-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-btn:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

.history-btn.primary {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.history-btn.danger {
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.history-btn.danger:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* ===== 底部导航 ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.98);
    border-top: 1px solid rgba(100, 150, 255, 0.2);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-item svg {
    width: 22px;
    height: 22px;
}

.nav-item span {
    font-size: 11px;
}

.nav-item.active {
    color: var(--primary);
}

/* ===== 弹窗 ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 200;
    align-items: flex-end;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

.share-link-box {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.share-link-box input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

.btn-copy {
    padding: 12px 20px;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.share-qrcode {
    text-align: center;
}

.share-qrcode #qrcode {
    display: inline-block;
    padding: 16px;
    background: white;
    border-radius: 12px;
    margin-bottom: 12px;
}

.share-qrcode p {
    font-size: 13px;
    color: var(--text-secondary);
}

/* 专家弹窗 */
.expert-body {
    text-align: center;
}

.expert-info {
    margin-bottom: 20px;
}

.expert-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.expert-avatar svg {
    width: 40px;
    height: 40px;
    color: white;
}

.expert-info h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.expert-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

.expert-qrcode {
    margin-bottom: 20px;
}

.expert-qrcode #expert-qrcode-img {
    display: inline-block;
    padding: 16px;
    background: white;
    border-radius: 12px;
    margin-bottom: 12px;
}

/* ===== 空状�?===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

/* ===== 响应�?===== */
@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .customer-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .floating-nav {
        right: 10px;
    }
    
    .float-btn {
        width: 40px;
        height: 40px;
    }
    
    .consultation-bar {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}


/* ===== 报告内容样式 - 清晰美观 ===== */
.report-section {
    margin-bottom: 32px;
    padding: 24px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
}

.section-title-main {
    font-size: 18px;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.section-subtitle {
    font-size: 15px;
    font-weight: 600;
    color: #2563eb;
    margin-top: 20px;
    margin-bottom: 12px;
}

.report-paragraph {
    font-size: 14px;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 12px;
    text-align: justify;
}

.report-point {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px 14px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.point-marker {
    color: #3b82f6;
    font-weight: 700;
    flex-shrink: 0;
}

.point-text {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
}

/* 关键词高�?*/
.highlight-risk-high {
    color: #dc2626;
    font-weight: 600;
    background: #fef2f2;
    padding: 2px 6px;
    border-radius: 4px;
}

.highlight-risk-medium {
    color: #d97706;
    font-weight: 600;
    background: #fffbeb;
    padding: 2px 6px;
    border-radius: 4px;
}

.highlight-risk-low {
    color: #059669;
    font-weight: 600;
    background: #ecfdf5;
    padding: 2px 6px;
    border-radius: 4px;
}

.highlight-key {
    color: #2563eb;
    font-weight: 600;
    background: #eff6ff;
    padding: 2px 6px;
    border-radius: 4px;
}

/* 客户标记 */
.hot-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    font-size: 11px;
    font-weight: 500;
    border-radius: 10px;
    margin-left: 8px;
}




/* ===== 手机号登录弹�?===== */
.phone-login-form {
    padding: 20px 0;
}

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

.phone-login-form input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--bg-glass);
    color: var(--text-primary);
    font-size: 16px;
    text-align: center;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.phone-login-form input:focus {
    outline: none;
    border-color: var(--primary-light);
    background: var(--bg-card);
}

.phone-login-form input::placeholder {
    color: var(--text-muted);
    letter-spacing: normal;
}

.login-tip {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 16px;
}

/* ===== AI分析页面 ===== */
.analyzing-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(180deg, #0a1628 0%, #0d1f3c 50%, #0a1628 100%);
}

.analyzing-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    text-align: center;
}

.analyzing-subtitle {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 12px;
    text-align: center;
}

.analyzing-text {
    font-size: 14px;
    color: #3b82f6;
    margin-bottom: 30px;
    text-align: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* 纵向时间轴 */
.report-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 500px;
    width: 100%;
    position: relative;
    background: rgba(20, 40, 80, 0.5);
    border-radius: 16px;
    padding: 24px 20px;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

/* 时间轴纵轴线 */
.report-timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 50px;
    bottom: 50px;
    width: 2px;
    background: linear-gradient(180deg, #3b82f6 0%, #06b6d4 100%);
    opacity: 0.25;
    z-index: 0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
    position: relative;
    opacity: 0.5;
    transition: all 0.4s ease;
}

.timeline-item.active {
    opacity: 1;
}

.timeline-item.completed {
    opacity: 1;
}

/* 时间轴节点圆点 */
.timeline-dot {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e293b;
    border: 2px solid #334155;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.timeline-item.active .timeline-dot {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.5);
    animation: dot-pulse 1.5s infinite;
}

.timeline-item.completed .timeline-dot {
    background: #10b981;
    border-color: #10b981;
    color: white;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

@keyframes dot-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.6);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
}

/* 时间轴内容 */
.timeline-content {
    flex: 1;
    padding-top: 6px;
}

.timeline-text {
    font-size: 14px;
    color: #94a3b8;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.timeline-item.active .timeline-text {
    color: #ffffff;
    font-weight: 500;
}

.timeline-item.completed .timeline-text {
    color: #10b981;
}

.timeline-step {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

/* 流式输出�?*/
.streaming-output-box {
    margin-top: 40px;
    max-width: 600px;
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 20px;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
}

.streaming-output-box .output-text {
    font-size: 14px;
    line-height: 1.8;
    color: #e2e8f0;
    white-space: pre-wrap;
    word-break: break-word;
}

.streaming-output-box .output-text:empty::before {
    content: '正在分析...';
    color: #64748b;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 进度�?*/
.progress-indicator {
    margin-top: 20px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

/* ===== 美化提示�?Toast ===== */
.custom-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    
}

.custom-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.custom-toast.success {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.15);
}

.custom-toast.error {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.15);
}

.custom-toast.warning {
    border-color: var(--warning);
    background: rgba(245, 158, 11, 0.15);
}

.custom-toast.info {
    border-color: var(--primary-light);
    background: rgba(59, 130, 246, 0.15);
}

.toast-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
}

.custom-toast.success .toast-icon {
    background: var(--success);
    color: white;
}

.custom-toast.error .toast-icon {
    background: var(--danger);
    color: white;
}

.custom-toast.warning .toast-icon {
    background: var(--warning);
    color: white;
}

.custom-toast.info .toast-icon {
    background: var(--primary-light);
    color: white;
}

.toast-message {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

/* ===== 个人中心页面 ===== */
.profile-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 20px;
    
}

.profile-avatar {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    color: white;
}

.profile-avatar svg {
    width: 32px;
    height: 32px;
}

.profile-info {
    flex: 1;
}

.profile-phone {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.profile-status {
    font-size: 13px;
    color: var(--success);
}

.quota-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 20px;
    
}

.quota-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.quota-display {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.quota-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-light);
}

.quota-total {
    font-size: 16px;
    color: var(--text-secondary);
}

.quota-progress {
    height: 8px;
    background: var(--bg-dark);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.quota-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.quota-tip {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    
}

.profile-btn:hover {
    background: var(--bg-glass);
    border-color: var(--primary-light);
}

.profile-btn svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.profile-btn.logout {
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.3);
}

.profile-btn.logout:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
}


