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

body {
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.navbar-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.navbar-menu {
    display: flex;
    list-style: none;
}

.navbar-item {
    margin-left: 2rem;
}

.navbar-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-link:hover {
    color: #3498db;
}

/* 英雄区 */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)),
                url('img/delivery-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 60px;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

.author-info {
    font-size: 1rem;
    opacity: 0.8;
}

.author-info span {
    margin: 0 1rem;
}

/* 主内容区 */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem;
}

.content-section {
    margin: 1.5rem auto;
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.section-intro {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: #555;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    position: relative;
    padding-bottom: 0.5rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #3498db, #2ecc71);
}

h3 {
    font-size: 1.4rem;
    margin: 1rem 0 0.6rem;
    color: #34495e;
}

h4 {
    font-size: 1.1rem;
    margin: 0.8rem 0 0.5rem;
    color: #2c3e50;
}

p {
    margin-bottom: 0.6rem;
}

/* 数据可视化 */
.data-visualization {
    margin: 1rem 0;
    padding: 0.8rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.chart-container {
    width: 100%;
    height: 300px;
    margin: 1rem 0;
    border-radius: 4px;
    overflow: hidden;
}

.chart-description {
    padding: 1rem;
    background-color: #f1f8ff;
    border-left: 4px solid #3498db;
    margin-top: 1rem;
}

/* 数据表格 */
.comparison-table-container {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.data-table.compact th,
.data-table.compact td {
    padding: 0.6rem;
    font-size: 0.95rem;
}

.data-table th {
    background-color: #3498db;
    color: white;
    font-weight: 600;
}

.data-table tr:nth-child(even) {
    background-color: #f5f5f5;
}

.data-table tr:hover {
    background-color: #e9f7fe;
}

.highlight-table .total-row {
    background-color: #e9f7fe;
    font-weight: bold;
}

.data-source-note {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: #777;
    font-style: italic;
}

/* 关键数据展示 */
.key-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 1rem 0;
    gap: 0.8rem;
}

.number-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
    width: 100%;
}

.stat-card, .number-item {
    flex: 1 1 200px;
    margin: 0.3rem;
    padding: 1.2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover, .number-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.stat-value, .number-item h3 {
    font-size: 2.2rem;
    font-weight: bold;
    margin: 0.8rem 0;
    color: #3498db;
}

.stat-label, .number-item p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.data-source {
    font-size: 0.8rem;
    color: #777;
    margin-top: 0.5rem;
}

/* 影响因素卡片 */
.factors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.factor-card {
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.factor-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #3498db;
}

.impact-level {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.high {
    background-color: #feeae9;
    color: #e74c3c;
}

.medium {
    background-color: #fef5e9;
    color: #f39c12;
}

.low {
    background-color: #e6f7ee;
    color: #2ecc71;
}

/* 收支比图表 */
.ratio-chart {
    margin: 2rem 0;
}

.ratio-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.ratio-label {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.ratio-bar {
    position: relative;
    height: 40px;
    background-color: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.ratio-income {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #3498db;
    display: flex;
    align-items: center;
    padding-left: 1rem;
    color: white;
}

.ratio-expense {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #e74c3c;
    display: flex;
    align-items: center;
    padding-left: 1rem;
    color: white;
}

.ratio-result {
    display: flex;
    justify-content: space-between;
}

.ratio-value, .net-income {
    font-weight: bold;
}

/* 交互式计算器 */
.calculator-container, .simulation-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.calculator-inputs, .simulation-controls {
    flex: 1 1 300px;
}

.calculator-result, .simulation-result {
    flex: 1 1 200px;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.input-group, .control-group {
    margin-bottom: 0.8rem;
}

.input-group label, .control-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.input-group input, .control-group input, .control-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.range-value, .control-value {
    display: inline-block;
    width: 60px;
    text-align: right;
    font-weight: 500;
    color: #3498db;
    margin-left: 0.5rem;
}

.result-item {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.result-label {
    font-weight: 500;
    color: #555;
}

.result-value {
    font-weight: 700;
    color: #3498db;
}

.breakdown-item {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
}

.breakdown-label {
    font-weight: 500;
    color: #555;
}

.breakdown-value {
    font-weight: 700;
    color: #3498db;
}

/* 结论部分 */
.conclusion-points {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.conclusion-point {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.conclusion-point ul, .final-thoughts ul {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.conclusion-point li, .final-thoughts li {
    margin-bottom: 0.8rem;
}

.final-thoughts {
    padding: 2rem;
    background-color: #f1f8ff;
    border-radius: 8px;
    margin-top: 3rem;
}

/* 页脚 */
.site-footer {
    background-color: #2c3e50;
    color: white;
    padding: 3rem 0;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: white;
    margin-left: 2rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3498db;
}

/* 返回顶部按钮 */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

#back-to-top:hover {
    background-color: #2980b9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .navbar-menu {
        display: none;
    }
    
    .key-stats {
        flex-direction: column;
    }
    
    .stat-card {
        margin: 1rem 0;
    }
    
    .factors-grid {
        grid-template-columns: 1fr;
    }
    
    .conclusion-points {
        grid-template-columns: 1fr;
    }
    
    .calculator-container, .simulation-container {
        flex-direction: column;
    }
}

/* 动画效果 */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

/* 骑手工作时长分布 */
.distribution-chart {
    margin: 1rem 0;
}

.distribution-bar {
    height: 30px;
    background-color: #f5f5f5;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    margin-bottom: 0.5rem;
}

.bar-segment {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    position: relative;
}

.bar-segment:nth-child(1) { background-color: #2ecc71; }
.bar-segment:nth-child(2) { background-color: #3498db; }
.bar-segment:nth-child(3) { background-color: #f1c40f; }
.bar-segment:nth-child(4) { background-color: #e67e22; }
.bar-segment:nth-child(5) { background-color: #e74c3c; }

.segment-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    color: #333;
    font-size: 0.7rem;
    margin-top: 0.3rem;
}

.distribution-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 0 0.5rem 0.5rem 0;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 0.3rem;
}

.legend-label {
    font-size: 0.8rem;
    color: #555;
}

/* 骑手一天时间线 */
.timeline-container {
    margin: 1rem 0;
    position: relative;
    max-width: 100%;
}

.timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 1rem;
    height: 100%;
    width: 2px;
    background-color: #3498db;
}

.timeline-item {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:before {
    content: attr(data-time);
    position: absolute;
    left: 0;
    width: 2rem;
    text-align: center;
    background-color: #3498db;
    color: white;
    padding: 0.2rem 0;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: bold;
}

.timeline-content {
    background-color: white;
    padding: 0.8rem;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.timeline-content h4 {
    margin-top: 0;
    color: #3498db;
    font-size: 1rem;
}

.timeline-content p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* 收支比例图表 */
.ratio-chart {
    margin: 1rem 0;
}

.ratio-item {
    margin-bottom: 1rem;
}

.ratio-label {
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.ratio-bar {
    position: relative;
    height: 2rem;
    background-color: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.3rem;
}

.ratio-income {
    position: absolute;
    height: 100%;
    background-color: rgba(52, 152, 219, 0.2);
    display: flex;
    align-items: center;
    padding-left: 0.5rem;
    font-size: 0.8rem;
    color: #3498db;
}

.ratio-expense {
    position: absolute;
    height: 100%;
    background-color: rgba(231, 76, 60, 0.2);
    display: flex;
    align-items: center;
    padding-left: 0.5rem;
    font-size: 0.8rem;
    color: #e74c3c;
}

.ratio-result {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.ratio-value {
    font-weight: 500;
    color: #3498db;
}

.net-income {
    font-weight: 500;
    color: #2ecc71;
}

/* 数据筛选 */
.interactive-filter {
    margin: 1rem 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-group {
    flex: 1 1 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.filter-status {
    margin-top: 0.8rem;
    padding: 0.5rem;
    background-color: #e1f5fe;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #0277bd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-reset {
    background-color: #e1f5fe;
    border: 1px solid #0277bd;
    color: #0277bd;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-reset:hover {
    background-color: #0277bd;
    color: white;
}