.hero-section {
    position: relative;
    height: 60vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    padding-left: calc((100vw - 1300px) / 2 + 15px);
    min-padding-left: 15px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    text-align: left;
    color: white;
    z-index: 1;
    max-width: 600px;
    margin-top: 50px; 
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #8fd3a8;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-year {
    font-size: 4rem;
    line-height: 60px;
    background: rgb(230, 206, 228);
    font-weight: bold;
    width: 230px;
    padding: 0;
    color: white;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 400;
    color: #8fd3a8;
    margin-top: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 气候教育公园整体容器 */
.education-parks {
    background: #fff;
}

.education-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.education-item {
    display: flex;
    flex-direction: column;
}

.park-card {
    background: white;
    padding: 40px 30px 50px 30px;
    border: 0.01rem solid rgb(166,235,188);
    border-bottom: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

.park-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.park-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgb(166,235,188);
}

.park-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
    flex-grow: 1;
}

.park-content .more-btn {
    background: transparent;
    border: .01rem solid black;
    color: #666;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    align-self: flex-start;
    width: 140px;
}

/* 图片展示项目 */
.showcase-item {
    position: relative;
    overflow: hidden;
    border-top: none;
    height: 280px;
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: white;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: left;
    opacity: 1;
}

.showcase-overlay h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
    width: 100%;
}

.showcase-overlay p {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.5;
    max-width: 280px;
    text-align: left;
    align-self: center;
}

.showcase-overlay .more-btn {
    background: transparent;
    color: white;
    font-size: 14px;
    align-self: flex-end;
}

/* 新闻资讯 */
.news-section {
    padding: 80px 0;
    background: #f9f9f9;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-item {
    display: flex;
    flex-direction: column;
    padding: 25px;
    background: #fff;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    box-shadow: 0 2px 12px 0 rgba(230, 206, 228, 0.3);
}

.news-item:hover {
    background: rgb(230,206,228);
    transform: translateY(-5px);
}

/* 悬停时日期前的粗竖线 */
.news-item:hover .news-date {
    border-left: 4px solid #2c3e50;
    padding-left: 15px;
}

/* 悬停时标题底部的分割线 */
.news-item:hover .news-content h3 {
    border-bottom: 1px solid #2c3e50;
    padding-bottom: 10px;
}

/* 悬停时内容文字变为白色 */
.news-item:hover .news-content p {
    color: white;
}

.news-date {
    text-align: left;
    margin-bottom: 15px;
}

.date-day {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
    margin-bottom: 5px;
}

.date-month {
    display: block;
    font-size: 12px;
    color: #666;
}

.news-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* 活动列表 */
.activities-section {
    padding: 80px 0;
    background: #fff;
}

.activities-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.activity-item {
    background: white;
    padding: 30px;
    display: grid;
    grid-template-columns: 20px 1fr auto;
    gap: 20px;
    align-items: flex-start;
    border-bottom: 1px solid rgb(166,235,188);
    transition: all 0.3s ease;
}


/* 彩色方块 */
.activity-color-block {
    width: 30px;
    height: 40px;
    margin-top: 5px;
}

.activity-color-block.green {
    background: #a6ebbc;
}

.activity-color-block.purple {
    background: #e6cee4;
}

/* 信息区域 */
.activity-info {
    display: flex;
    flex-direction: column;
}

/* 日期样式 */
.activity-date {
    font-size: 14px;
    font-weight: 700;
    color: #42b983;
}

.activity-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.4;
}

.activity-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* 报名按钮 */
.register-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid #333;
    color: #333;
}

.register-btn:hover {
    background: #f0f0f0;
    border-color: #bbb;
}

/* 统计数据区域 */
.statistics-section {
    position: relative;
    padding: 100px 0;
    color: white;
    overflow: hidden;
}

.statistics-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.statistics-section .container {
    position: relative;
    z-index: 2;
}

.stats-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.stats-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stats-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 50px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    padding-bottom: 15px;
}

.stats-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: white;
}

/* 统计区域布局 */
.stats-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: start;
}

.stats-left {
    display: flex;
    flex-direction: column;
    /* gap: 10px; */
}

