/* ============================================================================
 * 迈奔灵动科技 · 前台站点样式（Bootstrap 5 之上的一层轻量补充）
 * ----------------------------------------------------------------------------
 * 原则：
 *   · 布局/栅格/组件全部用 Bootstrap 5，本文件只放「品牌感」相关的少量自定义；
 *   · 不写死任何图片路径、不依赖第三方 CDN；
 *   · 所有尺寸用 Bootstrap 的间距/字号体系，方便以后换肤。
 * ========================================================================== */

:root {
    --jd-primary: #0d6efd;
    --jd-dark: #0b1b2b;
    --jd-muted: #6c757d;
    --jd-radius: .75rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #212529;
}

/* ---------------- 导航 ---------------- */
.jd-header {
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}

.jd-header .navbar-brand {
    font-weight: 700;
    letter-spacing: .02em;
}

.jd-header .navbar-brand img {
    height: 38px;
    width: auto;
}

.jd-header .nav-link {
    font-weight: 500;
    color: #212529;
    padding: .5rem .9rem;
}

.jd-header .nav-link:hover,
.jd-header .nav-link.active {
    color: var(--jd-primary);
}

/* ---------------- 首屏 Banner ---------------- */
.jd-hero {
    position: relative;
    background: var(--jd-dark);
    color: #fff;
    overflow: hidden;
}

.jd-hero__media img {
    width: 100%;
    height: clamp(260px, 46vw, 560px);
    object-fit: cover;
    display: block;
    opacity: .55;
}

.jd-hero__body {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.jd-hero__title {
    font-size: clamp(1.6rem, 3.2vw, 3rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: .75rem;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

.jd-hero__sub {
    font-size: clamp(.95rem, 1.3vw, 1.15rem);
    opacity: .92;
    max-width: 46rem;
}

.jd-hero__placeholder {
    height: clamp(240px, 40vw, 460px);
    background: linear-gradient(120deg, #0b1b2b, #123a5c 60%, #1c5f8a);
}

/* ---------------- 版块 ---------------- */
.jd-section {
    padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}

.jd-section--alt {
    background: #f7f9fc;
}

.jd-section-head {
    text-align: center;
    margin-bottom: clamp(1.5rem, 3vw, 2.75rem);
}

.jd-section-head .jd-kicker {
    letter-spacing: .22em;
    font-size: .75rem;
    text-transform: uppercase;
    color: var(--jd-primary);
    font-weight: 600;
}

.jd-section-head h2 {
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    font-weight: 700;
    margin: .4rem 0 .5rem;
}

.jd-section-head p {
    color: var(--jd-muted);
    margin: 0;
}

/* ---------------- 卡片 ---------------- */
.jd-card {
    height: 100%;
    border: 1px solid #e9eef5;
    border-radius: var(--jd-radius);
    overflow: hidden;
    background: #fff;
    transition: transform .25s, box-shadow .25s;
}

.jd-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(13, 27, 43, .10);
}

.jd-card__media {
    aspect-ratio: 16 / 10;
    background: #eef2f7;
    overflow: hidden;
}

.jd-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.jd-card__body {
    padding: 1rem 1.1rem 1.15rem;
}

.jd-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 .45rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jd-card__text {
    color: var(--jd-muted);
    font-size: .875rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jd-card__meta {
    margin-top: .75rem;
    font-size: .78rem;
    color: #9aa7b4;
}

/* 横向图文卡（新闻列表用） */
.jd-media {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e9eef5;
    border-radius: var(--jd-radius);
    background: #fff;
    height: 100%;
}

.jd-media__img {
    width: 34%;
    max-width: 220px;
    aspect-ratio: 16 / 10;
    border-radius: .5rem;
    overflow: hidden;
    background: #eef2f7;
    flex: 0 0 auto;
}

.jd-media__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.jd-media__body {
    min-width: 0;
}

.jd-media__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: .4rem;
}

@media (max-width: 575.98px) {
    .jd-media {
        flex-direction: column;
    }
    .jd-media__img {
        width: 100%;
        max-width: none;
    }
}

/* ---------------- 内页头 ---------------- */
.jd-pagehead {
    background: #0f2740;
    color: #fff;
    padding: clamp(2rem, 4vw, 3.5rem) 0;
}

.jd-pagehead h1 {
    font-size: clamp(1.4rem, 2.4vw, 2.1rem);
    font-weight: 700;
    margin: 0;
}

.jd-pagehead .jd-pagehead__sub {
    margin: .6rem 0 0;
    opacity: .85;
}

.jd-pagehead .breadcrumb {
    margin: 1rem 0 0;
    --bs-breadcrumb-divider-color: rgba(255, 255, 255, .45);
}

.jd-pagehead .breadcrumb a {
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
}

.jd-pagehead .breadcrumb-item.active {
    color: #fff;
}


/* 带背景图的内页头：加一层深色蒙版保证白字可读 */
.jd-pagehead--image {
    background-size: cover;
    background-position: center;
    position: relative;
}

.jd-pagehead--image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 24, 42, .72), rgba(6, 24, 42, .38));
}

