/**
 * AI气味推荐系统样式
 */

.ai-recommender {
    background: rgba(10, 25, 47, 0.7);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 195, 255, 0.2);
}

.ai-recommender-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.ai-recommender-header i {
    color: #00ffaa;
    font-size: 24px;
    margin-right: 10px;
}

.ai-recommender-header h3 {
    color: #fff;
    margin: 0;
    font-size: 20px;
}

.recommender-desc {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.input-group {
    display: flex;
    margin-bottom: 20px;
}

.input-group input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid rgba(0, 195, 255, 0.3);
    background: rgba(13, 33, 61, 0.8);
    border-radius: 8px 0 0 8px;
    color: white;
    font-size: 15px;
}

.input-group button {
    background: linear-gradient(90deg, #0070ff, #00c3ff);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.input-group button i {
    margin-right: 8px;
}

.input-group button:hover {
    background: linear-gradient(90deg, #0062e6, #00b3ff);
}

#ai-loading, #deepseek-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.8);
}

#ai-loading .spinner, #deepseek-loading .spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 195, 255, 0.3);
    border-top-color: #00ffaa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 15px;
}

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

.ai-results, #ai-results, #deepseek-results {
    background: rgba(13, 33, 61, 0.5);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.recommendation-query {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 195, 255, 0.2);
}

.recommendation-query h4 {
    color: #4facfe;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.recommendation-query h4 i {
    margin-right: 8px;
}

