:root {
    --font-sans: "Noto Sans SC", "Alibaba PuHuiTi 2.0", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --primary-color: #073a7c;
    --secondary-color: #0052ff;
    --text-color: #1f2937;
    --text-light: #5a6c7d;
    --border-color: #e4e7eb;
    --shadow-color: rgba(0, 0, 0, 0.25);
    --bg-light: #f8fafc;
}

a {
    text-decoration: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans) !important;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-color);
    background-color: #ffffff;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 公共区块样式 */
.section {
    padding: 30px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    margin-bottom: 20px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
}

.section-desc {
    font-size: 20px;
    color: var(--text-light);
    /* margin-top: 10px; */
}

/* 导航栏 */
.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e4e7eb;
    height: 100px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: height 0.3s ease;
}

.navbar .container {
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 9px;
}

.logo img {
    width: 69.744px;
    height: 43px;
}

.logo span {
    font-size: 32px;
    font-weight: 500;
    color: #073a7c;
}

.nav-menu {
    display: flex;
    gap: 75px;
    align-items: center;
}

.nav-menu a {
    font-size: 20px;
    font-weight: 350;
    color: #000000;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a.active {
    color: #073a7c;
    font-weight: 400;
    font-size: 23px;
}

.nav-menu a:hover {
    color: #073a7c;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.menu-toggle span {
    width: 24px;
    height: 2.5px;
    background-color: #4a5568;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-dropdown-menu {
    display: none;
    flex-direction: column;
    background-color: #ffffff;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #e4e7eb;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.mobile-dropdown-menu.active {
    display: flex;
    max-height: 400px;
    opacity: 1;
}

.mobile-dropdown-menu a {
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 350;
    color: #000000;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.mobile-dropdown-menu a:last-child {
    border-bottom: none;
}

.mobile-dropdown-menu a.active {
    color: #073a7c;
    font-weight: 400;
    background-color: #f5f9ff;
}

.mobile-dropdown-menu a:hover {
    color: #073a7c;
    background-color: #f8fafc;
}

/* ==============================================
   Hero 区域样式（保留原有风格，适配合作页面）
   ============================================== */
