/* 基础样式 */
body {
    font-family: "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: #333;
    background-color: #f8f9fa;
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: #0066cc;
    transition: all 0.3s ease;
}
a:hover {
    color: #004499;
    text-decoration: underline;
}
.container {
    max-width: 1200px;
}

/* 搜索框样式 */
.search-container {
    position: relative;
    max-width: 300px;
    margin-left: auto;
}
.search-input {
    width: 100%;
    padding: 8px 15px 8px 35px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.search-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0,102,204,0.2);
}
.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* 头部导航 */
.header-top {
    background-color: #003366;
    color: #fff;
    padding: 10px 0;
}
.header-top .contact-info {
    display: flex;
    gap: 20px;
    align-items: center;
}
.header-top .contact-info i {
    margin-right: 5px;
}
.navbar {
    background-color: #fff !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 0.8rem 0;
}
.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #003366 !important;
    display: flex;
    align-items: center;
}
.navbar-brand img {
    max-height: 75px;
    object-fit: contain;
    margin-right: 10px;
    margin-left: 0px;
}
.nav-link {
    color: #333 !important;
    font-size: 1rem;
    margin: 0 8px;
    padding: 0.5rem 0.2rem !important;
    position: relative;
}
.nav-link:hover {
    color: #0066cc !important;
    font-weight: 500;
}
.nav-link.active {
    color: #0066cc !important;
    font-weight: bold;
}
.nav-link.active::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #0066cc;
    bottom: 0;
    left: 0;
}

/* 轮播图 */
.carousel-item {
    height: 500px;
    overflow: hidden;
}
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease;
}
.carousel-item:hover img {
    transform: scale(1.05);
}
.carousel-caption {
    background: rgba(0,0,0,0.5);
    padding: 20px;
    border-radius: 8px;
    bottom: 50px;
    transition: all 0.5s ease;
}
.carousel-item:hover .carousel-caption {
    background: rgba(0,51,102,0.7);
}
.carousel-caption h5 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}
.carousel-caption p {
    font-size: 1.1rem;
}

/* 核心板块通用样式 */
.section {
    padding: 60px 0;
}
.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}
.section-title h2 {
    font-size: 2.2rem;
    color: #003366;
    font-weight: bold;
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 3px solid #0066cc;
}
.section-title::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: #0066cc;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* 中心概况 */
.intro-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 30px;
    transition: box-shadow 0.3s ease;
}
.intro-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}
.intro-card h3 {
    color: #003366;
    margin-bottom: 20px;
    font-size: 1.5rem;
}
.intro-card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}
.intro-img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}
.intro-img:hover {
    transform: scale(1.02);
}

/* 研究团队 */
.team-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}
.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.team-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.team-info {
    padding: 20px;
    text-align: center;
}
.team-info h4 {
    color: #003366;
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.team-info .position {
    color: #0066cc;
    font-weight: 500;
    margin-bottom: 10px;
}
.team-info p {
    color: #666;
    font-size: 0.95rem;
}
.team-links {
    margin-top: 15px;
}
.team-links a {
    color: #999;
    margin: 0 8px;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}
.team-links a:hover {
    color: #0066cc;
}

/* 科研成果 */
.achievement-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    transition: box-shadow 0.3s ease;
}
.achievement-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}
.achievement-icon {
    font-size: 2.5rem;
    color: #0066cc;
    align-self: center;
}
.achievement-content h4 {
    color: #003366;
    margin-bottom: 15px;
    font-size: 1.3rem;
}
.achievement-content p {
    color: #666;
    line-height: 1.7;
}
.achievement-more {
    display: inline-block;
    margin-top: 10px;
    color: #0066cc;
    font-weight: 500;
}

/* 工程化应用 */
.application-list {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    padding: 30px;
}
.application-item {
    padding: 15px 0;
    border-bottom: 1px dashed #eee;
    transition: background-color 0.3s ease;
}
.application-item:hover {
    background-color: #f9f9f9;
    padding-left: 10px;
}
.application-item:last-child {
    border-bottom: none;
}
.application-item h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}
.application-item .date {
    color: #999;
    font-size: 0.9rem;
    margin-right: 15px;
}

/* 联系我们 */
.contact-info {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    padding: 30px;
    height: 100%;
}
.contact-info h3 {
    color: #003366;
    margin-bottom: 25px;
    font-size: 1.5rem;
}
.contact-list {
    list-style: none;
    padding: 0;
}
.contact-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}
.contact-list li i {
    color: #0066cc;
    font-size: 1.2rem;
    margin-right: 15px;
    margin-top: 3px;
}
.contact-list li span {
    color: #666;
}
.map {
    width: 100%;
    height: 350px;
    border-radius: 8px;
    border: none;
}

/* 页脚 */
.footer {
    background-color: #003366;
    color: #fff;
    padding: 40px 0 20px;
}
.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}
.footer-logo img {
    max-height: 30px;
    object-fit: contain;
    margin-right: 10px;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}
.footer-links li {
    display: inline-block;
    margin-right: 15px;
}
.footer-links a {
    color: #ccc;
}
.footer-links a:hover {
    color: #fff;
    text-decoration: none;
}
.footer-social {
    margin-top: 20px;
}
.footer-social a {
    display: inline-block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    text-align: center;
    line-height: 36px;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}
.footer-social a:hover {
    background-color: #0066cc;
    text-decoration: none;
}
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    margin-top: 20px;
    color: #ccc;
    font-size: 0.9rem;
}

/* 搜索结果样式 */
#search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
#search-results.active {
    max-height: 400px;
    padding: 15px;
    border: 1px solid #eee;
    border-top: none;
}
.search-result-item {
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-item h5 {
    font-size: 1rem;
    margin-bottom: 5px;
}
.search-result-item p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0;
}
.search-highlight {
    color: #0066cc;
    font-weight: bold;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .carousel-item {
        height: 400px;
    }
    .carousel-caption h5 {
        font-size: 1.5rem;
    }
    .carousel-caption p {
        font-size: 1rem;
    }
    .team-img {
        height: 200px;
    }
}
@media (max-width: 768px) {
    .header-top .contact-info {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    .carousel-item {
        height: 300px;
    }
    .carousel-caption {
        bottom: 20px;
        padding: 10px;
    }
    .carousel-caption h5 {
        font-size: 1.2rem;
    }
    .carousel-caption p {
        font-size: 0.9rem;
    }
    .section {
        padding: 40px 0;
    }
    .section-title h2 {
        font-size: 1.8rem;
    }
    .achievement-item {
        flex-direction: column;
        text-align: center;
    }
    .achievement-icon {
        align-self: center;
        margin-bottom: 15px;
    }
    .search-container {
        max-width: 100%;
        margin: 15px 0;
    }
}
@media (max-width: 576px) {
    .carousel-item {
        height: 220px;
    }
    .carousel-caption {
        bottom: 10px;
    }
    .carousel-caption h5 {
        font-size: 1rem;
    }
    .carousel-caption p {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }
    .team-img {
        height: 180px;
    }
    .map {
        height: 280px;
    }
}