/* TOFE 页面样式 - 现代化设计 */

/* CSS变量 - 与主题保持一致 */
:root {
    --tofe-primary: #8B4513;
    --tofe-accent: #A0522D;
    --tofe-bg: #F5F0EB;
    --tofe-white: #FFFFFF;
    --tofe-secondary-bg: #EDE8E3;
    --tofe-text-dark: #333333;
    --tofe-text-gray: #666666;
    --tofe-text-light: #999999;
    --tofe-border: #D4CFC8;
    --tofe-danger: #c0392b;
    --tofe-success: #27ae60;
    --tofe-warning: #e67e22;
    --tofe-info: #3498db;
}

/* 全局平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 页面加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tofe-section {
    animation: fadeInUp 0.6s ease-out;
}

/* 页面容器 */
.tofe-page {
    background: linear-gradient(to bottom, var(--tofe-bg) 0%, rgba(237,232,227,0.5) 100%);
    min-height: 100vh;
}

/* 容器最大宽度 */
.tofe-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero 区域 - 增强视觉效果 */
.tofe-hero {
    background: linear-gradient(135deg, #6d3410 0%, var(--tofe-primary) 50%, var(--tofe-accent) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.tofe-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}
.tofe-hero .container {
    position: relative;
    z-index: 1;
}
.hero-subtitle {
    font-size: 13px;
    letter-spacing: 4px;
    opacity: 0.9;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.hero-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 18px;
    text-shadow: 0 3px 10px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}
.hero-desc {
    font-size: 17px;
    opacity: 0.95;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Tabs 导航 - 现代化设计 */
.tofe-tabs {
    /* background: linear-gradient(to bottom, var(--tofe-white) 0%, rgba(245,240,235,0.5) 100%); */
    position: sticky;
    top: 60px;
    z-index: 100;
    /* box-shadow: 0 4px 20px rgba(0,0,0,0.06); */
    border: none !important;
    border-bottom: none !important;
    backdrop-filter: blur(10px);
}
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0;
    max-width: 750px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(237,232,227,0.8) 0%, rgba(245,240,235,0.9) 100%);
    border-radius: 60px;
    padding: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
    border: none !important;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.05);
}
.tab-btn {
    flex: 1;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-bottom: none;
    outline: none;
    background: transparent;
    color: var(--tofe-text-gray);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 50px;
    white-space: nowrap;
    overflow: hidden;
}
.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.05) 0%, rgba(160, 82, 45, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50px;
}
.tab-btn:hover::before {
    opacity: 1;
}
.tab-btn:hover {
    color: white;
    transform: translateY(-2px);
}
.tab-btn:focus {
    outline: none;
    border: none;
}
.tab-btn.active {
    color: white;
    background: linear-gradient(135deg, var(--tofe-primary) 0%, var(--tofe-accent) 100%);
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(139, 69, 19, 0.35), 0 2px 8px rgba(139, 69, 19, 0.2);
    border: none;
    transform: translateY(-1px);
}
.tab-btn.active::before {
    opacity: 0;
}

/* Tab 内容 - 添加切换动画 */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}
.tab-content.active {
    display: block;
}