.recommendation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.recommendation-card {
    background: rgba(13, 33, 61, 0.6);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(0, 195, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.recommendation-card:hover {
    background: rgba(15, 40, 70, 0.7);
    border-color: rgba(0, 195, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.recommendation-card h5 {
    color: #00ffaa;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    border-bottom: 1px solid rgba(0, 255, 170, 0.2);
    padding-bottom: 8px;
}

.recommendation-card p {
    color: #fff;
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.5;
}

.recommendation-reason {
    color: #ccc !important;
    font-style: italic;
    margin-bottom: 15px !important;
    padding-left: 5px;
    border-left: 2px solid rgba(0, 195, 255, 0.3);
}

.view-scent-btn {
    background: rgba(0, 195, 255, 0.2);
    color: #4facfe;
    border: 1px solid rgba(0, 195, 255, 0.3);
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    display: inline-block;
    margin-top: 10px;
}

.view-scent-btn:hover {
    background: rgba(0, 195, 255, 0.3);
    color: white;
}

.no-results {
    text-align: center;
    color: #ff9900;
    padding: 20px;
    font-style: italic;
}

/* DeepseekR1 特有样式 */
#deepseek-recommender-section .ai-recommender-header i {
    color: #ff9900;
}

#deepseek-recommender-section .input-group button {
    background: linear-gradient(90deg, #ff9900, #ff6a00);
}

#deepseek-recommender-section .input-group button:hover {
    background: linear-gradient(90deg, #ff8800, #ff5500);
}

.external-scent {
    position: relative;
    border: 1px solid rgba(255, 130, 0, 0.4) !important;
    background: linear-gradient(180deg, rgba(30, 20, 10, 0.4), rgba(40, 25, 15, 0.6)) !important;
}

.external-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 130, 0, 0.8);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 18px;
    color: #4facfe;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 195, 255, 0.2);
}

.section-title i {
    margin-right: 8px;
}

.recommendation-section {
    margin-top: 20px;
}

.external-scent .recommendation-reason {
    border-left: 2px solid rgba(255, 153, 0, 0.4);
}

.custom-recommendation-info {
    background: rgba(0, 255, 170, 0.05);
    border-radius: 8px;
    padding: 10px;
    margin-top: 20px;
    border: 1px dashed rgba(0, 255, 170, 0.3);
}

.ai-error {
    background: rgba(255, 68, 68, 0.1);
    border-radius: 8px;
    padding: 15px;
    color: #ff4444;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.ai-error i {
    font-size: 24px;
    margin-bottom: 10px;
    color: #ff4444;
}

.ai-error button {
    margin-top: 10px;
    background: rgba(255, 68, 68, 0.8);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.ai-error button:hover {
    background: #ff4444;
}

/* 分类分布 */
.category-summary {
    margin: 15px 0 25px;
    background: rgba(15, 25, 45, 0.4);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.category-distribution {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-pill {
    background: rgba(33, 161, 121, 0.1);
    border: 1px solid rgba(33, 161, 121, 0.2);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-muted);
}

.category-pill:hover {
    background: rgba(33, 161, 121, 0.2);
    color: var(--text-color);
    transform: translateY(-2px);
}

.category-pill.active {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(33, 161, 121, 0.3);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .ai-recommender {
        padding: 20px;
        margin: 30px 15px;
    }
    
    .input-group {
        flex-direction: column;
        border-radius: 10px;
        overflow: hidden;
    }
    
    #ai-prompt {
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    #get-recommendations {
        padding: 12px;
        width: 100%;
    }
    
    .match-reason {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .ai-recommender {
        padding: 20px;
        margin: 30px 15px;
    }
    
    .input-group {
        flex-direction: column;
        border-radius: 10px;
        overflow: hidden;
    }
    
    #ai-prompt {
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    #get-recommendations {
        padding: 12px;
        width: 100%;
    }
    
    .match-reason {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    /* 移动端思考过程调整 */
    .thinking-process {
        padding: 15px;
    }
    
    .thinking-step {
        padding: 10px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

/* AI思考过程可视化 */
.thinking-process {
    margin-top: 25px;
    background: rgba(10, 25, 47, 0.6);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0, 195, 255, 0.15);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.thinking-process h4 {
    color: #4facfe;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.thinking-process h4 i {
    color: #00ffaa;
}

.thinking-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thinking-step {
    display: flex;
    padding: 12px;
    border-radius: 8px;
    background: rgba(15, 40, 70, 0.4);
    opacity: 0.5;
    transition: all 0.3s ease;
    position: relative;
    border-left: 3px solid transparent;
}

.thinking-step.active {
    opacity: 1;
    background: rgba(15, 40, 70, 0.7);
    border-left: 3px solid #4facfe;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.thinking-step.completed {
    opacity: 0.8;
    border-left: 3px solid #00ffaa;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(79, 172, 254, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #4facfe;
    margin-right: 12px;
    flex-shrink: 0;
    border: 1px solid rgba(79, 172, 254, 0.3);
}

.thinking-step.completed .step-number {
    background: rgba(0, 255, 170, 0.1);
    color: #00ffaa;
    border-color: rgba(0, 255, 170, 0.3);
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.step-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.4;
}

.step-progress {
    height: 4px;
    background: rgba(79, 172, 254, 0.1);
    border-radius: 2px;
    margin-top: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    border-radius: 2px;
    animation: progress 1.5s infinite linear;
}

@keyframes progress {
    0% {
        left: -30%;
    }
    100% {
        left: 100%;
    }
}

.thinking-summary {
    display: flex;
    align-items: center;
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 255, 170, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 170, 0.2);
}

.summary-icon {
    color: #00ffaa;
    font-size: 20px;
    margin-right: 12px;
}

.summary-content {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* 思考详情样式 */
.step-details {
    margin-top: 10px;
    padding: 10px;
    background: rgba(15, 30, 60, 0.4);
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
    border-left: 2px solid rgba(79, 172, 254, 0.4);
    opacity: 0;
    transform: translateY(10px);
    animation: details-appear 0.5s forwards;
}

@keyframes details-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.details-reveal {
    animation: details-reveal 0.7s ease forwards;
}

@keyframes details-reveal {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.thinking-step.completed .step-details {
    border-left-color: rgba(0, 255, 170, 0.4);
}

.step-progress {
    height: 4px;
    background: rgba(79, 172, 254, 0.1);
    border-radius: 2px;
    margin-top: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    border-radius: 2px;
    animation: progress 1.5s infinite linear;
}

@keyframes progress {
    0% {
        left: -30%;
    }
    100% {
        left: 100%;
    }
}

.thinking-summary {
    display: flex;
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 255, 170, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 170, 0.2);
    animation: summary-appear 0.6s ease forwards;
}

@keyframes summary-appear {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.summary-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 255, 170, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00ffaa;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 20px;
    border: 1px solid rgba(0, 255, 170, 0.3);
}

.summary-content {
    flex: 1;
}

.summary-content p {
    margin: 0 0 5px 0;
}

.summary-content p:last-child {
    margin: 0;
}

.summary-stats {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* 增强科技感思考过程动画 - 紧凑版 */
.neural-thinking-process {
    margin-top: 15px;
    background: rgba(10, 25, 47, 0.7);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(0, 195, 255, 0.2);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.neural-thinking-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 195, 255, 0.2);
}

.neural-thinking-header::after {
    display: none;
}

.neural-thinking-header h4 {
    color: #4facfe;
    margin: 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.neural-model-badge {
    background: rgba(0, 255, 170, 0.1);
    color: #00ffaa;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 170, 0.3);
    display: flex;
    align-items: center;
    gap: 5px;
}

.neural-steps {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
    padding-left: 0;
}

.neural-steps::before {
    display: none;
}

.neural-step {
    display: flex;
    padding: 8px;
    border-radius: 6px;
    background: rgba(15, 40, 70, 0.5);
    opacity: 0.6;
    transition: all 0.3s ease;
    position: relative;
    border-left: 2px solid transparent;
    transform: translateX(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1;
    width: calc(33.33% - 6px);
    min-width: 150px;
    flex-grow: 1;
}

.neural-step.active {
    opacity: 1;
    background: rgba(15, 40, 70, 0.8);
    border-left: 2px solid #4facfe;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.neural-step.completed {
    opacity: 0.8;
    border-left: 2px solid #00ffaa;
}

.step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(79, 172, 254, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #4facfe;
    margin-right: 8px;
    flex-shrink: 0;
    border: 1px solid rgba(79, 172, 254, 0.3);
    position: relative;
    z-index: 2;
    font-size: 12px;
}

.neural-step.completed .step-number {
    background: rgba(0, 255, 170, 0.1);
    color: #00ffaa;
    border-color: rgba(0, 255, 170, 0.3);
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: bold;
    color: #fff;
    margin-bottom: 2px;
    font-size: 12px;
}

.step-desc {
    display: none;
}

.neural-progress {
    height: 2px;
    background: rgba(79, 172, 254, 0.15);
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
    position: relative;
}

.neural-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    border-radius: 2px;
    transition: width 0.1s linear;
}

.neural-progress-glow {
    display: none;
}

.neural-step-details {
    display: none;
}

.neural-completion {
    display: flex;
    align-items: center;
    margin-top: 10px;
    padding: 8px;
    background: rgba(0, 255, 170, 0.08);
    border-radius: 6px;
    border: 1px solid rgba(0, 255, 170, 0.2);
    animation: completion-appear 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    position: relative;
    overflow: hidden;
}

@keyframes completion-appear {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.summary-icon {
    width: 24px;
    height: 24px;
    background: rgba(0, 255, 170, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00ffaa;
    margin-right: 10px;
    flex-shrink: 0;
    font-size: 14px;
    border: 1px solid rgba(0, 255, 170, 0.3);
}

.summary-content {
    flex: 1;
    font-size: 12px;
}

.summary-content p {
    margin: 0;
    color: #00ffaa;
    font-weight: 500;
}

.summary-stats {
    margin: 0;
    font-size: 10px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    font-weight: normal !important;
    font-style: italic;
}

/* 气味粒子动画容器样式 */
.scent-particles-container {
    width: 100%;
    height: 300px;
    margin: 0 auto 25px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 195, 255, 0.2);
    background-color: rgba(7, 19, 42, 0.8);
    border: 1px solid rgba(0, 195, 255, 0.2);
}

.scent-particles-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 170, 0.5), transparent);
    z-index: 2;
    animation: scan-line 3s linear infinite;
}

.scent-particles-container:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(7, 19, 42, 0.9), transparent);
    z-index: 1;
    pointer-events: none;
}

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

/* 粒子界面装饰元素 */
.particle-decoration {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    color: rgba(0, 195, 255, 0.6);
    font-size: 12px;
    font-family: monospace;
}

.top-left-decoration {
    top: 10px;
    left: 15px;
}

.top-right-decoration {
    top: 10px;
    right: 15px;
}

.bottom-left-decoration {
    bottom: 10px;
    left: 15px;
}

.bottom-right-decoration {
    bottom: 10px;
    right: 15px;
}

/* WebGL错误消息样式 */
.webgl-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ff4444;
    text-align: center;
    background: rgba(10, 25, 47, 0.8);
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 68, 68, 0.3);
    max-width: 80%;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .scent-particles-container {
        height: 250px;
    }
}

