.form-mi .form-group {
    margin-bottom: 15px
}

.form-mi .form-control {
    width: 100%;
    padding: 8px 12px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color .2s ease
}

.form-mi .form-control:focus {
    border-color: #4caf50;
    outline: 0
}

.form-mi .radio-group label {
    display: inline-block;
    margin-right: 15px;
    cursor: pointer
}

.form-mi .radio-btn {
    margin-right: 5px
}

.form-mi select.form-control {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-down" viewBox="0 0 16 16"><path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/></svg>');
    background-position: right 5px center;
    background-repeat: no-repeat;
    background-color: #fff;
    padding-right: 30px
}

.form-mi select.form-control::-ms-expand {
    display: none
}

.form-mi .btn-primary {
    display: block;
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg,#4caf50,#3cb371);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0,0,0,.1);
    transition: transform .2s ease;
    text-align: center
}

.form-mi .btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,.15)
}

.form-mi .btn-primary:active {
    transform: translateY(0);
    background: #3cb371
}

.tool-index .category {
    background: rgb(255 255 255);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px
}

.tool-index .category-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: #464646;
    padding-left: 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.tool-index .category-title::before {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    background: #03a9f4;
    border-radius: 4px;
    position: absolute;
    left: 0;
    top: calc(50% - 7px)
}

.tool-index .category-title .more {
    font-size: 14px;
    color: #707070;
    font-weight: 100
}

.tool-index .category-title .more::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 5px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg)
}

.tool-index .tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
    gap: 10px
}

.tool-index .tool-card {
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    transition: transform .3s ease,box-shadow .3s ease;
    cursor: pointer;
    display: flex;
    align-items: center
}

.tool-index .tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgb(2 35 69 / 31%)
}

.tool-index img {
    width: 38px;
    height: 38px;
    margin-right: 10px
}

 
.tool-index .tools-grid .tool-ico {
    display: inline-block;
    width: 38px;
    height: 38px;
    background-color: #007fff;
    color: #ffffff;
    text-align: center;
    line-height: 40px;
    text-overflow: ellipsis;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 24px;
    font-weight: bold;
    margin-right: 10px
}

.tool-index .tools-grid a:nth-child(2n) .tool-ico {
    background-color: #F44336;
}

.tool-index .tools-grid a:nth-child(3n) .tool-ico {
    background-color: #9C27B0;
}

.tool-index .tools-grid a:nth-child(4n) .tool-ico {
    background-color: #3f4877;
}
 

.tool-index .tool-title {
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: unset
}

.tool-index .tool-desc {
    font-size: .9rem;
    color: #a8dadc;
    opacity: .8
}

@media (max-width: 768px) {
    .tool-index .container {
        padding:1rem
    }

    .tool-index .header h1 {
        font-size: 2.5rem
    }

    .tool-index .category {
        padding: 1.5rem
    }
}

.toolbox {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    width: 100%;
    margin-bottom: 20px
}

.toolbox h1 {
    color: #333;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px
}

.toolbox h1 img {
    height: 24px
}

.toolbox .input-container {
    background-color: #f5f7fa;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 20px
}

.toolbox .input-container span {
    color: #ff5722;
    margin-left: 10px
}

.toolbox .input-container textarea {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: 2px solid #e2e8f0;
    border-radius: 5px;
    font-size: 14px;
    resize: none;
    min-height: 200px;
    margin: 0
}

.toolbox .button-container {
    background-color: #f5f7fa;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 20px
}

.toolbox .settings-container {
    display: inline-block;
    margin-right: 10px
}

.toolbox .settings-container select {
    height: 42px;
    border: 2px solid #e2e8f0;
    border-radius: 8px
}

.toolbox button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    background-color: #007bff;
    transition: background-color .3s ease;
    margin: 10px
}

.toolbox button:hover {
    background-color: #0056b3
}

.toolbox .btn-danger {
    background-color: #ff5722
}

.toolbox .btn-danger:hover {
    background-color: #f22
}

.toolbox button:active {
    transform: scale(.98)
}

.toolbox .result-textarea::placeholder {
    color: #999
}

.toolbox .tips {
    font-size: 14px;
    padding: 10px;
    background-color: #e2f6ff;
    border-radius: 5px;
    border: 1px solid #2196f3;
    margin-top: 20px;
    line-height: 1.9;
    color: #2196f3;
    box-shadow: 0 2px 5px rgba(0,0,0,.1)
}

.toolbox .tips strong {
    font-size: 18px;
    color: #3c3c3c
}

.cssBeautifier form {
    display: flex;
    margin-bottom: 20px
}

.cssBeautifier .form-group {
    display: flex;
    align-items: center;
    margin-right: 20px
}

