/* ==========================================================================
   UI Refresh 2026 —— 纯视觉升级（仅样式，不改动任何 HTML / 按钮 / 链接）
   ========================================================================== */
:root {
    --primary: #1a5fd0;
    --primary-dark: #0f3f96;
    --secondary: #f4f6fa;
    --dark: #0e1a2f;
    --text: #2b3445;
    --muted: #6b7688;
    --radius: 16px;
    --shadow-sm: 0 2px 10px rgba(16, 32, 64, .06);
    --shadow: 0 10px 30px rgba(16, 32, 64, .10);
    --shadow-lg: 0 18px 50px rgba(16, 32, 64, .16);
}

body {
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {background: rgba(26, 95, 208, .18);}

/* ---------- 标题与分隔线 ---------- */
h1.display-5,
.display-5 {
    font-weight: 800 !important;
    letter-spacing: -.5px;
    color: var(--dark);
    margin-bottom: .75rem !important;
}

hr.w-25.mx-auto.bg-primary {
    width: 64px !important;
    height: 4px !important;
    opacity: 1 !important;
    border: 0;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--primary), #5aa9ff) !important;
}

/* ---------- 顶部导航 ---------- */
nav#header.navbar {
    background: rgba(255, 255, 255, .88) !important;
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    box-shadow: 0 2px 20px rgba(16, 32, 64, .08);
    padding-top: .55rem !important;
    padding-bottom: .55rem !important;
}

nav#header .navbar-brand .logo {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.navbar-light .navbar-nav .nav-link {
    position: relative;
    font-weight: 600;
    font-size: 15px;
    color: #3a4457 !important;
    padding: .55rem 1.05rem !important;
    border-radius: 99px;
    transition: .25s;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--primary) !important;
    background: rgba(26, 95, 208, .08);
}

.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary) !important;
    background: rgba(26, 95, 208, .10);
}

.navbar-toggler {
    border: 0 !important;
    padding: .25rem .5rem !important;
}

.navbar-toggler:focus {box-shadow: none;}

/* ---------- 首屏大图 ---------- */
#inSlider {
    overflow: hidden;
    border-radius: 0 0 28px 28px;
    box-shadow: var(--shadow);
}

#inSlider .carousel-image {position: relative;}

#inSlider .index-image {
    width: 100% !important;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

#inSlider .carousel-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 22, 44, .32), rgba(10, 22, 44, .04) 45%, rgba(10, 22, 44, .42));
    pointer-events: none;
}

/* ---------- 区块留白 ---------- */
section.container-fluid.pt-6,
section.container-fluid.py-6 {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

/* ---------- 广告资源（机场列表）：整齐网格面板 ---------- */
.d-flex.flex-wrap.m-n1 {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto !important;
    padding: 20px !important;
    background: linear-gradient(180deg, #f8fafd, #f1f5fb);
    border: 1px solid #e6ecf6;
    border-radius: 20px;
}

a.btn.btn-secondary {
    display: block !important;
    width: 100%;
    height: 50px;
    line-height: 48px;
    margin: 0 !important;
    padding: 0 10px !important;
    font-size: 14px !important;
    font-weight: 600;
    text-align: center;
    color: #37425a !important;
    background: #fff !important;
    border: 1px solid #e3e8f2 !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(16, 32, 64, .05);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: .25s;
}

a.btn.btn-secondary:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(26, 95, 208, .26);
}

@media (max-width: 991.98px) {
    .d-flex.flex-wrap.m-n1 {
        grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
        gap: 10px;
        padding: 16px !important;
    }
    a.btn.btn-secondary {
        height: 46px;
        line-height: 44px;
        font-size: 14px !important;
    }
}

@media (max-width: 576px) {
    .d-flex.flex-wrap.m-n1 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 14px !important;
        border-radius: 16px;
    }
    a.btn.btn-secondary {
        height: 44px;
        line-height: 42px;
        font-size: 13px !important;
    }
}