/* 高科技加载动画样式 */
.hi-tech-loading-animation {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(7, 19, 42, 0.8);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 195, 255, 0.2) inset;
    border: 1px solid rgba(0, 195, 255, 0.3);
    position: relative;
    padding: 15px;
}

.hi-tech-loading-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffaa, transparent);
    animation: scan-horizontal 3s infinite linear;
}

.hi-tech-loading-animation::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00c3ff, transparent);
    animation: scan-horizontal 4s infinite linear reverse;
}

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

.tech-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
    padding: 20px;
}

/* 六边形动画容器 */
.hexagon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    position: relative;
    margin-bottom: 20px;
}

.hexagon {
    position: absolute;
    width: 60px;
    height: 35px;
    background-color: rgba(0, 195, 255, 0.1);
    border: 1px solid rgba(0, 195, 255, 0.5);
    transform: rotate(0deg);
    transition: all 0.3s ease;
}

.hexagon:before,
.hexagon:after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
}

.hexagon:before {
    top: -18px;
    border-bottom: 18px solid rgba(0, 195, 255, 0.1);
}

.hexagon:after {
    bottom: -18px;
    border-top: 18px solid rgba(0, 195, 255, 0.1);
}

.hexagon.hex1 {
    animation: rotate1 4s infinite linear;
    border-color: rgba(0, 255, 170, 0.5);
    background-color: rgba(0, 255, 170, 0.1);
}

