/* ================= 全局变量与重置 ================= */
:root {
    --primary-blue: #4a88f7;
    --primary-blue-hover: #356cd6;
    --text-main: #333333;
    --text-gray: #666666;
    --bg-light: #f5f7fa;
}

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

body {
    overflow-x: hidden;
    background-color: #ffffff;
}

/* 自定义滚动条样式，取代原来的隐藏逻辑，增加布局稳定性 */
::-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: "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-main);
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* ================= 顶部导航 Header ================= */
.header {
    width: 100%;
    height: 80px;
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* 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 {
    color: #004481;
}

.header.sub-header .btn-login {
    color: #004481;
    border-color: #004481;
}

.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%;
}

.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>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, #4b8df8, #69a2ff);
    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, #356cd6, #4b8df8);
    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 2px 10px rgba(0, 0, 0, 0.1);
    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: transparent;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
    box-shadow: none;
}

.header.scrolled .btn-login:hover {
    background: var(--primary-blue);
    color: #fff;
}

.header.scrolled .mobile-menu-toggle span {
    background-color: var(--text-main);
}

.mobile-menu-toggle.open span {
    background-color: var(--text-main) !important;
}

/* ================= 首屏焦点图 Banner ================= */
.hero-banner {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
    /* 为绝对定位的Header留出空间 */
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
    z-index: 0;
}

.hero-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.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-subtitle {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: 1px;
    color: #e0e0e0;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #fff;
}

.btn-primary {
    display: inline-block;
    padding: 12px 36px;
    background: linear-gradient(90deg, #4b8df8, #69a2ff);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(74, 136, 247, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #356cd6, #4b8df8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 136, 247, 0.6);
}

/* ================= 鼠标丝滑跟随高光按钮 ================= */
.btn-glow {
    position: relative;
    overflow: hidden;
    --x: 50%;
    --y: 50%;
    isolation: isolate;
}

.btn-glow::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.22s ease;
    background: radial-gradient(120px circle at var(--x) var(--y),
            rgba(255, 255, 255, 0.35) 0%,
            rgba(255, 255, 255, 0.1) 40%,
            rgba(255, 255, 255, 0) 70%);
    z-index: 1;
}

.btn-glow:hover::before {
    opacity: 1;
}

.btn-glow>* {
    position: relative;
    z-index: 2;
}

/* 轮播左右箭头 */
.slider-arrow {
    position: absolute;
    top: 55%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slider-arrow:hover {
    background-color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.05);
}

.slider-arrow.prev {
    left: 50px;
}

.slider-arrow.next {
    right: 50px;
}

.icon-arrow-left,
.icon-arrow-right {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-top: 2px solid #4a88f7;
    border-right: 2px solid #4a88f7;
}

.icon-arrow-left {
    transform: rotate(-135deg);
    margin-left: 5px;
}

.icon-arrow-right {
    transform: rotate(45deg);
    margin-right: 5px;
}

/* ================= 公共模块样式 ================= */
.section {
    padding: 60px 0 100px;
    /* 增加底部 Padding，确保在宽屏下底部内容可见 */
    background-color: #fff;
}

.section-bg-light {
    background-color: #ffffff;
}

.section-title {
    text-align: center;
    font-size: 32px;
    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: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.news-left img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.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: 2px solid #fff;
    transition: all 0.3s;
    z-index: 2;
}

.play-btn::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid #fff;
    margin-left: 5px;
}

.play-btn:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translate(-50%, -50%) scale(1.1);
}

