/* 准萌工具 · 二级站通用双栏模板 2026-08-15 */
:root {
    --zm-primary: #5267f8;
    --zm-primary-dark: #3f52df;
    --zm-ink: #202431;
    --zm-text: #4f5668;
    --zm-muted: #858c9d;
    --zm-line: #e6e9f1;
    --zm-soft: #f5f6fb;
    --zm-card: #fff;
    --zm-radius: 20px;
    --zm-shadow: 0 16px 45px rgba(45, 54, 91, .07);
    --zm-font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    --zm-sidebar: 194px;
}

html { min-width: 0; background: var(--zm-soft); }

body.zm-subdomain {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--zm-text);
    background: var(--zm-soft) !important;
    font: 16px/1.65 var(--zm-font) !important;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.zm-unified *, body.zm-unified *::before, body.zm-unified *::after { box-sizing: border-box; }
body.zm-unified button, body.zm-unified input, body.zm-unified select, body.zm-unified textarea { font-family: inherit; }
body.zm-unified a { color: inherit; text-decoration: none; }
body.zm-unified footer:not(.zm-unified-footer) { display: none !important; }
.zm-legacy-title { display: none !important; }

.zm-subsite-shell { min-height: 100vh; }
.zm-subsite-layout { min-height: 100vh; }
.zm-subsite-main { min-width: 0; min-height: 100vh; margin-left: var(--zm-sidebar); background: var(--zm-card); }

