/* ================= 全局变量与重置 ================= */
:root {
    --primary-blue: #2c68ff;
    --primary-blue-hover: #2c68ff;
    --text-main: #00041a;
    --text-gray: #666666;
    --bg-light: #f5f7fa;
    --font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    background-color: #ffffff;
}

@media (max-width: 1920px) {
    body{
    zoom:.8!important;
    }
    .global-page-bg{
    background-image: none !important;
    }
    
}


/* 自定义滚动条样式，取代原来的隐藏逻辑，增加布局稳定性 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.markdown-body,
.tailwind-typography,
.prose {
    font-family: var(--font-family) !important;
}

.markdown-body *,
.tailwind-typography *,
.prose * {
    font-family: inherit !important;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px !important;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ================= 顶部导航 Header ================= */
.header {
    width: 100%;
    /* height: 85px; */
    /*background-color: transparent;*/
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
    background: rgba(255, 255, 255, 0.5);
}


/* 首页导航颜色同步（仅在非滚动状态下根据轮播图文字颜色调整） */
.header.text-dark:not(.sub-header):not(.scrolled) .logo a,
.header.text-dark:not(.sub-header):not(.scrolled) .nav-item>a {
    color: #333;
}

.header.overlay-header:not(.scrolled) .logo a,
.header.overlay-header:not(.scrolled) .nav-item>a {
    color: #1f2024;
}

.header.overlay-header:not(.scrolled) .nav-item:hover>a,
.header.overlay-header:not(.scrolled) .nav-item.active>a {
    color: var(--primary-blue);
}

.header.text-dark:not(.sub-header):not(.scrolled) .nav-item:hover>a,
.header.text-dark:not(.sub-header):not(.scrolled) .nav-item.active>a {
    color: var(--primary-blue);
}

.header.text-dark:not(.sub-header):not(.scrolled) .mobile-menu-toggle span {
    background-color: #333;
}

.header.overlay-header:not(.scrolled) .mobile-menu-toggle span {
    background-color: #1f2024;
}

