
@font-face {
    font-family: 'UnicaOne';
    src: url('../font/UnicaOne-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HYFangDieF';
    src: url('../font/HYFangDieF.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AlibabaPuHuiTi';
    src: url('../font/AlibabaPuHuiTi-3-55-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AlibabaPuHuiTiHeavy';
    src: url('../font/Alibaba-PuHuiTi-Heavy.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root{
    --nav-h: 60px;
    --bg-grad: linear-gradient(90deg, #0a0a0a 0%, #001a60 50%, #0033ff 100%);
    --text: #ffffff;
    --text-dim: #ffffff;
    --accent: #ffd700;
}
*{ box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
                 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    background: #000000;
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 确保页面内容占满剩余空间，contact footer 在最底部 */
.main-content {
    flex: 1;
}

.home-margin {
    padding-left: 8vw;
    padding-right: 8vw;
}

/* 左对齐 60vw 宽度的页面内容布局（按需在容器上加此类） */
.content-left-60 {
    text-align: left;
    background: #000000;
}

/* content-left-60 响应式设计 - 基于PC端原始状态 */
/* 平板（<=1024px） */
@media (max-width: 1024px) {
    /* 导航栏平板端优化 */
    .nav-left {
        gap: 15px;
        margin-left: 1.5vw;
    }
    
    .university-icon img {
        width: 100px;
        height: 25px;
    }
    
    .brand-icon {
        width: 140px;
        height: 35px;
    }
    
    .menu {
        gap: 3.5vw;
    }
    
    .menu a {
        font-size: 18px;
    }
    
}

/* 手机（<=768px）- 居中显示 */
@media (max-width: 768px) {
    /* 导航栏移动端优化 */
    .nav-inner {
        padding: 0 4vw;
        justify-content: space-between;
    }
    
    .nav-left {
        gap: 12px;
        margin-left: 0;
        flex-shrink: 0;
    }
    
    .university-icon img {
        width: 80px;
        height: 20px;
    }
    
    .brand-icon {
        width: 120px;
        height: 30px;
    }
    
    /* 隐藏桌面端菜单，显示汉堡菜单 */
    .menu {
        display: none;
    }
    
    .hamburger-menu-btn {
        display: block;
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
    
    /* 下拉菜单样式 */
    .dropdown {
        right: 4vw;
        min-width: 180px;
        top: calc(100% + 5px);
    }
    
    .dropdown a {
        font-size: 14px;
        padding: 10px 14px;
    }
    
    /* 页面标题响应式 */
    .page-title,
    .post-title {
        font-size: 2rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* 文章列表响应式 */
    .post {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .post h2 {
        font-size: 1.5rem;
    }
    
    /* 联系页脚响应式 */
    .contact-title {
        font-size: 2.5rem;
    }
            
    .contact-footer {
        padding: 40px 20px;
        height: auto; /* 移动端恢复自动高度 */
    }
            
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* 移动端允许换行 */
    .contact-section p {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
    
    /* 联系页脚移动端样式 */
    .contact-container {
        padding: 0 10px;
    }
    
    .contact-title {
        margin: 10px 0 -10px 0;
        text-align: center;
    }
    
    .arrow-decoration {
        margin: 0 0 -10px 0;
        text-align: center;
    }
    
    .contact-content {
        margin-top: 25px;
    }
    
    .contact-section {
        text-align: center;
    }
    
    .contact-section h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
        white-space: normal;
    }
    
    .contact-section p {
        font-size: 0.9rem;
        margin: 5px 0;
    }
    
    .contact-section a {
        word-break: break-word;
    }
}

/* 小屏手机（<=480px） */
@media (max-width: 480px) {
    /* 导航栏小屏手机优化 */
    .nav-inner {
        padding: 0 3vw;
    }
    
    .nav-left {
        gap: 8px;
    }
    
    .university-icon img {
        width: 70px;
        height: 18px;
    }
    
    .brand-icon {
        width: 100px;
        height: 25px;
    }
    
    .hamburger-menu-btn {
        width: 24px;
        height: 24px;
        font-size: 16px;
    }
    
    .dropdown {
        right: 3vw;
        min-width: 160px;
    }
    
    .dropdown a {
        font-size: 13px;
        padding: 8px 12px;
    }
}

/* 超小屏手机（<=360px） */
@media (max-width: 360px) {
    /* 导航栏超小屏手机优化 */
    .nav-inner {
        padding: 0 2vw;
    }
    
    .nav-left {
        gap: 6px;
    }
    
    .university-icon img {
        width: 60px;
        height: 15px;
    }
    
    .brand-icon {
        width: 85px;
        height: 22px;
    }
    
    .hamburger-menu-btn {
        width: 22px;
        height: 22px;
        font-size: 14px;
    }
    
    .dropdown {
        right: 2vw;
        min-width: 140px;
    }
    
    .dropdown a {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* Back to Top Button */
.back-to-top-container {
    display: flex;
    justify-content: flex-end;
    padding-right: 8vw;
    padding-bottom: 1vw;
    padding-top: 1vw;
    z-index: 4;
}

.back-to-top-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    opacity: 1.0;
}

.back-to-top-btn:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.back-to-top-btn img {
    width: 5vw;
    height: 5vw;
    object-fit: contain;
}


/* Apply Now Button */
.apply-now-btn {
    background: #0000fe;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    padding: 1vh 1.5vh;
    font-size: 1rem;
    margin-right: -6vw;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 350px;
    z-index: 4;
}

/* 移动端适配 */
@media (max-width: 767px) {
    .apply-now-btn {
        display: none; /* 在小屏幕时完全隐藏APPLY NOW按钮 */
    }
    
    
    .back-to-top-container {
        margin-right: 5vw;
    }
    
    .back-to-top-btn img {
        width: 40px;
        height: 40px;
    }
}

/* 顶部导航 */
.nav{
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--nav-h);
    background: linear-gradient(90deg, #000000 40%, #001a60 70%, #0033ff 100%);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255,255,255,.08);
    position: relative;
}
.nav-inner{
    max-width: 100%;
    height: 100%;
    margin: 0 0px;
    padding: 0 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* 左侧区域 - 大学图标和品牌标识 */
.nav-left{
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 20px;
    margin-left: 2vw;
}

/* 左侧站点标识 */
.brand{
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    font-weight: 600;
    letter-spacing: .02em;
}
.brand-icon{
    width: 170px; 
    height: 40px;
    object-fit: contain;
}
.brand-text{
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.brand-text .main{
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}
.brand-text .sub{
    font-size: 12px;
    font-weight: 400;
    color: var(--text-dim);
    margin: 0;
}

/* 大学图标 */
.university-icon{
    display: flex;
    align-items: center;
}
.university-icon img{
    width: 120px; 
    height: 30px;
    object-fit: contain;
}

/* 中间导航链接 */
.menu{
    display: flex;
    overflow: hidden;
    flex: 1;
    justify-content: flex-end;
    max-width: none;
    flex-shrink: 0;
    order: 2;
    margin-right: 4.5vw;
}

/* Ghost 导航样式 - 支持 ul li a 结构 */
.menu ul,
.menu .nav {
    display: flex;
    gap: 4.5vw;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 重置 .nav 类的默认样式，让它表现得像普通 ul */
.menu .nav {
    all: unset;
    display: flex;
    gap: 4.5vw;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu li {
    margin: 0;
    padding: 0;
}

.menu a {
    font-family: 'UnicaOne', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
                 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    text-decoration: none;
    color: #ffffff; /* 强制使用纯白色 */
    font-size: 20px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: 1; /* 改为100%不透明，显示纯白色 */
    transition: opacity .2s ease, color .2s ease;
    padding: 4px 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.menu a:hover {
    opacity: 1;
    color: #7FEF35;
}

.menu a.active {
    color: #7FEF35;
    opacity: 1;
}

.menu a.hidden {
    display: none;
}

.menu li.hidden {
    display: none;
}

/* 汉堡菜单按钮 - 默认隐藏 */
.hamburger-menu-btn {
    display: none; /* 默认隐藏 */
    width: 32px;
    height: 32px;
    background: none;
    border: 0px solid rgba(255,255,255,.2);
    border-radius: 4px;
    cursor: pointer;
    transition: all .2s ease;
    position: relative;
}
.hamburger-menu-btn:hover {
    border-color: rgba(255,255,255,.4);
    background: rgba(255,255,255,.05);
}
.hamburger-menu-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
.hamburger-menu-btn.show {
    display: block; /* 只有当需要显示时才显示 */
}

/* 右侧区域 */
.right{
    display: flex;
    align-items: center;
    gap: 12px;
    order: 3;
    margin-right: 10px;
}

/* 下拉菜单 */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 40px;
    min-width: 200px;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
    backdrop-filter: blur(12px);
    z-index: 1001;
}
.dropdown.show {
    display: block;
}
.dropdown a,
.dropdown .dropdown-link {
    display: block;
    padding: 12px 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,.05);
    transition: all .2s ease;
}
.dropdown a:hover,
.dropdown .dropdown-link:hover {
    background: rgba(255,255,255,.05);
    color: #7FEF35;
}
.dropdown a:last-child,
.dropdown .dropdown-link:last-child {
    border-bottom: none;
}
        
/* 主要内容区域 */
.main-content {
    padding-left: 8vw;
    padding-right: 8vw;
    max-width: none;
    margin: 0;
    line-height: 1.7;
    color: #ffffff;
    background: #000000;
    width: 100%;
}

/* 正文默认文字使用 AlibabaPuHuiTi */
/* .gh-content,
.gh-content *, */
.main-content,
.main-content *{
    font-family: 'AlibabaPuHuiTi', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
                 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
} 


/* 正文标题使用 HYFangDieF */
/* .gh-content h1,
.gh-content h2,
.gh-content h3,
.gh-content h4,
.gh-content h5,
.gh-content h6,*/ 
.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4,
.main-content h5,
.main-content h6{
    font-family: 'HYFangDieF', 'AlibabaPuHuiTi', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
                 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}
         
.contact-footer {
    background-color: #0000fe;
    color: white;
    padding: 60px 40px;
    margin-top: auto; /* 推到底部 */
    min-height: 50vh; /* 最小高度占视窗一半 */
    display: flex;
    align-items: center;
}
        
.contact-container {
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    margin-left: 3vw;
    margin-right: 3vw;
}
        
.contact-header {
    margin-bottom: 40px;
}
        
.contact-title {
    font-family: 'HYFangDieF', 'AlibabaPuHuiTi', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
                 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    font-size: 4.5rem; /* 调整为更适合的大小 */
    line-height: 1.5;
    font-weight: 400;
    margin: 20px 0 -20px 0;
    letter-spacing: 1px;
}
        
.arrow-decoration {
    font-family: 'HYFangDieF', 'AlibabaPuHuiTi', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
                 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    font-size: 4.5rem; /* 与标题大小一致 */
    line-height: 1.2;
    margin: 0 0 -20px 0;
    font-weight: 400;
}
        
.contact-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-top: 40px;
}

/* 确保文本不换行的地方不换行 */
.contact-section p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 允许地址信息适当换行 */
/* .contact-section:last-child p {
    white-space: normal;
} */
        
.contact-section h3 {
    white-space: nowrap; 
    font-family: 'HYFangDieF', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
                 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: #ffffff;
}
        
.contact-section p {
    font-family: 'AlibabaPuHuiTi', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
                 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    margin: 8px 0;
    font-weight: 400;
    color: #ffffff;
}
        
.contact-section a {
    color: white;
    text-decoration: underline;
}
        
.contact-section a:hover {
    text-decoration: none;
}

/* 页面和文章头部样式 */
.page-header,
.post-header {
    margin-bottom: 2rem;
    text-align: center;
}

.page-feature-image,
.post-feature-image {
    margin-bottom: 1.5rem;
}

.page-feature-image img,
.post-feature-image img {
    width: 100%;
    max-width: 800px;
    height: auto;
}

.page-title,
.post-title {
    font-family: 'HYFangDieF', 'AlibabaPuHuiTi', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
                 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    color: var(--text);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.post-author,
.post-date {
    font-family: 'AlibabaPuHuiTi', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
                 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.post-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255,255,255,0.1);
    color: var(--text);
    text-decoration: none;
    font-size: 0.8rem;
}


/* 首页文章列表样式 */
.post {
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
}

.post h2 {
    margin: 0 0 1rem 0;
    font-family: 'HYFangDieF', 'AlibabaPuHuiTi', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
                 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1.3;
}

.post h2 a {
    color: var(--text);
    text-decoration: none;
}

.post p {
    margin: 0 0 1rem 0;
    font-family: 'AlibabaPuHuiTi', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
                 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dim);
}

.post time {
    font-family: 'AlibabaPuHuiTi', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
                 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    font-size: 0.9rem;
    color: var(--text-dim);
    opacity: 0.8;
}


/* Contact Footer Section 响应式设计 */
@media (max-width: 1024px) {
    /* 平板设备 */
    .contact-footer {
        padding: 50px 30px;
        height: auto;
        min-height: 50vh;
    }
    
    .contact-container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .contact-title {
        font-size: 3.5rem;
        margin: 15px 0 -15px 0;
    }
    
    .arrow-decoration {
        font-size: 3.5rem;
        margin: 0 0 -15px 0;
    }
    
    .contact-content {
        gap: 40px;
        margin-top: 30px;
    }
    
    .contact-section h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .contact-section p {
        font-size: 0.95rem;
        margin: 6px 0;
    }
}

@media (max-width: 768px) {
    /* 手机设备 */
    .contact-footer {
        padding: 40px 20px;
        height: auto;
        min-height: auto;
    }
    
    .contact-container {
        max-width: 100%;
        padding: 0 10px;
        margin-left: 0;
        margin-right: 0;
    }
    
    .contact-title {
        font-size: 2.5rem;
        margin: 10px 0 -10px 0;
        text-align: center;
    }
    
    .arrow-decoration {
        font-size: 2.5rem;
        margin: 0 0 -10px 0;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 25px;
    }
    
    .contact-section {
        text-align: center;
    }
    
    .contact-section h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
        white-space: normal;
    }
    
    .contact-section p {
        font-size: 0.9rem;
        margin: 5px 0;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        line-height: 1.5;
    }
    
    .contact-section a {
        word-break: break-word;
    }
}


@media (max-width: 480px) {
    /* 小屏手机 */
    .contact-footer {
        padding: 30px 15px;
        height: auto;
        min-height: auto;
    }
    
    .contact-container {
        padding: 0 5px;
        margin-left: 0;
        margin-right: 0;
    }
    
    .contact-title {
        font-size: 2rem;
        margin: 8px 0 -8px 0;
        text-align: center;
    }
    
    .arrow-decoration {
        font-size: 2rem;
        margin: 0 0 -8px 0;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 20px;
    }
    
    .contact-section {
        text-align: center;
    }
    
    .contact-section h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
        white-space: normal;
    }
    
    .contact-section p {
        font-size: 0.85rem;
        margin: 4px 0;
        line-height: 1.4;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
    
    .contact-section a {
        word-break: break-word;
    }
}

@media (max-width: 360px) {
    /* 超小屏手机 */
    .contact-footer {
        padding: 25px 10px;
        height: auto;
        min-height: auto;
    }
    
    .contact-container {
        padding: 0 5px;
        margin-left: 0;
        margin-right: 0;
    }
    
    .contact-title {
        font-size: 1.8rem;
        margin: 6px 0 -6px 0;
        text-align: center;
    }
    
    .arrow-decoration {
        font-size: 1.8rem;
        margin: 0 0 -6px 0;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 18px;
    }
    
    .contact-section {
        text-align: center;
    }
    
    .contact-section h3 {
        font-size: 1rem;
        margin-bottom: 6px;
        white-space: normal;
    }
    
    .contact-section p {
        font-size: 0.8rem;
        margin: 3px 0;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        line-height: 1.4;
    }
    
    .contact-section a {
        word-break: break-word;
    }
}

/* 横屏手机优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .contact-footer {
        height: auto;
        min-height: auto;
        padding: 30px 20px;
    }
    
    .contact-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        margin-top: 20px;
    }
    
    .contact-title {
        font-size: 2rem;
        margin: 10px 0 -10px 0;
    }
    
    .arrow-decoration {
        font-size: 2rem;
        margin: 0 0 -10px 0;
    }
}