/* ---------- 机场概览卡片 ---------- */
.team-item {
    display: block !important;
    border-radius: var(--radius) !important;
    overflow: hidden;
    background: #fff !important;
    box-shadow: var(--shadow);
    transition: .35s;
}

.team-item .imgBox {
    height: 240px !important;
    overflow: hidden;
    background: #eef1f6;
}

.team-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.team-item:hover img {transform: scale(1.08);}

.team-item .team-text {
    background: linear-gradient(135deg, var(--primary), #2f86e8) !important;
    padding: 18px 20px !important;
}

.team-item .team-text h3 {
    font-size: 18px !important;
    font-weight: 700;
    margin-bottom: 8px !important;
    white-space: normal !important;
    overflow: visible !important;
    line-height: 1.4;
}

.team-item .team-text p {
    font-size: 13px !important;
    opacity: .92;
    margin-bottom: 3px !important;
    line-height: 1.6;
}

.team-item .team-text::after {display: none;}

.team-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* ---------- 公司简介双栏 ---------- */
section.container-fluid.bg-secondary.p-0 {
    background: linear-gradient(180deg, #f6f8fc, #eef2f9) !important;
}

section.container-fluid.bg-secondary .col-lg-6.py-6.px-5 {
    padding: 72px 56px !important;
}

section.container-fluid.bg-secondary h1.display-5 {font-size: 34px !important;}

section.container-fluid.bg-secondary h4 {
    font-size: 17px !important;
    line-height: 1.95;
    color: #4b5568 !important;
    font-weight: 400 !important;
}

.bg-primary {background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;}

section .btn.btn-primary {
    padding: .85rem 2.1rem !important;
    border-radius: 99px !important;
    border: 0;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(26, 95, 208, .30);
    transition: .25s;
}

section .btn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(26, 95, 208, .42);
}

.bg-primary .d-flex.text-white > div.rounded-circle {
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

.bg-primary h3 {
    font-size: 18px !important;
    font-weight: 700;
    line-height: 1.45;
}

.bg-primary p {
    font-size: 14px !important;
    opacity: .92;
    line-height: 1.75;
}

/* ---------- 页脚 ---------- */
section.container-fluid.bg-dark.text-secondary {
    background: linear-gradient(180deg, #0e1a2f, #0a1424) !important;
    border-top: 0 !important;
    padding: 38px 24px !important;
}

section.container-fluid.bg-dark p {
    font-size: 13px !important;
    color: #9fb0c9 !important;
    line-height: 1.9;
}

section.container-fluid.bg-dark strong {color: #fff !important;}

section.container-fluid.bg-dark a {
    color: #c9d6ea !important;
    text-decoration: none;
    transition: .2s;
}

section.container-fluid.bg-dark a:hover {
    color: #fff !important;
    text-decoration: underline;
}

/* ---------- 响应式微调 ---------- */
@media (max-width: 991.98px) {
    #inSlider .index-image {max-height: 320px;}
    .team-item .imgBox {height: 200px !important;}
    section.container-fluid.bg-secondary .col-lg-6.py-6.px-5 {padding: 48px 28px !important;}
    nav#header .lang-switch {margin-left: auto;}
}

@media (max-width: 576px) {
    #inSlider .index-image {max-height: 220px;}
    #inSlider {border-radius: 0 0 18px 18px;}
    .pt-6 {padding-top: 56px !important;}
    .py-6 {padding-top: 56px !important; padding-bottom: 56px !important;}
    .pb-6 {padding-bottom: 56px !important;}
    section.container-fluid.pt-6,
    section.container-fluid.py-6 {padding-left: 1.15rem !important; padding-right: 1.15rem !important;}
    h1.display-5, .display-5 {font-size: 26px !important;}
    nav#header .navbar-brand .logo {height: 36px;}
    nav#header .lang-switch {margin-left: .5rem;}
}

/* ==========================================================
   首页圆角重塑 v3 —— 2026-09-20（四角圆滑 + 细节打磨）
   ========================================================== */

/* 统一圆角节奏 */
:root {--radius-lg: 22px; --radius-md: 18px; --radius-sm: 14px;}

/* 首屏大图：四角圆滑 */
#inSlider {border-radius: var(--radius-lg) !important; overflow: hidden;}

/* 媒体推荐卡：圆角 + 柔和阴影（图片仍完整，仅四角变圆） */
.service-item {
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .35s, box-shadow .35s;
}
.service-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* 概览卡片圆角强化 */
.team-item {border-radius: var(--radius-lg) !important;}

/* 广告资源网格面板 */
.d-flex.flex-wrap.m-n1 {border-radius: 26px; overflow: hidden;}

/* 机场按钮：四角圆滑 */
a.btn.btn-secondary {border-radius: var(--radius-sm) !important;}

/* 公司简介双栏：左右两块做成圆角卡片（桌面并排 + 间距，移动端才堆叠） */
section.container-fluid.bg-secondary.p-0 {padding: 20px !important;}
@media (min-width: 992px) {
    section.container-fluid.bg-secondary .row.g-0 {gap: 22px;}
    section.container-fluid.bg-secondary .row.g-0 > .col-lg-6 {width: calc(50% - 11px); flex: 0 0 auto;}
}
section.container-fluid.bg-secondary .col-lg-6.py-6.px-5 {border-radius: var(--radius-lg) !important;}
section.container-fluid.bg-secondary .col-lg-6.bg-primary {border-radius: var(--radius-lg) !important;}

/* 联系信息小圆牌改圆角方块 */
.bg-primary .d-flex.text-white > div.rounded-circle {
    border-radius: var(--radius-sm) !important;
    width: 54px !important;
    height: 54px !important;
}

/* 主按钮圆角 */
section .btn.btn-primary {border-radius: 99px !important;}

/* 区块标题间距更舒适 */
section.container-fluid .text-center.mx-auto.mb-5 {margin-bottom: 2.6rem !important;}

/* 概览/推荐卡片网格纵向间距 */
.row.g-5 {--bs-gutter-y: 2rem;}

/* 页脚圆角 */
/* section.container-fluid.bg-dark.text-secondary {border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;} */

@media (max-width: 991.98px) {
    section.container-fluid.bg-secondary .row.g-0 {gap: 16px;}
    .d-flex.flex-wrap.m-n1 {border-radius: 22px;}
}

@media (max-width: 576px) {
    #inSlider {border-radius: var(--radius-md) !important;}
    .service-item {border-radius: var(--radius-md) !important;}
    .team-item {border-radius: var(--radius-md) !important;}
    .d-flex.flex-wrap.m-n1 {border-radius: var(--radius-sm);}
    section.container-fluid.bg-secondary .col-lg-6.py-6.px-5,
    section.container-fluid.bg-secondary .col-lg-6.bg-primary {border-radius: var(--radius-md) !important;}
    /* section.container-fluid.bg-dark.text-secondary {border-radius: 16px 16px 0 0 !important;} */
}

/* 公司简介图册：应用首页卡片风格（圆角 + 阴影 + 悬浮轻微放大） */
.ibox-content.product-box {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
    transition: transform .35s, box-shadow .35s;
}
.ibox-content.product-box img {border-radius: 0; transition: transform .5s;}
.ibox-content.product-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.ibox-content.product-box:hover img {transform: scale(1.05);}

/* ==========================================================================
   首页视觉改版 v2 —— 2026-09-20
   ========================================================================== */

/* ---------- 语言切换：胶囊化，去掉绝对定位 ---------- */
nav#header .lang-switch {
    display: flex;
    align-items: center;
    margin-left: 1rem;
    padding: 4px;
    background: #f2f6fc;
    border: 1px solid #e3e8f2;
    border-radius: 99px;
}

nav#header .lang-switch select {
    height: 30px;
    padding: 0 26px 0 13px;
    font-size: 13px;
    font-weight: 600;
    line-height: 30px;
    color: #1a2d41;
    background-color: #fff;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path fill='%231a5fd0' d='M1.4 1.4 6 6l4.6-4.6'/></svg>");
    background-repeat: no-repeat;
    background-position: right 9px center;
    background-size: 11px;
    border: 0;
    border-radius: 99px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

nav#header .lang-switch select:focus {outline: none;}

/* ---------- 首屏大图：缓慢呼吸缩放 ---------- */
#inSlider .index-image {animation: heroZoom 26s ease-in-out infinite alternate;}

@keyframes heroZoom {
    from {transform: scale(1);}
    to   {transform: scale(1.06);}
}

@media (prefers-reduced-motion: reduce) {
    #inSlider .index-image {animation: none;}
}

/* ---------- 概览分组标题 ---------- */
.rcmd-group {margin-bottom: .25rem;}

h2.rcmd-title {
    position: relative;
    margin: 8px 0 18px !important;
    padding-bottom: 14px;
    font-size: 22px !important;
    font-weight: 700 !important;
    letter-spacing: .2px;
    text-align: center;
    color: var(--dark);
}

h2.rcmd-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 46px;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--primary), #5aa9ff);
}

/* ---------- 概览卡片细节 ---------- */
.team-item .team-text h3::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 8px;
    vertical-align: middle;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
}

