/* CSS 变量 */
:root {
    --primary-color: #0e316c;
    --secondary-color: #bea163;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text h1 {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: bold;
}

.logo-text p {
    font-size: 12px;
    color: var(--secondary-color);
}

/* 导航栏 */
.nav-list {
    display: flex;
    gap: 5px;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: block;
    padding: 12px 20px;
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-item > a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* 下拉菜单 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 160px;
    background-color: var(--white);
    box-shadow: var(--shadow);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 新闻模块 */
.news-section {
    padding: 60px 0;
    background-color: var(--light-gray);
}

.news-content {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.news-list {
    flex: 1;
    background-color: var(--white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.news-header h2 {
    color: var(--primary-color);
    font-size: 22px;
    position: relative;
}

.more-link {
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.more-link:hover {
    color: var(--primary-color);
}

.news-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
    transition: all 0.3s ease;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    padding-left: 10px;
}

.news-date {
    color: var(--white);
    background-color: var(--secondary-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}

.news-title {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.news-title:hover {
    color: var(--primary-color);
}

.news-image {
    flex: 1;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.news-image img {
    width: 100%;
    flex: 1;
    min-height: 420px;
    object-fit: cover;
}

.image-caption {
    padding: 15px;
    text-align: center;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    background-color: var(--white);
}

/* 学术成果模块 */
.achievements-section {
    padding: 60px 0;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: bold;
    display: inline-block;
}

.title-underline {
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 15px auto 0;
    border-radius: 2px;
}

.achievements-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.scroll-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background-color: var(--white);
    color: var(--primary-color);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.scroll-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.achievements-scroll {
    flex: 1;
    overflow: hidden;
}

.achievements-container {
    display: flex;
    gap: 25px;
    transition: transform 0.5s ease;
    padding: 10px 0;
}

.achievement-card {
    min-width: 280px;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(14, 49, 108, 0.15);
    border-color: var(--secondary-color);
}

.achievement-card .card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.achievement-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.achievement-card:hover .card-image img {
    transform: scale(1.05);
}

.achievement-card .card-content {
    padding: 20px;
    text-align: center;
}

.achievement-card h3 {
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.achievement-card .card-date {
    color: var(--text-light);
    font-size: 13px;
}

.achievements-more {
    text-align: center;
    margin-top: 40px;
}

.more-btn {
    display: inline-block;
    padding: 12px 40px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 16px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.more-btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

/* 页脚 */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-logo {
    text-align: center;
}

.footer-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.footer-logo p {
    font-size: 14px;
    color: var(--secondary-color);
}

.footer-info {
    flex: 1;
}

.footer-info p {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-links h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-links a {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
}

.footer-bottom p {
    font-size: 13px;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .news-content {
        flex-direction: column;
    }

    .news-image {
        width: 100%;
    }

    .news-image img {
        height: 250px;
    }

    .footer-content {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
    }

    .nav {
        display: none;
        width: 100%;
        order: 3;
    }

    .nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        margin-top: 15px;
    }

    .nav-item > a {
        border-bottom: 1px solid var(--border-color);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: var(--light-gray);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .logo-text h1 {
        font-size: 16px;
    }

    .logo-text p {
        font-size: 10px;
    }

    .logo img {
        width: 50px;
        height: 50px;
    }

    .section-title {
        font-size: 22px;
    }

    .achievement-card {
        min-width: 220px;
    }

    .scroll-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-info {
        order: 2;
    }

    .footer-links {
        order: 3;
    }
}

@media (max-width: 480px) {
    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .news-title {
        white-space: normal;
    }

    .achievement-card {
        min-width: 220px;
    }

    .achievement-card .card-image {
        height: 140px;
    }
}