.header.text-dark:not(.sub-header):not(.scrolled) {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.header.overlay-header:not(.scrolled) {
    border-bottom-color: rgba(31, 32, 36, 0.12);
}

.header.text-light:not(.sub-header):not(.scrolled) .logo a,
.header.text-light:not(.sub-header):not(.scrolled) .nav-item>a {
    color: #fff;
}

.header.text-light:not(.sub-header):not(.scrolled) .nav-item:hover>a,
.header.text-light:not(.sub-header):not(.scrolled) .nav-item.active>a {
    color: var(--primary-blue);
}

.header.text-light:not(.sub-header):not(.scrolled) .mobile-menu-toggle span {
    background-color: #fff;
}

.header.text-light:not(.sub-header):not(.scrolled) {
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

/* Logo 颜色同步 (针对 SVG 内部 #858585 进行精准变色) */
/* 仅在首页、非滚动状态、且开启亮色模式时，Logo 才会变白 */
.header.text-light:not(.sub-header):not(.scrolled) {
    --logo-dynamic-color: #ffffff;
}

/* 暗色模式、二级页、或者是滚动后的悬浮菜单，都恢复 Logo 原始颜色 (#858585) */
.header.text-dark,
.header.sub-header,
.header.scrolled {
    --logo-dynamic-color: #858585;
}

.logo svg {
    transition: fill 0.3s ease;
}

/* Subpage Header Styles */
.header.sub-header {
    background-color: #fff;
    position: sticky;
    border-bottom: none;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
}

.header.sub-header .logo a,
.header.sub-header .nav-item>a {
    color: #333;
}

.header.sub-header .nav-item>a:hover,
.header.sub-header .nav-item.active>a {
    color: var(--primary-blue);
}

.header.sub-header .btn-login {
    background: linear-gradient(90deg, #2c68ff, #6a97fe);
    color: #fff;
    border: none;
}

.header.sub-header .btn-login:hover {
    background-color: #004481;
    color: #fff;
}

.header.sub-header .mobile-menu-toggle span {
    background-color: #333;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
}

@media (min-width: 1024px) {
    .header-inner {
        padding: 0 44px !important;
    }
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 36px;
    display: block;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    height: 80px;
}

.nav-item>a {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-item:hover {
    color: var(--primary-blue);
}

.nav-item:hover>a,
.nav-item.active>a {
    color: var(--primary-blue);
}

.arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    transition: transform 0.3s ease;
    transform-origin: center 3px;
}

@media (min-width: 769px) {
    .nav-item .arrow {
        display: none !important;
    }
}

.nav-item:hover .arrow {
    transform: rotate(180deg);
}

.dropdown {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 10px 0;
    min-width: 120px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-item.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    top: 70px;
}

.dropdown li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-gray);
    transition: all 0.2s;
}

.dropdown li a:hover {
    color: var(--primary-blue);
    background-color: var(--bg-light);
}

.btn-login {
    display: inline-block;
    padding: 8px 32px;
    background: linear-gradient(90deg, #2c68ff, #6a97fe);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(74, 136, 247, 0.3);
}

.btn-login:hover {
    background: linear-gradient(90deg, #2c68ff, #6a97fe);
    color: #fff;
    box-shadow: 0 4px 12px rgba(74, 136, 247, 0.5);
}

/* ================= 悬浮导航 Header (Scrolled) ================= */
.header.scrolled {
    position: fixed;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-bottom: none;
    animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.header.scrolled .logo a {
    color: var(--primary-blue);
}

.header.scrolled .nav-item>a {
    color: var(--text-main);
}

.header.scrolled .nav-item:hover>a,
.header.scrolled .nav-item.active>a {
    color: var(--primary-blue);
}

.header.scrolled .arrow {
    border-top-color: var(--text-main);
}

.header.scrolled .nav-item:hover .arrow,
.header.scrolled .nav-item.active .arrow {
    border-top-color: var(--primary-blue);
}

.header.scrolled .btn-login {
    background: linear-gradient(90deg, #2c68ff, #6a97fe);
    color: #fff;
    border: none;
}

.header.scrolled .btn-login:hover {
    background: linear-gradient(90deg, #2c68ff, #6a97fe);
    color: #fff;
    box-shadow: 0 4px 12px rgba(74, 136, 247, 0.5);
}

.header.scrolled .mobile-menu-toggle span {
    background-color: var(--text-main);
}

.mobile-menu-toggle.open span {
    background-color: var(--text-main) !important;
}

/* ================= 顶部横幅 Hero Banner（迁移自 naesc-demo） ================= */
.hero-banner-new {
    height: 818px;
    margin-top: 121px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #fff;
}

.hero-banner-new .hero-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
    margin-top: 122px;
}



.hero-banner-new .hero-slide-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-banner-new .hero-slide-bg.active {
    opacity: 1;
}

.hero-banner-new .hero-slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

.hero-banner-new .hero-bg-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 80%, #fff 100%);
    z-index: 1;
}

.hero-banner-new .hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.05);
    z-index: 2;
}

.hero-banner-new .hero-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1430px;
    margin: 0 auto;
    padding: 90px 0;
}

.hero-banner-new .hero-slide-content {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0s ease-out;
    pointer-events: none;
}

.hero-banner-new .hero-slide-content.active {
    opacity: 1;
    transition: opacity 0.3s ease-out 1.5s;
    pointer-events: auto;
}

.hero-banner-new .hero-title {
    font-size: 40px;
    font-weight: bold;
    color: #07285B;
}

.hero-banner-new .hero-slogan {
    font-size: 30px;
    font-weight: bold;
    color: #07285B;
    margin-top: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 1px 5px rgba(255,255,255,0.8);
}

.hero-banner-new .hero-slogan-dot {
    opacity: 0.3;
}

.hero-banner-new .hero-date {
    font-size: 18px;
    font-weight: bold;
    color: #07285B;
    margin-top: 30px;
    text-shadow: 0 1px 4px rgba(255,255,255,0.8);
}

.hero-banner-new .hero-cta {
    margin-top: 50px;
    display: block;
    width: 168px;
    height: 42px;
    background: #07285B;
    color: white;
    font-size: 15px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    line-height: 42px;
    text-align: center;
}

.hero-banner-new .hero-cta:hover {
    background: #0a3a7a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(7, 40, 91, 0.4);
}

.hero-banner-new .hero-cta:active {
    opacity: 0.8;
}

.hero-banner-new .hero-indicators {
    display: flex;
    gap: 12px;
}

.hero-banner-new .hero-indicators-wrap {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 12px;
}

.hero-banner-new .hero-indicator {
    height: 4px;
    border-radius: 2px;
    background: rgba(26,123,213,0.2);
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.hero-banner-new .hero-indicator.active {
    width: 40px;
    background: #1a7bd5;
}

.hero-banner-new .hero-indicator.inactive {
    width: 20px;
}

.hero-banner-new .hero-indicator:hover {
    background: rgba(26,123,213,0.4);
}

.hero-banner-new .hero-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, #fff, transparent);
    pointer-events: none;
    z-index: 10;
}



@media (max-width: 768px) {
    .hero-banner-new {
        height: 400px;
        margin-top: 80px;
        box-sizing: border-box;
        overflow: hidden;
    }

    .hero-banner-new .hero-title {
        font-size: 20px;
    }

    .hero-banner-new .hero-slogan {
        font-size: 13px;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .hero-banner-new .hero-date {
        font-size: 12px;
    }

    .hero-banner-new .hero-cta {
        font-size: 12px;
        padding: 8px 20px;
        margin: 0 auto;
    }

    .hero-banner-new .hero-content-wrapper {
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
        padding: 20px 20px;
        box-sizing: border-box;
        overflow: hidden;
        position: relative;
        z-index: 5;
    }

    .hero-banner-new .hero-slide-content {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: 0;
        right: 0;
        display: none;
        text-align: center;
        padding: 0 20px;
        z-index: 5;
    }

    .hero-banner-new .hero-slide-content.active {
        display: block;
    }

    .hero-banner-new .hero-title,
    .hero-banner-new .hero-slogan,
    .hero-banner-new .hero-date,
    .hero-banner-new .hero-cta {
        text-align: center;
    }

    .hero-banner-new .hero-indicators-wrap {
        padding: 0 20px;
        z-index: 10;
    }

    .hero-banner-new .hero-slogan,
    .hero-banner-new .hero-date,
    .hero-banner-new .hero-cta {
        display: none;
    }

    .hero-banner-new .hero-title {
        display: block;
        text-decoration: none;
        color: inherit;
        cursor: pointer;
    }

    /* Override layout.html pt-[121px] for home page on mobile (header is 80px) */
    .home-content.pt-\[121px\] {
        padding-top: 80px !important;
    }
}

/* ================= 分类页面静态横幅（复用自 NatscV2） ================= */
.hero-banner {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-banner-static {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: #e8ecf1;
}

.hero-banner-485 {
    height: 485px;
}

.hero-banner::before {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 600px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
}

.hero-static-title {
    font-size: 60px;
    color: #1f2024;
    margin: 0;
    line-height: 1.3;
    text-shadow: none;
}

.hero-static-subtitle {
    font-size: 30px;
    font-weight: 500;
    color: #1f2024;
    margin: 12px 0 0;
    line-height: 1.4;
    text-shadow: none;
}

@media (min-width: 1024px) {
    .hero-banner-static .container {
        padding: 0 44px !important;
    }
}

/* ================= 公共模块样式 ================= */
.section {
    padding: 0;
    margin: 80px 0;
}

.section-bg-light {
    background-color: #ffffff;
}

.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 40px;
    letter-spacing: 2px;
}

/* ================= 新闻动态模块 ================= */
.news-container {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.news-left {
    flex: 0 0 50%;
    aspect-ratio: 16 / 9;
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.news-left img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.news-left .news-video-box {
    border-radius: 5px;
}

.news-left:hover img {
    transform: scale(1.05);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    z-index: 2;
}

.play-btn::after {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background-color: #fff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M6 4l14 8-14 8V4' fill='black'/%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M6 4l14 8-14 8V4' fill='black'/%3E%3C/svg%3E") no-repeat center;
    margin-left: 4px;
}

.play-btn:hover {
    background-color: var(--primary-blue);
    transform: translate(-50%, -50%) scale(1.1);
}

.news-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 新侧边列表布局 */
.news-side-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.news-side-header {
    display: flex;
    align-items: flex-end;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 12px;
    margin-bottom: 5px;
    flex-shrink: 0;
}

.side-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-blue);
    margin: 0;
    line-height: 1.2;
}

.news-empty-tip {
    width: 100%;
    padding: 40px;
    text-align: center;
    color: #999;
    border: 1px dashed #ddd;
    border-radius: 8px;
}

.news-tabs {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eaeaea;
    flex-shrink: 0;
}

.news-tab {
    font-size: 15px;
    font-weight: normal;
    color: #00041a;
    margin-right: 30px;
    padding-bottom: 12px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-tab.active {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-blue);
}

.news-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-blue);
}

