:root {
    --brand: #0b3d91;
    --brand-dark: #082c6b;
    --accent: #ff7a00;
    --ink: #1f2533;
    --muted: #6b7280;
    --bg-soft: #f5f7fb;
    --border: #e6e9f0;
}

* { box-sizing: border-box; }

body {
    font-size: 15px;
    color: var(--ink);
    background: #fff;
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
    line-height: 1.7;
}

a { text-decoration: none; }

/* 按钮 */
.btn-brand {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.6rem 1.6rem;
    font-weight: 600;
    border-radius: 6px;
    transition: 0.2s;
}
.btn-brand:hover { background: #e96e00; color: #fff; }
.btn-outline-brand {
    border: 1px solid var(--brand);
    color: var(--brand);
    background: transparent;
    padding: 0.6rem 1.6rem;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.2s;
}
.btn-outline-brand:hover { background: var(--brand); color: #fff; }
.text-brand { color: var(--brand) !important; }

/* 头部 */
.site-header { position: sticky; top: 0; z-index: 1030; }
.top-bar { background: var(--brand-dark); color: #cdd8ef; font-size: 13px; padding: 6px 0; }
.top-bar i { color: var(--accent); margin-right: 4px; }
.main-nav { background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.main-nav .logo { height: 40px; }
.brand-text { font-size: 20px; font-weight: 700; color: var(--brand); margin-left: 8px; }
.main-nav .nav-link {
    font-size: 16px; font-weight: 500; color: var(--ink);
    padding: 0.6rem 1rem; position: relative;
}
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--brand); }
.main-nav .nav-link.active::after {
    content: ""; position: absolute; left: 1rem; right: 1rem; bottom: 2px;
    height: 3px; background: var(--accent); border-radius: 2px;
}
.btn-contact {
    background: var(--accent); color: #fff !important; border-radius: 6px;
    margin-left: 0.5rem;
}
.btn-contact:hover { background: #e96e00; }

/* Hero 轮播 */
.hero { position: relative; }
.hero .carousel-item img { height: 70vh; min-height: 420px; object-fit: cover; }
/* 轮播无图时的占位：与图片等高，用品牌色渐变填充，避免高度塌陷 */
.carousel-image-placeholder {
    height: 70vh; min-height: 420px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}
.hero-overlay {
    position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center;
    /*background: linear-gradient(rgba(11,61,145,.55), rgba(8,44,107,.65));*/
    color: #fff; text-align: center;
    /* 让遮罩层不拦截点击，使下方的轮播左右箭头与指示点可以操作 */
    pointer-events: none;
    margin-bottom: 50px;
}
/* 遮罩内的实际交互元素恢复可点击 */
.hero-overlay a, .hero-overlay button { pointer-events: auto; }
.hero-title { font-size: clamp(28px, 5vw, 52px); font-weight: 800; letter-spacing: 2px; }
.hero-subtitle { font-size: clamp(16px, 2.4vw, 22px); margin: 1rem 0 1.8rem; opacity: .95; }
.hero-actions .btn { margin: 0 .4rem; padding: .7rem 1.8rem; font-weight: 600; }
/* 轮播控件层级高于遮罩，避免被覆盖 */
.hero .carousel-control-prev, .hero .carousel-control-next { z-index: 3; width: 8%; }
.hero .carousel-indicators { z-index: 3; margin-bottom: 1.2rem; }
.hero .carousel-indicators [data-bs-target] {
    width: 12px; height: 12px; border-radius: 50%; border: 0;
    margin: 0 5px; opacity: .6;
}
.hero .carousel-indicators .active { opacity: 1; }

/* 区块通用 */
.section-light { background: var(--bg-soft); }
.section-head { margin-bottom: 2.5rem; }
.section-title { font-size: 30px; font-weight: 800; color: var(--brand); position: relative; display: inline-block; }
.section-title::after {
    content: ""; display: block; width: 56px; height: 4px; background: var(--accent);
    margin: .6rem auto 0; border-radius: 2px;
}
.section-desc { color: var(--muted); margin-top: .6rem; }

/* 数据 */
.stats-section { background: var(--brand); color: #fff; }
.stat-item .stat-num { font-size: 38px; font-weight: 800; color: var(--accent); }
.stat-item .stat-label { color: #d8e0f2; }

/* 服务卡 */
.service-card, .service-detail-card, .feature-card {
    background: #fff; border: 1px solid var(--border); border-radius: 10px;
    padding: 1.8rem 1.4rem; height: 100%; transition: .25s;
}
.service-card:hover, .service-detail-card:hover, .feature-card:hover {
    transform: translateY(-6px); box-shadow: 0 14px 30px rgba(11,61,145,.12);
    border-color: var(--brand);
}
.service-icon, .feature-icon {
    width: 58px; height: 58px; border-radius: 12px; display: flex; align-items: center;
    justify-content: center; background: rgba(11,61,145,.08); color: var(--brand); font-size: 28px; margin-bottom: 1rem;
}
.feature-icon { background: rgba(255,122,0,.12); color: var(--accent); }
.service-name, .service-detail-card h4 { font-weight: 700; color: var(--brand); }
.service-desc, .feature-card p { color: var(--muted); margin-top: .5rem; }
.service-points { list-style: none; padding: 0; margin-top: 1rem; }
.service-points li { color: var(--ink); padding: .15rem 0; }
.service-points li i { color: var(--accent); font-size: 22px; vertical-align: middle; }

/* 优势 */
.feature-card { text-align: center; }
.feature-card h5 { font-weight: 700; margin-top: .6rem; }

/* 新闻卡 */
.news-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; height: 100%; transition: .25s; }
.news-card:hover { box-shadow: 0 14px 30px rgba(0,0,0,.1); transform: translateY(-4px); }
.news-cover { width: 100%; height: 180px; object-fit: cover; display: block; }
.news-cover-placeholder { height: 180px; background: linear-gradient(135deg, var(--brand), #1f5fc0); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 48px; }
.news-body { padding: 1rem 1.1rem 1.2rem; }
.news-tag { display: inline-block; background: rgba(255,122,0,.12); color: var(--accent); font-size: 12px; padding: 2px 10px; border-radius: 20px; font-weight: 600; }
.news-title { font-size: 17px; font-weight: 700; margin: .6rem 0 .4rem; line-height: 1.4; }
.news-title a { color: var(--ink); }
.news-title a:hover { color: var(--brand); }
.news-summary { color: var(--muted); font-size: 14px; margin-bottom: .6rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { color: #9aa3b2; font-size: 13px; }

/* 页头 banner */
.page-banner { background: linear-gradient(135deg, var(--brand), #15489c); color: #fff; padding: 3rem 0; }
.page-banner h1 { font-size: 34px; font-weight: 800; }
.page-banner .breadcrumb { background: transparent; padding: 0; margin: 0; }
.page-banner .breadcrumb-item, .page-banner .breadcrumb-item a { color: #cdd8ef; }
.page-banner .breadcrumb-item.active { color: #fff; }

/* 关于 */
.about-list { list-style: none; padding: 0; margin-top: 1rem; }
.about-list li { padding: .4rem 0; color: var(--ink); }
.about-list li i { color: var(--accent); margin-right: .5rem; }

/* CTA */
.cta-section { background: var(--bg-soft); }
.cta-section h2 { color: var(--brand); font-weight: 800; }

/* 新闻筛选 */
.news-filter { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-item { padding: .4rem 1.1rem; border: 1px solid var(--border); border-radius: 30px; color: var(--ink); font-size: 14px; }
.filter-item.active, .filter-item:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* 文章 */
.news-article { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 2rem; }
.article-head { border-bottom: 1px solid var(--border); padding-bottom: 1rem; margin-bottom: 1.2rem; }
.article-title { font-size: 28px; font-weight: 800; margin: .6rem 0; }
.article-meta { color: var(--muted); font-size: 14px; }
.article-cover { border-radius: 10px; margin-bottom: 1.2rem; width: 100%; }
.article-content { font-size: 16px; line-height: 1.9; color: #2b3340; }
.article-content h2 { font-size: 22px; font-weight: 700; margin: 1.4rem 0 .6rem; color: var(--brand); }
.article-content h3 { font-size: 19px; font-weight: 700; margin: 1.2rem 0 .5rem; }
.article-content p { margin-bottom: 1rem; }
.article-content ul { padding-left: 1.4rem; }
.article-content li { margin-bottom: .4rem; }
.article-content code { background: var(--bg-soft); padding: 2px 6px; border-radius: 4px; }
.article-nav { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--border); padding-top: 1.2rem; }
.article-nav a { display: flex; flex-direction: column; color: var(--brand); max-width: 48%; }
.article-nav a span { font-size: 13px; color: var(--muted); }
.article-nav a strong { font-weight: 600; color: var(--ink); }

/* 页脚 */
.site-footer { background: #0c1426; color: #aeb8cc; padding: 3rem 0 1.5rem; margin-top: 3rem; }
.footer-title { color: #fff; font-size: 17px; font-weight: 700; margin-bottom: 1rem; position: relative; padding-left: 12px; }
.footer-title::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; background: var(--accent); border-radius: 2px; }
.footer-info { list-style: none; padding: 0; }
.footer-info li { display: flex; align-items: flex-start; gap: .5rem; padding: .35rem 0; }
.footer-info i { color: var(--accent); margin-top: 4px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { padding: .25rem 0; }
.footer-links a { color: #aeb8cc; }
.footer-links a:hover { color: #fff; }
.footer-slogan { color: #fff; font-weight: 600; }
.footer-bottom { border-top: 1px solid #1d2942; margin-top: 2rem; padding-top: 1.2rem; text-align: center; font-size: 13px; color: #7d88a0; }
