.ai-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    text-align: center;
    border: 1px solid #e1e8ed;
    box-sizing: border-box;
}



@media screen and (max-width: 680px) {
    .ai-section {
        width: calc(100% + 36px) !important;
        margin: 335px -18px 20px;
        padding: 15px;
        box-sizing: border-box;
        clear: both;
    }
}

.ai-suggestions h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 18px;
}

.ai-suggestions p {
    color: #5a6c7d;
    margin-bottom: 20px;
    font-size: 14px;
}

.ai-generate-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.ai-generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.ai-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e1e8ed;
}

.ai-powered {
    background: #fff;
    color: #999;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
}

.progress-container {
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e1e8ed;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    margin-top: 8px;
    font-weight: bold;
    color: #667eea;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 10px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



/* AI内容显示容器样式 - 确保内容完整显示 - Updated: 2025-06-28 13:45 */
.task-content {
    margin-top: 15px;
}

/* 强制刷新缓存 - 2024-12-19 15:30:00 */
div.task-content div.ai-content-container {
    overflow-y: visible !important;
    overflow-x: visible !important;
    overflow: visible !important;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid #dee2e6;
    /* 移除高度限制，让内容完整显示 */
    max-height: none !important;
    height: auto !important;
    min-height: auto !important;
    word-wrap: break-word;
    white-space: pre-wrap;
    display: block !important;
}

/* 为长内容添加合理的最大高度和滚动 */
.task-content .ai-content-container.scrollable {
    max-height: 400px;
    overflow-y: auto;
}

/* 内容预览标题样式 */
.content-preview-title {
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

/* 操作按钮样式 */
.content-actions {
    margin-top: 8px;
}

.content-actions .btn {
    font-size: 12px;
    margin-right: 5px;
}

.ai-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #666;
}

.ai-cache, .ai-fresh {
    background: #e8f5e8;
    color: #2d5a2d;
    padding: 2px 8px;
    border-radius: 10px;
}

.ai-fresh {
    background: #fff3cd;
    color: #856404;
}

/* AI内容样式优化 - 确保标题正确显示 */
.ai-title-main {
    font-size: 1.5em !important;
    color: #333 !important;
    font-weight: bold !important;
    margin: 15px 0 10px 0 !important;
    line-height: 1.4 !important;
}

.ai-title-section {
    font-size: 1.3em !important;
    color: #444 !important;
    font-weight: bold !important;
    margin: 12px 0 8px 0 !important;
    line-height: 1.3 !important;
}

.ai-title-content {
    font-size: 1.2em !important;
    color: #555 !important;
    font-weight: bold !important;
    margin: 10px 0 6px 0 !important;
    line-height: 1.2 !important;
}



/* AI内容文本样式 - 代码编辑器风格 */
.ai-content {
    text-align: left;
    white-space: pre-wrap !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin: 8px 0 !important;
    padding: 40px!important;
    background: #ffffff !important;
    border: 1px solid #e1e8ed !important;
    border-radius: 8px !important;
    position: relative !important;
    overflow: visible !important;
    min-height: 120px !important;
    resize: vertical !important;
    user-select: text !important;
    cursor: text !important;
}



.ai-content p {
    margin: 0 !important;
    padding: 0 !important;
}

.ai-content div {
    margin: 0 !important;
    padding: 0 !important;
}

.ai-content strong {
    font-weight: bold !important;
    color: #222 !important;
}

.ai-content a {
    color: #007bff !important;
    text-decoration: underline !important;
}

.ai-content a:hover {
    color: #0056b3 !important;
}

/* 确保AI内容容器内的所有文本都可见 */
.ai-result-content {
    color: #333 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.ai-result-content * {
    color: inherit !important;
}

.ai-result-content h5 {
    color: #2c3e50;
    margin: 15px 0 8px 0;
    font-size: 16px;
}

.ai-result-content a {
    color: #667eea;
    text-decoration: none;
}

.ai-result-content a:hover {
    text-decoration: underline;
}

.ai-footer {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e1e8ed;
    color: #999;
}

.ai-error {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: #c53030;
}

.retry-btn {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.retry-btn:hover {
    background: #c53030;
}

/* 代码编辑器风格的复制按钮 */
.ai-copy-btn {
    position: absolute !important;
    top: 20px !important;
    right: 12px !important;
    z-index: 100 !important;
    background: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
    color: #495057 !important;
    padding: 8px 15px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin: 3px !important;
}

.ai-copy-btn:hover {
    background: #e9ecef !important;
}

.ai-copy-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
}



/* 隐藏滚动条 */
.ai-content::-webkit-scrollbar {
    display: none !important;
}

.ai-content {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

/* 选中文本的样式 */
.ai-content::selection {
    background: rgba(0, 123, 255, 0.2) !important;
    color: inherit !important;
}

.ai-content::-moz-selection {
    background: rgba(0, 123, 255, 0.2) !important;
    color: inherit !important;
}

/* 行号样式（可选） */
.ai-content.with-line-numbers {
    counter-reset: line-number !important;
    padding-left: 50px !important;
}

.ai-content.with-line-numbers::before {
    content: counter(line-number) !important;
    counter-increment: line-number !important;
    position: absolute !important;
    left: 10px !important;
    color: #858585 !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    user-select: none !important;
    pointer-events: none !important;
}

/* 加载条样式 */
.progress-loader {
    width: 343px;
    background: rgba(255, 255, 255, 0.2);
    height: 5px;
    border-radius: 7px;
    margin: 15px auto 0 auto;
    position: relative;
}

.progress {
    content: "";
    width: 1px;
    height: 5px;
    border-radius: 7px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: 0.5s;
    animation: loading1274 2s ease infinite;
}

@keyframes loading1274 {
    0% {
        width: 0%;
    }

    10% {
        width: 10%;
    }

    50% {
        width: 40%;
    }

    60% {
        width: 60%;
    }

    100% {
        width: 100%;
    }
}

      .ai-evaluation-module {
                padding: 0 20px;
                background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
                border-radius: 12px;
                border: 1px solid #e1e8ed;
              }
              
              .ai-card {
                border-radius: 12px;
                overflow: hidden;
              }
              
              .ai-card-body {
                display: grid;
                grid-template-columns: 1fr;
                gap: 0.5rem;
              }
              
              .ai-card-item {
                 background-color: #f8fafc;
                 border-radius: 0.75rem;
                 padding: 0.5rem;
                 margin-bottom: 0.5rem;
                 border: 1px solid #e5e7eb;
                 transition: all 0.3s ease-in-out;
                 display: flex;
                 align-items: flex-start;
               }
              
              .ai-card-item-icon {
                width: 3.5rem!important;
                height: 3.5rem!important;
                border-radius: 0.75rem;
                display: flex;
                align-items: center;
                justify-content: center;
                flex-shrink: 0;
                margin-top: 0.5rem;
              }
              
              .ai-card-item-icon i {
                font-size: 1.25rem;
              }
              
              .ai-card-item-icon img {
                width: 1.25rem;
                height: 1.25rem;
              }
              
              .ai-card-item-icon-primary {
                 background-color: rgba(59, 130, 246, 0.1);
                 color: #3b82f6;
               }
               
               .ai-card-item-icon-secondary {
                 background-color: rgba(16, 185, 129, 0.1);
                 color: #10b981;
               }
               
               .ai-card-item-icon-accent {
                 background-color: rgba(245, 158, 11, 0.1);
                 color: #f59e0b;
               }
              
              .ai-card-item-content {
                margin-left: 0.75rem;
              }
              
              .ai-card-item-content h2 {
                 font-size: 18px!important;
                 font-weight: bold;
                 margin-top: 0.3rem;
                 margin-bottom: 0.125rem;
                 color: #1e293b;
               }
              
              .ai-card-item-content p {
                color: #4b5563!important;
                font-size: 14px!important;
                line-height: 1.1!important;
                margin-top: 0!important;
              }
              
              .ai-card-footer {
                padding: 0 3px;
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                align-items: center;
              }
              
              @media (min-width: 768px) {
                .ai-card-footer {
                  flex-direction: row;
                }
              }
              
              .ai-card-footer p {
                font-size: 0.5rem;
                color: #6b7280;
              }
              
              .ai-input-group {
                margin-bottom: 15px;
              }
              
              .ai-input {
                width: 100%;
                max-width: 400px;
                padding: 10px;
                border: 1px solid #e5e7eb;
                border-radius: 6px;
                font-size: 14px;
              }
              
              .ai-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    display: inline-block;
    vertical-align: top;
    text-decoration: none;
    text-underline-offset: 2px;
    transition: color .1s linear, background-color .1s linear, box-shadow .1s linear;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    margin: 0 auto;
    animation: pulse 2s ease-in-out infinite;
               }
              
              @keyframes pulse {
                0% {
                  transform: scale(1);
                }
                50% {
                  transform: scale(1.05);
                }
                100% {
                  transform: scale(1);
                }
              }
              
              .ai-btn:hover {
                transform: translateY(-1px) scale(1.08);
                box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
                animation-play-state: paused;
              }
              
              .ai-card-header {
                text-align: center;
              }

           