/* ============================================================
   蛋仔派对 EGGY PARTY 主题（egg）
   设计稿：D:\OJ主题\蛋仔派对\01-页面效果图\方案02-泡泡奶油.html
   配色：夜场紫底 + 奶油白 / 薄荷绿 / 糖果粉 + 泡泡玻璃
   ============================================================ */
html.site-theme-egg {
    --g-bg: #150e28;
    --g-bg2: #1d1438;
    --g-panel: rgba(38, 26, 58, .94);
    --g-panel2: rgba(48, 33, 74, .96);
    --g-line: rgba(255, 214, 240, .22);
    --g-line-soft: rgba(255, 214, 240, .12);
    --g-ink: #fff6ea;
    --g-ink2: #cbb9d9;
    --g-ink3: #9d8cb4;
    --g-mint: #63e6be;
    --g-mint-d: #2fb894;
    --g-pink: #ff9ecf;
    --g-pink-d: #e05fa4;
    --g-cream: #ffd98e;
    --g-lav: #b79bff;
    --g-radius: 18px;
    --g-shadow: 0 22px 46px -34px rgba(8, 4, 20, .95);

    /* 在线编程模式（Scratchpad）配色 */
    --ide-bg: #150e28; --ide-bg2: #1e1438; --ide-ink: #fff6ea; --ide-ink2: #9d8cb4;
    --ide-head: #ffd98e; --ide-line: rgba(255, 214, 240, .26); --ide-accent: #4fd3ac;
    --ide-accent-ink: #10261f; --ide-code-bg: #0e0920; --ide-code-ink: #e9e2f5;
    --ide-editor-bg: #1e1e1e; --ide-input-bg: #0e0920; --ide-hover: rgba(99, 230, 190, .16);
}
html.site-theme-egg,
html.site-theme-egg body {
    background-color: #150e28;
    background-image:
        radial-gradient(60% 42% at 12% 0%, rgba(183, 155, 255, .16), transparent 66%),
        radial-gradient(52% 38% at 88% 4%, rgba(255, 158, 207, .14), transparent 64%),
        radial-gradient(70% 46% at 50% 108%, rgba(99, 230, 190, .12), transparent 70%),
        url("/egg-bg.jpg");
    background-size: auto, auto, auto, cover;
    background-position: 0 0, 0 0, 0 0, center top;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
    background-attachment: scroll, scroll, scroll, fixed;
    color: var(--g-ink);
}