.cssBeautifier .form-group label {
    width: 100px;
    margin-right: 10px;
    font-weight: 700;
    background-color: #f5f7fa;
    padding: 7px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center
}

.cssBeautifier .form-control,.cssBeautifier select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100px;
    font-size: 14px
}

.cssBeautifier .row {
    display: flex;
    gap: 20px
}

.cssBeautifier .col-md {
    flex: 1;
    min-width: 0;
    background-color: #f5f7fa;
    padding: 10px;
    border-radius: 10px
}

.cssBeautifier #code1,.cssBeautifier #code2 {
    width: 100%;
    height: 480px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-family: Consolas,monospace;
    font-size: 14px
}

.cssBeautifier .button-container {
    display: flex;
    margin-bottom: unset;
    background-color: unset;
    padding: 0;
    display: block
}

.cssBeautifier .button-container form {
    display: grid;
    gap: 6px;
    margin-bottom: 0
}

.cssBeautifier button {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color .3s;
    margin: 0;
    min-width: 128px
}

.cssBeautifier button:hover {
    background-color: #0056b3
}

.cssBeautifier .h_text {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #444;
    text-align: justify
}

.cssBeautifier #file {
    display: none
}

.cssBeautifier #browse {
    background-color: #28a745
}

.cssBeautifier #browse:hover {
    background-color: #218838
}

@media (max-width: 768px) {
    .cssBeautifier .row {
        flex-direction:column
    }

    .cssBeautifier .button-container {
        margin-bottom: 0;
        display: block
    }

    .cssBeautifier form {
        display: grid;
        gap: 10px
    }
}

.search-tool-framework {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center
}

.search-tool-framework .form-container {
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    text-align: center;
    margin-bottom: 20px
}

.search-tool-framework .search-tool-form {
    position: relative;
    max-width: 600px;
    margin: auto
}

.search-tool-framework .search-tool-input {
    width: 100%;
    padding: 18px 25px;
    font-size: 1.2em;
    border: 2px solid #022345;
    border-radius: 10px;
    outline: 0;
    transition: all .3s ease;
    box-sizing: border-box
}

.search-tool-framework .search-tool-input:focus {
    box-shadow: 0 0 15px rgb(255 153 0 / 30%)
}

.search-tool-framework .submit-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #022345;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    transition: all .3s ease
}

.search-tool-framework .submit-btn:hover {
    background: #f92900;
    transform: translateY(-50%) scale(1.05)
}

.search-tool-framework h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 2em;
    text-shadow: 2px 2px 4px rgba(0,0,0,.1)
}

.controls {
    background: #282828;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,.3);
    overflow: hidden;
    display: flex;
    flex-wrap: wrap
}

.controls .grid,.controls .int-info,.controls .preview {
    padding: 20px
}

.controls .preview {
    flex: 1;
    min-height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #2e2e2e;
    border-right: 1px solid #444
}

.controls #imgPreview img {
    max-width: 100%;
    max-height: 100%;
    border: 2px solid #444;
    border-radius: 8px
}

.controls .int-info {
    width: 180px
}

.controls .int-info>div {
    margin-bottom: 20px
}

.controls label {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
    color: #fff;
    opacity: .8
}

.controls input[type=number] {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    background: #333;
    color: #fff;
    border: 2px solid #444;
    border-radius: 5px;
    appearance: none
}

.controls input[type=number]:focus {
    border-color: #666;
    outline: 0
}

.controls .file-upload {
    background: #202020;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    transition: background .3s,color .3s
}

.controls .file-upload:hover {
    background: #282828;
    color: #aaa
}

.controls .file-input {
    display: none
}

.controls button {
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    margin-top: 10px;
    border-radius: 5px;
    cursor: pointer;
    outline: 0;
    width: 100%;
    margin: unset
}

.controls .cut-button {
    background: #444;
    color: #fff;
    margin-bottom: 20px
}

.controls .cut-button:hover {
    background: #555
}

.controls .cut-button:disabled {
    opacity: .5;
    cursor: not-allowed
}

.controls .download-btn {
    background: #4caf50;
    color: #fff
}

.controls .download-btn:hover {
    background: #45a049
}

.controls .preview-info {
    flex: 1;
    background: #2e2e2e;
    padding: 15px;
    justify-content: center;
    align-items: center;
    display: flex;
    min-height: 420px
}

.controls .grid img {
    max-width: 100%;
    max-height: 150px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform .3s
}

.controls .grid img:hover {
    transform: scale(1.05)
}

.layui-layer-page .layui-layer-content {
    position: relative;
    overflow: auto;
    background-color: #000;
    display: grid;
    justify-content: center;
    align-content: center
}

