:root {
    --pc-content-width: 1280px;
    --pc-content-gutter: 20px;
    --pc-component-inset: 18px;
}
/* 顶部图片 */
.dx-top-image { width: calc(100% - 2 * var(--pc-content-gutter)); max-width: var(--pc-content-width); margin: 0 auto; background: #fff; }
.dx-top-image img { display: block; width: 100%; height: auto; }

/* 导航：内容区与右侧工具保持在同一容器内，避免工具栏挤出视口 */
.dx-nav { background: #fff; }
.dx-nav a { text-decoration: none; }
.dx-nav-inner { position: relative; width: calc(100% - 2 * var(--pc-content-gutter)); max-width: var(--pc-content-width); box-sizing: border-box; margin: 0 auto; height: 54px; padding: 0; display: flex; align-items: stretch; }
.dx-nav-menu { flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; list-style: none; display: flex; align-items: stretch; justify-content: space-between; border-bottom: 3px solid #c8c9ce; overflow: visible; }
.dx-nav-menu li { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; }
.dx-nav-menu li a { display: block; min-width: 0; padding: 0 clamp(5px, .7vw, 12px); line-height: 50px; color: #111; font-size: clamp(14px, 1.05vw, 18px); font-weight: bold; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx-nav-menu li:first-child a { padding-left: 0; }
.dx-nav-menu li.dx-active a { color: #111; }
.dx-nav-menu li a:hover { color: #e13f38; }

/* 右侧功能区：竖线分隔；前三项（AI/汉堡/登录注册）与菜单同享底部灰粗线 */
.dx-nav-tools { position: relative; z-index: 2; flex: 0 0 auto; display: flex; align-items: stretch; margin-left: auto; }
.dx-tool { display: flex; align-items: center; justify-content: center; padding: 0 12px; color: #111; font: inherit; font-size: 15px; white-space: nowrap; border: 0; border-left: 1px solid #dddee2; background: #fff; cursor: pointer; }
.dx-tool:first-child { border-left: 0; }
.dx-tool-ai, .dx-tool-burger, .dx-tool-login { border-bottom: 3px solid #c8c9ce; }
.dx-tool svg { display: block; }
.dx-tool-ai img { display: block; width: 34px; height: 34px; object-fit: contain; }
.dx-tool-burger svg { width: 24px; height: 18px; }
.dx-tool-login { display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #e9eaed; }
.dx-tool-login a { color: inherit; }
.dx-tool-login a:hover { color: #e13f38; }
.dx-tool-login .dx-login-sep { color: #999; margin: 0 5px; font-weight: normal; }
.dx-tool:hover { color: #e13f38; }
.dx-search-panel, .dx-nav-dropdown { position: absolute; top: 100%; right: 16px; z-index: 20; box-sizing: border-box; width: min(420px, calc(100vw - 32px)); padding: 16px; border: 1px solid #e1e1e1; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.14); }
.dx-search-panel[hidden], .dx-nav-dropdown[hidden] { display: none !important; }
.dx-search-label { display: block; margin-bottom: 8px; color: #333; font-weight: bold; }
.dx-search-panel input { box-sizing: border-box; width: calc(100% - 76px); height: 40px; padding: 0 10px; border: 1px solid #c8c9ce; font: inherit; }
.dx-search-panel button { width: 68px; height: 40px; margin-left: 8px; border: 0; background: #a3231a; color: #fff; cursor: pointer; }
.dx-nav-dropdown ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; margin: 0; padding: 0; list-style: none; }
.dx-nav-dropdown li a { display: block; padding: 10px 8px; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx-nav-dropdown li a:hover { background: #f5f5f5; color: #a3231a; }

@media (max-width: 1450px) {
  .dx-nav-menu li a { padding-right: 8px; padding-left: 8px; }
}
@media (max-width: 1500px) {
  .dx-tool { font-size: 15px; padding: 0 10px; }
  .dx-tool-ai img { width: 36px; height: 36px; }
  .dx-tool-burger svg { width: 26px; height: 19px; }
}
@media (max-width: 1100px) {
  .dx-nav-menu { display: none; }
  .dx-tool { font-size: 14px; padding: 0 8px; }
  .dx-tool-ai img { width: 30px; height: 30px; }
}
@media (max-width: 860px) {
    .dx-home, .dx-site-page {
        --dx-card-radius: 12px;
        --dx-card-space: 12px;
        --dx-card-shadow: 0 2px 10px rgba(15, 23, 42, .05), 0 0 0 1px rgba(15, 23, 42, .04);
    }
    .dx-site-page { --pc-content-gutter: var(--dx-card-space); }
    .dx-home, .dx-site-header, body.dx-site-page {
        background: #f5f6f8;
    }
    .dx-home, .dx-site-header {
        padding-top: var(--dx-card-space);
    }
    .dx-home, body.dx-site-page { padding-bottom: var(--dx-card-space); }

    :is(.dx-home, .dx-site-header) :is(.dx-top-image, .dx-nav) {
        width: calc(100% - 2 * var(--dx-card-space));
        max-width: var(--pc-content-width);
        margin: 0 auto var(--dx-card-space);
        border-radius: var(--dx-card-radius);
        background: #fff;
        box-shadow: var(--dx-card-shadow);
    }
    :is(.dx-home, .dx-site-header) .dx-top-image { overflow: hidden; }
    :is(.dx-home, .dx-site-header) .dx-top-image:has(+ .dx-nav) {
        margin-bottom: 0;
        border-end-start-radius: 0;
        border-end-end-radius: 0;
        box-shadow: 0 1px 6px rgba(15, 23, 42, .04), 0 0 0 1px rgba(15, 23, 42, .04);
    }
    :is(.dx-home, .dx-site-header) .dx-top-image + .dx-nav {
        border-start-start-radius: 0;
        border-start-end-radius: 0;
    }

    :is(.dx-home, .dx-site-header) .dx-nav-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 44px auto 44px;
        width: 100%;
        height: auto;
    }
    :is(.dx-home, .dx-site-header) .dx-nav-menu {
        grid-row: 1;
        grid-column: 1 / -2;
        display: flex;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
        border-bottom: 1px solid #eef0f4;
    }
    :is(.dx-home, .dx-site-header) .dx-nav-menu::-webkit-scrollbar { display: none; }
    :is(.dx-home, .dx-site-header) .dx-nav-menu li { flex: 0 0 auto; }
    :is(.dx-home, .dx-site-header) .dx-nav-menu li a {
        display: flex;
        align-items: center;
        box-sizing: border-box;
        min-height: 44px;
        padding: 0 11px;
        color: #222;
        font-size: 15px;
        font-weight: 500;
        line-height: 1.35;
        letter-spacing: normal;
    }
    :is(.dx-home, .dx-site-header) .dx-nav-menu li.dx-active a {
        color: #c91525;
        font-weight: 700;
        box-shadow: inset 0 -2px 0 #c91525;
    }
    :is(.dx-home, .dx-site-header) .dx-nav-menu a:focus-visible { outline-offset: -2px; }
    :is(.dx-home, .dx-site-header) .dx-nav-menu a:is(:hover, :focus-visible, :active) { color: #c91525; }
    :is(.dx-home, .dx-site-header) .dx-nav-tools { display: contents; }
    :is(.dx-home, .dx-site-header) .dx-tool { min-height: 44px; padding: 0 7px; border: 0; }
    :is(.dx-home, .dx-site-header) .dx-tool-burger {
        position: relative;
        grid-row: 1;
        grid-column: -2 / -1;
        color: #c91525;
        border-left: 1px solid #eef0f4;
        border-bottom: 1px solid #eef0f4;
        border-start-end-radius: var(--dx-card-radius);
    }
    :is(.dx-home, .dx-site-header) .dx-top-image + .dx-nav .dx-tool-burger { border-start-end-radius: 0; }
    :is(.dx-home, .dx-site-header) .dx-tool-burger::before {
        content: "";
        position: absolute;
        inset: 0 100% 0 auto;
        width: 9px;
        background: linear-gradient(to right, transparent, #fff);
        pointer-events: none;
    }
    :is(.dx-home, .dx-site-header) .dx-tool-burger svg { width: 19px; height: 15px; }
    :is(.dx-home, .dx-site-header) .dx-tool-burger path { stroke: currentColor; }
    :is(.dx-home, .dx-site-header) .dx-tool-burger[aria-expanded="true"] { background: #fdf2f2; }
    :is(.dx-home, .dx-site-header) .dx-tool-ai {
        grid-row: 2;
        grid-column: 2;
        border-radius: 8px;
    }
    :is(.dx-home, .dx-site-header) .dx-tool-ai img { width: 24px; height: 24px; }
    :is(.dx-home, .dx-site-header) .dx-tool-login {
        grid-row: 2;
        grid-column: 3 / -1;
        gap: 2px;
        align-self: center;
        margin: 0 10px 0 4px;
        padding: 0 10px;
        min-height: 32px;
        border: 0;
        border-radius: 999px;
        background: #f3f5f7;
        font-size: 13px;
        color: #333;
    }
    :is(.dx-home, .dx-site-header) .dx-tool-login a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 4px; font-weight: 500; }
    :is(.dx-home, .dx-site-header) .dx-tool-login .dx-login-sep { margin: 0 2px; color: #bbb; }
    :is(.dx-home, .dx-site-header) :is(.dx-search-panel, .dx-nav-dropdown) {
        right: 0;
        top: calc(100% + 6px);
        max-width: 100%;
        padding: 14px;
        border: 1px solid #eceef2;
        border-radius: var(--dx-card-radius);
        box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
    }
    :is(.dx-home, .dx-site-header) .dx-search-panel input {
        border-radius: 8px;
        border-color: #dcdfe6;
        font-size: 14px;
    }
    :is(.dx-home, .dx-site-header) .dx-search-panel button {
        border-radius: 8px;
        background: #c91525;
        font-weight: 600;
    }
    :is(.dx-home, .dx-site-header) .dx-nav-dropdown { max-height: 60vh; overflow-y: auto; }
    :is(.dx-home, .dx-site-header) .dx-nav-dropdown ul { gap: 8px; }
    :is(.dx-home, .dx-site-header) .dx-nav-dropdown li a {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 8px 10px;
        border-radius: 8px;
        background: #f6f7f9;
        color: #222;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.4;
        min-height: 44px;
        box-sizing: border-box;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    :is(.dx-home, .dx-site-header) .dx-nav-dropdown li a:is(:hover, :focus-visible, :active) {
        background: #fdf2f2;
        color: #c91525;
    }

    /* Inner pages share the same mobile card shell. */
    .dx-site-page .main {
        padding: 14px;
        border-radius: var(--dx-card-radius);
        background: #fff;
        box-shadow: var(--dx-card-shadow);
        margin-bottom: var(--dx-card-space);
    }
    .dx-site-page .position {
        font-size: 12.5px;
        color: #777;
        padding-bottom: 10px;
        margin-bottom: 10px;
        border-bottom: 1px solid #eef0f4;
    }
    .dx-site-page .list-3 li a {
        padding: 6px 0;
        font-size: 14.5px;
        line-height: 1.6;
    }
    .dx-site-page .news-title h1 {
        font-size: 20px;
        line-height: 1.45;
        color: #1a1d24;
    }
    .dx-site-page .news-content {
        font-size: 15.5px;
        line-height: 1.8;
        color: #2c3038;
    }
    .dx-site-page .pages,
    .dx-site-page .pagination {
        height: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        padding: 12px 0 4px;
    }
    .dx-site-page .pagination a,
    .dx-site-page .pagination p {
        float: none;
        margin: 0;
        border-radius: 6px;
    }
}

/* Only pages using the published decoration opt into the shared desktop layout. */
body.dx-site-page { min-width: 0; padding-top: 0; }
.dx-site-page .container,
.dx-site-page .link192 .w192 {
    box-sizing: border-box;
    width: calc(100% - 2 * var(--pc-content-gutter));
    max-width: var(--pc-content-width);
    padding-left: 0;
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
}
.dx-site-page .main { box-sizing: border-box; }
.dx-site-page .ct2-mn { width: calc(100% - 290px); min-width: 0; }
.dx-site-page .news-wrap { min-width: 0; }
.dx-site-page .news-content { overflow-wrap: anywhere; }
.dx-site-page .news-content table { max-width: 100%; }
.dx-site-page .link192 { padding-left: 0; padding-right: 0; }
@media (max-width: 767px) {
    body.dx-site-page { padding-bottom: 64px; }
    .dx-site-page .ct2-mn { width: 100%; }
}
