@charset "utf-8";
/**********************************************************
 * Win10 磁贴风格统一层
 * 与导航主页 / BIC 查询 / 集装箱查询页面保持一致的设计语言：
 * 深色底、方形直角、Segoe UI 字体族、统一强调色 #0078D4、
 * 磁贴式悬停描边。本文件在所有样式表之后加载，只覆盖视觉层，
 * 不改变任何布局结构与交互逻辑。
 *********************************************************/

:root {
    --bg: #1b1b1b;
    --bg-2: #252526;
    --bg-3: #333334;
    --fg: #f5f5f5;
    --muted: rgba(255, 255, 255, .58);
    --line: rgba(255, 255, 255, .14);
    --focus: #7cc3ff;
    --accent: #0078D4;
    --accent-d: #005A9E;
    --tile-hover: inset 0 0 0 2px rgba(255, 255, 255, .75);
    --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

/* ---------- 全局基底（与导航主页一致的纯深色背景） ---------- */
html, body {
    background: var(--bg) !important;
    font-family: var(--font);
}

/* 系统光标：去除原站的自定义光标文件 */
html, body {
    cursor: default;
}

#music-info, #toggleTlyric, .bs, .btn, .auth-name, .music-album,
.cancel-btn, .close-btn, .info-btn, .ld, .list-item, .login-in,
.progress, .search-submit, .sheet-item, .tb, .volume-box,
#lyric-full, #lyric-activea, option, a,
.custom-sheet-item, .custom-sheet-item-user {
    cursor: pointer !important;
}

input, textarea {
    cursor: text !important;
}

body, input, button, select, textarea, option,
.btn, .search-submit, .sheet-title-bar, .custom-sheet-item,
.custom-sheet-item-user, .list-head, .sheet-playing:after,
.sheetlistname, .week, .solarlunar, .layui-layer {
    font-family: var(--font) !important;
}

::selection, ::-moz-selection, ::-webkit-selection {
    background: rgba(0, 120, 212, .45);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 1px;
}

/* ---------- 直角化（方形磁贴语言） ---------- */
.container, .btn-bar, .data-area, .player, .footer .container,
.btn, .gdid, .list-item, .list-playing, .list-playing .list-num,
.sheet-item, .sheet-item-ad, .music_co, .music_co-ad, .music_ti, .music_ti-ad,
.search-group > input, .search-group > button,
.sheetlistname, .custom, .login-btn, .share-url, .tb,
.layui-layer, .layui-layer-dialog .layui-layer-content,
.layui-layer-title, .layui-layer-btn a, .layui-layer-prompt .layui-layer-input,
.mkpgb-bar, .mkpgb-cur, .mkpgb-dot, .modal-content, #closeModal {
    border-radius: 0 !important;
}

/* ---------- 主面板（按钮条 / 数据区 / 播放区 / 控制条） ---------- */
.container, .btn-bar, .data-area, .player, .footer .container, .sheetlistname {
    box-sizing: border-box;
}

.btn-bar {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-bottom: none;
}

.data-area {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-top: none;
}

.player {
    background: var(--bg-2);
    border: 1px solid var(--line);
}

.full-player {
    background: rgba(27, 27, 27, .92);
}

.footer .container {
    background: var(--bg-2);
    border: 1px solid var(--line);
}

/* ---------- 顶部选项卡按钮（磁贴式） ---------- */
.btn {
    background: var(--bg-3);
    backdrop-filter: none;
}

.btn:hover {
    background: #3d3d3f;
    box-shadow: var(--tile-hover);
}

.btn:active {
    transform: scale(.96);
}

.btn.active, .active {
    background: var(--accent) !important;
    color: #fff;
}

/* 右侧三个图标按钮（链接 / 关于 / 背景设置） */
.linkbutton {
    border-radius: 0 !important;
}

.linkbutton:hover {
    color: #fff;
    border-radius: 0;
    box-shadow: var(--tile-hover);
}

.lb:hover, .lc:hover, .lf:hover, .le:hover, .la:hover {
    filter: none !important;
}

/* ---------- 列表 ---------- */
.list-item:hover {
    background-image: none;
    background-color: rgba(255, 255, 255, .06);
    box-shadow: inset 2px 0 0 var(--accent);
    backdrop-filter: none;
}