/* Tab内容淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 通用样式 - 优化间距和视觉层次 */
.tofe-section {
    padding: 20px 0;
    transition: background 0.3s ease;
}
.tofe-section.section-alt {
    background: linear-gradient(to bottom, var(--tofe-secondary-bg) 0%, rgba(237,232,227,0.6) 100%);
}
.section-subtitle {
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--tofe-primary);
    text-align: center;
    margin-bottom: 14px;
    text-transform: uppercase;
    font-weight: 700;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--tofe-primary), var(--tofe-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--tofe-primary), transparent);
    border-radius: 2px;
}
.section-title {
    font-size: 32px;
    color: var(--tofe-text-dark);
    text-align: center;
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 1px;
}
.section-title.light {
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.section-desc {
    text-align: center;
    color: var(--tofe-text-gray);
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.7;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.section-desc.light {
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* 核心挑战模块 - 增强卡片效果 */
.challenge-highlight {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 40px;
    border: 1px solid rgba(139, 69, 19, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.challenge-highlight:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
}
.challenge-main {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--tofe-border);
}
.challenge-icon {
    font-size: 45px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}
.challenge-content h3 { color: var(--tofe-danger); font-size: 20px; margin-bottom: 10px; font-weight: 600; }
.challenge-content p { color: var(--tofe-text-gray); font-size: 15px; line-height: 1.7; }
.challenge-stats { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.stat-card {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    padding: 20px 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #ffd0d0;
    min-width: 180px;
}
.stat-number { display: block; font-size: 42px; font-weight: bold; color: var(--tofe-danger); margin-bottom: 6px; }
.stat-text { display: block; font-size: 14px; color: var(--tofe-text-dark); font-weight: 500; }
.stat-note { display: block; font-size: 11px; color: var(--tofe-text-light); margin-top: 4px; }

/* 逸散物质详情 */
.scatter-detail {
    background: var(--tofe-white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.scatter-detail h4 {
    color: var(--tofe-primary);
    font-size: 17px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.scatter-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.scatter-tags span {
    padding: 6px 16px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.scatter-tags span:before {
    content: "●";
    font-size: 10px;
}
.scatter-tag醛 { background: #e3f2fd; color: #1565c0; }
.scatter-tag萜 { background: #e8f5e9; color: #2e7d32; }
.scatter-tag酮 { background: #fff3e0; color: #ef6c00; }
.scatter-tag酯 { background: #fce4ec; color: #c2185b; }
.scatter-tag酚 { background: #f3e5f5; color: #7b1fa2; }
.scatter-note { color: var(--tofe-text-gray); font-size: 13px; font-style: italic; line-height: 1.6; }

/* 三大路径 - 现代卡片设计 */
.path-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.path-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
    border-top: 5px solid var(--tofe-info);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.path-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--tofe-info), rgba(52, 152, 219, 0.6));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.path-card:hover::before {
    opacity: 1;
}
.path-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.08);
}
.path-card.path-inactive {
    border-top-color: #9b59b6;
}
.path-card.path-inactive::before {
    background: linear-gradient(90deg, #9b59b6, rgba(155, 89, 182, 0.6));
}
.path-card.path-change {
    border-top-color: var(--tofe-warning);
}
.path-card.path-change::before {
    background: linear-gradient(90deg, var(--tofe-warning), rgba(230, 126, 34, 0.6));
}
.path-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.path-icon {
    font-size: 36px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
    transition: transform 0.3s ease;
}
.path-card:hover .path-icon {
    transform: scale(1.05) rotate(5deg);
}
.path-card.path-inactive .path-icon {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.2);
}
.path-card.path-change .path-icon {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.2);
}
.path-card h3 {
    font-size: 19px;
    color: var(--tofe-text-dark);
    margin: 0;
    font-weight: 600;
}
.path-tag {
    font-size: 11px;
    background: linear-gradient(135deg, var(--tofe-secondary-bg), rgba(237,232,227,0.6));
    padding: 3px 10px;
    border-radius: 10px;
    color: var(--tofe-text-gray);
    font-weight: 600;
}
.path-desc {
    color: var(--tofe-text-gray);
    font-size: 14px;
    margin-bottom: 18px;
    line-height: 1.7;
}
.path-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}
.path-list li {
    padding: 9px 0 9px 22px;
    position: relative;
    font-size: 13px;
    color: var(--tofe-text-dark);
    border-bottom: 1px dashed rgba(212, 207, 200, 0.5);
    transition: padding-left 0.3s ease;
}
.path-list li:hover {
    padding-left: 26px;
}
.path-list li:last-child { border-bottom: none; }
.path-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--tofe-primary);
    font-weight: bold;
    transition: transform 0.3s ease;
}
.path-list li:hover:before {
    transform: translateX(2px);
}
.path-flavor-types {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.path-flavor-types span {
    font-size: 11px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    color: #e65100;
    border-radius: 12px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(230, 81, 0, 0.15);
}

/* 解析框架 What-Why-How - 增强视觉流程 */
.analysis-framework {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.framework-step {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    padding: 35px 30px;
    border-radius: 20px;
    text-align: center;
    flex: 1;
    min-width: 260px;
    max-width: 330px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(139, 69, 19, 0.06);
}
.framework-step:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.08);
}
.step-icon {
    font-size: 48px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--tofe-bg) 0%, var(--tofe-secondary-bg) 100%);
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(139, 69, 19, 0.15);
    transition: transform 0.3s ease;
}
.framework-step:hover .step-icon {
    transform: scale(1.1) rotate(10deg);
}
.framework-step h4 {
    font-size: 24px;
    color: var(--tofe-primary);
    margin-bottom: 8px;
    font-weight: bold;
    letter-spacing: 1px;
}
.step-title {
    font-size: 16px;
    color: var(--tofe-text-dark);
    margin-bottom: 20px;
    font-weight: 600;
}
.framework-step ul {
    list-style: none;
    padding: 0;
    text-align: left;
}
.framework-step li {
    padding: 9px 0;
    font-size: 13px;
    color: var(--tofe-text-gray);
    border-bottom: 1px dashed rgba(212, 207, 200, 0.5);
    line-height: 1.6;
}
.framework-step li:last-child { border-bottom: none; }
.framework-arrow {
    font-size: 36px;
    color: var(--tofe-primary);
    display: flex;
    align-items: center;
    font-weight: bold;
    animation: arrowPulse 2s ease-in-out infinite;
}
@keyframes arrowPulse {
    0%, 100% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(5px); opacity: 0.7; }
}

/* 传统方法 - 优化卡片样式 */
.method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}
.method-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(139, 69, 19, 0.06);
}
.method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.08);
}
.method-icon {
    font-size: 42px;
    margin-bottom: 18px;
    display: inline-flex;
    width: 75px;
    height: 75px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--tofe-bg) 0%, var(--tofe-secondary-bg) 100%);
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(139, 69, 19, 0.15);
    transition: transform 0.3s ease;
}
.method-card:hover .method-icon {
    transform: scale(1.1) rotate(-10deg);
}
.method-card h4 {
    font-size: 18px;
    color: var(--tofe-primary);
    margin-bottom: 12px;
    font-weight: 600;
}
.method-card p {
    font-size: 14px;
    color: var(--tofe-text-gray);
    line-height: 1.7;
    margin-bottom: 12px;
}
.method-quote {
    font-style: italic;
    color: var(--tofe-accent);
    font-size: 13px;
    padding: 10px 14px;
    background: linear-gradient(135deg, var(--tofe-bg), rgba(245,240,235,0.6));
    border-radius: 8px;
    border-left: 3px solid var(--tofe-accent);
}
.method-detail {
    font-size: 13px;
    color: var(--tofe-info);
    font-weight: 500;
}
.method-highlight {
    font-size: 13px;
    color: var(--tofe-success);
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    padding: 10px 14px;
    border-radius: 8px;
    border-left: 3px solid var(--tofe-success);
    font-weight: 500;
}

/* 传统方法问题 - 增强警告样式 */
.traditional-problems {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    padding: 30px;
    border-radius: 16px;
    border: 2px solid #ffcdd2;
    box-shadow: 0 4px 16px rgba(192, 57, 43, 0.1);
}
.traditional-problems h4 {
    color: var(--tofe-danger);
    font-size: 17px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}
.problem-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.problem-tag {
    padding: 10px 18px;
    background: white;
    border: 2px solid #ffcdd2;
    border-radius: 10px;
    font-size: 13px;
    color: var(--tofe-danger);
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(192, 57, 43, 0.1);
}
.problem-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.15);
}
.problem-contrast {
    font-size: 15px;
    color: var(--tofe-text-dark);
    text-align: center;
    font-weight: 600;
    padding: 12px;
    background: white;
    border-radius: 8px;
}

