/* ============ 鍩虹 ============ */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    color: #333;
    background: #f2f6fb;
}

a {
    text-decoration: none;
    color: #000;
    font-size: 14px;
}

/* ============ 椤甸潰妗嗘灦 ============ */
.main {
    min-width: 1000px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.main .container {
    width: 100%;
}

/* 椤靛ご鏍囬鏍?*/
.main .container .header {
    font-size: 26px;
    font-weight: bold;
    letter-spacing: 2px;
    padding: 14px 10px;
    background: linear-gradient(rgb(0, 88, 169), rgb(0, 128, 204));
    color: #fff;
    text-align: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* 姝ｆ枃澶栨 */
.main .container .body {
    border: 2px solid #75abdd;
    border-top: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background: #fff;
}

.content {
    padding: 24px 28px 36px;
}

/* ============ 杩斿洖棣栭〉锛堟甯告枃妗ｆ祦锛岄鐣欎綅缃笉閬尅锛?============ */
.back {
    padding: 14px 4px;
}

.back a {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid #75abdd;
    border-radius: 20px;
    padding: 6px 14px 6px 8px;
    box-shadow: 0 2px 6px rgba(0, 88, 169, 0.15);
}

.back img {
    width: 22px;
    margin-right: 6px;
}

.back p {
    font-size: 14px;
    font-weight: bold;
    color: #0060b0;
    white-space: nowrap;
}

/* ============ 绔犺妭妯箙锛堝師琛ㄦ牸棣栬钃濆簳鏍囬锛?============ */
.section-banner {
    background: rgb(37, 110, 219);
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    letter-spacing: 1px;
    padding: 10px 0;
    border-radius: 10px;
    margin: 0 auto 24px;
    width: 60%;
    min-width: 420px;
}

/* ============ 椤靛唴瀵艰埅 ============ */
html {
    scroll-behavior: smooth;
}

.toc {
    counter-reset: toc-no;
    position: fixed;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    background: linear-gradient(135deg, #e8f2fc, #f5faff);
    border: 1px solid #cfe2f5;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 88, 169, 0.08);
    z-index: 900;
    max-height: 82vh;
    overflow-y: auto;
}

/* 灞忓箷涓嶅瀹斤紙宸︿晶鏀句笉涓嬫偓娴鑸級鏃讹紝閫€鍥為《閮ㄦí鎺?*/
@media (max-width: 1800px) {
    .toc {
        position: static;
        transform: none;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        margin: 0 4px 16px;
        max-height: none;
        overflow: visible;
    }
}

.toc a {
    counter-increment: toc-no;
    position: relative;
    background: #fff;
    border: 1px solid #bcd7ef;
    color: #0060b0;
    border-radius: 18px;
    padding: 6px 16px 6px 32px;
    font-size: 13px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 88, 169, 0.1);
}

.toc a::before {
    content: counter(toc-no);
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    background: linear-gradient(135deg, #0058a9, #256edb);
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
}

.toc a:hover {
    background: linear-gradient(135deg, #0058a9, #256edb);
    border-color: #256edb;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 110, 219, 0.35);
}

.toc a:hover::before {
    background: #fff;
    color: #256edb;
}

/* ============ 鍥炲埌椤堕儴鎸夐挳 ============ */
.back-top {
    position: fixed;
    right: 28px;
    bottom: 44px;
    z-index: 998;
    width: 46px;
    height: 46px;
    line-height: 46px;
    text-align: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #0058a9, #256edb);
    color: #fff !important;
    font-size: 16px;
    box-shadow: 0 4px 14px rgba(0, 88, 169, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all 0.3s ease;
}

.back-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 88, 169, 0.5);
}

/* ============ 妯″潡鍗＄墖 ============ */
.module {
    scroll-margin-top: 16px;
    border: 2px dashed #4a90e2;
    border-radius: 12px;
    padding: 18px 20px 22px;
    margin-bottom: 26px;
    background: #fbfdff;
}

.module:last-child {
    margin-bottom: 0;
}

.module-title {
    font-size: 20px;
    font-weight: bold;
    color: #0058a9;
    padding-left: 12px;
    border-left: 5px solid #256edb;
    line-height: 1.4;
    margin-bottom: 10px;
}

.definition {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    background: #eef5fd;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
}

.definition strong {
    color: #0058a9;
}

/* 瀹氫箟鍧椾笂鏂圭殑绮椾綋寮曞琛?*/
.def-lead {
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 8px;
}

/* 瀹氫箟妗嗗悗銆佸浘鏂囨爡鏍煎墠鐨勭嫭绔嬭鏄庤 */
.pre-ops {
    font-size: 14px;
    line-height: 2;
    margin-bottom: 2px;
}

/* 鍥炬枃涓ゆ爮锛氬乏鏂囧瓧 鍙抽厤鍥撅紙鍥炬爮鏇村锛屽浘鏇村ぇ锛?*/
.module-grid {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 18px;
}

/* 绔栨帓淇グ绫伙細鏂囧瓧鍦ㄤ笂銆佸浘鐗囧湪涓嬪悇鍗犻€氭爮锛堥€傚悎鏂囧瓧鐭€佹埅鍥鹃珮鐨勯〉闈級 */
.module-grid.stack {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.module-grid.stack .module-text,
.module-grid.stack .module-figs {
    flex: 1 1 auto;
    width: 100%;
}

.module-text {
    flex: 1 1 40%;
    min-width: 0;
}

.module-text:only-child {
    flex: 1 1 100%;
}

.module-figs {
    flex: 1 1 60%;
    min-width: 0;
    display: flex;
    flex-direction: column; /* 鍙虫爮鍥剧墖鍗′笂涓嬫帓鍒楋紝涓嶅啀骞舵帓 */
}

/* 姝ｆ枃娈佃惤锛堢珯鐐?head.css 鍏ㄥ眬鍔寔 font/span锛屾鏂囩鐢ㄨ繖涓や釜鏍囩锛?*/
.module-text p {
    font-size: 14px;
    line-height: 2;
    margin-bottom: 4px;
}

.module-text p em {
    font-style: normal;
    font-weight: bold;
    color: #0058a9;
}

/* 娉ㄦ剰浜嬮」锛堢孩鑹叉彁绀猴紝鐢?b.tip 鎵胯浇锛屼笉鐢?span锛?*/
.tip {
    color: red;
    font-weight: normal;
    font-size: 13px;
}

/* 绾㈣壊鍔犵矖鎻愮ず娈佃惤锛堟浛浠ｅ師椤甸潰鍐呰仈 color:red;font-weight:bold锛?*/
.red-strong {
    color: red;
    font-weight: bold;
}

/* 鏅€氱孩鑹叉彁绀烘钀?*/
.red-text {
    color: red;
}

/* 灞呬腑娈佃惤 */
.center {
    text-align: center;
}

/* 鍏抽敭鐐规帶鍒讹細鏍囩鍦ㄥ乏锛岃鐐瑰湪鍙充晶绔栨帓鎴愬垪锛堝瓧鍙疯楂樺叏閮ㄧ户鎵?.module p锛屼笉鍙﹁锛?*/
.key-points {
    display: flex;
    gap: 4rem;
    margin: 0 0 10px;
}

.key-points p {
    color: red;
    font-weight: bold;
}

/* 缂栧彿鍒楄〃缁撴瀯锛坰end_inspection 椤典娇鐢級 */
.sub-title {
    font-size: 16px;
    font-weight: bold;
    color: #256edb;
    margin-bottom: 8px;
}

.step-list {
    padding-left: 22px;
}

.step-list li {
    font-size: 14px;
    line-height: 2;
    margin-bottom: 4px;
}

.step-list li em {
    font-style: normal;
    font-weight: bold;
    color: #0058a9;
}

.step-list li p {
    color: red;
    font-size: 13px;
    line-height: 1.6;
    margin-top: 2px;
}

/* ============ 閰嶅浘 ============ */
.figure {
    border: 1px solid #d5e5f5;
    border-radius: 10px;
    background: #f7f9fc;
    padding: 10px;
    margin-bottom: 12px;
}

.figure a {
    display: block;
}

.figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    background: #fff;
    min-height: 120px; /* 鏈斁鍥炬椂鍗犱綅鍙 */
    border: 1px dashed #b8cfe5;
    transition: transform 0.15s ease;
}

.figure figcaption {
    font-size: 13px;
    color: #777;
    text-align: center;
    margin-top: 8px;
}

/* 鍥剧墖瀵瑰簲鐨勬搷浣滆鏄庯細鏀跺湪鍥剧墖鍗＄墖鍐呴儴锛屽浘娉ㄤ笅鏂癸紱鏉＄洰澶氭椂鑷姩鍒嗘爮闃茬┖鐧?*/
.fig-note {
    border-top: 1px dashed #b8cfe5;
    margin-top: 10px;
    padding: 10px 12px 4px;
    background: #fff;
    border-radius: 6px;
    text-align: left;
    column-width: 300px;
    column-gap: 2.5rem;
}

.fig-note p {
    font-size: 13px;
    line-height: 1.9;
    color: #444;
    margin-bottom: 2px;
    break-inside: avoid;
}

/* 鍙湁鍥剧墖鍗★紙鏃犲乏鏍忔枃瀛楋級鏃讹紝鍗＄墖灞呬腑涓旈檺瀹斤紝閬垮厤鏁磋鎷変几 */
.module-grid > .module-figs:only-child {
    flex: 1 1 100%;
    display: flex;
    justify-content: center;
    align-items: center; /* column鏂瑰悜涓嬫按骞冲眳涓浘鐗囧崱 */
}

.module-grid > .module-figs:only-child .figure {
    width: 78%;
    max-width: 980px;
}

.figure a:hover img {
    border-color: #256edb;
    box-shadow: 0 2px 10px rgba(37, 110, 219, 0.25);
}

/* 绯荤粺鐣岄潰璇存槑锛氱紪鍙峰鐓ц〃 */
.inner-caption {
    font-weight: bold;
    margin: 8px 0 4px;
}

.inner-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
}

.inner-table td {
    border: 1px solid #b8cfe5;
    padding: 6px 10px;
    font-size: 13px;
    color: #444;
    text-align: left;
    line-height: 1.6;
}

.inner-table td.th {
    background: rgb(173, 185, 202);
    color: #333;
    font-weight: bold;
    text-align: center;
}

.inner-table td img {
    max-width: 100%;
    cursor: zoom-in;
}

/* ============ 鍝嶅簲寮忥細绐勫睆鍥炬枃涓婁笅鎺掑垪 ============ */
@media (max-width: 1100px) {
    .module-grid {
        flex-direction: column;
    }

    .module-text,
    .module-figs {
        flex: 1 1 auto;
        width: 100%;
    }

    .section-banner {
        width: 80%;
        min-width: 0;
    }
}

/* ============ 鍥剧墖鏀惧ぇ寮圭獥 ============ */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: 2% auto;
    display: block;
    width: 92%;
    max-width: none;
    cursor: zoom-in;
}

/* 寮圭獥鍐呮斁澶ф搷浣滄彁绀?*/
.modal-hint {
    position: fixed;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #9db3c8;
    font-size: 14px;
    white-space: nowrap;
    pointer-events: none;
}

/* 寮圭獥搴曢儴缂╂斁鎺т欢鏉?*/
.modal-zoombar {
    position: fixed;
    bottom: 3.2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(20, 30, 45, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 22px;
    padding: 6px 12px;
}

.modal-zoombar .mz-btn,
.modal-zoombar .mz-pct {
    border: none;
    cursor: pointer;
    background: #256edb;
    color: #fff;
    min-width: 30px;
    height: 30px;
    line-height: 30px;
    padding: 0 10px;
    border-radius: 15px;
    font-size: 15px;
    font-weight: bold;
    transition: background 0.15s ease;
}

.modal-zoombar .mz-pct {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    min-width: 56px;
    font-size: 13px;
}

.modal-zoombar .mz-reset {
    background: #5a6b80;
    font-size: 13px;
    font-weight: normal;
}

.modal-zoombar .mz-btn:hover,
.modal-zoombar .mz-pct:hover {
    background: #3f86ec;
}

.modal-zoombar .mz-reset:hover {
    background: #6d8098;
}

.close {
    position: absolute;
    top: 2rem;
    left: auto; /* 鎶垫秷绔欑偣鍏ㄥ眬 span{left:45%}锛屽惁鍒欏叧闂寜閽細琚嫋鍒板睆骞曚腑闂?*/
    right: 6%;
    color: #f1f1f1;
    font-size: 5rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}
