/* 逍宇科技官网 - 样式文件 */

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Microsoft YaHei", sans-serif;
    color: #333;
    background-color: #f8f9fa;
}
a {
    text-decoration: none;
    color: #333;
}
a:hover {
    color: #007bff;
}

/* 导航栏 */
.navbar {
    transition: background-color 0.3s ease;
    z-index: 999;
}
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #007bff !important;
}
.nav-link {
    font-weight: 500;
    margin: 0 10px;
    color: #fff !important;
}
.nav-link:hover, .nav-link.active {
    color: #e0e0e0 !important;
}
.navbar-scrolled .nav-link {
    color: #333 !important;
}
.navbar-scrolled .nav-link:hover, .navbar-scrolled .nav-link.active {
    color: #007bff !important;
}

/* Banner轮播 */
#bannerCarousel {
    height: 680px;
    overflow: hidden;
}
#bannerCarousel .carousel-item {
    height: 100%;
    position: relative;
}
#bannerCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
}
#bannerCarousel .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    bottom: auto;
    right: auto;
    text-align: left;
    max-width: 800px;
}
#bannerCarousel .carousel-caption h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
#bannerCarousel .carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
#bannerCarousel .carousel-caption .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 500;
}

/* 通用区块 */
.section {
    padding: 100px 0;
}
.section-title {
    text-align: center;
    margin-bottom: 80px;
}
.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
}
.section-title p {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 团队卡片 */
.team-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}
.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}
.team-card .team-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 5px solid #f0f8ff;
}
.team-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.team-card .team-position {
    color: #007bff;
    font-weight: 500;
    margin-bottom: 15px;
}
.team-card .team-desc {
    color: #666;
    font-size: 0.95rem;
}

/* 项目卡片 */
.project-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}
.project-card .project-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}
.project-card .project-content {
    padding: 30px;
}
.project-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #222;
}
.project-card p {
    color: #666;
    margin-bottom: 10px;
}

/* 新闻卡片 */
.news-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}
.news-card .news-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.news-card .news-content {
    padding: 20px;
}
.news-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
}
.news-card h3 a {
    color: #222;
}
.news-card h3 a:hover {
    color: #007bff;
}
.news-card .news-meta {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 10px;
}
.news-card .news-summary {
    color: #666;
    font-size: 0.95rem;
}

/* 页脚 */
footer {
    background-color: #222;
    color: #fff;
    padding: 60px 0 30px;
}
.footer-col h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 30px;
    position: relative;
}
.footer-col h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background-color: #007bff;
}
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col ul li {
    margin-bottom: 15px;
}
.footer-col ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}
.footer-col ul li a:hover {
    color: #007bff;
    padding-left: 5px;
}
.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #333;
    color: #ccc;
    font-size: 0.9rem;
}

/* 悬浮窗 */
.float-window {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 15px;
    width: 140px;
    text-align: center;
    z-index: 1000;
}
.float-img {
    width: 100%;
    height: 160px;
    border-radius: 5px;
    object-fit: cover;
    margin-bottom: 15px;
    border: 1px solid #f0f0f0;
}
.float-contact {
    color: #333;
    font-size: 0.9rem;
    line-height: 1.8;
}
.float-contact p {
    margin: 0;
}
.float-contact i {
    color: #007bff;
    margin-right: 5px;
}

/* 分页 */
.pagination-wrapper {
    text-align: center;
    margin-top: 40px;
}
.pagination .page-link {
    color: #007bff;
}
.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

/* 新闻详情页 */
.article-detail {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin-bottom: 30px;
}
.article-detail .article-title {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
}
.article-detail .article-meta {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.article-detail .article-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}
.article-detail .article-content img {
    max-width: 100%;
    height: auto;
}

/* 响应式 */
@media (max-width: 768px) {
    .float-window {
        display: none;
    }
    #bannerCarousel {
        height: 400px;
    }
    #bannerCarousel .carousel-caption h1 {
        font-size: 1.5rem;
    }
    #bannerCarousel .carousel-caption p {
        font-size: 0.9rem;
    }
    .section {
        padding: 60px 0;
    }
    .section-title h2 {
        font-size: 1.8rem;
    }
}