.stats-right {
    display: flex;
    justify-content: center;
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 0;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.stat-item {
    text-align: center;
    padding: 10px 10px;
}

.stat-number {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #90EE90;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
    color: white;
}

/* 排行榜 */
.leaderboard-section {
    display: none;
}

.top-users {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    padding: 10px;
}

.top-users h3 {
    font-size: 24px;
    text-align: center;
    color: #90EE90;
}

.top-three {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

.user-rank {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 15px;
    min-width: 120px;
}

/* 第一名特殊样式 */
.user-rank:nth-child(2) .rank-number {
    color: #FFD700;
}

.user-rank:nth-child(2) .user-avatar {
    width: 80px;
    height: 80px;
}

.user-rank:nth-child(2) .user-score {
    color: #FFD700;
}

.rank-number {
    font-size: 18px;
    font-weight: 600;
    color: #90EE90;
    margin-bottom: 10px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
    color: white;
}

.user-score {
    font-size: 18px;
    font-weight: 600;
    color: #90EE90;
}

/* 排名表格 */
.ranking-table {
    border-radius: 12px;
    padding: 0;
    position: relative;
    width: 100%;
}

.ranking-table table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table thead {
    background: rgba(0, 0, 0, 0.8);
}

.ranking-table th {
    padding: 15px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    color: white;
}


.ranking-table tbody {
    background: transparent;
}

.ranking-table td {
    padding: 15px 20px;
    text-align: center;
    color: white;
    border: none;
    vertical-align: middle;
}

/* 用户名列左对齐，头像与文字更好对齐 */
.ranking-table td:nth-child(2) {
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.table-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50% !important;
    object-fit: cover !important;
    margin-right: 10px;
    flex-shrink: 0;
}

.ranking-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* 翻页控件 */
.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 50%;
    left: -50px;
    right: -50px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.pagination-btn {
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    pointer-events: all;
}

.pagination-btn * {
    pointer-events: none;
}

.pagination-btn:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.pagination-btn:hover circle {
    fill: rgba(255, 255, 255, 0.95);
}

.pagination-btn:hover polyline {
    transform: scale(1.1);
    transform-origin: center;
}

.pagination-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-btn.disabled circle {
    fill: rgba(255, 255, 255, 0.4);
}

.pagination-btn.disabled:hover {
    transform: none;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.rank-badge {
    display: inline-block;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    text-align: center;
    line-height: 25px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.1)
}

.rank-badge.gold {
    background: rgba(255, 215, 0, 0.3);
    color: #FFD700;
}

.rank-badge.silver {
    background: rgba(192, 192, 192, 0.3);
    color: #C0C0C0;
}

.rank-badge.bronze {
    background: rgba(205, 127, 50, 0.3);
    color: #CD7F32;
}

/* 响应式设计 */
@media (max-width: 1199px) {
    .education-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 0 30px;
    }
}

/* 当屏幕宽度小于等于1300px时，使用固定左边距 */
@media (max-width: 1300px) {
    .hero-section {
        padding-left: 30px; /* 稍微往左调整 */
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding-left: 25px; /* 平板端也稍微往左调整 */
        margin-top: -110px;
        padding-top: 110px;
    }
    
    .hero-content {
        margin-top: 30px;
    }
    
    .hero-title {
        font-size: 36px;
        letter-spacing: 2px;
    }
    
    .hero-year {
        font-size: 48px;
        padding: 12px 25px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .education-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 30px;
    }

    .showcase-item {
        height: 250px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .activity-item {
        flex-direction: column;
        gap: 15px;
    }

    .stats-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stat-number {
        font-size: 30px;
    }

    .top-three {
        flex-direction: column;
        gap: 15px;
    }

    .user-rank {
        min-width: auto;
        width: 100%;
    }

    .ranking-table {
        overflow-x: auto;
    }
    
    .pagination-controls {
        left: -25px;
        right: -25px;
    }
    
    .pagination-btn {
        width: 30px;
        height: 30px;
    }
    
    .pagination-btn circle {
        r: 15;
        cx: 15;
        cy: 15;
    }
    
    .pagination-btn polyline {
        transform: scale(0.8);
        transform-origin: center;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 50vh;
        min-height: 400px;
        padding-left: 25px; /* 手机端也稍微往左调整 */
        padding-right: 20px;
        margin-top: -95px;
        padding-top: 95px;
    }

    .hero-content {
        margin-top: 20px;
    }

    .hero-title {
        font-size: 28px;
        letter-spacing: 1px;
        margin-bottom: 20px;
    }

    .hero-year {
        font-size: 36px;
        padding: 10px 20px;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .education-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 20px;
    }

    .education-parks,
    .news-section,
    .activities-section {
        padding: 50px 0;
    }
    
    .statistics-section {
        padding: 60px 0;
    }
    
    .stats-title {
        font-size: 28px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .news-item {
        flex-direction: column;
        text-align: center;
    }
    
    .showcase-item {
        height: 200px;
    }
    
    .user-rank {
        padding: 15px;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
    }
    
    .pagination-controls {
        left: -15px;
        right: -15px;
    }
    
    .pagination-btn {
        width: 25px;
        height: 25px;
    }
    
    .pagination-btn circle {
        r: 12.5;
        cx: 12.5;
        cy: 12.5;
    }
    
    .pagination-btn polyline {
        transform: scale(0.6);
        transform-origin: center;
    }
}

/* 排名表格第一列的数字样式 */
.ranking-table td:first-child {
    position: relative;
}

/* 为第4名及以后的纯数字添加银色徽章样式 */
.ranking-table tbody tr:nth-child(n+4) td:first-child {
    color: #C0C0C0;
    font-weight: 600;
    font-size: 12px;
    position: relative;
}

.ranking-table tbody tr:nth-child(n+4) td:first-child::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25px;
    height: 25px;
    background: rgba(192, 192, 192, 0.3);
    border-radius: 50%;
    z-index: -1;
} 