.hero {
    position: relative;
    max-width: 1200px;
    height: 200px;
    background: linear-gradient(to left, rgba(69, 212, 238, 0.75), var(--secondary-color));
    overflow: hidden;
    margin: 100px auto 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.hero-background .placeholder-bg {
    width: 100%;
    height: 100%;
    /* background-image: url('../assets/images/cooperation-hero-bg.png'); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 500;
    color: #ffffff;
    line-height: 80px;
    text-align: center;
    margin-top: 0;
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 400;
    color: #E4E7EB;
    margin-bottom: 0;
    margin-left: 60%;
}

/* ==============================================
   合作院校区域样式（核心：网格布局+无滚动+右下角更多）
   ============================================== */
.cooperation-colleges {
    /* background-color: var(--bg-light); */
    margin-top: 40px;
}

/* 院校外层容器：相对定位，承载更多链接 */
.colleges-wrapper {
    position: relative;
    width: 100%;
}

/* 院校列表：Web2行4列，移动端2行3列，无滚动 */
.colleges-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Web端4列 */
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 20px;
}

.college-card {
    background-color: #ffffff;
    /* border: 1px solid var(--border-color); */
    /* box-shadow: 0 0 8px var(--shadow-color); */
    border-radius: 8px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.college-logo {
    width: 150px;
    height: 150px;
    background-color: var(--border-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    background-size: cover;
    background-position: center;
}

.college-name {
    font-size: 24px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.college-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

/* 右下角「更多」链接 */
.colleges-hidden.expanded,
.organizations-hidden.expanded {
    display: grid;
    opacity: 1;
    max-height: 500px;
    /* 足够容纳一行的高度 */
    margin-top: 30px;
}

/* 展开动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 更多按钮样式优化 */
.more-link {
    position: absolute;
    bottom: 0;
    right: 0;
    color: var(--primary-color);
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 0;
    font-family: var(--font-sans);
}

.more-link:hover {
    color: var(--primary-color);
    /* text-decoration: underline; */
}

/* ==============================================
   合作机构区域样式（与院校布局完全一致）
   ============================================== */
.cooperation-organizations {
    margin-top: 20px;
    margin-bottom: 40px;
}

/* 机构外层容器：相对定位，承载更多链接 */
.organizations-wrapper {
    position: relative;
    width: 100%;
}

/* 机构列表：Web2行4列，移动端2行3列，无滚动 */
.organizations-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* Web端4列 */
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 20px;
}

.org-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.org-logo {
    width: 150px;
    height: 150px;
    background-color: var(--border-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    background-size: cover;
    background-position: center;
}

.org-name {
    font-size: 20px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.org-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

/* ==============================================
   页脚样式（与之前界面完全一致）
   ============================================== */
.footer {
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 40px 0 40px;
}

.footer-content {
    display: flex;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 9px;
}

.footer-logo img {
    width: 69.744px;
    height: 43px;
}

.footer-logo span {
    font-size: 32px;
    font-weight: 500;
    color: var(--primary-color);
}

.footer-links {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 60px;
    margin-left: 100px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column h5 {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.footer-column a {
    font-size: 14px;
    font-weight: 350;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: 0.42px;
    line-height: 20px;
}

.footer-column p {
    font-size: 14px;
    font-weight: 350;
    color: #1f2937;
    text-decoration: none;
    letter-spacing: 0.42px;
    line-height: 20px;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-divider {
    width: 100%;
    height: 1px;
    background-color: #e5e7eb;
    margin: 40px 0 20px;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.footer-bottom p {
    font-size: 14px;
    font-weight: 350;
    color: #0f1419;
    letter-spacing: 0.42px;
}

.colleges-hidden,
.organizations-hidden {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
}

/* 展开状态：显示隐藏卡片 */
.colleges-hidden.active,
.organizations-hidden.active {
    display: grid;
}

.mobile-hidden {
    display: block;
}

.desktop-hidden {
    display: none;
}

/* ==============================================
   响应式样式（平板/小屏电脑：≤1024px）
   ============================================== */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }

    /* 导航栏适配 */
    .nav-menu {
        gap: 50px;
    }

    /* Hero 区域适配 */
    .hero-content h1 {
        font-size: 40px;
        line-height: 60px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    /* 公共区块适配 */
    .section-title {
        font-size: 40px;
        /* display: inline-block; */
    }

    .section-desc {
        font-size: 18px;
        /* display: inline-block; */
    }

    /* 合作院校/机构适配：网格列数调整为3列 */
    .colleges-container,
    .organizations-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .college-card,
    .org-card {
        padding: 25px 20px;
    }

    .college-logo,
    .org-logo {
        width: 70px;
        height: 70px;
    }

    .college-name,
    .org-name {
        font-size: 18px;
    }

    .more-link {
        font-size: 16px;
    }
}

/* ==============================================
   响应式样式（移动端：≤767px）- 核心修改：2行3列
   ============================================== */
@media screen and (max-width: 767px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    /* 基础容器 */
    .container {
        padding: 0 24px;
    }

    /* 导航栏 */
    .navbar {
        height: 54px;
    }

    .navbar.menu-open {
        height: auto;
        min-height: 54px;
    }

    .logo img {
        margin-left: 20px;
        width: 50px;
        height: 31px;
    }

    .logo span {
        font-size: 20px;
    }

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        margin-right: 20px;
        display: flex;
    }

    .menu-toggle span {
        background-color: #073a7c;
    }

    /* Hero 区域适配 */
    .hero {
        margin-top: 54px;
        height: 150px;
    }

    .hero-content h1 {
        margin-top: 5px;
        font-size: 28px;
        font-weight: 400;
        line-height: normal;
    }

    .hero-content .BigName1 {
        margin-left: -80px;
        margin-bottom: 3px;
    }

    .hero-content .BigName2 {
        margin-left: 70px;
    }

    /* 公共区块适配 */
    .section {
        padding: 0;
    }

    .section-header {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        width: 100%;
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 24px;
        margin: 0px auto 20px;
    }

    .section-desc {
        font-size: 10px;
        margin: 0px auto;
    }

    /* 合作院校/机构适配：移动端2行3列（每行3个，共6个） */
    .cooperation-colleges {
        margin-top: 20px;
    }

    .cooperation-organizations {
        margin-top: 10px;
        margin-bottom: 20px;
    }

    /* 核心修改：网格布局改为3列，实现2行3列 */
    .colleges-container,
    .organizations-container {
        grid-template-columns: repeat(3, 1fr);
        /* 移动端3列 */
        margin-top: 0px;
        margin-bottom: 20px;
        gap: 5px
    }




    .college-card,
    .org-card {
        height: 50px;
        padding: 5px 15px;
        min-height: 120px;
        /* 固定最小高度，保证卡片整齐 */
    }

    .college-logo,
    .org-logo {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .college-name,
    .org-name {
        font-size: 10px;
        margin-bottom: 8px;
    }

    .college-desc,
    .org-desc {
        font-size: 12px;
    }

    .more-link {
        font-size: 11px;
        color: #073a7c;
        text-decoration: none;
        font-weight: 500;
    }

    /* 移动端「更多」链接适配 */

    .colleges-hidden,
    .organizations-hidden {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }

    .colleges-hidden.expanded,
    .organizations-hidden.expanded {
        max-height: 250px;
        /* 移动端一行的高度 */
        margin-top: 20px;
    }

    /* 页脚适配 */
    .footer {
        /* margin-top: 100px; */
        padding: 30px 0 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
        align-items: center;
        text-align: center;
    }

    .footer-logo {
        order: -1;
    }

    .footer-logo img {
        width: 50px;
        height: 31px;
    }

    .footer-logo span {
        font-size: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 30px !important;
        width: 100%;
        align-items: center;
        margin-left: 0 !important;
    }

    .footer-column h5 {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .footer-column a {
        font-size: 13px;
    }

    .footer-divider {
        margin: 30px 0 15px;
    }

    .footer-bottom {
        gap: 8px;
    }

    .footer-column p {
        font-size: 13px;
        font-weight: 350;
    }

    .footer-bottom p {
        font-size: 12px;
    }

    .mobile-hidden {
        display: none;
    }

    .desktop-hidden {
        display: block;
    }
}

/* ==============================================
   大屏响应式（桌面端：≥1025px）
   ============================================== */
@media screen and (min-width: 1025px) {
    .desktop-only {
        display: block !important;
    }

    .mobile-only {
        display: none !important;
    }

    /* 卡片悬停效果（与之前界面一致） */
    .college-card:hover,
    .org-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    }
}