/* raid_drawer.css —— INDEX 首页「突袭配装」右侧抽屉，全部使用主题变量 */
.rd-root { position: relative; z-index: 9990; }
body.rd-lock { overflow: hidden; }

.rd-mask {
    position: fixed; inset: 0; z-index: 9989; background: rgba(0, 0, 0, .58);
    opacity: 0; pointer-events: none; transition: opacity .22s ease;
}
.rd-mask.open { opacity: 1; pointer-events: auto; }

.rd-drawer {
    position: fixed; top: 0; right: 0; z-index: 9990;
    width: min(430px, 100vw); height: 100%; display: flex; flex-direction: column;
    background: var(--bg-panel); border-left: 1px solid var(--border-main);
    box-shadow: -24px 0 64px rgba(0, 0, 0, .62);
    transform: translateX(102%); transition: transform .26s cubic-bezier(.22, .8, .28, 1);
}
.rd-drawer.open { transform: none; }

.rd-head {
    display: flex; align-items: flex-start; gap: 10px; flex: none;
    padding: 18px 18px 14px; border-bottom: 1px solid var(--border-sub);
    background: linear-gradient(180deg, rgba(var(--accent-rgb), .09), transparent);
}
.rd-head-txt { min-width: 0; }
.rd-head h2 {
    margin: 0; font-size: 18px; letter-spacing: .04em; color: var(--text);
    font-weight: 700;
}
.rd-head h2::before {
    content: ''; display: inline-block; width: 3px; height: 15px; margin-right: 9px;
    background: var(--accent); box-shadow: 0 0 10px rgba(var(--accent-rgb), .65);
    vertical-align: -2px; border-radius: 2px;
}
.rd-head p { margin: 5px 0 0 12px; font-size: 11.5px; line-height: 1.5; color: var(--text-muted); }
.rd-close {
    margin-left: auto; flex: none; width: 28px; height: 28px; border-radius: 5px;
    border: 1px solid var(--border-main); background: var(--bg-inset); color: var(--text-muted);
    font-size: 13px; cursor: pointer; line-height: 1;
}
.rd-close:hover { color: var(--text); border-color: var(--accent); }

.rd-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 10px 12px 16px; }
.rd-list::-webkit-scrollbar { width: 6px; }
.rd-list::-webkit-scrollbar-thumb { background: var(--border-main); border-radius: 3px; }

.rd-cat {
    border: 1px solid var(--border-sub); border-radius: 6px; background: var(--bg-inset);
    margin-bottom: 7px; overflow: hidden;
}
.rd-cat.open { border-color: rgba(var(--accent-rgb), .35); }
.rd-cat-head {
    width: 100%; display: flex; align-items: center; gap: 9px; padding: 8px 10px;
    border: 0; background: transparent; color: var(--text); cursor: pointer; text-align: left;
    font: inherit;
}
.rd-cat-head:hover { background: rgba(var(--accent-rgb), .05); }
.rd-chev { width: 13px; height: 13px; flex: none; color: var(--text-dim); transition: transform .18s ease; }
.rd-cat.open .rd-chev { transform: rotate(90deg); color: var(--accent); }
.rd-boss {
    width: 34px; height: 42px; flex: none; border-radius: 5px; overflow: hidden;
    background-color: var(--bg-base); background-size: cover; background-position: center top;
    border: 1px solid var(--border-sub); position: relative;
}
.rd-boss span { display: none; }
.rd-cat-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rd-cat-name { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-cat-attr { font-size: 10.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-cat-side { flex: none; display: flex; align-items: center; gap: 6px; }
.rd-day {
    font-size: 10px; padding: 2px 6px; border-radius: 3px; color: var(--text-muted);
    border: 1px solid var(--border-sub); background: rgba(255, 255, 255, .02); white-space: nowrap;
}
.rd-day.today { color: #0d0d10; background: var(--accent); border-color: var(--accent); font-weight: 700; }
.rd-count { font-size: 10px; color: var(--text-dim); white-space: nowrap; }

.rd-cat-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s ease; }
.rd-cat.open .rd-cat-body { grid-template-rows: 1fr; }
.rd-cat-inner { overflow: hidden; padding: 0 8px; }
.rd-cat.open .rd-cat-inner { padding: 2px 8px 8px; }

.rd-team {
    width: 100%; display: flex; align-items: center; gap: 9px; margin-top: 5px; padding: 7px 8px;
    border: 1px solid var(--border-sub); border-radius: 5px; background: rgba(255, 255, 255, .025);
    color: var(--text); cursor: pointer; text-align: left; font: inherit;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.rd-team:hover {
    border-color: var(--accent); background: rgba(var(--accent-rgb), .09);
    transform: translateX(-2px);
}
.rd-team.is-disabled { opacity: .55; cursor: not-allowed; }
.rd-team.is-disabled:hover { transform: none; border-color: var(--border-sub); background: rgba(255, 255, 255, .025); }
.rd-heroes { display: flex; flex: none; padding-left: 6px; }
.rd-ava {
    width: 28px; height: 28px; border-radius: 50%; margin-left: -6px;
    background-color: var(--bg-base); background-size: cover; background-position: center top;
    border: 1px solid var(--border-main); box-shadow: 0 0 0 1px var(--bg-inset) inset;
    position: relative;
}
.rd-ava::after {
    content: ''; position: absolute; left: 1px; bottom: 1px; width: 5px; height: 5px;
    border-radius: 50%; background: var(--rd-elem, #6a6a76); box-shadow: 0 0 4px var(--rd-elem, #6a6a76);
}
.rd-nohero { font-size: 10px; color: var(--text-dim); }
.rd-team-txt { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rd-team-title { font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-team-sub { font-size: 10px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-team-sub em { color: #e6b450; font-style: normal; }
.rd-go { flex: none; font-size: 13px; color: var(--accent); opacity: .8; }

.rd-empty-teams, .rd-empty-page {
    border: 1px dashed var(--border-main); border-radius: 5px; padding: 14px 12px;
    text-align: center; font-size: 11.5px; line-height: 1.7; color: var(--text-muted);
}
.rd-empty-page { margin: 6px 0; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.rd-link { color: var(--accent); text-decoration: none; font-size: 11.5px; }
.rd-link:hover { text-decoration: underline; }

.rd-foot {
    flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 10px 16px; border-top: 1px solid var(--border-sub); background: var(--bg-base);
    font-size: 11px;
}
.rd-foot a { color: var(--text-muted); text-decoration: none; }
.rd-foot a:hover { color: var(--accent); }

.rd-toast {
    position: fixed; left: 50%; bottom: 26px; z-index: 10000; transform: translate(-50%, 12px);
    max-width: min(560px, 92vw); padding: 9px 14px; border-radius: 6px;
    background: rgba(20, 20, 24, .96); border: 1px solid var(--accent); color: var(--text);
    font-size: 12px; line-height: 1.55; text-align: center; opacity: 0; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease; box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.rd-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 560px) {
    .rd-drawer { width: 100vw; }
    .rd-head { padding: 14px 14px 12px; }
    .rd-list { padding: 8px 8px 12px; }
}
