/* =====================================================
   ACG Web — elements.css
   基础元素样式：滚动条 · 光标 · 分割线 · 标题 · 超链接
   ===================================================== */

/* ---------- 滚动条 ---------- */
body::-webkit-scrollbar {
    width: 5px;
}
body::-webkit-scrollbar-track {
    background: transparent;
}
body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #49b1f5, #a78bfa);
    border-radius: 6px;
}
body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2a92d8, #7c5fd4);
}

/* 左侧区域滚动条 */
.primary-container > .left-area::-webkit-scrollbar {
    width: 3px;
}
.primary-container > .left-area::-webkit-scrollbar-track {
    background: transparent;
}
.primary-container > .left-area::-webkit-scrollbar-thumb {
    background: rgba(73,177,245,0.30);
    border-radius: 3px;
}

/* ---------- 鼠标指针 ---------- */
* {
    cursor: url(https://cdn.jsdelivr.net/gh/honjun/cdn@1.6/img/cursor/normal.cur), auto;
}
p, span {
    cursor: url(https://cdn.jsdelivr.net/gh/honjun/cdn@1.6/img/cursor/texto.cur), auto;
}
a {
    background-color: transparent;
    cursor: url(https://cdn.jsdelivr.net/gh/honjun/cdn@1.6/img/cursor/ayuda.cur), auto;
}

/* ---------- 文本选中 ---------- */
::selection {
    background: rgba(73,177,245,0.20);
    color: #1e2d42;
    text-shadow: none;
}

/* ---------- 分割线 ---------- */
hr {
    position: relative;
    overflow: visible;
    width: calc(100% - 4px);
    height: 0;
    margin: 36px auto;
    box-sizing: content-box;
    border: none;
    border-top: 2px dashed rgba(73,177,245,0.40);
}
hr::before {
    content: "\f0c4";
    font-family: "Font Awesome 6 Free";
    font-weight: bold;
    font-size: 16px;
    position: absolute;
    top: -11px;
    left: 5%;
    z-index: 1;
    color: #49b1f5;
    background: var(--bg-body, #eef2f7);
    padding: 0 6px;
    transition: left 1s ease-in-out;
}
hr:hover::before {
    left: calc(5% + 8px);
    color: #a78bfa;
}

/* ---------- 标题 ---------- */
h1, h2, h3, h4, h5, h6 {
    position: relative;
    margin: 18px 0 12px 0;
    font-family: "Outfit", "Noto Sans SC", sans-serif;
    font-weight: 700;
    color: #1e2d42;
    letter-spacing: 0.01em;
    line-height: 1.35;
}

h1 { font-size: 2em; }
h2 {
    font-size: 1.4em;
    padding-left: 12px;
    border-left: 4px solid;
    border-image: linear-gradient(180deg, #49b1f5, #a78bfa) 1;
}
h3 { font-size: 1.15em; color: #2a4060; }

/* ---------- 超链接 ---------- */
a {
    position: relative;
    color: #2a92d8;
    text-decoration: none;
    background: linear-gradient(to right, #49b1f5, #a78bfa) no-repeat right bottom;
    background-size: 0 2px;
    transition: background-size 0.5s ease, color 0.2s ease;
}
.right-area a:hover {
    color: #2a92d8;
    background-position: left bottom;
    background-size: 100% 2px;
}

/* 外链图标 */
.right-area a[target="_blank"] {
    padding-right: 14px;
}
.right-area a[target="_blank"]::after {
    content: "\f35d";
    font-family: "Font Awesome 5 Free";
    position: absolute;
    top: 0;
    right: 0;
    font-size: 9px;
    transform: translate(0%, -20%);
    pointer-events: none;
    color: #a78bfa;
    opacity: 0.7;
}