.news-more {
    margin-left: auto;
    font-size: 14px;
    color: #999;
    transition: color 0.3s;
}

.news-more:hover {
    color: var(--primary-blue);
}

.news-list {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-item {
    flex: 0 0 20%;
    display: flex;
    align-items: center;
    /* padding: 0 15px; */
    border-bottom: 1px dashed #eaeaea;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:nth-child(n+6) {
    display: none !important;
}

/* 最多显示5条 */

/* 波浪线背景占位 */
.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, #ffffff 10%, rgba(255, 255, 255, 0) 80%), url('/themes/Naesc/assets/images/bg001.png') no-repeat right center;
    background-size: cover;
    opacity: 0;
    /* 使用平滑的物理位移代替裁切，初始状态向右偏移 30px */
    transform: translateX(30px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.news-item:hover::before {
    opacity: 1;
    /* 悬浮时，从右侧轻盈滑入到原位 */
    transform: translateX(0);
}

.news-date {
    text-align: center;
    color: #ccc;
    margin-right: 20px;
    min-width: 60px;
    transition: color 0.3s;
}

.news-date .day {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
    font-size: 20px;
}

.news-date .ym {
    display: block;
    font-size: 12px;
}

.news-title {
    flex: 1;
    font-size: 16px;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s;
}

.news-item:hover .news-title {
    color: #0e72f5;
}

/* ================= 赛项全览模块 ================= */
.events-section {
    padding: 0;
    position: relative;
}

.events-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: url('/themes/Naesc/assets/images/bg007-1.png') no-repeat center center;
    background-size: 100% 100%;
    z-index: 0;
}

.events-section .container {
    position: relative;
    z-index: 1;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card {
    position: relative;
    background-color: #fff;
    /* border-radius: 6px; */
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.category-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.category-title {
    text-align: center;
    padding: 18px 10px;
    font-size: 16px;
    font-weight: bold;
    color: var(--text-main);
}

.category-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: var(--primary-blue); */
    background: linear-gradient(90deg, #2c68ff, #6a97fe);
    color: #fff;
    padding: 24px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover .category-hover-overlay {
    opacity: 1;
}

.category-hover-overlay h3 {
    font-size: 18px;
    margin-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    letter-spacing: 1px;
}

.category-hover-overlay p {
    font-size: 12px;
    line-height: 1.6;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.category-arrow {
    margin-top: auto;
    align-self: flex-end;
    height: 26px;
    width: 28px;
    background: url(/themes/Naesc/assets/images/right001.png) no-repeat center center;
    background-size: 100% 100%;
}

/* ================= 液态玻璃卡片交互 ================= */
.card-glass {
    --mx: 50%;
    --my: 50%;
    --rotateX: 0deg;
    --rotateY: 0deg;
    isolation: isolate;
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(var(--rotateX)) rotateY(var(--rotateY));
    transition: transform 0.15s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-glass:hover {
    transform: perspective(1000px) rotateX(var(--rotateX)) rotateY(var(--rotateY)) translateY(-4px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

/* 表面跟随高光 */
.card-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: radial-gradient(400px circle at var(--mx) var(--my),
            rgba(255, 255, 255, 0.5) 0%,
            rgba(255, 255, 255, 0.2) 30%,
            rgba(255, 255, 255, 0) 70%);
    z-index: 10;
    transform: translateZ(35px);
    mix-blend-mode: screen;
}

/* 仅显示在边框区域的流光 */
.card-glass::after {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.22s ease;
    background: radial-gradient(350px circle at var(--mx) var(--my),
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 0.7) 30%,
            rgba(255, 255, 255, 0) 80%);
    z-index: 20;
    transform: translateZ(45px);
    mix-blend-mode: screen;

    /* 核心逻辑：使用 mask 让光仅留在边框区域 */
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.card-glass:hover .card-glow,
.card-glass:hover::after {
    opacity: 1;
}

/* 表面扫光层 */
.card-gloss {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 11;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.04) 18%,
            rgba(255, 255, 255, 0) 45%);
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translateZ(36px);
    mix-blend-mode: screen;
}

.card-glass:hover .card-gloss {
    opacity: 0.8;
}

.card-glass .category-hover-overlay {
    z-index: 8;
    transform: translateZ(30px);
}

.card-glass .category-hover-overlay>* {
    transform: translateZ(20px);
    position: relative;
    z-index: 15;
}

.card-glass img,
.card-glass .category-title,
.card-glass .download-card-title,
.card-glass .service-icon {
    transform: translateZ(25px);
}

.card-glass .download-list-box,
.card-glass .service-name {
    transform: translateZ(15px);
}



/* ================= 大赛风采模块 ================= */
.style-container {
    position: relative;
    height: 460px;
    margin-top: 40px;
    display: flex;
    align-items: center;
}

/* 双视频播放区样式 */
.style-video-grid {
    margin-top: 30px;
    margin-bottom: 20px;
}

.style-video-container {
    display: flex;
    gap: 30px;
    align-items: center;
}

.style-video-item {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.style-video-item .video-box {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    cursor: pointer;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.style-video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.style-video-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.style-video-item .video-box:hover video {
    opacity: 1;
}

.style-video-item .video-box:hover img {
    opacity: 1;
}

.style-video-item .play-btn {
    pointer-events: none;
}

.style-video-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #1f2937;
    text-align: center;
    word-break: break-word;
}

@media (max-width: 768px) {
    .style-video-container {
        flex-direction: column;
        gap: 15px;
    }
}

.style-left {
    width: 65%;
    height: 100%;
    position: relative;
    /* border-radius: 4px; */
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.style-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.style-left-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 80px 125px 30px 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
    pointer-events: none;
}

.style-left-overlay h3 {
    font-size: 22px;
    font-weight: bold;
    margin: 0;
    line-height: 1.4;
}

.style-right-wrapper {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    z-index: 10;
}

.style-right-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: -16px;
    width: 32px;
    height: 75%;
    background-color: #2c68ff;
    z-index: -1;
    /* border-radius: 4px; */
}

.style-right {
    background: #fff;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.style-item {
    display: flex;
    gap: 20px;
    cursor: pointer;
    padding: 20px 0;
    border-bottom: 1px solid #6666661c;
    transition: all 0.3s;
}

.style-item:first-child {
    padding-top: 0;
}

.style-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.style-item img {
    width: 140px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
}

.style-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.style-info h4 {
    font-size: 16px;
    color: #00041a;
    margin-bottom: 8px;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.style-item:hover .style-info h4,
.style-item.active .style-info h4 {
    color: var(--primary-blue);
}

.style-info p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ================= 合作伙伴 ================= */
.partner-section {
    padding: 10px 0;
    position: relative;
}

.partner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: url('/themes/Naesc/assets/images/bg003.png') no-repeat center center;
    background-size: auto 100%;
    z-index: 0;
}

@media (min-width: 769px) {
    .partner-section::before {
        background-size: 100% 100%;
    }
}



.partner-section .container {
    position: relative;
    z-index: 2;
}

.partner-box {
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    background-color: #fff;
}

.past-cooperation-note {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin-top: 40px;
    padding: 10px 0;
}

.past-cooperation-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.past-cooperation-item {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    box-shadow: inset 0 0 0 1px #eee;
    transition: all 0.3s;
    cursor: pointer;
}

.past-cooperation-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    z-index: 10;
}

.past-cooperation-item img {
    max-width: 70%;
    max-height: 50%;
    object-fit: contain;
}

.partner-item {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    box-shadow: inset 0 0 0 1px #eee;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.partner-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    z-index: 10;
}

.partner-item img {
    max-width: 70%;
    max-height: 50%;
    object-fit: contain;
}

.partner-action {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #f0f0f0;
}

.btn-apply {
    display: inline-block;
    padding: 10px 36px;
    background-color: #e6f4ff;
    color: #0f71f5;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.btn-apply:hover {
    background-color: var(--primary-blue);
    color: #fff;
}

/* ================= 历届大赛承办院校 ================= */
.past-schools-box {
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.past-schools-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    background-color: #fff;
}

.past-school-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    background-color: #fff;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    overflow: hidden;
    padding: 20px 10px;
    box-sizing: border-box;
    box-shadow: inset 0 0 0 1px #eee;
}

.past-school-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
    z-index: 10;
}

.past-school-item .img-wrapper {
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.past-school-item img {
    width: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.past-school-title {
    margin-top: 14px;
    font-size: 14px;
    color: #333;
    text-align: center;
    padding: 0 5px;
    line-height: 1.2;
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
}

.past-schools-pagination {
    display: none !important;
}

.past-schools-pagination.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .past-schools-pagination {
        display: flex !important;
        justify-content: center;
        align-items: center;
        padding: 15px 0;
        gap: 15px;
    }

    .pagination-info {
        font-size: 14px;
        color: #666;
        min-width: 60px;
        text-align: center;
    }

    .pagination-btn {
        width: 32px;
        height: 32px;
        border: 1px solid #ddd;
        border-radius: 4px;
        background: #fff;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
        flex-shrink: 0;
    }

    .pagination-btn:hover {
        background: #f5f5f5;
        border-color: #ccc;
    }

    .pagination-btn svg {
        width: 16px;
        height: 16px;
        color: #666;
    }

    .past-school-item.pagination-hide {
        display: none;
    }
}

/* ================= 下载中心 ================= */
.download-section {
    padding: 0;
    margin: 80px 0;
    background-color: #fff;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.download-card {
    position: relative;
    min-height: 590px;
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--primary-blue);
    /* 使用渐变和占位图模拟设计稿中的蓝色3D背景 */
    background-image: linear-gradient(135deg, #6ba1ff 0%, #356cd6 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=600&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    opacity: 0.2;
    mix-blend-mode: overlay;
}

.download-card-title {
    position: absolute;
    top: 40px;
    left: 40px;
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    z-index: 2;
    letter-spacing: 1px;
    cursor: default;
}

/* 下载中心 — 自定义背景支持 */
.download-card.has-custom-bg {
    background-image: none;
}

.download-card.has-custom-bg::before {
    display: none !important;
}

.download-list-box {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 90%;
    height: 80%;
    background-color: #f2f4f7;
    border-top-right-radius: 5px;
    padding: 30px 30px 20px;
    display: flex;
    flex-direction: column;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding-bottom: 10px;
}

.download-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    max-height: calc(100% - 60px); /* 保留空间给分页按钮 */
}

.download-item {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.download-item-right {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 60px;
    height: auto;
    padding-bottom: 15px;
    border-bottom: 2px solid #eaeaea;
}

.download-item:last-child .download-item-right {
    border-bottom: none;
    padding-bottom: 0;
}

.download-item-icon {
    width: 24px;
    height: auto;
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.download-item-text {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.4;
    flex: 1;
    word-break: break-all;
    white-space: normal;
    overflow: visible;
    transition: color 0.3s;
}

.download-item-action {
    width: 24px;
    height: auto;
    color: var(--primary-blue);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.download-item:hover .download-item-text {
    color: var(--primary-blue-hover);
    font-weight: 500;
}

.download-item:hover .download-item-icon {
    opacity: 1;
}

.download-item:hover .download-item-action {
    opacity: 1;
    transform: translateX(0);
}

/* 模拟设计稿中第一个被激活的项 */
.download-item.active .download-item-text {
    color: var(--primary-blue);
    font-weight: 500;
}

.download-item.active .download-item-icon {
    opacity: 1;
}

.download-item.active .download-item-action {
    opacity: 1;
    transform: translateX(0);
}

.download-pagination {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
    color: #ccc;
    flex-shrink: 0;
}

.download-pagination svg {
    width: 16px;
    height: 16px;
    cursor: pointer;
    transition: color 0.3s;
}

.download-pagination svg:hover {
    color: var(--primary-blue);
}

/* ================= 底部横幅 ================= */
.bottom-banner-section {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    margin-bottom: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.full-width-banner-img {
    width: 100% !important;
    height: 260px !important;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    max-width: none !important;
}

/* ================= 页脚 ================= */
.footer {
    background-color: #000000;
    color: #ffffff;
    padding: 60px 0 40px;
    font-size: 14px;
}

/* 首页特殊处理：移除内容底部及页脚顶部的间距，使横幅与页脚贴合 */
.home-content {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 0;
    padding-bottom: 0 !important;
}

.home-content+.footer {
    padding-top: 0 !important;
}

.home-content+.footer .footer-top {
    padding-top: 60px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-logo-img {
    height: 30px;
    width: auto;
}

.footer-logo-text {
    font-size: 24px;
    font-weight: bold;
}

.footer-social {
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-item-wrapper {
    position: relative;
}

.social-icon {
    display: block;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
}

.social-icon:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.qr-code-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    z-index: 100;
    padding-bottom: 15px;
    pointer-events: none;
    /* Avoid blocking other hovers */
}

.qr-code-box {
    background: #fff;
    padding: 8px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    width: 140px;
}

.qr-code-box img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    margin-bottom: 8px;
}

.qr-code-title {
    color: #333;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

.qr-code-arrow {
    position: absolute;
    bottom: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #fff;
}

.social-icon:hover .qr-code-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

.footer-friend-links {
    margin-left: auto;
    flex: 0 0 auto;
    max-width: 65%;
    display: flex;
    flex-direction: column;
}

.friend-links-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 25px;
    position: relative;
    color: #ffffff;
}

.friend-links-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(4, auto);
    gap: 15px 40px;
    width: fit-content;
}

.friend-link-item {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.friend-link-item:hover {
    color: #ffffff;
}

.footer-bottom {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.copyright-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
}

.beian-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.beian-item {
    display: flex;
    align-items: center;
}

.beian-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.beian-item a:hover {
    color: #ffffff;
}

/* ================= 移动端适配 ================= */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    /* Header */
    .mobile-menu-toggle {
        display: flex;
    }

    .header-actions {
        display: none;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        transition: right 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .main-nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .nav-item {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-item>a {
        color: var(--text-main) !important;
        padding: 15px 20px;
        width: 100%;
        justify-content: space-between;
    }

    .nav-item:hover>a {
        color: var(--text-main);
    }

    .nav-item.active>a,
    .nav-item.active-dropdown>a {
        color: var(--primary-blue) !important;
    }

    .arrow {
        border-top: 5px solid transparent !important;
        border-bottom: 5px solid transparent !important;
        border-left: 6px solid var(--text-gray) !important;
        border-right: none !important;
        transform: none !important;
        transform-origin: center !important;
    }

    .nav-item:hover .arrow {
        transform: none !important;
        border-left-color: var(--text-gray) !important;
    }

    .nav-item.active .arrow {
        border-left-color: var(--primary-blue) !important;
    }

    .nav-item.active-dropdown .arrow {
        border-left-color: var(--primary-blue) !important;
        transform: rotate(90deg) !important;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        transform: none;
        display: none;
        background: #f9f9f9;
        width: 100%;
        padding: 0;
    }

    .nav-item.has-dropdown.active-dropdown .dropdown {
        display: block;
    }

    .dropdown li a {
        padding: 12px 30px;
        border-bottom: 1px solid #eee;
    }


    /* News */
    .news-container {
        flex-direction: column;
        gap: 20px;
    }

    .news-left {
        flex: none;
        width: 100%;
    }

    .news-tabs {
        margin-bottom: 15px;
    }

    .news-tab {
        font-size: 16px;
        margin-right: 15px;
    }

    .news-item {
        padding: 10px 0;
    }

    /* Category */
    .category-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .category-card:hover .category-hover-overlay {
        opacity: 0;
    }

    .category-card.show-detail .category-hover-overlay {
        opacity: 1 !important;
    }

    /* Style */
    .style-container {
        height: auto;
        flex-direction: column;
        margin-top: 20px;
    }

    .style-left {
        width: 100%;
        height: 240px;
    }

    .style-left-overlay {
        padding: 40px 20px 20px;
    }

    .style-left-overlay h3 {
        font-size: 16px;
    }

    .style-right-wrapper {
        position: relative;
        width: 100%;
        top: 0;
        transform: none;
        margin-top: 15px;
    }

    .style-right-wrapper::before {
        display: none;
    }

    .style-right {
        padding: 15px;
    }

    .style-item img {
        width: 100px;
        height: 70px;
    }

    /* Partner */
    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
        background-color: #fff;
    }

    /* 往届大赛合作伙伴 - 移动端一排4个 */
    .past-cooperation-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
        background-color: #fff;
    }

    /* Download */
    .download-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .download-card {
        height: 470px;
    }

    .download-item-action {
        opacity: 1;
        transform: none;
    }

    /* Footer */
    .bottom-banner-section {
        display: none;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
        padding-bottom: 30px;
    }

    .footer-brand {
        align-items: center;
        gap: 20px;
    }

    .footer-friend-links {
        flex: none;
        width: 100%;
        margin-left: 0;
        align-items: center;
    }

    .friend-links-grid {
        grid-template-columns: 1fr;
        grid-auto-flow: row;
        grid-template-rows: none;
        gap: 12px;
        width: 100%;
        text-align: center;
    }

    .copyright-row {
        flex-direction: column;
        text-align: center;
    }

    .beian-info {
        justify-content: center;
    }

    .category-card:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .category-card:hover .category-icon {
        transform: none;
    }

    .category-card:active {
        background-color: #f9f9f9;
    }

    .download-card:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .news-left:hover img {
        transform: none;
    }

    .play-btn:hover {
        transform: translate(-50%, -50%);
        background-color: rgba(0, 0, 0, 0.5);
        border-color: #fff;
    }

    .play-btn:active {
        background-color: var(--primary-blue);
        border-color: var(--primary-blue);
    }

    .news-item:hover::before {
        opacity: 0;
    }

    .news-item:active::before {
        opacity: 0.15;
    }

    .style-item:hover {
        background: transparent;
    }

    .style-item:hover .style-title {
        color: var(--text-main);
    }

    .style-item:hover .style-desc {
        color: var(--text-gray);
    }

    .style-item:hover .style-arrow {
        color: #ccc;
        transform: none;
    }

    .style-item:active {
        background-color: var(--primary-blue);
    }

    .style-item:active .style-title,
    .style-item:active .style-desc,
    .style-item:active .style-arrow {
        color: #fff;
    }

    .partner-item img {
        filter: grayscale(0);
        opacity: 1;
    }

    .partner-item:hover img {
        transform: none;
    }

    .btn-primary:hover {
        transform: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        background: linear-gradient(90deg, #4b8df8, #69a2ff);
    }

    .btn-primary:active {
        background: linear-gradient(90deg, #356cd6, #4b8df8);
    }
}

/* ================= 分类页面文章列表 ================= */
.post-card-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-horizontal-card {
    display: flex;
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    min-height: 180px;
}

.post-horizontal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.post-card-left {
    position: relative;
    width: 280px;
    flex-shrink: 0;
    overflow: hidden;
}

.post-card-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-category-badge {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #4b8df8;
    color: #fff;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
}

.post-card-right {
    flex: 1;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    /* 防止标题溢出 */
}

.post-title {
    margin-bottom: 15px;
}

.post-title a {
    font-size: 18px;
    font-weight: bold;
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-title a:hover {
    color: #2c68ff;
}

.post-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f2f2f2;
    padding-top: 15px;
    margin-top: auto;
    color: #666;
    font-size: 13px;
}

@media (max-width: 768px) {
    .post-horizontal-card {
        flex-direction: column;
        min-height: auto;
    }

    .post-card-left {
        width: 100%;
        height: 200px;
    }

    .post-card-right {
        padding: 15px;
    }

    .post-footer {
        flex-direction: row;
        /* Keep row for small metadata */
        justify-content: space-between;
    }
}

/* ==========================================================================
   3D 画廊模式样式 (Gallery Mode)
   ========================================================================== */
.gallery-container {
    position: relative;
    width: 100%;
    height: 500px;
    margin: 0 auto;
    overflow: hidden;
    perspective: 1200px;
}

/* 3D画廊切换按钮定位增强 */
.gallery-container .slider-arrow {
    top: 40%; /* 适配 3D 画廊的高度中心 */
    z-index: 20; /* 确保在所有 3D 元素之上 */
    background-color: rgba(255, 255, 255, 0.7);
}

.gallery-container .slider-arrow:hover {
    background-color: #fff;
}

.gallery-container .slider-arrow.prev {
    left: 40px;
}

.gallery-container .slider-arrow.next {
    right: 40px;
}

@media (max-width: 768px) {
    .gallery-container .slider-arrow {
        display: none; /* 移动端通常靠手势滑动，且空间有限，隐藏按钮 */
    }
}

.gallery-slider {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-item {
    position: absolute;
    width: 60%;
    height: 350px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    /* 初始化时移除 transition，避免加载时闪烁，在 JS 渲染完成后再加上 */
    transition: none;
    /* 移除 will-change: transform, opacity，因为 translate3d 已创建合成层 */
    /* will-change: transform, opacity; */
    cursor: pointer;
    overflow: hidden;
    opacity: 0;
    /* 默认状态放到视野外且透明 */
    transform: translate3d(0, 0, -500px) scale(0.5);
    z-index: 1;
}

/* JS 初始化后添加此类的元素才有过渡动画 */
.gallery-item.initialized {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), z-index 0.6s;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* 防止图片在缩放时边缘出现锯齿 */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.gallery-item.center {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
    z-index: 10;
}

.gallery-item.left-1 {
    transform: translate3d(-35%, 0, -100px) scale(0.8);
    opacity: 0.8;
    z-index: 9;
}

.gallery-item.right-1 {
    transform: translate3d(35%, 0, -100px) scale(0.8);
    opacity: 0.8;
    z-index: 9;
}

.gallery-item.left-2 {
    transform: translate3d(-60%, 0, -200px) scale(0.6);
    opacity: 0.5;
    z-index: 8;
}

.gallery-item.right-2 {
    transform: translate3d(60%, 0, -200px) scale(0.6);
    opacity: 0.5;
    z-index: 8;
}

.gallery-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
    z-index: 15;
    border: 1px solid rgba(255, 255, 255, 0.5);
    max-width: 90%;
}

.caption-counter {
    background: linear-gradient(135deg, var(--primary-blue), #2c68ff);
    color: #fff;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    white-space: nowrap;
    flex-shrink: 0;
}

.caption-counter span {
    opacity: 0.8;
    margin-left: 2px;
    font-size: 13px;
}

.caption-title {
    padding: 12px 30px;
    color: var(--text-main);
    font-size: 16px;
    font-weight: 500;
    min-width: 250px;
    text-align: center;
    transition: opacity 0.2s ease-in-out;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .gallery-container {
        height: 380px;
        perspective: 800px;
    }
    .gallery-slider {
        height: 280px;
    }
    .gallery-item {
        width: 75%;
        height: 220px;
    }
    /* 移动端间距缩小，重叠变大 */
    .gallery-item.left-1 { transform: translate3d(-25%, 0, -80px) scale(0.85); }
    .gallery-item.right-1 { transform: translate3d(25%, 0, -80px) scale(0.85); }
    .gallery-item.left-2 { transform: translate3d(-45%, 0, -150px) scale(0.7); }
    .gallery-item.right-2 { transform: translate3d(45%, 0, -150px) scale(0.7); }

    .gallery-caption {
        bottom: 10px;
        width: 90%;
        border-radius: 6px;
    }

    .caption-counter {
        padding: 10px 16px;
        font-size: 14px;
        min-width: 70px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .caption-title {
        padding: 10px 15px;
        font-size: 14px;
        min-width: 0;
        flex: 1;
    }
}

/* ================= 历届大赛承办院校 移动端适配 ================= */
@media (max-width: 768px) {
    .past-schools-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
        background-color: #fff;
    }

    .past-school-item {
        padding: 15px 8px;
    }

    .past-school-item .img-wrapper {
        width: 100%;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .past-school-item img {
        width: auto;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .past-school-title {
        font-size: clamp(10px, 2.5vw, 12px);
        margin-top: 8px;
        text-align: center;
        max-width: 100%;
        padding: 0 4px;
        box-sizing: border-box;
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

@media (max-width: 540px) {
    .past-schools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 360px) {
    .past-schools-grid {
        grid-template-columns: 1fr;
    }
}

/* Override fixed inline styles from china-map.html */
.china-map-chart {
    width: 864px !important;
    max-width: 100%;
}

@media (max-width: 1024px) {
    .china-map-chart {
        width: 100% !important;
    }
}
@media (max-width: 1024px) {
    .china-map-wrapper {
        min-height: 320px;
    }
    .china-map-chart {
        width: 100% !important;
        height: 350px !important;
    }
    .map-legend {
        bottom: 12px;
        right: 12px;
        padding: 8px;
        gap: 6px;
    }
    .map-legend-label {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .hero-banner {
        height: 400px;
        padding-top: 60px;
    }
    .hero-banner-new .hero-bg-overlay {
        display: none;
    }
    .hero-banner-new {
        z-index: 0;
    }
    .china-map-wrapper {
        min-height: 280px;
    }
    .china-map-chart {
        height: 280px !important;
    }
    .map-legend {
        bottom: 8px;
        right: 8px;
        padding: 6px;
        gap: 4px;
    }
    .map-legend-dot {
        width: 10px;
        height: 10px;
    }
    .map-legend-label {
        font-size: 10px;
    }
}

@media (max-width: 640px) {
    .china-map-wrapper {
        min-height: 240px;
    }
    .china-map-chart {
        height: 240px !important;
    }
}

@media (max-width: 480px) {
    .china-map-wrapper {
        min-height: 200px;
    }
    .china-map-chart {
        height: 200px !important;
    }
    .map-loading-text {
        font-size: 12px;
    }
    .map-loading-sub {
        font-size: 10px;
    }
}

/* ================= 全局移动端工具类 ================= */
@media (max-width: 768px) {
    /* 隐藏非必要元素 */
    .desktop-only { display: none !important; }
    /* 显示移动端替换元素 */
    .mobile-replace { display: block !important; }
    /* 图片自适应 */
    img { max-width: 100%; height: auto; }
    /* 防止横向滚动 */
    body { overflow-x: hidden; }
}

@media (min-width: 769px) {
    .mobile-only { display: none !important; }
    .desktop-only { display: block !important; }
}

/* ================= 平板/小屏桌面 Zoom 缩放 (769px ~ 1499px) ================= */
@media (min-width: 769px) and (max-width: 1499px) {
    body {
        zoom: calc(100vw / 1500);
        overflow-x: visible;
    }

    /* 补偿 100vw 伪元素背景，使其在 zoom 后仍填满视口 */
    .events-section::before,
    .partner-section::before {
        width: 1500px;
    }

    .bottom-banner-section {
        width: 1500px;
        left: 50%;
        margin-left: -750px;
    }

    /* 全局固定背景 bg007-1.png 在 zoom 后仍覆盖全屏 */
    .global-page-bg {
        width: 1500px !important;
        height: 1500px;
    }
}
