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

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* Main Content */
.main-content {
    max-width: 1650px;
    margin: 0 auto;
    padding: 90px 0 270px 0;
}

.page-title {
    font-size: 46px;
    font-weight: normal;
    margin-bottom: 30px;
    color: #333;
}

.tabs-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

.tabs {
    display: flex;
    gap: 0;
}

.tab {
    padding: 15px 30px;
    background: #f5f5f5;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    color: #000;
    text-decoration: none;
}


.tab.active {
    border-bottom-color: #000;
}

.page-info {
    color: #666;
    font-size: 14px;
}

.events-list {
    display: flex;
    flex-direction: column;
}

/* 移除a标签的默认样式 */
.events-list.signup-btn {
    text-decoration: none;
}

.event-item {
    background: #fff;
    overflow: hidden;
    min-height: 200px;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    margin: 120px auto 0;
}

.event-content {
    padding: 30px 40px 30px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    max-width: 500px;
}

.event-title {
    font-size: 22px;
    font-weight: normal;
    margin-bottom: 20px;
    color: #333;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-bottom: 20px;
}

.event-detail {
    font-size: 17px;
    color: #666;
    margin-bottom: 10px;
}

.event-detail strong {
    color: #333;
    margin-right: 10px;
}

.event-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 85px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #ff0000;
    color: #fff;
}

.btn-primary:hover {
    background: #cc0000;
}

.btn-secondary {
    background: #ccc;
    color: #666;
}

.btn-secondary:hover {
    background: #bbb;
}

/* 已结束状态的按钮样式 */
.btn.ended {
    background: #ccc !important;
    color: #999 !important;
    cursor: not-allowed;
}

.btn.ended:hover {
    background: #ccc !important;
}

/* 移除a标签hover状态下划线 */
a:hover {
    text-decoration: none;
}

.event-image {
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
    max-width: 870px;
}

.event-image img {
    width: 100%;
    max-width: 870px;
    height: 100%;
    object-fit: cover;
}

.event-status {
    position: absolute;
    top: 0px;
    left: 25px;
  
    width: 90px;
    height: 90px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* 已结束状态的灰度背景图 */
.event-status.ended {
    filter: grayscale(100%);
    color: #cccccc;
}

/* 新的分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 40px 0;
    margin-top: 50px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #e8e8e8;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pagination a:hover {
    background: #ff0000;
    color: #fff;
    border-color: #ff0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
    text-decoration: none;
}

.pagination a:first-child,
.pagination a:last-child {
    background: #ff0000;
    color: #fff;
    border-color: #ff0000;
    font-weight: bold;
}

.pagination a:first-child:hover,
.pagination a:last-child:hover {
    background: #cc0000;
    border-color: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        padding: 80px 20px 200px 20px;
    }
    
    .page-title {
        font-size: 38px;
        font-weight: normal;
    }
    
    .event-item {
        margin: 80px auto 0;
    }
    
    .event-content {
        padding: 25px 30px 25px 0;
    }
    
    .event-title {
        font-size: 20px;
        font-weight: normal;
    }
    
    .event-details {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 60px 15px 150px 15px;
    }
    
    .page-title {
        font-size: 32px;
        font-weight: normal;
        margin-bottom: 20px;
    }
    
    .tabs-container {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .tabs {
       
       overflow-x: auto;
       width: 100%;
    }

    .tab {
        flex: 1;
        white-space: nowrap;
        font-size: 16px !important;
        padding: 8px 16px;
        flex-wrap: nowrap;
    }
    
    .event-item {
        flex-direction: column;
        margin: 60px auto 0;
        max-width: 100%;
    }
    
    .event-content {
        padding: 20px;
        max-width: 100%;
    }
    
    .event-title {
        font-size: 18px;
        font-weight: normal;
        margin-bottom: 15px;
    }
    
    .event-details {
        margin-bottom: 20px;
    }
    
    .event-detail {
        font-size: 15px;
    }
    
    .event-buttons {
        justify-content: center;
    }
    
    .btn {
        padding: 10px 60px;
        font-size: 18px;
    }
    
    .event-image {
        max-width: 100%;
    }
    
    .event-status {
        width: 60px !important;
        height: 60px !important;
        font-size: 14px !important;
        background-size: cover !important;
        background-position: center !important;
    }
    
    .pagination {
        justify-content: center;
        padding-top: 60px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 50px 10px 100px 10px;
    }
    
    .page-title {
        font-size: 26px;
        font-weight: normal;
        margin-bottom: 15px;
    }
    
    .tabs-container {
        gap: 15px;
    }
    
    .tab {
        padding: 10px 15px;
        font-size: 12px;
        min-width: 100px;
    }
    
    .event-item {
        margin: 40px auto 0;
    }
    
    .event-content {
        padding: 15px;
    }
    
    .event-title {
        font-size: 16px;
        font-weight: normal;
        margin-bottom: 10px;
    }
    
    .event-details {
        margin-bottom: 20px;
    }
    
    .event-detail {
        font-size: 14px;
    }
    
    .btn {
        padding: 8px 40px;
        font-size: 16px;
    }
    
    .event-status {

        font-size: 14px;
    }
    
    .pagination {
        padding-top: 40px;
    }
}
