/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 深色主题颜色体系 */
    --primary-color: #3B82F6;
    --primary-dark: #2563EB;
    --primary-light: #1E3A5F;
    --secondary-color: #F59E0B;
    --secondary-dark: #D97706;
    --secondary-light: #451F03;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;

    /* 深色背景色 */
    --bg-primary: #0A0A0F;
    --bg-secondary: #12121A;
    --bg-card: #1A1A24;
    --bg-input: #252532;
    --bg-hover: #2A2A3A;

    /* 文字颜色 */
    --text-primary: #F5F5F7;
    --text-secondary: #A1A1AA;
    --text-tertiary: #71717A;
    --text-light: #52525B;

    /* 边框 */
    --border-color: #27272A;
    --border-highlight: #3F3F46;
    --border-radius: 12px;
    --border-radius-sm: 8px;

    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);

    /* 间距 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overscroll-behavior: none;
}

/* 自定义滚动条 - 移动端适配 */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 修复iOS输入框缩放问题 */
input, select, textarea {
    font-size: 16px;
}

/* 应用容器 */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: var(--bg-primary);
    position: relative;
}

/* 启动页 */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 50%, #0F172A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.splash-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
}

.splash-content {
    text-align: center;
    padding: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.logo-container {
    margin-bottom: var(--spacing-xl);
}

.logo-icon {
    font-size: 72px;
    margin-bottom: var(--spacing-md);
    animation: bounce 2s infinite;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.app-title {
    font-size: 36px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.app-slogan {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.disclaimer-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    backdrop-filter: blur(10px);
}

.disclaimer-box .disclaimer-icon {
    font-size: 20px;
    margin-bottom: var(--spacing-sm);
}

.disclaimer-box p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

/* 按钮样式 - App标准尺寸 */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #FFFFFF;
    border: none;
    padding: 16px 32px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.btn-primary:active {
    transform: translateY(0);
    opacity: 0.9;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 16px 32px;
    font-size: 17px;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-secondary:hover {
    background: var(--primary-light);
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 13px;
    cursor: pointer;
    padding: var(--spacing-sm);
    text-decoration: underline;
}

.btn-payment {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    font-size: 18px;
    padding: 16px;
}

.btn-icon {
    font-size: 18px;
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 主内容区 */
.main-content {
    padding-bottom: 140px;
}

/* 顶部状态栏 */
.header {
    background: var(--bg-secondary);
    padding: var(--spacing-md);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.header-icon {
    font-size: 20px;
}

.header-right {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    border: 2px solid var(--border-color);
    transition: all 0.2s ease;
}

.user-avatar:hover {
    border-color: var(--primary-color);
}

/* Tab内容区 */
.tab-content {
    display: none;
    padding: var(--spacing-md);
    padding-bottom: calc(var(--spacing-md) + 60px + env(safe-area-inset-bottom));
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

/* Hero区域 */
.hero-section {
    background: linear-gradient(135deg, #1E3A5F 0%, #0F172A 100%);
    border-radius: var(--border-radius);
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
    color: #FFFFFF;
    margin-bottom: var(--spacing-lg);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.hero-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.hero-headline {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    position: relative;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.hero-subheadline {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: var(--spacing-lg);
    position: relative;
    color: var(--text-secondary);
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
}

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

.stat-divider {
    width: 1px;
    height: 30px;
    background: rgba(255,255,255,0.1);
}

/* 功能区域 */
.feature-section {
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-sm);
    border-left: 3px solid var(--primary-color);
}

/* 报告列表 */
.report-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.empty-report {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-tertiary);
    font-size: 14px;
}

.report-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.report-item:active {
    background: var(--bg-hover);
}

/* 报告卡片样式 */
.report-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: var(--spacing-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.report-card:active {
    background: var(--bg-hover);
    transform: scale(0.98);
}

.report-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
}

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

.report-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary-color);
}

/* 已付费状态 - 已完成 */
.report-status.status-completed {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
}

/* 未付费状态 - 待评估 */
.report-status.status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
}

.report-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.report-info-row {
    display: flex;
    font-size: 13px;
}

.report-info-row .info-label {
    color: var(--text-secondary);
    min-width: 70px;
}

.report-info-row .info-value {
    color: var(--text-primary);
    flex: 1;
}

.empty-tip {
    text-align: center;
    padding: var(--spacing-lg);
    color: var(--text-tertiary);
    font-size: 14px;
}

.report-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.report-info {
    flex: 1;
}

.report-info h4 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.report-info p {
    font-size: 12px;
    color: var(--text-tertiary);
}

.report-price {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
}

/* 主功能卡片 */
.feature-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:active {
    transform: scale(0.98);
}

.primary-feature {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--primary-light) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.primary-feature:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.feature-info {
    flex: 1;
}

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

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

.feature-arrow {
    font-size: 20px;
    color: var(--text-tertiary);
}

/* 功能卡片网格 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.feature-card-small {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card-small:active {
    transform: scale(0.98);
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.feature-icon-small {
    font-size: 28px;
    margin-bottom: var(--spacing-xs);
}

.feature-card-small h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.feature-card-small p {
    font-size: 11px;
    color: var(--text-tertiary);
}

/* 热门话题 - 修复点击问题 */
.topics-section {
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.topics-section .topic-item {
    pointer-events: auto !important;
}

.topics-list {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.topic-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s ease;
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
}

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

.topic-item:active {
    background: var(--bg-hover);
}

.topic-tag {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    flex-shrink: 0;
}

.topic-title {
    font-size: 13px;
    color: var(--text-primary);
    flex: 1;
}

/* 底部提示 */
.bottom-tip {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    background: var(--secondary-light);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.tip-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.tip-text {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.tip-text strong {
    color: var(--secondary-color);
}

/* 付费诊断卡片 */
.premium-diagnosis-card {
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    border: 2px solid #F59E0B;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.premium-diagnosis-card:active {
    transform: scale(0.98);
}

.premium-diagnosis-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #F59E0B, #EF4444, #F59E0B);
}

.premium-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.premium-tag {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

.premium-price {
    color: #EF4444;
    font-size: 14px;
    font-weight: 700;
}

.premium-content {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.premium-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.premium-info {
    flex: 1;
}

.premium-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.premium-info p {
    font-size: 12px;
    color: #94A3B8;
}

.premium-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    border-radius: 10px;
    padding: 12px 16px;
}

.premium-btn-text {
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.premium-arrow {
    color: white;
    font-size: 18px;
}

/* 底部AI对话入口 */
.ai-chat-bar {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 380px;
    background: #1A1A2E;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.ai-chat-bar:hover {
    background: #16213E;
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.4);
    transform: translateX(-50%) translateY(-2px);
}

.ai-chat-bar:active {
    transform: translateX(-50%) scale(0.98);
}

.ai-chat-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-chat-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.ai-chat-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ai-chat-placeholder {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.3px;
}

.ai-chat-hint {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
}

.ai-chat-btn {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

/* AI对话弹窗 */
.ai-chat-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 100vh;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    margin: 0;
    z-index: 1000;
}

.ai-chat-modal .modal-header {
    padding-top: calc(var(--spacing-md) + env(safe-area-inset-top));
    flex-shrink: 0;
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    padding-bottom: env(safe-area-inset-bottom);
    min-height: 200px;
}

.quick-questions {
    display: flex;
    gap: 8px;
    padding: 8px 16px 12px;
    flex-wrap: wrap;
    background: #FAFAFA;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.quick-question {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    color: #6B7280;
    font-size: 12px;
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.quick-question:hover {
    background: #3B82F6;
    color: white;
    border-color: #3B82F6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.quick-question:active {
    transform: scale(0.97);
}

.ai-chat-input-area {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #FAFAFA;
    flex-shrink: 0;
}

.ai-input {
    flex: 1;
    background: #FFFFFF;
    border: none;
    border-radius: 24px;
    padding: 14px 20px;
    font-size: 15px;
    color: #1F2937;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.ai-input:focus {
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08), 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.ai-input::placeholder {
    color: #9CA3AF;
    font-size: 15px;
}

.ai-send-btn {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ai-send-btn:active {
    transform: scale(0.95);
    box-shadow: 0 1px 4px rgba(59, 130, 246, 0.3);
}

.ai-chat-promo {
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
    flex-shrink: 0;
}

.promo-content {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border: 1px solid #F59E0B;
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
}

.promo-icon {
    font-size: 18px;
}

.promo-text {
    flex: 1;
    color: #92400E;
    font-size: 13px;
    font-weight: 500;
}

.promo-arrow {
    color: #92400E;
    font-size: 16px;
}

/* 个人中心 */
.profile-header {
    background: linear-gradient(135deg, #1E3A5F 0%, #0F172A 100%);
    border-radius: var(--border-radius);
    padding: var(--spacing-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    color: #FFFFFF;
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--border-color);
    position: relative;
}

.profile-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.avatar {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    border: 2px solid rgba(255,255,255,0.2);
    overflow: hidden;
}

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

.profile-info {
    flex: 1;
}

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

.profile-info p {
    font-size: 13px;
    opacity: 0.7;
}

.edit-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
}

.profile-section {
    margin-bottom: var(--spacing-lg);
}

.order-empty {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: var(--spacing-xl);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

.order-empty p {
    color: var(--text-tertiary);
    margin-bottom: var(--spacing-md);
}

/* 会员卡片 */
.vip-section {
    margin-bottom: var(--spacing-lg);
}

.vip-card {
    background: linear-gradient(135deg, #1E1E2E 0%, #2D1F3D 50%, #1E1E2E 100%);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(147, 51, 234, 0.3);
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.2);
}

.vip-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.vip-icon {
    font-size: 32px;
}

.vip-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 2px;
}

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

.vip-btn {
    background: linear-gradient(135deg, #9333EA 0%, #7C3AED 100%);
    border: none;
    color: #FFFFFF;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

/* 菜单列表 */
.menu-list, .favorites-list {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.menu-item, .favorite-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s ease;
}

.menu-item:last-child, .favorite-item:last-child {
    border-bottom: none;
}

.menu-item:active, .favorite-item:active {
    background: var(--bg-hover);
}

.menu-icon, .favorite-icon {
    font-size: 18px;
}

.menu-item span:nth-child(2), .favorite-item span:nth-child(2) {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}

.menu-arrow {
    color: var(--text-tertiary);
    font-size: 16px;
}

/* 登录提示 */
.login-prompt {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: var(--spacing-xl);
    text-align: center;
    border: 1px solid var(--border-color);
}

.prompt-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-md);
}

.login-prompt h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.prompt-list {
    list-style: none;
    text-align: left;
    margin-bottom: var(--spacing-lg);
    padding: 0 var(--spacing-md);
}

.prompt-list li {
    padding: var(--spacing-xs) 0;
    font-size: 13px;
    color: var(--text-secondary);
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    max-width: 480px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: var(--border-radius-sm);
}

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

.nav-icon {
    font-size: 20px;
}

.nav-label {
    font-size: 11px;
    color: var(--text-tertiary);
}

.nav-item.active .nav-label {
    color: var(--primary-color);
    font-weight: 500;
}

/* AI Tab special styling */
.nav-item-ai {
    position: relative;
}

.nav-item-ai .nav-icon-ai {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    margin-bottom: 2px;
}

.nav-item-ai .nav-label-ai {
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.nav-item-ai.active .nav-label-ai {
    color: #667eea;
}

.nav-item-ai.active .nav-icon-ai {
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.6);
}

/* Chat Tab Content */
#chat-tab {
    display: none;
    height: calc(100vh - 60px - env(safe-area-inset-bottom));
}

#chat-tab.active {
    display: block;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-primary);
    padding-top: 56px;
    padding-bottom: calc(140px + env(safe-area-inset-bottom));
}

.chat-header {
    padding: var(--spacing-lg);
    padding-top: calc(var(--spacing-lg) + env(safe-area-inset-top));
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    flex-shrink: 0;
}

.chat-header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    font-size: 18px;
    font-weight: 600;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.chat-header-subtitle {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 4px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.chat-message {
    display: flex;
    gap: var(--spacing-sm);
    max-width: 85%;
}

.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-message .message-avatar {
    width: 32px;
    height: 32px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.chat-message.user .message-avatar {
    background: var(--primary-light);
}

.chat-message .message-content {
    background: var(--bg-card);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.chat-message.user .message-content {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.chat-message .message-content p {
    margin-bottom: var(--spacing-sm);
}

.chat-message .message-content p:last-child {
    margin-bottom: 0;
}

.chat-message .message-content ul {
    margin: var(--spacing-sm) 0;
    padding-left: 20px;
}

.chat-message .message-content li {
    margin-bottom: 4px;
}

/* 付费服务引导卡片 */
.paid-service-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    border: 1px solid var(--secondary-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.paid-service-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
}

.paid-icon {
    font-size: 20px;
}

.paid-service-features {
    margin: var(--spacing-md) 0;
}

.paid-feature {
    padding: var(--spacing-xs) 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.paid-service-btn {
    margin-top: var(--spacing-md);
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.paid-service-note {
    text-align: center;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: var(--spacing-sm);
}

/* 简洁聊天输入框 - 固定底部 */
.chat-input-wrapper {
    position: fixed;
    bottom: calc(70px + env(safe-area-inset-bottom));
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    z-index: 150;
    box-sizing: border-box;
}

.chat-input-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 4px 4px 4px 16px;
}

.chat-input-container input {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 15px;
    color: var(--text-primary);
    padding: 8px 0;
}

.chat-input-container input:focus {
    outline: none;
}

.chat-input-container input::placeholder {
    color: var(--text-tertiary);
}

.chat-send-btn {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.chat-send-btn:active {
    transform: scale(0.9);
}

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

/* 简洁Header */
.chat-header-simple {
    padding: 12px 16px;
    padding-top: calc(12px + env(safe-area-inset-top));
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    z-index: 50;
}

.chat-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

.chat-avatar-small {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* 弹窗 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(5px);
}

/* 诊断弹窗特殊样式 - 全屏无遮罩 */
#diagnosis-modal {
    align-items: center;
    justify-content: center;
    background: var(--bg-primary) !important;
    backdrop-filter: none;
}

.modal-content {
    background: var(--bg-card);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    max-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    overflow-y: auto;
    overflow-x: hidden;
    animation: slideUp 0.3s ease;
    border: 1px solid var(--border-color);
    border-bottom: none;
    -webkit-overflow-scrolling: touch;
}

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

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

.modal-body {
    padding: var(--spacing-md) var(--spacing-lg);
    min-height: 100px;
}

.modal-body h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.close-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-input);
    border-radius: 50%;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 微信授权弹窗 */
.wechat-auth-modal {
    height: 100vh;
    max-height: 100vh;
    margin: auto;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
}

.wechat-auth-modal .modal-content {
    border-radius: 16px;
    margin: auto;
    width: 100%;
    max-width: 360px;
    max-height: 90vh;
    overflow-y: auto;
}

.wechat-auth-header {
    text-align: center;
    padding: 24px 20px 16px;
    border-bottom: 1px solid var(--border-color);
}

.wechat-auth-logo {
    margin-bottom: 12px;
}

.wechat-icon {
    width: 64px;
    height: 64px;
}

.wechat-auth-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.wechat-auth-subtitle {
    font-size: 13px;
    color: var(--text-tertiary);
}

.wechat-auth-content {
    padding: 20px;
    flex: 1;
}

.wechat-auth-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--bg-input);
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
}

.auth-item-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.auth-item-info {
    flex: 1;
}

.auth-item-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.auth-item-desc {
    font-size: 12px;
    color: var(--text-tertiary);
}

.wechat-phone-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: var(--bg-input);
    border-radius: 12px;
    margin-top: 16px;
    border: 1px solid var(--border-color);
}

.phone-label {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.phone-number {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.wechat-tag {
    font-size: 10px;
    background: #07C160;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
}

.wechat-auth-footer {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.btn-wechat-reject,
.btn-wechat-allow {
    flex: 1;
    padding: 16px 24px;
    font-size: 17px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 50px;
    min-height: 52px;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-wechat-reject {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-wechat-reject:active {
    background: var(--bg-hover);
    opacity: 0.8;
}

.btn-wechat-allow {
    background: #07C160;
    color: white;
}

.btn-wechat-allow:active {
    background: #06AD56;
    opacity: 0.9;
}

/* 登录/注册弹窗 */
.auth-modal {
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.auth-header {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-lg);
    position: relative;
}

.auth-header .close-btn {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
}

.auth-logo {
    font-size: 48px;
    margin-bottom: var(--spacing-sm);
}

.auth-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

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

.auth-form {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
}

.form-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.input-group {
    margin-bottom: var(--spacing-md);
}

.auth-input {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 15px;
    background: var(--bg-input);
    color: var(--text-primary);
    transition: border-color 0.2s ease;
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.auth-input::placeholder {
    color: var(--text-light);
}

.code-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    cursor: pointer;
    margin-left: var(--spacing-sm);
}

.auth-switch {
    text-align: center;
    margin-top: var(--spacing-md);
    font-size: 13px;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--primary-color);
    text-decoration: none;
    margin-left: var(--spacing-xs);
}

.auth-divider {
    display: flex;
    align-items: center;
    padding: var(--spacing-lg);
    color: var(--text-tertiary);
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    padding: 0 var(--spacing-md);
}

.auth-social {
    padding: 0 var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 14px;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: var(--bg-input);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.social-btn.wechat {
    background: #07C160;
    border-color: #07C160;
    color: #fff;
}

.social-icon {
    font-size: 18px;
}

.auth-agreement {
    text-align: center;
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 11px;
    color: var(--text-tertiary);
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    cursor: pointer;
}

.checkbox-label input {
    width: 14px;
    height: 14px;
}

.auth-agreement a {
    color: var(--primary-color);
    text-decoration: none;
}

/* 用户菜单弹窗 */
.user-menu-modal {
    max-height: 50vh;
    border-radius: var(--border-radius);
    margin: auto;
    margin-bottom: 20px;
}

.user-menu-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.user-menu-avatar {
    width: 50px;
    height: 50px;
    background: var(--bg-input);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.user-menu-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.user-menu-info p {
    font-size: 12px;
    color: var(--text-tertiary);
}

.user-menu-list {
    padding: var(--spacing-sm) 0;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    cursor: pointer;
    transition: background 0.2s ease;
}

.user-menu-item:active {
    background: var(--bg-hover);
}

.user-menu-item span:first-child {
    font-size: 18px;
}

.user-menu-item span:nth-child(2) {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}

.close-menu-btn {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--bg-input);
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    border-top: 1px solid var(--border-color);
}

/* 编辑资料弹窗 */
.edit-profile-modal {
    max-height: 85vh;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    margin: auto;
    margin-bottom: 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

.profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--spacing-lg);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: var(--bg-input);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

.change-avatar-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 13px;
    cursor: pointer;
}

.edit-profile-modal .form-group {
    margin-bottom: var(--spacing-md);
}

.edit-profile-modal .form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.edit-profile-modal .form-group input,
.edit-profile-modal .form-group select {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    color: var(--text-primary);
}

.edit-profile-modal .form-group input:focus,
.edit-profile-modal .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.edit-profile-modal .form-group input[readonly] {
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
}

/* 联系客服弹窗 */
.customer-service-modal {
    max-height: 80vh;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    margin: auto;
    margin-bottom: 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

.customer-service-intro {
    background: var(--bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-lg);
}

.customer-service-intro p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.customer-service-modal .form-group {
    margin-bottom: var(--spacing-md);
    position: relative;
}

.customer-service-modal .form-group label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.customer-service-modal .form-group input,
.customer-service-modal .form-group select,
.customer-service-modal .form-group textarea {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    color: var(--text-primary);
    font-family: inherit;
}

.customer-service-modal .form-group textarea {
    resize: none;
}

.customer-service-modal .form-group input:focus,
.customer-service-modal .form-group select:focus,
.customer-service-modal .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.char-count {
    position: absolute;
    bottom: var(--spacing-sm);
    right: var(--spacing-sm);
    font-size: 11px;
    color: var(--text-tertiary);
}

/* 诊断流程弹窗 - 参考计算器样式 */
.diagnosis-modal {
    max-height: 85vh;
    overflow-y: auto;
    align-items: center;
    justify-content: flex-end;
    background: rgba(0, 0, 0, 0.5) !important;
}

.diagnosis-modal .modal-content {
    pointer-events: auto;
    -webkit-pointer-events: auto;
    width: 100%;
    max-width: 480px;
    border-radius: 24px 24px 0 0;
    max-height: 80vh;
    overflow-y: auto;
    margin: auto;
    margin-bottom: 0;
}

.diagnosis-progress {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-secondary);
}

.progress-bar {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: var(--spacing-xs);
}

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

.progress-text {
    font-size: 12px;
    color: var(--text-tertiary);
    text-align: center;
}

.diagnosis-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md);
    background: var(--bg-secondary);
}

.chat-message {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.chat-message.bot {
    justify-content: flex-start;
}

.chat-message.user {
    justify-content: flex-end;
}

.message-avatar {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.message-content {
    max-width: 75%;
    background: var(--bg-card);
    padding: var(--spacing-md);
    border-radius: 16px;
    border-top-left-radius: 4px;
    border: 1px solid var(--border-color);
}

.message-content p {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
}

.message-tip {
    color: var(--primary-color) !important;
    font-weight: 500;
    margin-top: var(--spacing-xs);
}

.input-section {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

.input-step {
    display: none;
}

.input-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.input-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.date-input, .salary-input {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 15px;
    background: var(--bg-input);
    color: var(--text-primary);
    transition: border-color 0.2s ease;
}

.date-input:focus, .salary-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.date-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

/* 自定义日期选择器 - 上下滑动样式 */
.date-picker {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.date-select {
    flex: 1;
    padding: 12px 8px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    background: var(--bg-input);
    color: var(--text-primary);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px;
    text-align: center;
    text-align-last: center;
}

.date-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.date-select option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 8px;
}

.salary-input-wrapper {
    position: relative;
}

.input-hint {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: var(--spacing-xs);
}

/* 选项列表 */
.option-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.option-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-input);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.option-item:active, .option-item.selected {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.option-icon {
    font-size: 20px;
}

.option-item span:nth-child(2) {
    font-size: 14px;
    color: var(--text-primary);
}

/* 预览区域 */
.preview-section {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--secondary-light);
    border-top: 1px solid var(--border-color);
}

.preview-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.preview-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.preview-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.preview-item {
    text-align: center;
}

.preview-label {
    display: block;
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: 2px;
}

.preview-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.preview-value.highlight {
    color: var(--secondary-color);
}

.preview-tip {
    font-size: 11px;
    color: var(--text-tertiary);
    text-align: center;
    padding-top: var(--spacing-sm);
    border-top: 1px dashed var(--border-color);
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

.action-buttons button {
    flex: 1;
}

/* 支付弹窗 */
.payment-modal {
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: center;
}

/* 提高支付弹窗层级，防止被其他弹窗覆盖 */
#payment-modal {
    z-index: 1500;
}

.payment-header {
    margin-bottom: var(--spacing-lg);
}

.payment-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-md);
}

.payment-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.payment-header p {
    font-size: 14px;
    color: #9CA3AF;
}

.payment-header .price {
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary-color);
}

.payment-benefits {
    background: #1A1A2E;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: var(--spacing-lg);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: 12px 0;
    font-size: 14px;
    color: #E5E7EB;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.benefit-icon {
    font-size: 16px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

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

.payment-demo-notice {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    background: #FEF3C7;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: var(--spacing-lg);
    text-align: left;
    border: 1px solid #FCD34D;
}

.notice-icon {
    font-size: 16px;
    flex-shrink: 0;
}

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

.btn-payment {
    margin-bottom: var(--spacing-md);
}

/* 报告弹窗 */
.report-modal {
    height: 90vh;
    display: flex;
    flex-direction: column;
}

.report-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-lg);
}

.report-section {
    margin-bottom: var(--spacing-lg);
}

.report-section h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.case-info {
    background: var(--bg-input);
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-xs) 0;
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
}

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

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

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

/* 赔偿表格 */
.compensation-table {
    background: var(--bg-input);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.comp-row {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

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

.comp-row.highlight {
    background: var(--secondary-light);
}

.comp-type {
    color: var(--text-secondary);
}

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

.comp-row.highlight .comp-value {
    color: var(--secondary-color);
    font-size: 16px;
}

.report-note {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: var(--spacing-sm);
}

/* 风险评估 */
.risk-assessment {
    background: var(--bg-input);
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
}

.risk-level {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.risk-level.high {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
}

.risk-level.medium {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
}

.risk-level.low {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

.risk-assessment p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 风险描述颜色 */
.risk-description.risk-high {
    color: var(--danger-color);
    font-weight: 500;
}

.risk-description.risk-medium {
    color: var(--warning-color);
}

.risk-description.risk-low {
    color: var(--success-color);
}

/* 违法解除警告样式 */
.illegal-termination-card {
    background: linear-gradient(135deg, #FFF1F0 0%, #FFEBEB 100%);
    border: 1px solid #FFCCC7;
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
}

.illegal-badge {
    display: inline-block;
    background: #F5222D;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.illegal-reason {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 16px;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    border-left: 4px solid #F5222D;
}

.legal-references {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-ref-item {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #E8E8E8;
}

.legal-ref-article {
    font-size: 13px;
    font-weight: 600;
    color: #1890FF;
    margin-bottom: 6px;
}

.legal-ref-content {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

/* 违法终止高亮样式 */
.comp-row.highlight {
    background: linear-gradient(135deg, #FFF1F0 0%, #FFEBEB 100%);
    border: 2px solid #F5222D;
}

.comp-row.highlight .comp-type {
    color: #F5222D;
}

.comp-row.highlight .comp-value {
    color: #F5222D;
    font-weight: 700;
    font-size: 18px;
}

.report-section.illegal-termination {
    background: linear-gradient(135deg, #FFF1F0 0%, #FFEBEB 100%);
    border-radius: 12px;
    padding: 16px;
    margin: 12px 0;
    border: 1px solid #FFCCC7;
}

/* 证据清单 */
.evidence-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.evidence-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--bg-input);
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--primary-color);
}

.evidence-check {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
}

.evidence-content h4 {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

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

/* 话术建议 */
.script-box {
    background: var(--primary-light);
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-md);
    border-left: 3px solid var(--primary-color);
}

.script-scenario {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.script-content {
    background: var(--bg-card);
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-md);
}

.script-content p {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.8;
}

.script-content strong {
    color: var(--primary-color);
}

/* 时间轴 */
.timeline {
    position: relative;
    padding-left: var(--spacing-lg);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-bottom: var(--spacing-md);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 4px;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
}

.timeline-day {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.timeline-content {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.report-footer {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.disclaimer {
    background: var(--bg-input);
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-md);
    font-size: 11px;
    color: var(--text-tertiary);
    line-height: 1.6;
}

.report-actions {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.report-actions button {
    flex: 1;
}

.report-actions button.full-width {
    flex: 1;
}

/* 隐私提示 */
.privacy-notice {
    text-align: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 12px;
    color: var(--text-tertiary);
    background: var(--bg-secondary);
}

/* 计算器 */
.calculator-modal {
    padding: var(--spacing-lg);
}

.calculator-content {
    padding: var(--spacing-md) 0;
}

.calc-input-group {
    margin-bottom: var(--spacing-md);
}

.calc-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.calc-input-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 15px;
    background: white;
    color: #333333;
    height: 44px;
    line-height: 20px;
    overflow: visible;
    text-overflow: visible;
    white-space: normal;
}

/* 下拉选项样式 - 确保选项文字为黑色 */
.calc-input-group select option {
    background: white;
    color: #333333;
    padding: 10px;
}

.calc-result {
    background: var(--primary-light);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.calc-result h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

/* 计算结果弹窗样式 */
.calc-result-modal {
    max-width: 400px;
    width: 90%;
}

.calc-result-content {
    padding: var(--spacing-md) 0;
}

.result-summary {
    display: flex;
    justify-content: space-around;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--bg-input);
    border-radius: var(--border-radius-sm);
}

.result-summary .result-item {
    text-align: center;
}

.result-summary .result-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.result-summary .result-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.result-detail {
    background: var(--bg-card);
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-md);
}

.result-row {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

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

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

.result-row .result-amount {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.result-row.highlight {
    background: var(--primary-light);
    margin: 0 calc(-1 * var(--spacing-md));
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-sm);
}

.result-row.highlight .result-type {
    color: var(--primary-color);
    font-weight: 500;
}

.result-row.highlight .result-amount {
    color: var(--primary-color);
    font-size: 16px;
}

.result-note {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: var(--spacing-md);
}

.modal-footer {
    padding: var(--spacing-md) 0;
    text-align: center;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    width: 100%;
    box-sizing: border-box;
}

.result-item {
    text-align: center;
    padding: var(--spacing-md);
    background: var(--bg-card);
    border-radius: var(--border-radius-sm);
    box-sizing: border-box;
    overflow: hidden;
}

.result-label {
    display: block;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.result-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.result-value.highlight {
    color: var(--secondary-color);
    font-size: 18px;
}

.calc-note {
    font-size: 11px;
    color: var(--text-tertiary);
    text-align: center;
    margin-top: var(--spacing-md);
}

/* 平均工资计算器样式 */
.salary-option {
    margin-top: 8px;
}

.salary-option label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

.salary-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

/* 薪资计算结果样式 */
.salary-summary {
    background: linear-gradient(135deg, var(--primary-light) 0%, #E8F4FD 100%);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.salary-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.salary-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.salary-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.salary-unit {
    font-size: 14px;
    color: var(--text-secondary);
    margin-left: 4px;
}

.salary-note {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.salary-breakdown {
    background: var(--bg-card);
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.salary-breakdown h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-xs) 0;
    font-size: 13px;
}

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

.breakdown-value {
    color: var(--text-primary);
    font-weight: 500;
}

.salary-tip {
    background: var(--bg-input);
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.salary-tip h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.salary-tip p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: var(--spacing-xs);
}

.salary-cta {
    text-align: center;
    padding: var(--spacing-md) 0;
}

.cta-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

/* 知识库 - 改为全屏页面 */
.knowledge-modal {
    height: 100vh;
    max-height: 100vh;
    max-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    border-radius: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.knowledge-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md);
    padding-bottom: calc(var(--spacing-lg) + 60px + env(safe-area-inset-bottom));
    -webkit-overflow-scrolling: touch;
}

.knowledge-item {
    background: var(--bg-card);
    border-radius: var(--border-radius-sm);
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.knowledge-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    cursor: pointer;
    transition: background 0.2s ease;
}

.knowledge-title:active {
    background: var(--bg-hover);
}

.knowledge-icon {
    font-size: 16px;
}

.knowledge-title span:nth-child(2) {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.knowledge-arrow {
    font-size: 12px;
    color: var(--text-tertiary);
    transition: transform 0.3s ease;
}

.knowledge-item.expanded .knowledge-arrow {
    transform: rotate(180deg);
}

.knowledge-answer {
    display: none !important;
    padding: 0 var(--spacing-md) var(--spacing-md);
    border-top: 1px solid var(--border-color);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.knowledge-item.expanded .knowledge-answer {
    display: block !important;
    max-height: 500px;
    opacity: 1;
    animation: fadeIn 0.3s ease;
}

.knowledge-answer p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-top: var(--spacing-sm);
}

.knowledge-answer p:first-child {
    margin-top: var(--spacing-md);
}

.knowledge-answer strong {
    color: var(--danger-color);
}

/* 企业话术拆解 */
.tactics-section {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px dashed var(--border-color);
}

.tactics-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.tactics-icon {
    font-size: 20px;
}

.tactics-header span:nth-child(2) {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.tactics-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.tactics-item {
    background: var(--card-background);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.tactics-question {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    cursor: pointer;
    background: linear-gradient(135deg, #FFF5F5 0%, #FEF3C7 100%);
}

.tactics-tag {
    background: var(--danger-color);
    color: #FFFFFF;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: var(--spacing-sm);
    flex-shrink: 0;
}

.tactics-question span:nth-child(2) {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
    font-style: italic;
}

.tactics-arrow {
    color: var(--text-secondary);
    font-size: 12px;
    transition: transform 0.3s ease;
}

.tactics-answer {
    display: none;
    padding: var(--spacing-md);
    background: #FFFBEB;
    border-top: 1px solid var(--border-color);
}

.tactics-item.expanded .tactics-answer {
    display: block;
    animation: fadeIn 0.3s ease;
}

.tactics-item.expanded .tactics-arrow {
    transform: rotate(180deg);
}

.truth-section,
.counter-section {
    margin-bottom: var(--spacing-md);
}

.truth-section:last-child,
.counter-section:last-child {
    margin-bottom: 0;
}

.truth-label {
    display: inline-block;
    background: #FEE2E2;
    color: #DC2626;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: var(--spacing-xs);
}

.counter-label {
    display: inline-block;
    background: #D1FAE5;
    color: #059669;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: var(--spacing-xs);
}

.truth-section span:not(.truth-label),
.counter-section span:not(.counter-label) {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: block;
}

/* Toast提示 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: #FFFFFF;
    padding: 16px 24px;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    z-index: 2000;
    animation: toastShow 0.3s ease;
    border: 1px solid var(--border-color);
}

@keyframes toastShow {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* 分享弹窗 */
.share-modal {
    max-height: 85vh;
    border-radius: 16px 16px 0 0;
    margin: auto;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.share-content {
    padding: var(--spacing-lg);
    overflow-y: auto;
    flex: 1;
}

.privacy-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-sm);
}

.privacy-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.privacy-icon {
    font-size: 18px;
}

.privacy-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

/* 开关样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* 分享预览 */
.share-preview {
    margin: var(--spacing-lg) 0;
    display: flex;
    justify-content: center;
}

.share-preview-card {
    width: 200px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-logo {
    font-size: 24px;
}

.preview-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.preview-body {
    padding: var(--spacing-md);
}

.preview-summary {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.preview-info {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
}

.preview-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.preview-footer {
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
}

.share-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.share-actions button {
    flex: 1;
}

/* 隐藏的报告图片容器 */
.image-container {
    position: fixed;
    left: -9999px;
    top: 0;
    width: 375px;
    background: #fff;
    z-index: -1;
}

.report-image {
    width: 375px;
    min-height: 600px;
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
    padding: 20px;
    box-sizing: border-box;
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
}

.report-image-header {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    margin-bottom: 20px;
}

.report-image-logo {
    font-size: 40px;
    margin-bottom: 8px;
}

.report-image-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.report-image-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.report-image-body {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 16px;
}

.report-image-section {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.report-image-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.report-image-section .section-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.section-content {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

.image-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.image-info-label {
    color: #999;
}

.image-info-value {
    color: #333;
    font-weight: 500;
}

/* 敏感信息模糊处理 */
.blur-sensitive {
    filter: blur(6px);
    transition: filter 0.3s ease;
    user-select: none;
}

.blur-sensitive.revealed {
    filter: blur(0);
}

/* 赔偿金额框 */
.compensation-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
}

.compensation-box .comp-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 12px;
}

.compensation-box .comp-row.highlight {
    color: #e74c3c;
    font-weight: 600;
}

.compensation-box .comp-value {
    font-weight: 600;
    color: #1a1a2e;
}

.compensation-box .comp-row.highlight .comp-value {
    color: #e74c3c;
}

/* 风险框 */
.risk-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.risk-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    background: #fff3cd;
    color: #856404;
    width: fit-content;
}

.risk-badge.low {
    background: #d4edda;
    color: #155724;
}

.risk-badge.medium {
    background: #fff3cd;
    color: #856404;
}

.risk-badge.high {
    background: #f8d7da;
    color: #721c24;
}

/* 核心建议 */
#img-tips {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#img-tips li {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    padding-left: 16px;
    position: relative;
}

#img-tips li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #1a1a2e;
}

/* 报告底部 */
.report-image-footer {
    text-align: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
}

.report-image-footer p {
    font-size: 10px;
    color: #999;
    margin: 0 0 8px 0;
}

.report-qrcode {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #ddd;
}

.qr-placeholder {
    font-size: 32px;
    margin-bottom: 4px;
}

.report-qrcode span {
    font-size: 10px;
    color: #999;
}

/* 话题列表页 */
.page-content {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 50px;
    background: var(--bg-primary);
    z-index: 100;
    overflow-y: auto;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 10;
}

.page-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.back-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 话题标签筛选 */
.topic-tags {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    overflow-x: auto;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.topic-tag-btn {
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 12px;
    white-space: nowrap;
    background: var(--bg-input);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.topic-tag-btn.active {
    background: var(--primary-color);
    color: #fff;
}

/* 话题列表 */
.topic-list {
    padding: var(--spacing-md);
}

.topic-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    cursor: pointer;
    transition: transform 0.2s;
}

.topic-card:active {
    transform: scale(0.98);
}

.topic-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.topic-card-tag {
    padding: 2px 8px;
    background: rgba(24, 144, 255, 0.1);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.topic-card-heat {
    font-size: 11px;
    color: var(--text-secondary);
}

.topic-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.topic-card-summary {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* 话题详情弹窗 */
.topic-detail-modal {
    max-height: 85vh;
    border-radius: 16px 16px 0 0;
    margin: auto;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.topic-detail-content {
    padding: var(--spacing-lg);
    overflow-y: auto;
    flex: 1;
}

.topic-detail-body {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

.topic-detail-body p {
    margin-bottom: var(--spacing-md);
}

.topic-detail-body ul {
    padding-left: 20px;
    margin-bottom: var(--spacing-md);
}

.topic-detail-body li {
    margin-bottom: var(--spacing-sm);
}

/* 案例卡片样式 */
.topic-cases {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #E8E8E8;
}

.topic-cases h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.case-card {
    background: linear-gradient(135deg, #F5F7FA 0%, #FFFFFF 100%);
    border: 1px solid #E8E8E8;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.case-platform {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.case-result {
    font-size: 12px;
    font-weight: 600;
    color: #07C160;
    background: rgba(7, 193, 96, 0.1);
    padding: 3px 10px;
    border-radius: 12px;
}

.case-summary {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

/* 相关案例 */
.topic-cases {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

.topic-cases h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.case-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.case-item {
    background: var(--bg-input);
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-md);
    border-left: 3px solid var(--primary-color);
}

.case-item h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.case-item p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.topic-action {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
}

/* 话术库/证据库弹窗 - 改为全屏页面 */
.library-modal {
    height: 100vh;
    max-height: 100vh;
    max-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    border-radius: 0;
    margin: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.library-content {
    padding: var(--spacing-md) var(--spacing-lg);
    padding-bottom: calc(var(--spacing-lg) + 60px + env(safe-area-inset-bottom));
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.library-item {
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--border-color);
}

.library-item.free {
    border-color: var(--primary-color);
    background: rgba(24, 144, 255, 0.05);
}

.library-item-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.library-item-icon {
    font-size: 16px;
}

.library-item-title {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.library-item-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
}

.library-item-badge.free {
    background: var(--primary-color);
    color: #fff;
}

.library-item-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 付费引导 */
.paywall-container {
    position: relative;
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

.paywall-blur {
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--bg-card));
    pointer-events: none;
}

.paywall-content {
    text-align: center;
}

.paywall-header {
    margin-bottom: var(--spacing-md);
}

.paywall-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    color: #fff;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

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

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

.paywall-price {
    margin: var(--spacing-md) 0;
}

.price-original {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: line-through;
    margin-right: var(--spacing-sm);
}

.price-current {
    font-size: 24px;
    font-weight: 700;
    color: #ff4d4f;
}

.paywall-btn {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
    border: none;
    margin: var(--spacing-md) 0;
}

.paywall-hint {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.paywall-upgrade {
    font-size: 11px;
    color: var(--text-secondary);
    padding: var(--spacing-sm);
    background: var(--bg-input);
    border-radius: var(--border-radius-sm);
}

/* Section header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.section-more {
    font-size: 12px;
    color: var(--primary-color);
}

/* 企业话术拆解卡片 */
.battle-card {
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    overflow: hidden;
}

.battle-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.battle-icon {
    font-size: 18px;
}

.battle-title {
    font-size: 14px;
    font-weight: 600;
}

.battle-content {
    padding: var(--spacing-md);
}

.hr-says {
    background: #fee2e2;
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.hr-label {
    font-size: 12px;
    font-weight: 600;
    color: #dc2626;
}

.hr-text {
    font-size: 14px;
    color: #7f1d1d;
    margin-top: 4px;
    font-style: italic;
}

.truth-box {
    background: #fef3c7;
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border-left: 3px solid #f59e0b;
}

.truth-label {
    font-size: 12px;
    font-weight: 600;
    color: #92400e;
}

.truth-text {
    font-size: 13px;
    color: #78350f;
    margin-top: 4px;
    line-height: 1.5;
}

.your-response {
    background: #d1fae5;
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-md);
    border-left: 3px solid #10b981;
}

.response-label {
    font-size: 12px;
    font-weight: 600;
    color: #065f46;
}

.response-text {
    font-size: 14px;
    color: #064e3b;
    margin-top: 4px;
    line-height: 1.5;
}

/* 计算器步骤 */
.calc-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.calc-step {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    opacity: 0.5;
}

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

.calc-step .step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-input);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.calc-step.active .step-num {
    background: var(--primary-color);
    color: #fff;
}

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

.calc-step.active .step-label {
    color: var(--text-primary);
    font-weight: 500;
}

.calc-step-line {
    width: 40px;
    height: 2px;
    background: var(--border-color);
    margin: 0 var(--spacing-sm);
}

.calc-section {
    padding: var(--spacing-md);
}

.calc-section-header {
    margin-bottom: var(--spacing-md);
}

.calc-section-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.calc-tip {
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg-input);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius-sm);
}

.calc-hint {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* 平均工资结果显示 */
.avg-salary-result {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
    color: #fff;
}

.avg-salary-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

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

.avg-value {
    font-size: 28px;
    font-weight: 700;
}

.avg-unit {
    font-size: 14px;
    opacity: 0.9;
}

.avg-note {
    margin-top: var(--spacing-sm);
    text-align: center;
}

.avg-warning {
    font-size: 12px;
    color: #fef3c7;
    font-weight: 500;
}

.avg-note-detail {
    font-size: 10px;
    opacity: 0.8;
    margin-top: 4px;
}

.calc-next-btn {
    width: 100%;
    margin-top: var(--spacing-md);
}

/* 计算结果网格 */
.result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
}

.result-item {
    background: var(--bg-input);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-sm);
    text-align: center;
}

.result-item.full-width {
    grid-column: span 2;
}

.result-item .result-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.result-item .result-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.result-item .result-value.highlight {
    color: #e74c3c;
    font-size: 18px;
}

.calc-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.calc-actions button {
    flex: 1;
}

/* ==================== AI对话（小裁神）样式 ==================== */

.ai-chat-modal {
    height: 100vh;
    max-height: 100vh;
    max-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    border-radius: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

.ai-chat-modal .modal-header {
    flex-shrink: 0;
}

.ai-chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: var(--spacing-md);
}

.ai-welcome {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--spacing-md);
}

.ai-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), #5B5BFF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.ai-message {
    flex: 1;
}

.ai-message p {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.ai-message ul {
    margin: var(--spacing-sm) 0;
    padding-left: var(--spacing-md);
}

.ai-message li {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.ai-hint {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--bg-input);
    border-radius: var(--border-radius-sm);
}

.quick-questions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.quick-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    font-size: 13px;
    color: var(--text-primary);
    white-space: nowrap;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
}

.chat-message {
    display: flex;
    gap: var(--spacing-sm);
    max-width: 85%;
}

.chat-message.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-message.ai-message {
    align-self: flex-start;
}

.message-avatar {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary-color), #5B5BFF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.message-content {
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

.user-message .message-content {
    background: var(--primary-color);
    color: white;
    border-bottom-right-radius: 4px;
}

.ai-message .message-content {
    background: var(--bg-card);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.chat-input-area {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    flex-shrink: 0;
}

.chat-input {
    flex: 1;
    padding: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 14px;
}

.chat-input::placeholder {
    color: var(--text-tertiary);
}

.chat-send-btn {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 14px;
    font-weight: 600;
}

.ai-paywall {
    padding: var(--spacing-lg);
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.ai-paywall .paywall-header {
    margin-bottom: var(--spacing-md);
}

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

.ai-paywall p {
    font-size: 14px;
    color: #e74c3c;
    font-weight: 600;
}

.ai-paywall button {
    width: 100%;
    margin-top: var(--spacing-md);
}

/* ==================== 话术库案例展示样式 ==================== */

/* 话术库锁定图标 */
.library-locked {
    font-size: 18px;
    opacity: 0.6;
}

/* 案例卡片容器 */
.script-card {
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

/* 基础策略卡片 */
.script-card-basic {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

/* 深度场景卡片 - 紫色渐变标题 */
.script-card-deep {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.script-card-deep .script-card-header {
    margin-bottom: var(--spacing-md);
}

.script-card-deep h3 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.script-card-deep .script-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.script-category-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.script-card-basic .script-category-tag {
    background: var(--bg-input);
    color: var(--text-secondary);
}

.script-card-deep .script-category-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* 案例各部分样式 */
.script-section {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
}

.script-section-header {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.script-section-content {
    font-size: 14px;
    line-height: 1.6;
}

/* HR话术 - 红色块 */
.script-card-deep .hr-say {
    background: rgba(231, 76, 60, 0.15);
    border-left: 3px solid #e74c3c;
}

.script-card-deep .hr-say .script-section-header {
    color: #e74c3c;
}

.script-card-deep .hr-say .script-section-content {
    color: var(--text-primary);
    font-style: italic;
}

/* 真相解析 - 黄色块 */
.script-card-deep .truth-say {
    background: rgba(241, 196, 15, 0.15);
    border-left: 3px solid #f1c40f;
}

.script-card-deep .truth-say .script-section-header {
    color: #f39c12;
}

.script-card-deep .truth-say .script-section-content {
    color: var(--text-primary);
}

/* 建议回答 - 绿色块 */
.script-card-deep .answer-say {
    background: rgba(46, 204, 113, 0.15);
    border-left: 3px solid #2ecc71;
}

.script-card-deep .answer-say .script-section-header {
    color: #2ecc71;
}

.script-card-deep .answer-say .script-section-content {
    color: var(--text-primary);
    font-weight: 500;
}

/* 基础策略样式 */
.script-card-basic .basic-say {
    background: var(--bg-input);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
}

.script-card-basic .basic-say .script-section-header {
    color: var(--primary-color);
}

/* ==================== 平均工资计算器样式 ==================== */

/* 计算器弹窗 */
.calculator-modal {
    max-height: 90vh;
    overflow-y: auto;
}

.calculator-modal .modal-content {
    pointer-events: auto;
    -webkit-pointer-events: auto;
}

.calculator-content {
    padding: var(--spacing-md);
}

/* 计算器步骤指示器 */
.calc-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.calc-step {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 20px;
    background: var(--bg-input);
    color: var(--text-secondary);
    font-size: 14px;
}

.calc-step.active {
    background: var(--primary-color);
    color: white;
}

.calc-step .step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.calc-step-line {
    width: 40px;
    height: 2px;
    background: var(--bg-input);
    margin: 0 var(--spacing-sm);
}

/* 计算器步骤区域 */
.calc-section {
    animation: fadeIn 0.3s ease;
}

.calc-section-header {
    margin-bottom: var(--spacing-lg);
}

.calc-section-header h3 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.calc-tip {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    background: var(--bg-input);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-md);
    border-left: 3px solid var(--primary-color);
}

/* 输入组 */
.calc-input-group {
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.calc-input-group label {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.calc-input-group select,
.calc-input-group input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-size: 16px;
    background: white;
    color: #333333;
    pointer-events: auto !important;
    -webkit-pointer-events: auto !important;
    -webkit-appearance: menulist !important;
    appearance: menulist !important;
    touch-action: manipulation;
    position: relative;
    z-index: 1000;
    height: 48px;
    line-height: 24px;
    overflow: visible;
    text-overflow: visible;
    white-space: normal;
}

/* 下拉选项样式 - 确保选项文字为黑色 */
.calc-input-group select option {
    background: white;
    color: #333333;
    padding: 10px;
}

.calc-input-group select:focus,
.calc-input-group input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 107, 255, 0.1);
}

/* 确保第二步的输入框也可以正常工作 */
#calc-section-2 .calc-input-group select,
#calc-section-2 .calc-input-group input[type="number"] {
    pointer-events: auto !important;
    -webkit-pointer-events: auto !important;
    -webkit-appearance: menulist !important;
    appearance: menulist !important;
    position: relative;
    z-index: 1000;
}

.calc-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: var(--spacing-xs);
}

/* "无"选项复选框 */
.salary-option {
    margin-top: var(--spacing-sm);
}

.salary-option label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

.salary-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

/* 下一步按钮 */
.calc-next-btn {
    width: 100%;
    padding: var(--spacing-md);
    margin-top: var(--spacing-lg);
    font-size: 16px;
}

/* 返回按钮 */
.calc-back-btn {
    width: 100%;
    padding: var(--spacing-md);
    margin-top: var(--spacing-sm);
    background: var(--bg-input);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    font-size: 14px;
}

/* 计算结果弹窗 */
.salary-result-content {
    padding: var(--spacing-md);
}

.salary-main-result {
    text-align: center;
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--spacing-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.salary-main-result .result-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-sm);
}

.salary-main-result .result-value {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
}

.salary-main-result .result-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: var(--spacing-sm);
}

/* 工资明细 */
.salary-breakdown {
    background: var(--bg-card);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-lg);
}

.salary-breakdown h4 {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    font-size: 14px;
    color: var(--text-primary);
}

.breakdown-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

/* 法律依据 */
.salary-legal-ref {
    background: var(--bg-input);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-lg);
}

.salary-legal-ref h4 {
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.salary-legal-ref p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-xs);
}

.salary-legal-ref p:last-child {
    margin-bottom: 0;
}

/* CTA按钮 */
.salary-cta {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.salary-cta .btn-primary {
    padding: var(--spacing-md);
    font-size: 16px;
}

.salary-cta .btn-secondary {
    padding: var(--spacing-md);
    font-size: 14px;
    background: var(--bg-input);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* 计算器操作按钮 */
.calc-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.calc-actions .btn-secondary,
.calc-actions .btn-primary {
    flex: 1;
    padding: var(--spacing-md);
    font-size: 14px;
}

/* ==================== 证据清单样式 ==================== */
.evidence-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.evidence-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
}

.free-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    color: white;
    font-size: 13px;
    font-weight: 500;
    border-radius: 12px;
    margin-bottom: var(--spacing-md);
}

.evidence-number {
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.evidence-text {
    flex: 1;
}

.evidence-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

.evidence-tip {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(75, 130, 255, 0.1);
    border-radius: var(--border-radius-md);
    font-size: 13px;
    color: var(--text-secondary);
}

/* 证据清单详情项（免费版） */
.evidence-detail-item {
    padding: var(--spacing-md);
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    margin-bottom: var(--spacing-md);
    border-left: 4px solid #4ECDC4;
}

.evidence-detail-header {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.evidence-detail-header .evidence-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.evidence-title-row {
    flex: 1;
}

.evidence-title-row h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.evidence-title-row .evidence-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.evidence-content {
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
}

/* ==================== 话术库样式 ==================== */
.script-modal {
    max-height: 80vh;
    overflow-y: auto;
}

.script-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.script-item {
    padding: var(--spacing-md);
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    cursor: pointer;
}

.script-item:active {
    opacity: 0.8;
}

.script-tag {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(75, 130, 255, 0.1);
    color: var(--primary-color);
    font-size: 12px;
    border-radius: 4px;
    margin-bottom: var(--spacing-xs);
}

.script-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

.script-detail {
    padding: var(--spacing-md);
}

.detail-header {
    margin-bottom: var(--spacing-lg);
}

.detail-tag {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(75, 130, 255, 0.1);
    color: var(--primary-color);
    font-size: 12px;
    border-radius: 4px;
    margin-bottom: var(--spacing-sm);
}

.detail-section {
    margin-bottom: var(--spacing-lg);
}

.detail-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.detail-content {
    padding: var(--spacing-md);
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    font-size: 14px;
    line-height: 1.6;
}

.detail-content.hr-say {
    border-left: 3px solid #FF6B6B;
}

.detail-content.truth {
    border-left: 3px solid #FFB347;
}

.detail-content.answer {
    border-left: 3px solid #4ECDC4;
    background: rgba(78, 205, 196, 0.1);
}

/* ==================== 知识库样式 ==================== */
.knowledge-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.knowledge-item {
    padding: var(--spacing-md);
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    cursor: pointer;
}

.knowledge-item:active {
    opacity: 0.8;
}

.knowledge-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

.knowledge-content {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-primary);
}

/* ==================== 热门话题样式 ==================== */
.topic-full-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.topic-full-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    cursor: pointer;
}

.topic-full-item:active {
    opacity: 0.8;
}

.topic-full-tag {
    padding: 2px 8px;
    background: rgba(255, 107, 107, 0.1);
    color: #FF6B6B;
    font-size: 12px;
    border-radius: 4px;
    flex-shrink: 0;
}

.topic-full-title {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.topic-full-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.topic-detail {
    padding: var(--spacing-md);
}

.topic-detail-header {
    margin-bottom: var(--spacing-lg);
}

.topic-detail-tag {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255, 107, 107, 0.1);
    color: #FF6B6B;
    font-size: 12px;
    border-radius: 4px;
    margin-bottom: var(--spacing-sm);
}

.topic-detail h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

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

.topic-detail-content {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

.topic-cases {
    padding: var(--spacing-md);
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
}

.topic-cases h5 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.case-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

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

.case-platform {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 500;
}

.case-summary {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.5;
}

.case-result {
    font-size: 13px;
    color: #4ECDC4;
    font-weight: 500;
}

/* ==================== 付费弹窗样式 ==================== */
.pay-modal {
    text-align: center;
}

.pay-icon {
    font-size: 60px;
    margin-bottom: var(--spacing-md);
}

.pay-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.pay-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.pay-price {
    font-size: 36px;
    font-weight: 700;
    color: #FF6B6B;
    margin-bottom: var(--spacing-lg);
}

.pay-modal .btn-pay {
    width: 100%;
    padding: var(--spacing-md);
    font-size: 16px;
}

.pay-tip {
    margin-top: var(--spacing-md);
    font-size: 12px;
    color: var(--text-secondary);
}

/* ==================== 计算器结果样式 ==================== */
.calc-result {
    margin-top: var(--spacing-lg);
}

.compensation-result {
    text-align: center;
}

.result-title {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.result-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: var(--spacing-md);
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
}

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

.result-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

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

/* ==================== 付费分割线样式 ==================== */
.pay-section {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
}

.pay-divider {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
    font-size: 13px;
}

.pay-divider::before,
.pay-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.pay-divider span {
    padding: 0 var(--spacing-md);
}
