*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, sans-serif;
    touch-action: manipulation;
}
:root{
    --glass-bg: rgba(255,255,255,0.07);
    --glass-border: rgba(255,255,255,0.12);
    --gold: #d6b96a;
    --main-blue: #2980ef;
    --text-white: #ffffff;
    --text-gray: rgba(255,255,255,0.74);
    --card-h: 120px;
}
body.dark-mode{
    --glass-bg: rgba(255,255,255,0.06);
}
body{
    min-height: 100vh;
    padding: 48px 20px 80px;
    background:
        radial-gradient(ellipse 120% 58% at 50% 0%, rgba(226,190,120,.26), transparent 62%),
        linear-gradient(165deg, #0a0a10 0%, #1c1406 32%, #2c1d08 52%, #140d04 78%, #0a0a10 100%);
    color: var(--text-white);
    display: flex;
    flex-direction: column;
}
body.dark-mode{
    background: #000000;
}
body.dark-mode .aurora,
body.dark-mode .stream,
body.dark-mode .sheen,
body.dark-mode .sheen-b{animation:none;opacity:0}
.bg-fx{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
.aurora{position:absolute;border-radius:50%;filter:blur(70px);will-change:transform}
.aurora-a{top:-20vmax;left:-16vmax;width:62vmax;height:62vmax;background:radial-gradient(circle at 40% 40%,rgba(226,190,120,.32),transparent 62%);animation:driftA 26s ease-in-out infinite alternate}
.aurora-b{bottom:-26vmax;right:-18vmax;width:58vmax;height:58vmax;background:radial-gradient(circle at 60% 60%,rgba(206,150,70,.28),transparent 62%);animation:driftB 34s ease-in-out infinite alternate}
.aurora-c{top:6vmax;left:36vmax;width:34vmax;height:34vmax;background:radial-gradient(circle at 50% 50%,rgba(238,216,172,.22),transparent 60%);animation:driftC 24s ease-in-out infinite alternate}
@keyframes driftA{to{transform:translate(6vmax,5vmax) scale(1.08)}}
@keyframes driftB{to{transform:translate(-6vmax,-5vmax) scale(1.1)}}
@keyframes driftC{to{transform:translate(4vmax,-4vmax) scale(1.06)}}
.streams{position:absolute;inset:-6% 0;pointer-events:none}
.stream{
    position:absolute;left:-45vw;height:1px;width:34vw;
    background:linear-gradient(90deg,transparent,rgba(255,226,155,.06) 25%,rgba(255,222,145,.42) 50%,rgba(255,226,155,.06) 75%,transparent);
    border-radius:1px;opacity:0;
    box-shadow:0 0 14px 1px rgba(255,212,130,.20);
}
.stream:nth-child(1){top:18%;animation:flow 20s linear infinite}
.stream:nth-child(2){top:38%;width:26vw;animation:flow 24s linear infinite;animation-delay:7s}
.stream:nth-child(3){top:56%;width:40vw;animation:flow 28s linear infinite;animation-delay:14s}
.stream:nth-child(4){top:74%;width:22vw;animation:flow 22s linear infinite;animation-delay:4s}
.stream:nth-child(5){top:88%;width:30vw;animation:flow 26s linear infinite;animation-delay:17s}
.stream:nth-child(6){top:28%;width:20vw;animation:flow 30s linear infinite;animation-delay:10s}
.stream:nth-child(7){top:64%;width:28vw;animation:flow 33s linear infinite;animation-delay:22s}
.stream:nth-child(8){top:12%;width:24vw;animation:flow 21s linear infinite;animation-delay:5s}
.stream:nth-child(9){top:48%;width:32vw;animation:flow 27s linear infinite;animation-delay:12s}
.stream:nth-child(10){top:82%;width:26vw;animation:flow 23s linear infinite;animation-delay:19s}
@keyframes flow{
    0%{transform:translateX(0) translateY(0);opacity:0}
    16%{opacity:.55}
    80%{opacity:.55}
    100%{transform:translateX(150vw) translateY(-4vh);opacity:0}
}
.sheen{
    position:absolute;top:-30%;bottom:-30%;left:-42%;width:28vmax;
    background:linear-gradient(90deg,transparent,rgba(255,234,175,.08) 45%,rgba(255,244,205,.02) 70%,transparent);
    transform:rotate(14deg);filter:blur(5px);opacity:0;
    animation:sheen 20s ease-in-out infinite;
}
@keyframes sheen{
    0%,16%{left:-44%;opacity:0}
    32%{opacity:.5}
    52%{opacity:.5}
    66%,100%{left:140%;opacity:0}
}
.sheen-b{
    position:absolute;top:-20%;bottom:-20%;left:-46%;width:20vmax;
    background:linear-gradient(90deg,transparent,rgba(255,240,190,.10) 45%,transparent);
    transform:rotate(-12deg);filter:blur(6px);opacity:0;
    animation:sheenB 26s ease-in-out infinite;
}
@keyframes sheenB{
    0%,20%{left:-48%;opacity:0}
    38%{opacity:.5}
    55%{opacity:.5}
    70%,100%{left:140%;opacity:0}
}
.bg-grain{position:absolute;inset:0;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");opacity:.05;mix-blend-mode:overlay}
.bg-vignette{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 40%,transparent 50%,rgba(2,3,8,.74) 100%)}
.splash{
    position:fixed;inset:0;z-index:4000;
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;
    background:
        radial-gradient(ellipse 120% 70% at 50% 30%, rgba(226,190,120,.16), transparent 60%),
        #0a0a10;
    transition:opacity .5s ease;
    /* v7.8：JS 兜底——脚本被禁用、加载失败或解析抛错时，纯 CSS 动画 4.5 秒后自动隐藏，
       避免 splash 永久遮挡页面造成白屏（JS 正常时仍由 JS 在 2.5s/4s 提前移除，互不冲突） */
    animation: splashAutoHide 4.5s forwards;
}
@keyframes splashAutoHide{
    0%,80%{ opacity:1; visibility:visible; }
    100%{ opacity:0; visibility:hidden; pointer-events:none; }
}
.splash.done{opacity:0;pointer-events:none}
.splash .spinner{
    width:56px;height:56px;border-radius:50%;
    border:3px solid rgba(214,185,106,.18);
    border-top-color:var(--gold);
    animation:spin 1s linear infinite;
}
.splash .brand{
    font-size:14px;letter-spacing:.4em;color:var(--gold);font-weight:500;
}
.splash .hint{font-size:12px;color:rgba(255,255,255,.45);letter-spacing:.1em}
@keyframes spin{to{transform:rotate(360deg)}}
/* ================= 顶部走马灯公告栏 ================= */
.top-announce{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: rgba(16,13,8,.94);
    border-bottom: 1px solid rgba(214,185,106,.32);
    display: flex;
    align-items: center;
    z-index: 3000;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(-100%);
    transition: transform .35s ease, opacity .35s ease;
}
body.announce-on .top-announce{
    opacity: 1;
    transform: none;
}
.announce-x{
    width: 38px;
    height: 36px;
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: var(--gold);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .2s ease, background .2s ease;
}
.announce-x:hover{ color: #fff; background: rgba(255,255,255,.06); }
.announce-x:active{ transform: scale(.9); }
.announce-marquee{
    flex: 1;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}
.announce-track{
    display: flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    animation: announceMarquee 20s linear infinite;
}
.announce-text{
    padding-right: 6em;
    font-size: 13px;
    letter-spacing: .06em;
    color: rgba(255,255,255,.88);
}
@keyframes announceMarquee{
    from{ transform: translateX(0); }
    to{ transform: translateX(-50%); }
}
/* 公告栏显示期间：移动端音乐播放器下移贴住公告栏；宽屏端搜索栏与播放器下移齐平 */
body.announce-on .mini-music-player{ top: -12px; }
@media screen and (min-width: 600px){
    body.announce-on .search-wrap{ top: 36px; }
    body.announce-on .mini-music-player{ top: -52px; }
}
.header-title{
    text-align: center;
    font-size: 54px;
    font-weight: 700;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    letter-spacing: 2px;
    position: relative;
}
.white-text{color: var(--text-white);}
.gradient-text{
    background: linear-gradient(90deg, #fff8e7, #e9cf9e, #c9a558, #e9cf9e, #fff8e7);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientFlow 8s linear infinite;
}
@keyframes gradientFlow{
    0%{background-position: 0% 50%;}
    100%{background-position: 300% 50%;}
}
body.dark-mode .gradient-text{
    background: linear-gradient(90deg, #ff6fb0, #ffd86b, #6fb4ff, #ff6b6b, #ffa14d, #ff6fb0);
    background-size: 600% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: colorFlow 12s linear infinite;
}
@keyframes colorFlow{
    0%{background-position: 0% 50%;}
    100%{background-position: 600% 50%;}
}
.toggle-button{
    width: 52px;
    height: 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    position: relative;
    backdrop-filter: blur(8px);
    cursor: pointer;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.toggle-button:active{transform: scale(0.92);}
.toggle-circle{
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 3px;
    transform: translateY(-50%);
    transition: left 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d6b96a;
}
.toggle-circle svg{
    width: 14px;
    height: 14px;
    display: block;
}
.toggle-circle .icon-moon{display: none;}
.toggle-button.active .toggle-circle{
    left: 25px;
    transform: translateY(-50%);
}
.toggle-button.active .toggle-circle .icon-sun{display: none;}
.toggle-button.active .toggle-circle .icon-moon{display: block;}
.tutorial-box{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.tutorial-btn{
    width:56px;
    height:56px;
    background: var(--glass-bg);
    border:1px solid var(--glass-border);
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:16px;
    cursor:pointer;
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease;
    margin-top: 6px;
}
.tutorial-btn:active{transform: scale(0.92);}
.tutorial-tip{
    font-size:12px;
    color:var(--text-gray);
    margin-top: 4px;
}
/* ===================== 搜索框 ===================== */
.search-wrap{
    max-width: 1180px;
    width: 100%;
    margin: 0 auto 22px;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .5s ease, transform .5s ease;
}
body.entered .search-wrap{
    opacity: 1;
    transform: none;
}
.search-box{
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 0 16px;
    height: 52px;
    transition: border-color .3s ease, background .3s ease;
}
.search-box:focus-within{
    border-color: rgba(214,185,106,.55);
    background: rgba(255,255,255,0.09);
}
.search-box .s-ic{
    width: 18px;
    height: 18px;
    color: var(--gold);
    flex-shrink: 0;
}
.search-box input{
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    letter-spacing: .02em;
    padding: 0;
}
.search-box input::placeholder{
    color: rgba(255,255,255,0.4);
}
.search-clear{
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
    transition: background .2s ease;
}
.search-clear:hover{background: rgba(255,255,255,0.18);}
.search-box input:not(:placeholder-shown) ~ .search-clear{
    display: flex;
}
/* 粘贴按钮：输入框为空时显示在右侧，点击粘贴剪贴板内容；输入文字/网址后自动隐藏换成 ✕ */
.search-paste{
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--gold);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.search-paste:hover{
    background: rgba(214,185,106,.2);
    box-shadow: 0 0 10px rgba(214,185,106,.35);
}
.search-paste:active{transform: scale(0.9);}
.search-paste svg{
    width: 13px;
    height: 13px;
    display: block;
}
.search-box input:placeholder-shown ~ .search-paste{ display: flex; }
.search-box input:not(:placeholder-shown) ~ .search-paste{ display: none; }
.search-empty{
    text-align: center;
    padding: 40px 20px;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    letter-spacing: .1em;
    display: none;
}
.search-empty.show{display: block;}
/* ===== 搜索快捷打开下拉面板（数字 / 网址 / 关键词命中按钮） ===== */
.search-quick{
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(18,15,9,.96);
    border: 1px solid rgba(214,185,106,.35);
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 18px 44px rgba(0,0,0,.5);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    z-index: 70;
    display: none;
    max-height: 320px;
    overflow-y: auto;
}
.search-quick.show{display: block;}
.sq-item{
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #fff;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    transition: background .18s ease;
}
.sq-item:hover,
.sq-item.hover{ background: rgba(214,185,106,.14); }
.sq-idx{
    flex-shrink: 0;
    min-width: 22px;
    height: 22px;
    padding: 0 4px;
    border-radius: 6px;
    background: rgba(214,185,106,.18);
    color: var(--gold);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sq-item.sq-url .sq-idx{ background: rgba(41,128,239,.16); color: #7db8ff; }
.sq-name{
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}
.sq-desc{
    flex: 1;
    min-width: 0;
    font-size: 12px;
    color: var(--text-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sq-go{
    flex-shrink: 0;
    color: var(--gold);
    font-size: 12px;
}
.sq-empty{
    padding: 14px 12px;
    text-align: center;
    color: rgba(255,255,255,.4);
    font-size: 13px;
}
.grid-container{
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    flex:1;
    width: 100%;
}
.grid-card{
    position: relative;
    height: var(--card-h);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 22px;
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    opacity: 0;
    transition: opacity .55s ease, transform .35s ease, border-color .35s ease;
}
.card-icon{
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    color: var(--gold);
    opacity: 0.92;
}
.card-icon svg{width:100%;height:100%;display:block;}
.card-copy{display:none;}
.card-lower .card-main-text,
.card-lower .card-sub-text{ transform: translateY(8px); }
body.entered .grid-card{opacity:1; animation: cardIn .55s ease both}
body.entered .grid-card:nth-child(1){animation-delay:.08s}
body.entered .grid-card:nth-child(2){animation-delay:.18s}
body.entered .grid-card:nth-child(3){animation-delay:.28s}
body.entered .grid-card:nth-child(4){animation-delay:.38s}
body.entered .grid-card:nth-child(5){animation-delay:.48s}
body.entered .grid-card:nth-child(6){animation-delay:.58s}
body.entered .grid-card:nth-child(7){animation-delay:.68s}
body.entered .grid-card:nth-child(8){animation-delay:.78s}
@keyframes cardIn{from{opacity:0}to{opacity:1}}
/* 动画播完加 card-done 类锁定终态，避免搜索过滤时重播动画闪动（优先级需高于 body.entered .grid-card） */
body.entered .grid-card.card-done{opacity:1; animation:none;}
.grid-card:active{transform: scale(0.92);}
.grid-card:hover{border-color: rgba(214,185,106,.5);}
/* 数字快捷选中高亮 */
.grid-card.search-hit{
    border-color: rgba(214,185,106,.9);
    box-shadow: 0 0 0 2px rgba(214,185,106,.35), 0 8px 28px rgba(0,0,0,.35);
    transform: translateY(-2px);
}
.card-main-text{
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--text-white);
    font-weight: 600;
}
.card-sub-text{
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.5;
}
.modal-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 999;
    overflow-y: auto;
    padding-bottom: max(30px, env(safe-area-inset-bottom) + 60px);
}
.modal-overlay.hide{display: none;}
.modal-content{
    width: 100%;
    max-width: 460px;
    background: #15130e;
    border: 1px solid rgba(214,185,106,0.32);
    border-radius: 22px;
    padding: 34px 30px;
    padding-bottom: calc(42px + env(safe-area-inset-bottom));
    color: #eee;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    margin-top: -4vh;   /* 弹窗整体居中偏上；确认按钮靠弹窗内部贴底下沉 */
}
.modal-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.modal-head .m-x{
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.5);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    display:flex;
    align-items:center;
    justify-content:center;
    transition: color .2s, background .2s;
}
.modal-head .m-x:hover{color:#fff;background:rgba(255,255,255,0.08);}
.modal-title{
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--gold);
    text-align: left;
    letter-spacing: 1px;
}
.modal-text{
    font-size: 14px;
    line-height: 1.75;
    color: rgba(255,255,255,0.85);
    max-height: 50vh;
    overflow-y: auto;
    margin-bottom: 26px;
}
.modal-text h3{font-size:14px;font-weight:600;margin-bottom:10px;color:#fff;}
.modal-text h3 a{color:var(--gold);text-decoration:none;border-bottom:1px solid rgba(214,185,106,.4);padding-bottom:1px;}
.modal-text h3 a:hover{color:#e7c97e;}
.modal-text p{margin-bottom: 14px;color:#e4d09c;}
.modal-text .detail-link{color:var(--gold);text-decoration:none;}
.modal-text .detail-link:hover{text-decoration:underline;}
.modal-bottom-bar{
    margin-top:auto;
    position:relative;
    z-index: 99;
}
.checkbox-row{
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-bottom: 10px;
}
.checkbox-row input{
    width: 20px;
    height: 20px;
    accent-color: var(--gold);
    cursor: pointer;
}
.checkbox-row label{
    font-size: 13px;
    color: #ddd;
    cursor: pointer;
}
.checkbox-row.cb-7d{margin-bottom: 10px;}
.checkbox-row.cb-7d label{color: #cfc5a8;font-size:12px;}
.enter-btn{
    width: 100%;
    height: 52px;
    margin-top: 6px;   /* 勾选行与确认按钮贴紧 */
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.enter-btn:disabled{
    background: #2a2a2a;
    color:#888;
    cursor: not-allowed;
    transform: scale(1);
}
.enter-btn:not(:disabled){
    background: linear-gradient(90deg,#b8963f,#c9a558);
    cursor: pointer;
}
.enter-btn:not(:disabled):active{transform: scale(0.92);}
.copyright{
    text-align: center;
    margin-top: 50px;
    font-size: 13px;
    opacity: 0.48;
    color: var(--text-gray);
    letter-spacing: 1px;
}
.mini-music-player{
    position: absolute;
    top: -54px;
    right: 0;
    width: 338px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    padding: 8px 12px;
    z-index: 99;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
/* 播放/暂停按钮：加长为胶囊形，两侧容纳上一首/下一首按钮 */
.music-play-btn{
    width: 56px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.music-play-btn svg{
    width: 14px;
    height: 14px;
    display: block;
}
.music-play-btn .icon-pause{display: none;}
.music-play-btn.playing .icon-play{display: none;}
.music-play-btn.playing .icon-pause{display: block;}
.music-play-btn:active{transform: scale(0.9);}
/* 上一首 / 下一首按钮 */
.music-skip-btn{
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.12);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s, background .2s, box-shadow .2s;
}
.music-skip-btn svg{
    width: 12px;
    height: 12px;
    display: block;
}
.music-skip-btn:active{transform: scale(0.9);}
.music-skip-btn:hover{
    background: rgba(214,185,106,.25);
    box-shadow: 0 0 10px rgba(214,185,106,.3);
}
.music-progress-wrap{
    flex: 1;
    height: 26px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-top: -9px;
}
.music-spectrum{
    width: 100%;
    height: 18px;
    display: flex;
    align-items: flex-end;
    gap: 1px;
    margin-bottom: 4px;
    pointer-events: none;
}
/* 音谱改用 Canvas 单画布渲染（替代 32 根 DOM 音柱，降低重绘开销） */
.music-spectrum canvas{
    display: block;
    width: 100%;
    height: 100%;
}
/* v28：删除 .music-spectrum .bar 等死样式——频谱已改为 Canvas 渲染（v26），DOM 音柱不复存在 */
/* 展开模式：进度条、进度圆点与时间数字全部隐藏，音谱变长 */
.mini-music-player.expanded .music-progress-track,
.mini-music-player.expanded .music-progress-thumb,
.mini-music-player.expanded .music-time-current,
.mini-music-player.expanded .music-time-total{ display: none; }
.mini-music-player.expanded .music-progress-wrap{
    justify-content: center;
    height: 34px;
    margin-top: -2px;
}
.mini-music-player.expanded .music-spectrum{
    height: 32px;
    margin-bottom: 0;
}
/* v28：原 body.entered/dark-mode .music-spectrum .bar 光影规则已随 Canvas 频谱删除（DOM 音柱不存在） */
/* ================= 暗色模式：跳转网址按钮边界加亮 + 光效 ================= */
body.dark-mode .grid-card{
    border-color: rgba(214,185,106,.5);
    box-shadow: 0 0 0 1px rgba(214,185,106,.22), 0 0 16px rgba(214,185,106,.18), 0 8px 28px rgba(0,0,0,.45);
    transition: opacity .55s ease, transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
body.dark-mode .grid-card:hover{
    border-color: rgba(214,185,106,.9);
    box-shadow: 0 0 0 1px rgba(214,185,106,.45), 0 0 24px rgba(214,185,106,.35), 0 8px 28px rgba(0,0,0,.45);
}
body.dark-mode .grid-card.search-hit{
    border-color: rgba(214,185,106,1);
    box-shadow: 0 0 0 2px rgba(214,185,106,.5), 0 0 22px rgba(214,185,106,.4), 0 8px 28px rgba(0,0,0,.45);
}
body.dark-mode .search-quick{
    border-color: rgba(214,185,106,.55);
    box-shadow: 0 0 0 1px rgba(214,185,106,.18), 0 0 18px rgba(214,185,106,.22), 0 18px 44px rgba(0,0,0,.5);
}
body.dark-mode .sq-item{
    box-shadow: inset 0 0 0 1px rgba(214,185,106,.22);
}
body.dark-mode .sq-item:hover,
body.dark-mode .sq-item.hover{
    background: rgba(214,185,106,.16);
    box-shadow: inset 0 0 0 1px rgba(214,185,106,.65), 0 0 12px rgba(214,185,106,.3);
}
/* 暗色模式下粘贴按钮与切歌按钮也补一圈金色边界 */
body.dark-mode .search-paste{
    box-shadow: inset 0 0 0 1px rgba(214,185,106,.35);
}
body.dark-mode .music-skip-btn{
    box-shadow: inset 0 0 0 1px rgba(214,185,106,.35);
}
/* 播放音乐时暂停背景极光/流光/光带动画，降低 CPU/GPU 开销（视觉静止、观感不变） */
body.music-playing .aurora,
body.music-playing .stream,
body.music-playing .sheen,
body.music-playing .sheen-b{
    animation-play-state: paused;
}
.music-progress-track{
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}
.music-progress{
    height: 100%;
    width: 0%;
    background: var(--gold);
    border-radius: 3px;
}
.music-time-current{
    position: absolute;
    left: 0;
    top: 28px;
    font-size: 11px;
    color: #fff;
}
.music-time-total{
    position: absolute;
    right: 0;
    top: 28px;
    font-size: 11px;
    color: #fff;
}
audio{display: none;}
.music-modal-overlay{
    position:fixed;inset:0;background:rgba(0,0,0,.6);backdrop-filter:blur(6px);
    z-index:1500;display:flex;align-items:center;justify-content:center;padding:20px;
}
.music-modal{
    width:100%;max-width:380px;
    background:rgba(22,18,12,.96);
    border:1px solid rgba(214,185,106,.28);
    border-radius:18px;padding:22px;color:#fff;
    max-height:80vh;display:flex;flex-direction:column;
}
.music-modal-title{
    font-size:17px;font-weight:600;margin-bottom:16px;letter-spacing:1px;color:#fff;
    display:flex;align-items:center;justify-content:space-between;gap:12px;
}
.mt-en{
    font-size:12px;font-weight:400;letter-spacing:2px;
    color:rgba(255,255,255,0.45);text-transform:uppercase;flex-shrink:0;
}
.music-list{max-height:50vh;overflow-y:auto;display:flex;flex-direction:column;gap:6px;padding:2px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;}
.music-item{
    padding:13px 14px;border-radius:10px;background:rgba(255,255,255,.05);
    cursor:pointer;font-size:14px;transition:background .2s,border-color .2s;
    border:1px solid transparent;
    display:flex;align-items:center;justify-content:space-between;gap:10px;
}
.music-item .mi-left{display:flex;align-items:center;gap:6px;min-width:0;}
.music-item .music-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.playing-tag{color:var(--gold);font-size:12px;letter-spacing:1px;flex-shrink:0;}
.music-item:hover{background:rgba(214,185,106,.12);}
.music-item.active{border-color:rgba(214,185,106,.6);color:var(--gold);background:rgba(214,185,106,.10);}
.music-item .playing-mark{color:var(--gold);margin-right:6px;}
/* v28：删除 .mi-avatar 死样式——选歌列表已改为直接显示歌名（v18），无圆头像 DOM */
.music-modal-close{
    width:100%;margin-top:14px;height:42px;border-radius:12px;border:none;
    background:rgba(255,255,255,.08);color:#fff;font-size:14px;cursor:pointer;
    transition:background .2s;flex-shrink:0;
}
.music-modal-close:hover{background:rgba(255,255,255,.14);}
/* ===================== 设置面板 ===================== */
.settings-btn{
    width:40px;height:40px;border-radius:12px;border:none;background:rgba(255,255,255,.08);
    color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;
    transition:background .2s,transform .2s;flex-shrink:0;
}
.settings-btn svg{width:20px;height:20px;}
.settings-btn:hover{background:rgba(214,185,106,.25);}
.settings-btn:active{transform:scale(.9);}
.set-item{margin-bottom:20px;}
.set-label{
    font-size:14px;color:rgba(255,255,255,.9);margin-bottom:10px;
    display:flex;align-items:center;justify-content:space-between;
}
.set-val{font-size:13px;color:var(--gold,#d6b96a);}
.vol-range{
    width:100%;-webkit-appearance:none;appearance:none;height:6px;border-radius:3px;
    background:rgba(255,255,255,.18);outline:none;
    touch-action:pan-x;       /* 允许横向拖动，不被页面滚动拦截 */
}
.vol-range::-webkit-slider-thumb{
    -webkit-appearance:none;appearance:none;width:18px;height:18px;border-radius:50%;
    background:var(--gold,#d6b96a);border:none;cursor:pointer;
    box-shadow:0 0 6px rgba(214,185,106,.4);
}
.vol-range::-moz-range-thumb{
    width:18px;height:18px;border-radius:50%;background:var(--gold,#d6b96a);border:none;cursor:pointer;
}
.set-seg{display:flex;gap:8px;}
.set-seg-btn{
    flex:1;height:38px;border-radius:10px;border:1px solid rgba(255,255,255,.14);
    background:rgba(255,255,255,.05);color:rgba(255,255,255,.75);font-size:13px;cursor:pointer;
    transition:all .2s;padding:0 4px;
}
.set-seg-btn.active{
    border-color:var(--gold,#d6b96a);color:#fff;background:rgba(214,185,106,.16);
}
.set-switch{
    width:50px;height:28px;border-radius:14px;background:rgba(255,255,255,.18);
    position:relative;cursor:pointer;transition:background .25s;
}
.set-switch.on{background:var(--gold,#d6b96a);}
.set-switch-knob{
    width:22px;height:22px;border-radius:50%;background:#fff;position:absolute;top:3px;left:3px;
    transition:left .25s;
}
.set-switch.on .set-switch-knob{left:25px;}
/* ================= 音乐交互增强（可拖动进度条 / 滚轮音量 / 长按横滑跳转） ================= */
.music-disc-btn{
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(214,185,106,.55);
    background: transparent;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .2s, border-color .3s, box-shadow .3s;
}
.music-disc-btn:active{transform: scale(.9);}
.music-disc-btn:hover{border-color: rgba(214,185,106,.9); box-shadow: 0 0 12px rgba(214,185,106,.35);}
.disc-avatar{
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 30% 28%, rgba(255,244,214,.9), transparent 42%),
        linear-gradient(135deg, #8a6a2f 0%, #d6b96a 45%, #f2e2b0 60%, #8a6a2f 100%);
    color: #3a2c10;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.25);
}
.disc-avatar svg{
    width: 46%;
    height: 46%;
    display: block;
}
.music-disc-btn.playing .disc-avatar{
    animation: discSpin 5s linear infinite;
}
@keyframes discSpin{to{transform: rotate(360deg)}}
.music-progress-holder{
    position: relative;
    width: 100%;
}
.mini-music-player{cursor: default;}
.music-progress-track{
    cursor: pointer;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}
.music-progress-track::before{
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -7px;
    bottom: -7px;
}
.music-progress-thumb{
    position: absolute;
    top: 50%;
    left: 0%;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid #16130e;
    box-shadow: 0 0 8px rgba(214,185,106,.6);
    transform: translate(-50%, -50%);
    pointer-events: none;
}
body.dark-mode .music-progress-thumb{
    background: #ffffff;
    border-color: #2a2a2a;
    box-shadow: 0 0 8px rgba(255,255,255,.55);
}
body.dark-mode .music-progress{
    background: #ffffff;   /* 黑暗模式下进度条变白色 */
}
.music-spectrum{
    pointer-events: auto;
    cursor: pointer;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}
.music-spectrum.longpressing{
    cursor: ew-resize;
    box-shadow: inset 0 0 0 1px rgba(214,185,106,.45);
    border-radius: 3px;
}
.player-toast{
    position: fixed;
    left: 50%;
    bottom: 96px;
    transform: translateX(-50%);
    background: rgba(12,10,6,.82);
    border: 1px solid rgba(214,185,106,.45);
    color: #fff;
    font-size: 13px;
    letter-spacing: .04em;
    padding: 8px 16px;
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 3000;
    white-space: nowrap;
}
.player-toast.show{opacity: 1;}
.back-top-btn{
    position: fixed;
    right: 22px;
    bottom: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(214,185,106,.5);
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity .35s ease, transform .35s ease;
    z-index: 1200;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.back-top-btn.show{
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
.back-top-btn:active{transform: scale(.9);}
.back-top-btn svg{
    width: 20px;
    height: 20px;
    display: block;
}
/* ===== 宽屏端：搜索栏贴最左上角、音乐播放器贴最右上角 ===== */
@media screen and (min-width: 600px) {
    body{ padding-top: 88px; }
    .search-wrap{
        position: absolute;
        top: 0;
        left: 0;
        width: 260px;
        max-width: 260px;
        margin: 0;
        z-index: 60;
    }
    .mini-music-player{
        top: -88px;
        right: -20px;
    }
    .card-copy{
        position: absolute;
        top: 8px;
        right: 40px;
        width: 24px;
        height: 24px;
        border-radius: 6px;
        border: 1px solid var(--glass-border);
        background: var(--glass-bg);
        color: var(--gold);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 2;
        transition: border-color .25s ease, background .25s ease, transform .2s ease;
    }
    .card-copy svg{
        width: 13px;
        height: 13px;
        display: block;
    }
    .card-copy .ok-ic{
        display: none;
        stroke: #4cd964;
        fill: none;
        stroke-width: 3;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    .card-copy.copied .copy-ic{ display: none; }
    .card-copy.copied .ok-ic{ display: block; }
    .card-copy:hover{
        border-color: rgba(214,185,106,.65);
        background: rgba(214,185,106,.16);
    }
    .card-copy:active{transform: scale(.9);}
}
/* 宽屏 + 横屏：搜索栏加长 0.5 倍（260px → 390px），竖屏保持不变。
   注意：平板竖屏时点击搜索栏会弹出键盘，视口高度被压缩后宽>高，
   orientation:landscape 会被误触发，导致搜索栏"变长"并可能与右上角音乐按钮重叠。
   故横屏加长阈值从 600px 提高到 960px：只有真正宽屏横屏（平板横屏/桌面宽窗口）才加长，
   平板竖屏 + 键盘（视口宽 600~959px）仍保持 260px 原长度。 */
@media screen and (min-width: 960px) and (orientation: landscape) {
    .search-wrap{
        width: 390px;
        max-width: 390px;
    }
}
@media screen and (max-width: 599.98px) {
    :root{
        --card-h: 100px;
    }
    .header-title{
        font-size: 32px;
        gap:10px;
        margin-bottom: 36px;
    }
    .card-main-text{font-size:20px;}
    .grid-container{gap:16px;}
    /* 隐藏授权卡片：手机端卡片窄，防文字换行/溢出，保证文字完整在按钮内部 */
    #authCardWh .card-main-text,
    #authCardXh .card-main-text{
        font-size:16px;
        white-space:nowrap;
    }
    #authCardWh .card-sub-text,
    #authCardXh .card-sub-text{
        font-size:12px;
        white-space:nowrap;
    }
    #authCardWh,
    #authCardXh{
        overflow:hidden;
    }
    .search-wrap{margin-bottom: 12px;}
    .search-box{height: 46px; border-radius: 14px; padding: 0 14px;}
    .search-box input{font-size: 14px;}
    .mini-music-player{
        top: -48px;
        right: 0;
        width: 206px;
        padding: 6px 10px;
        gap:6px;
    }
    .music-play-btn{
        width: 40px;            /* 长度保持原样，不加大 */
        height: 28px;           /* 手机端：比原 24px 粗一点，比上一版 34px 细 */
        border-radius: 999px;
    }
    .music-play-btn svg{
        width: 12px;
        height: 12px;
    }
    .music-skip-btn{
        width: 24px;
        height: 24px;
    }
    .music-skip-btn svg{
        width: 11px;
        height: 11px;
    }
    .music-progress-wrap{
        height: 22px;
        margin-top: -7px;
    }
    .music-spectrum{
        height: 14px;
        gap: 0.5px;
        margin-bottom: 3px;
    }
    .music-progress-track{
        height: 2.5px;
    }
    .music-time-current, .music-time-total{
        font-size:9px;
        top: 24px;
    }
    .toggle-button{
        width: 42px;
        height: 24px;
    }
    .toggle-circle{
        width: 18px;
        height: 18px;
        top: 50%;
        left: 3px;
        transform: translateY(-50%);
    }
    .toggle-circle svg{
        width: 11px;
        height: 11px;
    }
    .toggle-button.active .toggle-circle{
        left: 21px;
        transform: translateY(-50%);
    }
    .player-toast{
        bottom: 84px;
        font-size: 12px;
        padding: 7px 13px;
    }
    .back-top-btn{
        right: 16px;
        bottom: 20px;
        width: 44px;
        height: 44px;
    }
    .back-top-btn svg{
        width: 18px;
        height: 18px;
    }
    .music-disc-btn{
        position: absolute;
        right: calc(100% + 8px);
        top: 50%;
        margin-top: -17px;
        width: 34px;
        height: 34px;
    }
    .music-disc-btn svg{
        width: 46%;
        height: 46%;
    }
    .mini-music-player.expanded .music-progress-wrap{
        height: 28px;
    }
    .mini-music-player.expanded .music-spectrum{
        height: 26px;
    }
    .music-progress-thumb{
        width: 9px;
        height: 9px;
        border-width: 1.5px;
    }
    /* 移动端：公告栏由"最顶部悬浮"改为放在"标题栏与搜索框之间"（即搜索栏上方），
       音乐播放按钮保持页面最顶（-48px 原位置，不再被公告栏顶下去）。
       通过 flex order 调整顺序：标题栏(1) → 公告栏(2) → 搜索栏(3) → 卡片(4) → 空提示(5) → 版权(6)。
       宽屏端（≥600px）不受影响，仍走原有固定定位逻辑。 */
    .header-title{ order: 1; }
    .top-announce{
        position: static;
        transform: none;
        opacity: 1;
        z-index: 60;
        order: 2;
    }
    body.announce-on .header-title{ margin-bottom: 10px; }
    body.announce-on .mini-music-player{ top: -48px; }
    .search-wrap{ order: 3; }
    .grid-container{ order: 4; }
    .search-empty{ order: 5; }
    .copyright{ order: 6; }
}
@media (prefers-reduced-motion:reduce){
    .aurora,.stream,.sheen,.sheen-b,.spinner,.gradient-text{animation:none}
    .stream,.sheen,.sheen-b{opacity:0}
    .grid-card,body.entered .grid-card{opacity:1;animation:none;transition:none}
}
/* ================= 隐藏彩蛋：连点标题 5 次 ================= */
.egg-tap-ring{
    position:fixed;width:18px;height:18px;margin:-9px 0 0 -9px;border-radius:50%;
    border:2px solid rgba(214,185,106,.85);
    box-shadow:0 0 12px rgba(214,185,106,.6);
    pointer-events:none;z-index:2500;
    animation:eggTapRing .55s ease-out forwards;
}
@keyframes eggTapRing{
    0%{transform:scale(.4);opacity:1}
    100%{transform:scale(3.6);opacity:0}
}
.header-title.egg-tap{animation:eggTap .25s ease;}
@keyframes eggTap{0%{transform:scale(1)}45%{transform:scale(.96)}100%{transform:scale(1)}}
body.egg-flash::after{
    content:'';position:fixed;inset:0;pointer-events:none;z-index:2390;
    background:radial-gradient(circle at var(--egg-x,50%) var(--egg-y,40%),
        rgba(255,236,180,.5), rgba(214,185,106,.16) 28%, transparent 62%);
    animation:eggFlash 1.4s ease-out forwards;
}
@keyframes eggFlash{0%{opacity:0}12%{opacity:1}100%{opacity:0}}
body.egg-shake .grid-container{animation:eggShake .6s cubic-bezier(.36,.07,.19,.97) both;}
@keyframes eggShake{
    0%,100%{transform:translate3d(0,0,0)}
    20%{transform:translate3d(-3px,2px,0)}
    40%{transform:translate3d(3px,-2px,0)}
    60%{transform:translate3d(-2px,1px,0)}
    80%{transform:translate3d(2px,-1px,0)}
}
.egg-canvas{
    position:fixed;inset:0;pointer-events:none;z-index:2400;
    opacity:1;transition:opacity .5s ease;
}
.egg-canvas.fade{opacity:0;}
.egg-text-layer{
    position:fixed;inset:0;display:flex;flex-direction:column;
    align-items:center;justify-content:center;gap:14px;
    pointer-events:none;z-index:2450;
}
.egg-title{
    font-size:clamp(48px,14vw,130px);font-weight:700;letter-spacing:.12em;
    background:linear-gradient(100deg,#fff8e7,#e9cf9e,#c9a558,#fff8e7);
    background-size:300% 100%;-webkit-background-clip:text;background-clip:text;
    color:transparent;opacity:0;transform:scale(.55);
    filter:drop-shadow(0 0 0 rgba(214,185,106,0));
}
.egg-text-layer.play .egg-title{
    animation:eggTitle 3s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes eggTitle{
    0%{opacity:0;transform:scale(.55);letter-spacing:.5em;filter:drop-shadow(0 0 0 rgba(214,185,106,0))}
    18%{opacity:1;transform:scale(1.06);letter-spacing:.12em;filter:drop-shadow(0 0 34px rgba(214,185,106,.75))}
    30%{transform:scale(1)}
    72%{opacity:1}
    100%{opacity:0;transform:scale(1.06);letter-spacing:.2em;filter:drop-shadow(0 0 46px rgba(214,185,106,.35))}
}
.egg-sub{
    font-size:clamp(11px,2.6vw,15px);letter-spacing:.42em;
    color:rgba(255,255,255,.78);text-shadow:0 0 14px rgba(214,185,106,.6);opacity:0;
}
.egg-text-layer.play .egg-sub{
    animation:eggSub 3s ease forwards;animation-delay:.55s;
}
@keyframes eggSub{
    0%{opacity:0;transform:translateY(10px)}
    20%{opacity:1;transform:translateY(0)}
    75%{opacity:1}
    100%{opacity:0;transform:translateY(-6px)}
}
/* ================= 电脑端重构：卡片改为横排按钮风格（参考电商分类卡片；仅 ≥1200px 生效，移动端/平板不受影响） =================
   功能保持不变：点击跳转 / 复制按钮 / 数字快捷选中(蓝色) / 搜索过滤 / 授权卡片 / 动画全部保留 */
@media screen and (min-width: 1200px){
    .grid-container{
        max-width: 1280px;
        grid-template-columns: repeat(5, 1fr);
        gap: 14px;
    }
    .grid-card{
        height: 92px;
        padding: 14px 14px;
        border-radius: 12px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        box-shadow: 0 1px 3px rgba(15,23,42,.06);
        justify-content: center;
        transition: border-color .25s ease, box-shadow .25s ease, transform .2s ease, background .25s ease;
    }
    .grid-card:hover{
        border-color: #3b82f6;
        box-shadow: 0 4px 14px rgba(59,130,246,.18);
        transform: translateY(-2px);
    }
    .grid-card:active{ transform: scale(.97); }
    /* 数字快捷/搜索命中高亮：参考图风格改为蓝色 */
    .grid-card.search-hit{
        border-color: #3b82f6;
        box-shadow: 0 0 0 2px rgba(59,130,246,.32), 0 8px 24px rgba(59,130,246,.16);
        transform: translateY(-2px);
    }
    /* 图标：保留功能，缩小放右上角 */
    .card-icon{
        top: 9px;
        right: 9px;
        width: 17px;
        height: 17px;
        color: #64748b;
        opacity: .9;
    }
    /* lower / iconRight 特例在横排小卡片下不再需要文字下沉 */
    .card-lower .card-main-text,
    .card-lower .card-sub-text{ transform: none; }
    /* 复制按钮：放右下角，避开右上角图标 */
    .card-copy{
        top: auto;
        right: 9px;
        bottom: 7px;
        width: 20px;
        height: 20px;
        border-radius: 5px;
        border: 1px solid rgba(148,163,184,.5);
        background: rgba(255,255,255,.85);
        color: #64748b;
    }
    .card-copy:hover{
        border-color: #3b82f6;
        color: #3b82f6;
        background: #fff;
    }
    /* 文字：名称+描述，左对齐，参考图风格 */
    .card-main-text{
        font-size: 16px;
        margin-bottom: 5px;
        color: #0f172a;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 80%;
    }
    .card-sub-text{
        font-size: 12px;
        color: #64748b;
        line-height: 1.35;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 80%;
    }
    /* 暗色模式：深色卡片，参考图夜间观感 */
    body.dark-mode .grid-card{
        background: #1e293b;
        border-color: #334155;
        box-shadow: 0 1px 3px rgba(0,0,0,.35);
    }
    body.dark-mode .grid-card:hover{
        border-color: #60a5fa;
        box-shadow: 0 4px 14px rgba(96,165,250,.22);
    }
    body.dark-mode .grid-card.search-hit{
        border-color: #60a5fa;
        box-shadow: 0 0 0 2px rgba(96,165,250,.32), 0 8px 24px rgba(96,165,250,.18);
    }
    body.dark-mode .card-main-text{ color: #f1f5f9; }
    body.dark-mode .card-sub-text{ color: #94a3b8; }
    body.dark-mode .card-icon{ color: #94a3b8; }
    body.dark-mode .card-copy{
        border-color: rgba(148,163,184,.4);
        background: rgba(30,41,59,.9);
        color: #94a3b8;
    }
    body.dark-mode .card-copy:hover{
        border-color: #60a5fa;
        color: #60a5fa;
        background: #1e293b;
    }
}
/* ===== Chatwoot 客服悬浮按钮【v18：恢复原版大白气泡图标｜居中】===== */
.woot-widget-bubble{
    width: 58px !important;
    height: 58px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #d6b96a, #c9a94f) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .35) !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
}
.woot-widget-bubble .woot-widget-bubble-icon,
.woot-widget-bubble svg{
    width:30px !important;
    height:30px !important;
    color:#ffffff !important;
    fill:#ffffff !important;
    /* 核心：取消偏移，完全居中 */
    transform:none !important;
    margin:0 !important;
    padding:0 !important;
}
@media (max-width: 480px){
    .woot-widget-bubble{
        width: 52px !important;
        height: 52px !important;
    }
    .woot-widget-bubble .woot-widget-bubble-icon,
    .woot-widget-bubble svg{
        width: 27px !important;
        height: 27px !important;
    }
}