.tools-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.tools-page {
    width: 100%;
    max-width:var(--max-width);
    box-sizing: border-box;
    padding:0 30px;
    margin: 0 auto;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tools-body--debug-locked {
    overflow: hidden;
}

.tools-body--debug-locked .tools-page {
    pointer-events: none;
    user-select: none;
}

.tools-devtools-mask {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    background: rgba(5, 10, 20, 0.78);
    backdrop-filter: blur(8px);
}

.tools-body--debug-locked .tools-devtools-mask {
    display: flex;
}

.tools-devtools-mask__dialog {
    width: min(460px, 100%);
    padding: 28px 30px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(10, 18, 36, 0.96), rgba(8, 15, 30, 0.96));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    text-align: center;
}

.tools-devtools-mask__title {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    color: #ffffff;
}

.tools-devtools-mask__desc {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.84);
}

.tools-page__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.tools-toolbar__title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
}

.tools-page__body {
    display: flex;
    gap: 16px;
    align-items: stretch;
    flex: 1;
    min-height: 0;
    margin-top: 16px;
}

.tools-page__sidebar {
    width: 70px;
}

.tools-side__title {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    opacity: 0.8;
    text-align: center;
}

.tools-side__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 12px 8px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.2;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: inherit;
    text-decoration: none;
    margin-bottom: 10px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.tools-side__item:hover {
    border-color: rgba(217, 43, 43, 0.28);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.tools-side__icon {
    width: 42px;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.88);
    font-size: 24px;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tools-side__name {
    margin-top: 10px;
    display: block;
    text-align: center;
    color: rgba(255, 255, 255, 0.86);
}

.tools-side__item.is-active {
    background: linear-gradient(180deg, rgba(58, 33, 33, 0.92), rgba(34, 22, 26, 0.92));
    border-color: rgba(217, 43, 43, 0.58);
}

.tools-side__item.is-active .tools-side__icon {
    color: #ffffff;
}

.tools-side__item.is-active .tools-side__name {
    color: #ffffff;
}

.tools-page__workspace {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
    height: calc(100vh - 92px);
}

.tools-page__panel {
    width: 320px;
    min-width: 320px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: calc(100vh - 92px);
    max-height: calc(100vh - 92px);
    overflow: hidden;
}

.tools-page__upload,
.tools-page__preview {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 12px;
    box-sizing: border-box;
}

.tools-page__preview {
    flex: 1;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)), rgba(0, 0, 0, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.tools-workspace-lock-target {
    position: relative;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.tools-workspace-lock-target.is-workspace-locked {
    pointer-events: none;
    user-select: none;
    opacity: 0.72;
}

.tools-workspace-lock-target.is-workspace-locked::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(7, 11, 20, 0.24);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.tools-seo {
    margin-top: 20px;
    margin-bottom: 30px;
}

.tools-seo__inner {
    padding: 20px 22px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-sizing: border-box;
}

.tools-seo__title {
    margin: 0;
    font-size: 26px;
    line-height: 1.35;
    font-weight: 700;
    color: #fff;
}

.tools-seo__intro {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.82);
}

.tools-seo__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.tools-seo__card,
.tools-seo__faq-item {
    padding: 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tools-seo__card-title,
.tools-seo__faq-title,
.tools-seo__faq-question {
    margin: 0;
    color: #fff;
}

.tools-seo__card-title,
.tools-seo__faq-question {
    font-size: 16px;
    line-height: 1.6;
    font-weight: 600;
}

.tools-seo__card-text,
.tools-seo__faq-answer {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.78);
}

.tools-seo__faq {
    margin-top: 18px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.tools-seo__faq-title {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.tools-seo__faq-item + .tools-seo__faq-item {
    margin-top: 12px;
}
.tools-seo__faq-item-container {
    padding: 12px 0;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.05);
}
.tools-seo__faq-item-container:last-child {
    border-bottom: none;
}
.tools-seo__related {
    margin-top: 18px;
}

.tools-seo__related-title {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;
    color: #fff;
}

.tools-seo__related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tools-seo__related-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.2s ease;
}

.tools-seo__related-link:hover {
    color: #fff;
    border-color: rgba(217, 43, 43, 0.42);
    background: rgba(217, 43, 43, 0.14);
}

@media (max-width: 991px) {
    .tools-seo__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tools-seo {
        margin-top: 0.32rem;
        margin-bottom: 0.42rem;
    }

    .tools-seo__inner {
        padding: 0.32rem 0.28rem;
        border-radius: 0.2rem;
    }

    .tools-seo__title {
        font-size: 0.38rem;
    }

    .tools-seo__intro,
    .tools-seo__card-text,
    .tools-seo__faq-answer {
        font-size: 0.26rem;
        line-height: 1.8;
    }

    .tools-seo__card,
    .tools-seo__faq-item {
        padding: 0.26rem;
        border-radius: 0.18rem;
    }

    .tools-seo__card-title,
    .tools-seo__faq-question {
        font-size: 0.3rem;
    }

    .tools-seo__faq-title {
        font-size: 0.34rem;
    }

    .tools-seo__related-title {
        font-size: 0.34rem;
    }

    .tools-seo__related-links {
        gap: 0.16rem;
    }

    .tools-seo__related-link {
        min-height: 0.72rem;
        padding: 0 0.24rem;
        font-size: 0.26rem;
    }
}

.tools-tab {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: inherit;
    text-decoration: none;
    margin-left: 8px;
}

.tools-tab.is-active {
    background: rgba(255, 212, 38, 0.15);
    border-color: rgba(255, 212, 38, 0.35);
}

.tools-upload__row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tools-upload__btn {
    position: relative;
    overflow: hidden;
}

#toolFileInput,
#calendarFileInput,
#signatureFileInput,
#signatureStickerInput {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    border: 0;
}