/* 左侧通用模块 */
.zm-common-module {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: var(--zm-sidebar);
    min-width: 0;
    padding: 27px 16px 24px;
    overflow-y: auto;
    border: 0;
    border-right: 1px solid #eceef5;
    border-radius: 0;
    background: rgba(255, 255, 255, .98);
    box-shadow: none;
}
.zm-common-brand { display: flex; align-items: center; gap: 12px; padding: 0 4px 20px; border-bottom: 1px solid #eef0f5; }
.zm-common-brand img { width: 42px; height: 48px; object-fit: contain; flex: 0 0 auto; }
.zm-common-brand span { min-width: 0; display: grid; gap: 2px; }
.zm-common-brand strong { color: var(--zm-ink); font-size: 20px; line-height: 1.3; font-weight: 750; letter-spacing: -.02em; }
.zm-common-brand small { color: var(--zm-muted); font-size: 11px; line-height: 1.45; white-space: nowrap; }
.zm-common-section { margin-top: 22px; }
.zm-common-section h2 { margin: 0 8px 9px; color: #9a9fac; font-size: 12px; line-height: 1.4; font-weight: 700; letter-spacing: .08em; }
.zm-current-tool a, .zm-common-nav a {
    min-height: 44px;
    margin: 3px 0;
    padding: 9px 11px;
    display: flex;
    align-items: center;
    gap: 11px;
    border-radius: 11px;
    color: #555c6d;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 550;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}
.zm-current-tool a i, .zm-common-nav a i { width: 19px; flex: 0 0 19px; color: #7b8393; font-size: 15px; text-align: center; }
.zm-current-tool-icon { width: 24px; height: 24px; flex: 0 0 24px; object-fit: contain; }
.zm-current-tool a:hover, .zm-common-nav a:hover { color: var(--zm-primary); background: #f3f4ff; transform: translateX(2px); }
.zm-current-tool a.is-active { color: #4255e6; background: linear-gradient(110deg, #eef0ff, #f5f2ff); font-weight: 700; }
.zm-current-tool a.is-active i { color: var(--zm-primary); }
.zm-service-points { padding-top: 17px; border-top: 1px solid #eef0f5; }
.zm-service-points p { margin: 11px 7px; display: flex; align-items: center; gap: 10px; }
.zm-service-points > p > i { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 29px; border-radius: 9px; color: #5367ef; background: #eff1ff; font-size: 13px; }
.zm-service-points p:nth-of-type(2) > i { color: #f29b38; background: #fff3e5; }
.zm-service-points p:nth-of-type(3) > i { color: #22a886; background: #e9faf5; }
.zm-service-points span { display: grid; }
.zm-service-points strong { color: #454b5b; font-size: 13px; line-height: 1.35; }
.zm-service-points small { color: #969cab; font-size: 11px; line-height: 1.4; }
.zm-back-home { height: 44px; margin-top: 19px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; color: #fff !important; background: linear-gradient(120deg, #5267f8, #6c59ed); box-shadow: 0 9px 20px rgba(82, 103, 248, .22); font-size: 13px; font-weight: 700; transition: transform .18s ease, box-shadow .18s ease; }
.zm-back-home:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(82, 103, 248, .28); }

/* 右侧工具模块 */
.zm-tool-module { width: 100%; min-width: 0; margin: 0; padding: 27px clamp(24px, 3vw, 38px) 32px; overflow: hidden; border: 0; border-radius: 0; background: var(--zm-card); box-shadow: none; }
.zm-breadcrumb { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: #8b91a0; font-size: 13px; line-height: 1.5; }
.zm-breadcrumb a { transition: color .18s ease; }
.zm-breadcrumb a:hover { color: var(--zm-primary); }
.zm-breadcrumb i { color: #c0c4ce; font-size: 11px; }
.zm-breadcrumb span { max-width: min(420px, 65vw); overflow: hidden; color: #656c7d; white-space: nowrap; text-overflow: ellipsis; }
.zm-tool-header { margin-top: 25px; display: flex; align-items: center; gap: 16px; }
.zm-tool-header-icon { width: 58px; height: 58px; display: grid; place-items: center; flex: 0 0 58px; }
.zm-tool-header-icon img { width: 58px; height: 58px; object-fit: contain; }
.zm-tool-header > div { min-width: 0; }
.zm-tool-header h1 { margin: 0 !important; color: var(--zm-ink) !important; font-size: clamp(28px, 3vw, 36px) !important; line-height: 1.24 !important; font-weight: 760 !important; letter-spacing: -.035em; text-align: left !important; }
.zm-tool-header p { max-width: 820px; margin: 7px 0 0 !important; color: #747b8c !important; font-size: 15px !important; line-height: 1.7 !important; }
.zm-tool-body { min-width: 0; min-height: 280px; margin-top: 27px; padding-top: 28px; overflow-x: auto; border-top: 1px solid #edf0f5; color: var(--zm-text); font-size: 15px; line-height: 1.7; }
.zm-tool-body > * { max-width: 100%; }
.zm-tool-body img, .zm-tool-body video, .zm-tool-body canvas { max-width: 100%; height: auto; }
.zm-tool-body .container, .zm-tool-body .container-fluid { width: 100% !important; max-width: 100% !important; margin-right: auto !important; margin-left: auto !important; padding-right: 0 !important; padding-left: 0 !important; }
.zm-tool-body .md\:ml-\[240px\] { margin-left: 0 !important; }
.zm-tool-body > header:first-child, .zm-tool-body > nav:first-child { display: none !important; }
.zm-tool-body input, .zm-tool-body select, .zm-tool-body textarea {
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #d8dce6 !important;
    border-radius: 10px !important;
    color: #343948;
    background: #fff;
    box-shadow: none !important;
    font-size: 15px !important;
    line-height: 1.45;
}
.zm-tool-body textarea { min-height: 110px; }
.zm-tool-body input:focus, .zm-tool-body select:focus, .zm-tool-body textarea:focus { outline: 0 !important; border-color: var(--zm-primary) !important; box-shadow: 0 0 0 3px rgba(82, 103, 248, .12) !important; }
.zm-tool-body button, .zm-tool-body .btn { min-height: 42px; border-radius: 10px !important; font-size: 14px !important; }
.zm-tool-body .btn-primary, .zm-tool-body button[type="submit"] { border-color: var(--zm-primary) !important; background: var(--zm-primary) !important; }
.zm-tool-body table { max-width: 100%; border-color: var(--zm-line) !important; background: #fff; font-size: 14px; }
.zm-tool-body #result { margin-top: 22px; padding: 20px; border: 1px solid var(--zm-line); border-radius: 13px; background: #fafbfe; }

.zm-use-guide { margin-top: 30px; padding: 17px 19px; display: flex; align-items: flex-start; gap: 13px; border: 1px solid #dde4fd; border-radius: 13px; color: #5d6680; background: linear-gradient(120deg, #f3f6ff, #faf9ff); }
.zm-use-guide > i { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 30px; border-radius: 9px; color: #5367ef; background: #e7ebff; font-size: 16px; }
.zm-use-guide strong { color: #343b50; font-size: 14px; }
.zm-use-guide p { margin: 3px 0 0; font-size: 13px; line-height: 1.7; }

.zm-unified-footer { width: 100%; min-height: 86px; margin: 0; padding: 23px clamp(24px, 3vw, 38px); display: flex !important; align-items: center; justify-content: space-between; gap: 22px; border-top: 1px solid #eef0f5; color: #8c92a0; background: var(--zm-card); font-size: 13px; }
.zm-unified-footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; }
.zm-unified-footer a:hover { color: var(--zm-primary); }

@media (min-width: 1360px) {
    :root { --zm-sidebar: 232px; }
    .zm-common-module { padding-right: 24px; padding-left: 24px; }
}

@media (max-width: 900px) {
    :root { --zm-sidebar: 174px; }
    .zm-common-module { padding-right: 12px; padding-left: 12px; }
    .zm-common-brand small { display: none; }
    .zm-service-points small { display: none; }
}

@media (max-width: 700px) {
    .zm-common-module { position: static; width: auto; margin: 14px; padding: 17px 16px; overflow: visible; border: 1px solid var(--zm-line); border-radius: 17px; box-shadow: var(--zm-shadow); }
    .zm-subsite-main { margin-left: 0; }
    .zm-common-brand { padding: 0 2px 15px; }
    .zm-common-brand strong { font-size: 18px; }
    .zm-common-brand small { display: block; }
    .zm-common-section { margin-top: 15px; }
    .zm-common-nav { display: none; }
    .zm-current-tool h2 { display: none; }
    .zm-current-tool a { min-height: 40px; margin-top: 0; }
    .zm-service-points { display: none; }
    .zm-back-home { height: 40px; margin-top: 12px; }
    .zm-tool-module { width: 100%; padding: 20px 17px 23px; border-radius: 0; }
    .zm-tool-header { margin-top: 19px; gap: 12px; align-items: flex-start; }
    .zm-tool-header-icon { width: 48px; height: 48px; flex-basis: 48px; border-radius: 14px; font-size: 19px; }
    .zm-tool-header h1 { font-size: 26px !important; }
    .zm-tool-header p { margin-top: 5px !important; font-size: 14px !important; }
    .zm-tool-body { margin-top: 21px; padding-top: 22px; font-size: 15px; }
    .zm-use-guide { margin-top: 23px; padding: 15px; }
    .zm-unified-footer { width: 100%; padding: 20px 3px 24px; align-items: flex-start; flex-direction: column; gap: 9px; font-size: 12px; }
    .zm-unified-footer nav { gap: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
