/* =============================================================
 * AI 导读 · 内容页右侧栏 + 弹窗（nds- 前缀，源自兰陵县政府页面设计稿 11.4）
 * 图片走站点绝对路径：/system/resource/wedatas/images/（aidd1.png、zw-xybg.png、mzsm.png）
 * ============================================================= */

/* ---------- 右侧栏模块 ---------- */
.nds-rt {}

.nds-mod {
    background: #e9f2ff;
    border-radius: 6px 6px 0 0;
    border-top: 3px solid #1151AF;
    overflow: hidden;
}

.nds-mod + .nds-mod {
    margin-top: 30px;
}

/* 蓝色斜切标签头（Ai导读 / 原文解读） */
.nds-tab-hd {
    display: block;
    width: 150px;
    height: 54px;
    line-height: 54px;
    padding: 0 20px;
    background: #1151AF;
    clip-path: polygon(0 0, 100% 0, calc(100% - 24px) 100%, 0 100%);
    -webkit-clip-path: polygon(0 0, 100% 0, calc(100% - 24px) 100%, 0 100%);
    margin-top: -1px;
}

.nds-tab-hd span {
    font-size: 24px;
    font-weight: bold;
    line-height: 54px;
    letter-spacing: normal;
    color: #FFFFFF;
}

.nds-tab-hd .nds-ai {
    display: inline-block;
    width: 97px;
    vertical-align: middle;
}

/* Ai导读标签头：直接放白色 logo 图，不需要文字 */
.nds-tab-ai {
    font-size: 0;
    padding-right: 40px;
}

/* 浅蓝面板 */
.nds-panel {
    background: #E9F1FC;
    padding: 29px 34px 26px;
}

/* 四个导读按钮 */
.nds-panel a {
    display: block;
    height: 42px;
    line-height: 42px;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    color: #1151AF;
    text-decoration: none;
}

.nds-panel a:last-child {
    margin-bottom: 0;
}

.nds-panel a:hover,
.nds-panel a.on {
    background: #1151AF;
    border-color: #1151AF;
    color: #fff;
    font-weight: bold;
}

/* ---------- AI导读弹窗 ---------- */
.nds-mask {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 999999;
}

.nds-mask.show {
    display: block;
}