.list-playing {
    background-image: none !important;
    background-color: rgba(0, 120, 212, .18) !important;
    box-shadow: inset 2px 0 0 var(--accent);
    backdrop-filter: none !important;
}

.list-head {
    color: var(--muted);
}

.auth-name, .music-album {
    color: var(--muted);
}

.list-item:hover .auth-name, .list-item:hover .music-album,
.list-playing .auth-name, .list-playing .music-album {
    color: var(--fg);
}

/* ---------- 歌单磁贴 ---------- */
.sheet-item, .sheet-item-ad {
    background: var(--bg-3);
}

.sheet-item:hover, .sheet-item-ad:hover {
    box-shadow: var(--tile-hover);
}

.music_co, .music_co-ad {
    background: var(--bg);
}

.music_co:hover, .sheet-item:hover .music_co {
    filter: brightness(1.1);
}

.music_ti, .music_ti-ad {
    color: var(--muted);
}

.music_ti:hover, .sheet-item:hover .music_ti,
.music_ti-ad:hover, .sheet-item:hover .music_ti-ad {
    color: var(--fg);
    backdrop-filter: none;
}

.custom-sheet-item, .custom-sheet-item-user {
    background: var(--bg-3);
    backdrop-filter: none;
}

.custom-sheet-item:hover, .custom-sheet-item-user:hover {
    box-shadow: inset 2px 0 0 var(--accent);
}

.sheetlistname {
    background: var(--bg-3);
    border: 1px solid var(--line);
    backdrop-filter: none;
}

.wdname {
    color: var(--focus);
}

.login-btn {
    background: var(--bg-3);
    backdrop-filter: none;
}

.login-btn:hover {
    color: #fff;
    box-shadow: var(--tile-hover);
}

/* ---------- 右侧播放区：圆形旋转封面 ---------- */
.mc {
    border-radius: 50% !important;
}

.music-cover {
    border-radius: 50% !important;
    box-shadow: 0 0 0 1px var(--line);
    filter: none;
}

.lyric-name {
    filter: none;
}

/* ---------- 进度条 / 音量条 ---------- */
.mkpgb-bar {
    background-color: rgba(255, 255, 255, .14);
}

.mkpgb-cur {
    background-color: var(--accent);
}

.mkpgb-dot {
    background-color: #fff;
    width: 10px;
    height: 10px;
    margin-top: -4px;
}

#music-progress .mkpgb-color {
    background: var(--accent);
}

#music-progress .mkpgb-dot {
    background: #fff;
}

.dot-move {
    -webkit-box-shadow: 0 0 10px rgba(0, 120, 212, .8);
    animation: none;
}

.mkpgb-ttime, .mkpgb-ztime {
    color: var(--muted);
}

.player-btn {
    opacity: .85;
}

.player-btn:hover {
    opacity: 1;
    transform: none;
    filter: brightness(1.25);
}

.player-btn:active {
    transform: scale(.92);
}

/* ---------- 搜索弹层内部 ---------- */
.search-group > input {
    background: var(--bg-3);
    border: 1px solid var(--line);
    color: var(--fg);
}

.search-group > input:focus {
    border-color: var(--accent);
}

.search-group > button {
    background: var(--accent);
    color: #fff;
}

.search-group > button:hover {
    background: var(--accent-d);
    color: #fff;
}

.radio_type:checked + label,
.radio_type_disable:checked + label {
    color: var(--focus);
}

/* ---------- 页面底部版权（与导航主页一致） ---------- */
.page-copy {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 6px;
    z-index: 5;
    text-align: center;
    font-size: 11px;
    line-height: 16px;
    color: var(--muted);
    pointer-events: none;
    user-select: none;
}

.page-copy .seg {
    display: inline-block;
    white-space: nowrap;
}

/* 底部播放栏上移，与版权行之间留出空隙 */
.footer {
    bottom: 36px !important;
}

.center {
    bottom: 136px !important;
}

/* ---------- layer 弹窗深色化 ---------- */
.layui-layer {
    background: var(--bg-2) !important;
    border: 1px solid var(--line) !important;
    color: var(--fg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .55) !important;
}