.team-item .team-text p:last-child {margin-bottom: 0 !important;}

/* ---------- 推荐资源：同排卡片等高，避免字段多少 / 标题换行不同导致高低不齐 ---------- */
.row.g-5 > .col-lg-4 { display: flex; }
.row.g-5 > .col-lg-4 > .team-item {
    display: flex !important;
    flex-direction: column;
    width: 100%;
}
.row.g-5 .team-item .imgBox { flex: 0 0 auto; }
.row.g-5 .team-item .team-text {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
/* 标题最多两行、信息行单行截断，保证各卡片文字区行数一致 */
.team-item .team-text h3 {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden !important;
}
.team-item .team-text p {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 1.6em;
}

/* ---------- 回到顶部 ---------- */
.ap-to-top {
    position: fixed;
    right: 26px;
    bottom: 26px;
    z-index: 999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    font-size: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(26, 95, 208, .34);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: .3s;
    text-decoration: none;
}

.ap-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ap-to-top:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(26, 95, 208, .45);
}

@media (max-width: 576px) {
    .ap-to-top {right: 16px; bottom: 16px; width: 42px; height: 42px;}
    nav#header .lang-switch {margin-left: auto; padding: 3px;}
    nav#header .lang-switch select {height: 28px; line-height: 28px; font-size: 12px;}
    h2.rcmd-title {font-size: 19px !important;}
}