.nds-modal {
    position: absolute;
    left: 50%;
    top: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 1319px;
    max-width: 94%;
    height: 903px;
    max-height: 90%;
    background: url(/system/resource/wedatas/images/zw-xybg.png) no-repeat center center / 100% 100%;
    padding: 0 18px;
    display: flex;
    flex-direction: column;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* 全屏（放大）状态 */
.nds-modal.full {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    -ms-transform: none;
    transform: none;
    padding: 0 28px;
}

/* 顶部标题图 */
.nds-hd {
    width: 136px;
    padding: 24px 0 19px 0;
    margin-left: 42px;
    flex-shrink: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.nds-hd img {
    display: block;
    width: 100%;
}

/* 右上角：放大 / 关闭 */
.nds-ctrl {
    position: absolute;
    right: 7%;
    top: 4%;
    display: flex;
    align-items: center;
}

.nds-ctrl span {
    display: block;
    width: 34px;
    height: 34px;
    margin-left: 14px;
    cursor: pointer;
    color: #fff;
    text-align: center;
    line-height: 32px;
    font-size: 30px;
    font-family: SimSun, serif;
}

.nds-ctrl span:hover {
    opacity: .8;
}

.nds-fs {
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'><path d='M1 6V1h5M12 1h5v5M17 12v5h-5M6 17H1v-5' fill='none' stroke='%23ffffff' stroke-width='2'/></svg>") no-repeat center center / 18px 18px;
}

.nds-modal.full .nds-fs {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'><path d='M6 1v5H1M12 1v5h5M17 12h-5v5M1 12h5v5' fill='none' stroke='%23ffffff' stroke-width='2'/></svg>");
}

/* 白色主体卡片 */
.nds-bd {
    flex: 1;
    min-width: 0;
    min-height: 0;
    background: #fff;
    border-radius: 10px;
    padding: 22px 28px 20px;
    display: flex;
    flex-direction: column;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* 文章标题 */
.nds-tt {
    position: relative;
    padding-left: 20px;
    font-size: 24px;
    font-weight: bold;
    line-height: 36px;
    color: #1151AF;
    margin-bottom: 26px;
    flex-shrink: 0;
    word-break: break-all;
}

.nds-tt:before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 3px;
    height: 25px;
    background: #1151AF;
}

/* 切换标签 */
.nds-tabs {
    margin-bottom: 25px;
    flex-shrink: 0;
}

.nds-tabs a {
    display: inline-block;
    height: 43px;
    line-height: 43px;
    padding: 0 30px;
    margin: 0 24px 8px 0;
    font-size: 20px;
    color: #1151AF;
    background: rgba(220, 234, 255, 0.5);
    border-radius: 999px;
    text-decoration: none;
}

.nds-tabs a:last-child {
    margin-right: 0;
}

.nds-tabs a.on {
    font-weight: bold;
    color: #fff;
    background: #1151AF;
}

/* 正文框 */
.nds-box {
    flex: 1;
    min-height: 0;
    border: 1px solid rgba(153, 153, 153, 0.6);
    padding: 16px 22px;
    overflow: hidden;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.nds-pane {
    display: none;
    height: 100%;
    overflow-y: auto;
}

.nds-pane.on {
    display: block;
}

.nds-pane p {
    margin: 0 0 6px;
    font-size: 16px;
    color: #333;
    line-height: 32px;
}

.nds-pane h3,
.nds-pane h4 {
    margin: 14px 0 6px;
    font-size: 18px;
    color: #1151AF;
    line-height: 30px;
}

.nds-pane strong {
    color: #1151AF;
}

.nds-pane ul,
.nds-pane ol {
    margin: 0 0 10px;
    padding-left: 24px;
}

.nds-pane li {
    font-size: 16px;
    color: #333;
    line-height: 30px;
}

/* 滚动条（与政务公开 AI导读一致：7px / 白芯 / #1151AF 轨道） */
.nds-pane::-webkit-scrollbar {
    width: 7px;
}

.nds-pane::-webkit-scrollbar-track {
    border-radius: 20px;
    background: rgba(17, 81, 175, 0.2);
}

.nds-pane::-webkit-scrollbar-thumb {
    background: #ffffff;
    border-radius: 20px;
    border: 2px solid rgba(17, 81, 175, 0.2);
}

/* ---------- 底部提示条（弹窗 flex 子项，位于白色卡片下方的浅蓝区域） ---------- */
.nds-ft {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 14px 22px 32px;
    flex-shrink: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.nds-tip {
    font-size: 18px;
    color: #1151AF;
}

.nds-mz {
    display: inline-block;
    height: 40px;
    line-height: 40px;
    padding: 0 26px;
    border-radius: 100px;
    border: 1px solid rgba(17, 81, 175, 0.5);
    font-size: 20px;
    color: #1151AF;
    text-decoration: none;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.nds-mz img {
    vertical-align: -2px;
    margin-right: 7px;
}

.nds-mz:hover {
    background: #fff;
}

/* ---------- 免责声明小弹窗 ---------- */
.nds-mz-pop {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 520px;
    max-width: 90%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    z-index: 2;
}

.nds-mz-pop.show {
    display: block;
}

.nds-mz-hd {
    background: #1151AF;
    color: #fff;
    font-size: 18px;
    line-height: 48px;
    padding: 0 22px;
}

.nds-mz-bd {
    padding: 22px;
    font-size: 15px;
    line-height: 30px;
    color: #333;
    text-align: justify;
}

.nds-mz-ft {
    padding: 0 22px 18px;
    text-align: center;
}

.nds-mz-ft a {
    display: inline-block;
    min-width: 128px;
    height: 38px;
    line-height: 38px;
    border-radius: 19px;
    background: #1151AF;
    color: #fff;
    font-size: 15px;
    text-decoration: none;
}

.nds-mz-ft a:hover {
    opacity: .9;
}

/* ---------- 脑图容器（嵌入政策脑图标签页） ---------- */
.nds-mindmap {
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* 脑图 SVG 必须撑满容器，否则保持默认 300×150，内容被裁掉看似空白 */
.nds-mindmap svg {
    display: block;
    width: 100%;
    height: 100%;
}

.nds-mindmap .nds-mm-tip {
    position: absolute;
    right: 10px;
    bottom: 8px;
    font-size: 12px;
    color: #9aa7b6;
    pointer-events: none;
}

/* ---------- 政策QA 问答对 ---------- */
.nds-qa-item {
    margin: 0 0 14px;
    background: #F4F8FE;
    border-left: 3px solid #1151AF;
    border-radius: 6px;
    overflow: hidden;
}

.nds-qa-q {
    margin: 0;
    padding: 10px 14px 8px;
    font-size: 16px;
    font-weight: bold;
    color: #1151AF;
    line-height: 28px;
}

.nds-qa-a {
    margin: 0;
    padding: 0 14px 12px;
    font-size: 16px;
    color: #333;
    line-height: 30px;
    background: #fff;
}

/* ---------- 加载/错误/空态 ---------- */
.nds-loading {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8a97a8;
    font-size: 15px;
}

.nds-loading i {
    display: block;
    width: 26px;
    height: 26px;
    margin-bottom: 12px;
    border: 3px solid rgba(17, 81, 175, 0.18);
    border-top-color: #1151AF;
    border-radius: 50%;
    -webkit-animation: ndsSpin 0.9s linear infinite;
    animation: ndsSpin 0.9s linear infinite;
}

@-webkit-keyframes ndsSpin {
    to { -webkit-transform: rotate(360deg); }
}

@keyframes ndsSpin {
    to { transform: rotate(360deg); }
}

/* ---------- 响应式 ---------- */
@media (max-width: 760px) {
    .nds-modal {
        width: 96%;
        max-width: 96%;
        height: 88%;
        max-height: 88%;
        padding: 0 8px;
    }

    .nds-hd {
        width: 96px;
        padding: 12px 0 10px;
        margin-left: 14px;
    }

    .nds-ctrl {
        right: 3%;
        top: 3%;
    }

    .nds-bd {
        padding: 12px 10px 10px;
    }

    .nds-tt {
        font-size: 17px;
        line-height: 26px;
        margin-bottom: 12px;
    }

    .nds-tt:before {
        height: 18px;
        top: 4px;
    }

    .nds-tabs a {
        height: 34px;
        line-height: 34px;
        padding: 0 16px;
        margin-right: 10px;
        font-size: 15px;
    }

    .nds-ft {
        padding: 10px 2px;
    }

    .nds-tip {
        font-size: 12px;
    }

    .nds-mz {
        height: 26px;
        line-height: 26px;
        padding: 0 12px;
        font-size: 12px;
    }

    .nds-mz img {
        width: 12px;
        margin-right: 5px;
    }

    .nds-panel a {
        font-size: 17px;
    }

    .nds-tab-hd span {
        font-size: 20px;
    }
}