/* 食性互作案例 */
.interaction-cases {
    background: var(--tofe-white);
    padding: 30px;
    border-radius: 16px;
    margin-top: 30px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.interaction-cases h4 {
    color: var(--tofe-primary);
    font-size: 18px;
    margin-bottom: 20px;
}

.case-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.case-card {
    background: linear-gradient(135deg, var(--tofe-bg), rgba(237,232,227,0.5));
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.case-card:hover {
    transform: translateY(-3px);
    border-color: var(--tofe-primary);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

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

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

.case-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--tofe-primary);
}

.case-card p {
    font-size: 14px;
    color: var(--tofe-text-dark);
    margin-bottom: 10px;
    line-height: 1.6;
}

.case-usage {
    font-size: 12px;
    color: var(--tofe-text-gray);
    background: white;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
}

/* 酵母抽提物效果 */
.yeast-effects {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    padding: 30px;
    border-radius: 16px;
    margin-top: 30px;
    border: 2px solid var(--tofe-success);
}

.yeast-effects h4 {
    color: var(--tofe-success);
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
}

.effect-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.effect-item {
    background: white;
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.effect-label {
    font-size: 14px;
    color: var(--tofe-text-gray);
    margin-bottom: 10px;
}

.effect-value {
    font-size: 36px;
    font-weight: bold;
    color: var(--tofe-success);
    margin-bottom: 8px;
}

.effect-note {
    font-size: 12px;
    color: var(--tofe-text-light);
}

.effect-wof .effect-value { color: #e67e22; }
.effect-fresh .effect-value { color: #27ae60; }
.effect-fishy .effect-value { color: #3498db; }

.effect-mechanism {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--tofe-text-dark);
    line-height: 1.7;
    text-align: center;
}

.effect-mechanism .highlight {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* TOFE定义 - 增强视觉冲击力 */
.tofe-definition {
    background: linear-gradient(135deg, #6d3410 0%, var(--tofe-primary) 50%, #5d2e0a 100%);
    position: relative;
    overflow: hidden;
}
.tofe-definition::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.tofe-definition .container {
    position: relative;
    z-index: 1;
}
.tofe-def-box {
    background: rgba(255,255,255,0.15);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid rgba(255,255,255,0.25);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}
.tofe-def-text {
    color: white;
    font-size: 16px;
    line-height: 2;
    text-align: justify;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.tofe-def-text .highlight {
    background: rgba(255,255,255,0.25);
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
/* 分子预测模块 */
.molecular-content {
    background: var(--tofe-white);
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}
.molecular-order {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
}
.molecular-order h4 {
    color: var(--tofe-primary);
    font-size: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.order-sequence {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    color: var(--tofe-text-dark);
    line-height: 1.7;
    background: white;
    padding: 12px 18px;
    border-radius: 8px;
    border-left: 4px solid var(--tofe-primary);
}
.molecular-insights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.insight-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    background: var(--tofe-bg);
    border-radius: 10px;
}
.insight-icon {
    font-size: 26px;
    background: white;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}
.insight-item p { font-size: 13px; color: var(--tofe-text-dark); line-height: 1.6; margin: 0; }

/* AI模块 */
.tofe-ai {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    position: relative;
    overflow: hidden;
}
.tofe-ai::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(52, 152, 219, 0.1) 0%, transparent 50%);
    pointer-events: none;
}
.tofe-ai .container {
    position: relative;
    z-index: 1;
}
.ai-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.ai-card {
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 14px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}
.ai-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.ai-icon {
    font-size: 38px;
    display: inline-flex;
    width: 65px;
    height: 65px;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    margin-bottom: 12px;
}
.ai-card h4 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}
.ai-card p {
    font-size: 12px;
    opacity: 0.85;
    margin: 0;
    line-height: 1.5;
}

/* AI应用案例 */
.ai-cases {
    background: rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.case-item {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.3s ease;
}

.case-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-3px);
}

.case-title {
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
}

.case-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

/* 成果模块 */
.achievement-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.achievement-card {
    background: var(--tofe-white);
    padding: 25px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}
.achievement-card:hover { transform: translateY(-3px); }
.achievement-icon {
    font-size: 40px;
    margin-bottom: 15px;
    display: inline-flex;
    width: 70px;
    height: 70px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--tofe-bg) 0%, var(--tofe-secondary-bg) 100%);
    border-radius: 50%;
}
.achievement-card h4 { font-size: 15px; color: var(--tofe-primary); margin-bottom: 10px; font-weight: 600; }
.achievement-card p { font-size: 12px; color: var(--tofe-text-gray); line-height: 1.6; margin: 0; }

/* 专利列表 */
.patent-list {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--tofe-border);
}

.patent-item {
    font-size: 10px;
    color: var(--tofe-text-gray);
    line-height: 1.5;
    padding: 6px 0;
    padding-left: 15px;
    position: relative;
}

.patent-item:before {
    content: "📄";
    position: absolute;
    left: 0;
    font-size: 10px;
}

/* 技术指标展示 */
.tech-indicators {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.indicator-box {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    border: 2px solid var(--tofe-border);
    transition: all 0.3s ease;
}

.indicator-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border-color: var(--tofe-primary);
}

.indicator-value {
    font-size: 42px;
    font-weight: bold;
    color: var(--tofe-primary);
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--tofe-primary), var(--tofe-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.indicator-label {
    font-size: 15px;
    color: var(--tofe-text-dark);
    font-weight: 600;
    margin-bottom: 8px;
}

.indicator-note {
    font-size: 12px;
    color: var(--tofe-text-gray);
    font-style: italic;
}

/* 技术来源 */
.tofe-source {
    background: linear-gradient(135deg, var(--tofe-primary) 0%, #6d3410 100%);
    color: white;
    padding: 50px 0;
    border-radius: 20px;
    margin: 40px 20px;
}
.source-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}
.source-content h3 {
    font-size: 24px;
    margin-bottom: 24px;
    color: #FCD34D;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.source-info p {
    font-size: 15px;
    margin: 12px 0;
    opacity: 0.95;
    line-height: 1.7;
}
.source-info strong {
    color: #FCD34D;
}

/* 图片展示区域 */
.image-showcase {
    margin-bottom: 40px;
}
.showcase-title {
    font-size: 20px;
    color: var(--tofe-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--tofe-border);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.image-count {
    font-size: 14px;
    color: var(--tofe-text-gray);
    font-weight: 400;
    background: var(--tofe-secondary-bg);
    padding: 2px 10px;
    border-radius: 12px;
}
.showcase-text {
    background: var(--tofe-white);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.text-block {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--tofe-border);
}
.text-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.text-block h4 {
    font-size: 16px;
    color: var(--tofe-primary);
    margin-bottom: 8px;
    font-weight: 600;
}
.text-block p {
    font-size: 14px;
    color: var(--tofe-text-dark);
    line-height: 1.8;
    margin: 0;
}
.image-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.image-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.image-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.image-item {
    background: var(--tofe-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
.image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.image-item img {
    width: 100%;
    height: 200px;
    display: block;
    object-fit: contain;
    background: #fafafa;
    padding: 10px;
}
.image-caption {
    padding: 12px 15px;
    font-size: 13px;
    color: var(--tofe-text-dark);
    text-align: center;
    background: var(--tofe-white);
    margin: 0;
    font-weight: 500;
}

/* 图片加载动画 */
.image-item img[loading="lazy"] {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}
@keyframes fadeIn {
    to { opacity: 1; }
}

/* 诊断模块 - 现代化交互设计 */
.diagnosis-section {
    background: linear-gradient(to bottom, var(--tofe-bg) 0%, rgba(237,232,227,0.5) 100%);
}
.diagnosis-container {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    padding: 45px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 45px;
    border: 1px solid rgba(139, 69, 19, 0.08);
}
.diagnosis-input h3 {
    font-size: 22px;
    color: var(--tofe-primary);
    margin-bottom: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.diagnosis-textarea {
    width: 100%;
    min-height: 160px;
    padding: 18px;
    border: 2px solid var(--tofe-border);
    border-radius: 14px;
    font-size: 15px;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: white;
}
.diagnosis-textarea:focus {
    outline: none;
    border-color: var(--tofe-primary);
    box-shadow: 0 0 0 4px rgba(139,69,19,0.12), 0 4px 12px rgba(139,69,19,0.08);
    transform: translateY(-2px);
}
.diagnosis-options {
    display: flex;
    gap: 30px;
    margin: 25px 0;
    flex-wrap: wrap;
}
.option-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.option-item label {
    font-size: 15px;
    color: var(--tofe-text-dark);
    font-weight: 600;
}
.option-item select {
    padding: 12px 18px;
    border: 2px solid var(--tofe-border);
    border-radius: 10px;
    font-size: 14px;
    min-width: 200px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}
.option-item select:focus {
    outline: none;
    border-color: var(--tofe-primary);
    box-shadow: 0 0 0 4px rgba(139,69,19,0.12);
}
.diagnosis-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--tofe-primary) 0%, var(--tofe-accent) 100%);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 17px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(139,69,19,0.3);
    position: relative;
    overflow: hidden;
}
.diagnosis-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}
.diagnosis-btn:hover::before {
    left: 100%;
}
.diagnosis-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(139,69,19,0.4);
}
.diagnosis-btn:active {
    transform: translateY(-1px);
}
.diagnosis-result {
    margin-top: 35px;
    padding-top: 35px;
    border-top: 2px solid var(--tofe-border);
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.diagnosis-result h3 {
    font-size: 20px;
    color: var(--tofe-primary);
    margin-bottom: 20px;
    font-weight: 600;
}
.result-content {
    background: linear-gradient(135deg, var(--tofe-bg), rgba(245,240,235,0.6));
    padding: 30px;
    border-radius: 14px;
    border-left: 5px solid var(--tofe-primary);
    line-height: 1.9;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.result-content h4 {
    color: var(--tofe-primary);
    margin: 18px 0 12px;
    font-size: 17px;
    font-weight: 600;
}
.result-content ul {
    margin-left: 25px;
}
.result-content li {
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.7;
}

/* TOFE诊断报告固定格式样式 */
.tofe-report {
    background: white;
    border-radius: 16px;
    overflow: hidden;
}

.report-header {
    background: linear-gradient(135deg, var(--tofe-primary) 0%, var(--tofe-accent) 100%);
    color: white;
    padding: 25px 30px;
    text-align: center;
}

.report-header h3 {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 600;
}

.report-subtitle {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.report-section {
    padding: 25px 30px;
    border-bottom: 1px solid var(--tofe-border);
}

.report-section:last-of-type {
    border-bottom: none;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--tofe-primary), var(--tofe-accent));
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.report-section h4 {
    color: var(--tofe-text-dark);
    font-size: 17px;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.problem-box, .question-box {
    background: linear-gradient(135deg, #fff5f5, #ffe8e8);
    border-left: 4px solid var(--tofe-danger);
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--tofe-danger);
}

.pathway-box {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-left: 4px solid var(--tofe-info);
    padding: 18px 20px;
    border-radius: 8px;
}

.pathway-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--tofe-info);
    margin-bottom: 8px;
}

.pathway-desc {
    font-size: 14px;
    color: var(--tofe-text-gray);
    line-height: 1.6;
}

.cause-list, .solution-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cause-list li, .solution-list li {
    padding: 12px 15px 12px 45px;
    margin-bottom: 10px;
    background: var(--tofe-bg);
    border-radius: 8px;
    position: relative;
    font-size: 14px;
    line-height: 1.7;
    color: var(--tofe-text-dark);
}

.cause-list li .num, .solution-list li .num {
    position: absolute;
    left: 15px;
    top: 12px;
    width: 22px;
    height: 22px;
    background: var(--tofe-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.solution-list li {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.solution-list li .num {
    background: var(--tofe-success);
}

.pathway-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.pathway-card {
    background: var(--tofe-bg);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.pathway-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.pathway-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--tofe-primary);
    margin-bottom: 8px;
}

.pathway-detail {
    font-size: 12px;
    color: var(--tofe-text-gray);
    line-height: 1.5;
    margin-bottom: 12px;
}

.check-item {
    font-size: 12px;
    color: var(--tofe-text-dark);
    text-align: left;
    padding: 4px 0;
}

.report-footer {
    background: var(--tofe-bg);
    padding: 20px 30px;
}

.footer-note, .footer-tip {
    padding: 12px 15px;
    margin-bottom: 10px;
    background: white;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--tofe-text-dark);
}

.footer-note:last-child, .footer-tip:last-child {
    margin-bottom: 0;
}

.footer-note strong, .footer-tip strong {
    color: var(--tofe-primary);
}

/* 快捷问题 - 增强交互效果 */
.quick-questions {
    margin-top: 35px;
    padding: 25px;
    background: rgba(245,240,235,0.5);
    border-radius: 16px;
}
.quick-questions h4 {
    font-size: 17px;
    color: var(--tofe-text-dark);
    margin-bottom: 18px;
    font-weight: 600;
}
.question-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.question-tag {
    padding: 12px 22px;
    background: white;
    color: var(--tofe-primary);
    border: 2px solid var(--tofe-border);
    border-radius: 24px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-weight: 500;
}
.question-tag:hover {
    background: linear-gradient(135deg, var(--tofe-primary), var(--tofe-accent));
    color: white;
    border-color: var(--tofe-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139,69,19,0.25);
}

/* Loading - 增强加载动画 */
/* Loading 动画已移除旋转效果 */

/* PPT幻灯片展示样式 */
.slide-cover-section {
    padding: 40px 0;
}

.slide-cover {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.08);
}

.slide-full-img {
    width: 100%;
    height: auto;
    display: block;
}

.slides-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.slide-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.35s ease;
    background: white;
    border: 1px solid rgba(0,0,0,0.06);
}

.slide-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(139, 69, 19, 0.15);
    border-color: rgba(139, 69, 19, 0.2);
}

