.discover-banner {
    font-size: 0;
}


.tab-module {
    display: flex;
    gap: 40px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    padding: 10px 0;
    margin: 60px auto;
    justify-content: flex-start;
}

.tab-module a {
    display: inline-block;
    margin-bottom: 0;
    padding-bottom: 10px;
    position: relative;
    cursor: pointer;
    color: #333;
    text-decoration: none;
}

.tab-module a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    /* 改成0 */
    width: 100%;
    height: 4px;
    background-color: #14DCDC;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.tab-module a.active::after {
    transform: scaleX(1);
}


.tab-content {
    display: block;
    margin: 0 auto;
}

.tab-content.active {
    display: block;
}


/* event content */
.latest-event {
    display: flex;
    flex-direction: row;
    gap: 80px;
}

.latest-event .left-content {
    text-align: left;
    flex: 1;
}

.latest-event .right-content {
    flex: 1;
}

.event-module {
    display: inline-block;
    background: #14DCDC;
    color: #fff;
    padding: 8px 6px;
    border-radius: 5px;
}

.latest-event .event-title {
    font-size: 28px;
    font-weight: bold;
    margin: 10px 0;
}

.latest-event .event-description {
    margin-top: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #ccc;
}

.latest-event .event-bottom {
    margin-top: 20px;
}

.latest-event .event-bottom .location {
    display: inline-block;
    vertical-align: top;
}

.latest-event .event-bottom .date {
    display: inline-block;
    vertical-align: top;
    margin-left: 100px; /* 控制 date 的位置，向中间靠拢 */
}

/* previous-events */
.previous-events {
    text-align: left;
    margin: 100px auto;
}

.event-list {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 30px;
}

.event-item {
    flex: 0 0 auto;
    width: calc(33.333% - 50px * 2 / 3);
}

.event-img {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 25px;
}

.event-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.event-item .event-title {
    font-size: 22px;
    margin-top: 20px;
    padding-left: 8px;
}

.event-item .event-description {
    margin-top: 10px;
    font-size: 12px;
    padding-left: 8px;
}

.event-link:hover .event-img img {
    transform: scale(1.1);
}

.show-more {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-top: 50px;
}

.icon-arrow {
    text-align: center;
    color: #14DCDC;
    padding-left: 8px;
}

/* 移动端响应式设计 */
@media (max-width: 768px) {

    .banner-section .banner-img img{
        height: 50vh;
        object-fit: cover;
    }

    .tab-module {
        flex-direction: row;
        gap: 20px;
        font-size: 18px;
        margin: 30px auto;
        padding: 0;
    }

    .tab-module h2 {
        display: inline-block;
    }

    .tab-module a {
        display: inline-block;
        padding: 15px 20px;
        background: #f8f9fa;
        border-radius: 8px;
        text-align: center;
        border: 2px solid transparent;
        transition: all 0.3s ease;
        text-decoration: none;
        min-width: fit-content;
        position: relative;
        overflow: hidden;
        /* 移除所有阴影效果 */
        box-shadow: none !important;
        -webkit-box-shadow: none !important;
        -moz-box-shadow: none !important;
        /* 移除点击时的默认样式 */
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

    .tab-module a:hover {
        background: #e9ecef;
        border-color: #14DCDC;
        box-shadow: none !important;
        -webkit-box-shadow: none !important;
        -moz-box-shadow: none !important;
        background-color: transparent !important;
    }

    .tab-module a.active {
        background: #14DCDC;
        color: #fff;
        border-color: #14DCDC;
        box-shadow: none !important;
        -webkit-box-shadow: none !important;
        -moz-box-shadow: none !important;
    }

    .tab-module a:focus {
        background-color: transparent !important;
        outline: none;
        box-shadow: none !important;
        -webkit-box-shadow: none !important;
        -moz-box-shadow: none !important;
    }

    .tab-module a:active {
        background-color: transparent !important;
        box-shadow: none !important;
        -webkit-box-shadow: none !important;
        -moz-box-shadow: none !important;
    }

    /* 完全隐藏移动端的下划线指示器 */
    .tab-module a::after {
        display: none !important;
    }

    .event-wrapper{
        padding: 0;
    }

    /* 移动端内容布局调整 */
    .latest-event {
        flex-direction: column;
        gap: 20px;
        padding: 0;
    }

    .latest-event .event-title {
        font-size: 20px;
    }

    .latest-event .event-description {
        font-size: 14px;
        margin: 20px 0;
        padding-bottom: 8px;
    }

    .latest-event .event-bottom {
        flex-direction: column;
        gap: 15px;
        margin-top: 0;
    }

    .location,.date{
        font-size: 14px;
    }

    .event-list {
        gap: 30px;
        padding: 0 20px;
    }

    .event-item {
        width: 100%;
    }

    .event-item .event-title {
        font-size: 18px;
    }

    .event-item .event-description {
        font-size: 14px;
    }

    .previous-events{
        margin: 40px auto;
    }

    .previous-events .event-list {
        padding: 0;
        gap: 20px;
    }

    .show-more{
        color: #14DCDC;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .tab-module {
        gap: 8px;
        font-size: 14px;
        margin: 20px auto;
    }

    .tab-module a {
        padding: 6px 8px;
        min-width: fit-content;
    }

    /* 确保小屏幕下也不显示下划线 */
    .tab-module a::after {
        display: none !important;
    }

    .latest-event .event-title {
        font-size: 18px;
    }

    .event-module {
        font-size: 14px;
        padding: 6px 8px;
    }
}
