.tool-main {
    flex: 1;
    padding: 0.25rem 0;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 100px);  /* 减去头部和页脚的高度 */
    background: var(--gray-50);
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0.75rem;
    border-radius: 12px;

}

.tool-header h1 {
    font-size: 1.25rem;
    color: var(--gray-900);
}

.tool-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn {
    height: 1.8rem;
    padding: 0 1rem;
    border: none;
    border-radius: 6px;
    background: var(--primary);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* 清空按钮警告色样式 */
#clearBtn {
    background: #dc2626;  /* 红色背景 */
}

#clearBtn:hover {
    background: #b91c1c;  /* 深红色背景 */
}

.tool-content {
    flex: 1;
    overflow: hidden;
}

.editor-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    height: calc(80vh);
    padding: 0 0.75rem 0;
}

.editor-input {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

.editor-input:focus-within {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.json-input {
    flex: 1;
    padding: 12px;
    background-color: #1a1f2e;
    color: #e2e8f0;
    font-family: monospace;
    font-size: 16px;
    line-height: 24px;
    border: none;
    outline: none;
    resize: none;
    white-space: pre;
    tab-size: 4;
    overflow: auto;
    cursor: text;  /* 文本区域显示文本光标 */
}

/* 滚动条样式 */
.json-input::-webkit-scrollbar,
.json-view::-webkit-scrollbar {
    width: 12px;
    height: 12px;
    cursor: pointer;  /* 滚动条显示指针 */
}

.json-input::-webkit-scrollbar-track,
.json-view::-webkit-scrollbar-track {
    background: #1a1f2e;
    cursor: pointer;  /* 滚动条轨道显示指针 */
}

.json-input::-webkit-scrollbar-thumb,
.json-view::-webkit-scrollbar-thumb {
    background-color: #374151;
    border-radius: 6px;
    border: 3px solid #1a1f2e;
    cursor: pointer;  /* 滚动条滑块显示指针 */
}

/* 滚动条悬停样式 */
.json-input::-webkit-scrollbar-thumb:hover,
.json-view::-webkit-scrollbar-thumb:hover {
    background-color: #4b5563;
}

/* 水平滚动条区域样式 */
.json-input::-webkit-scrollbar-button:horizontal,
.json-view::-webkit-scrollbar-button:horizontal {
    cursor: pointer;  /* 水平滚动按钮显示指针 */
}

/* 垂直滚动条区域样式 */
.json-input::-webkit-scrollbar-button:vertical,
.json-view::-webkit-scrollbar-button:vertical {
    cursor: pointer;  /* 垂直滚动按钮显示指针 */
}

.input-error {
    display: none;
    padding: 0.75rem;
    background-color: #fee2e2;
    color: #dc2626;
    font-size: 0.875rem;
    border-top: 1px solid #fecaca;
}

.editor-container {
    flex: 1;
    background: #1e293b;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.editor-wrapper {
    flex: 1;
    display: flex;
    overflow: hidden;
    background: #1e293b;
    flex-direction: column;
}

.input-container {
    position: relative;
    display: flex;
    height: 100%;
    background-color: #1a1f2e;
    border-radius: 4px;
    overflow: hidden;
    flex: 1;  /* 确保左侧占据一半空间 */
}

.json-view {
    padding: 0.75rem;
    overflow: auto;
    color: #e2e8f0;
    flex: 1;  /* 确保右侧占据一半空间 */
    background: #1e293b;
    font-family: monospace;
    line-height: 160%;
    font-weight: 700;
    white-space: pre;
}

/* 错误提示样式 */
.json-error {
    padding: 1.5rem;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    background: #1e293b;
    border-radius: 8px;
}

.error-type {
    color: #ef4444;
    font-size: 1.1em;
    font-weight: 500;
    margin-bottom: 1rem;
}

.error-position {
    color: #ef4444;
    font-size: 1.1em;
    margin-top: 0.5rem;
}

/* JSON语法高亮 */
.json-key { 
    color: #4fdee5;  /* 蓝色 */
    font-size: 16px;
    font-weight: 700;
    line-height: 160%;
}
.json-string { 
    color: #01ff70;  /* 青色 */
    font-size: 16px;
    font-weight: 700;
    line-height: 160%;
}
.json-number { 
    color: #f5b041;  /* 红色 */
    font-size: 16px;
    font-weight: 700;
    line-height: 160%;
}
.json-object {
    color: #e2e8f0;  /* 白色 */
    font-size: 16px;
    font-weight: 700;
    line-height: 160%;
}
.json-array {
    color: #fbbf24;  /* 黄色 */
    font-size: 16px;
    font-weight: 700;
    line-height: 160%;
}
.json-boolean { 
    color: #af7ac5;  /* 紫色 */
    font-size: 16px;
    font-weight: 700;
    line-height: 160%;
}
.json-null { 
    color: #f87171;  /* 红色 */
    font-size: 16px;
    font-weight: 700;
    line-height: 160%;
}


/* 项目数量提示 */
.json-summary {
    color: #475569;
    font-size: 16px;
    font-weight: 700;
    margin-left: 0.25rem;
    display: none;
    line-height: 24px;
}

.json-expandable.collapsed .json-summary {
    display: inline-block;
}




/* 展开/折叠功能 */
.json-expandable {
    position: relative;
    padding-left: 1.5rem;
    white-space: nowrap;
    line-height: 24px;
}

.json-expander {
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    cursor: pointer;
    user-select: none;
    color: #64748b;
    line-height: 24px;
    text-align: center;
}

.json-expander::before {
    content: '▾';
    font-size: 20px;
}

.json-content {
    border-left: 1px solid #334155;
    margin-left: 2rem;
    display: block;
}

.json-line {
    padding-left: 1.5rem;
    left: 0;
    height: 24px;
    line-height: 24px;
    margin-left: -8px;  /* 向左偏移一点点 */
}

/* 调整折叠时的样式 */
.json-expandable.collapsed {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    height: 24px;
}

.json-expandable.collapsed .json-content {
    display: none;
}

.json-expandable.collapsed .json-expander::before {
    content: '▸';
}

/* 调整括号和逗号的间距 */
.json-object {
    color: #e2e8f0;
    display: inline;
    margin-right: 0.15rem;
}

/* 调整缩进和对齐 */
.json-expandable {
    display: block;
}

/* 调整大括号与内容的间距 */
.json-expandable > .json-content {
    display: block;
    margin-left: 0.5rem;
}

/* 调整不可展开字段的缩进，使其与可展开字段对齐 */
.json-expandable .json-line {
    padding-left: 1.5rem;
    left: 0;
    height: 24px;
    line-height: 24px;
    margin-left: 0;  /* 重置嵌套字段的偏移 */
}

/* 提示框样式 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    background: #059669;
    color: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.base64-input {
    flex: 1;
    width: 100%;
    padding: 1rem 1.25rem;
    background: #1e293b;
    color: #e2e8f0;
    border: none;
    font-family: monospace;
    font-size: 1rem;
    line-height: 1.5;
    resize: none;
    outline: none;
}

.base64-output {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    font-family: monospace;
    font-size: 16px;
    line-height: 24px;
    color: #e2e8f0;
}

.output-content {
    flex: 1;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-all;
    color: #e2e8f0;
    font-family: monospace;
    font-size: 1rem;
    line-height: 1.5;
    padding: 1rem 1.25rem;
}

.output-status {
    padding: 0.75rem;
    font-size: 0.875rem;
    display: none;
}

.output-status.success {
    display: block;
    color: #4ade80;
    background-color: #064e3b;
    border-top: 1px solid #065f46;
}

.output-status.error {
    display: block;
    color: #dc2626;
    background-color: #fee2e2;
    border-top: 1px solid #fecaca;
}

.file-input {
    display: none;
}

label.btn {
    display: inline-flex;
    align-items: center;
}

label.btn:hover {
    background: var(--primary-dark);
}

.swap-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: auto 0;
    color: #64748b;
    font-size: 20px;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}

.swap-icon:hover {
    color: #e2e8f0;
}

.tab-btn {
    /* padding: 0.75rem 1rem;
    color: var(--gray-600);
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
    text-decoration: none; 
    padding: 0.75rem 1rem;*/

    /* color: var(--gray-600);
    border: none;
    background: none;
    cursor: pointer; */
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
    position: relative;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--primary);
}

