/* 全局样式 */
:root {
    --primary-color: #0071e3;
    --text-color: #1d1d1f;
    --light-gray: #f5f5f7;
    --border-color: #d2d2d7;
    --success-color: #28cd41;
    --warning-color: #ff9500;
    --danger-color: #ff3b30;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
    color: var(--text-color);
    line-height: 1.5;
    background-color: #fff;
}

/* 页面容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 顶部导航 */
.top-nav {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
}

/* 文件上传区域 */
.upload-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background-color: var(--light-gray);
    border-radius: 18px;
    text-align: center;
    margin: 40px 0;
}

.upload-section h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.upload-section p {
    font-size: 1.25rem;
    color: #515154;
    margin-bottom: 40px;
    max-width: 600px;
}

.file-upload {
    display: inline-block;
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.upload-btn {
    background-color: var(--primary-color);
    color: white;
    font-size: 1rem;
    font-weight: 400;
    padding: 12px 24px;
    border-radius: 980px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    background-color: #0062cc;
}

/* 报告内容区域 */
.report-container {
    display: none;
    margin-top: 40px;
}

/* 导航菜单 */
.report-nav {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.nav-item {
    padding: 10px 20px;
    margin: 0 10px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: var(--primary-color);
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* 报告内容 */
.report-section {
    display: none;
    padding: 20px;
    animation: fadeIn 0.5s ease;
}

.report-section.active {
    display: block;
}

.report-header {
    margin-bottom: 30px;
    text-align: center;
}

.report-header h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.report-header p {
    font-size: 1.1rem;
    color: #515154;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.subsection-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 20px 0 10px;
}

.content-text {
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* 图表容器 */
.chart-container {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    padding: 20px;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
}

.chart-wrapper {
    width: 100%;
    height: 300px;
    position: relative;
}

.chart-wrapper.half-width {
    width: 50%;
    margin: 0 auto;
}

/* 数据卡片样式 */
.data-summary {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 20px;
    gap: 15px;
}

.data-summary.horizontal {
    flex-direction: row;
}

.data-card {
    background-color: var(--light-gray);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    min-width: 100px;
    flex: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.data-card:hover {
    transform: translateY(-5px);
}

.data-card.large {
    padding: 30px;
    max-width: 300px;
    margin: 0 auto;
}

.data-card.highlight {
    background-color: rgba(0, 113, 227, 0.1);
    border-left: 4px solid var(--primary-color);
}

.data-value {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.data-card.large .data-value {
    font-size: 3rem;
}

.data-label {
    font-size: 0.9rem;
    color: #515154;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--light-gray);
    font-weight: 500;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background-color: rgba(0, 113, 227, 0.05);
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .report-nav {
        flex-wrap: wrap;
    }
    
    .nav-item {
        margin: 5px;
    }
    
    .upload-section h1 {
        font-size: 2rem;
    }
    
    .upload-section p {
        font-size: 1rem;
    }
    
    .chart-wrapper.half-width {
        width: 100%;
    }
    
    .data-summary {
        flex-direction: column;
    }
    
    .data-summary.horizontal {
        flex-direction: column;
    }
}

/* 导航操作区 */
.nav-actions {
    display: flex;
    align-items: center;
}

.return-btn {
    background-color: transparent;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 980px;
    border: 1px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* 上传提示 */
.upload-tip {
    margin-top: 30px;
    max-width: 600px;
    text-align: center;
}

.upload-tip p {
    font-size: 0.9rem;
    color: #8e8e93;
    line-height: 1.4;
} 