.slide-thumb {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.slide-item:hover .slide-thumb {
    transform: scale(1.03);
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    padding: 35px 16px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slide-item:hover .slide-overlay {
    opacity: 1;
}

.slide-num {
    background: var(--tofe-primary);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.slide-zoom {
    color: white;
    font-size: 13px;
    opacity: 0.9;
}

/* 幻灯片弹窗 */
.slide-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.slide-modal.active {
    display: flex;
}

.modal-content {
    max-width: 95%;
    max-height: 95%;
    position: relative;
}

.modal-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 36px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: scale(1.2);
}

.modal-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
}

.modal-nav button {
    background: var(--tofe-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-nav button:hover {
    background: var(--tofe-accent);
    transform: scale(1.05);
}

.modal-page {
    color: white;
    font-size: 16px;
}

/* 脉冲动画 */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* 悬浮效果 */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 闪烁效果 */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* 响应式设计 - 优化移动端体验 */
@media (max-width: 1200px) {
    .hero-title { font-size: 38px; }
    .section-title { font-size: 28px; }
}

@media (max-width: 1024px) {
    .path-grid, .method-grid, .achievement-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .ai-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .molecular-insights {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .image-grid-3, .image-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .framework-step {
        min-width: 220px;
        max-width: 300px;
    }
    .tech-indicators {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .tofe-hero {
        padding: 40px 20px;
    }
    .hero-title {
        font-size: 30px;
        letter-spacing: 1px;
    }
    .hero-desc {
        font-size: 15px;
    }
    .hero-subtitle {
        font-size: 11px;
        letter-spacing: 2px;
    }
    .section-title {
        font-size: 24px;
    }
    .section-subtitle {
        font-size: 11px;
        letter-spacing: 2px;
    }
    .tofe-section {
        padding: 40px 0;
    }
    .tabs-nav {
        flex-direction: row;
        max-width: 95%;
        padding: 6px;
        gap: 6px;
    }
    .tab-btn {
        padding: 14px 24px;
        font-size: 14px;
    }
    .path-grid, .method-grid, .ai-grid, .achievement-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .tech-indicators {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .case-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .challenge-highlight {
        padding: 25px;
    }
    .challenge-main {
        flex-direction: column;
        text-align: center;
    }
    .challenge-icon {
        margin: 0 auto;
    }
    .challenge-stats {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .stat-card {
        width: 100%;
        max-width: 300px;
    }
    .case-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .effect-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .analysis-framework {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .framework-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    .framework-step {
        max-width: 100%;
        min-width: auto;
    }
    .diagnosis-container {
        padding: 30px 20px;
    }
    .diagnosis-options {
        flex-direction: column;
        gap: 20px;
    }
    .option-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
    }
    .option-item select {
        width: 100%;
        min-width: auto;
    }
    .diagnosis-btn {
        width: 100%;
        padding: 16px 30px;
    }
    .tofe-def-box {
        padding: 25px 20px;
    }
    .tofe-def-text {
        font-size: 14px;
        line-height: 1.8;
    }
    .image-grid-2, .image-grid-3, .image-grid-4 {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .showcase-title {
        font-size: 18px;
    }
    .quick-questions {
        padding: 20px;
    }
    .question-tag {
        padding: 10px 18px;
        font-size: 13px;
    }

    /* 报告格式响应式 */
    .report-header {
        padding: 20px;
    }
    .report-header h3 {
        font-size: 18px;
    }
    .report-section {
        padding: 20px;
    }
    .pathway-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .cause-list li, .solution-list li {
        padding: 10px 12px 10px 40px;
        font-size: 13px;
    }
    .report-footer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }
    .hero-desc {
        font-size: 14px;
    }
    .section-title {
        font-size: 20px;
    }
    .tab-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
    .challenge-highlight,
    .diagnosis-container,
    .tofe-def-box {
        padding: 20px 15px;
    }
    .path-card,
    .method-card,
    .framework-step {
        padding: 20px;
    }
}

/* ==================== 核心亮点展示区样式 ==================== */
.tofe-highlights-section {
    background: linear-gradient(180deg, #FFFAF5 0%, var(--tofe-bg) 100%);
    padding: 60px 0;
}

.highlight-block {
    margin-bottom: 50px;
    background: var(--tofe-white);
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 2px 16px rgba(139, 69, 19, 0.06);
    border: 1px solid rgba(139, 69, 19, 0.08);
}

.highlight-title {
    font-size: 24px;
    color: var(--tofe-primary);
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.highlight-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--tofe-primary), var(--tofe-accent));
    border-radius: 2px;
}

/* 风味丢失三大路径卡片 */
.pathway-cards-enhanced {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pathway-card-enhanced {
    background: var(--tofe-white);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
}

.pathway-card-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    border-color: rgba(139, 69, 19, 0.15);
}

/* .pathway-card-enhanced.pathway-escape {
    border-top: 3px solid #0EA5E9;
}

.pathway-card-enhanced.pathway-inactive {
    border-top: 3px solid #8B5CF6;
}

.pathway-card-enhanced.pathway-change {
    border-top: 3px solid #F59E0B;
} */

.pathway-card-enhanced .card-badge {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

.pathway-escape .card-badge {
    background: #DBEAFE;
    color: #2563EB;
}

.pathway-inactive .card-badge {
    background: #E9D5FF;
    color: #7C3AED;
}

.pathway-change .card-badge {
    background: #FED7AA;
    color: #C2410C;
}

.pathway-card-enhanced h4 {
    font-size: 22px;
    color: var(--tofe-text-dark);
    margin-bottom: 12px;
    font-weight: 600;
}

.pathway-card-enhanced > p {
    font-size: 14px;
    color: var(--tofe-text-gray);
    margin-bottom: 18px;
    line-height: 1.7;
    min-height: 45px;
}

.card-image-slider {
    position: relative;
    width: 100%;
    margin-bottom: 18px;
    overflow: hidden;
    border-radius: 12px;
}

.card-image-slider img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: none;
    border: 1px solid rgba(0,0,0,0.06);
}

.card-image-slider img.active {
    display: block;
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.slider-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dots .dot.active {
    background: var(--tofe-primary);
    width: 20px;
    border-radius: 4px;
}

.pathway-card-enhanced .card-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pathway-card-enhanced .card-tags span {
    background: var(--tofe-secondary-bg);
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 13px;
    color: var(--tofe-text-gray);
    border: 1px solid rgba(0,0,0,0.05);
    font-weight: 500;
}

/* TOFE三大调控路径 */
.tofe-paths-enhanced {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.tofe-path-card {
    background: var(--tofe-white);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.06);
    /* border-top: 4px solid var(--tofe-primary); */
}

.tofe-path-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    border-color: rgba(139, 69, 19, 0.15);
}

/* .tofe-path-card.path-enhance {
    border-top-color: #10B981;
}

.tofe-path-card.path-supplement {
    border-top-color: #3B82F6;
}

.tofe-path-card.path-correct {
    border-top-color: #F59E0B;
} */

.path-icon-large {
    font-size: 52px;
    margin-bottom: 16px;
    display: block;
}

.tofe-path-card h4 {
    font-size: 22px;
    color: var(--tofe-text-dark);
    margin-bottom: 12px;
    font-weight: 600;
}

.tofe-path-card p {
    font-size: 14px;
    color: var(--tofe-text-gray);
    margin-bottom: 18px;
    line-height: 1.6;
}

.tofe-path-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
}

/* TOFE效果展示横幅 */
.tofe-result-banner {
    background: linear-gradient(135deg, var(--tofe-primary) 0%, #6d3410 100%);
    border-radius: 20px;
    padding: 36px 48px;
    margin-top: 20px;
    box-shadow: 0 8px 32px rgba(139, 69, 19, 0.25);
    position: relative;
    overflow: hidden;
}

.tofe-result-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.tofe-result-banner .result-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    color: white;
    position: relative;
    z-index: 1;
}

.tofe-result-banner .result-icon {
    font-size: 60px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.tofe-result-banner .result-text h4 {
    font-size: 24px;
    margin-bottom: 6px;
    font-weight: 600;
}

.tofe-result-banner .result-text p {
    font-size: 15px;
    opacity: 0.9;
}

.tofe-result-banner .result-value {
    font-size: 72px;
    font-weight: 800;
    text-shadow: 0 4px 16px rgba(0,0,0,0.3);
    background: linear-gradient(180deg, #fff 0%, #FCD34D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 响应式 */
@media (max-width: 1024px) {
    .pathway-cards-enhanced,
    .tofe-paths-enhanced {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pathway-cards-enhanced,
    .tofe-paths-enhanced {
        grid-template-columns: 1fr;
    }

    .tofe-result-banner .result-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .tofe-result-banner .result-value {
        font-size: 48px;
    }
}

/* ==================== 智能诊断新界面样式 ==================== */

/* 诊断区域背景 */
.diagnosis-section {
    background: linear-gradient(180deg, #F8F6F3 0%, #F0EBE5 100%);
    padding: 40px 0 60px;
}

/* 顶部标题区 */
.diagnosis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 30px 40px;
    background: linear-gradient(135deg, var(--tofe-primary) 0%, #5D2E0A 100%);
    border-radius: 20px;
    color: white;
    box-shadow: 0 10px 40px rgba(139, 69, 19, 0.3);
}

.header-content {
    flex: 1;
}

.header-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.diagnosis-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.diagnosis-header p {
    font-size: 15px;
    opacity: 0.9;
    margin: 0;
}

.header-stats {
    display: flex;
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 0 20px;
    border-left: 1px solid rgba(255,255,255,0.2);
}

.stat-item:first-child {
    border-left: none;
}

.stat-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-top: 4px;
}

/* 主体双栏布局 */
.diagnosis-main {
    display: grid;
    grid-template-columns: 600px 1fr;
    gap: 40px;
    margin-bottom: 10px;
    align-items: start;
    height: 850px;
}

/* 左侧输入区 */
.diagnosis-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
    height: 850px;
    position: relative;
}

.input-card, .quick-card, .result-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.input-card {
    flex: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: linear-gradient(135deg, #FAFAFA 0%, #F5F5F5 100%);
    border-bottom: 1px solid #EEE;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--tofe-text-dark);
    margin: 0;
}

.header-tip {
    font-size: 13px;
    color: var(--tofe-text-light);
}

.card-body {
    padding: 10px 20px;
    overflow: visible;
}

/* 文本输入框 */
.diagnosis-textarea {
    width: 100%;
    min-height: 200px;
    padding: 20px 24px;
    border: 2px solid #000;
    border-radius: 16px;
    font-size: 16px;
    line-height: 1.8;
    resize: vertical;
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.diagnosis-textarea:focus {
    outline: none;
    border-color: var(--tofe-primary);
    box-shadow: 0 0 0 4px rgba(139,69,19,0.1);
}

.diagnosis-textarea.shake {
    animation: shake 0.5s ease;
    border-color: #E74C3C;
}

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

/* 提示词标签区域 */
.prompt-tags {
    margin: 5px 0;
}

.prompt-group {
    margin-bottom: 22px;
}

.prompt-group:last-child {
    margin-bottom: 0;
}

.prompt-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--tofe-text-dark);
    margin-bottom: 5px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.prompt-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 20px;
    background: #F8F6F3;
    border: 1px solid #E8E4DF;
    border-radius: 24px;
    font-size: 15px;
    color: var(--tofe-text-dark);
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.prompt-tag:hover {
    background: #F0EBE5;
    border-color: var(--tofe-accent);
    transform: translateY(-2px);
}

.prompt-tag.active {
    background: linear-gradient(135deg, var(--tofe-primary) 0%, var(--tofe-accent) 100%);
    color: white;
    border-color: var(--tofe-primary);
    box-shadow: 0 4px 12px rgba(139,69,19,0.3);
}

/* 已选条件显示 */
.selected-prompts {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 24px;
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border-radius: 14px;
    margin: 20px 0;
    border: 1px solid #FDBA74;
    min-height: 60px;
    position: relative;
    z-index: 10;
}

.selected-label {
    font-size: 15px;
    font-weight: 600;
    color: #C2410C;
    white-space: nowrap;
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex: 1;
}

.selected-tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: white;
    border-radius: 18px;
    font-size: 14px;
    color: var(--tofe-text-dark);
    border: 1px solid #FDBA74;
}

.clear-selected {
    padding: 10px 18px;
    background: white;
    border: 1px solid #FDBA74;
    border-radius: 18px;
    font-size: 14px;
    color: #C2410C;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.clear-selected:hover {
    background: #C2410C;
    color: white;
    border-color: #C2410C;
}

/* 操作按钮区 */
.action-buttons-wrapper {
    display: flex;
    gap: 16px;
    padding: 0;
    justify-content: center;
}

.action-buttons {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

.btn-primary {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 20px 32px;
    background: linear-gradient(135deg, var(--tofe-primary) 0%, var(--tofe-accent) 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(139,69,19,0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(139,69,19,0.45);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-primary.loading {
    background: linear-gradient(135deg, var(--tofe-primary) 0%, var(--tofe-accent) 100%);
    pointer-events: none;
}

.btn-primary.loading .btn-text::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 28px;
    background: #F5F5F5;
    color: var(--tofe-text-gray);
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #EBEBEB;
    color: var(--tofe-text-dark);
}

/* 快捷诊断卡片 */
.quick-card {
    padding: 10px 20px;
}

.quick-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--tofe-text-dark);
    margin: 0 0 20px 0;
}

.quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.quick-tag {
    padding: 5px 22px;
    background: #F8F6F3;
    border: 1px solid #E8E4DF;
    border-radius: 24px;
    font-size: 15px;
    color: var(--tofe-text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-tag:hover {
    background: var(--tofe-primary);
    color: white;
    border-color: var(--tofe-primary);
    transform: translateY(-2px);
}

.quick-tag.active {
    background: var(--tofe-primary);
    color: white;
    border-color: var(--tofe-primary);
}

/* 右侧结果区 */
.diagnosis-right {
    display: flex;
    flex-direction: column;
    height: 850px;
}

.result-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#answerContent {
    flex: 1;
    overflow-y: auto;
}

/* 占位状态 */
.result-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    min-height: 700px;
}

.placeholder-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.result-placeholder h4 {
    font-size: 20px;
    color: var(--tofe-text-dark);
    margin: 0 0 10px 0;
}

.result-placeholder > p {
    font-size: 14px;
    color: var(--tofe-text-gray);
    margin: 0 0 30px 0;
}

.placeholder-steps {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    margin-top: 30px;
}

.step-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 2px dashed #cbd5e1;
    transition: all 0.3s ease;
    min-height: 280px;
}

.step-item:hover {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    transform: translateY(-2px);
}

.step-icon {
    font-size: 40px;
    opacity: 0.7;
}

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

.step-title {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.step-subtitle {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 13px;
    color: #1e293b;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-points {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.step-points div {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}

.step-arrow {
    font-size: 24px;
    color: #cbd5e1;
    flex-shrink: 0;
}

/* 加载状态 */
.loading-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: center;
}

.loading-icon {
    font-size: 56px;
    margin-bottom: 24px;
    animation: pulse-gentle 2s ease-in-out infinite;
}

@keyframes pulse-gentle {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.85; }
}

.loading-state h4 {
    font-size: 22px;
    color: var(--tofe-text-dark);
    margin: 0 0 10px 0;
    font-weight: 600;
}

.loading-hint {
    font-size: 14px;
    color: var(--tofe-text-gray);
    margin: 0 0 32px 0;
}

/* 进度条 */
.loading-progress {
    width: 100%;
    max-width: 320px;
    height: 6px;
    background: #E8E8E8;
    border-radius: 3px;
    margin-bottom: 36px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--tofe-primary), var(--tofe-accent));
    border-radius: 3px;
    animation: progress-fill 3s ease-out forwards;
}

@keyframes progress-fill {
    0% { width: 0%; }
    30% { width: 35%; }
    60% { width: 65%; }
    80% { width: 85%; }
    100% { width: 95%; }
}

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

.load-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 12px;
    background: #F8F8F8;
    border-radius: 12px;
    font-size: 13px;
    color: var(--tofe-text-gray);
    transition: all 0.4s ease;
}

.step-dot {
    width: 10px;
    height: 10px;
    background: #DDD;
    border-radius: 50%;
    transition: all 0.4s ease;
}

.load-step.active {
    background: white;
    color: var(--tofe-primary);
    box-shadow: 0 4px 16px rgba(139,69,19,0.12);
}

.load-step.active .step-dot {
    background: var(--tofe-primary);
    box-shadow: 0 0 0 4px rgba(139,69,19,0.15);
}

/* 等待提示文字 */
.loading-wait {
    margin-top: 24px;
    font-size: 14px;
    color: var(--tofe-primary);
    min-height: 20px;
    animation: fadeInOut 2s ease-in-out infinite;
}

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

/* 底部知识卡片 */
.knowledge-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.knowledge-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.knowledge-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.knowledge-card .card-icon {
    font-size: 32px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    flex-shrink: 0;
}

.card-escape .card-icon { background: #DBEAFE; }
.card-inactive .card-icon { background: #E9D5FF; }
.card-change .card-icon { background: #FED7AA; }
.card-solution .card-icon { background: #D1FAE5; }

.knowledge-card .card-content h5 {
    font-size: 15px;
    color: var(--tofe-text-dark);
    margin: 0 0 4px 0;
    font-weight: 600;
}

.knowledge-card .card-content p {
    font-size: 13px;
    color: var(--tofe-text-gray);
    margin: 0;
    min-height: 20px;
}

.knowledge-card .card-content p:empty::before {
    content: attr(data-default);
    color: #ccc;
    font-style: italic;
}

.knowledge-card .card-content strong {
    color: var(--tofe-primary);
}

.knowledge-card.card-highlight {
    animation: cardPulse 0.6s ease-out;
    border: 2px solid var(--tofe-primary);
}

@keyframes cardPulse {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
    50% { transform: scale(1.05); box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3); }
    100% { transform: scale(1); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
}

/* AI分析过程窗口 */
.analysis-process {
    position: absolute;
    top: 0;
    right: -327px;
    width: 320px;
    min-height: 500px;
    max-height: calc(100vh - 220px);
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border: 1px solid #e5e7eb;
    z-index: 1000;
    overflow-y: auto;
}

/* AI思路进度 */
.ai-thinking {
    margin-bottom: 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.thinking-flow {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.flow-step {
    opacity: 1;
    transition: all 0.3s ease;
}

.flow-step.done {
    opacity: 1;
}

.step-header {
    text-align: center;
    margin-bottom: 8px;
}

.step-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e40af;
    background: #DBEAFE;
    padding: 6px 16px;
    border-radius: 16px;
    display: inline-block;
    margin-bottom: 2px;
}

.step-subtitle {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.step-card {
    background: #f9fafb;
    border-radius: 8px;
    padding: 5px 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.flow-step.done .step-card {
    background: #DBEAFE;
    border-color: #3b82f6;
}

.card-icon-large {
    font-size: 32px;
    text-align: center;
    margin-bottom: 8px;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.flow-step.done .card-icon-large {
    opacity: 1;
}

.card-label {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    text-align: center;
}

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

.card-items .item {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.flow-arrow {
    text-align: center;
    font-size: 20px;
    color: #cbd5e1;
    margin:0;
}

.flow-step.done + .flow-arrow {
    color: #3b82f6;
}

/* 科学家轮播样式 */
.scientist-slider-wrapper {
    position: relative;
    padding: 0 60px;
}

.scientist-slides {
    position: relative;
    overflow: hidden;
}

.scientist-slide {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.scientist-slide.active {
    display: block;
}

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

.scientist-arrow {
    transition: all 0.3s ease;
}

.scientist-arrow:hover {
    background: rgba(13, 63, 122, 1) !important;
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.scientist-arrow:active {
    transform: translateY(-50%) scale(0.95) !important;
}

.scientist-dot {
    transition: all 0.3s ease;
}

.scientist-dot:hover {
    transform: scale(1.2);
}

.scientist-dot.active {
    background: #0d3f7a !important;
    width: 30px !important;
    border-radius: 6px !important;
}

/* 响应式 - 科学家轮播 */
@media (max-width: 768px) {
    .scientist-slider-wrapper {
        padding: 0 20px;
    }

    .scientist-arrow {
        width: 35px !important;
        height: 35px !important;
        font-size: 16px !important;
    }

    .scientist-prev {
        left: -15px !important;
    }

    .scientist-next {
        right: -15px !important;
    }

    .chief-layout {
        flex-direction: column !important;
        align-items: center !important;
    }

    .chief-photo {
        flex: 0 0 auto !important;
    }
}

/* 响应式设计 */
@media (max-width: 1280px) {
    .diagnosis-main {
        grid-template-columns: 550px 1fr;
        gap: 36px;
    }
}

@media (max-width: 1100px) {
    .diagnosis-main {
        grid-template-columns: 500px 1fr;
        gap: 30px;
    }
}

@media (max-width: 1024px) {
    .diagnosis-header {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .header-stats {
        justify-content: center;
    }

    .diagnosis-main {
        grid-template-columns: 1fr;
    }

    .diagnosis-left {
        max-width: 700px;
        margin: 0 auto;
        width: 100%;
    }

    .thinking-flow {
        flex-direction: column;
        gap: 12px;
    }

    .flow-arrow {
        transform: rotate(90deg);
        font-size: 20px;
    }

    .step-title {
        font-size: 15px;
        padding: 6px 16px;
    }

    .card-items .item {
        font-size: 12px;
    }

    .knowledge-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .diagnosis-header {
        padding: 24px 20px;
    }

    .diagnosis-header h2 {
        font-size: 22px;
    }

    .header-stats {
        flex-wrap: wrap;
        gap: 16px;
    }

    .stat-item {
        padding: 0 16px;
        border-left: none;
    }

    .card-body {
        padding: 5px 20px;
    }

    .diagnosis-textarea {
        min-height: 140px;
        font-size: 15px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .placeholder-steps {
        flex-direction: column;
        gap: 12px;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .knowledge-cards {
        grid-template-columns: 1fr;
    }
}

/* ==================== 诊断报告三维度样式 ==================== */

/* 关键风味物质展示 */
.compounds-box {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    border-left: 4px solid #F97316;
    padding: 20px;
    border-radius: 8px;
}

.compounds-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.compound-tag {
    display: inline-block;
    padding: 8px 16px;
    background: white;
    border: 1px solid #FDBA74;
    border-radius: 20px;
    font-size: 13px;
    color: #C2410C;
    font-weight: 500;
    transition: all 0.3s ease;
}

.compound-tag:hover {
    background: #F97316;
    color: white;
    border-color: #F97316;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.compounds-note {
    font-size: 12px;
    color: var(--tofe-text-gray);
    margin: 0;
    font-style: italic;
}

/* 路径详情 */
.pathway-detail {
    font-size: 13px;
    color: var(--tofe-text-gray);
    line-height: 1.7;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(52, 152, 219, 0.3);
}

/* 原因分析盒子 */
.causes-box {
    margin-top: 20px;
    padding: 20px;
    background: var(--tofe-bg);
    border-radius: 12px;
}

.causes-box h5 {
    font-size: 15px;
    color: var(--tofe-text-dark);
    margin: 0 0 15px 0;
    font-weight: 600;
}

/* 报告区块颜色区分 */
.section-compounds {
    background: linear-gradient(to right, rgba(249, 115, 22, 0.03), transparent);
}

.section-pathway {
    background: linear-gradient(to right, rgba(52, 152, 219, 0.03), transparent);
}

.section-solution {
    background: linear-gradient(to right, rgba(39, 174, 96, 0.03), transparent);
}

/* 报告区块 badge 颜色 */
.section-compounds .section-badge {
    background: linear-gradient(135deg, #F97316, #FB923C);
}

.section-pathway .section-badge {
    background: linear-gradient(135deg, #3498db, #5DADE2);
}

.section-solution .section-badge {
    background: linear-gradient(135deg, #27ae60, #2ECC71);
}
/* ==================== AI 回答样式 ==================== */
.ai-answer {
    padding: 32px;
    font-size: 15px;
    line-height: 1.9;
    color: var(--tofe-text-dark);
}

.ai-answer.fade-in {
    animation: fadeInUp 0.4s ease-out;
}

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

.ai-answer p {
    margin: 0 0 16px 0;
}

.ai-answer h4.ai-header {
    font-size: 18px;
    font-weight: 600;
    color: var(--tofe-primary);
    margin: 28px 0 14px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(139, 69, 19, 0.12);
}

.ai-answer h4.ai-header:first-child {
    margin-top: 0;
}

.ai-answer h5.ai-subheader {
    font-size: 16px;
    font-weight: 600;
    color: var(--tofe-text-dark);
    margin: 20px 0 10px 0;
}

.ai-answer strong {
    color: var(--tofe-primary);
    font-weight: 600;
}

.ai-answer .ai-list-item {
    display: block;
    padding: 10px 16px;
    margin: 8px 0;
    background: #FAFAFA;
    border-radius: 8px;
    border-left: 3px solid var(--tofe-primary);
}

.ai-answer .ai-list-item .list-num {
    color: var(--tofe-primary);
    font-weight: 600;
    margin-right: 4px;
}

/* 流式输出时的光标效果 */
.ai-answer.streaming::after {
    content: '▌';
    display: inline;
    color: var(--tofe-primary);
    animation: cursorBlink 1s step-end infinite;
    margin-left: 2px;
}

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