.news-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.news-tabs {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.news-tab {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-gray);
    margin-right: 30px;
    padding-bottom: 12px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.news-tab.active {
    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/NatscV2/assets/images/bg001.png') no-repeat right center;
    background-size: cover;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.news-item:hover::before {
    opacity: 1;
}

.news-date {
    text-align: center;
    color: #ccc;
    margin-right: 20px;
    min-width: 60px;
    transition: color 0.3s;
}

.news-date .day {
    display: block;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 4px;
}

.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-date,
.news-item:hover .news-title {
    color: var(--primary-blue);
}

/* ================= 赛项全览模块 ================= */
.events-section {
    padding: 80px 0;
    position: relative;
}

.events-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: url('/themes/NatscV2/assets/images/bg007.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 10px 20px rgba(74, 136, 247, 0.15);
}

.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);
    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: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

.category-hover-overlay p {
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.9;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-arrow {
    margin-top: auto;
    align-self: flex-end;
    font-size: 20px;
}

/* ================= 液态玻璃卡片交互 ================= */
.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 20px 40px rgba(0, 0, 0, 0.2) !important;
}

/* 表面跟随高光 */
.card-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: radial-gradient(450px circle at var(--mx) var(--my),
            rgba(255, 255, 255, 0.2),
            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: 1px;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.22s ease;
    background: radial-gradient(220px circle at var(--mx) var(--my),
            rgba(255, 255, 255, 0.8) 0%,
            rgba(255, 255, 255, 0.3) 20%,
            rgba(255, 255, 255, 0) 70%);
    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-left {
    width: 65%;
    height: 100%;
    position: relative;
    /* border-radius: 4px; */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.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 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: var(--primary-blue);
    z-index: -1;
    /* border-radius: 4px; */
}

.style-right {
    background: #fff;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.style-item {
    display: flex;
    gap: 20px;
    cursor: pointer;
    padding: 20px 0;
    border-bottom: 1px dashed #eaeaea;
    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;
    font-weight: bold;
    color: var(--text-main);
    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;
}

/* ================= 信息化服务平台 ================= */
.service-section {
    background-color: #fff;
    padding: 60px 0;
}

.service-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

.service-item {
    flex: 1;
    text-align: center;
    padding: 50px 20px;
    border: 1px solid #f0f0f0;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

/* 悬浮时的背景图案 (使用CSS渐变模拟设计图中的几何纹理) */
.service-item::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: url(/themes/NatscV2/assets/images/bg002.png) no-repeat center / 100% 100%;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.service-item:hover::before {
    opacity: 1;
}

.service-item:hover,
.service-item.active {
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(74, 136, 247, 0.1);
}

.service-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.service-item:hover .service-icon img {
    transform: translateY(-5px);
}

.service-name {
    font-size: 18px;
    color: var(--text-main);
    position: relative;
    z-index: 2;
    transition: color 0.3s;
}

/* 悬浮时文字变蓝 */
.service-item:hover .service-name,
.service-item.active .service-name {
    color: var(--primary-blue);
    font-weight: bold;
}

/* ================= 合作伙伴 ================= */
.partner-section {
    padding: 160px 0;
    position: relative;
}

.partner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: url('/themes/NatscV2/assets/images/bg003.png') no-repeat center center;
    background-size: 100% 100%;
    z-index: 0;
}



.partner-section .container {
    position: relative;
    z-index: 2;
}

.partner-box {
    background-color: #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.partner-item {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    background-color: #fff;
}

/* 去除最右侧和最底部的边框 */
.partner-item:nth-child(5n) {
    border-right: none;
}

.partner-item:nth-last-child(-n+5) {
    border-bottom: none;
}

.partner-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    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: #eef5ff;
    color: var(--primary-blue);
    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;
}

/* ================= 下载中心 ================= */
.download-section {
    padding: 80px 0;
    background-color: #fff;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.download-card {
    position: relative;
    height: 550px;
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--primary-blue);
    /* 使用渐变和占位图模拟设计稿中的蓝色3D背景 */
    background-image: linear-gradient(135deg, #6ba1ff 0%, #356cd6 100%);
    box-shadow: 0 10px 30px rgba(74, 136, 247, 0.15);
}

.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;
}

/* 下载中心 — 自定义背景支持 */
.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: #f8f9fa;
    border-top-right-radius: 8px;
    padding: 30px 30px 20px;
    display: flex;
    flex-direction: column;
    z-index: 2;
    box-shadow: 5px -5px 20px rgba(0, 0, 0, 0.05);
}

.download-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.download-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.download-item-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.download-item-text {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.download-item-action {
    width: 24px;
    height: 24px;
    color: var(--primary-blue);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.download-item:hover .download-item-text {
    color: var(--primary-blue);
    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;
}

.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: 100%;
    height: 220px;
    position: relative;
    margin-bottom: 0;
}

.bottom-banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    background: var(--banner-url, url('/themes/NatscV2/assets/images/hf.png')) no-repeat center center;
    background-size: 100% 100%;
    z-index: 0;
}

/* ================= 页脚 ================= */
.footer {
    background-color: #000000;
    color: #ffffff;
    padding: 60px 0 40px;
    font-size: 14px;
}

/* 首页特殊处理：移除内容底部及页脚顶部的间距，使横幅与页脚贴合 */
.home-content {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 3rem;
    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: flex-start;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.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-icon {
    color: #ffffff;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
}

.social-icon:hover {
    opacity: 1;
    transform: scale(1.1);
}

.footer-friend-links {
    flex: 0 0 65%;
}

.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: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .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);
        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;
    }

    /* Banner */
    .hero-banner {
        height: 400px;
        padding-top: 60px;
    }

    .hero-title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .slider-arrow {
        display: none;
    }

    /* 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;
    }

    /* Service */
    .service-container {
        flex-direction: column;
        gap: 15px;
    }

    .service-item {
        padding: 30px 20px;
    }

    /* Partner */
    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .partner-item:nth-child(5n) {
        border-right: 1px solid #f0f0f0;
    }

    .partner-item:nth-child(2n) {
        border-right: none;
    }

    .partner-item:nth-last-child(-n+5) {
        border-bottom: 1px solid #f0f0f0;
    }

    .partner-item:nth-last-child(-n+2) {
        border-bottom: none;
    }

    /* Download */
    .download-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .download-card {
        height: 470px;
    }

    .download-item-action {
        opacity: 1;
        transform: none;
    }

    /* Footer */
    .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;
    }

    .footer-friend-links {
        flex: none;
        width: 100%;
    }

    .friend-links-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .copyright-row {
        flex-direction: column;
        text-align: center;
    }

    .beian-info {
        justify-content: center;
    }

    .category-card:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }

    .category-card:hover .category-icon {
        transform: none;
    }

    .category-card:active {
        background-color: #f9f9f9;
    }

    .service-item:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }

    .service-item:active {
        background-color: #f9f9f9;
    }

    .download-card:hover {
        transform: none;
        box-shadow: 0 4px 15px 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 15px rgba(74, 136, 247, 0.4);
        background: linear-gradient(90deg, #4b8df8, #69a2ff);
    }

    .btn-primary:active {
        background: linear-gradient(90deg, #356cd6, #4b8df8);
    }
}