/* 极小屏（<400px）：首页改版视觉进一步收紧，避免拥挤 */
@media (max-width: 400px) {
    #inSlider .index-image { max-height: 180px; }
    #inSlider { border-radius: var(--radius-sm) !important; }
    .team-item .imgBox { height: 168px !important; }
    section.container-fluid.bg-secondary .col-lg-6.py-6.px-5 { padding: 36px 18px !important; }
    nav#header .lang-switch select { font-size: 11px; padding: 0 22px 0 10px; }
    h1.display-5, .display-5 { font-size: 23px !important; }
    h2.rcmd-title { font-size: 17px !important; }
    .d-flex.flex-wrap.m-n1 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 12px !important; }
}

/* ---- 原 css/my.css 的自定义类并入主样式表，全站统一一套样式 ---- */
.qq { float: left; background: url('../img/qq_25.jpg') no-repeat; width: 25px; height: 25px; }
.telephoneNumber { color: #1dafec; font-size: 16px; }
.ask { line-height: 50px; margin: 0 0 10px 10px; }

/* ==========================================================================
   首页手机端优化 —— 2026-09-24
   ========================================================================== */
@media (max-width: 576px) {

    /* ---- 广告资源列表：改 3 列 + 面板限高内部滚动 ----
       高铁站列表在手机上长达数十屏，会把后面的「媒体推荐 / 概览 / 公司简介」全部推到很深，
       这里收成固定高度的可滚动面板，页面节奏可控。 */
    .d-flex.flex-wrap.m-n1 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        max-height: 368px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        padding: 12px !important;
    }
    a.btn.btn-secondary {
        height: 42px;
        line-height: 40px;
        padding: 0 6px !important;
        font-size: 12px !important;
        border-radius: 11px !important;
    }

    /* ---- 区块与标题节奏收紧 ---- */
    section.container-fluid.pt-6,
    section.container-fluid.py-6 {
        padding: 40px 14px !important;
        overflow: hidden;
    }
    .text-center.mx-auto.mb-5 { margin-bottom: 1.6rem !important; }
    h1.display-5, .display-5 { font-size: 24px !important; }
    hr.w-25.mx-auto.bg-primary { width: 54px !important; height: 3px !important; }

    /* ---- 媒体推荐卡 ---- */
    .service-item {
        border-radius: 14px !important;
        box-shadow: 0 8px 22px rgba(18, 38, 63, .08) !important;
    }
    .service-item h3 { font-size: 16px !important; }

    /* ---- 概览卡 ---- */
    .row.g-5 { --bs-gutter-y: 1.15rem; }
    .team-item .imgBox { height: 176px !important; }
    .team-item .team-text { padding: 14px 16px !important; }
    .team-item .team-text h3 { font-size: 16px !important; }
    .team-item .team-text p { font-size: 12.5px !important; }

    /* ---- 公司简介双栏卡 ---- */
    section.container-fluid.bg-secondary.p-0 { padding: 14px !important; }
    section.container-fluid.bg-secondary .col-lg-6.py-6.px-5 { padding: 26px 18px !important; }
    section.container-fluid.bg-secondary h1.display-5 { font-size: 21px !important; }
    section.container-fluid.bg-secondary h4 { font-size: 14.5px !important; line-height: 1.85; }
    .bg-primary .d-flex.text-white > div.rounded-circle {
        width: 46px !important;
        height: 46px !important;
    }
    .bg-primary h3 { font-size: 15px !important; }
    .bg-primary p { font-size: 12.5px !important; }

    /* ---- 页脚 ---- */
    section.container-fluid.bg-dark.text-secondary { padding: 24px 16px !important; }
    section.container-fluid.bg-dark p { font-size: 12.5px !important; }
}

/* ---- 媒体推荐卡：手机端取消常显的蓝色大圆，改「图 + 底部渐变标题条」 ----
   原 style.css 在 ≤768px 把 .service-item::after 撑成 180px 并常显，
   触摸设备上 hover 会「粘住」，于是图片中央一直压着一块蓝圆。 */
@media (max-width: 768px) {
    .service-item {
        display: block;
        background: #fff;
        border-radius: 14px;
        width: 100%;
    }
    .service-item::after {
        width: 0;
        height: 0;
        opacity: 0;
    }
    .service-item .colBg {
        display: block;
        width: 100%;
        height: 172px;
        object-fit: cover;
        transition: none;
    }
    .service-item h3 {
        position: static;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
        margin: 0 !important;
        padding: 12px 14px;
        font-size: 15px;
        text-align: left;
        text-shadow: none;
        background: linear-gradient(135deg, #1a5fd0, #2f86e8);
        border-radius: 0 0 14px 14px;
    }

    /* 概览分组标题：与区块标题之间的空隙收紧 */
    .row.g-5 > .col-md-12.rcmd-group { margin-bottom: 0; }
    h2.rcmd-title { margin: 4px 0 14px !important; }
}
