body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sharp-ui { border-radius: 2px; }

/* 亮色模式毛玻璃 */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* 暗黑模式毛玻璃覆盖 */
.dark .glass-panel {
    background: rgba(15, 15, 15, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
}


/* 输入框亮/暗适配 */
.search-input {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.1);
    color: #111827;
}
.dark .search-input {
    background: rgba(10, 10, 10, 0.8);
    border-color: #27272a;
    color: #f3f4f6;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(156, 163, 175, 0.3); border-radius: 2px; }
.dark ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); }

@keyframes pulse-slow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}
.ambient-light { animation: pulse-slow 8s infinite ease-in-out; }

/* 文本域专属样式 */
.input-area {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
}
.dark .input-area {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid #27272a;
}

/* 文本域专属样式 */
.input-area {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
}
.dark .input-area {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid #27272a;
}

/* password */
/* 自定义滑块样式 */
input[type=range] {
    -webkit-appearance: none;
    background: transparent;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 8px;
    border-radius: 2px;
    background: #3b82f6;
    cursor: pointer;
    margin-top: -6px;
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(156, 163, 175, 0.3);
    border-radius: 2px;
}
.dark input[type=range]::-webkit-slider-runnable-track {
    background: rgba(255, 255, 255, 0.1);
}

/* 隐藏数字输入框的上下箭头 */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none; margin: 0;
}

/*======json=====*/
/* 修复编辑器割裂：彻底移除高度硬编码，让绝对定位接管 */
#editor {
    width: 100%;
    height: 100%;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: 14px;
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.05); }
}
.ambient-light { animation: pulse-slow 8s infinite ease-in-out; }

/* 二维码 */

/* 柔和的块状单选框 (摒弃边框) */
.style-radio:checked + label {
    background-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}
.dark .style-radio:checked + label {
    background-color: #4f46e5;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.3);
}

/* 柔和的滑块 */
input[type=range] {
    -webkit-appearance: none;
    background: transparent;
}
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px; width: 16px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    margin-top: -6px;
    box-shadow: 0 0 10px rgba(59,130,246,0.3);
}
input[type=range]::-webkit-slider-runnable-track {
    width: 100%; height: 4px;
    background: rgba(156, 163, 175, 0.2);
    border-radius: 2px;
}