@media (max-width: 768px) {
    .controls {
        flex-direction:column;
        width: 100%
    }

    .controls .preview,.int-info {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #444
    }

    .controls .int-info {
        padding-left: 20px;
        width: 100%
    }

    .controls .grid {
        padding: 15px
    }

    .controls .grid img {
        max-height: 180px
    }
}

.ai-content {
    overflow: auto
}

.tips-rmb {
    border-radius: 5px;
    background-color: #ffeaca;
    padding: 10px;
    border: 1px solid #ff5722;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,.1);
    color: #ff5722
}

.ai-content .tips-info {
    width: 460px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    min-height: 580px;
    float: left
}

.ai-content .msg-info {
    width: calc(100% - 480px);
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    height: 580px;
    float: right;
    overflow: auto
}

.ai-content .chat-msg {
    border-radius: 5px;
    padding: 10px;
    border: 1px solid #e1e1e1;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,.1);
}

@media (max-width: 768px) {
    .ai-content .tips-info {
        width:100%;
        margin-bottom: 20px;
        height: auto
    }

    .ai-content .msg-info {
        width: 100%;
        min-height: 200px;
        height: auto
    }
}


 .markdown-body :root {
    --side-bar-bg-color: #fafafa;
    --control-text-color: #777
}

.markdown-body {
    color: #333;
    line-height: 1.6
}

.markdown-body #write {
    max-width: 100%;
    margin: 0 auto;
    padding: 30px; /* 60rpx → 30px */
    padding-bottom: 100px; /* 200rpx → 100px */
}

.markdown-body #write>ol:first-child,
.markdown-body #write>ul:first-child {
    margin-top: 30px; /* 60rpx → 30px */
}

.markdown-body kbd {
    display: inline-block;
    padding: 3px 5px;
    font: 11px SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
    line-height: 10px;
    color: #444d56;
    vertical-align: middle;
    background-color: #fafbfc;
    border: 1px solid #d1d5da;
    border-radius: 3px;
    box-shadow: inset 0 -1px 0 #d1d5da
}

.markdown-body img {
    max-width: 100%
}

.markdown-body a {
    color: #4183c4
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    position: relative;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.4;
    cursor: text
}

.markdown-body h1:hover a.anchor,
.markdown-body h2:hover a.anchor,
.markdown-body h3:hover a.anchor,
.markdown-body h4:hover a.anchor,
.markdown-body h5:hover a.anchor,
.markdown-body h6:hover a.anchor {
    text-decoration: none
}

.markdown-body h1 code,
.markdown-body h1 tt {
    font-size: inherit
}

.markdown-body h2 code,
.markdown-body h2 tt {
    font-size: inherit
}

.markdown-body h3 code,
.markdown-body h3 tt {
    font-size: inherit
}

.markdown-body h4 code,
.markdown-body h4 tt {
    font-size: inherit
}

.markdown-body h5 code,
.markdown-body h5 tt {
    font-size: inherit
}

.markdown-body h6 code,
.markdown-body h6 tt {
    font-size: inherit
}

.markdown-body h1 {
    padding-bottom: .3em;
    font-size: 2.25em;
    line-height: 1.2;
    border-bottom: 1px solid #eee
}

.markdown-body h2 {
    padding-bottom: .3em;
    font-size: 1.75em;
    line-height: 1.225;
    border-bottom: 1px solid #eee
}

.markdown-body h3 {
    font-size: 1.5em;
    line-height: 1.43
}

.markdown-body h4 {
    font-size: 1.25em
}

.markdown-body h5 {
    font-size: 1em
}

.markdown-body h6 {
    font-size: 1em;
    color: #777
}

.markdown-body blockquote,
.markdown-body dl,
.markdown-body ol,
.markdown-body p,
.markdown-body table,
.markdown-body ul {
    margin: .8em 0
}

.markdown-body li>ol,
.markdown-body li>ul {
    margin: 0 0
}

.markdown-body hr {
    height: 2px;
    padding: 0;
    margin: 16px 0;
    background-color: #e7e7e7;
    border: 0 none;
    overflow: hidden;
    box-sizing: content-box
}

.markdown-body ul>li {
    list-style-type: disc
}

.markdown-body ol>li {
    list-style-type: decimal
}

.markdown-body li p.first {
    display: inline-block
}

.markdown-body ol,
.markdown-body ul {
    padding-left: 30px; /* 60rpx → 30px */
}

.markdown-body ol:first-child,
.markdown-body ul:first-child {
    margin-top: 0
}

.markdown-body ol:last-child,
.markdown-body ul:last-child {
    margin-bottom: 0
}

.markdown-body blockquote {
    border-left: 4px solid #dfe2e5; /* 8rpx → 4px */
    padding: 0 15px; /* 30rpx → 15px */
    color: #777
}

.markdown-body blockquote blockquote {
    padding-right: 0
}

.markdown-body table {
    padding: 0;
    word-break: initial
}