.hexagon.hex2 {
    width: 80px;
    height: 46px;
    animation: rotate2 6s infinite linear;
}

.hexagon.hex3 {
    width: 100px;
    height: 58px;
    background-color: rgba(79, 172, 254, 0.05);
    border-color: rgba(79, 172, 254, 0.3);
    animation: rotate3 8s infinite linear;
}

.hexagon.hex2:before,
.hexagon.hex2:after {
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
}

.hexagon.hex2:before {
    top: -23px;
    border-bottom: 23px solid rgba(0, 195, 255, 0.1);
}

.hexagon.hex2:after {
    bottom: -23px;
    border-top: 23px solid rgba(0, 195, 255, 0.1);
}

.hexagon.hex3:before,
.hexagon.hex3:after {
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
}

.hexagon.hex3:before {
    top: -29px;
    border-bottom: 29px solid rgba(79, 172, 254, 0.05);
}

.hexagon.hex3:after {
    bottom: -29px;
    border-top: 29px solid rgba(79, 172, 254, 0.05);
}

@keyframes rotate1 {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes rotate3 {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(0.95); }
    100% { transform: rotate(360deg) scale(1); }
}

/* 扫描线 */
.scan-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffaa, transparent);
    opacity: 0.7;
    box-shadow: 0 0 10px rgba(0, 255, 170, 0.7);
    z-index: 2;
    pointer-events: none;
}

/* 技术指标样式 */
.tech-indicators {
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin: 20px 0;
    padding: 10px;
    background: rgba(10, 25, 47, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(0, 195, 255, 0.2);
}

.tech-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 10px;
    width: 22%;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.tech-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 1px;
    background: rgba(0, 195, 255, 0.2);
}

.tech-indicator:first-child::before {
    display: none;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 195, 255, 0.3);
    border: 1px solid rgba(0, 195, 255, 0.5);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.indicator-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    transition: all 0.3s ease;
}

.tech-indicator.active {
    opacity: 1;
}

.tech-indicator.active .indicator-dot {
    background: #00ffaa;
    box-shadow: 0 0 10px rgba(0, 255, 170, 0.7);
    border-color: rgba(0, 255, 170, 0.8);
}

.tech-indicator.active .indicator-text {
    color: #00ffaa;
}

