/* 
 * DiamondPath.ai - Main Stylesheet
 */

/* ========== 基础样式 ========== */
:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #f1f5f9;
    --text-color: #1e293b;
    --text-light: #64748b;
    --background: #ffffff;
    --background-alt: #f8fafc;
    --border-color: #e2e8f0;
    --success-color: #22c55e;
    --error-color: #ef4444;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    background: var(--background);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========== 按钮 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

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

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

.btn-primary:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

/* ========== 导航栏 ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
}

.logo-icon {
    height: 56px;
    width: auto;
    vertical-align: middle;
    margin-right: 12px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* ========== Language Switcher ========== */
.lang-switcher {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.lang-btn:hover {
    background: var(--border-color);
}

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

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    list-style: none;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1001;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown li a {
    display: block;
    padding: 10px 16px;
    color: var(--text-color);
    font-size: 14px;
    transition: background 0.2s ease;
}

.lang-dropdown li a:hover {
    background: var(--secondary-color);
}

.lang-dropdown li:first-child a {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.lang-dropdown li:last-child a {
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

/* ========== Hero区域 ========== */
.hero {
    padding: 120px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 32px;
}

/* ========== 功能区域 ========== */
.features {
    padding: 100px 0;
    background: var(--background);
}

.features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 32px;
    background: var(--background-alt);
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 15px;
}

.card-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-link:hover {
    color: var(--primary-hover);
}

/* ========== 上传区域 ========== */
.upload-section {
    padding: 100px 0;
    background: var(--background-alt);
}

.upload-section h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 12px;
}

.upload-hint {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
}

.upload-area {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 40px;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    background: var(--background);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.upload-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.upload-text {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* 文件信息 */
.file-info {
    max-width: 600px;
    margin: 20px auto 0;
    padding: 16px 20px;
    background: var(--background);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.file-details {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-icon {
    font-size: 24px;
}

.file-name {
    flex: 1;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    color: var(--text-light);
    font-size: 14px;
}

.btn-remove {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-remove:hover {
    background: var(--error-color);
    color: white;
}

/* 上传按钮 */
.btn-upload {
    display: block;
    max-width: 600px;
    width: 100%;
    margin: 24px auto 0;
    padding: 16px;
    font-size: 18px;
}

/* 进度条 */
.progress-container {
    max-width: 600px;
    margin: 24px auto 0;
}

.progress-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), #a855f7);
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    margin-top: 12px;
}

/* 结果区域 - 全宽显示 */
.result-container {
    max-width: 1200px;
    width: 95%;
    margin: 40px auto 0;
    padding: 24px;
    background: var(--background);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.result-container > h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.result-filename {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

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

/* ========== 模块 Tab 容器 ========== */
.section-container {
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

/* ========== 模块 Tab 导航（桌面端横向）========== */
.section-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 12px;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.section-tab {
    padding: 10px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.section-tab:hover {
    background: #f8fafc;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.section-tab .tab-icon {
    font-size: 1rem;
}

.section-tab .tab-title {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== 模块内容面板 ========== */
.section-panels {
    padding: 0;
}

.section-panel {
    display: none;
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.section-panel.active {
    display: block;
}

/* 自定义滚动条 */
.section-panel::-webkit-scrollbar {
    width: 8px;
}

.section-panel::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.section-panel::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.section-panel::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ========== 移动端手风琴样式 ========== */
.accordion-container {
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid #e2e8f0;
}

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

.accordion-header {
    width: 100%;
    padding: 16px 20px;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.2s ease;
    text-align: left;
}

.accordion-header:hover {
    background: #f8fafc;
}

.accordion-header.active {
    background: var(--primary-color);
    color: white;
}

.accordion-icon {
    font-size: 1.1rem;
}

.accordion-title {
    flex: 1;
}

.accordion-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.accordion-header.active .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.accordion-content.active {
    max-height: 2000px;  /* 足够大的值 */
}

.accordion-content .analysis-content {
    padding: 16px 20px;
    border-top: 1px solid #e2e8f0;
}

/* ========== 移动端响应式 ========== */
@media (max-width: 768px) {
    /* 隐藏桌面端 Tab 样式 */
    .desktop-tabs {
        display: none !important;
    }
    
    /* 显示手风琴样式 */
    .mobile-accordion {
        display: block !important;
    }
    
    .result-container {
        padding: 16px;
        margin: 20px auto 0;
    }
    
    .accordion-header {
        padding: 14px 16px;
        font-size: 0.9rem;
    }
    
    .accordion-content .analysis-content {
        padding: 14px 16px;
    }
}

/* 桌面端：隐藏手风琴，显示 Tab */
@media (min-width: 769px) {
    .mobile-accordion {
        display: none !important;
    }
    
    .desktop-tabs {
        display: block !important;
    }
}

/* 成功消息 */
.result-success {
    margin-top: 20px;
    padding: 16px;
    background: #f0fdf4;
    border-radius: 8px;
    color: #166534;
    border-left: 4px solid #22c55e;
}

/* ========== 关于页面样式 ========== */
.about-hero {
    padding: 140px 0 80px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
}

.about-hero h1 {
    font-size: 42px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary-color), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-subtitle {
    font-size: 20px;
    color: var(--text-light);
}

.about-section {
    padding: 80px 0;
    background: var(--background);
}

.about-section-alt {
    background: var(--background-alt);
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 48px;
    color: var(--text-color);
}

.about-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
    background: var(--background-alt);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.mission-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.about-card h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-card p {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.8;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.value-card {
    padding: 32px;
    background: var(--background);
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-4px);
}

.value-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.value-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-color);
}

.value-card p {
    color: var(--text-light);
    font-size: 15px;
}

.tech-content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--background-alt);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.tech-badge {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

.tech-item p {
    color: var(--text-color);
    font-size: 15px;
    margin: 0;
}

.about-cta {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), #a855f7);
    color: white;
}

.about-cta h2 {
    font-size: 32px;
    margin-bottom: 32px;
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

.about-cta .btn-primary {
    background: white;
    color: var(--primary-color);
}

.about-cta .btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

.cta-text {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

/* ========== Privacy 页面 - 数据处理流程 ========== */
.privacy-process {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.process-step {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    padding: 24px;
    background: var(--background-alt);
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.step-number {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary-color), #a855f7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.process-step h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.process-step p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

.process-arrow {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: bold;
}

/* AI 服务说明卡片 */
.ai-notice {
    border: 2px solid #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.ai-notice .about-icon {
    font-size: 48px;
}

.ai-notice h2 {
    color: #b45309;
}

.ai-notice p {
    color: #92400e;
}

.ai-notice-details {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.notice-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-sm);
    font-size: 15px;
    color: #92400e;
}

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

@media (max-width: 768px) {
    .privacy-process {
        flex-direction: column;
    }
    
    .process-arrow {
        transform: rotate(90deg);
    }
    
    .process-step {
        max-width: 100%;
    }
}

/* ========== 页脚 ========== */
.footer {
    padding: 40px 0;
    background: #0f172a;
    color: white;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
}

.footer-icon {
    width: 28px;
    height: 28px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-sizing: content-box;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    color: var(--text-light);
    font-size: 14px;
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .navbar .container {
        height: 60px;
    }
    
    .logo-icon {
        height: 40px;
        margin-right: 8px;
    }
    
    .logo {
        font-size: 16px;
    }
    
    .nav-links {
        gap: 12px;
    }
    
    .nav-links > li:not(.lang-switcher) {
        display: none;
    }
    
    .lang-btn span:not(.lang-icon) {
        display: none;
    }
    
    .lang-btn {
        padding: 8px;
    }
    
    .hero {
        padding: 90px 0 40px;
    }
    
    .hero h1 {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 15px;
        padding: 0 8px;
        margin-bottom: 24px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 15px;
    }
    
    .features, .upload-section, .about {
        padding: 48px 0;
    }
    
    .features h2, .upload-section h2, .about h2 {
        font-size: 24px;
        margin-bottom: 32px;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .feature-card {
        padding: 24px 20px;
    }
    
    .feature-icon {
        font-size: 36px;
        margin-bottom: 12px;
    }
    
    .feature-card h3 {
        font-size: 18px;
    }
    
    .feature-card p {
        font-size: 14px;
    }
    
    .upload-area {
        padding: 32px 20px;
    }
    
    .upload-icon {
        font-size: 48px;
    }
    
    .upload-text {
        font-size: 14px;
    }
    
    .upload-hint {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    .btn-upload {
        width: 100%;
        max-width: 280px;
    }
    
    .file-info {
        padding: 12px 16px;
    }
    
    .file-details {
        font-size: 14px;
    }
    
    .footer {
        padding: 32px 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    /* About 页面 values-grid 2列布局 */
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .value-card {
        padding: 20px 16px;
    }
    
    .value-icon {
        font-size: 36px;
        margin-bottom: 12px;
    }
    
    .value-card h3 {
        font-size: 16px;
    }
    
    .value-card p {
        font-size: 13px;
    }
    
    /* Privacy 页面 process-step 2列布局 */
    .privacy-process {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .process-arrow {
        display: none;
    }
    
    .process-step {
        max-width: 100%;
        min-width: auto;
        padding: 20px 16px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .process-step h3 {
        font-size: 16px;
    }
    
    .process-step p {
        font-size: 13px;
    }
    
    /* About 页面其他元素适配 */
    .about-section {
        padding: 48px 0;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 32px;
    }
    
    .about-card {
        padding: 24px 20px;
    }
    
    .about-icon {
        font-size: 48px;
        margin-bottom: 16px;
    }
    
    .about-card h2 {
        font-size: 22px;
    }
    
    .about-card p {
        font-size: 15px;
    }
}

/* 更小屏幕适配 (手机竖屏) */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .hero {
        padding: 80px 0 32px;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .features, .upload-section {
        padding: 36px 0;
    }
    
    .features h2, .upload-section h2 {
        font-size: 20px;
        margin-bottom: 24px;
    }
    
    .feature-card {
        padding: 20px 16px;
    }
    
    .feature-icon {
        font-size: 32px;
    }
    
    .feature-card h3 {
        font-size: 16px;
    }
    
    .upload-area {
        padding: 24px 16px;
    }
    
    .upload-icon {
        font-size: 40px;
        margin-bottom: 12px;
    }
    
    .upload-text {
        font-size: 13px;
    }
}

/* ========== 动画 ========== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.feature-card {
    animation: fadeIn 0.6s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

/* ========== AI 分析结果样式 ========== */
.analysis-section {
    margin-top: 24px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.analysis-section h3 {
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--text-dark);
    font-size: 1.25rem;
}

.analysis-content {
    line-height: 1.8;
    color: var(--text-dark);
}

.analysis-content h2 {
    font-size: 1.2rem;
    margin: 20px 0 10px 0;
    color: var(--primary-color);
}

.analysis-content h3 {
    font-size: 1.1rem;
    margin: 16px 0 8px 0;
    color: var(--text-dark);
}

.analysis-content h4 {
    font-size: 1rem;
    margin: 12px 0 6px 0;
    color: var(--text-dark);
}

.analysis-content li {
    margin-left: 20px;
    margin-bottom: 6px;
}

.analysis-content code {
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

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

.error-msg {
    margin-top: 12px;
    padding: 12px 16px;
    background: #fef2f2;
    border-radius: 8px;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}
