/* 高级气味分析 - 科技感UI样式 */
:root {
    --primary-color: #21A179;
    --primary-light: #64ffda;
    --primary-glow: rgba(33, 161, 121, 0.5);
    --dark-bg: rgba(17, 34, 64, 0.6);
    --darker-bg: rgba(11, 23, 39, 0.6);
    --text-color: #e2e8f0;
    --text-muted: #8a94a8;
    --border-radius: 8px;
    --border-radius-lg: 10px;
    --transition: all 0.3s ease;
}

/* 主容器 */
.ai-result {
    font-family: 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    position: relative;
    padding-bottom: 30px;
}

/* 头部区域 */
.ai-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--dark-bg);
    border-radius: var(--border-radius-lg);
    padding: 15px;
    margin-bottom: 25px;
    border-left: 3px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.ai-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(33, 161, 121, 0.1), transparent 70%);
    z-index: 0;
}

.ai-title {
    display: flex;
    align-items: center;
    z-index: 1;
}

.ai-title i {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 12px;
}

.ai-title h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    background: linear-gradient(90deg, #e2e8f0, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(33, 161, 121, 0.3);
}

.ai-stats {
    display: flex;
    gap: 20px;
    z-index: 1;
}

.ai-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.ai-stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(33, 161, 121, 0.2) 0%, transparent 70%);
    z-index: -1;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-light);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* 分析部分公共样式 */
.ai-section {
    background: var(--dark-bg);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    margin-bottom: 25px;
    border-left: 3px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.ai-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(33, 161, 121, 0.05), transparent 70%);
    z-index: 0;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.section-header i {
    font-size: 18px;
    color: var(--primary-color);
    margin-right: 10px;
    background: rgba(33, 161, 121, 0.1);
    padding: 8px;
    border-radius: 50%;
}

.section-header h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

.section-content {
    position: relative;
    z-index: 1;
}

/* 基础特性分析 */
.basic-analysis .feature-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.basic-analysis .feature-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.feature-header {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 8px;
}

.feature-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
}

/* 感官评估部分 */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.metric-item {
    display: flex;
    flex-direction: column;
    background: var(--darker-bg);
    padding: 12px;
    border-radius: var(--border-radius);
    position: relative;
}

.metric-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    border-radius: 3px 0 0 3px;
}

.metric-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.metric-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.metric-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 4px;
    width: 0%;
}

.metric-value {
    align-self: flex-end;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-light);
}

/* 层次感分析 */
.layers-analysis {
    background: rgba(11, 23, 39, 0.4);
    border-radius: var(--border-radius);
    padding: 15px;
    position: relative;
}

.layers-analysis::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(to left, rgba(33, 161, 121, 0.1), transparent);
    border-radius: 0 8px 8px 0;
    z-index: 0;
}

.layers-header {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.layers-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.layer-item {
    position: relative;
    padding-left: 15px;
}

.layer-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.layer-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    display: block;
    margin-bottom: 5px;
}

.layer-item p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
}

/* 心理与联想分析 */
.psychology-analysis .emotion-analysis,
.psychology-analysis .memory-analysis {
    margin-bottom: 20px;
}

.emotion-header,
.memory-header {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 10px;
}

.psychology-analysis p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 15px;
}

.emotion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.emotion-tag {
    padding: 6px 12px;
    background: rgba(33, 161, 121, 0.2);
    border: 1px solid rgba(33, 161, 121, 0.3);
    border-radius: 20px;
    font-size: 12px;
    color: var(--primary-light);
    transition: var(--transition);
}

.emotion-tag:hover {
    background: rgba(33, 161, 121, 0.3);
    transform: translateY(-2px);
}

