html {
    scroll-behavior: smooth;
    font-size: 17px;
}

body {
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
    background-color: #f6f4ee;
    color: #334155;
}

/* 护眼：低蓝光暖白底，减少纯白大面积刺激 */
.bg-white {
    background-color: #fffdf9 !important;
}

.bg-slate-50,
.bg-slate-50\/60,
.bg-slate-50\/70 {
    background-color: #f3f0e8 !important;
}

@media (min-width: 1280px) {
    html {
        font-size: 18px;
    }
}

pre {
    font-family: inherit;
}

details > summary::-webkit-details-marker {
    display: none;
}

details > summary {
    list-style: none;
}

details > summary::before {
    content: "▸";
    display: inline-block;
    margin-right: 0.35rem;
    color: #94a3b8;
    transition: transform 0.15s ease;
}

details[open] > summary::before {
    transform: rotate(90deg);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

::-webkit-scrollbar-track {
    background: transparent;
}