/* ---------- 1. 全局文字 / 链接 ---------- */
html.site-theme-egg,
html.site-theme-egg :is(.section, .card, .panel, .box, .widget, .sidebar, .main, .footer) {
    color: var(--g-ink);
}
html.site-theme-egg a:not([class*="button"]):not([class*="btn"]):not([class*="badge"]):not([class*="tag"]):not(.anim-chapter) {
    color: var(--g-mint);
    text-decoration: none;
}
html.site-theme-egg a:not([class*="button"]):not([class*="btn"]):hover { color: #9ff3da; }
html.site-theme-egg :is(h1, h2, h3, h4, h5) { color: var(--g-cream); }
html.site-theme-egg :is(small, .help-text, .supplementary, .typo small) { color: var(--g-ink3); }

/* ---------- 2. 导航栏 ---------- */
html.site-theme-egg .nav {
    background: linear-gradient(180deg, rgba(28, 18, 46, .97), rgba(20, 13, 34, .92)) !important;
    border-bottom: 1px solid var(--g-line) !important;
    box-shadow: 0 12px 26px -24px #000, inset 0 -1px 0 rgba(99, 230, 190, .25) !important;
    backdrop-filter: blur(10px);
}
html.site-theme-egg :is(.nav__item, .nav a, .nav .menu__link) {
    color: var(--g-ink2) !important;
    border-radius: 999px !important;
    transition: background .16s, color .16s;
}
html.site-theme-egg :is(.nav__item, .nav a, .nav .menu__link):hover {
    color: var(--g-mint) !important;
    background: rgba(99, 230, 190, .12) !important;
}
html.site-theme-egg :is(.nav__item).active,
html.site-theme-egg :is(.nav a).active,
html.site-theme-egg :is(.menu__link).active {
    color: #10261f !important;
    background: linear-gradient(180deg, #8cf0cf, #4fd3ac) !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 18px -14px rgba(79, 211, 172, .9) !important;
}
html.site-theme-egg .nav__logo { filter: drop-shadow(0 0 8px rgba(255, 158, 207, .45)); }

/* 导航下拉（自绘主题菜单 + 插件自带菜单） */
html.site-theme-egg .site-theme-item .theme-drop .theme-drop__btn {
    background: rgba(28, 20, 44, .96) !important;
    background-image: none !important;
    border: 1px solid var(--g-line) !important;
    color: var(--g-ink) !important;
    border-radius: 999px !important;
}
html.site-theme-egg .site-theme-item .theme-drop .theme-drop__btn:hover {
    border-color: rgba(99, 230, 190, .8) !important;
    color: var(--g-mint) !important;
}
html.site-theme-egg .site-theme-item .theme-drop .theme-drop__dot {
    background: var(--g-mint) !important;
    box-shadow: 0 0 8px -1px var(--g-mint) !important;
}
html.site-theme-egg .site-theme-item .theme-drop .theme-drop__menu {
    background-image: linear-gradient(180deg, #241838, #180f28) !important;
    background-color: #1b1230 !important;
    border: 1px solid var(--g-line) !important;
    border-radius: 14px !important;
    box-shadow: 0 22px 40px -22px #000 !important;
}
html.site-theme-egg .site-theme-item .theme-drop .theme-drop__opt {
    background: none !important;
    background-image: none !important;
    border: 0 !important;
    color: var(--g-ink2) !important;
    border-radius: 10px !important;
}
html.site-theme-egg .site-theme-item .theme-drop .theme-drop__opt:hover {
    background: rgba(99, 230, 190, .14) !important;
    color: var(--g-mint) !important;
}
html.site-theme-egg .site-theme-item .theme-drop .theme-drop__opt.is-on {
    background-image: linear-gradient(100deg, #7dffdc, #4fd3ac 58%, #ff9ecf) !important;
    background-color: #4fd3ac !important;
    color: #10261f !important;
    font-weight: 700 !important;
}
html.site-theme-egg :is(.dropdown-target, .drop-element, .nav__dropdown) {
    background: linear-gradient(180deg, #241838, #170f27) !important;
    border: 1px solid var(--g-line) !important;
    border-radius: 12px !important;
    box-shadow: 0 22px 40px -24px #000 !important;
    color: var(--g-ink) !important;
}
html.site-theme-egg :is(.dropdown-target, .drop-element, .nav__dropdown) :is(.menu__item, .menu__link, .menu__item a) {
    background: transparent !important;
    color: var(--g-ink2) !important;
    border-radius: 8px !important;
}
html.site-theme-egg :is(.dropdown-target, .drop-element, .nav__dropdown) :is(.menu__item:hover, .menu__link:hover) {
    background: rgba(99, 230, 190, .14) !important;
    color: var(--g-mint) !important;
}
html.site-theme-egg :is(.dropdown-target, .drop-element, .nav__dropdown) :is(.menu__item.active, .menu__item.selected) {
    background-image: linear-gradient(100deg, #7dffdc, #4fd3ac) !important;
    color: #10261f !important;
    font-weight: 700 !important;
}

/* ---------- 3. 面板 / 卡片 ---------- */
html.site-theme-egg :is(.section, .card, .panel, .box, .widget, .sidebar) {
    background-color: var(--g-panel) !important;
    background-image:
        radial-gradient(80% 60% at 100% 0%, rgba(255, 158, 207, .10), transparent 62%),
        linear-gradient(180deg, rgba(255, 255, 255, .04), transparent 26%) !important;
    border: 1px solid var(--g-line) !important;
    border-radius: var(--g-radius) !important;
    box-shadow: var(--g-shadow) !important;
}
html.site-theme-egg :is(.section__header, .card__header, .panel__header) {
    background: linear-gradient(180deg, rgba(99, 230, 190, .12), rgba(255, 255, 255, 0)) !important;
    border-bottom: 1px solid var(--g-line-soft) !important;
    border-radius: var(--g-radius) var(--g-radius) 0 0 !important;
}
html.site-theme-egg :is(.section__title, .card__title, .panel__title) {
    color: var(--g-cream) !important;
    font-weight: 800 !important;
    letter-spacing: .02em;
}
html.site-theme-egg :is(.section__title)::before {
    content: '';
    display: inline-block; width: 8px; height: 8px; margin-right: 8px;
    border-radius: 50%;
    background: linear-gradient(180deg, #8cf0cf, #ff9ecf);
    box-shadow: 0 0 10px -1px rgba(99, 230, 190, .9);
    vertical-align: 2px;
}
html.site-theme-egg :is(.section__body, .card__body, .panel__body) { color: var(--g-ink); }

/* ---------- 4. 按钮 / 输入 / 表格 / 分页 ---------- */
html.site-theme-egg :is(button, input[type="submit"], input[type="button"], input[type="reset"], .button, .btn) {
    background-color: rgba(45, 31, 70, .95) !important;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .07), transparent 62%) !important;
    border: 1px solid var(--g-line) !important;
    color: var(--g-ink) !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10) !important;
    transition: background .16s, color .16s, border-color .16s, transform .12s;
}
html.site-theme-egg :is(button, input[type="submit"], input[type="button"], input[type="reset"], .button, .btn):hover {
    border-color: rgba(99, 230, 190, .75) !important;
    color: var(--g-mint) !important;
}
html.site-theme-egg :is(.button.primary, .btn.primary, button.primary,
    input[type="submit"].primary, a.button.primary, .pager__item.active) {
    background-image: linear-gradient(180deg, #8cf0cf, #4fd3ac) !important;
    background-color: #4fd3ac !important;
    border-color: #37b794 !important;
    color: #10261f !important;
    font-weight: 800 !important;
}
html.site-theme-egg :is(input:not([type]), input[type="text"], input[type="password"], input[type="number"],
    input[type="email"], input[type="search"], textarea, select) {
    background-color: rgba(22, 14, 38, .92) !important;
    border: 1px solid var(--g-line) !important;
    border-radius: 12px !important;
    color: var(--g-ink) !important;
}
html.site-theme-egg :is(input, textarea):focus {
    border-color: rgba(99, 230, 190, .8) !important;
    box-shadow: 0 0 0 4px rgba(99, 230, 190, .14) !important;
    outline: none !important;
}
html.site-theme-egg table { color: var(--g-ink); }
html.site-theme-egg :is(th, .section__table-header) {
    background: rgba(99, 230, 190, .10) !important;
    color: var(--g-cream) !important;
    border-color: var(--g-line-soft) !important;
}
html.site-theme-egg :is(td, tr) { border-color: var(--g-line-soft) !important; }
html.site-theme-egg tr:hover td { background: rgba(99, 230, 190, .06) !important; }
html.site-theme-egg :is(.pager__item, .pagination a, .pagination span) { color: var(--g-ink2) !important; }

/* 标签 / 徽章：深底亮字（避免"浅底浅字"撞色） */
html.site-theme-egg :is(.problem__tag, .problem__tag-link, [class*="problem__tag"],
    .contest-type-tag, .contest-tag, .contest-tag-rated, [class*="contest-tag"]) {
    background: rgba(99, 230, 190, .14) !important;
    background-image: none !important;
    border: 1px solid rgba(99, 230, 190, .48) !important;
    border-radius: 999px !important;
    color: #a9f7e2 !important;
    padding: 1px 9px !important;
    line-height: 1.5 !important;
}
html.site-theme-egg .contest-tag-rated,
html.site-theme-egg .contest-type--rated :is(.contest-tag, .contest-type-tag) {
    background: rgba(255, 158, 207, .18) !important;
    border-color: rgba(255, 158, 207, .55) !important;
    color: #ffd0e8 !important;
}
html.site-theme-egg :is(.user-profile-badge, [class*="user-profile-badge"], .badge) {
    background: rgba(255, 217, 142, .16) !important;
    border: 1px solid rgba(255, 217, 142, .5) !important;
    color: #ffe9bd !important;
    border-radius: 999px !important;
}

/* ---------- 5. 比赛列表行 ---------- */
html.site-theme-egg :is(.contest__item, .contest__list-item) {
    background: rgba(255, 255, 255, .03) !important;
    border-left: 3px solid rgba(99, 230, 190, .35) !important;
    border-radius: 12px !important;
}
html.site-theme-egg :is(.contest__item, .contest__list-item):hover {
    background: rgba(99, 230, 190, .10) !important;
    border-left-color: var(--g-mint) !important;
}
html.site-theme-egg :is(.contest__title, .contest__title a, .contest__name) { color: var(--g-cream) !important; }
html.site-theme-egg :is(.contest__item, .contest__list-item) :is(small, .contest__time, .contest__duration,
    .contest__participants, .contest__rule, .contest__info, .contest__date) { color: var(--g-ink2) !important; }

/* ---------- 6. 运行时归一化兜底（IDE / monaco / 插件浅底） ---------- */
html.site-theme-egg .tf-bg {
    background-color: rgba(30, 20, 48, .95) !important;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .045), transparent 24%) !important;
    color: var(--g-ink) !important;
    border-color: var(--g-line) !important;
}
html.site-theme-egg .tf-bg :is(h1, h2, h3, h4, p, span, li, b, strong, em, i, a, code, td, th, label) {
    color: var(--g-ink) !important;
}
html.site-theme-egg .tf-bg :is(h1, h2, h3, h4) { color: var(--g-cream) !important; }
html.site-theme-egg .tf-bg :is(a) { color: var(--g-mint) !important; }
html.site-theme-egg .tf-bg :is(pre, textarea, code) {
    background-color: rgba(14, 9, 26, .94) !important;
    color: #e9e2f5 !important;
}

/* ============================================================
   7. 首页：欢迎面板背图 + 列表游戏元素装饰
   ============================================================ */
html.site-theme-egg .large-9 > .section.visible:not([class*="page--"]):not(.side) {
    position: relative !important;
    overflow: hidden !important;
    min-height: 224px !important;
    background-color: #1a1130 !important;
    background-image:
        linear-gradient(90deg, rgba(14, 8, 26, .95) 0%, rgba(14, 8, 26, .86) 36%,
            rgba(14, 8, 26, .46) 66%, rgba(14, 8, 26, .16) 100%),
        url("/egg-hero.jpg") !important;
    background-size: 100% 100%, cover !important;
    background-position: 0 0, right 44% !important;
    background-repeat: no-repeat, no-repeat !important;
    border: 1px solid var(--g-line) !important;
    border-radius: 22px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), var(--g-shadow) !important;
}
/* 顶部一圈糖果泡泡 */
html.site-theme-egg .large-9 > .section.visible:not([class*="page--"]):not(.side)::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; z-index: 2;
    background-image: repeating-linear-gradient(90deg,
        #8cf0cf 0 18px, #ffd98e 18px 36px, #ff9ecf 36px 54px, #b79bff 54px 72px);
    opacity: .85; pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, #000 0 70%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0 70%, transparent 100%);
}
html.site-theme-egg .large-9 > .section.visible:not([class*="page--"]):not(.side) > .section__body {
    position: relative; z-index: 2; padding: 18px 22px !important;
}
html.site-theme-egg .large-9 > .section.visible:not([class*="page--"]):not(.side) h3 {
    color: #fff6ea !important;
    letter-spacing: .02em;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(99, 230, 190, .35);
    display: inline-block;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .8);
}
html.site-theme-egg .large-9 > .section.visible:not([class*="page--"]):not(.side) :is(p, li) {
    color: #e6dcf5 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .8);
}

/* 训练 / 讨论 / 名次区块：角落挂游戏小图 + 泡泡点 */
html.site-theme-egg :is(.section.page--training_main, .section.page--discussion_main, .section.panel) {
    position: relative !important;
    overflow: hidden !important;
}
html.site-theme-egg .section.page--training_main {
    background-image:
        linear-gradient(180deg, rgba(38, 26, 58, .97), rgba(26, 17, 44, .96)),
        url("/egg-prop-1.jpg") !important;
    background-repeat: no-repeat, no-repeat !important;
    background-position: 0 0, right -28px top 44px !important;
    background-size: 100% 100%, 300px auto !important;
}
html.site-theme-egg .section.page--discussion_main {
    background-image:
        linear-gradient(180deg, rgba(38, 26, 58, .97), rgba(26, 17, 44, .96)),
        url("/egg-prop-2.jpg") !important;
    background-repeat: no-repeat, no-repeat !important;
    background-position: 0 0, right -18px top 52px !important;
    background-size: 100% 100%, 250px auto !important;
}
html.site-theme-egg .large-9 > .section.visible:not([class*="page--"]):not(.side)
    ~ .section.visible:not([class*="page--"]) {
    background-image:
        linear-gradient(180deg, rgba(38, 26, 58, .97), rgba(26, 17, 44, .96)),
        url("/egg-prop-3.jpg") !important;
    background-repeat: no-repeat, no-repeat !important;
    background-position: 0 0, right -20px top 46px !important;
    background-size: 100% 100%, 260px auto !important;
}
html.site-theme-egg .section.side {
    background-image:
        linear-gradient(180deg, rgba(38, 26, 58, .97), rgba(26, 17, 44, .96)),
        url("/egg-prop-2.jpg") !important;
    background-repeat: no-repeat, no-repeat !important;
    background-position: 0 0, right -16px top 28px !important;
    background-size: 100% 100%, 150px auto !important;
}
html.site-theme-egg .section.side > * { position: relative; z-index: 1; }

/* 训练卡片：糖果色左边 + hover */
html.site-theme-egg .section.page--training_main .training__item {
    position: relative !important;
    border-left: 3px solid rgba(255, 217, 142, .55) !important;
    border-radius: 12px !important;
    transition: background .18s, border-color .18s;
}
html.site-theme-egg .section.page--training_main .training__item:hover {
    border-left-color: var(--g-mint) !important;
    background-image: linear-gradient(90deg, rgba(99, 230, 190, .10), transparent 58%) !important;
}
html.site-theme-egg .section.page--training_main .training__item :is(h1, .training__title, .training__title a) {
    color: var(--g-cream) !important;
}

/* ============================================================
   8. 算法动画面板（对齐设计稿 04 屏：扁平糖果柱 + 伪代码右栏）
   ============================================================ */
html.anim-egg .anim-page { max-width: min(1600px, 96vw) !important; }
html.anim-egg .anim-wrap { max-width: none !important; }

/* 8.1 版面：舞台左、控制条下、伪代码右 */
html.anim-egg .anim-main.oj-studio {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) clamp(400px, 36vw, 620px) !important;
    grid-template-areas:
        "head    head"
        "data    data"
        "studio  code"
        "ctrl    code"
        "legend  code"
        "note    code"
        "doc     doc" !important;
    gap: 10px 14px !important;
    align-items: start !important;
}
html.anim-egg .anim-main.oj-studio .anim-mainhead { grid-area: head !important; }
html.anim-egg .anim-main.oj-studio .anim-panel { display: contents !important; }
html.anim-egg .anim-main.oj-studio .anim-datarow { grid-area: data !important; }
html.anim-egg .anim-main.oj-studio .anim-studio { grid-area: studio !important; margin: 0 !important; }
html.anim-egg .anim-main.oj-studio .anim-ctrlrow { grid-area: ctrl !important; }
html.anim-egg .anim-main.oj-studio .anim-legendrow { grid-area: legend !important; }
html.anim-egg .anim-main.oj-studio .anim-note { grid-area: note !important; margin: 0 !important; }
html.anim-egg .anim-main.oj-studio .anim-codebox {
    grid-area: code !important;
    margin: 0 !important;
    align-self: start !important;
    height: auto !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
}
html.anim-egg .anim-main.oj-studio .anim-doc { grid-area: doc !important; }
html.anim-egg .anim-main.oj-studio :is(.anim-datarow, .anim-ctrlrow) {
    background: linear-gradient(180deg, rgba(44, 30, 68, .96), rgba(28, 18, 48, .97)) !important;
    border: 1px solid var(--g-line) !important;
    border-radius: 14px !important;
    padding: 8px 12px !important;
}
html.anim-egg .anim-main.oj-studio .anim-legendrow { padding: 2px 4px 0 !important; gap: 14px !important; }
@media (max-width: 1300px) {
    html.anim-egg .anim-main.oj-studio {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-areas: "head" "data" "studio" "ctrl" "legend" "note" "code" "doc" !important;
    }
}