/* 适用场景 */
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.scenario-item {
    display: flex;
    align-items: flex-start;
    background: var(--darker-bg);
    padding: 12px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.scenario-item:hover {
    background: rgba(33, 161, 121, 0.2);
    transform: translateY(-3px);
}

.scenario-icon {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 14px;
}

.scenario-text {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.5;
}

/* 科学发现与小知识 */
.facts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fact-item {
    display: flex;
    background: var(--darker-bg);
    padding: 15px;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.fact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(33, 161, 121, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fact-item:hover::before {
    opacity: 1;
}

.fact-item i {
    color: var(--primary-light);
    margin-right: 12px;
    font-size: 16px;
    padding-top: 3px;
}

.fact-item p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
}

/* 评价部分 */
.rating-comment {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
    border-left: 2px solid rgba(33, 161, 121, 0.5);
}

.rating-display {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.rating-score-container {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rating-circle {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.rating-circle-bg {
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
}

.rating-circle-fill {
    stroke-dasharray: 0, 100;
    stroke-linecap: round;
    filter: drop-shadow(0 0 5px var(--primary-glow));
    transition: stroke-dasharray 1.5s ease-out;
}

.rating-value {
    position: absolute;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-light);
    text-shadow: 0 0 10px var(--primary-glow);
}

.rating-value span {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
}

/* DeepSeek标记 */
.deepseek-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background: rgba(33, 161, 121, 0.1);
    border: 1px solid rgba(33, 161, 121, 0.2);
    border-radius: 20px;
    font-size: 12px;
    color: var(--primary-light);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.deepseek-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(33, 161, 121, 0.2), transparent);
    animation: shimmerEffect 2s infinite;
}

@keyframes shimmerEffect {
    0% { left: -100%; }
    100% { left: 100%; }
}

.deepseek-badge i {
    margin-right: 8px;
}

.deepseek-badge:hover {
    background: rgba(33, 161, 121, 0.2);
    transform: translateY(-2px);
}

/* 加载动画 */
.ai-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.ai-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(33, 161, 121, 0.1) 0%, transparent 70%);
    animation: pulseBg 2s infinite;
}

@keyframes pulseBg {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(33, 161, 121, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(720deg); }
}

.ai-loading span {
    margin-top: 20px;
    font-size: 16px;
    color: var(--primary-light);
    text-shadow: 0 0 10px var(--primary-glow);
    animation: pulseTxt 2s infinite;
}

@keyframes pulseTxt {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* 错误状态 */
.ai-error {
    padding: 25px;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 10px;
    color: #e74c3c;
    text-align: center;
    font-size: 16px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .ai-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .ai-stats {
        width: 100%;
        justify-content: space-around;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .scenarios-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ai-title h3 {
        font-size: 18px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .rating-score-container {
        width: 100px;
        height: 100px;
    }
    
    .rating-value {
        font-size: 24px;
    }
} 
 
:root {
    --primary-color: #21A179;
    --primary-light: #64ffda;
    --primary-glow: rgba(33, 161, 121, 0.5);
    --dark-bg: rgba(17, 34, 64, 0.6);
    --darker-bg: rgba(11, 23, 39, 0.6);
    --text-color: #e2e8f0;
    --text-muted: #8a94a8;
    --border-radius: 8px;
    --border-radius-lg: 10px;
    --transition: all 0.3s ease;
}

/* 主容器 */
.ai-result {
    font-family: 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    position: relative;
    padding-bottom: 30px;
}

/* 头部区域 */
.ai-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--dark-bg);
    border-radius: var(--border-radius-lg);
    padding: 15px;
    margin-bottom: 25px;
    border-left: 3px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.ai-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(33, 161, 121, 0.1), transparent 70%);
    z-index: 0;
}

.ai-title {
    display: flex;
    align-items: center;
    z-index: 1;
}

.ai-title i {
    font-size: 24px;
    color: var(--primary-color);
    margin-right: 12px;
}

.ai-title h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    background: linear-gradient(90deg, #e2e8f0, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(33, 161, 121, 0.3);
}

.ai-stats {
    display: flex;
    gap: 20px;
    z-index: 1;
}

.ai-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.ai-stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(33, 161, 121, 0.2) 0%, transparent 70%);
    z-index: -1;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-light);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* 分析部分公共样式 */
.ai-section {
    background: var(--dark-bg);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    margin-bottom: 25px;
    border-left: 3px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.ai-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(33, 161, 121, 0.05), transparent 70%);
    z-index: 0;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.section-header i {
    font-size: 18px;
    color: var(--primary-color);
    margin-right: 10px;
    background: rgba(33, 161, 121, 0.1);
    padding: 8px;
    border-radius: 50%;
}

.section-header h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--text-color);
}

.section-content {
    position: relative;
    z-index: 1;
}

/* 基础特性分析 */
.basic-analysis .feature-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.basic-analysis .feature-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.feature-header {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 8px;
}

.feature-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
}

/* 感官评估部分 */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.metric-item {
    display: flex;
    flex-direction: column;
    background: var(--darker-bg);
    padding: 12px;
    border-radius: var(--border-radius);
    position: relative;
}

