/* style.css */
@import url('reset.css');
@import url('variables.css');

/* 布局样式 */
.header {
    width: 100%;
    height: 100px;
    background: #1A1A1A;
    color: #FFFFFF;
    font-size: 18px;
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 90px;
    height: 100%;
}
.logo {
    flex: 0 0 auto;
}
.nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
}
.nav ul {
    display: flex;
    gap: 100px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav ul li {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav ul li.active {
    border-bottom: 2px solid #FFFFFF;
}
.nav a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 0;
    height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 16px;

}
.footer .footer-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 16px;
}
.footer .footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1rem;
    color: #fff;
}
.footer .footer-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}







/* 组件样式 */
.button {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: #0078ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}
.button:hover {
    background: #005bb5;
}
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* 页面特定样式 */
.home-banner img {
    width: 100%;
}
.team-list {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

/* 模块样式 */
.module-section {
    padding: 100px 0;
    text-align: center;
}
.module-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.module-section img {
    max-width: 1600px;
    height: auto;
}

/* 区域模块标题样式 */
.area-title {
    font-size: 48px;
    padding: 55px 0;
    margin: 0;
    font-weight: bold;
    color: #FFFFFF;
}

/* 学科模块背景样式 */
.area {
    padding: 0 0 15px 0;
    background-color: #1A1A1A;
}

/* 国家列表样式 */
.country-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    padding: 0 40px;
}

.country-item {
    font-size: 24px;
    color: #FFFFFF;
    font-weight: 500;
}

.country-item:not(:last-child)::after {
    content: "丨";
    color: #FFFFFF;
    margin: 0 20px;
    font-weight: 500;
}

/* 大学展示容器样式 */
.university {
    width: 1500px;
    background-image: url('../images/index/index_area.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 600px;
    padding: 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #C0C4CC;
}

.university-list {
    margin: 0 130px 0 auto;
    background: #FFFFFF;
    padding: 40px;
    border-radius: 20px;
    max-height: 100%;
    box-sizing: border-box;
    overflow-y: auto;
    text-align: left;
    /* 隐藏滚动条按钮 */
    scrollbar-width: thin;
    scrollbar-color: #C0C4CC transparent;
}

/* Webkit浏览器隐藏滚动条按钮 */
.university-list::-webkit-scrollbar {
    width: 6px;
}

.university-list::-webkit-scrollbar-track {
    background: transparent;
}

.university-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.university-list::-webkit-scrollbar-button {
    display: none;
}

/* 大学列表项样式 */
.university-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    /* border-bottom: 1px solid #eee; */
    text-align: left;
}

.university-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.university-name {
    font-size: 24px;
    font-weight: 500;
    color: #1A1A1A;
    margin-bottom: 5px;
}

.university-en-name {
    font-size: 16px;
    color: #909399;
    line-height: 1.4;
}

/* 国家项选中状态 */
.country-item.active {
    font-weight: bold;
}

.country-item {
    cursor: pointer;
    transition: color 0.2s;
}

/* 区域模块标题样式 */
.subject-title {
    font-size: 48px;
    font-weight: bold;
    color: #1A1A1A;
}

/* 学科模块背景样式 */
.subject {
    background-color: #FFFFFF;
}

/* 学科列表样式 */
.subject-list {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.subject-group {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* 单数行从左往右滚动 */
.subject-group:nth-child(odd) {
    position: relative;
    overflow: hidden;
    height: 120px;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.subject-group:nth-child(odd) .subject-group-content {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    gap: 30px;
    align-items: center;
    white-space: nowrap;
    height: 100%;
    animation: scroll-left 3000s linear infinite;
}

.subject-group:nth-child(odd):hover .subject-group-content {
    animation-play-state: paused;
}

/* 双数行从右往左滚动 */
.subject-group:nth-child(even) {
    position: relative;
    overflow: hidden;
    height: 120px;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

.subject-group:nth-child(even) .subject-group-content {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    gap: 30px;
    align-items: center;
    white-space: nowrap;
    height: 100%;
    animation: scroll-right 3000s linear infinite;
}

.subject-group:nth-child(even):hover .subject-group-content {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% + 2000px));
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(calc(-100% + 2000px));
    }
    100% {
        transform: translateX(0);
    }
}

.subject-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 30px;
    background: #FFF2E7;
    border-radius: 100px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    flex-shrink: 0;
}

.subject-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.subject-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.subject-name {
    font-size: 24px;
    font-weight: 500;
    color: #1A1A1A;
    white-space: nowrap;
}
.point-section{
    padding-top: 160px;
}
.service-list,.teacher-section{
    margin-bottom: 160px;
}

/* 服务模块链接样式 */
.service-links {
    display: flex;
}


.service-left {
    margin-right: 100px;
}

@font-face {
    font-family: 'MiSans';
    src: url('../fonts/MiSans/woff2/MiSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'MiSans';
    src: url('../fonts/MiSans/woff2/MiSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'MiSans';
    src: url('../fonts/MiSans/woff2/MiSans-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
html, body {
    font-family: 'MiSans', 'Microsoft YaHei', Arial, sans-serif;
}

/* 联系我们页面样式 */
.contact-section {
    padding-top: 160px;
}

.contact-list {
    width: 1200px;
    margin: 0 auto;
    padding: 100px;
    box-sizing: border-box;
    background: #1A1A1A;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
}

.contact-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-qrcode {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    border: 1px dashed #C0C4CC;
}

.contact-title {
    font-size: 24px;
    font-weight: 500;
    color: #FFFFFF;
    line-height: 1.4;
}

/* 关注我们页面样式 */

.about-box .about-intro {
    max-width: 1200px;
    margin: 160px auto;
} 
.about-box .about-intro p{
    font-size: 24px;
    color: #1A1A1A;
}
.about-box .home-banner {
    position: relative;
}
.about-box .banner-intro {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    font-size: 24px;
    box-sizing: border-box;
}
.about-box .banner-intro p {
    color: #fff;
    line-height: 40px;
    margin: 20px 0;
    width: 1200px;
    text-align: left;
}
.follow-section {
    width: 1200px;
    margin: 0 auto;
    padding: 160px 0;
}

.follow-section h1 ,.contact-section h1 {
    font-size: 46px;
    text-align: center;
    margin-bottom: 60px;
    color: #1A1A1A;
}

.follow-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 65px;
}

.follow-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 55px 20px;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0px 4px 16px 0px rgba(0,0,0,0.08);
    transition: transform 0.2s;
}

.follow-item:hover {
    transform: translateY(-2px);
}

.follow-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.follow-name {
    font-size: 24px;
    font-weight: 500;
    color: #1A1A1A;
    line-height: 1.4;
    text-align: center;
}