/* 8.2 舞台：糖果泡泡罩 */
html.site-theme-egg .anim-studio {
    background-color: rgba(22, 14, 38, .98) !important;
    background-image:
        radial-gradient(120% 90% at 50% 118%, rgba(99, 230, 190, .12), transparent 64%),
        radial-gradient(80% 60% at 8% -6%, rgba(255, 158, 207, .14), transparent 60%),
        linear-gradient(180deg, #1b1232 0%, #150e28 62%, #120b22 100%) !important;
    border: 1px solid var(--g-line) !important;
    border-radius: 20px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 24px 48px -34px #000 !important;
    position: relative; overflow: hidden;
}
/* 泡泡纹样 */
html.site-theme-egg .anim-studio::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background-image:
        radial-gradient(circle at 18% 26%, rgba(255, 255, 255, .14) 0 10px, transparent 11px),
        radial-gradient(circle at 78% 18%, rgba(255, 158, 207, .16) 0 14px, transparent 15px),
        radial-gradient(circle at 62% 82%, rgba(99, 230, 190, .14) 0 18px, transparent 19px),
        radial-gradient(circle at 34% 88%, rgba(183, 155, 255, .14) 0 8px, transparent 9px),
        radial-gradient(circle at 88% 68%, rgba(255, 217, 142, .12) 0 12px, transparent 13px),
        radial-gradient(circle at 8% 62%, rgba(255, 255, 255, .10) 0 6px, transparent 7px);
    background-size: 420px 320px;
    -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 24%, rgba(0, 0, 0, .6) 72%, transparent 96%);
    mask-image: radial-gradient(120% 100% at 50% 0%, #000 24%, rgba(0, 0, 0, .6) 72%, transparent 96%);
}
html.site-theme-egg .anim-studio > * { position: relative; z-index: 1; }
html.site-theme-egg .anim-studio__top { color: var(--g-ink2) !important; }
html.site-theme-egg .anim-studio__dot {
    background: var(--g-mint) !important;
    box-shadow: 0 0 0 4px rgba(99, 230, 190, .2), 0 0 12px rgba(99, 230, 190, .8) !important;
}
html.site-theme-egg .anim-studio__lv {
    background: rgba(255, 255, 255, .10) !important;
    border: 1px solid var(--g-line) !important;
    color: var(--g-cream) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
}
html.site-theme-egg .anim-studio__name { color: var(--g-ink) !important; font-weight: 700 !important; }
html.site-theme-egg .anim-studio__pat {
    background: rgba(255, 217, 142, .16) !important;
    border: 1px solid rgba(255, 217, 142, .5) !important;
    color: #ffe9bd !important;
    border-radius: 999px !important;
}
html.site-theme-egg .anim-progress {
    height: 8px !important;
    background: rgba(255, 255, 255, .12) !important;
    border-radius: 999px !important;
    overflow: hidden;
}
html.site-theme-egg .anim-progress i {
    background-image: linear-gradient(90deg, #7dffdc, #4fd3ac 60%, #ff9ecf) !important;
    border-radius: 999px !important;
    box-shadow: 0 0 14px -2px rgba(99, 230, 190, .9) !important;
}
html.site-theme-egg .anim-studio__corner { border-color: rgba(99, 230, 190, .55) !important; }
html.site-theme-egg .anim-stage {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 10px 8px 4px !important;
}
html.site-theme-egg .anim-stage::before { display: none !important; }

/* 8.3 柱子：扁平糖果色块 */
html.site-theme-egg .anim-bars { align-items: flex-end !important; }
html.site-theme-egg .anim-bar {
    --g-bar: #6b5b8c;
    --g-bar-top: #8775a8;
    --g-bar-bot: #4a3d63;
    --g-glow: rgba(107, 91, 140, 0);
}
html.site-theme-egg .anim-bar.is-ok { --g-bar: #4fd3ac; --g-bar-top: #8cf0cf; --g-bar-bot: #2a9c7c; --g-glow: rgba(99, 230, 190, .8); }
html.site-theme-egg .anim-bar.is-cmp { --g-bar: #ff9ecf; --g-bar-top: #ffc4e2; --g-bar-bot: #d45f9c; --g-glow: rgba(255, 158, 207, .8); }
html.site-theme-egg .anim-bar.is-swap { --g-bar: #ff7a45; --g-bar-top: #ffa878; --g-bar-bot: #c9502a; --g-glow: rgba(255, 122, 69, .85); }
html.site-theme-egg .anim-bar.is-cur { --g-bar: #ffd98e; --g-bar-top: #fff0c4; --g-bar-bot: #c9a04a; --g-glow: rgba(255, 217, 142, .85); }
html.site-theme-egg .anim-bar.is-dead { --g-bar: #4a3d63; --g-bar-top: #5b4d78; --g-bar-bot: #372c4d; }
html.site-theme-egg .anim-bar__tube { background: none !important; border: 0 !important; box-shadow: none !important; }
html.site-theme-egg .anim-bar__fill {
    background-image: linear-gradient(180deg, var(--g-bar-top) 0%, var(--g-bar) 30%,
        var(--g-bar) 74%, var(--g-bar-bot) 100%) !important;
    background-blend-mode: normal !important;
    border-radius: 10px 10px 4px 4px !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .20), 0 0 18px -8px var(--g-glow) !important;
}
html.site-theme-egg :is(.anim-bar__anod, .anim-bar__heat, .anim-bar__rivet, .anim-bar__plate,
    .anim-bar__face, .anim-bar__cap, .anim-bar__foot, .anim-bar__pedestal, .anim-bar__socket) {
    display: none !important;
}
html.site-theme-egg .anim-bar__val {
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 0 2px !important;
    margin-bottom: 6px !important;
    color: var(--g-ink) !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}
html.site-theme-egg .anim-bar.is-ok .anim-bar__val { color: #a9f7e2 !important; }
html.site-theme-egg .anim-bar.is-cmp .anim-bar__val { color: #ffd0e8 !important; }
html.site-theme-egg .anim-bar.is-swap .anim-bar__val { color: #ffcbb4 !important; }
html.site-theme-egg .anim-bar.is-cur .anim-bar__val { color: #ffe9bd !important; }
html.site-theme-egg .anim-bar__idx {
    margin-top: 6px !important;
    color: var(--g-ink3) !important;
    font-size: 10.5px !important;
    letter-spacing: .08em;
    min-width: 22px; text-align: center;
}
html.site-theme-egg .anim-axis__tick { color: var(--g-ink3) !important; }
html.site-theme-egg .anim-axis__tick i { background: rgba(255, 255, 255, .22) !important; }

/* 8.4 伪代码面板 */
html.site-theme-egg .anim-codebox {
    background: linear-gradient(180deg, rgba(34, 23, 54, .98), rgba(20, 13, 34, .99)) !important;
    background-image: linear-gradient(180deg, rgba(34, 23, 54, .98), rgba(20, 13, 34, .99)) !important;
    border: 1px solid var(--g-line) !important;
    border-radius: 16px !important;
    padding: 12px 12px 14px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), var(--g-shadow) !important;
}
html.site-theme-egg .anim-codehead {
    font: 800 10.5px/1 ui-monospace, Consolas, monospace !important;
    letter-spacing: .18em !important;
    text-transform: uppercase;
    color: var(--g-mint) !important;
    padding-bottom: 8px !important;
    margin-bottom: 8px !important;
    border-bottom: 1px solid var(--g-line-soft) !important;
}
html.site-theme-egg .anim-codehead :is(i, span, em) {
    font: 400 10.5px/1 ui-monospace, Consolas, monospace !important;
    letter-spacing: .06em !important;
    color: var(--g-ink3) !important;
}
html.site-theme-egg .anim-code {
    --stepc: #7dffdc;
    background: rgba(12, 8, 22, .85) !important;
    background-image: none !important;
    border: 1px solid var(--g-line-soft) !important;
    border-radius: 10px !important;
    max-height: none !important;
    height: auto !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    padding: 8px 0 10px !important;
    box-shadow: none !important;
}
html.site-theme-egg .anim-line { border-left: 3px solid transparent !important; position: relative; }
html.site-theme-egg .anim-line:hover { background: rgba(99, 230, 190, .10) !important; }
html.site-theme-egg .anim-line .anim-ln { flex: 0 0 24px !important; padding-right: 6px !important; color: var(--g-ink3) !important; }
html.site-theme-egg .anim-line .anim-src { color: #e9e2f5 !important; font-size: 12px !important; }
html.site-theme-egg .anim-line.is-cur {
    background-color: transparent !important;
    background-image: linear-gradient(90deg,
        color-mix(in srgb, var(--stepc) 56%, #140c26) 0%,
        color-mix(in srgb, var(--stepc) 24%, #140c26) 58%,
        color-mix(in srgb, var(--stepc) 8%, #140c26) 100%) !important;
    border-left: 3px solid var(--stepc) !important;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--stepc) 42%, transparent),
        0 0 22px -14px var(--stepc) !important;
}
html.site-theme-egg .anim-line.is-cur .anim-ln { color: color-mix(in srgb, var(--stepc) 28%, #ffffff) !important; font-weight: 700 !important; }
html.site-theme-egg .anim-line.is-cur .anim-src { color: #ffffff !important; }
html.site-theme-egg .anim-line.is-cur::before {
    content: ''; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; margin-top: -2.5px;
    border-radius: 50%; background: var(--stepc);
    box-shadow: 0 0 8px 1px color-mix(in srgb, var(--stepc) 75%, transparent);
}
html.site-theme-egg .anim-line .c-kw { color: #c9a6ff !important; font-weight: 600; }
html.site-theme-egg .anim-line .c-ty { color: #8ce3f0 !important; }
html.site-theme-egg .anim-line .c-st { color: #a9f7c9 !important; }
html.site-theme-egg .anim-line .c-nu { color: #ffd98e !important; }
html.site-theme-egg .anim-line .c-cm { color: #9d8cb4 !important; font-style: italic; }
html.site-theme-egg .anim-line .c-pp { color: #ffb0cf !important; }

/* 8.5 控制条 / 图例 / 说明 */
html.anim-egg .anim-ctrl,
html.anim-egg .anim-btn {
    border-radius: 999px !important;
    background-color: rgba(45, 31, 70, .95) !important;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .07), transparent 62%) !important;
    border: 1px solid var(--g-line) !important;
    color: var(--g-ink) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10) !important;
    font-weight: 600 !important;
}
html.anim-egg :is(.anim-ctrl, .anim-btn):hover {
    border-color: rgba(99, 230, 190, .8) !important;
    color: var(--g-mint) !important;
}
html.anim-egg .anim-ctrl--primary,
html.anim-egg .anim-ctrl.is-playing {
    background-image: linear-gradient(180deg, #8cf0cf, #4fd3ac) !important;
    background-color: #4fd3ac !important;
    border-color: #37b794 !important;
    color: #10261f !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 22px -16px #000 !important;
}
html.anim-egg .anim-step {
    background: rgba(99, 230, 190, .14) !important;
    border: 1px solid rgba(99, 230, 190, .45) !important;
    border-radius: 999px !important;
    color: #a9f7e2 !important;
    font: 700 11.5px/1.5 ui-monospace, Consolas, monospace !important;
    padding: 3px 10px !important;
}
html.anim-egg .anim-speedwrap { color: var(--g-ink2) !important; font-size: 11.5px !important; }
html.anim-egg .anim-speedwrap output { color: var(--g-cream) !important; font-weight: 700 !important; }
html.anim-egg #anim-speed { accent-color: #4fd3ac; }
html.anim-egg .anim-input {
    border-radius: 999px !important;
    background: rgba(14, 9, 26, .92) !important;
    border: 1px solid var(--g-line) !important;
    color: var(--g-ink) !important;
    font-family: ui-monospace, Consolas, monospace !important;
}
html.anim-egg .anim-lg { color: var(--g-ink2) !important; font-size: 11.5px !important; }
html.anim-egg .anim-chip {
    width: 10px !important; height: 10px !important;
    border-radius: 50% !important;
    background: #6b5b8c !important;
    box-shadow: none !important;
}
html.anim-egg .anim-chip.is-cur { background: var(--g-cream) !important; }
html.anim-egg .anim-chip.is-cmp { background: var(--g-pink) !important; }
html.anim-egg .anim-chip.is-swap { background: #ff7a45 !important; }
html.anim-egg .anim-chip.is-ok { background: var(--g-mint) !important; }
html.anim-egg .anim-chip.is-fresh { background: var(--g-lav) !important; }
html.anim-egg .anim-chip.is-dep { background: #9d8cb4 !important; }
html.anim-egg .anim-note {
    background: rgba(30, 20, 48, .96) !important;
    border: 1px solid var(--g-line) !important;
    border-radius: 12px !important;
    color: var(--g-ink2) !important;
    font-size: 12.5px !important;
}
html.anim-egg .anim-note :is(b, strong) { color: var(--g-cream) !important; }

/* 8.6 章节横幅（背图 + 标题） */
html.site-theme-egg .anim-mainhead {
    background: linear-gradient(180deg, rgba(44, 30, 68, .97), rgba(24, 15, 42, .98)) !important;
    border: 1px solid var(--g-line) !important;
    border-radius: 18px !important;
    box-shadow: var(--g-shadow) !important;
    position: relative; overflow: hidden;
}
html.site-theme-egg .anim-mainhead::after {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(90deg, rgba(20, 12, 36, .95) 0%, rgba(20, 12, 36, .82) 36%,
            rgba(20, 12, 36, .42) 68%, rgba(20, 12, 36, .12) 100%),
        var(--tex);
    background-size: 100% 100%, 132% auto;
    background-position: 0 0, 76% 24%;
    background-repeat: no-repeat, no-repeat;
}
html.site-theme-egg .anim-mainhead > * { position: relative; z-index: 1; }
html.site-theme-egg .anim-crumb {
    background: rgba(99, 230, 190, .14) !important;
    border: 1px solid rgba(99, 230, 190, .5) !important;
    color: #a9f7e2 !important;
    border-radius: 999px !important;
}
html.site-theme-egg .anim-title-row h2 { color: var(--g-cream) !important; }
html.site-theme-egg .anim-mainhead p { color: var(--g-ink2) !important; }
html.site-theme-egg .anim-card__badge {
    background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(99, 230, 190, .22)) !important;
    border: 1px solid rgba(99, 230, 190, .5) !important;
    color: #a9f7e2 !important;
    border-radius: 12px !important;
}

/* 8.7 动画卡片：24 章底纹 + 糖果徽记 + 短句 */
html.site-theme-egg .anim-card {
    background-image:
        linear-gradient(180deg, rgba(40, 27, 62, .97), rgba(22, 14, 38, .98)) !important;
    border: 1px solid var(--g-line) !important;
    border-radius: 18px !important;
    position: relative;
}
html.site-theme-egg .anim-card__tex {
    position: absolute; inset: 0; z-index: 0; display: block; pointer-events: none;
    border-radius: inherit;
    background-image: var(--tex);
    background-size: cover;
    background-position: 50% 32%;
    opacity: .5;
    transform: scale(1.02);
    -webkit-mask-image: radial-gradient(130% 114% at 66% 26%, #000 8%, rgba(0, 0, 0, .9) 34%,
        rgba(0, 0, 0, .42) 68%, rgba(0, 0, 0, 0) 94%);
    mask-image: radial-gradient(130% 114% at 66% 26%, #000 8%, rgba(0, 0, 0, .9) 34%,
        rgba(0, 0, 0, .42) 68%, rgba(0, 0, 0, 0) 94%);
    transition: opacity .3s ease, transform .5s ease;
}
html.site-theme-egg .anim-card:hover .anim-card__tex { opacity: .68; transform: scale(1.06); }
html.anim-egg .anim-card__body {
    background-color: rgba(24, 16, 40, .62) !important;
    background-image:
        linear-gradient(102deg, rgba(18, 11, 32, .93) 0%, rgba(18, 11, 32, .84) 32%,
            rgba(18, 11, 32, .52) 58%, rgba(18, 11, 32, .20) 78%, rgba(18, 11, 32, .06) 100%) !important;
    border: 1px solid rgba(255, 255, 255, .10) !important;
    border-radius: 14px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 10px 24px -18px #000 !important;
    transition: background-image .3s ease;
}
html.anim-egg .anim-card:hover .anim-card__body {
    background-image:
        linear-gradient(102deg, rgba(18, 11, 32, .90) 0%, rgba(18, 11, 32, .76) 32%,
            rgba(18, 11, 32, .40) 58%, rgba(18, 11, 32, .10) 78%, rgba(18, 11, 32, 0) 100%) !important;
}
html.anim-egg .anim-card__title { color: var(--g-cream) !important; }
html.anim-egg .anim-card__desc { color: #d9cce9 !important; }
html.anim-egg :is(.anim-card__time, .anim-card__idx) { color: var(--g-ink2) !important; }
html.anim-egg .anim-card__go { color: var(--g-mint) !important; }

/* 章节选中项：奶油→薄荷（不用死蓝） */
html.site-theme-egg .anim-chapter.is-on {
    background-image: linear-gradient(100deg, #8cf0cf 0%, #4fd3ac 54%, #ffd98e 100%) !important;
    background-color: #4fd3ac !important;
    color: #10261f !important;
    font-weight: 700 !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 22px -16px rgba(79, 211, 172, .95), inset 0 1px 0 rgba(255, 255, 255, .45) !important;
    position: relative;
}
html.site-theme-egg .anim-chapter.is-on,
html.site-theme-egg .anim-chapter.is-on * { color: #10261f !important; text-shadow: none; }
html.site-theme-egg .anim-chapter.is-on .anim-chapter__count { color: #1c4034 !important; }
html.site-theme-egg .anim-chapter:hover:not(.is-on) {
    background-image: linear-gradient(100deg, rgba(99, 230, 190, .14), rgba(255, 158, 207, .12)) !important;
    color: var(--g-mint) !important;
}
html.site-theme-egg .anim-chapter { color: var(--g-ink2) !important; border-radius: 999px !important; }

/* 糖果徽记（替代恋与深空的月相）+ 章节短句 */
html.site-theme-egg .anim-card__moon {
    display: block;
    position: absolute; right: 40px; top: 9px; z-index: 2;
    width: 26px; height: 26px; pointer-events: none;
    border-radius: 50%;
    background-image:
        radial-gradient(circle at 34% 30%, #ffffff 0 22%, transparent 24%),
        repeating-conic-gradient(from 0deg, #ff9ecf 0deg 26deg, #ffd98e 26deg 52deg,
            #8cf0cf 52deg 78deg, #b79bff 78deg 104deg);
    box-shadow: 0 0 12px -3px rgba(255, 158, 207, .95), inset 0 0 6px rgba(255, 255, 255, .5);
    opacity: .95;
    animation: rcOrbitEgg 18s linear infinite;
}
@keyframes rcOrbitEgg { to { transform: rotate(360deg); } }
html.site-theme-egg .anim-card__verse {
    display: block;
    position: absolute; left: 50%; bottom: 7px; z-index: 3;
    transform: translate(-50%, 4px);
    padding: 2px 10px; border-radius: 999px;
    background: rgba(24, 15, 42, .95);
    border: 1px solid rgba(99, 230, 190, .45);
    box-shadow: 0 8px 18px -12px #000;
    font: 500 11px/1.5 "PingFang SC", "Microsoft YaHei", system-ui;
    color: #cdf6e9;
    white-space: nowrap; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis;
    opacity: 0; transition: opacity .24s ease, transform .24s ease;
    pointer-events: none;
}
html.site-theme-egg .anim-card:hover .anim-card__verse { opacity: 1; transform: translate(-50%, 0); }
html.site-theme-egg .anim-card__foot { transition: opacity .22s ease; }
html.site-theme-egg .anim-card:hover .anim-card__foot { opacity: .3; }
html.site-theme-egg .anim-mainhead__verse {
    display: block; margin-top: 6px;
    font: 500 12.5px/1.6 "PingFang SC", "Microsoft YaHei", system-ui;
    color: #cdf6e9; letter-spacing: .04em;
    position: relative; padding-left: 18px;
}
html.site-theme-egg .anim-mainhead__verse::before {
    content: '🍬'; position: absolute; left: 0; top: 0; font-size: 11px; line-height: 20px;
}

/* 8.8 算法说明块 */
html.site-theme-egg .anim-doc {
    background: linear-gradient(180deg, rgba(34, 23, 54, .96), rgba(20, 13, 34, .97)) !important;
    border: 1px solid var(--g-line) !important;
    border-radius: 16px !important;
    color: var(--g-ink2) !important;
}
html.site-theme-egg .anim-doc :is(h3, h4) { color: var(--g-cream) !important; }
html.site-theme-egg .anim-doc :is(code, b, strong) { color: var(--g-mint) !important; }


/* ---------- 9. 24 章底纹映射 ---------- */
html.site-theme-egg [data-ch="1"] { --tex: url("/egg-ch-01.jpg"); }   /* 1. 比较交换排序 */
html.site-theme-egg [data-ch="2"] { --tex: url("/egg-ch-02.jpg"); }   /* 2. 分治归并排序 */
html.site-theme-egg [data-ch="3"] { --tex: url("/egg-ch-03.jpg"); }   /* 3. 非比较分布排序 */
html.site-theme-egg [data-ch="4"] { --tex: url("/egg-ch-04.jpg"); }   /* 4. 链表操作 */
html.site-theme-egg [data-ch="5"] { --tex: url("/egg-ch-05.jpg"); }   /* 5. 双指针与滑窗 */
html.site-theme-egg [data-ch="6"] { --tex: url("/egg-ch-06.jpg"); }   /* 6. 二叉树遍历 */
html.site-theme-egg [data-ch="7"] { --tex: url("/egg-ch-07.jpg"); }   /* 7. BST 操作 */
html.site-theme-egg [data-ch="8"] { --tex: url("/egg-ch-08.jpg"); }   /* 8. 自平衡树 */
html.site-theme-egg [data-ch="9"] { --tex: url("/egg-ch-09.jpg"); }   /* 9. 堆与优先队列 */
html.site-theme-egg [data-ch="10"] { --tex: url("/egg-ch-10.jpg"); }   /* 10. Trie与前缀树 */
html.site-theme-egg [data-ch="11"] { --tex: url("/egg-ch-11.jpg"); }   /* 11. 图的存储与遍历 */
html.site-theme-egg [data-ch="12"] { --tex: url("/egg-ch-12.jpg"); }   /* 12. 最短路径 */
html.site-theme-egg [data-ch="13"] { --tex: url("/egg-ch-13.jpg"); }   /* 13. 最小生成树 */
html.site-theme-egg [data-ch="14"] { --tex: url("/egg-ch-14.jpg"); }   /* 14. 拓扑排序 */
html.site-theme-egg [data-ch="15"] { --tex: url("/egg-ch-15.jpg"); }   /* 15. 并查集 */
html.site-theme-egg [data-ch="16"] { --tex: url("/egg-ch-16.jpg"); }   /* 16. DP状态转移 */
html.site-theme-egg [data-ch="17"] { --tex: url("/egg-ch-17.jpg"); }   /* 17. 贪心策略 */
html.site-theme-egg [data-ch="18"] { --tex: url("/egg-ch-18.jpg"); }   /* 18. 字符串匹配 */
html.site-theme-egg [data-ch="19"] { --tex: url("/egg-ch-19.jpg"); }   /* 19. 搜索与回溯 */
html.site-theme-egg [data-ch="20"] { --tex: url("/egg-ch-20.jpg"); }   /* 20. 递归入门 */
html.site-theme-egg [data-ch="21"] { --tex: url("/egg-ch-21.jpg"); }   /* 21. GCD与扩展欧几里得 */
html.site-theme-egg [data-ch="22"] { --tex: url("/egg-ch-22.jpg"); }   /* 22. 素数筛 */
html.site-theme-egg [data-ch="23"] { --tex: url("/egg-ch-23.jpg"); }   /* 23. 快速幂与矩阵加速 */
html.site-theme-egg [data-ch="24"] { --tex: url("/egg-ch-24.jpg"); }   /* 24. 组合数学与容斥 */


/* ---------- 10. 白底兜底（从沙漠主题换色复用：表格 / 页脚 / 输入 / tab / GESP / 空状态） ---------- */
/* ---------- 14. 页面外壳：Hydro 默认是浅灰底，必须让背景暗图透出来 ---------- */ html.site-theme-egg :is(.slideout-panel, .slideout-menu, .main, main, .row, .columns, .page, .wrapper, body > .row, footer, .footer, .footer__extra, .nav__list) {
    background-color: transparent !important;
    background-image: none !important;}
/* 表格行本身也有底色，一并清掉 */ html.site-theme-egg :is(table, .data-table) :is(tr, tbody tr) {
    background-color: transparent !important;
    background-image: none !important;}
html.site-theme-egg :is(table, .data-table) tbody tr:hover {
    background-color: rgba(99, 230, 190, .10) !important;}
/* 控制面板的提示块（blockquote.blue / .yellow 之类） */ html.site-theme-egg :is(blockquote, .alert, .note-box) {
    background-color: rgba(255, 246, 234, .06) !important;
    background-image: none !important;
    border-left: 3px solid var(--g-mint) !important;
    color: var(--g-ink) !important;
    border-radius: var(--g-radius) !important;}
html.site-theme-egg :is(blockquote, .alert, .note-box) :is(p, span, a, code) {
    color: var(--g-ink) !important;}
/* 页脚文字 */ html.site-theme-egg :is(footer, .footer, .footer__extra) :is(a, span, li, p) {
    color: var(--g-ink3) !important;}
html.site-theme-egg :is(footer, .footer) a:hover { color: var(--g-mint) !important;}
/* ---------- 15. 所有标题：Hydro 默认 #3d3d3d，暗底上必须统一 ---------- */ html.site-theme-egg :is(h1, h2, h3, h4, h5, h6, .dialog--signin__title) {
    color: #ffd98e !important;}
html.site-theme-egg :is(h1, h2, h3, h4, h5, h6) :is(a, span, em, strong) {
    color: inherit !important;}
/* ---------- 16. GESP/CSP 插件自带的白底容器 → 沙色面板 ---------- */ html.site-theme-egg :is(.gesp-page, .gesp-wrap, .gesp-main, .gesp-content, .gesp-body, .gesp-panel, .gesp-card, .gesp-box, .gesp-section, .gesp-list, .gesp-table, .gesp-tabs, .gesp-tab, .gesp-paper, .gesp-importer, .gesp-form, .gesp-p, .gesp-toolbar, .gesp-filters, .gesp-pager, .gesp-empty, .gesp-modal, .gesp-panel-body) {
    background-color: rgba(30, 20, 48, .94) !important;
    background-image: none !important;
    border-color: rgba(99, 230, 190, .26) !important;
    color: #fff6ea !important;}
html.site-theme-egg :is(.gesp-page, .gesp-wrap, .gesp-main, .gesp-content, .gesp-body, .gesp-panel, .gesp-card, .gesp-box, .gesp-section, .gesp-list, .gesp-table, .gesp-tabs, .gesp-tab, .gesp-paper, .gesp-importer, .gesp-form, .gesp-p, .gesp-toolbar, .gesp-filters, .gesp-modal) :is(td, th, label, p, span, li, strong, em, b) {
    color: #fff6ea !important;
    border-color: rgba(99, 230, 190, .16) !important;}
html.site-theme-egg :is([class*="gesp-"]) :is(h1, h2, h3, h4) { color: #ffd98e !important;}
html.site-theme-egg :is([class*="gesp-"]) a { color: #8cf0cf !important;}
/* ---------- 17. 用户名 / 等级名（anim.css 里是深灰） ---------- */ html.site-theme-egg :is(.user-profile-name, .user-name) { color: #ffd98e !important;}
html.site-theme-egg :is([class*="uname--"]) { color: #ffd98e !important;}
html.site-theme-egg :is(.menu__link, .menu__link span) { color: #fff6ea !important;}
html.site-theme-egg .menu__link:hover { color: #ffd98e !important;}
/* ---------- 18. 按类收尾（2026-11-15 全站巡检之后） ---------- */ /* ① 题目标签链：Hydro 给的是浅灰底胶囊 */ html.site-theme-egg :is(.problem__tag, .problem__tag-link, .problem__tag-item, [class*="problem__tag"]) {
    background: rgba(99, 230, 190, .16) !important;
    border: 1px solid rgba(99, 230, 190, .32) !important;
    color: #ffd98e !important;
    border-radius: 2px !important;}
html.site-theme-egg :is(.problem__tag, .problem__tag-link):hover {
    background: rgba(99, 230, 190, .3) !important;
    color: #fff6ea !important;}
html.site-theme-egg :is(b, strong) { color: #ffd98e !important;}
html.site-theme-egg :is(td, th, li, p, dd) :is(a) { color: #8cf0cf !important;}
/* ④ 用户等级徽章：白色字压在彩色徽章上，改成深字 */ html.site-theme-egg :is(.user-profile-badge, [class*="user-profile-badge"]) {
    color: #10261f !important;
    border: 1px solid rgba(0, 0, 0, .25) !important;
    font-weight: 700 !important;}
/* ⑤ GESP 徽章 / 按钮 */ html.site-theme-egg :is(.gesp-badge) {
    background: rgba(99, 230, 190, .18) !important;
    border: 1px solid rgba(99, 230, 190, .34) !important;
    color: #ffd98e !important;}
html.site-theme-egg :is(.gesp-btn) {
    background: linear-gradient(180deg, rgba(255, 246, 234, .14), rgba(255, 246, 234, .05)) !important;
    color: #fff6ea !important;
    border: 1px solid rgba(99, 230, 190, .3) !important;}
/* ⑥ 行内 code / kbd：Hydro 默认浅灰底 */ html.site-theme-egg :is(code, kbd, .code, tt) {
    background: rgba(99, 230, 190, .14) !important;
    color: #ffd98e !important;
    border: 1px solid rgba(99, 230, 190, .24) !important;
    border-radius: 2px !important;
    padding: 0 4px;}
/* ⑦ 导航选中项：原来是被别处染成粉底，统一成沙金 */ html.site-theme-egg :is(.menu__link).active, html.site-theme-egg :is(.menu__link).active span, html.site-theme-egg :is(.nav__item).active {
    background: linear-gradient(180deg, #f2bb60, #cf7a2d) !important;
    color: #10261f !important;
    font-weight: 700 !important;}
/* ---------- 19. 收尾 2 ---------- */ /* 等级/身份徽章：深字优先（比通用链接色更具体） */ html.site-theme-egg a:is(.user-profile-badge, [class*="user-profile-badge"]), html.site-theme-egg :is(.user-profile-badge, [class*="user-profile-badge"]), html.site-theme-egg :is(.user-profile-badge, [class*="user-profile-badge"]) span {
    color: #10261f !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .35) !important;}
/* 残余白底容器（GESP 记录、通用 tab 内容、空状态） */ html.site-theme-egg :is(.gesp-records, .gesp-record, .gesp-empty, .gesp-table-wrap, .section__tab-content, .tab-content, .empty, .nothing-placeholder, .pager, .modal-mask, .dialog__wrapper) {
    background-color: rgba(30, 20, 48, .94) !important;
    background-image: none !important;
    color: #fff6ea !important;
    border-color: rgba(99, 230, 190, .22) !important;}
html.site-theme-egg :is(.gesp-records, .gesp-record, .section__tab-content, .tab-content, .empty, .nothing-placeholder, .pager) :is(h1, h2, h3, p, span, li, a, code) {
    color: #fff6ea !important;}
html.site-theme-egg :is(.empty, .nothing-placeholder) { color: #9d8cb4 !important;}


/* ============================================================
   11. 收尾补丁（2026-11-16 全站巡检发现的残留白底 / 撞色）
   ============================================================ */
/* ① 动画页左侧章节栏：插件自带白底（#fdfdfc），改成夜空卡片 */
html.site-theme-egg .anim-aside {
    background-color: rgba(30, 20, 48, .95) !important;
    background-image:
        radial-gradient(80% 52% at 100% 0%, rgba(255, 158, 207, .12), transparent 62%),
        linear-gradient(180deg, rgba(44, 30, 68, .97), rgba(24, 15, 42, .98)) !important;
    border: 1px solid var(--g-line) !important;
    border-radius: 18px !important;
    box-shadow: var(--g-shadow) !important;
    color: var(--g-ink2) !important;
}
html.site-theme-egg .anim-aside :is(.anim-group, .anim-group__label, .anim-group__title,
    .anim-aside__foot, .anim-aside small, .anim-aside p, .anim-aside span) {
    background-color: transparent !important;
    background-image: none !important;
    color: var(--g-ink2) !important;
    border-color: var(--g-line-soft) !important;
}
html.site-theme-egg .anim-aside :is(.anim-group__title, .anim-group__label, h3, h4) {
    color: var(--g-cream) !important;
    letter-spacing: .06em;
}
html.site-theme-egg .anim-aside .anim-chapter { color: var(--g-ink2) !important; }
html.site-theme-egg .anim-aside .anim-chapter:hover {
    background-image: linear-gradient(100deg, rgba(99, 230, 190, .16), rgba(255, 158, 207, .12)) !important;
    color: var(--g-mint) !important;
}
html.site-theme-egg .anim-aside .anim-chapter__count { color: var(--g-ink3) !important; }
html.site-theme-egg .anim-aside .anim-chapter.is-on .anim-chapter__count { color: #1c4034 !important; }
html.site-theme-egg .anim-aside .anim-tip {
    background-color: rgba(99, 230, 190, .10) !important;
    border: 1px solid rgba(99, 230, 190, .34) !important;
    border-radius: 12px !important;
    color: #a9f7e2 !important;
}

/* ② 说明里的「提示」条（.anim-doc__tip 自带奶白底） */
html.site-theme-egg .anim-doc__tip,
html.site-theme-egg :is(.anim-doc blockquote, .anim-note__tip, .anim-tip-box) {
    background-color: rgba(99, 230, 190, .12) !important;
    background-image: none !important;
    border-left: 3px solid var(--g-mint) !important;
    border-radius: 10px !important;
    color: #d9f7ec !important;
    padding: 8px 12px !important;
}
html.site-theme-egg .anim-doc__tip :is(b, strong, code) { color: var(--g-cream) !important; }

/* ③ 表单标签：Hydro 默认 #666，暗底几乎看不见 */
html.site-theme-egg :is(label, .form-label, .input-label, legend) {
    color: var(--g-ink2) !important;
}
html.site-theme-egg :is(label, legend) :is(span, b, strong) { color: var(--g-ink2) !important; }

/* ④ GESP 顶部横幅（.gesp-head 不在插件白底清单里，单独收） */
html.site-theme-egg :is(.gesp-head, .gesp-header, .gesp-hero, .gesp-banner, .gesp-top) {
    background-color: rgba(34, 23, 54, .96) !important;
    background-image:
        radial-gradient(80% 60% at 100% 0%, rgba(255, 158, 207, .16), transparent 62%),
        linear-gradient(180deg, rgba(44, 30, 68, .97), rgba(24, 15, 42, .98)) !important;
    border: 1px solid var(--g-line) !important;
    border-radius: 18px !important;
    color: var(--g-ink) !important;
}
html.site-theme-egg :is(.gesp-head, .gesp-header, .gesp-hero, .gesp-banner, .gesp-top)
    :is(h1, h2, h3, h4, p, span, small, b, strong) { color: var(--g-ink) !important; }
html.site-theme-egg :is(.gesp-head, .gesp-header, .gesp-hero, .gesp-banner, .gesp-top) :is(h1, h2) {
    color: var(--g-cream) !important;
}

/* ⑤ 等级 / 身份徽章：亮底深字（沙漠那套兜底把字改成深色，这里补回亮底） */
html.site-theme-egg :is(.user-profile-badge, [class*="user-profile-badge"]) {
    background-image: linear-gradient(100deg, #8cf0cf, #ffd98e 62%, #ff9ecf) !important;
    background-color: #8cf0cf !important;
    border: 1px solid rgba(255, 246, 234, .75) !important;
    color: #10261f !important;
    font-weight: 800 !important;
    text-shadow: none !important;
}
html.site-theme-egg :is(.user-profile-badge, [class*="user-profile-badge"]) :is(span, b, strong, i) {
    color: #10261f !important;
}

/* ⑥ 动画页顶部说明条（.anim-head 自带白底浅渐变） */
html.site-theme-egg .anim-head {
    background-color: rgba(30, 20, 48, .95) !important;
    background-image:
        radial-gradient(120% 140% at 0% -20%, rgba(99, 230, 190, .16), transparent 62%),
        radial-gradient(90% 120% at 100% 0%, rgba(255, 158, 207, .14), transparent 64%),
        linear-gradient(180deg, rgba(44, 30, 68, .97), rgba(24, 15, 42, .98)) !important;
    border: 1px solid var(--g-line) !important;
    border-radius: 18px !important;
    color: var(--g-ink2) !important;
    box-shadow: var(--g-shadow) !important;
}
html.site-theme-egg .anim-head :is(h1, h2) {
    color: var(--g-cream) !important;
    letter-spacing: .02em;
}
html.site-theme-egg .anim-head :is(p, small, span) { color: var(--g-ink2) !important; }
html.site-theme-egg .anim-head :is(b, strong) { color: var(--g-mint) !important; }

/* ⑦ 卡片角标（O(n²) / 01 序号）自带白底 → 夜色胶囊 */
html.site-theme-egg :is(.anim-card__time, .anim-card__idx) {
    background-color: rgba(14, 9, 26, .82) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 214, 240, .3) !important;
    border-radius: 999px !important;
    color: var(--g-ink2) !important;
    padding: 1px 8px !important;
}
html.site-theme-egg .anim-card__go {
    background-color: rgba(99, 230, 190, .16) !important;
    background-image: none !important;
    border: 1px solid rgba(99, 230, 190, .45) !important;
    border-radius: 999px !important;
    color: #a9f7e2 !important;
    padding: 1px 9px !important;
}

/* ⑧ 「Copy / 复制」这类浅灰小按钮：Hydro 给的是浅灰底 + 链接色 */
html.site-theme-egg :is(a.copy, a[class*="copy"], .copy-btn, .btn-copy, .link-copy) {
    display: inline-block;
    background-color: rgba(99, 230, 190, .14) !important;
    background-image: none !important;
    border: 1px solid rgba(99, 230, 190, .42) !important;
    border-radius: 999px !important;
    color: #a9f7e2 !important;
    padding: 0 8px !important;
}

/* ⑨ 侧栏选中章节：字必须压在亮底上是深色（比上面的 ink2 更具体） */
html.site-theme-egg .anim-aside .anim-chapter.is-on,
html.site-theme-egg .anim-aside .anim-chapter.is-on * {
    color: #10261f !important;
    text-shadow: none !important;
}
html.site-theme-egg .anim-aside .anim-chapter.is-on .anim-chapter__count { color: #1c4034 !important; }

/* ⑩ 编辑页 tab 条 + 浅灰页签：Hydro 默认白底 */
html.site-theme-egg :is(.section__tab, .nav-tabs, .tab-header, .tabs) {
    background-color: transparent !important;
    background-image: none !important;
    border-bottom: 1px solid var(--g-line) !important;
}
html.site-theme-egg :is(.section__tab-header-item, .nav-tabs a, .tab) {
    background-color: rgba(255, 246, 234, .05) !important;
    background-image: none !important;
    border: 1px solid var(--g-line-soft) !important;
    border-radius: 999px 999px 0 0 !important;
    color: var(--g-ink2) !important;
}
html.site-theme-egg :is(.section__tab-header-item, .nav-tabs a, .tab):hover {
    color: var(--g-mint) !important;
    background-color: rgba(99, 230, 190, .12) !important;
}
html.site-theme-egg :is(.section__tab-header-item, .nav-tabs a, .tab).selected,
html.site-theme-egg :is(.section__tab-header-item, .nav-tabs a, .tab).active {
    background-image: linear-gradient(100deg, #8cf0cf, #4fd3ac) !important;
    background-color: #4fd3ac !important;
    color: #10261f !important;
    font-weight: 700 !important;
}

/* ⑪ 题目编辑区（.md-editor / CodeMirror6）与题面代码块：Hydro 默认纯白纸 */
html.site-theme-egg :is(.md-editor, .md-editor .cm-editor, .cm-editor, .cm-scroller, .cm-content) {
    background-color: #fdf6e8 !important;
    background-image: none !important;
    color: #2a1d3f !important;
    border-radius: 10px;
}
html.site-theme-egg :is(.md-editor, .cm-editor)
    :is(p, span, li, td, th, h1, h2, h3, h4, div, small, b, strong, label) {
    color: #2a1d3f !important;
}
html.site-theme-egg :is(.md-editor, .cm-editor) a { color: #0f7a5c !important; }
html.site-theme-egg :is(.md-editor, .cm-editor) :is(code, kbd) {
    background: rgba(42, 29, 63, .09) !important;
    color: #1b1230 !important;
    border: 1px solid rgba(42, 29, 63, .12) !important;
    border-radius: 6px !important;
}
html.site-theme-egg .md-editor :is(.cm-activeLine, .cm-activeLineGutter) {
    background-color: rgba(42, 29, 63, .05) !important;
}
html.site-theme-egg .md-editor :is(.cm-gutters) {
    background-color: #f7efdf !important;
    border-right: 1px solid rgba(42, 29, 63, .12) !important;
    color: #6d5f83 !important;
}
html.site-theme-egg :is(.md-editor__toolbar, .md-editor__header, .md-editor__bar) {
    background-color: #f7efdf !important;
    background-image: none !important;
    border-bottom: 1px solid rgba(42, 29, 63, .12) !important;
    color: #2a1d3f !important;
}
/* 题面里的代码块：夜色硬块（与动画页代码面板同色系） */
html.site-theme-egg :is(pre.syntax-hl, .syntax-hl) {
    background-color: rgba(14, 9, 26, .96) !important;
    background-image: none !important;
    border: 1px solid var(--g-line) !important;
    border-radius: 12px !important;
    color: #e9e2f5 !important;
}
html.site-theme-egg :is(pre.syntax-hl, .syntax-hl) :is(span, code, td, th, mn) {
    color: #e9e2f5 !important;
    background-color: transparent !important;
}

/* ⑫ 侧栏「进入在线编程模式」高亮项：Hydro 用的浅粉底，换薄荷胶囊 */
html.site-theme-egg .menu :is(.menu__link.highlight, .menu__item.highlight .menu__link, a.highlight) {
    background-color: rgba(99, 230, 190, .16) !important;
    background-image: none !important;
    border: 1px solid rgba(99, 230, 190, .48) !important;
    border-radius: 999px !important;
    color: #a9f7e2 !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
}
html.site-theme-egg .menu :is(.menu__link.highlight, a.highlight) :is(span, i) { color: #a9f7e2 !important; }

/* ⑬ 题面代码块右上工具条（Copy / 展开）：浅灰浮条 → 夜色胶囊条 */
html.site-theme-egg :is(.toolbar, .code-toolbar .toolbar) {
    background-color: rgba(20, 13, 34, .92) !important;
    background-image: none !important;
    border: 1px solid var(--g-line) !important;
    border-radius: 999px !important;
    color: var(--g-ink2) !important;
}
html.site-theme-egg :is(.toolbar, .code-toolbar) :is(.toolbar-item, a, span, button) {
    background-color: transparent !important;
    background-image: none !important;
    color: #a9f7e2 !important;
}
/* ⑭ 分类筛选的小标签（选中态是糖果粉底 + 浅字，改成深字） */
html.site-theme-egg :is(.widget--category-filter__tag, .widget--category-filter__item) {
    background-color: rgba(255, 246, 234, .06) !important;
    background-image: none !important;
    border: 1px solid var(--g-line-soft) !important;
    border-radius: 999px !important;
    color: var(--g-ink2) !important;
}
html.site-theme-egg :is(.widget--category-filter__tag, .widget--category-filter__item):is(.active, .selected, .is-on, .current),
html.site-theme-egg :is(.widget--category-filter__tag, .widget--category-filter__item)[class*="active"] {
    background-image: linear-gradient(100deg, #ff9ecf, #ffd98e) !important;
    background-color: #ff9ecf !important;
    color: #41143a !important;
    font-weight: 700 !important;
}

/* ⑮ 测试点面板的关闭按钮：薄荷亮圆 + 深色 ×（压住之前那套白胶囊） */
html.site-theme-egg .rsx .rsx__close.rsx__close {
    background-image: linear-gradient(100deg, #8cf0cf, #4fd3ac) !important;
    background-color: #4fd3ac !important;
    border: 0 !important;
    border-radius: 999px !important;
    color: #10261f !important;
    font-weight: 800 !important;
    box-shadow: 0 10px 22px -14px rgba(79, 211, 172, .95), inset 0 1px 0 rgba(255, 255, 255, .45) !important;
}
html.site-theme-egg .rsx .rsx__close.rsx__close:hover {
    background-image: linear-gradient(100deg, #ff9ecf, #ffd98e) !important;
    background-color: #ff9ecf !important;
    color: #41143a !important;
    transform: rotate(90deg) scale(1.08) !important;
}
/* ⑯ 舞台右上角的英文小标签：SCANLINE 是沙漠装甲的写法，蛋仔换成 BUBBLE MODE */
html.site-theme-egg .anim-studio__pat {
    color: transparent !important;
    position: relative;
    min-width: 96px;
    background-color: rgba(255, 217, 142, .16) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 217, 142, .55) !important;
    border-radius: 999px !important;
}
html.site-theme-egg .anim-studio__pat::after {
    content: 'BUBBLE MODE' !important;
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #ffe9bd;
    font: 700 9px/1 ui-monospace, Consolas, monospace;
    letter-spacing: .14em;
}


/* ⑰ 24 章底纹要真的看得见（老师 2026-11-16：卡片的背景暗图） */
html.site-theme-egg .anim-card__tex {
    opacity: .9 !important;
    background-size: cover !important;
    background-position: 60% 46% !important;
    -webkit-mask-image: linear-gradient(100deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.8) 32%, #000 58%, #000 100%) !important;
    mask-image: linear-gradient(100deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.8) 32%, #000 58%, #000 100%) !important;
}
html.site-theme-egg .anim-card:hover .anim-card__tex { opacity: .96 !important; }
html.site-theme-egg .anim-mainhead::after { background-size: 100% 100%, cover !important; background-position: 0 0, 64% 40% !important; }