.select-btn {
    padding: 0.5rem;
    border: 1px solid var(--primary);
    border-radius: 6px;
    background: transparent;
    color: var(--primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    line-height: normal;
    font-family: inherit;
    margin-right: 0.5rem;
}

.select-btn:hover {
    background: rgba(var(--primary-rgb), 0.1);
}

.select-btn option {
    background: #1e293b;
    color: var(--gray-800);
}

.select-md5 {
    height: 2rem;
    padding: 0 0.875rem;
    border: 1px solid var(--primary);
    border-radius: 6px;
    background: white;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    line-height: 1;
    min-width: 110px;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.625rem center;
    padding-right: 2rem;
}

.select-md5:hover {
    border-color: var(--primary-dark);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.select-md5:focus {
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.http-request-line {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    margin-right: 1rem;
}

.http-url-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--primary);
    border-radius: 6px;
    background: transparent;
    color: var(--primary);
    font-size: 14px;
    outline: none;
}

.http-url-input:focus {
    border-color: var(--primary-dark);
}

.http-tabs {
    display: flex;
    border-bottom: 1px solid #334155;
    padding: 0 0.75rem;
}

.http-tab {
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    color: #64748b;
    cursor: pointer;
    font-size: 14px;
    position: relative;
    margin-bottom: -1px;
}

.http-tab.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.http-tab:hover {
    color: var(--primary);
}

.http-tab-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.headers-toolbar,
.body-toolbar {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #334155;
    display: flex;
    gap: 0.5rem;
}

.form-data-list {
    padding: 0.75rem;
}

.form-data-item {
    position: relative;  /* 为绝对定位的 file-label 提供参考点 */
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.form-data-item input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--primary);
    border-radius: 6px;
    background: transparent;
    color: #e2e8f0;
    font-size: 14px;
    outline: none;
}