.tools-upload__filename {
    font-size: 13px;
    opacity: 0.75;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 360px;
}

.tools-preview__wrap {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 0;
    background-color: rgba(255, 255,255, 0.02);
    background-image: linear-gradient(45deg, var(--mskcolor) 25%, transparent 0, transparent 75%, var(--mskcolor) 0), linear-gradient(45deg, var(--mskcolor) 25%, transparent 0, transparent 75%, var(--mskcolor) 0);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

.tools-preview__top {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 5;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    justify-content: space-between;
}

.tools-preview__upload-row {
    flex: 0 0 auto;
}

.tools-preview__upload-desc,
.tools-preview__source {
    font-size: 12px;
    opacity: 0.75;
}

.tools-preview__upload-desc {
    flex: 1;
    text-align: right;
}

.tools-preview__upload-policy,
.tools-convert__policy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 14, 22, 0.72);
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.tools-preview__upload-policy {
    flex: 0 0 auto;
    max-width: 100%;
}

.tools-convert__policy {
    margin-bottom: 12px;
}

.tools-preview__upload-policy.is-loading,
.tools-convert__policy.is-loading {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(17, 22, 31, 0.72);
    color: rgba(255, 255, 255, 0.72);
}

.tools-preview__upload-policy.is-free,
.tools-convert__policy.is-free {
    border-color: rgba(86, 217, 139, 0.3);
    background: rgba(17, 49, 35, 0.78);
    color: #7ff0ab;
}

.tools-preview__upload-policy.is-paid,
.tools-convert__policy.is-paid {
    border-color: rgba(217, 43, 43, 0.42);
    background: rgba(60, 18, 22, 0.82);
    color: #ff8c8e;
}

.tools-preview__upload-policy.is-deny,
.tools-convert__policy.is-deny {
    border-color: rgba(255, 107, 107, 0.45);
    background: rgba(72, 22, 26, 0.86);
    color: #ffb2b3;
}

.tools-preview__top .tools-upload__filename {
    max-width: 200px;
}

.tools-preview__image {
    max-width: 100%;
    max-height: none;
    display: block;
}