.tech-indicator.completed .indicator-dot {
    background: #4facfe;
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.7);
    border-color: rgba(79, 172, 254, 0.8);
}

.tech-indicator.completed .indicator-text {
    color: #4facfe;
}

/* 分析统计指标 */
.analysis-stats {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 15px 0;
    justify-content: space-between;
}

.stat-item {
    background: rgba(10, 25, 47, 0.5);
    border: 1px solid rgba(0, 195, 255, 0.2);
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 13px;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    width: 32%;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    margin-right: 5px;
}

.stat-value {
    color: #00ffaa;
    font-weight: 500;
}

/* 状态文本 */
.status-text {
    width: 100%;
    padding: 10px;
    background: rgba(10, 25, 47, 0.7);
    border: 1px solid rgba(0, 195, 255, 0.2);
    border-radius: 5px;
    color: #4facfe;
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
    font-family: monospace;
}

/* 关键词提取容器 */
.keyword-extraction-container {
    margin-top: 20px;
    background: rgba(10, 25, 47, 0.5);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid rgba(0, 195, 255, 0.2);
    width: 100%;
}

.extraction-title {
    color: #4facfe;
    font-size: 14px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 195, 255, 0.2);
    display: flex;
    align-items: center;
}

.extraction-title::before {
    content: '❯';
    margin-right: 8px;
    color: #00ffaa;
}