.layui-layer-title {
    background: var(--bg-3) !important;
    color: var(--fg) !important;
    border-bottom: 1px solid var(--line) !important;
}

.layui-layer-dialog .layui-layer-content {
    background: transparent !important;
    color: var(--fg);
}

.layui-layer-content {
    color: var(--fg);
}

.layui-layer-btn a {
    background: var(--bg-3);
    border: 1px solid var(--line);
    color: var(--fg);
}

.layui-layer-btn .layui-layer-btn0 {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.layui-layer-btn a:hover {
    background: var(--accent-d);
    border-color: var(--accent-d);
    color: #fff;
}

.layui-layer-prompt .layui-layer-input {
    background: var(--bg-3);
    border: 1px solid var(--line);
    color: var(--fg) !important;
}

.layui-layer-setwin a {
    color: var(--muted);
}

/* 弹窗关闭按钮：扩大触控热区（视觉尺寸不变），避免手机上误触周边内容 */
.layui-layer-setwin .layui-layer-close {
    position: relative;
}

.layui-layer-setwin .layui-layer-close::after {
    content: "";
    position: absolute;
    top: -12px;
    right: -12px;
    bottom: -12px;
    left: -12px;
}

/* 分享弹窗中的链接框 */
.share-url {
    background: var(--bg-3);
    border: 1px solid var(--line);
    box-shadow: none;
    color: var(--fg);
}

.share-tips {
    color: var(--muted);
}

/* ---------- tippy 气泡统一深色 ---------- */
.tippy-box[data-theme~=la], .tippy-box[data-theme~=lb],
.tippy-box[data-theme~=li], .tippy-box[data-theme~=lw],
.tippy-box[data-theme~=ld] {
    color: var(--fg);
    background-color: var(--bg-3);
    border: 1px solid var(--line);
}

.tippy-box[data-theme~=la][data-placement^=top] > .tippy-arrow:before,
.tippy-box[data-theme~=lb][data-placement^=top] > .tippy-arrow:before,
.tippy-box[data-theme~=li][data-placement^=top] > .tippy-arrow:before,
.tippy-box[data-theme~=lw][data-placement^=top] > .tippy-arrow:before,
.tippy-box[data-theme~=ld][data-placement^=top] > .tippy-arrow:before {
    border-top-color: var(--bg-3);
}

.tippy-box[data-theme~=lw][data-placement^=bottom] > .tippy-arrow:before {
    border-bottom-color: var(--bg-3);
}

.tippy-box[data-theme~=ld][data-placement^=left] > .tippy-arrow:before {
    border-left-color: var(--bg-3);
}

/* ---------- 公告模态框 ---------- */
.modal-content {
    background-color: var(--bg-2);
    border: 1px solid var(--line);
    color: var(--fg);
    backdrop-filter: none;
}

#closeModal {
    background: var(--accent);
}

/* ---------- 其他 ---------- */
.fotinfo {
    color: var(--muted);
}

.info-btn {
    background: var(--bg-3);
}

.info-btn:hover {
    background: var(--accent);
    color: #fff;
}

.fenlei:hover {
    filter: none;
    color: var(--focus);
}

/* ---------- 小屏适配补充 ---------- */
@media screen and (max-width: 1200px) {
    /* 原样式在 ≤1200px 时去掉面板底色，这里恢复统一深色面板 */
    .btn-bar, .data-area, .player, .footer .container {
        background: var(--bg-2);
    }
}

@media screen and (max-width: 900px) {
    .btn-box {
        background-color: var(--bg-2);
        backdrop-filter: none;
    }

    /* 移动端播放栏上移，与版权行之间留出空隙 */
    .footer {
        bottom: 30px !important;
    }

    .center {
        bottom: 110px !important;
    }

    .btn {
        background: transparent;
    }

    .btn:hover {
        background: rgba(255, 255, 255, .06);
        box-shadow: none;
    }

    .btn.active, .active {
        background: var(--accent) !important;
    }

    .login-btn, .custom {
        background: var(--bg-3) !important;
    }
}

/* ---------- 降低动态效果偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
    .music-cover {
        animation: none !important;
    }

    html, body, .btn, .list-item, .sheet-item, .music_co {
        transition: none !important;
    }
}