/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "SimHei", "SimSun", sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

/* Logo区域 */
.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 60px;
    width: auto;
    max-width: 100%;
}

.logo-circle {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.logo-text {
    color: #1e3c72;
    font-weight: 700;
    font-size: 14px;
}

.nav-icon-img {
    height: 40px;
}
.university-info {
    display: flex;
    flex-direction: column;
}

.university-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.university-name-en {
    font-size: 12px;
    opacity: 0.9;
    margin: 0;
}

/* 部门名称 */
.department-name h2 {
    font-size: 28px;
    font-weight: 500;
    margin: 0;
}

/* 搜索区域 */
.search-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-input {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    width: 200px;
    outline: none;
}

.search-btn {
    background: #2c3e50;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: #2c3e50
}

/* 顶部导航栏 */
.dept-navbar {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.dept-navbar__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dept-navbar__menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

.dept-navbar__item {
    position: relative;
}

.dept-navbar__link {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.dept-navbar__link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.dept-navbar__item--has-dropdown .dept-navbar__link {
    padding-right: 32px;
}

.dept-navbar__arrow {
    position: absolute;
    right: 12px;
    font-size: 10px;
    transition: transform 0.3s ease;
}

.dept-navbar__item--has-dropdown:hover .dept-navbar__arrow {
    transform: rotate(180deg);
}

/* 下拉菜单 */
.dept-navbar__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 180px;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.dept-navbar__item--has-dropdown:hover .dept-navbar__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dept-navbar__dropdown-link {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.dept-navbar__dropdown-link:hover {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    padding-left: 24px;
}

/* 汉堡菜单按钮（移动端） */
.dept-navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.dept-navbar__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.dept-navbar__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.dept-navbar__toggle.active span:nth-child(2) {
    opacity: 0;
}

.dept-navbar__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* 移动端响应式 */
@media (max-width: 1024px) {
    .dept-navbar__link {
        padding: 14px 20px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .dept-navbar__toggle {
        display: flex;
    }
    
    .dept-navbar__menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0;
    }
    
    .dept-navbar__menu.active {
        max-height: 600px;
        padding: 10px 0;
    }
    
    .dept-navbar__item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .dept-navbar__link {
        padding: 14px 20px;
        width: 100%;
        justify-content: space-between;
    }
    
    .dept-navbar__item--has-dropdown .dept-navbar__link {
        padding-right: 20px;
    }
    
    .dept-navbar__dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(0, 0, 0, 0.2);
        box-shadow: none;
        border-radius: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        margin-top: 0;
    }
    
    .dept-navbar__item--has-dropdown.active .dept-navbar__dropdown {
        max-height: 500px;
    }
    
    .dept-navbar__dropdown-link {
        padding: 10px 40px;
        color: rgba(255, 255, 255, 0.9);
    }
    
    .dept-navbar__dropdown-link:hover {
        background: rgba(255, 255, 255, 0.1);
        padding-left: 40px;
    }
    
    .dept-navbar__arrow {
        position: static;
        margin-left: auto;
    }
}

/* 主要内容区域 */
.main-content {
    padding: 10px 15px;
    position: relative;
}

/* 首页去除内边距以实现轮播全宽 */
.main--no-padding {
    padding: 0;
}

.content-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* 轮播区域 */
.carousel-section {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    margin: 0;
}

.carousel-container {
    position: relative;
    width: 100%;
}

.carousel-slides {
    position: relative;
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide.active {
    opacity: 1;
}

/* 轮播图片样式 */
.slide-image {
    width: 100%;
    height: 100%;
    position: relative;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 轮播内容 */
.slide-content {
    text-align: center;
    color: #333;
    padding: 130px 65px;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
}

.slide-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: #333;
    text-shadow: none;
}

/* 轮播控制按钮 */
.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.prev-btn, .next-btn {
    background: rgba(30, 60, 114, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    pointer-events: all;
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(30, 60, 114, 1);
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background: #1e3c72;
}

/* 底部导航区域 */
.footer {
    background: white;
    padding: 20px 20px 30px;
    position: relative;
    margin-top: 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    position: relative;
    margin: 0 auto;
    max-width: 900px;
}

/* 导航按钮重新设计 */
.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 80px;
    background: white;
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.4s ease;
    position: relative;
    z-index: 3;
    margin: 0;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-btn:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.nav-btn:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.nav-btn:hover {
    background: #1e3c72;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3);
}

/* 按钮图标样式 */
.btn-icon {
    font-size: 24px;
    line-height: 1;
    transition: all 0.4s ease;
    z-index: 5;
    position: relative;
    margin-right: 10px;
}

.nav-btn:hover .btn-icon {
    transform: scale(1.1);
}


.nav-btn:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.nav-btn:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.nav-btn:hover {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 12px 25px rgba(30, 60, 114, 0.4);
    z-index: 10;
    border-color: #1e3c72;
}

.nav-btn:active {
    transform: translateY(-5px) scale(1.04);
}

.btn-text {
    z-index: 5;
    position: relative;
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    line-height: 1;
    transition: all 0.4s ease;
    color: #333;
    letter-spacing: 0.5px;
}

.nav-btn:hover .btn-text {
    color: white;
    font-weight: 800;
}

/* 连接线 */
.btn-line {
    position: absolute;
    width: 4px;
    height: 30px;
    background: #333;
    top: -30px;
    z-index: 1;
    border-radius: 3px;
}

.left-line {
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.right-line {
    right: 50%;
    transform: translateX(50%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/* 中间按钮特殊样式 */
#employment-btn {
    background: white;
    position: relative;
}

#employment-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, transparent, #1e3c72, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

#employment-btn:hover::after {
    opacity: 1;
}

#employment-btn:hover {
    background: #1e3c72;
    color: white;
    box-shadow: 0 8px 20px rgba(30, 60, 114, 0.3);
}

/* 确保图标在所有浏览器中正确显示 */
.btn-icon {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 网站底部信息样式 */
.site-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 40px 0 20px;
    margin-top: 0;
}

.site-footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 上部分：四个信息列 */
.footer-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
}

.footer-content {
    flex: 1;
}

.footer-content p {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #ecf0f1;
}

.footer-content strong {
    color: white;
    font-weight: 600;
}

/* 快速链接样式 */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding-left: 15px;
}

.footer-links a::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #3498db;
    font-size: 12px;
}

.footer-links a:hover {
    color: #3498db;
}

/* 社交媒体图标 */
.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    background: #3498db;
    border-color: #3498db;
    transform: translateY(-2px);
}

.social-icon span {
    font-size: 18px;
    color: white;
}

.icon-weibo {
    font-weight: bold;
    font-family: Arial, sans-serif;
}

/* 分隔线 */
.footer-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    margin: 30px 0;
}

