/* ===== 全局变量 ===== */
:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --secondary: #1e293b;
    --light-bg: #f8fafc;
}
body {
    font-family: 'Segoe UI', system-ui, 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: var(--light-bg);
    color: #1e293b;
}
/* ===== 顶部第一行：Logo + 搜索框 + 菜单切换 ===== */
.top-bar {
    background: #fff;
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    z-index: 1030;
}
.top-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.top-bar .navbar-brand img {
    max-height: 45px;
}
.search-box {
    max-width: 400px;
    width: 100%;
    margin-right: 10px;
}
.search-box .form-control {
    border-radius: 30px 0 0 30px;
    border: 1px solid #ced4da;
}
.search-box .btn {
    border-radius: 0 30px 30px 0;
    background: var(--primary);
    color: #fff;
    border: 1px solid var(--primary);
}
.search-box .btn:hover {
    background: var(--primary-dark);
}
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: 1.5rem;
    line-height: 1;
    background: transparent;
    color: var(--secondary);
    display: none; /* 默认隐藏，小屏显示 */
}
.navbar-toggler:focus {
    box-shadow: none;
}

/* ===== 导航栏（第二行）粘性定位 ===== */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 1020;
    padding: 0.5rem 0;
}
.nav-link {
    font-weight: 500;
    color: var(--secondary) !important;
}
.nav-link:hover { color: var(--primary) !important; }
.dropdown-menu {
    border: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* ===== 轮播 ===== */
.carousel-item {
    height: 480px;
    background-size: cover;
    background-position: center;
}
.carousel-item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}
.carousel-caption {
    bottom: 30%;
}
.carousel-caption h1 {
    font-size: 2.8rem;
    font-weight: 700;
}

/* ===== 通用标题 ===== */
.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}
.section-title h2 {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--secondary);
}
.section-title hr {
    width: 60px;
    margin: 0.5rem auto;
    border: 2px solid var(--primary);
    opacity: 1;
}

/* ===== 服务卡片 ===== */
.service-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    transition: 0.3s;
    cursor: pointer;
    height: 100%;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.service-card .card-body {
    padding: 1.2rem 1.5rem 1.5rem;
    text-align: center;
}
.service-card .card-body h5 {
    font-weight: 600;
    margin-bottom: 0.3rem;
}
.service-card .card-body p {
    font-size: 0.9rem;
    color: #6c757d;
}

/* ===== 关于我们 ===== */
.about-section {
    background: #fff;
    padding: 3rem 0;
}

/* ===== 新闻卡片 ===== */
.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    transition: 0.3s;
    height: 100%;
}
.news-card:hover { transform: translateY(-4px); }
.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.news-card .card-body {
    padding: 1.2rem;
}

/* ===== 报告查询 ===== */
.report-section {
    background: var(--secondary);
    color: #fff;
    padding: 2.5rem 0;
    margin-top: 3rem;
}
.report-section .form-control {
    border-radius: 30px 0 0 30px;
    border: none;
    padding: 0.6rem 1.2rem;
}
.report-section .btn {
    border-radius: 0 30px 30px 0;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0.6rem 1.8rem;
}
.report-section .btn:hover {
    background: var(--primary-dark);
}

/* ===== 页脚 ===== */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 2.5rem 0;
}
.footer a { color: #94a3b8; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .border-top {
    border-color: #1e293b !important;
}

/* ===== 浮动 WhatsApp ===== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}
.whatsapp-float img {
    width: 55px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: 0.2s;
}
.whatsapp-float img:hover { transform: scale(1.05); }
.navbar-nav{ width:100%}
.navbar-nav li{ margin:0 20px;}

/* 面包屑 */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}
.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}
.breadcrumb-item.active {
    color: #6c757d;
}
/* 内容区域 */
.single-content {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.single-content h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.single-content p {
    line-height: 1.8;
    margin-bottom: 1rem;
}
.single-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
}
.banner-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}
/* 页脚 */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 2.5rem 0;
}
.footer a { color: #94a3b8; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .border-top {
    border-color: #1e293b !important;
}