@font-face {
    font-family: "ToolsCalendarRound";
    src: url("/assets/fonts/tools/chinese/round.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "ToolsCalendarSourceSerifLight";
    src: url("/assets/fonts/tools/chinese/source-serif-light.otf") format("opentype");
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: "ToolsCalendarSourceSerifMedium";
    src: url("/assets/fonts/tools/chinese/source-serif-medium.otf") format("opentype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "ToolsCalendarSourceSerifBold";
    src: url("/assets/fonts/tools/chinese/source-serif-bold.otf") format("opentype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "ToolsCalendarSourceSansLight";
    src: url("/assets/fonts/tools/chinese/source-sans-light.otf") format("opentype");
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: "ToolsCalendarSourceSansMedium";
    src: url("/assets/fonts/tools/chinese/source-sans-medium.otf") format("opentype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "ToolsCalendarSourceSansHeavy";
    src: url("/assets/fonts/tools/chinese/source-sans-heavy.otf") format("opentype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "ToolsCalendarFZKaiTi";
    src: url("/assets/fonts/tools/chinese/fz-kaiti.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "ToolsProjectSourceHanSansKRegular";
    src: url("/assets/fonts/SourceHanSansK-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "ToolsProjectVerdana";
    src: url("/assets/fonts/verdana.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "ToolsProjectTimesNewRoman";
    src: url("/assets/fonts/Times%20New%20Roman.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "ToolsProjectLatoLight";
    src: url("/assets/fonts/lato/lato-light.ttf") format("truetype");
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: "ToolsProjectLatoRegular";
    src: url("/assets/fonts/lato/lato-regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "ToolsProjectLatoBold";
    src: url("/assets/fonts/lato/lato-bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "ToolsProjectZcoolKuaiLe";
    src: url("/assets/fonts/tools/chinese/zcool-kuaile.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "ToolsProjectZhiMangXing";
    src: url("/assets/fonts/tools/chinese/zhimangxing-regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "ToolsProjectLiuJianMaoCao";
    src: url("/assets/fonts/tools/chinese/liujianmaocao-regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "ToolsProjectMaShanZheng";
    src: url("/assets/fonts/tools/chinese/mashanzheng-regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "ToolsProjectAlexBrush";
    src: url("/assets/fonts/tools/latin/alex-brush-regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "ToolsProjectDancingScriptRegular";
    src: url("/assets/fonts/tools/latin/dancing-script-regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "ToolsProjectDancingScriptMedium";
    src: url("/assets/fonts/tools/latin/dancing-script-medium.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "ToolsProjectDancingScriptBold";
    src: url("/assets/fonts/tools/latin/dancing-script-bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "ToolsProjectGreatVibes";
    src: url("/assets/fonts/tools/latin/great-vibes-regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "ToolsProjectPacifico";
    src: url("/assets/fonts/tools/latin/pacifico-regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "ToolsProjectSacramento";
    src: url("/assets/fonts/tools/latin/sacramento-regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "ToolsCalendarNumAlcubierre";
    src: url("/assets/fonts/tools/numeric/alcubierre.otf") format("opentype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "ToolsCalendarNumDinPro";
    src: url("/assets/fonts/tools/numeric/din-pro.otf") format("opentype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "ToolsCalendarNumFreeSerif";
    src: url("/assets/fonts/tools/numeric/free-serif.otf") format("opentype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "ToolsCalendarNumFreeSerifBold";
    src: url("/assets/fonts/tools/numeric/free-serif-bold.otf") format("opentype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "ToolsCalendarNumProductSans";
    src: url("/assets/fonts/tools/numeric/product-sans.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "ToolsCalendarNumProductSansBold";
    src: url("/assets/fonts/tools/numeric/product-sans-bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "ToolsCalendarNumKingsgmb";
    src: url("/assets/fonts/tools/numeric/kingsgmb.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

.tools-calendar__wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-height: 0;
}

.tools-calendar__stage {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.16);
    overflow: hidden;
}
:root {
    --mskcolor:rgba(255, 255,255, 0.04);
}
.tools-calendar__image {
    position: absolute;
    display: block;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.tools-calendar__overlay {
    position: absolute;
    z-index: 2;
    cursor: move;
    user-select: none;
    touch-action: none;
    outline: none;
    border-radius: 14px;
}

.tools-calendar__overlay:focus {
    box-shadow: 0 0 0 2px rgba(86, 199, 255, 0.95), 0 0 0 5px rgba(86, 199, 255, 0.18);
}

.tools-calendar__overlay-canvas {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.tools-calendar__card {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.22em;
    text-shadow: 0 var(--tools-calendar-shadow-offset-y, 0px) var(--tools-calendar-shadow-blur, 0px) var(--tools-calendar-shadow, rgba(0, 0, 0, 0));
    --tools-calendar-accent: #ffd426;
    --tools-calendar-text-font: "ToolsCalendarSourceSansMedium", "Microsoft YaHei", sans-serif;
    --tools-calendar-number-font: "ToolsCalendarNumDinPro", Arial, sans-serif;
}

.tools-calendar__card.is-with-background {
    padding: 0.18em;
    border-radius: 0.18em;
    background: rgba(18, 24, 37, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.tools-calendar__brand {
    font-family: Arial, sans-serif;
    font-size: 0.3em;
    line-height: 1;
    letter-spacing: 0.02em;
    opacity: 0.72;
}

.tools-calendar__card--single {
    gap: 0.08em;
}

.tools-calendar__single-head {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1em;
}

.tools-calendar__single-title {
    display: flex;
    align-items: flex-start;
    gap: 0.26em;
}

.tools-calendar__single-year {
    font-family: var(--tools-calendar-number-font);
    font-size: 1.82em;
    line-height: 0.82;
    color: var(--tools-calendar-accent);
    font-weight: 700;
}

.tools-calendar__single-month {
    font-family: var(--tools-calendar-text-font);
    font-size: 0.84em;
    line-height: 1;
    padding-top: 0.22em;
    font-weight: 600;
}

.tools-calendar__single-days {
    display: flex;
    align-items: flex-start;
    gap: 0.14em;
}

.tools-calendar__single-daycell {
    width: 0.92em;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: inherit;
}

.tools-calendar__single-daycell.is-accent {
    color: var(--tools-calendar-accent);
}

.tools-calendar__single-daycell.is-active .tools-calendar__single-daynum {
    transform: translateY(-0.02em);
}

.tools-calendar__single-weekday-tag {
    font-family: var(--tools-calendar-text-font);
    font-size: 0.24em;
    line-height: 1;
    opacity: 0.92;
}

.tools-calendar__single-daynum {
    font-family: var(--tools-calendar-number-font);
    font-size: 0.5em;
    line-height: 1;
    margin-top: 0.28em;
}

.tools-calendar__single-daysub {
    font-family: var(--tools-calendar-text-font);
    font-size: 0.18em;
    line-height: 1.1;
    margin-top: 0.08em;
    opacity: 0.74;
    white-space: nowrap;
}

.tools-calendar__card--grid {
    min-width: 7.2em;
    gap: 0.22em;
}

.tools-calendar__grid-head {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8em;
}

.tools-calendar__grid-title {
    display: flex;
    align-items: flex-start;
    gap: 0.22em;
}

.tools-calendar__grid-year {
    font-family: var(--tools-calendar-number-font);
    font-size: 1.58em;
    line-height: 0.84;
    color: var(--tools-calendar-accent);
    font-weight: 700;
}

.tools-calendar__grid-month {
    font-family: var(--tools-calendar-text-font);
    font-size: 0.86em;
    line-height: 1;
    padding-top: 0.24em;
    font-weight: 600;
}

.tools-calendar__grid-week,
.tools-calendar__grid-body {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.tools-calendar__grid-week {
    gap: 0.18em;
}

.tools-calendar__grid-weekitem {
    font-family: var(--tools-calendar-text-font);
    font-size: 0.3em;
    line-height: 1.1;
    text-align: center;
    color: inherit;
}

.tools-calendar__grid-weekitem.is-accent {
    color: var(--tools-calendar-accent);
}

.tools-calendar__grid-cell.is-empty {
    opacity: 0;
}

.tools-calendar__grid-body {
    gap: 0.18em 0.12em;
}

.tools-calendar__grid-cell {
    min-height: 1.18em;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    color: inherit;
}

.tools-calendar__grid-cell.is-accent {
    color: var(--tools-calendar-accent);
}

.tools-calendar__grid-daynum {
    font-family: var(--tools-calendar-number-font);
    font-size: 0.72em;
    line-height: 1;
}

.tools-calendar__grid-daysub {
    font-family: var(--tools-calendar-text-font);
    font-size: 0.24em;
    line-height: 1.16;
    margin-top: 0.04em;
    opacity: 0.74;
    white-space: nowrap;
}

.tools-calendar__grid-cell.is-accent .tools-calendar__grid-daysub,
.tools-calendar__grid-cell.is-active .tools-calendar__grid-daysub {
    opacity: 0.96;
}

.tools-calendar__hint {
    font-size: 12px;
    opacity: 0.76;
    text-align: center;
}

.tools-sign__wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-height: 0;
}

.tools-sign__stage {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.16);
    overflow: hidden;
}

.tools-sign__stage--editor {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
        rgba(0, 0, 0, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.tools-sign__image {
    position: absolute;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.tools-sign__overlay {
    position: absolute;
    z-index: 2;
    cursor: move;
    user-select: none;
    touch-action: none;
}

.tools-sign__overlay-canvas {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.tools-sign__hint {
    font-size: 12px;
    opacity: 0.76;
    text-align: center;
}

.tools-sign__canvas-host {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.tools-sign__stage-tools {
    position: absolute;
    top: 78px;
    right: 14px;
    z-index: 7;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tools-sign__stage-tool {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(18, 22, 30, 0.92);
    color: rgba(255, 255, 255, 0.92);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
    transition: all 0.2s ease;
}

.tools-sign__stage-tool:hover {
    border-color: var(--mobile_Hong, #ff4d4f);
    background: rgba(255, 77, 79, 0.92);
    color: #ffffff;
}

.tools-sign__stage-tool:disabled {
    opacity: 0.68;
    cursor: not-allowed;
    box-shadow: none;
}

.tools-sign__canvas-host .canvas-container {
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
    border-radius: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 18, 28, 0.18);
}

.tools-sign__canvas-host canvas {
    display: block;
}

.tools-sign__stage-tip {
    position: absolute;
    z-index: 6;
    left: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(20, 24, 32, 0.9);
    border: 1px solid rgba(255, 77, 79, 0.46);
    color: rgba(255, 255, 255, 0.94);
    font-size: 12px;
    line-height: 1;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.tools-sign__inline-field {
    flex: 1;
    min-width: 0;
}

.tools-sign__panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.tools-sign__panel-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    scrollbar-gutter: stable;
}

.tools-sign__panel-footer {
    flex: 0 0 auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tools-sign__panel--compact .tools-panel__section {
    margin-bottom: 14px;
}

.tools-sign__panel-host {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.tools-sign__lines {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.tools-sign__line-card {
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.tools-sign__line-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.tools-sign__line-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.tools-sign__line-delete {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    padding: 0;
    cursor: pointer;
}

.tools-sign__line-delete:hover {
    color: #ffffff;
}

.tools-sign__line-delete:disabled {
    opacity: 0.32;
    cursor: not-allowed;
}

.tools-sign__line-input {
    width: 100%;
}

.tools-sign__line-color {
    width: 100%;
    justify-content: space-between;
}

.tools-sign__line-grid {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-direction: column;
    margin-bottom: 10px;
}

.tools-sign__line-col {
    flex: 1 1 0;
    min-width: 0;
}

.tools-sign__add-line {
    width: 100%;
}

.tools-sign__selected-name {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.tools-sign__font-dropdown .category-dropdown-20251013-trigger-all {
    min-height: 46px;
}

.tools-sign__font-trigger-text {
    display: block;
    font-size: 18px;
    line-height: 1.3;
}

.tools-sign__font-dropdown .category-dropdown-20251013-menu-all {
    border-radius: 14px;
    margin-top: 6px;
}

.tools-sign__font-dropdown .category-dropdown-20251013-item-all {
    white-space: normal;
    padding: 14px 16px;
}

.tools-sign__font-option {
    display: block;
}

.tools-sign__font-option-preview {
    font-size: 18px;
    line-height: 1.35;
    color: #111111;
}

.tools-sign__font-dropdown .category-dropdown-20251013-item-all:hover .tools-sign__font-option-preview,
.tools-sign__font-dropdown .category-dropdown-20251013-item-all.active .tools-sign__font-option-preview {
    color: inherit;
}

.tools-panel__empty {
    padding: 14px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
}

.tools-panel__label--minor {
    margin-bottom: 8px;
    font-size: 12px;
    opacity: 0.78;
}

.tools-calendar__field {
    max-width: 100%;
    appearance: none;
}

.tools-calendar__field--static {
    display: flex;
    align-items: center;
    min-height: 40px;
    color: rgba(255, 255, 255, 0.52);
    cursor: default;
    user-select: none;
}

.tools-calendar__date-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.tools-calendar__date-col {
    flex: 1 1 0;
    min-width: 0;
}

.tools-panel__help {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
    opacity: 0.68;
}

.tools-calendar__color {
    width: auto;
    display: inline-flex;
    font-size: 12px;
    gap: 6px;
    opacity: 0.9;
    flex-direction: column;
}

.tools-calendar__color input[type="color"] {
    width: 46px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 5px;
    padding: 0;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    /* 关键两行 */
    -webkit-appearance: none;
    appearance: none;
}
/* Chrome/Edge/Safari/微信内置浏览器 控制色块容器+色块 */
.tools-calendar__color input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0 !important;  /* 清除内部默认留白（多出白边根源） */
}
.tools-calendar__color input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 0;
}

/* Firefox火狐专属，不能和webkit写一块，分开写 */
.tools-calendar__color input[type="color"]::-moz-color-swatch-wrapper {
    padding: 0;
}
.tools-calendar__color input[type="color"]::-moz-color-swatch {
    border: none;
    border-radius: 0;
}

.tools-calendar__range {
    flex: 1;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    --tools-range-percent: 50%;
    --tools-range-fill: #d92b2b;
    --tools-range-track: #e6e8ef;
    --tools-range-track-height: 6px;
    height: 15px;
    outline: none;
    border: 0;
    padding: 0;
    margin: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}

.tools-calendar__range::-webkit-slider-runnable-track {
    height: var(--tools-range-track-height);
    border-radius: 999px;
    background: linear-gradient(
        to right,
        var(--tools-range-fill) 0%,
        var(--tools-range-fill) var(--tools-range-percent),
        var(--tools-range-track) var(--tools-range-percent),
        var(--tools-range-track) 100%
    );
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.16);
}

.tools-calendar__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #d92b2b;
    border: 2px solid rgba(255, 255, 255, 0.94);
    box-shadow: 0 6px 18px rgba(217, 43, 43, 0.32);
    cursor: pointer;
    margin-top: calc((var(--tools-range-track-height) - 15px) / 2);
}

.tools-calendar__range::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #d92b2b;
    border: 2px solid rgba(255, 255, 255, 0.94);
    box-shadow: 0 6px 18px rgba(217, 43, 43, 0.32);
    cursor: pointer;
}

.tools-calendar__range::-moz-range-track {
    height: var(--tools-range-track-height);
    border-radius: 999px;
    background: var(--tools-range-track);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.16);
}

.tools-calendar__range::-moz-range-progress {
    height: var(--tools-range-track-height);
    border-radius: 999px;
    background: var(--tools-range-fill);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.tools-calendar__range::-moz-focus-outer {
    border: 0;
}

@supports (-moz-appearance:none) {
    .tools-calendar__range {
        --tools-range-track-height: 12px;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }
}

.tools-calendar__range-value {
    min-width: 48px;
    text-align: right;
    font-size: 12px;
    opacity: 0.86;
}

.tools-calendar__debug-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 10px;
}

.tools-calendar__float-panel {
    position: fixed;
    top: 92px;
    right: 18px;
    width: 360px;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 120px);
    z-index: 1200;
    overflow: hidden;
}

.tools-calendar__float-card {
    max-height: calc(100vh - 120px);
    overflow: auto;
    padding: 14px;
    border-radius: 14px;
    background: rgba(12, 18, 28, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
}

.tools-calendar__float-head {
    margin-bottom: 10px;
}

.tools-calendar__float-title {
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
}

.tools-calendar__float-sub {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.5;
    opacity: 0.72;
}

.tools-calendar__float-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.tools-calendar__debug-group {
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.tools-calendar__debug-group-title {
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    margin-bottom: 10px;
}

.tools-calendar__debug-group-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.tools-calendar__debug-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.tools-calendar__debug-label {
    font-size: 12px;
    line-height: 1.4;
    opacity: 0.82;
}

.tools-calendar__debug-input {
    width: 100%;
    min-width: 0;
    color: #000;
    border-radius: 5px;
    padding: 2px 10px;
    box-sizing: border-box;
}

.tools-page .tools-calendar__dropdown.is-disabled {
    opacity: 0.58;
}

.tools-page .tools-calendar__dropdown.is-disabled .category-dropdown-20251013-trigger-all {
    cursor: not-allowed;
}

@media (max-width: 991px) {
    .tools-calendar__float-panel {
        top: auto;
        right: 12px;
        bottom: 12px;
        left: 12px;
        width: auto;
        max-width: none;
        max-height: 48vh;
    }

    .tools-calendar__float-card {
        max-height: 48vh;
    }
}

.tools-preview__wrap .cropper-container {
    width: 100% !important;
    height: 100% !important;
}

.tools-convert__wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-height: 0;
}

.tools-convert__drop {
    position: relative;
    padding: 26px 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    text-align: center;
    margin: 20px 20px auto;
}

.tools-convert__drop.is-dragover {
    border-color: rgba(255, 212, 38, 0.65);
    background: rgba(255, 212, 38, 0.06);
}

.tools-convert__drop-inner {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.tools-convert__drop-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 65px;
    line-height: 1;
    color: var(--mobile_Hong);
}

.tools-convert__drop-title {
    font-size: 25px;
    line-height: 1.45;
    font-weight: 600;
    margin: 0;
}

.tools-convert__text-upload {
    border: 0;
    background: transparent;
    padding: 0;
    margin-left: 6px;
    font: inherit;
    color: var(--mobile_Hong);
    cursor: pointer;
}

.tools-convert__text-upload:hover,
.tools-convert__text-upload:focus {
    color: var(--baise);
}

.tools-convert__drop-meta {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.32);
    line-height: 1.6;
}
.tools-convert__drop-meta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.tools-convert__policy_tip{
    color:var(--mobile_Hong);
    font-size: 14px;
    text-align: center;
}
.tools-convert__drop-desc {
    max-width: 640px;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.32);
    margin: 0;
}

.tools-convert__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tools-convert__pick {
    position: relative;
    overflow: hidden;
}

.tools-convert__actions--drop {
    margin-top: 2px;
}

#convertFileInput {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    border: 0;
}

.tools-convert__list {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding-right: 2px;
    margin:auto 20px 20px;
}

.tools-convert__empty {
    padding: 24px 12px;
    text-align: center;
    opacity: 0.7;
}

.tools-convert__item.list-group-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
    color: inherit;
    border-radius: 10px;
    margin-bottom: 10px;
}

.tools-convert__row {
    display: grid;
    grid-template-columns: 1fr 84px 70px 320px 90px 24px;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
}

.tools-convert__row--compress {
    grid-template-columns: 1fr 84px 96px 320px 90px 24px;
}

.tools-convert__name {
    font-size: 13px;
    opacity: 0.92;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.tools-convert__size {
    font-size: 12px;
    opacity: 0.75;
    flex: 0 0 auto;
    width: 84px;
    text-align: right;
    color: rgba(255, 255, 255, 0.78);
}

.tools-convert__size--origin {
    color: #b7c0cf;
}

.tools-convert__ext {
    font-size: 12px;
    opacity: 0.75;
    width: 70px;
    text-align: center;
}

.tools-convert__result-size {
    font-size: 12px;
    opacity: 0.75;
    width: 96px;
    text-align: right;
    color: rgba(255, 255, 255, 0.72);
}

.tools-convert__result-size--smaller {
    color: #56d98b;
    opacity: 1;
    font-weight: 600;
}

.tools-convert__result-size--same {
    color: #9cb0c9;
    opacity: 0.96;
}

.tools-convert__result-size--larger {
    color: #ffb14a;
    opacity: 0.96;
}

.tools-convert__result-size--pending {
    color: rgba(255, 255, 255, 0.52);
}

@keyframes tools-convert-stripe-move {
    0% {
        background-position-x: 1rem;
    }
}

.tools-convert__progress-wrap {
    width: 320px;
    min-width: 0;
}

.tools-convert__progress {
    position: relative;
    height: 22px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgb(255, 255, 255, 0.8);
    overflow: hidden;
}

.tools-convert__bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 14px;
    width: 0;
    overflow: hidden;
    transition: width 0.42s ease;
}

.tools-convert__bar::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.18) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.18) 50%,
        rgba(255, 255, 255, 0.18) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
    animation: tools-convert-stripe-move 1s linear infinite;
    pointer-events: none;
    will-change: background-position;
}

.tools-convert__bar--success::before,
.tools-convert__bar--danger::before {
    display: none;
}

.tools-convert__bar--info {
    background: linear-gradient(90deg, rgba(60, 140, 255, 0.85), rgba(35, 200, 255, 0.85));
}

.tools-convert__bar--warning {
    background: linear-gradient(90deg, rgba(255, 180, 0, 0.85), rgba(255, 120, 0, 0.85));
}

.tools-convert__bar--success {
    background: linear-gradient(90deg, rgba(70, 210, 120, 0.9), rgba(35, 180, 255, 0.75));
}

.tools-convert__bar--danger {
    background: linear-gradient(90deg, rgba(255, 90, 90, 0.9), rgba(255, 140, 70, 0.85));
}

.tools-convert__pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
    /* text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6); */
}

.tools-convert__state {
    font-size: 12px;
    opacity: 0.85;
    text-align: right;
    width: 90px;
}

.tools-convert__actions {
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 767px) {
    .tools-convert__drop {
        padding: 20px 16px;
    }

    .tools-convert__drop-inner {
        min-height: 210px;
        gap: 10px;
    }

    .tools-convert__drop-icon {
        width: 56px;
        height: 56px;
        border-radius: 16px;
        font-size: 28px;
    }

    .tools-convert__drop-title {
        font-size: 22px;
    }

    .tools-convert__drop-meta {
        font-size: 13px;
    }

    .tools-convert__drop-desc {
        font-size: 12px;
    }
}

.tools-convert__remove {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.58);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.tools-convert__remove:hover {
    background: rgba(255, 77, 79, 0.14);
    color: #ff6b6b;
}

.tools-convert__remove--placeholder {
    visibility: hidden;
    pointer-events: none;
}

.tools-convert__error {
    font-size: 12px;
    color: #ff6b6b;
    opacity: 0.95;
    padding: 0 20px 10px;
}

.tools-preview__placeholder {
    text-align: center;
    padding: 20px;
    opacity: 0.9;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.tools-preview__ph-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.tools-preview__ph-desc {
    font-size: 13px;
    opacity: 0.75;
}

.tools-preview__actions {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: calc(100% - 32px);
    max-width: 420px;
}

.tools-preview__actions .tools-btn {
    width: 100%;
    border-radius: 10px;
    font-size: 14px;
    padding: 10px 16px;
}

.tools-preview__tips {
    font-size: 13px;
    opacity: 0.8;
    text-align: center;
}

.tools-panel__section {
    margin-bottom: 14px;
}

.tools-panel__layout {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.tools-panel__scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
    -ms-overflow-style: -ms-autohiding-scrollbar;
}

.tools-panel__scroll::-webkit-scrollbar {
    width: 6px;
}

.tools-panel__scroll::-webkit-scrollbar-track {
    background: transparent;
}

.tools-panel__scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}

.tools-panel__scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tools-sign__panel-scroll,
.tools-calendar__float-card,
.tools-convert__list,
.tools-page .category-dropdown-20251013-all .category-dropdown-20251013-content-all {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
    -ms-overflow-style: -ms-autohiding-scrollbar;
}

.tools-sign__panel-scroll::-webkit-scrollbar,
.tools-calendar__float-card::-webkit-scrollbar,
.tools-convert__list::-webkit-scrollbar,
.tools-page .category-dropdown-20251013-all .category-dropdown-20251013-content-all::-webkit-scrollbar {
    width: 6px;
}

.tools-sign__panel-scroll::-webkit-scrollbar-track,
.tools-calendar__float-card::-webkit-scrollbar-track,
.tools-convert__list::-webkit-scrollbar-track,
.tools-page .category-dropdown-20251013-all .category-dropdown-20251013-content-all::-webkit-scrollbar-track {
    background: transparent;
}

.tools-sign__panel-scroll::-webkit-scrollbar-thumb,
.tools-calendar__float-card::-webkit-scrollbar-thumb,
.tools-convert__list::-webkit-scrollbar-thumb,
.tools-page .category-dropdown-20251013-all .category-dropdown-20251013-content-all::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}

.tools-sign__panel-scroll::-webkit-scrollbar-thumb:hover,
.tools-calendar__float-card::-webkit-scrollbar-thumb:hover,
.tools-convert__list::-webkit-scrollbar-thumb:hover,
.tools-page .category-dropdown-20251013-all .category-dropdown-20251013-content-all::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tools-panel__footer {
    flex: 0 0 auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tools-panel__section--status {
    margin-top: 0;
    margin-bottom: 0;
}

.tools-panel__status {
    font-size: 12px;
    opacity: 0.85;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px 12px;
    min-height: 38px;
    margin-top: 12px;
}

.tools-panel__bottom {
    margin-top: 12px;
    padding-top: 14px;
}

.tools-panel__tips {
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.4;
}

.tools-panel__tips--compact {
    opacity: 1;
}

.tools-panel__tip-card {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.tools-panel__tip-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.tools-panel__tip-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    line-height: 1.2;
}

.tools-panel__tip-badge.is-accent {
    background: rgba(227, 39, 33, 0.18);
    color: rgba(255, 255, 255, 0.96);
}

.tools-panel__tip-line {
    font-size: 12px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.76);
}

.tools-panel__tip-line + .tools-panel__tip-line {
    margin-top: 4px;
}

.tools-panel__tip-line--strong {
    color: rgba(255, 255, 255, 0.96);
    font-weight: 600;
}

.tools-panel__tip-line--notice {
    color: rgba(255, 214, 102, 0.96);
}

.tools-panel__label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.tools-panel__row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.tools-panel__row--wrap {
    flex-wrap: wrap;
    margin-top: 12px;
}

.tools-panel__size-group {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.tools-panel__size-group .tools-eco-input {
    flex: 1;
    min-width: 0;
}

.tools-panel__size-sep {
    flex: 0 0 auto;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.72);
}

.tools-panel__help {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.66);
}

.tools-choice {
    position: relative;
    display: inline-flex;
    min-width: 92px;
    cursor: pointer;
    user-select: none;
    flex:1;
}

.tools-choice__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tools-choice__panel {
    width: 100%;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.86);
    /* box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); */
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tools-choice__text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 300;
}

.tools-choice__icon {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 22px;
    height: 22px;
    border-radius: 8px 0 8px 0;
    background: transparent;
    transition: background 0.2s ease;
}

.tools-choice__icon::before,
.tools-choice__icon::after {
    content: '';
    position: absolute;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tools-choice__input:checked + .tools-choice__panel {
    border-color: #d92b2b;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(42, 25, 29, 0.98), rgba(29, 18, 22, 0.98));
}

.tools-choice__input:checked + .tools-choice__panel .tools-choice__icon {
    background: #d92b2b;
}

.tools-choice__input:checked + .tools-choice__panel .tools-choice__icon::before {
    left: 8px;
    top: 5px;
    width: 4px;
    height: 8px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    opacity: 1;
}

.tools-choice__input:focus-visible + .tools-choice__panel {
    box-shadow: 0 0 0 3px rgba(217, 43, 43, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tools-choice:hover .tools-choice__panel {
    border-color: rgba(217, 43, 43, 0.54);
    transform: translateY(-1px);
}

.tools-choice--checkbox .tools-choice__input:checked + .tools-choice__panel .tools-choice__icon {
    border-radius: 8px 0 16px 0;
}

.tools-btn {
    border-radius: 8px;
    padding: 12px 10px;
    white-space: nowrap;
}

.tools-page .tools-btn.btn-default,
.tools-page .tools-upload__btn.btn-default {
    background: var(--block-default);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--baise);
    flex: 1;
}

.tools-page .tools-btn.btn-default:hover,
.tools-page .tools-upload__btn.btn-default:hover {
    background: var(--mobile_Hong, #ff4d4f);
    border-color: var(--mobile_Hong, #ff4d4f);
    color: var(--baise);
}

.tools-page .bootstrap-select > .dropdown-toggle {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
}

.tools-page .bootstrap-select > .dropdown-toggle:hover,
.tools-page .bootstrap-select.open > .dropdown-toggle {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.95);
}

.tools-page .tools-eco-input {
    width: 100%;
    box-sizing: border-box;
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    background-color: #31333c;
    border: 1px solid #3b3d45;
    color: #babbc0;
    font-size: 14px;
    outline: none;
}

.tools-page .tools-eco-input::placeholder {
    color: #babbc0;
    opacity: 0.85;
}

.tools-page .tools-eco-input:focus {
    border-color: var(--mobile_Hong, #ff4d4f);
    box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.18);
}

.tools-page .category-dropdown-20251013-all {
    position: relative;
    display: inline-block;
    min-width: 120px;
    width: 100%;
}

.tools-page .category-dropdown-20251013-all .category-dropdown-20251013-trigger-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 8px 14px;
    border: 1px solid var(--line-2, rgba(255, 255, 255, 0.18));
    border-radius: 8px;
    background: var(--block-default, rgba(255, 255, 255, 0.04));
    color: var(--color-default, rgba(255, 255, 255, 0.92));
}

.tools-page .category-dropdown-20251013-all .category-dropdown-20251013-trigger-all:hover {
    border-color: var(--mobile_Hong, #ff4d4f);
    background: var(--block-hover, rgba(255, 255, 255, 0.06));
}

.tools-page .category-dropdown-20251013-all.active-all .category-dropdown-20251013-trigger-all {
    border-color: var(--mobile_Hong, #ff4d4f);
    box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.18);
}

.tools-page .category-dropdown-20251013-all .category-dropdown-20251013-text-all {
    flex: 1;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit;
}

.tools-page .category-dropdown-20251013-all .category-dropdown-20251013-icon-all {
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.2s ease;
    color: inherit;
}

.tools-page .category-dropdown-20251013-all.active-all .category-dropdown-20251013-icon-all {
    transform: rotate(180deg);
}

.tools-page .category-dropdown-20251013-all .category-dropdown-20251013-menu-all {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.2s ease;
    margin-top: -1px;
}

.tools-page .category-dropdown-20251013-all.active-all .category-dropdown-20251013-menu-all {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tools-page .category-dropdown-20251013-all .category-dropdown-20251013-content-all {
    max-height: min(320px, 70vh);
    overflow-y: auto;
    padding: 0;
}

.tools-page .category-dropdown-20251013-all .category-dropdown-20251013-item-all {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    background: transparent;
    text-align: left;
    white-space: nowrap;
    color: #1f1f1f;
    width: 100%;
    box-sizing: border-box;
}

.tools-page .category-dropdown-20251013-all .category-dropdown-20251013-item-all:hover,
.tools-page .category-dropdown-20251013-all .category-dropdown-20251013-item-all.active {
    background: var(--mobile_Hong, #ff4d4f);
    color: #fff;
}

.tools-page .category-dropdown-20251013-all .category-dropdown-20251013-item-all .tab-text {
    font-size: 16px;
    color: inherit;
}

.tools-footer__row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tools-footer__tips {
    font-size: 13px;
    opacity: 0.8;
}

.tools-block__title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.tools-block__desc {
    font-size: 13px;
    opacity: 0.75;
    line-height: 1.5;
}
.tools-mobile-disabled{
    display: none;
}
.tools-mobile-disabled__btn {
    height: 45px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
}
.btn-default {
    color:#333;
}
.tools-page .tools-mobile-disabled__btn.btn-primary {
    background: linear-gradient(180deg, rgba(217, 43, 43, 0.98), rgba(173, 24, 24, 0.98));
    border-color: rgba(217, 43, 43, 0.98);
    color: #ffffff;
}

.tools-page .tools-mobile-disabled__btn.btn-primary:hover,
.tools-page .tools-mobile-disabled__btn.btn-primary:focus {
    background: linear-gradient(180deg, rgba(230, 63, 63, 1), rgba(185, 36, 36, 1));
    border-color: rgba(230, 63, 63, 1);
    color: #ffffff;
}

.tools-page .tools-mobile-disabled__btn--secondary.btn-default {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
}

.tools-page .tools-mobile-disabled__btn--secondary.btn-default:hover,
.tools-page .tools-mobile-disabled__btn--secondary.btn-default:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}
@media only screen and (max-width: 768px) {
    .tools-page__body{
        display: none;
    }
    .tools-page{
        padding: 0 0.3rem;
        box-sizing: border-box;
    }
    .tools-mobile-disabled {
        width: 100%;
        min-height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        box-sizing: border-box;
        height: calc(100vh - 2rem);
    }

    .tools-mobile-disabled__card {
        width: 100%;
        max-width: 480px;
        padding: 0.45rem;
        border-radius: 12px;
        background:
            linear-gradient(180deg, rgba(33, 18, 23, 0.98), rgba(14, 18, 28, 0.98)),
            rgba(14, 18, 28, 0.98);
        border: 1px solid rgba(217, 43, 43, 0.4);
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
        text-align: center;
    }

    .tools-mobile-disabled__logo {
        width: 72px;
        height: 72px;
        margin: 0 auto 18px;
        border-radius: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(180deg, rgba(217, 43, 43, 0.22), rgba(217, 43, 43, 0.1));
        border: 1px solid rgba(217, 43, 43, 0.4);
        color: #ff6668;
        font-size: 30px;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .tools-mobile-disabled__title {
        font-size: 22px;
        line-height: 1.3;
        font-weight: 600;
        color: #ffffff;
    }

    .tools-mobile-disabled__desc {
        margin-top: 12px;
        font-size: 14px;
        line-height: 1.7;
        color: rgba(255, 255, 255, 0.74);
    }

    .tools-mobile-disabled__actions {
        margin-top: 0.25rem;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0.2rem;
    }
    .tools-mobile-disabled__btn{
        height: 1rem;
        font-size: 0.32rem;
    }
}

/* ============================================
   九宫格切图工具
   ============================================ */

.tools-ngrd__upload {
    padding: 12px 0;
}

.tools-ngrd__drop {
    padding: 50px 20px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px dashed rgba(255, 255, 255, 0.18);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.tools-ngrd__drop.is-dragover {
    border-color: rgba(255, 212, 38, 0.65);
    background: rgba(255, 212, 38, 0.06);
}

.tools-ngrd__drop-icon {
    font-size: 36px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.45);
}

.tools-ngrd__drop-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.tools-ngrd__drop-desc {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 12px;
}

.tools-ngrd__pick {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

#nineGridFileInput {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    border: 0;
}

.tools-ngrd__preview {
    position: relative;
    width: 100%;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 8px;
}

.tools-ngrd__preview-inner {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tools-ngrd__stage {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 82px 12px 18px;
    flex: 1;
    min-height: 0;
}

.tools-ngrd__canvas {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    position: relative;
}

.tools-ngrd__src-img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    display: block;
    object-fit: contain;
}

.tools-ngrd__crop-box {
    position: absolute;
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.05);
    touch-action: none;
}

.tools-ngrd__empty-hint {
    padding: 40px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

.tools-ngrd__grid-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.tools-ngrd__thumbs {
    width: calc(100% - 24px);
    max-width: 680px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 8px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tools-ngrd__thumbs--panel {
    width: 100%;
    max-width: none;
}

.tools-ngrd__grid-dropdown {
    width: 100%;
}

.tools-ngrd__thumb {
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.tools-ngrd__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tools-ngrd__grid-line {
    position: absolute;
    background: rgba(255, 255, 255, 0.45);
    z-index: 2;
}

.tools-ngrd__grid-line--h {
    height: 1px;
}

.tools-ngrd__grid-line--v {
    width: 1px;
}

/* 工具面板：切图模式 */
.tools-ngrd__modes,
.tools-ngrd__fmts {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tools-ngrd__mode-item,
.tools-ngrd__fmt-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.tools-ngrd__mode-item:hover,
.tools-ngrd__fmt-item:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.tools-ngrd__mode-item.active,
.tools-ngrd__fmt-item.active {
    background: rgba(255, 212, 38, 0.16);
    border-color: rgba(255, 212, 38, 0.5);
    color: #ffd426;
}

/* 移动端适配 */
@media (max-width: 767px) {
    .tools-ngrd__drop {
        padding: 30px 16px;
    }

    .tools-ngrd__drop-icon {
        font-size: 28px;
    }

    .tools-ngrd__drop-title {
        font-size: 16px;
    }

    .tools-ngrd__src-img {
        max-height: 300px;
    }

    .tools-ngrd__mode-item,
    .tools-ngrd__fmt-item {
        font-size: 12px;
        padding: 4px 10px;
    }
}
