/* 全局样式 */
:root {
    --primary-color: #e74c3c;
    --primary-light: #ff6b6b;
    --primary-dark: #c0392b;
    --secondary-color: #f39c12;
    --background-light: #fff5f5;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --border-radius: 16px;
    --box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html, body {
    margin: 0;
    padding: 0; 
    height: 100%;
    width: 100%;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f8f9fa;
}

/* 导航栏样式 */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #ffffff;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 70px; /* 确保导航栏高度足够 */
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 35px; /* 将高度从40px减小到35px */
    width: 45.98px; /* 35 * (516/365) 保持原始宽高比 */
    object-fit: contain;
}

.logo-text {
    color: white;
    font-size: 1.2rem; /* 将字体从1.4rem减小到1.2rem */
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

/* 主要内容区域 */
main {
    max-width: 1200px;
    margin: 6rem auto 2rem;
    padding: 0 2rem;
}
.background-img {
    width: 100vw;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

/* 首页样式 */
.hero {
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 2rem;
    color: white;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: white;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    transition: var(--transition);
    font-weight: bold;
    box-shadow: var(--box-shadow);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* 特性卡片样式 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    padding: 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* 系统优势样式 */
.advantages {
    padding: 4rem 0;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 3rem 0;
}

.advantages h2 {
    text-align: center;
    color: var(--text-color);
    font-size: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.advantages h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.advantage-card {
    text-align: center;
    padding: 2rem;
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.advantage-card:hover::before {
    opacity: 0.1;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.advantage-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.advantage-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
}

.advantage-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

/* 标签页样式 */
.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    background: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.tab-button {
    padding: 1rem 2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-light);
    transition: var(--transition);
    border-radius: 8px;
    position: relative;
}

.tab-button:hover {
    color: var(--primary-color);
    background-color: rgba(231, 76, 60, 0.1);
}

.tab-button.active {
    color: var(--primary-color);
    font-weight: bold;
    background-color: rgba(231, 76, 60, 0.1);
}

.tab-pane {
    display: none;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.tab-pane h2 {
    display: none; /* 隐藏原有的标题 */
}

/* 上传区域样式优化 */
.upload-section {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    position: relative;
}

.upload-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.upload-section h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
    position: relative;
}

.upload-section h3::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.upload-section:hover h3::before {
    width: 100px;
}

.template-download {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e74c3c;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    background-color: #fff5f5;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.template-download:hover {
    background-color: #ffecec;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.2);
}

.template-download:active {
    transform: translateY(0);
}

.tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.tooltip-icon {
    color: #95a5a6;
    font-size: 16px;
    cursor: help;
    transition: color 0.3s ease;
}

.template-download:hover .tooltip-icon {
    color: #e74c3c;
}

.tooltip-content {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #2c3e50;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.tooltip:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
    top: -40px;
}

.file-upload-container {
    position: relative;
    border: 2px dashed #e74c3c;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    background-color: #fff5f5;
}

.file-upload-container.dragover {
    border-color: #c0392b;
    background-color: #ffecec;
    transform: scale(1.02);
}

.file-upload-label {
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.file-upload-label:hover {
    transform: translateY(-2px);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #e74c3c;
    transition: transform 0.3s ease;
}

.file-upload-label:hover .upload-icon {
    transform: scale(1.1);
}

.upload-text {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 500;
}

.upload-hint {
    font-size: 14px;
    color: #7f8c8d;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
}

.file-input {
    display: none;
}

.file-preview {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease;
}

.file-preview.active {
    display: block;
}

.file-info {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #e74c3c;
}

.file-name {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 16px;
}

.file-size {
    color: #7f8c8d;
    font-size: 14px;
}

.file-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.evaluate-btn, .reupload-btn, .evaluate-all-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
    font-size: 0.9rem;
    outline: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.evaluate-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.reupload-btn {
    background-color: #f1f1f1;
    color: var(--text-color);
}

.reupload-btn:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.evaluate-all-btn {
    background-color: var(--secondary-color);
    color: white;
    display: block;
    margin: 2rem auto 1rem;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    animation: pulse 1.5s infinite;
}

.evaluate-all-btn:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    animation: none;
}

.upload-status {
    color: #2ecc71;
    font-weight: bold;
    padding: 0.4rem 0.8rem;
    background-color: #eafaf1;
    border-radius: 4px;
    margin-right: 0.5rem;
    display: inline-block;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(243, 156, 18, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(243, 156, 18, 0);
    }
}

/* 分析结果样式优化 */
.analysis-result {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease;
}

.analysis-result.has-result {
    display: block;
}

.loading {
    text-align: center;
    color: #7f8c8d;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loading::after {
    content: '';
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #e74c3c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.error {
    color: #e74c3c;
    text-align: center;
    padding: 20px;
    background-color: #ffecec;
    border-radius: 6px;
    border-left: 4px solid #e74c3c;
}

/* 提示框样式 */
.tooltip {
    position: relative;
    display: inline-block;
    margin-left: 0.5rem;
}

.tooltip-icon {
    color: var(--text-light);
    cursor: help;
    font-size: 1rem;
}

.tooltip-content {
    visibility: hidden;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--text-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    transition: var(--transition);
}

.tooltip:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}

/* 综合报告区域样式优化 */
.report-section {
    margin-top: 2rem;
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.report-section h2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e74c3c;
}

.report-info {
    font-size: 14px;
    color: #7f8c8d;
    background-color: #f8f9fa;
    padding: 6px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#comprehensive-report {
    margin-bottom: 1.5rem;
}

#comprehensive-report .report-section {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
    transition: transform 0.3s ease;
}

#comprehensive-report .report-section:hover {
    transform: translateX(5px);
}

#comprehensive-report h3 {
    color: #e74c3c;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

#comprehensive-report .report-content {
    line-height: 1.8;
    color: #2c3e50;
    padding: 1rem;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#export-report {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#export-report:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

#export-report:active {
    transform: translateY(0);
}

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

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

/* 页脚样式 */
footer {
    text-align: center;
    padding: 2rem 0;
    background-color: var(--primary-color);
    color: white;
    margin-top: 2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem;
    }

    nav ul {
        margin-top: 1rem;
        gap: 1rem;
    }

    .tabs {
        flex-direction: column;
    }

    .file-upload-label {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .advantage-card {
        padding: 1.5rem;
    }

    .advantages h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
}

/* 上传区域的显示和隐藏 */
.upload-section.hidden {
    display: none;
}

.upload-section {
    display: block;
    transition: opacity 0.3s ease;
}

/* Markdown 内容样式 */
.report-content {
    line-height: 1.6;
    color: #2c3e50;
}

.report-content h1,
.report-content h2,
.report-content h3,
.report-content h4,
.report-content h5,
.report-content h6 {
    color: #e74c3c;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-weight: 600;
}

.report-content p {
    margin-bottom: 1em;
}

.report-content ul,
.report-content ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}

.report-content li {
    margin-bottom: 0.5em;
}

.report-content code {
    background-color: #f8f9fa;
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: monospace;
}

.report-content pre {
    background-color: #f8f9fa;
    padding: 1em;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 1em;
}

.report-content blockquote {
    border-left: 4px solid #e74c3c;
    padding-left: 1em;
    margin-left: 0;
    color: #7f8c8d;
    font-style: italic;
}

.report-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
}

.report-content th,
.report-content td {
    border: 1px solid #ddd;
    padding: 0.5em;
    text-align: left;
}

.report-content th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.report-content tr:nth-child(even) {
    background-color: #f8f9fa;
} 