/* ============================================
   idrak Technology - Global Reset & Base Styles
   简洁、现代、高性能的基础样式重置
   ============================================ */

/* ── Box Sizing ── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ── Reset ── */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video, button, input, textarea {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* ── HTML5 元素 ── */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

/* ── 基础 ── */
html {
    font-size: 62.5%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-size: 14px;
    line-height: 1.6;
    color: #f1f5f9;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
}

/* ── 列表 ── */
ol, ul, li {
    list-style: none;
}

/* ── 链接 ── */
a {
    color: #818cf8;
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: #a78bfa;
}

/* ── 图片 ── */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border: 0;
}

/* ── 按钮 ── */
button {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    background: none;
    border: none;
    font-family: inherit;
}

/* ── 输入 ── */
input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ── 清除浮动 ── */
.clearfix::after {
    content: "";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}
.clearfix {
    *zoom: 1;
}

/* ── 选中 ── */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: #fff;
}
::-moz-selection {
    background: rgba(99, 102, 241, 0.3);
    color: #fff;
}

/* ── 滚动条 ── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}
