/* ============================================================
   全站设计润色（design.css · 2026-11-20）
   与首页一致的品牌 tokens + 全局交互细节，附加式、可整文件回滚。
   ============================================================ */

:root {
    --acc: #0284c7;
    --acc-2: #38bdf8;
    --acc-soft: rgba(2, 132, 199, .13);
    --ok: #0f9d76;
}

.dark {
    --acc: #38bdf8;
    --acc-2: #7dd3fc;
    --acc-soft: rgba(56, 189, 248, .16);
    --ok: #34d399;
}

/* 文字渲染更平滑 */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 选中文本 */
::selection {
    background: var(--acc-soft);
}

/* 统一焦点环：品牌色、清晰可见（无障碍） */
:focus-visible {
    outline: 2px solid var(--acc) !important;
    outline-offset: 2px;
    border-radius: 4px;
}

/* 交互元素统一过渡（不含 transform，避免覆盖卡片自己的位移动画） */
a, button, input, select, textarea, summary {
    transition: color .15s ease, background-color .15s ease,
                border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}

/* 占位符对比度 */
::placeholder {
    opacity: 1;
    color: #94a3b8;
}
.dark ::placeholder {
    color: #7d8da1;
}

/* 细滚动条 */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(122, 138, 153, .45) transparent;
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
    background: rgba(122, 138, 153, .45);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover {
    background: rgba(122, 138, 153, .68);
    background-clip: content-box;
}

/* 输入框聚焦时给出品牌色边框（有边框的元素） */
input:focus, select:focus, textarea:focus {
    border-color: var(--acc);
    box-shadow: 0 0 0 3px var(--acc-soft);
}

/* 图片选择更干净 */
img {
    -webkit-user-drag: none;
}