.keywords-display {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.keyword-item {
    background: rgba(13, 33, 61, 0.7);
    border: 1px solid rgba(0, 255, 170, 0.3);
    border-radius: 20px;
    padding: 5px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 120px;
    animation: keyword-appear 0.5s ease forwards;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes keyword-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.keyword-text {
    color: white;
    font-size: 13px;
}

.keyword-score {
    color: #00ffaa;
    font-size: 12px;
    margin-left: 8px;
    background: rgba(0, 255, 170, 0.1);
    border-radius: 10px;
    padding: 2px 6px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tech-indicators {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .tech-indicator {
        width: 45%;
        margin-bottom: 10px;
    }
    
    .stat-item {
        width: 100%;
    }
    
    .keyword-item {
        min-width: 100px;
    }
}

/* 气味分析相关样式 */
.scent-analysis-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin-top: 25px;
}

.analysis-section {
    background: rgba(10, 25, 47, 0.5);
    border-radius: 8px;
    border: 1px solid rgba(0, 195, 255, 0.2);
    padding: 15px;
    transition: all 0.3s ease;
}

.analysis-section:hover {
    box-shadow: 0 0 15px rgba(0, 195, 255, 0.15);
    border-color: rgba(0, 195, 255, 0.3);
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 195, 255, 0.2);
    padding-bottom: 10px;
}

.section-icon {
    font-size: 18px;
    margin-right: 10px;
    background: rgba(0, 195, 255, 0.1);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(0, 195, 255, 0.3);
}

.section-header h3 {
    margin: 0;
    font-size: 16px;
    color: #4facfe;
    font-weight: 500;
}

.analyzing-text {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    text-align: center;
    padding: 15px 0;
    animation: pulse 1.5s infinite ease-in-out;
}

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

/* 分子结构可视化 */
.molecular-visualization {
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 20px;
}

.molecule-structure {
    position: relative;
    width: 120px;
    height: 120px;
    transform-style: preserve-3d;
    animation: rotate-molecule 15s infinite linear;
}

@keyframes rotate-molecule {
    0% { transform: rotateY(0deg) rotateX(20deg); }
    100% { transform: rotateY(360deg) rotateX(20deg); }
}

.atom {
    position: absolute;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.atom-oxygen {
    width: 24px;
    height: 24px;
    background: rgba(255, 50, 50, 0.8);
    top: 50%;
    left: 50%;
    z-index: 3;
}

.atom-carbon {
    width: 20px;
    height: 20px;
    background: rgba(100, 100, 100, 0.8);
    top: 30%;
    left: 30%;
    z-index: 2;
}

.atom-hydrogen {
    width: 16px;
    height: 16px;
    background: rgba(200, 200, 255, 0.8);
    top: 70%;
    left: 70%;
    z-index: 1;
}

.bond {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    height: 3px;
    transform-origin: 0 0;
}

.bond-1 {
    width: 40px;
    top: 50%;
    left: 50%;
    transform: rotate(45deg);
}

.bond-2 {
    width: 35px;
    top: 30%;
    left: 30%;
    transform: rotate(-30deg);
}

.bond-3 {
    width: 45px;
    top: 50%;
    left: 50%;
    transform: rotate(135deg);
}

/* 分析阶段容器 */
.analysis-phase-container {
    width: 100%;
    margin-bottom: 20px;
}

.analysis-header {
    color: #00ffaa;
    text-align: center;
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 195, 255, 0.2);
    font-weight: 500;
}

/* 气味成分分析 */
.molecular-components {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.component-item {
    display: flex;
    flex-direction: column;
    animation: fade-in 0.5s ease forwards;
    opacity: 0;
}

.component-item:nth-child(1) { animation-delay: 0.1s; }
.component-item:nth-child(2) { animation-delay: 0.3s; }
.component-item:nth-child(3) { animation-delay: 0.5s; }
.component-item:nth-child(4) { animation-delay: 0.7s; }

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

.component-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.component-name::before {
    content: '⚛';
    margin-right: 5px;
    font-size: 12px;
    color: #00ffaa;
}

.component-bar-container {
    height: 8px;
    background: rgba(10, 25, 47, 0.5);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.component-bar {
    height: 100%;
    background: linear-gradient(90deg, #00ffaa, #4facfe);
    border-radius: 4px;
    width: 0;
    animation: expand-bar 1.5s ease forwards;
}

@keyframes expand-bar {
    from { width: 0; }
    to { width: var(--width, 50%); }
}

.component-percentage {
    position: absolute;
    right: 5px;
    font-size: 11px;
    color: white;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.7);
}

/* 香调特征分布 */
.scent-profile-chart {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.profile-item {
    display: flex;
    flex-direction: column;
    animation: fade-in 0.5s ease forwards;
    opacity: 0;
}

.profile-item:nth-child(1) { animation-delay: 0.1s; }
.profile-item:nth-child(2) { animation-delay: 0.3s; }
.profile-item:nth-child(3) { animation-delay: 0.5s; }

.profile-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.profile-name::before {
    content: '○';
    margin-right: 5px;
    font-size: 14px;
    color: #4facfe;
}

.profile-bar-container {
    height: 10px;
    background: rgba(10, 25, 47, 0.5);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.profile-bar {
    height: 100%;
    background: linear-gradient(90deg, #4facfe, #00f2fe);
    border-radius: 5px;
    width: 0;
    animation: expand-bar 1.5s ease forwards;
}

.profile-percentage {
    position: absolute;
    right: 5px;
    font-size: 11px;
    color: white;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.7);
}

/* 情绪联想映射 */
.emotion-mapping {
    margin-top: 20px;
    animation: fade-in 0.5s ease forwards;
    animation-delay: 0.7s;
    opacity: 0;
}

.emotion-header {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 10px;
}

.emotion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.emotion-tag {
    background: rgba(0, 195, 255, 0.1);
    border: 1px solid rgba(0, 195, 255, 0.3);
    border-radius: 15px;
    padding: 5px 12px;
    color: #4facfe;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
}

.emotion-tag small {
    margin-left: 5px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
}

/* 关键词提取更新 */
.keywords-display {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 50px;
}

.keyword-item {
    background: rgba(13, 33, 61, 0.7);
    border: 1px solid rgba(0, 195, 255, 0.3);
    border-radius: 20px;
    padding: 5px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 120px;
    animation: keyword-appear 0.5s ease forwards;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes keyword-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.keyword-text {
    color: white;
    font-size: 13px;
}

.keyword-score {
    color: #00ffaa;
    font-size: 12px;
    margin-left: 8px;
    background: rgba(0, 255, 170, 0.1);
    border-radius: 10px;
    padding: 2px 6px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .tech-indicators {
        flex-wrap: wrap;
    }
    
    .tech-indicator {
        width: 45%;
        margin-bottom: 10px;
    }
    
    .emotion-tags {
        flex-direction: column;
    }
    
    .emotion-tag {
        width: fit-content;
    }
} 