/* 版权信息 */
.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright p {
    margin: 5px 0;
    color: #bdc3c7;
    font-size: 14px;
}

.footer-copyright p:first-child {
    font-weight: 500;
    color: #ecf0f1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .logo-section {
        justify-content: center;
    }

    .logo {
        height: 50px;
    }

    .university-name {
        font-size: 20px;
    }

    .department-name h2 {
        font-size: 24px;
    }

    .search-input {
        width: 150px;
    }

    .main-content {
        padding: 20px 15px;
        min-height: 40vh;
    }

    .carousel-container {
        height: 250px;
    }

    .slide-content {
        padding: 60px 30px;
    }

    .slide-content h3 {
        font-size: 24px !important;
    }

    .slide-content p {
        font-size: 18px !important;
    }

    .slide-btn {
        padding: 20px 40px;
        font-size: 18px;
    }

    /* 轮播控制按钮响应式 */
    .carousel-controls {
        padding: 0 15px;
    }

    .prev-btn, .next-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    /* 轮播指示器响应式 */
    .carousel-indicators {
        bottom: 15px;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    /* 底部导航按钮响应式 */
    .nav-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100%;
        justify-content: center;
    }

    .nav-btn {
        width: 100%;
        max-width: 300px;
        height: 100px;
        flex-direction: row;
        gap: 8px;
        border-radius: 12px;
    }

    .nav-btn:first-child,
    .nav-btn:last-child {
        border-radius: 12px;
    }

    .btn-icon {
        margin-right: 10px;
        margin-bottom: 0;
    }

    .btn-text {
        font-size: 14px;
    }

    /* 网站底部响应式 */
    .site-footer .footer-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .site-footer .footer-title {
        font-size: 16px;
    }

    .site-footer .footer-content p {
        font-size: 14px;
    }

    .site-footer .social-icons {
        justify-content: flex-start;
    }

    .site-footer .social-icon {
        width: 35px;
        height: 35px;
    }

    .site-footer .social-icon span {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 0;
    }

    .header-container {
        padding: 0 15px;
    }

    .logo {
        height: 40px;
    }

    .logo-circle {
        width: 50px;
        height: 50px;
    }

    .logo-text {
        font-size: 12px;
    }

    .university-name {
        font-size: 18px;
    }

    .university-name-en {
        font-size: 10px;
    }

    .department-name h2 {
        font-size: 20px;
    }

    .search-input {
        width: 120px;
        font-size: 12px;
    }

    .search-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .main-content {
        padding: 15px 15px;
        min-height: 30vh;
    }

    .carousel-container {
        height: 250px;
    }

    .slide-content {
        padding: 40px 20px;
    }

    .slide-content h3 {
        font-size: 20px !important;
    }

    .slide-content p {
        font-size: 16px !important;
    }

    .slide-btn {
        padding: 15px 30px;
        font-size: 16px;
    }

    /* 轮播控制按钮小手机响应式 */
    .carousel-controls {
        padding: 0 10px;
    }

    .prev-btn, .next-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    /* 轮播指示器小手机响应式 */
    .carousel-indicators {
        bottom: 10px;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }

    /* 底部导航按钮小手机响应式 */
    .nav-buttons {
        gap: 12px;
        padding: 0 10px;
        flex-direction: column;
    }

    .nav-btn {
        width: 100%;
        max-width: 280px;
        height: 90px;
        gap: 6px;
        flex-direction: row;
    }

    .btn-icon {
        margin-right: 8px;
        margin-bottom: 0;
    }

    .btn-text {
        font-size: 13px;
    }

    /* 网站底部移动端响应式 */
    .site-footer {
        padding: 30px 0 15px;
    }

    .site-footer-container {
        padding: 0 15px;
    }

    .site-footer .footer-info {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .site-footer .footer-title {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .site-footer .footer-content p {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .site-footer .footer-links a {
        font-size: 14px;
    }

    .site-footer .social-icons {
        gap: 10px;
    }

    .site-footer .social-icon {
        width: 32px;
        height: 32px;
    }

    .site-footer .social-icon span {
        font-size: 14px;
    }

    .site-footer .footer-copyright p {
        font-size: 12px;
    }
}