.markdown-body table tr {
    border-top: 1px solid #dfe2e5;
    margin: 0;
    padding: 0
}

.markdown-body table tr:nth-child(2n),
.markdown-body thead {
    background-color: #f8f8f8
}

.markdown-body table tr th {
    font-weight: 700;
    border: 1px solid #dfe2e5;
    border-bottom: 0;
    margin: 0;
    padding: 6px 13px; /* 12rpx → 6px, 26rpx → 13px */
}

.markdown-body table tr td {
    border: 1px solid #dfe2e5;
    margin: 0;
    padding: 6px 13px
}

.markdown-body table tr td:first-child,
.markdown-body table tr th:first-child {
    margin-top: 0
}

.markdown-body table tr td:last-child,
.markdown-body table tr th:last-child {
    margin-bottom: 0
}

.markdown-body .CodeMirror-lines {
    padding-left: 4px; /* 8rpx → 4px */
}

.markdown-body .code-tooltip {
    box-shadow: 0 1px 1px 0 rgba(0, 28, 36, .3);
    border-top: 1px solid #eef2f2
}

.markdown-body .md-fences,
.markdown-body tt {
    border: 1px solid #e7eaed;
    background-color: #f8f8f8;
    border-radius: 3px; /* 6rpx → 3px */
    padding: 0;
    padding: 2px 4px 0 4px; /* 4rpx → 2px, 8rpx → 4px */
    font-size: .9em
}

.markdown-body pre {
    white-space: pre;
    padding: 10px 15px; /* 20rpx → 10px, 30rpx → 15px */
    margin: 10px 0;
    font-size: 14px;
    border: 1px solid #ddd;
    font-family: Courier New;
    overflow-x: auto;
    background: #eee
}

.markdown-body .md-fences {
    margin-bottom: 15px; /* 30rpx → 15px */
    margin-top: 15px; /* 30rpx → 15px */
    padding-top: 8px; /* 16rpx → 8px */
    padding-bottom: 6px; /* 12rpx → 6px */
}

.markdown-body .md-task-list-item>input {
    margin-left: -1.3em
}

.markdown-body .md-fences {
    background-color: #f8f8f8
}

.markdown-body #write pre.md-meta-block {
    padding: 1rem;
    font-size: 85%;
    line-height: 1.45;
    background-color: #f7f7f7;
    border: 0;
    border-radius: 3px; /* 6rpx → 3px */
    color: #777;
    margin-top: 0 !important
}

.markdown-body .mathjax-block>.code-tooltip {
    bottom: .375rem
}

.markdown-body .md-mathjax-midline {
    background: #fafafa
}

.markdown-body #write>h3.md-focus:before {
    left: -1.5625rem;
    top: .375rem
}

.markdown-body #write>h4.md-focus:before {
    left: -1.5625rem;
    top: .285714286rem
}

.markdown-body #write>h5.md-focus:before {
    left: -1.5625rem;
    top: .285714286rem
}

.markdown-body #write>h6.md-focus:before {
    left: -1.5625rem;
    top: .285714286rem
}

.markdown-body .md-image>.md-meta {
    border-radius: 3px;
    padding: 2px 0 0 4px;
    font-size: .9em;
    color: inherit
}

.markdown-body .md-tag {
    color: #a7a7a7;
    opacity: 1
}

.markdown-body .md-toc {
    margin-top: 20px; /* 40rpx → 20px */
    padding-bottom: 20px; /* 40rpx → 20px */
}

.markdown-body .sidebar-tabs {
    border-bottom: none
}

.markdown-body #typora-quick-open {
    border: 1px solid #ddd;
    background-color: #f8f8f8
}

.markdown-body #typora-quick-open-item {
    background-color: #fafafa;
    border-color: #fefefe #e5e5e5 #e5e5e5 #eee;
    border-style: solid;
    border-width: 1px
}

.markdown-body .on-focus-mode blockquote {
    border-left-color: rgba(85, 85, 85, .12)
}

.markdown-body .file-node-content:hover .file-node-icon,
.markdown-body .file-node-content:hover .file-node-open-state {
    visibility: visible
}

.markdown-body .mac-seamless-mode #typora-sidebar {
    background-color: #fafafa;
    background-color: var(--side-bar-bg-color)
}

.markdown-body .md-lang {
    color: #b4654d
}

.markdown-body .html-for-mac .context-menu {
    --item-hover-bg-color: #E6F0FE
}

.markdown-body #md-notification .btn {
    border: 0
}

.markdown-body .dropdown-menu .divider {
    border-color: #e5e5e5
}

.markdown-body .ty-preferences .window-content {
    background-color: #fafafa
}

.markdown-body .ty-preferences .nav-group-item.active {
    color: #fff;
    background: #999
}