.metric-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    border-radius: 3px 0 0 3px;
}

.metric-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.metric-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.metric-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 4px;
    width: 0%;
}

.metric-value {
    align-self: flex-end;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-light);
}

/* 层次感分析 */
.layers-analysis {
    background: rgba(11, 23, 39, 0.4);
    border-radius: var(--border-radius);
    padding: 15px;
    position: relative;
}

.layers-analysis::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(to left, rgba(33, 161, 121, 0.1), transparent);
    border-radius: 0 8px 8px 0;
    z-index: 0;
}

.layers-header {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.layers-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.layer-item {
    position: relative;
    padding-left: 15px;
}

.layer-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.layer-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    display: block;
    margin-bottom: 5px;
}

.layer-item p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
}

/* 心理与联想分析 */
.psychology-analysis .emotion-analysis,
.psychology-analysis .memory-analysis {
    margin-bottom: 20px;
}

.emotion-header,
.memory-header {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 10px;
}

.psychology-analysis p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 15px;
}

.emotion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.emotion-tag {
    padding: 6px 12px;
    background: rgba(33, 161, 121, 0.2);
    border: 1px solid rgba(33, 161, 121, 0.3);
    border-radius: 20px;
    font-size: 12px;
    color: var(--primary-light);
    transition: var(--transition);
}

.emotion-tag:hover {
    background: rgba(33, 161, 121, 0.3);
    transform: translateY(-2px);
}

/* 适用场景 */
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.scenario-item {
    display: flex;
    align-items: flex-start;
    background: var(--darker-bg);
    padding: 12px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.scenario-item:hover {
    background: rgba(33, 161, 121, 0.2);
    transform: translateY(-3px);
}

.scenario-icon {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 14px;
}

.scenario-text {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.5;
}

/* 科学发现与小知识 */
.facts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fact-item {
    display: flex;
    background: var(--darker-bg);
    padding: 15px;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.fact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(33, 161, 121, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fact-item:hover::before {
    opacity: 1;
}

.fact-item i {
    color: var(--primary-light);
    margin-right: 12px;
    font-size: 16px;
    padding-top: 3px;
}

.fact-item p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
}

/* 评价部分 */
.rating-comment {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
    border-left: 2px solid rgba(33, 161, 121, 0.5);
}

.rating-display {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.rating-score-container {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rating-circle {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.rating-circle-bg {
    stroke-dasharray: 100;
    stroke-dashoffset: 0;
}

.rating-circle-fill {
    stroke-dasharray: 0, 100;
    stroke-linecap: round;
    filter: drop-shadow(0 0 5px var(--primary-glow));
    transition: stroke-dasharray 1.5s ease-out;
}

.rating-value {
    position: absolute;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-light);
    text-shadow: 0 0 10px var(--primary-glow);
}

.rating-value span {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
}

/* DeepSeek标记 */
.deepseek-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background: rgba(33, 161, 121, 0.1);
    border: 1px solid rgba(33, 161, 121, 0.2);
    border-radius: 20px;
    font-size: 12px;
    color: var(--primary-light);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.deepseek-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(33, 161, 121, 0.2), transparent);
    animation: shimmerEffect 2s infinite;
}

@keyframes shimmerEffect {
    0% { left: -100%; }
    100% { left: 100%; }
}

.deepseek-badge i {
    margin-right: 8px;
}

.deepseek-badge:hover {
    background: rgba(33, 161, 121, 0.2);
    transform: translateY(-2px);
}

/* 加载动画 */
.ai-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.ai-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(33, 161, 121, 0.1) 0%, transparent 70%);
    animation: pulseBg 2s infinite;
}

@keyframes pulseBg {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(33, 161, 121, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(720deg); }
}

.ai-loading span {
    margin-top: 20px;
    font-size: 16px;
    color: var(--primary-light);
    text-shadow: 0 0 10px var(--primary-glow);
    animation: pulseTxt 2s infinite;
}

@keyframes pulseTxt {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* 错误状态 */
.ai-error {
    padding: 25px;
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 10px;
    color: #e74c3c;
    text-align: center;
    font-size: 16px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .ai-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .ai-stats {
        width: 100%;
        justify-content: space-around;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .scenarios-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ai-title h3 {
        font-size: 18px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .rating-score-container {
        width: 100px;
        height: 100px;
    }
    
    .rating-value {
        font-size: 24px;
    }
} 