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

body {
    font-family:"PingFang SC",Helvetica,Arial,"微软雅黑","黑体";padding:0; margin:0;-webkit-font-smoothing: subpixel-antialiased;
    line-height: 1.6;
    color: #333;
    background:url("../image/x6.png") #f5f5f5 top center no-repeat;
    background-size: contain;
    min-height: 1200px;
}

/* 等栏目接口加载后再显示导航与栏目名称 */
body.nav-waiting .project-nav,
body.nav-waiting .news-section .news-tabs,
body.nav-waiting .video-section .section-title,
body.nav-waiting .video-section .category-tabs,
body.nav-waiting .gallery-section .section-title,
body.nav-waiting .gallery-section .category-tabs,
body.nav-waiting .video-list-section .section-title,
body.nav-waiting .video-list-section .video-filter-tabs,
body.nav-waiting .gallery-list-section .section-title,
body.nav-waiting .gallery-list-section .gallery-filter-tabs {
    display: none !important;
}

/* 全平台导航 */
ul,li{ list-style:none;}
ul,li{ list-style:none;}
em{font-style: inherit;}
a{ text-decoration:none;}
a:hover{color:#C29DDC;}
fieldset,img{ border: 0;}
img{ vertical-align:middle;}

.top-nav {
    background: #fff;
   
    padding: 2 0 0;
    position: sticky!important;
    top: 0;
    z-index: 1000;

}

.top-nav-wrapper {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    align-items: center;
}

.platform-logo img {
    height: 35px;
    width: auto;
}

.platform-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.nav-link {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    padding: 5px 10px;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-link:hover {
    color: #FF6B35;
}

.nav-separator {
    color: #ddd;
    font-size: 14px;
}

/* 本项目导航 */
.project-nav {
    background: #fff;
    border-bottom: 2px solid #FF6B35;
    padding: 15px 0;
    position: sticky;
    top: 42px;
    z-index: 998;
   
}

.project-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.project-logo{
    width:35%;
}


.project-logo img {
    /* height: 100%; */
    width: 100%;
           /* 宽度自适应原始尺寸，不强制拉伸/压缩 */
    height: auto;         /* 高度和宽度等比，避免变形 */

}

.project-nav-menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.project-nav-link {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    padding: 10px 6px 5px 6px;
    transition: all 0.3s;
    position: relative;
    white-space: nowrap;
}

.project-nav-link:hover {
    color: #FF6B35;
    background: #f5f5f5;
}

.project-nav-link.active {
    color: #FF6B35;
    font-weight: bold;
}

.project-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 2px;
    background: #FF6B35;
}

.project-nav-link.highlight {
    background: #FF6B35;
    color: #fff;
    border-radius: 4px;
    margin-left: 10px;
}

/* 移动端更多按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: all 0.3s;
    display: block;
}

.mobile-menu-btn:hover span {
    background: #FF6B35;
}

/* 移动端侧边栏导航 */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
    visibility: hidden;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: left 0.3s;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav-menu.active {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-nav-close {
    width: 35px;
    height: 35px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-close:hover {
    color: #FF6B35;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}

.mobile-nav-link {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
    border-bottom: 1px solid #f5f5f5;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #FF6B35;
    background: #f5f5f5;
    padding-left: 25px;
}

.project-nav-link.highlight:hover {
    background: #b71c1c;
    color: #fff;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* 焦点图区域 */
.banner-section {
    position: relative;
    width: 100%;

    /* overflow: hidden; */
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.banner-container {
    position: relative;
    max-width: 1200px;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 20px auto 0;
    padding: 0 0;
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-item {
    position: absolute;
    width: 100%;
    aspect-ratio: 16 / 9;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.banner-item.active {
    opacity: 1;
    aspect-ratio: 16 / 9;
}

.banner-item img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
    border-radius: 10px;
    aspect-ratio: 16 / 9;
    cursor:pointer;
}

/* 焦点图半透明浮层 */
.banner-overlay {
    position: absolute;
    bottom: 0px;
    border-radius: 0 0 10px 10px;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
    padding: 40px 40px 60px;
    z-index: 2;
}

.banner-text {
    max-width: 100%;
    color: white;
}

.banner-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

.banner-desc {
    display: none;
}

.banner-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
    border-radius: 50%;
}

.banner-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.prev-btn {
    left: 50px;
}

.next-btn {
    right: 50px;
}

.banner-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: white;
}

/* 新闻分类区域 */
.news-section {


    margin-bottom: 40px;
}
.news-section .container{
    background: white;
    padding: 40px;
}



.news-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 0px;
    flex-wrap: wrap;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    position: relative;
    top: 2px;
}

.tab-btn:hover {
    color: #FF6B35;
}

.tab-btn.active {
    color: #FF6B35;
    border-bottom-color: #FF6B35;
    font-weight: bold;
}

.tab-content {
    display: none;
}

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

/* 左右分栏布局 */
.news-layout {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

/* 左侧图片显示区 - 横向16:9 */
.news-image-display {
    flex: 0 0 490px;
    width: 400px;
    aspect-ratio: 16 / 9;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    margin-top: 20px;
}

.news-image-display .display-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.display-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
    transition: opacity 0.3s ease;
}

/* 右侧新闻标题区 */
.news-title-area {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 0;
}

.news-item {
    padding: 15px 15px 0px 15px;
    
    border-radius: 0;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    cursor: pointer;
    border: none;
    border-bottom: 1px solid #ddd;
    position: relative;
}

/* 第一列（左边）的新闻项：左边线 */
.news-title-area .news-item:nth-child(odd) {
    border-right: 1px solid #ddd;
}



/* 第一行的新闻项：上边不需要边线 */
.news-title-area .news-item:nth-child(1),
.news-title-area .news-item:nth-child(2) {
    border-top: none;
}

/* 最后一行（第5、6个）新闻项：取消下边线 */
.news-title-area .news-item:nth-child(5),
.news-title-area .news-item:nth-child(6) {
    border-bottom: none;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: #fff;
}


.more-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    clear: both;
}

.news-info h3 {
    font-size: 16px;
    margin-bottom: 0;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.5;
    min-height: 63px;
    max-height: 52px;
}
.news-info h3 a{
    color: #333;
}
.news-info h3 a:hover{
    color: #FF6B35;
}

.news-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-date {
    font-size: 12px;
    color: #999;
    margin-top: 0px;
    display: block;
}

.more-btn {
    display: inline-block;
    padding: 3px 7px;
    background: #FF6B35;
    font-size: 14px;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    transition: background 0.3s;
}

.more-btn:hover {
    background: #b71c1c;
}

/* 全球与赛区 */
.countries-section {
    margin-bottom: 40px;
}
.countries-section .container{
    background: white;
    padding: 40px;
}
.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.countries-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* 左侧：五大洲分类 */
.continents-sidebar {
    width: 180px;
    flex-shrink: 0;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 20px 0;
}

.continent-item {
    padding: 15px 5px;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    position: relative;
}

.continent-item:hover {
    background: #f0f0f0;
    color: #FF6B35;
}

.continent-item.active {
    background: #f9f9f9;
    color: #FF6B35;
    border-left-color: #FF6B35;
    font-weight: bold;
}

/* 右侧：国家内容区域 */
.countries-content {
    flex: 1;
    min-width: 0;
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
    padding-top: 6px;
    padding-left: 5px;
}

/* 自定义滚动条样式 */
.countries-content::-webkit-scrollbar {
    width: 8px;
}

.countries-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.countries-content::-webkit-scrollbar-thumb {
    background: #f88c8c;
    border-radius: 4px;
}

.countries-content::-webkit-scrollbar-thumb:hover {
    background: #f88c8c;
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.countries-grid .loading-tip {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
    color: #666;
}

.country-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.country-item.hidden {
    display: none;
}

.country-item:hover {
    transform: scale(1.1);
}

.country-flag {
    width: 100%;
    height: auto;
    margin: 0 auto 10px;

    overflow: hidden;
    border: 3px solid #eee;
    transition: border-color 0.3s;
}

.country-item:hover .country-flag {
    border-color: #FF6B35;
}

.country-flag img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
}

.country-name {
    font-size: 14px;
    color: #666;
}

/* 国家新闻弹窗 */
.country-news-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.country-news-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #333;
}

#modalCountryName {
    margin-bottom: 20px;
    color: #FF6B35;
}

.country-news-list {
    display: grid;
    gap: 15px;
}

.country-news-item {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    border-left: 3px solid #FF6B35;
}

.country-news-item h4 {
    margin-bottom: 8px;
    color: #333;
}

.country-news-item p {
    color: #666;
    font-size: 14px;
}

.country-news-item a {
    color: #333;
    text-decoration: none;
    display: block;
}

.country-news-item a:hover {
    color: #FF6B35;
}

.country-news-list .loading-tip {
    color: #666;
    padding: 20px;
    text-align: center;
}

/* 赛事视频 */
.video-section {

    margin-bottom: 40px;
}
.video-section .container{
    background: white;
    padding: 40px;
}

.video-section .more-btn {
    display: inline-block;
    margin: 0 auto;
    text-align: center;
}

.video-section {
    text-align: center;
}

.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.category-btn {
    padding: 8px 20px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s;
}

.category-btn:hover {
    background: #eee;
}

.category-btn.active {
    background: #FF6B35;
    color: white;
    border-color: #FF6B35;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* 短视频：8 条，两行每行 4 个，比例 9:16 */
.video-grid.video-grid-short {
    grid-template-columns: repeat(4, 1fr);
}

.video-grid.video-grid-short .video-thumb {
    padding-bottom: 0;
    aspect-ratio: 3 / 4;
}

.video-item {
    cursor: pointer;
    transition: transform 0.3s;
}

.video-item:hover {
    transform: translateY(-5px);
}

.video-item.hidden {
    display: none;
}

.video-thumb {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
    aspect-ratio: 16 / 9;
}

.video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: background 0.3s;
}

.video-item:hover .play-icon {
    background: rgba(211, 47, 47, 0.8);
}

.video-item h4 {
    font-size: 14px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 高清图集 */

.gallery-section  {
    margin-bottom: 40px;
}
.gallery-section  .container{
    background: white;
    padding: 40px;
}

.gallery-section .more-btn {
    display: inline-block;
    margin: 0 auto;
    text-align: center;
}

.gallery-section {
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* 选手风采：8 个，两行每行 4 个，图片比例 9:16 */
.gallery-grid.gallery-grid-player {
    grid-template-columns: repeat(4, 1fr);
}

.gallery-grid.gallery-grid-player .gallery-item img {
    aspect-ratio: 3 / 4;
    width: 70%;
    text-align: center;
    margin: 0 auto;
}

.gallery-item {
    cursor: pointer;
    transition: transform 0.3s;
    position: relative;
    width: 100%;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item.hidden {
    display: none;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 16 / 9; /* 保持16:9比例 */
    /* object-fit: cover; */
    border-radius: 4px;
    margin-bottom: 10px;
    display: block;
}

.gallery-item h4 {
    font-size: 14px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-top: 0;
}
.gallery-grid-player h4{
    text-align: center;
}
/* 往届汉语桥 */
.history-section  {
    margin-bottom: 40px;
}
.history-section  .container{
    background: white;
    padding: 40px;
}
.history-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
}

.history-item {
   
    background: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    color: #666;
}

.history-item:hover {
    background: #FF6B35;
    color: white;
}
.history-item a:hover {
    color: white;
}


.history-item a {
    color: #666;
    padding: 12px 24px;
    display: block;
}


.history-item.highlight {
    background: #FF6B35;
    color: white;
    font-weight: bold;
}
.history-item.highlight a {
    background: #FF6B35;
    color: white;
    font-weight: bold;
}
/* 统一底部版权 */
.site-footer {
    border-top: 1px solid #eee;
    padding: 100px 0;
    text-align: center;
    font-size: 14px;
    color: #666;
    background: #fafafa;
}

.site-footer .container {
    display: flex;
    justify-content: center;
}

/* 手机版往届汉语桥：默认只显示前两排，其余通过 JS 添加的类隐藏 */
.history-item.history-item-collapsed {
    display: none;
}

.history-toggle-btn {
    margin-top: 15px;
    padding: 6px 16px;
    border: none;
    background: none;
    color: #FF6B35;
    font-size: 14px;
    cursor: pointer;
    display: none; /* 仅在移动端显示，通过 JS + 媒体查询控制 */
}

.history-toggle-btn .arrow {
    display: inline-block;
    margin-left: 4px;
    font-size: 10px;
}

@media (max-width: 480px) {
    .history-toggle-btn {
        display: inline-flex;
        align-items: center;
    }
    body{
        background:none;
        background: #f5f5f5 ;
    }
}

/* 响应式设计 - 平板 */
@media (max-width: 1024px) {
    .top-nav-wrapper {
        flex-wrap: wrap;
    }
    
    .platform-nav {
        font-size: 13px;
    }
    
    .nav-link {
        padding: 5px 6px;
        font-size: 13px;
    }
    
    .project-nav-wrapper {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .project-nav-menu {
        gap: 0;
    }
    
    .project-nav-link {
        padding: 8px 12px;
        font-size: 14px;
    }

    
    .video-grid,
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .countries-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .continents-sidebar {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        padding: 15px;
    }
    
    .continent-item {
        padding: 10px 20px;
        border-left: none;
        border-bottom: 3px solid transparent;
        border-radius: 4px;
        background: #fff;
    }
    
    .continent-item.active {
        border-left: none;
        border-bottom-color: #FF6B35;
    }
    
    .countries-content {
        max-height: 500px;
        
            width: 100%;
            
      
    }
    
    .countries-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 20px;
    }
}

/* 响应式设计 - 手机 */
@media (max-width: 768px) {
    .top-nav {
        display: none!important;
    }

    .top-nav-wrapper {
        flex-direction: column;
        justify-content: flex-start;
        gap: 10px;
    }
    
    .banner-item img {
        width: 100%;
        height: auto;
        /* object-fit: cover; */
        border-radius: 10px;
        aspect-ratio: 16 / 9;
    }


    .news-section .container {
        background: white;
        padding: 15px;
    }
    .video-section .container {
        background: white;
        padding: 15px;
    }
    .gallery-section .container {
        background: white;
        padding: 15px;
    }
    .history-section .container {
        background: white;
        padding: 15px;
    }



   .history-section .container {

        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .news-info h3 {
        font-size: 14px;
        margin-bottom: 0;
        color: #333;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 1.2;
        padding-top: 5px;
        min-height: 63px;
        max-height: 52px;
    }
    
    .platform-logo img {
        height: 35px;
    }
    .category-tabs {
        display: flex;
        gap: 10px;
        margin-bottom: 30px;
        justify-content: center;
        flex-wrap: wrap;
    }
    .platform-nav {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
    }
    
    .platform-nav::-webkit-scrollbar {
        height: 3px;
    }
    
    .nav-link {
        font-size: 12px;
        padding: 5px 6px;
    }
    
    .nav-separator {
        font-size: 12px;
    }
    
    .project-nav {
        position: relative;
        top: 0;
        padding: 12px 0;
    }
    
    .project-nav-wrapper {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
    .video-grid.video-grid-short {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid.gallery-grid-player {
        grid-template-columns: repeat(2, 1fr);
    }

.project-logo{
  
    flex: 10;  
}


    .project-logo img {
        /* height: 100%; */
        width: 80%;
    }
    
    .project-nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
        flex: 1;
    }
    
    .mobile-nav-overlay {
        display: block;
    }
    
    .mobile-nav-overlay:not(.active) {
        display: none;
    }
    
    .mobile-nav-menu {
        display: block;
    }
    
    .project-nav-link.highlight {
        margin-left: 5px;
    }
    

    
    .banner-overlay {
        bottom: 30px;
        padding: 30px 20px 20px;
    }
    
    .banner-title {
        font-size: 22px;
        margin-bottom: 0;
    }
    
    .banner-desc {
        display: none;
    }
    
    .banner-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .prev-btn {
        left: 20px;
    }
    
    .next-btn {
        right: 20px;
    }
    
    .banner-dots {
        bottom: 50px;
    }
    
    /* 移动端：列表布局 */
    .news-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .news-image-display {
        display: none;
    }
    
    .news-layout {
        flex-direction: column;
    }
    
    .news-title-area {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .news-item {
        display: flex;
        align-items: center;
        padding: 12px 0 12px 0; 
        border: none !important;
        border-bottom: none !important;
        border-right: none !important;
        border-top: none !important;
    }
    
    .news-item::before {
        content: '';
        flex: 0 0 120px;
        width: 100%;
        aspect-ratio: 16 / 9;
        /* width: 120px;
        height: 67.5px;  */
        /* 120 * 9/16 = 67.5，保持16:9比例 */   
        margin-right: 12px;
        background-size: cover;
        background-position: center;
        border-radius: 4px;
        background-image: var(--item-img, url('https://picsum.photos/100/70?random=default'));
        background-color: #f0f0f0;
    }
    
    /* 比赛公告和资料下载不显示图片 */
    #announcement .news-item::before,
    #download .news-item::before {
        display: none;
    }
    
    .news-info {
        flex: 1;
    }
    
    .video-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    /* 确保移动端视频和图集图片保持16:9 */
    .video-thumb {
        padding-bottom: 56.25%; /* 16:9比例 */
    }

    .video-grid.video-grid-short .video-thumb {
        padding-bottom: 0;
        aspect-ratio: 3 / 4;
    }
    
    .gallery-item img {
        aspect-ratio: 16 / 9; /* 移动端保持16:9比例 */
    }

    .gallery-grid.gallery-grid-player .gallery-item img {
        aspect-ratio: 3 / 4; /* 选手风采保持9:16 */
    }
    .gallery-grid.gallery-grid-player {
        grid-template-columns: repeat(2, 1fr);
    }
.gallery-grid-player h4{
    text-align: center;
}
    /* 确保移动端新闻图片保持16:9 */
    .news-item::before {
        flex: 0.5;
    }
    
    .countries-wrapper {
        flex-direction: column;
        gap: 15px;
    }
    
    .continents-sidebar {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        padding: 10px;
        justify-content: center;
    }
    
    .history-list {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }


    .continent-item {
        padding: 8px 2% 0px 2%;
        font-size: 16px;
        border-left: none;
        border-bottom: 3px solid transparent;
        border-radius: 4px;
        background: #f9f9f9;
    }
    
    .continent-item.active {
        border-left: none;
        border-bottom-color: #FF6B35;
    }
    
    .countries-content {
        max-height: 400px;
        width: 100%;
        min-width: 0;
    }
    
    .countries-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        justify-items: center;
        width: 100%;
    }
    
    .country-item {
        width: 100%;
        max-width: none;
    }
    
    .country-flag {
        width: 100%;
        height: auto;
    }
    
    .country-name {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .news-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0px;
        margin-bottom: 25px;
        gap: 0px;
    }
    
    .news-tabs::-webkit-scrollbar {
        height: 3px;
    }
    
    .tab-btn {
        padding: 10px 1.5%;
        font-size: 18px;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .more-btn-wrapper {
        justify-content: center;
    }
    
    .more-btn {
        display: block;
        text-align: center;
    }
    
    .history-item {
        padding: 0px 8px;
        font-size: 14px;
    }

    .section-title    {
   
        margin-bottom: 15px;}

}

@media (max-width: 480px) {
    .countries-section .container{
        background: white;
        padding: 10px;
    }
    .container {
        padding: 0 15px;
       
    }
    .history-section .container {

        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .news-info h3 {
        font-size: 18px;
        margin-bottom: 0;
        color: #333;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 1.3;
        padding-top: 5px;
        min-height: 46px;
        max-height: 52px;
    }
    /* 移动端首页焦点图：按 16:9 固定高度，避免图片下移 */

    .banner-container {
        height: 100%;
        margin: 10px auto 0;
        padding: 15px;
    }
    .banner-slider {
        height: 100%;
    }
    .banner-item {
        height: 100%;
    }
    
    .banner-overlay {
        bottom: 0;
        padding: 20px 15px 15px;
    }
    
    .banner-title {
        font-size: 18px;
        margin-bottom: 0;
    }
    .banner-section {
        margin-bottom: 20px;
    }
    .banner-desc {
        display: none;
    }
    
    /* 移动端：新闻 Tab 自动换行 */
    .news-tabs {
        flex-wrap: wrap;
        overflow-x: visible;
        justify-content:center;
    }

    .news-tabs .tab-btn {
      
        text-align: center;
        flex: 1;
    }

    /* 移动端隐藏“资料下载”这个 Tab 按钮 */
    .news-tabs .tab-btn[data-tab="download"] {
        display: none;
    }
    
    .banner-dots {
        bottom: 20px;
    }
    .video-item h4,.gallery-item h4 {
        font-size: 16px;
        line-height: 1.1;
        margin: 0;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-align: left;
    }
    .gallery-grid-player h4{
        padding-top: 20px;
        text-align: center;
    }
    .news-section,
    .countries-section,
    .video-section,
    .gallery-section,
    .history-section {
        padding: 0;
    }
    
    .category-tabs {
        gap: 5px;
    }
    .video-grid.video-grid-short {
        grid-template-columns: repeat(2, 1fr);
    }
    .category-btn {
        padding: 5px 10px;
        font-size: 16px;
    }
    
    .countries-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        width: 100%;
    }
    
    .countries-content {
        width: 100%;
        min-width: 0;
    }
    
    .country-item {
        width: 100%;
    }
    
    .country-flag {
        width: 100%;
        height: auto;
    }
    
    .country-name {
        font-size: 11px;
    }
}

