/* ============================================================
   News Detail 页面（模板：顶部 Banner + 左正文 / 右侧边栏）
   ============================================================ */
.news-detail-main {
    background: #fff;
}

/* ---------- 顶部 Banner（与 News 页第一屏同风格） ---------- */
.detail__banner {
    position: relative;
    width: 19.2rem;
    max-width: 100%;
    height: 5.2rem;
    margin: 0 auto;
    /* 背景图由 HTML <img>（.detail__banner-img）承载，固定使用 news 页面的 banner 图（first-img.png） */
    padding: 3.92rem 3.1rem 0;
    box-sizing: border-box;
    overflow: hidden;
    color: #fff;
}

.detail__banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 图上暗色渐变遮罩，保证前景文字可读 */
.detail__banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 45%, transparent 62%);
    z-index: 1;
    pointer-events: none;
}

.detail__banner-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.detail__banner-title {
    margin: 0 0 0.1rem;
    color: #FFF;
    font-family: Gabarito;
    font-size: 0.56rem;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.detail__banner-desc {
    margin: 0;
    color: #CCC;
    font-family: Gabarito;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.detail__breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.08rem;
    margin-top: 0.3rem;
    font-family: Gabarito, sans-serif;
    font-size: 0.15rem;
    line-height: 1.4;
}

.detail__breadcrumb a {
    color: #CCC;
    text-decoration: none;
    transition: color 0.3s ease;
}

.detail__breadcrumb a:hover {
    color: #00B8E2;
}

.detail__breadcrumb-sep {
    color: #888;
}

.detail__breadcrumb-current {
    color: #00B8E2;
    font-weight: 500;
}

/* ---------- 主体：双栏 ---------- */
.detail__body {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    width: 19.2rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 0.7rem 3.1rem 1rem;
    box-sizing: border-box;
}

.detail__content {
    flex: 1;
    min-width: 0;
}

/* ---- 左栏：标题 + 日期 ---- */
.detail__top {
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #eee;
}

.detail__title {
    margin: 0 0 0.2rem;
    color: #111;
    font-family: Gabarito, sans-serif;
    font-size: 0.4rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.3;
    text-transform: capitalize;
}

.detail__meta {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.detail__meta-date {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    color: #999;
    font-family: Gabarito, sans-serif;
    font-size: 0.15rem;
    font-weight: 400;
}

/* CSS 绘制的日历小图标 */
.detail__meta-date-icon {
    position: relative;
    display: inline-block;
    width: 0.28rem;
    height: 0.28rem;
    border: 0.03rem solid #00B8E2;
    border-radius: 0.06rem;
    box-sizing: border-box;
}

.detail__meta-date-icon::before {
    content: "";
    position: absolute;
    top: 0.07rem;
    left: -0.03rem;
    right: -0.03rem;
    height: 0.03rem;
    background: #00B8E2;
}

.detail__meta-date-icon::after {
    content: "";
    position: absolute;
    top: -0.05rem;
    left: 0.07rem;
    width: 0.03rem;
    height: 0.09rem;
    background: #00B8E2;
    border-radius: 0.02rem;
    box-shadow: 0.11rem 0 0 #00B8E2;
}

/* ---- 左栏：正文 ---- */
.detail__article {
    padding-top: 0.4rem;
}

.detail__article p {
    margin: 0 0 0.3rem;
    color: #555;
    font-family: Gabarito, sans-serif;
    font-size: 0.17rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.9;
    text-transform: none;
}

.detail__article .detail__intro {
    color: #333;
    font-size: 0.19rem;
    line-height: 1.8;
}

.detail__figure {
    margin: 0.4rem 0 0.45rem;
}

.detail__figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.14rem;
    box-shadow: 0 0.12rem 0.4rem rgba(0, 0, 0, 0.08);
}

.detail__article h2 {
    position: relative;
    margin: 0.5rem 0 0.24rem;
    padding-left: 0.2rem;
    color: #111;
    font-family: Gabarito, sans-serif;
    font-size: 0.26rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.4;
    text-transform: capitalize;
}

.detail__article h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.04rem;
    bottom: 0.04rem;
    width: 0.07rem;
    border-radius: 0.07rem;
    background: linear-gradient(135deg, #00B8E2 0%, #0063C3 100%);
}

/* ---------- 正文表格 ---------- */
.detail__article table {
    width: 100%;
    margin: 0.4rem 0;
    border-collapse: separate;
    border-spacing: 0;
    border: none;
    border-radius: 0.12rem;
    overflow: hidden;
    background: #FFF;
    box-shadow: 0 0 0 1px #E9EEF5,
        0 0.08rem 0.24rem rgba(15, 70, 130, 0.08);
    font-family: Gabarito, sans-serif;
    font-size: 0.16rem;
    line-height: 1.6;
}

/* border: none 同时压掉内容里 border="1" 等旧属性带出的单元格边框 */
.detail__article th,
.detail__article td {
    border: none;
    padding: 0.18rem 0.24rem;
    text-align: left;
    vertical-align: middle;
    color: #333;
}

/* 只保留横向分隔线 */
.detail__article tbody td {
    border-bottom: 1px solid #EDF2F8;
}

.detail__article tr:last-child td {
    border-bottom: none;
}

/* 表头：深蓝底白字（thead 或首行 th 均可识别） */
.detail__article thead th,
.detail__article tr:first-child th {
    background: linear-gradient(135deg, #0A57B8 0%, #053B80 100%);
    color: #FFF;
    font-size: 0.18rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.22rem 0.24rem;
    border-bottom: none;
}

/* 首列文字稍加重，增强可读性 */
.detail__article tbody td:first-child {
    color: #1A1A1A;
    font-weight: 500;
}

/* 隔行淡底 + 悬浮高亮 */
.detail__article tbody tr:nth-child(even) td {
    background: #F8FBFE;
}

.detail__article tbody tr {
    transition: background 0.2s ease;
}

.detail__article tbody tr:hover td {
    background: #EFF7FE;
}

.detail__article ul {
    margin: 0 0 0.32rem;
    padding-left: 0.2rem;
}

.detail__article ul li {
    color: #555;
    font-family: Gabarito, sans-serif;
    font-size: 0.17rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.9;
    margin-bottom: 0.08rem;
}

/* ---- 左栏：上一篇 / 下一篇 ---- */
.detail__news-page {
    display: flex;
    justify-content: space-between;
    gap: 0.3rem;
    margin-top: 0.55rem;
    padding-top: 0.3rem;
    border-top: 1px solid #eee;
    font-family: Gabarito, sans-serif;
    font-size: 0.16rem;
    line-height: 1.6;
}

.detail__news-prev,
.detail__news-next {
    max-width: 50%;
    color: #999;
}

.detail__news-prev a,
.detail__news-next a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.detail__news-prev a:hover,
.detail__news-next a:hover {
    color: #0063C3;
}

/* 上一篇/下一篇无可访问内容时的禁用态 */
.detail__news-prev.is-disabled a,
.detail__news-next.is-disabled a {
    color: #999;
    cursor: default;
}

.detail__news-prev.is-disabled a:hover,
.detail__news-next.is-disabled a:hover {
    color: #999;
}

/* ---- 右侧边栏 ---- */
.detail__sidebar {
    width: 3.5rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.detail__panel {
    padding: 0.3rem 0.28rem;
    background: #f7f9fb;
    border-radius: 0.14rem;
    box-sizing: border-box;
}

.detail__panel-title {
    position: relative;
    margin: 0 0 0.22rem;
    padding-bottom: 0.14rem;
    color: #111;
    font-family: Gabarito, sans-serif;
    font-size: 0.24rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.4;
    text-transform: capitalize;
}

.detail__panel-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0.5rem;
    height: 0.04rem;
    border-radius: 0.04rem;
    background: linear-gradient(135deg, #00B8E2 0%, #0063C3 100%);
}

/* 分类导航 */
.detail__panel-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.detail__panel-list li {
    border-bottom: 1px dashed #e0e4e9;
}

.detail__panel-list li:last-child {
    border-bottom: none;
}

.detail__panel-list a {
    display: block;
    padding: 0.14rem 0;
    color: #555;
    font-family: Gabarito, sans-serif;
    font-size: 0.16rem;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.detail__panel-list a:hover {
    color: #0063C3;
    padding-left: 0.12rem;
}

/* 相关博客 */
.detail__related-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.detail__related-list li {
    border-bottom: 1px dashed #e0e4e9;
}

.detail__related-list li:last-child {
    border-bottom: none;
}

.detail__related-list a {
    display: block;
    padding: 0.16rem 0;
    text-decoration: none;
}

.detail__related-time {
    color: #999;
    font-family: Gabarito, sans-serif;
    font-size: 0.14rem;
    margin-bottom: 0.06rem;
}

.detail__related-title {
    margin: 0;
    color: #333;
    font-family: Gabarito, sans-serif;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 500;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.detail__related-list a:hover .detail__related-title {
    color: #0063C3;
}

/* 留言表单 */
.detail__panel form {
    display: flex;
    flex-direction: column;
    gap: 0.16rem;
}

.detail__panel form ul {
    display: flex;
    flex-direction: column;
    gap: 0.16rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.detail__panel form ul li p {
    margin: 0;
}

.detail__panel form ul li span {
    display: block;
}

.detail__panel form ul li input,
.detail__panel form ul li textarea {
    display: block;
}

.detail__panel form input,
.detail__panel form textarea {
    width: 100%;
    padding: 0.14rem 0.16rem;
    box-sizing: border-box;
    border: 1px solid #dde2e8;
    border-radius: 0.08rem;
    background: #fff;
    color: #333;
    font-family: Gabarito, sans-serif;
    font-size: 0.15rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.detail__panel form input:focus,
.detail__panel form textarea:focus {
    border-color: #00B8E2;
}

.detail__panel form textarea {
    resize: vertical;
    min-height: 1.6rem;
}

.detail__panel form>p{
    display: flex;
}

.detail__panel form button {
    padding: 0.16rem 0.2rem;
    border: none;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #00B8E2 0%, #0063C3 100%);
    color: #fff;
    font-family: Gabarito, sans-serif;
    font-size: 0.16rem;
    font-style: normal;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.detail__panel form button:hover {
    opacity: 0.9;
    transform: translateY(-0.03rem);
}

/* ============================================================
   H5（移动端）适配
   设计稿基准：750px
   ============================================================ */

/* ---------- 顶部导航：汉堡菜单按钮 ---------- */
/* 桌面端默认隐藏，仅移动端显示 */
.menu-btn {
    display: none;
}

html[data-mode="h5"] .menu-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.09rem;
    width: 0.44rem;
    height: 0.44rem;
    margin-left: auto;
    padding: 0;
    border: none;
    border-radius: 0.1rem;
    background: rgba(255, 255, 255, 0.24);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

html[data-mode="h5"] .menu-btn span {
    display: block;
    width: 0.22rem;
    height: 0.03rem;
    border-radius: 0.03rem;
    background: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

html[data-mode="h5"] .header.is-scrolled .menu-btn {
    background: rgba(51, 51, 51, 0.08);
}

html[data-mode="h5"] .header.is-scrolled .menu-btn span {
    background: #333;
}

html[data-mode="h5"] .menu-btn.is-open span:nth-child(1) {
    transform: translateY(0.12rem) rotate(45deg);
}

html[data-mode="h5"] .menu-btn.is-open span:nth-child(2) {
    opacity: 0;
}

html[data-mode="h5"] .menu-btn.is-open span:nth-child(3) {
    transform: translateY(-0.12rem) rotate(-45deg);
}

/* 移动端：隐藏桌面导航，保留搜索与 Get a Quote 等右侧按钮 */
html[data-mode="h5"] .header__inner-nav {
    display: none;
}

/* 移动端：导航栏紧凑布局（避免右侧按钮换行，菜单按钮靠最右） */
html[data-mode="h5"] .header__inner {
    justify-content: space-between;
}

html[data-mode="h5"] .logo {
    order: 1;
    margin-left: 0;
    flex-shrink: 0;
}

html[data-mode="h5"] .logo img {
    width: 1.1rem;
    height: auto;
}

html[data-mode="h5"] .header__inner-right {
    order: 2;
    margin-right: 0;
    margin-left: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.08rem;
}

html[data-mode="h5"] .menu-btn {
    order: 3;
    width: 0.4rem;
    height: 0.4rem;
    margin-left: 0.08rem;
    margin-right: 0;
    flex-shrink: 0;
}

/* 右侧按钮统一不换行 */
html[data-mode="h5"] .header__inner-right-search,
html[data-mode="h5"] .header__inner-right-language,
html[data-mode="h5"] .header__inner-right-msg,
html[data-mode="h5"] .header__inner-right > a:last-child {
    flex-shrink: 0;
    white-space: nowrap;
}

html[data-mode="h5"] .header__inner-right-search {
    width: 0.36rem;
    height: 0.36rem;
    margin-right: 0;
}

html[data-mode="h5"] .header__inner-right-language {
    width: auto;
    min-width: 0.62rem;
    height: 0.36rem;
    padding: 0 0.08rem;
    margin-right: 0;
    font-size: 0.2rem;
}

html[data-mode="h5"] .header__inner-right-msg {
    height: 0.36rem;
    padding: 0 0.14rem;
    margin-right: 0;
    font-size: 0.2rem;
}

html[data-mode="h5"] .header__inner-right > a:last-child {
    height: 0.36rem;
    padding: 0 0.14rem;
    margin-right: 0;
    font-size: 0.2rem;
}

/* 移动端：展开后的全屏下拉菜单 */
html[data-mode="h5"] .header__inner-nav.is-open {
    position: fixed;
    top: 0.8rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 7.5rem;
    height: calc(100vh - 0.8rem);
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 0.3rem 0.6rem 0.6rem;
    box-sizing: border-box;
    background: #fff;
    overflow-y: auto;
    animation: h5NavFadeIn 0.25s ease both;
}

@keyframes h5NavFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -0.2rem);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

html[data-mode="h5"] .header__inner-nav.is-open .header__inner-nav-item {
    width: 100%;
    padding: 0.22rem 0;
    border-bottom: 0.01rem solid #f0f2f5;
}

html[data-mode="h5"] .header__inner-nav.is-open .header__inner-nav-item a {
    color: #333;
    font-size: 0.3rem;
}

html[data-mode="h5"] .header__inner-nav.is-open .header__inner-nav-item:active a,
html[data-mode="h5"] .header__inner-nav.is-open .header__inner-nav-item a:active {
    color: #00B8E2;
}

/* ---------- 页脚 ---------- */
html[data-mode="h5"] .footer__main {
    padding: 0.6rem 0.4rem 0.5rem;
}

html[data-mode="h5"] .footer__links {
    flex-wrap: wrap;
    gap: 0.3rem 0.2rem;
}

html[data-mode="h5"] .footer__col {
    flex: 1 1 40%;
    min-width: 2.6rem;
}

html[data-mode="h5"] .footer__contact-item {
    font-size: 0.2rem;
}

html[data-mode="h5"] .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    margin-top: 0.4rem;
    padding-top: 0.3rem;
}

html[data-mode="h5"] .footer__logo {
    width: 4rem;
    height: auto;
}

html[data-mode="h5"] .footer__bar {
    flex-direction: column;
    height: auto;
    padding: 0.18rem 0.4rem;
    gap: 0.1rem;
}

html[data-mode="h5"] .detail__banner {
    width: 100%;
    height: auto;
    min-height: 4.6rem;
    padding: 2.6rem 0.4rem 0.6rem;
}

html[data-mode="h5"] .detail__banner-title {
    font-size: 0.56rem;
}

html[data-mode="h5"] .detail__banner-desc {
    font-size: 0.24rem;
}

html[data-mode="h5"] .detail__breadcrumb {
    font-size: 0.22rem;
    margin-top: 0.24rem;
}

html[data-mode="h5"] .detail__body {
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0.4rem 0.8rem;
}

html[data-mode="h5"] .detail__title {
    font-size: 0.42rem;
}

html[data-mode="h5"] .detail__meta-date {
    font-size: 0.24rem;
}

html[data-mode="h5"] .detail__meta-date-icon {
    width: 0.4rem;
    height: 0.4rem;
    border-width: 0.04rem;
    border-radius: 0.08rem;
}

html[data-mode="h5"] .detail__meta-date-icon::before {
    height: 0.04rem;
    top: 0.1rem;
}

html[data-mode="h5"] .detail__meta-date-icon::after {
    width: 0.04rem;
    height: 0.13rem;
    top: -0.07rem;
    left: 0.1rem;
    box-shadow: 0.16rem 0 0 #00B8E2;
}

html[data-mode="h5"] .detail__article p {
    font-size: 0.26rem;
    line-height: 1.85;
}

html[data-mode="h5"] .detail__article .detail__intro {
    font-size: 0.28rem;
}

html[data-mode="h5"] .detail__article h2 {
    font-size: 0.34rem;
    padding-left: 0.26rem;
}

html[data-mode="h5"] .detail__article h2::before {
    width: 0.09rem;
}

/* H5：表格块级化 + 横向滚动，避免撑破容器 */
html[data-mode="h5"] .detail__article table {
    display: block;
    overflow-x: auto;
    font-size: 0.24rem;
    border-radius: 0.12rem;
    -webkit-overflow-scrolling: touch;
}

html[data-mode="h5"] .detail__article th,
html[data-mode="h5"] .detail__article td {
    padding: 0.18rem 0.24rem;
}

html[data-mode="h5"] .detail__article ul li {
    font-size: 0.26rem;
}

html[data-mode="h5"] .detail__news-page {
    font-size: 0.24rem;
}

html[data-mode="h5"] .detail__sidebar {
    width: 100%;
}

html[data-mode="h5"] .detail__panel {
    padding: 0.36rem 0.32rem;
}

html[data-mode="h5"] .detail__panel-title {
    font-size: 0.34rem;
}

html[data-mode="h5"] .detail__panel-list a {
    font-size: 0.26rem;
    padding: 0.2rem 0;
}

html[data-mode="h5"] .detail__related-time {
    font-size: 0.22rem;
}

html[data-mode="h5"] .detail__related-title {
    font-size: 0.26rem;
}

html[data-mode="h5"] .detail__panel form input,
html[data-mode="h5"] .detail__panel form textarea {
    font-size: 0.26rem;
    padding: 0.2rem 0.22rem;
}

html[data-mode="h5"] .detail__panel form button {
    font-size: 0.26rem;
    padding: 0.22rem 0.2rem;
}