.service-list-page .page-title h1 {
    font-size: 2.2rem;
    font-weight: 600;
}
.service-list-page .page-title hr {
    width: 60px;
    border: 2px solid var(--primary);
    opacity: 1;
    margin: 0.5rem 0;
}
.service-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    transition: 0.3s;
    height: 100%;
    cursor: pointer;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.service-card .card-body {
    padding: 1.2rem 1.5rem 1.5rem;
    text-align: center;
}
.service-card .card-body h5 {
    font-weight: 600;
    margin-bottom: 0.3rem;
}
.service-card .card-body p {
    font-size: 0.9rem;
    color: #6c757d;
}

/* 列表页样式（可合并到公共CSS） */
.list-page .page-header h1 {
    font-size: 2rem;
    font-weight: 600;
}
.list-page .page-header hr {
    width: 60px;
    border: 2px solid var(--primary);
    opacity: 1;
    margin: 0.5rem 0;
}
.article-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: 0.2s;
    cursor: pointer;
}
.article-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}
.article-item .card-body {
    padding: 1.5rem;
}
.meta-info {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;border-bottom: 1px solid #eee; padding-bottom: 1rem;
}
.meta-info span {
    margin-right: 1rem;
}
.article-item .card-title {
    font-weight: 600;
}
.article-item img {
    height: 100%;
    object-fit: cover;
    min-height: 150px;
}
.report-page{ min-height:500px;align-items: center; display:flex}
.report-main{ width:100%;}
.report-page .page-header h1 { font-size: 2rem; font-weight: 600; }
.report-page .page-header hr { width: 60px; border: 2px solid var(--primary); opacity: 1; margin: 0.5rem 0; }
.report-result {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    margin-top: 1.5rem;
}
.report-result .report-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}
.report-result .report-content {
    line-height: 1.8;
}
.report-result .report-content img {
    max-width: 100%;
    border-radius: 8px;
}
@media (max-width: 768px) {
    .report-page .page-header h1 { font-size: 1.6rem; }
}
@media (max-width: 768px) {
    .list-page .page-header h1 { font-size: 1.8rem; }
    .article-item img { min-height: 120px; }
}


/* 响应式 */
@media (max-width: 768px) {
    .search-box { display: none !important; }
    .navbar-toggler { display: block !important; }
    .navbar-collapse {
        background: #fff;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1050;
    }
    .navbar-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    .single-content { padding: 1.5rem; }
}
    
/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .top-bar .container {
        flex-wrap: nowrap;
    }
    .search-box {
        display: none !important;
    }
    .navbar-toggler {
        display: block !important;
    }
    .navbar-collapse {
        background: #fff;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1050;
    }
    .navbar-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    .carousel-item {
        height: 280px;
    }
    .carousel-caption h1 {
        font-size: 1.8rem;
    }
    .carousel-caption p.lead {
        font-size: 1rem;
    }
    .carousel-caption .btn {
        font-size: 0.9rem;
        padding: 0.4rem 1.2rem;
    }
    .section-title h2 {
        font-size: 1.8rem;
    }
    .service-card img {
        height: 150px;
    }
    .about-section .col-md-6 {
        text-align: center;
    }
    .about-section img {
        margin-bottom: 1rem;
    }
    .report-section .row.g-0 {
        max-width: 100%;
    }
    .report-section .col-9 {
        flex: 0 0 75%;
    }
    .report-section .col-3 {
        flex: 0 0 25%;
    }
    .report-section .btn {
        padding: 0.6rem 0.5rem;
        font-size: 0.9rem;
    }
    .footer .col-md-4 {
        margin-bottom: 1.5rem;
        text-align: center;
    }
}
@media (max-width: 480px) {
    .carousel-item {
        height: 200px;
    }
    .carousel-caption h1 {
        font-size: 1.4rem;
    }
    .carousel-caption p.lead {
        font-size: 0.8rem;
    }
    .service-card img {
        height: 120px;
    }
    .news-card img {
        height: 150px;
    }
}


@media (max-width: 768px) {
    .service-card img { height: 150px; }
    .service-list-page .page-title h1 { font-size: 1.8rem; }
}
@media (max-width: 480px) {
    .service-card img { height: 120px; }
}