.jd-pagehead--image > .container {
    position: relative;
    z-index: 1;
}

/* ---------------- 正文 ---------------- */
.jd-article {
    max-width: 100%;
}

.jd-article h1 {
    font-size: clamp(1.35rem, 2.2vw, 1.9rem);
    font-weight: 700;
}

.jd-article__meta {
    color: var(--jd-muted);
    font-size: .85rem;
    margin: .75rem 0 1.5rem;
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.jd-content {
    font-size: 1rem;
    line-height: 1.9;
    color: #2b3440;
    overflow-wrap: break-word;
}

.jd-content img {
    max-width: 100%;
    height: auto;
    border-radius: .5rem;
    margin: .75rem 0;
}

.jd-content h2 {
    font-size: 1.25rem;
    margin: 1.75rem 0 .75rem;
}

.jd-content h3 {
    font-size: 1.1rem;
    margin: 1.5rem 0 .6rem;
}

.jd-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.jd-content table th,
.jd-content table td {
    border: 1px solid #e5e9f0;
    padding: .5rem .75rem;
}

/* 侧栏 */
.jd-aside-card {
    border: 1px solid #e9eef5;
    border-radius: var(--jd-radius);
    padding: 1rem 1.1rem;
    background: #fff;
}

.jd-aside-card h3 {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: .75rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid #eef2f7;
}

.jd-aside-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.jd-aside-list li + li {
    margin-top: .6rem;
}

.jd-aside-list a {
    color: #2b3440;
    text-decoration: none;
    font-size: .9rem;
    display: block;
    line-height: 1.5;
}

.jd-aside-list a:hover {
    color: var(--jd-primary);
}

/* 规格参数表 */
.jd-spec th {
    width: 32%;
    background: #f7f9fc;
    font-weight: 600;
    color: #46525f;
}

/* ---------------- 联系方式 / 表单 ---------------- */
.jd-contact-item {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px dashed #e5e9f0;
}

.jd-contact-item:last-child {
    border-bottom: 0;
}

.jd-contact-item__ico {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(13, 110, 253, .1);
    color: var(--jd-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-weight: 700;
}

.jd-contact-item__label {
    font-size: .8rem;
    color: var(--jd-muted);
}

.jd-contact-item__value {
    font-weight: 600;
    word-break: break-all;
}

.jd-form-card {
    border: 1px solid #e9eef5;
    border-radius: var(--jd-radius);
    padding: clamp(1.25rem, 3vw, 2rem);
    background: #fff;
}

/* ---------------- 页脚 ---------------- */
.jd-footer {
    background: var(--jd-dark);
    color: rgba(255, 255, 255, .72);
    padding: clamp(2.25rem, 4vw, 3.5rem) 0 0;
    font-size: .9rem;
}

.jd-footer h5 {
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.jd-footer a {
    color: rgba(255, 255, 255, .72);
    text-decoration: none;
}

.jd-footer a:hover {
    color: #fff;
}

.jd-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.jd-footer li + li {
    margin-top: .5rem;
}

.jd-footer__bottom {
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .82rem;
    color: rgba(255, 255, 255, .55);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ---------------- 空状态 ---------------- */
.jd-empty {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--jd-muted);
    background: #f7f9fc;
    border-radius: var(--jd-radius);
}

/* ---------------- 回到顶部 ---------------- */
.jd-totop {
    position: fixed;
    right: 1rem;
    bottom: 1.25rem;
    z-index: 1030;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 50%;
    background: var(--jd-primary);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(13, 110, 253, .32);
}

.jd-totop.is-on {
    display: flex;
}