.form-data-item button {
    padding: 0.5rem;
    border: none;
    background: #dc2626;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

.add-form-data,
.add-form-file {
    margin: 0.75rem;
    flex: 1;
    display: inline-block;
}

.add-form-file {
    background: #dc2626 !important;  /* 警告色 */
}

.add-form-file:hover {
    background: #b91c1c !important;  /* 深警告色 */
}

.file-input-wrapper {
    flex: 2;
    position: relative;
    display: flex;
    align-items: center;
}

.last-file-name {
    position: absolute;
    right: 8px;
    color: #dc2626;
    font-size: 12px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
    cursor: help;
}

.form-file {
    width: 100%;
    padding: 0.375rem;
    border: 1px solid var(--primary);
    border-radius: 6px;
    background: transparent;
    color: #e2e8f0;
    font-size: 14px;
    cursor: pointer;
}

.form-file::-webkit-file-upload-button {
    padding: 0.25rem 0.5rem;
    border: none;
    border-radius: 4px;
    background: var(--primary);
    color: white;
    font-size: 14px;
    cursor: pointer;
    margin-right: 0.5rem;
}

.form-file::-webkit-file-upload-button:hover {
    background: var(--primary-dark);
}

.headers-list {
    padding: 0.75rem;
    flex: 1;
    overflow-y: auto;
}

.header-item {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.header-item input {
    padding: 0.5rem;
    border: 1px solid var(--primary);
    border-radius: 6px;
    background: transparent;
    color: #e2e8f0;
    font-size: 14px;
    outline: none;
}

.header-key {
    flex: 1;
}

.header-value {
    flex: 2;
}

.remove-header {
    padding: 0.5rem;
    border: none;
    background: #dc2626;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

.add-header {
    margin: 0.75rem;
}

.body-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

#rawBody {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#bodyInput {
    flex: 1;
    height: 100%;
    resize: none;
}

.file-label {
    position: absolute;
    left: calc(100% + 0.5rem);
    top: 50%;
    transform: translateY(-50%);
    color: #dc2626;
    white-space: nowrap;
    font-size: 12px;
    max-width: 150px;  /* 限制最大宽度 */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 添加悬停提示框样式 */
.last-file-name:hover::after {
    content: attr(data-filename);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 12px;
    color: #e2e8f0;
    z-index: 1000;
}

/* 视觉隐藏但对屏幕阅读器可见 */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.qrcode-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.qrcode-image {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    box-shadow: 
        0 0 60px rgba(var(--primary-rgb), 0.1),
        0 0 30px rgba(var(--primary-rgb), 0.1),
        0 0 15px rgba(var(--primary-rgb), 0.1),
        0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qrcode-image:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 0 80px rgba(var(--primary-rgb), 0.2),
        0 0 40px rgba(var(--primary-rgb), 0.15),
        0 0 20px rgba(var(--primary-rgb), 0.1),
        0 8px 12px rgba(0, 0, 0, 0.15);
}

.qrcode-content {
    text-align: left;
    min-width: 300px;
}

.qrcode-title {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
    font-weight: 600;
}

.qrcode-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.qrcode-features li {
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.qrcode-tip {
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* 软件下载页面样式 */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem 0;
}

.software-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.software-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.software-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.software-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

.software-info {
    flex: 1;
}

.software-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.software-version {
    font-size: 0.875rem;
    color: var(--gray-700);
}

.software-desc {
    color: var(--gray-700);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.software-actions {
    display: flex;
    gap: 0.5rem;
}

.software-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    background: var(--primary);
    color: white;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.875rem;
    transition: background-color 0.2s;
}

.software-btn:hover {
    background: var(--primary-dark);
}

/* 图片工具样式 */
.imgt-workspace {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
    min-height: 400px;
}

.imgt-dropzone {
    border: 2px dashed var(--gray-200);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.imgt-dropzone:hover,
.imgt-dropzone.dragover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

.imgt-dropzone-content {
    color: var(--gray-500);
}

.imgt-dropzone-content svg {
    margin-bottom: 1rem;
    stroke: var(--gray-400);
}

.imgt-dropzone-content p {
    margin: 0;
    font-size: 0.875rem;
}

.imgt-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.imgt-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.imgt-preview-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.imgt-preview-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.5rem;
    font-size: 0.75rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.imgt-preview-item:hover .imgt-preview-info {
    transform: translateY(0);
}

.imgt-preview-size {
    display: block;
    margin-bottom: 0.25rem;
}

.imgt-preview-name {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 图片编辑器样式 */
.imgt-editor {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.imgt-editor-canvas {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.imgt-editor-tools {
    width: 250px;
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
}

.imgt-tool-group {
    margin-bottom: 1.5rem;
}

.imgt-tool-group:last-child {
    margin-bottom: 0;
}

.imgt-tool-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--gray-700);
}

.imgt-tool-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* 图片取色器样式 */
.imgt-color-picker {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.imgt-color-canvas {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    min-height: 400px;
    position: relative;
    cursor: crosshair;
}

.imgt-color-info {
    width: 250px;
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
}

.imgt-color-preview {
    width: 100%;
    height: 100px;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid var(--gray-200);
}

.imgt-color-values {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.imgt-color-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.imgt-color-label {
    width: 60px;
    font-size: 0.875rem;
    color: var(--gray-700);
}

.imgt-color-input {
    flex: 1;
    padding: 0.375rem 0.5rem;
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: monospace;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .editor-split {
        grid-template-columns: 1fr;
        height: auto;
        min-height: calc(72vh);
    }

    .editor-input {
        height: 40vh;
        min-height: 200px;
    }

    .editor-container {
        height: 40vh;
        min-height: 200px;
    }

    .json-input {
        height: 100%;
        max-height: none;
    }

    .json-view {
        height: 100%;
        max-height: none;
    }

    .tool-header {
        flex-direction: column;
        gap: 1rem;
    }

    .tool-actions {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        width: 100%;
    }

    .btn, .select-md5 {
        
        width: 100%;
        min-width: 0;
        padding: 0 0.75rem;
        font-size: 0.875rem;
    }
}

/* 输入区域样式 */
.input-container {
    position: relative;
    display: flex;
    height: 100%;
    background-color: #1a1f2e;
    border-radius: 4px;
    overflow: hidden;
}

.editor-area {
    position: relative;
    display: flex;
    flex: 1;
    min-width: 0;
}

/* 行号区域样式 */
.line-numbers {
    padding: 12px 8px;
    width: 40px;
    min-width: 40px;
    background-color: #151922;
    color: #64748b;
    font-family: monospace;
    font-size: 16px;
    line-height: 24px;  /* 改为固定行高 */
    text-align: right;
    user-select: none;
    border-right: 1px solid #2d3748;
}

.line-numbers > div {
    height: 24px;  /* 与行高保持一致 */
}

/* 按钮样式 */
.expand-collapse-btns {
    position: absolute;
    top: 8px;
    right: 48px;  /* 距离右侧48px，为全屏按钮留出空间 */
    display: flex;
    gap: 4px;
    z-index: 100;
}

.expand-all-btn,
.collapse-all-btn {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background-color: #2d3748;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

/* 全屏按钮样式 */
.fullscreen-btn {
    position: absolute;
    top: 8px;
    right: 8px;  /* 固定在右上角 */
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background-color: #2d3748;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: background-color 0.2s;
}

/* 按钮悬停效果 */
.expand-all-btn:hover,
.collapse-all-btn:hover,
.fullscreen-btn:hover {
    background-color: #4a5568;
}

/* 按钮内的图标 */
.expand-all-btn svg,
.collapse-all-btn svg,
.fullscreen-btn svg {
    width: 16px;
    height: 16px;
    fill: #e2e8f0;
}

/* 全屏模式样式 */
.editor-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background-color: #1e293b;
    padding: 20px;
    overflow: auto;
    height: 100vh;
    width: 100vw;
    box-sizing: border-box;
}

.editor-container.fullscreen .editor-wrapper {
    height: calc(100vh - 40px);
}

/* 错误提示样式 */
.json-error {
    padding: 1.5rem;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    background: #1e293b;
    border-radius: 8px;
}

/* 工具容器 */
.tool-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    height: calc(100vh - 180px);  /* 减去页脚高度(120px)和header高度(60px) */
    padding: 0 0.75rem 0;
}

@media (max-width: 768px) {
    .tool-container {
        height: calc(100vh - 160px);  /* 移动端可能页脚更小 */
    }
} 