/* ============================================================
   skins.css —— 整站皮肤（跟着底部 Dock「风格」一起变）

   为什么要这一层：
     主题原来的配色是写死的浅色（白卡片 + 深灰字），
     「风格」只换了图标 / 状态栏 / 小组件 / Dock 卡片。
     这里把这些写死的颜色统一收进 CSS 变量（--auo-*），
     再由 <html> 上的风格类给出不同的值：

       （无类）        = 经典渐变（iOS 那味儿）
       .auo-legacy-icons = 纯白极简（默认）
       .auo-icons-solid  = 雾面纯色
       .auo-icons-night  = 夜色玻璃（整站深色）
       .auo-icons-glass  = 淡彩通透
       .auo-dark         = 黑夜模式（优先级最高，放最后）

   规则：
     1. 只改颜色 / 边框 / 阴影 / 圆角，不动布局和交互，功能不受影响
     2. 选择器统一带 html 前缀，保证盖过各页面写死的颜色
     3. 黑夜模式最后定义，选哪个风格都是深色底浅字
   ============================================================ */

/* ============================================================
   ① 基础变量：默认（经典渐变 / 纯白极简）
   ============================================================ */
html {
    --auo-bg: #eef1f6;
    --auo-bg-img: radial-gradient(#dde4ee 1px, transparent 1px);
    --auo-bg-size: 20px 20px;

    --auo-shell: #f8fafc;
    --auo-frame: #ffffff;
    --auo-frame-2: #e2e8f0;

    --auo-surface: #ffffff;
    --auo-surface-2: #f8fafc;
    --auo-surface-3: #f1f5f9;

    --auo-border: #eef2ff;
    --auo-border-2: #e2e8f0;

    --auo-text: #1e293b;
    --auo-text-2: #64748b;
    --auo-text-3: #94a3b8;

    --auo-accent: #3b82f6;
    --auo-accent-soft: #eef2ff;
    --auo-accent-text: #2563eb;
    --auo-accent-shadow: rgba(59, 130, 246, 0.28);

    /* ★ 主题旧代码到处写 var(--primary-color, #3b82f6)，
       这个变量从来没被定义过 —— 在这里把它接到皮肤主色上，
       那些旧规则就自动跟着风格 / 黑夜一起变了（浅色下取值不变） */
    --primary-color: var(--auo-accent);

    /* ★ 主色分两个用途：
       --auo-accent      用于边框 / hover 文字 / 图标（要够亮）
       --auo-accent-fill 用于"填充 + 白字"的按钮（要够深，白字才看得清）
       深色下两者必须分开，否则亮蓝底配白字只有 2.6:1，字会糊 */
    --auo-accent-fill: #3b82f6;

    /* 正文链接色：单独一个变量。
       深色皮肤下不能沿用 #2563eb（在 #131c2c 上只有 3.5:1，蓝得发闷），
       必须换成提亮的蓝，保证正文里的链接一眼能认出来 */
    --auo-link: #2563eb;
    --auo-link-hover: #1d4ed8;
    --auo-link-line: rgba(37, 99, 235, 0.35);

    /* 语义色：危险 / 警告（深色下换成半透明底 + 亮字，避免一块刺眼的亮红/亮黄） */
    --auo-danger: #dc2626;
    --auo-danger-soft: #fef2f2;
    --auo-warning: #b45309;
    --auo-warning-soft: #fef3c7;
    /* 「已拥有 / 正常」这类正向状态的绿色。
       模板原来用 #16a34a on #dcfce7，只有 3.0:1，凑近看发虚 */
    --auo-success: #15803d;
    --auo-success-soft: #dcfce7;

    --auo-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    --auo-shadow-lift: 0 10px 30px rgba(15, 23, 42, 0.1);
    /* 折叠屏外框的投影（只在真·大屏用） */
    --auo-window-shadow: 0 40px 80px rgba(15, 23, 42, 0.16);

    --auo-radius: 24px;
    --auo-radius-sm: 14px;

    --auo-titlebar: linear-gradient(to bottom, #f1f5f9, #e8eef7);
    --auo-hero: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
    --auo-hero-text: #ffffff;
    /* 迷你音乐 / 书籍卡片的封面底（浅色时保持原来的淡蓝渐变） */
    --auo-cover-1: #eef2ff;
    --auo-cover-2: #dbeafe;
    --auo-blur: 12px;
}

/* ---------- 纯白极简（默认风格）：更白、更平、更干净的边线 ---------- */
html.auo-legacy-icons {
    --auo-bg: #eff3f8;
    --auo-bg-img: radial-gradient(#dfe6f0 1px, transparent 1px);
    --auo-shell: #ffffff;
    --auo-frame: #ffffff;
    --auo-frame-2: #e5ebf3;
    --auo-surface: #ffffff;
    --auo-surface-2: #f7f9fc;
    --auo-surface-3: #eef2f7;
    --auo-border: #e9eef6;
    --auo-border-2: #dde5f0;
    --auo-text: #1e293b;
    --auo-text-2: #5b6b80;
    --auo-text-3: #94a3b8;
    --auo-accent: #3b82f6;
    --auo-accent-soft: #eff6ff;
    --auo-accent-text: #2563eb;
    --auo-link: #1d4ed8;
    --auo-link-hover: #1e40af;
    --auo-link-line: rgba(29, 78, 216, 0.32);
    --auo-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    --auo-shadow-lift: 0 10px 26px rgba(15, 23, 42, 0.08);
    --auo-radius: 20px;
    --auo-radius-sm: 12px;
    --auo-titlebar: linear-gradient(to bottom, #ffffff, #f4f7fb);
}

/* ---------- 雾面纯色：淡蓝实底 + 深蓝字，圆角收一点 ---------- */
html.auo-icons-solid {
    --auo-bg: hsl(218, 42%, 92%);
    --auo-bg-img: none;
    --auo-shell: hsl(218, 62%, 96%);
    --auo-frame: hsl(218, 62%, 98%);
    --auo-frame-2: hsl(218, 45%, 86%);
    --auo-surface: hsl(218, 62%, 98%);
    --auo-surface-2: hsl(218, 55%, 94%);
    --auo-surface-3: hsl(218, 50%, 90%);
    --auo-border: hsl(218, 50%, 88%);
    --auo-border-2: hsl(218, 45%, 80%);
    --auo-text: hsl(218, 45%, 22%);
    --auo-text-2: hsl(218, 30%, 40%);
    --auo-text-3: hsl(218, 25%, 52%);
    --auo-accent: hsl(218, 62%, 52%);
    --auo-accent-fill: hsl(218, 62%, 44%);
    --auo-accent-soft: hsla(218, 62%, 88%, 0.9);
    --auo-accent-text: hsl(218, 60%, 38%);
    --auo-link: hsl(218, 62%, 33%);
    --auo-link-hover: hsl(218, 62%, 27%);
    --auo-link-line: hsla(218, 62%, 33%, 0.34);
    --auo-accent-shadow: hsla(218, 55%, 42%, 0.3);
    --auo-shadow: 0 3px 10px hsla(218, 45%, 40%, 0.08);
    --auo-shadow-lift: 0 12px 28px hsla(218, 45%, 40%, 0.16);
    --auo-radius: 18px;
    --auo-radius-sm: 12px;
    --auo-titlebar: linear-gradient(to bottom, hsl(218, 62%, 97%), hsl(218, 55%, 92%));
    --auo-hero: linear-gradient(135deg, hsl(218, 62%, 56%) 0%, hsl(218, 68%, 46%) 100%);
}

/* ---------- 夜色玻璃：整站深色 ----------
   ★ 0.6.5：整体「提亮一档、压灰一档」。
     老的一套是「近黑的蓝」(#0b1220 底 / #182234 卡片) 配「近白的字」(#e8eefb)，
     正文对比度 13.7:1（卡片上）、16.1:1（页底上），远高于阅读舒适的 7~12:1，
     盯着看久了会觉得字在发亮、边缘发晕。
     现在改成偏中性的深灰蓝（碳灰），文字也收一档，落回 10.7:1 / 12.8:1：
     依然远高于 WCAG AA（4.5:1），但不再刺眼。
     色值全部走变量，其它规则不用跟着改。 */
html.auo-icons-night {
    --auo-bg: #1a2130;
    --auo-bg-img: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    --auo-shell: #1e2637;
    --auo-frame: #273041;
    --auo-frame-2: rgba(255, 255, 255, 0.08);
    --auo-surface: #262f41;
    --auo-surface-2: rgba(255, 255, 255, 0.05);
    --auo-surface-3: rgba(255, 255, 255, 0.09);
    --auo-border: rgba(255, 255, 255, 0.11);
    --auo-border-2: rgba(255, 255, 255, 0.2);
    --auo-text: #dfe6f1;
    --auo-text-2: #b4c0d0;
    --auo-text-3: #97a4b6;
    --auo-accent: #6aabff;
    --auo-accent-fill: #3574cf;
    --auo-accent-soft: rgba(106, 171, 255, 0.16);
    --auo-accent-text: #a6cdff;
    /* 深色下正文链接：比 accent-text 再饱和一档，才不会和正文白字混在一起 */
    --auo-link: #96c6ff;
    --auo-link-hover: #c6dfff;
    --auo-link-line: rgba(150, 198, 255, 0.4);
    --auo-danger: #f88b8b;
    --auo-danger-soft: rgba(239, 68, 68, 0.15);
    --auo-warning: #fbc85a;
    --auo-warning-soft: rgba(245, 158, 11, 0.16);
    --auo-success: #8ee9ac;
    --auo-success-soft: rgba(34, 197, 94, 0.16);
    --auo-accent-shadow: rgba(106, 171, 255, 0.28);
    --auo-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
    --auo-shadow-lift: 0 18px 44px rgba(0, 0, 0, 0.34);
    --auo-window-shadow: 0 40px 80px rgba(0, 0, 0, 0.38);
    --auo-radius: 22px;
    --auo-radius-sm: 14px;
    --auo-titlebar: linear-gradient(to bottom, #2b3446, #232b3b);
    --auo-hero: linear-gradient(135deg, #35415d 0%, #29344c 60%, #222c3e 100%);
    --auo-cover-1: rgba(106, 171, 255, 0.16);
    --auo-cover-2: rgba(106, 171, 255, 0.08);
    --auo-blur: 0px;
}

/* ---------- 淡彩通透：极浅淡彩 + 同色字 ---------- */
html.auo-icons-glass {
    --auo-bg: hsl(218, 70%, 95%);
    --auo-bg-img: linear-gradient(160deg, hsl(205, 90%, 97%) 0%, hsl(228, 88%, 96%) 55%, hsl(258, 86%, 97%) 100%);
    --auo-bg-size: auto;
    --auo-shell: hsla(218, 92%, 99%, 0.92);
    --auo-frame: #ffffff;
    --auo-frame-2: hsl(218, 70%, 90%);
    --auo-surface: hsl(218, 92%, 99.5%);
    --auo-surface-2: hsl(218, 86%, 96%);
    --auo-surface-3: hsl(218, 80%, 93%);
    --auo-border: hsl(218, 80%, 92%);
    --auo-border-2: hsl(218, 70%, 84%);
    --auo-text: hsl(218, 55%, 28%);
    --auo-text-2: hsl(218, 40%, 46%);
    --auo-text-3: hsl(218, 34%, 60%);
    --auo-accent: hsl(218, 72%, 50%);
    --auo-accent-fill: hsl(218, 72%, 44%);
    --auo-accent-soft: hsl(218, 90%, 94%);
    --auo-accent-text: hsl(218, 70%, 44%);
    --auo-link: hsl(218, 74%, 36%);
    --auo-link-hover: hsl(218, 74%, 30%);
    --auo-link-line: hsla(218, 74%, 36%, 0.32);
    --auo-accent-shadow: hsla(218, 70%, 55%, 0.26);
    --auo-shadow: 0 6px 18px hsla(218, 55%, 60%, 0.12);
    --auo-shadow-lift: 0 16px 38px hsla(218, 55%, 55%, 0.2);
    --auo-radius: 22px;
    --auo-radius-sm: 14px;
    --auo-titlebar: linear-gradient(to bottom, hsla(218, 92%, 99%, 0.98), hsla(218, 86%, 95%, 0.98));
    --auo-hero: linear-gradient(135deg, hsl(200, 92%, 72%) 0%, hsl(228, 88%, 74%) 55%, hsl(262, 84%, 78%) 100%);
    --auo-hero-text: hsl(218, 60%, 22%);
}

/* ============================================================
   ② 黑夜模式：不管选了哪个风格，一律深色底浅字（放最后，优先级最高）
   ============================================================ */
html.auo-dark {
    --auo-bg: #0b1220;
    --auo-bg-img: none;
    --auo-shell: #0f172a;
    --auo-frame: #0b1220;
    --auo-frame-2: rgba(255, 255, 255, 0.07);
    --auo-surface: #131c2c;
    --auo-surface-2: rgba(255, 255, 255, 0.05);
    --auo-surface-3: rgba(255, 255, 255, 0.09);
    --auo-border: rgba(255, 255, 255, 0.08);
    --auo-border-2: rgba(255, 255, 255, 0.14);
    --auo-text: #dbe4f2;
    --auo-text-2: #a9b8cc;
    --auo-text-3: #93a4ba;
    --auo-accent: #5aa0ff;
    --auo-accent-fill: #2f6fd0;
    --auo-accent-soft: rgba(59, 130, 246, 0.18);
    --auo-accent-text: #93c5fd;
    --auo-link: #9ecbff;
    --auo-link-hover: #cbe4ff;
    --auo-link-line: rgba(158, 203, 255, 0.4);
    --auo-danger: #f87171;
    --auo-danger-soft: rgba(239, 68, 68, 0.14);
    --auo-warning: #fbbf24;
    --auo-warning-soft: rgba(245, 158, 11, 0.16);
    --auo-success: #86efac;
    --auo-success-soft: rgba(34, 197, 94, 0.16);
    --auo-accent-shadow: rgba(37, 99, 235, 0.4);
    --auo-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    --auo-shadow-lift: 0 18px 44px rgba(0, 0, 0, 0.5);
    --auo-window-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    --auo-titlebar: linear-gradient(to bottom, #1c2739, #151f2f);
    --auo-hero: linear-gradient(135deg, #24304a 0%, #16203a 60%, #101a2e 100%);
    --auo-hero-text: #e8eefb;
    --auo-cover-1: rgba(90, 160, 255, 0.14);
    --auo-cover-2: rgba(90, 160, 255, 0.07);
    --auo-blur: 0px;
}

/* ============================================================
   ③ 页面底色 + 折叠屏外壳
   ============================================================ */
html body {
    background-color: var(--auo-bg) !important;
    background-image: var(--auo-bg-img) !important;
    background-size: var(--auo-bg-size) !important;
    color: var(--auo-text);
}

html .desktop-layout {
    background: var(--auo-shell) !important;
}

/* ★ 折叠屏外框只给「真·大屏」：
   以前外圈是 12px 白 + 2px 深灰两道实色环，和弹窗底（--auo-shell）不是一个色，
   大屏上看着就是"窗口外面糊了一圈脏边"。
   现在外圈直接取弹窗同色，只留 1px 描边收口，视觉上就是窗口自己"厚"了 12px。 */
@media (min-width: 1321px) and (min-height: 901px) {
    html .desktop-layout {
        box-shadow:
            var(--auo-window-shadow),
            0 0 0 12px var(--auo-shell),
            0 0 0 13px var(--auo-border-2) !important;
    }
}

/* ★ 小屏 / 矮屏：不要外框，页面必须铺满。
   这段必须带 !important：desktop.css 里媒体查询写的 box-shadow:none 只是普通声明，
   压不过上面带 !important 的那条 —— 不压的话底部会露出十几像素的"外圈"，
   就是小屏截图里那条横着的浅色缝。 */
@media (max-width: 1320px), (max-height: 900px) {
    html .desktop-layout {
        box-shadow: none !important;
        border-radius: 0 !important;
    }
}

html .desktop-screen:first-child {
    border-right-color: var(--auo-border) !important;
}

html .app-name { color: var(--auo-text-2); }
html .app-item:hover { background: var(--auo-surface-2); }
html .mobile-screen-switcher { background: var(--auo-surface-3); }
html .mobile-screen-switcher button { color: var(--auo-text-2); }
html .mobile-screen-switcher button.active {
    background: var(--auo-surface);
    color: var(--auo-accent-text);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

/* 状态栏「齿轮」下拉卡（新消息提示 / 亮度） */
html .status-card {
    background: var(--auo-surface);
    border-color: var(--auo-border);
    color: var(--auo-text);
}
html .status-card::after {
    background: var(--auo-surface);
    border-left-color: var(--auo-border);
    border-top-color: var(--auo-border);
}
html .status-card-head { color: var(--auo-text); }
html .status-item-name { color: var(--auo-text); }
html .status-item-sub { color: var(--auo-text-3); }
html .status-seg { background: var(--auo-surface-3); }
html .status-seg button { color: var(--auo-text-2); }
html .status-seg button.is-on {
    background: var(--auo-surface);
    color: var(--auo-accent-text);
}
html .status-switch { background: var(--auo-border-2); }

/* ============================================================
   ④ 通用卡片：文章 / 列表 / 侧栏 / 友链 / 装备 / 动态 / 404 …
   ============================================================ */
html .article-main,
html .posts-container,
html .side-card,
html .links-container,
html .tagcloud-page,
html .about-mac-card,
html .auo-404-win,
html .mac-standalone-window,
html .mac-modal,
html .mobile-right-drawer,
html .m85c-hero,
html .m85c-records,
html .pokemon-app {
    background: var(--auo-surface) !important;
    border-color: var(--auo-border) !important;
    color: var(--auo-text);
}

html .article-main,
html .posts-container,
html .links-container,
html .tagcloud-page,
html .about-mac-card,
html .auo-404-win {
    box-shadow: var(--auo-shadow) !important;
    border-radius: var(--auo-radius);
}

html .side-card {
    box-shadow: var(--auo-shadow) !important;
    border: 1px solid var(--auo-border);
}

html .posts-header,
html .card-head,
html .links-header,
html .back-header {
    border-color: var(--auo-border) !important;
}

html .posts-title,
html .card-head-title,
html .links-title,
html .side-card .card-head-title {
    color: var(--auo-text) !important;
}

html .posts-count {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text-2) !important;
}

html .posts-count + span,
html .filter-current-tag {
    color: var(--auo-text-2);
}

html .empty-state,
html .no-result {
    color: var(--auo-text-3) !important;
}

/* 列表项 */
html .post-item {
    border-color: var(--auo-border) !important;
    color: var(--auo-text);
}
html .post-item:hover { background: var(--auo-surface-2) !important; }
html .post-item-title,
html .post-item-title a { color: var(--auo-text) !important; }
html .post-item-title:hover,
html .post-item-title a:hover { color: var(--auo-accent) !important; }
html .post-item-excerpt { color: var(--auo-text-2); }
html .post-item-meta,
html .meta-date { color: var(--auo-text-3) !important; }

/* ============================================================
   ⑤ 正文排版（文章 / 页面 / 说说 / 弹窗内）
   ============================================================ */
html .article-content,
html .post-content,
html .page-content {
    color: var(--auo-text) !important;
}

html .article-content h1,
html .article-content h2,
html .article-content h3,
html .article-content h4,
html .article-content h5,
html .article-content h6,
html .article-main > h1,
html .article-main > h2 {
    color: var(--auo-text) !important;
}

html .article-content h2,
html .article-content hr {
    border-color: var(--auo-border) !important;
}

html .article-content h1 { border-left-color: var(--auo-accent) !important; }

/* ---------- 正文链接 ----------
   浅色下原来的蓝（#2563eb）在深色皮肤上只有 3.5:1，字会发闷；
   统一改走 --auo-link（每种风格各自给足对比度），并管住 :visited，
   否则浏览器默认的紫色 visited 链接在深色底上几乎看不见。
   短代码自带的按钮（[btn] / [imgbtn] / [tip]）有自己的一套配色，排除在外 */
html .article-content a:not([class*="sc-btn"]):not(.imgbtn-trigger):not(.tip-wrap),
html .post-content a:not([class*="sc-btn"]):not(.imgbtn-trigger):not(.tip-wrap),
html .page-content a:not([class*="sc-btn"]):not(.imgbtn-trigger):not(.tip-wrap),
html .say-content a:not([class*="sc-btn"]),
html .article-content a:visited:not([class*="sc-btn"]):not(.imgbtn-trigger):not(.tip-wrap),
html .post-content a:visited:not([class*="sc-btn"]),
html .page-content a:visited:not([class*="sc-btn"]),
html .say-content a:visited:not([class*="sc-btn"]) {
    color: var(--auo-link) !important;
    text-decoration-color: var(--auo-link-line);
}

html .article-content a:hover:not([class*="sc-btn"]):not(.imgbtn-trigger):not(.tip-wrap),
html .post-content a:hover:not([class*="sc-btn"]),
html .page-content a:hover:not([class*="sc-btn"]),
html .say-content a:hover:not([class*="sc-btn"]) {
    color: var(--auo-link-hover) !important;
}

/* 说说正文（首页卡片 / 弹窗列表）里的链接
   —— 这两处没有自己的链接配色，浏览器默认的 #0000EE 在深色底上只有 1.8:1 */
html .post-item-excerpt a:not([class*="sc-btn"]),
html .post-item-excerpt a:visited:not([class*="sc-btn"]) {
    color: var(--auo-link) !important;
    text-decoration-color: var(--auo-link-line);
}
html .post-item-excerpt a:hover:not([class*="sc-btn"]) {
    color: var(--auo-link-hover) !important;
}

html .article-content strong,
html .article-content b { color: var(--auo-text); }

html .article-content blockquote {
    background: var(--auo-surface-2) !important;
    border-left-color: var(--auo-accent) !important;
    color: var(--auo-text-2) !important;
}

/* ---------- 行内代码：跟随皮肤 ----------
   先用最普通的选择器把 code 都刷成皮肤的浅底浅字（兼容老浏览器的写法，
   不用 :not(pre code) 这种 Selectors 4 语法），
   紧接着下面再用「特异性更高 + 后出现」的 pre code 把代码块里的那一层抢回来。 */
html .article-content code,
html .post-content code,
html .page-content code,
html .mac-body .article-content code {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text) !important;
}

/* ---------- 代码块：完全固定，不参与皮肤 / 黑夜 ----------
   ★ 这里必须是固定的 GitHub Dark 配色。
     之前写成 var(--auo-surface-3) 之类的皮肤变量，深色下代码块内层 code
     会被刷成半透明浅底 + 浅字，语法高亮的 token 配色全部糊掉。 */
html .article-content pre,
html .post-content pre,
html .page-content pre,
html .mac-body .article-content pre {
    background: #0d1117 !important;
    color: #c9d1d9 !important;
    border: 1px solid #30363d !important;
}

html .article-content pre code,
html .post-content pre code,
html .page-content pre code,
html .mac-body .article-content pre code {
    background: transparent !important;
    color: inherit !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

html .article-content table thead,
html .markdown-table thead {
    background: var(--auo-surface-3) !important;
}

html .article-content table th,
html .markdown-table th {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text) !important;
    border-color: var(--auo-border-2) !important;
}

html .markdown-table td {
    border-color: var(--auo-border-2) !important;
    color: var(--auo-text) !important;
}

html .markdown-table tbody tr:nth-child(even) { background: var(--auo-surface-2) !important; }
html .markdown-table tbody tr:hover { background: var(--auo-surface-3) !important; }

html .article-content table td {
    border-color: var(--auo-border-2) !important;
    color: var(--auo-text);
}

html .article-content tr:nth-child(even) { background: var(--auo-surface-2); }

html .post-meta,
html .page-meta,
html .post-info {
    color: var(--auo-text-3) !important;
    border-color: var(--auo-border) !important;
}

html .post-tag-link,
html .meta-tag,
html .modal-post-tag {
    background: var(--auo-accent-soft) !important;
    color: var(--auo-accent-text) !important;
}

html .post-tag-link:hover,
html .meta-tag:hover,
html .modal-post-tag:hover {
    background: var(--auo-accent-fill) !important;
    color: #ffffff !important;
}

/* ============================================================
   ⑥ 按钮 / 筛选 / 分页 / 输入框
   ============================================================ */
html .filter-tabs { background: transparent; }
html .filter-tab {
    color: var(--auo-text-2) !important;
}
html .filter-tab:hover { color: var(--auo-text) !important; }
html .filter-tab.active {
    background: var(--auo-accent-fill) !important;
    color: #ffffff !important;
}

html .load-more-btn,
html .modal-load-more-btn {
    background: var(--auo-accent-fill) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px var(--auo-accent-shadow) !important;
}

html .load-more-done,
html .modal-load-more-done { color: var(--auo-text-3) !important; }

html .back-btn {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text-2) !important;
}
html .back-btn:hover {
    background: var(--auo-accent-fill) !important;
    color: #ffffff !important;
}

html .pagination-wrapper .page-navigator a,
html .pagination-wrapper .page-navigator span {
    background: var(--auo-surface) !important;
    border-color: var(--auo-border-2) !important;
    color: var(--auo-text-2) !important;
}
html .pagination-wrapper .page-navigator a:hover {
    background: var(--auo-surface-2) !important;
}
html .pagination-wrapper .page-navigator .current {
    background: var(--auo-accent-fill) !important;
    border-color: var(--auo-accent) !important;
    color: #ffffff !important;
}
html .pagination-wrapper .page-navigator .disabled {
    background: var(--auo-surface-3) !important;
}

html .card-head-more {
    background: var(--auo-accent-soft) !important;
    color: var(--auo-accent-text) !important;
}
html .card-head-more:hover {
    background: var(--auo-accent-fill) !important;
    color: #ffffff !important;
}

/* 标签云（侧栏 / 右抽屉） */
html .tag-cloud-item {
    background: var(--auo-surface-2) !important;
    border-color: var(--auo-border) !important;
    color: var(--auo-text-2) !important;
}
html .tag-cloud-item:hover {
    background: var(--auo-accent-fill) !important;
    border-color: var(--auo-accent) !important;
    color: #ffffff !important;
}
html .tag-cloud-count { color: var(--auo-text-3) !important; }
html .tag-cloud-item:hover .tag-cloud-count { color: rgba(255, 255, 255, 0.85) !important; }

/* 表单 */
html #comment-form input[type="text"],
html #comment-form input[type="email"],
html #comment-form input[type="url"],
html #comment-form textarea,
html .comment-form input,
html .comment-form textarea,
html .announce-publish-box input,
html .announce-publish-box textarea,
html .announce-publish-box select,
html .search-form input {
    background: var(--auo-surface-2) !important;
    border-color: var(--auo-border-2) !important;
    color: var(--auo-text) !important;
}

html #comment-form input::placeholder,
html #comment-form textarea::placeholder,
html .comment-form input::placeholder,
html .comment-form textarea::placeholder {
    color: var(--auo-text-3) !important;
}

html #comment-form button,
html .comment-form button[type="submit"],
html .btn-publish {
    background: var(--auo-accent-fill) !important;
    color: #ffffff !important;
    border-color: var(--auo-accent) !important;
}

/* 评论区 */
html .comments-area,
html .comment-item,
html .comment-body,
html .comment-content { color: var(--auo-text) !important; }
html .comments-title,
html .comment-respond-title,
html .comment-author,
html .comment-list .fn { color: var(--auo-text) !important; }
html .comment-meta,
html .comment-actions { color: var(--auo-text-3) !important; }
html .comment-item .comment-body { border-color: var(--auo-border) !important; }

/* ============================================================
   ⑦ Mac 弹窗 / 独立窗口 / 目录面板
   ============================================================ */
html .mac-modal-titlebar,
html .mac-titlebar {
    background: var(--auo-titlebar) !important;
    border-bottom-color: var(--auo-border) !important;
}
html .mac-page-title,
html .mac-titlebar-title,
html .mac-modal-title { color: var(--auo-text-2) !important; }

html .mac-modal-body,
html .mac-body {
    background: var(--auo-surface) !important;
    color: var(--auo-text);
}
html .mac-modal-body iframe { background: var(--auo-surface) !important; }

html .mac-modal-loading {
    background: var(--auo-surface) !important;
    color: var(--auo-text-3) !important;
}
html .mac-modal-loading::before {
    border-color: var(--auo-border-2) !important;
    border-top-color: var(--auo-accent) !important;
}

html .mac-modal.size-full,
html .mac-modal {
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.35),
        0 0 0 0.5px var(--auo-border-2) inset !important;
}

/* 目录按钮 / 面板 */
html .article-toc-btn {
    background: var(--auo-surface) !important;
    border-color: var(--auo-border-2) !important;
    color: var(--auo-text-2) !important;
    box-shadow: var(--auo-shadow-lift) !important;
}
html .article-toc-btn:hover,
html .article-toc-btn.active {
    background: var(--auo-accent-fill) !important;
    border-color: var(--auo-accent) !important;
    color: #ffffff !important;
}
html .article-toc-panel {
    background: var(--auo-surface) !important;
    box-shadow: var(--auo-shadow-lift) !important;
    border: 1px solid var(--auo-border);
}
html .article-toc-head {
    color: var(--auo-text) !important;
    border-bottom-color: var(--auo-border) !important;
}
html .article-toc-close { color: var(--auo-text-3) !important; }
html .article-toc-close:hover {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text) !important;
}
html .article-toc-item { color: var(--auo-text-2) !important; }
html .article-toc-item:hover {
    background: var(--auo-surface-2) !important;
    color: var(--auo-accent) !important;
}
html .article-toc-item.active {
    background: var(--auo-accent-soft) !important;
    color: var(--auo-accent-text) !important;
    border-left-color: var(--auo-accent) !important;
}

/* 弹窗里的文章列表页（?desktop=posts&modal=1 的纯白底） */
html .modal-list-page { color: var(--auo-text); }
html .modal-post-title { color: var(--auo-text) !important; }
html .modal-post-title:hover { color: var(--auo-accent) !important; }
html .modal-post-meta { color: var(--auo-text-3) !important; }
html .modal-post-comment { color: var(--auo-text-3) !important; }
html .modal-post-comment:hover { color: var(--auo-accent) !important; }
html .modal-list-title { color: var(--auo-text) !important; }
html .modal-list-count {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text-2) !important;
}
html .modal-list-header { border-bottom-color: var(--auo-border) !important; }
html .modal-say-item,
html .modal-say-list .modal-say-item {
    background: var(--auo-surface-2) !important;
    border-color: var(--auo-border) !important;
    color: var(--auo-text);
}
/* 标签云 / 说说弹窗的 hover：home-3col.css 里写成 `.modal-list-page .modal-say-item:hover`
   { background:#ffffff !important }，特异性 (0,3,0)，会把深色皮肤下的卡片刷成纯白，
   而卡片里的文字还是浅色 → 直接看不见。这里用 (0,3,1) 抢回来 */
html .modal-list-page .modal-say-item,
html .modal-list-page .modal-post-row {
    background: var(--auo-surface-2) !important;
    border-color: transparent !important;
}
html .modal-list-page .modal-say-item:hover,
html .modal-list-page .modal-post-row:hover {
    background: var(--auo-surface-3) !important;
    border-color: var(--auo-border-2) !important;
    box-shadow: var(--auo-shadow-lift) !important;
}
html .modal-say-item:hover { background: var(--auo-surface-3) !important; }
html .modal-say-item .post-item-excerpt { color: var(--auo-text) !important; }
html .modal-say-meta,
html .modal-say-item .post-item-meta {
    color: var(--auo-text-3) !important;
    border-top-color: var(--auo-border) !important;
}
html .modal-post-row { border-bottom-color: var(--auo-border) !important; }
html .modal-list-empty { color: var(--auo-text-3) !important; }

/* ============================================================
   ⑧ 标签云页面
   ============================================================ */
html .tagcloud-hero {
    background: var(--auo-hero) !important;
    color: var(--auo-hero-text) !important;
}
html .tagcloud-stat {
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}
html .tagcloud-subtitle,
html .tagcloud-stat-label { color: rgba(255, 255, 255, 0.78) !important; }

html.auo-icons-glass .tagcloud-subtitle,
html.auo-icons-glass .tagcloud-stat-label { color: hsla(218, 60%, 30%, 0.7) !important; }
html.auo-icons-glass .tagcloud-stat {
    background: rgba(255, 255, 255, 0.45) !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
}

html .tagcloud-body { background: transparent; }

/* 兜底：万一某个标签片没带 tier-* 类，也不至于留在浅色渐变上 */
html .tagcloud-chip {
    background: var(--auo-surface-2) !important;
    border-color: var(--auo-border-2) !important;
    color: var(--auo-text) !important;
}
html .tagcloud-chip .chip-count {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text-2) !important;
}

html .tagcloud-chip.tier-hot {
    background: var(--auo-accent-soft) !important;
    border-color: var(--auo-accent) !important;
    color: var(--auo-accent-text) !important;
    box-shadow: var(--auo-shadow) !important;
}
html .tagcloud-chip.tier-hot .chip-count {
    background: var(--auo-accent-fill) !important;
    color: #ffffff !important;
}
html .tagcloud-chip.tier-normal {
    background: var(--auo-surface-2) !important;
    border-color: var(--auo-border-2) !important;
    color: var(--auo-text) !important;
}
html .tagcloud-chip.tier-normal .chip-count {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text-2) !important;
}
html .tagcloud-chip.tier-cold {
    background: var(--auo-surface) !important;
    border-color: var(--auo-border) !important;
    color: var(--auo-text-2) !important;
}
html .tagcloud-chip.tier-cold .chip-count {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text-3) !important;
}
html .tagcloud-chip:hover {
    border-color: var(--auo-accent) !important;
    box-shadow: 0 10px 26px var(--auo-accent-shadow) !important;
}
/* tier-* 的 hover 在 page-tags.php 里写死了浅色，这里按同特异性盖一层，
   否则深色皮肤下一悬停就弹回浅底浅蓝字 */
html .tagcloud-chip.tier-hot:hover {
    background: var(--auo-accent-soft) !important;
    border-color: var(--auo-accent) !important;
    color: var(--auo-accent-text) !important;
}
html .tagcloud-chip.tier-normal:hover {
    background: var(--auo-surface-3) !important;
    border-color: var(--auo-accent) !important;
    color: var(--auo-accent-text) !important;
}
html .tagcloud-chip.tier-cold:hover {
    background: var(--auo-surface-2) !important;
    border-color: var(--auo-border-2) !important;
    color: var(--auo-text) !important;
}
html .tagcloud-chip.is-active {
    outline-color: var(--auo-accent) !important;
}
html .tagcloud-empty { color: var(--auo-text-3) !important; }

/* ============================================================
   ⑨ 联系方式（Dock 卡片 + Mac 弹窗里都是同一套）
   ============================================================ */
html .auo-contact-card { color: var(--auo-text); }
html .auo-contact-title { color: var(--auo-text) !important; }
html .auo-contact-sub { color: var(--auo-text-3) !important; }
html .auo-contact-row {
    background: var(--auo-surface-2) !important;
    border-color: var(--auo-border) !important;
}
html .auo-contact-row:hover {
    background: var(--auo-accent-soft) !important;
    border-color: var(--auo-accent) !important;
}
html .auo-contact-icon {
    background: var(--auo-surface) !important;
    color: var(--auo-accent) !important;
}
html .auo-contact-label { color: var(--auo-text) !important; }
html .auo-contact-value { color: var(--auo-text-3) !important; }
html .auo-contact-arrow { color: var(--auo-text-3) !important; }
html .auo-contact-row:hover .auo-contact-arrow { color: var(--auo-accent) !important; }
html .auo-contact-empty { color: var(--auo-text-3) !important; }

/* ============================================================
   ⑩ 其他页面（友链 / 装备 / 动态 / 404 / 关于 / 车 / 宝可梦）
       这些页面各自写死了浅色卡片，这里统一接管
   ============================================================ */
/* 友链 */
html .link-card {
    background: var(--auo-surface-2) !important;
    border-color: var(--auo-border) !important;
    color: var(--auo-text) !important;
}
html .link-card:hover {
    background: var(--auo-surface) !important;
    border-color: var(--auo-accent) !important;
    box-shadow: var(--auo-shadow-lift) !important;
}
html .link-name { color: var(--auo-text) !important; }
html .link-desc { color: var(--auo-text-2) !important; }
html .link-url { color: var(--auo-text-3) !important; }
html .links-count {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text-2) !important;
}

/* 装备 / 动态等用 .glass-card 的页面 */
html .glass-card {
    background: var(--auo-surface) !important;
    border-color: var(--auo-border) !important;
    color: var(--auo-text);
}
html .equip-card,
html .announce-item {
    background: var(--auo-surface-2) !important;
    border-color: var(--auo-border) !important;
    color: var(--auo-text) !important;
}
html .equip-card:hover,
html .announce-item:hover {
    background: var(--auo-surface) !important;
    border-color: var(--auo-border-2) !important;
}

/* ============================================================
   ⑪ 细节：滚动条 / 选中文字
   ============================================================ */
html ::selection {
    background: var(--auo-accent);
    color: #ffffff;
}

html .col-left::-webkit-scrollbar-thumb,
html .col-right::-webkit-scrollbar-thumb,
html .mobile-right-drawer::-webkit-scrollbar-thumb {
    background: var(--auo-border-2);
}

/* ============================================================
   ⑫ 各内页细部：标题 / 小字 / 弹层（跟着皮肤走，避免「白底深字」撞色）
   ============================================================ */

/* 通用页头（装备 / 动态 / 友链 …） */
html .page-header h1 { color: var(--auo-text) !important; }
html .page-header h1:hover { color: var(--auo-accent) !important; }
html .page-header .count,
html .equip-header-actions .count,
html .equip-header-actions .count.retired {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text-2) !important;
}

/* ---------- 装备页 ---------- */
html .equip-group-title { color: var(--auo-text) !important; }
html .equip-group-count {
    background: var(--auo-accent-soft) !important;
    color: var(--auo-accent-text) !important;
}
html .equip-group-desc { color: var(--auo-text-2) !important; }
html .equip-card-image { background: var(--auo-surface-3) !important; }
html .equip-card-image.no-image { background: var(--auo-surface-3) !important; color: var(--auo-text-3) !important; }
html .equip-card-name { color: var(--auo-text) !important; }
html .equip-card-spec { color: var(--auo-text-3) !important; }
html .equip-card-detail-row .detail-label { color: var(--auo-text-3) !important; }
html .equip-card-detail-row .detail-value { color: var(--auo-text) !important; }
html .equip-card-detail-row { border-bottom-color: var(--auo-border) !important; }
html .star-empty { color: var(--auo-border-2) !important; }
html .equip-cost-info { background: var(--auo-surface-2) !important; }
html .equip-cost-price,
html .equip-cost-status { color: var(--auo-text) !important; }
html .equip-cost-days,
html .equip-cost-daily { color: var(--auo-text-3) !important; }
html .equip-page .empty-state p { color: var(--auo-text-2) !important; }
html .equip-page .empty-state .empty-hint { color: var(--auo-text-3) !important; }
html .equip-page .empty-state code {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text-2) !important;
}

/* 装备详情弹层 */
html .equip-modal {
    background: var(--auo-surface) !important;
    color: var(--auo-text) !important;
    box-shadow: var(--auo-shadow-lift) !important;
}
html .equip-modal-name { color: var(--auo-text) !important; }
html .equip-modal-spec,
html .equip-modal-rating-text { color: var(--auo-text-3) !important; }
html .equip-modal-row .modal-label,
html .equip-modal-block .block-label { color: var(--auo-text-2) !important; }
html .equip-modal-row .modal-value { color: var(--auo-text) !important; }
html .equip-modal-block.review-block,
html .equip-modal-block.reason-block { background: var(--auo-surface-2) !important; }
html .equip-modal-close {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text-2) !important;
}

/* ---------- 动态页 ---------- */
html .announce-publish-box .publish-title { color: var(--auo-text) !important; }
html .announce-publish-box .group-label,
html .announce-publish-box .publish-options label { color: var(--auo-text-2) !important; }
html .announce-item .announce-time { color: var(--auo-text-3) !important; }
html .announce-item .announce-time .author-name { color: var(--auo-text-3) !important; }
html .announce-item .announce-content { color: var(--auo-text) !important; }
html .announce-item .announce-footer .announce-weather { color: var(--auo-text-3) !important; }
html .announce-item .edit-form textarea { background: var(--auo-surface) !important; color: var(--auo-text) !important; }
html .announce-item .edit-form .edit-options label { color: var(--auo-text-2) !important; }
html .announce-item .announce-footer .announce-actions .btn-cancel {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text-2) !important;
}
html .announce-empty { color: var(--auo-text-3) !important; }
html .announce-pagination .page-nav a,
html .announce-pagination .page-nav span {
    background: var(--auo-surface) !important;
    border-color: var(--auo-border-2) !important;
    color: var(--auo-text-2) !important;
}
html .announce-pagination .page-nav .current {
    background: var(--auo-accent-fill) !important;
    border-color: var(--auo-accent) !important;
    color: #ffffff !important;
}

/* ---------- 404 ---------- */
html .auo-404-bar-title { color: var(--auo-text-2) !important; }
html .auo-404-title { color: var(--auo-text) !important; }
html .auo-404-desc { color: var(--auo-text-2) !important; }
html .auo-404-foot { color: var(--auo-text-3) !important; }
html .auo-404-btn {
    background: var(--auo-surface-2) !important;
    border-color: var(--auo-border-2) !important;
    color: var(--auo-text) !important;
}
html .auo-404-btn:hover {
    background: var(--auo-surface-3) !important;
    border-color: var(--auo-accent) !important;
    color: var(--auo-accent-text) !important;
}
html .auo-404-btn.is-primary {
    background: var(--auo-accent-fill) !important;
    border-color: var(--auo-accent) !important;
    color: #ffffff !important;
}

/* ---------- 关于（PC） ---------- */
html .about-mac-card { color: var(--auo-text) !important; }
html .about-mac-card .os-title { color: var(--auo-text) !important; }
html .specs-grid { background: var(--auo-surface-2) !important; }
html .spec-label { color: var(--auo-text-3) !important; }
html .spec-value { color: var(--auo-text) !important; }
html .days-badge {
    background: var(--auo-accent-soft) !important;
    color: var(--auo-accent-text) !important;
}

/* ---------- M85C ---------- */
html .m85c-page-main { color: var(--auo-text) !important; }
html .m85c-title { color: var(--auo-text) !important; }
html .m85c-hero-img { background: var(--auo-surface-3) !important; }
html .m85c-info-row .info-label { color: var(--auo-text-3) !important; }
html .m85c-info-row .info-value { color: var(--auo-text) !important; }
html .m85c-records-header { border-bottom-color: var(--auo-border) !important; }
html .accordion-item {
    background: var(--auo-surface-2) !important;
    border-color: var(--auo-border) !important;
}
/* ★ 手风琴头部模板里写死 background:#fff（hover #f8fafc），
   深色下会变成"白底 + 浅字"整条看不见，必须单独压掉 */
html .accordion-header { background: transparent !important; }
html .accordion-header:hover { background: var(--auo-surface-3) !important; }
html .accordion-item.active { border-color: var(--auo-accent) !important; }
html .accordion-item.active .toggle-icon { color: var(--auo-accent-text) !important; }
html .accordion-header .date-title { color: var(--auo-text) !important; }
html .accordion-header .record-names {
    background: var(--auo-accent-soft) !important;
    color: var(--auo-accent-text) !important;
}
html .accordion-header .record-count {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text-2) !important;
}
html .accordion-header .toggle-icon { color: var(--auo-text-3) !important; }
html .m85c-records-count {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text-2) !important;
}
html .m85c-comments-divider { border-top-color: var(--auo-border) !important; }
html .accordion-body {
    background: var(--auo-surface) !important;
    border-top-color: var(--auo-border) !important;
}
html .record-cell .label { color: var(--auo-text-3) !important; }
html .record-cell .value { color: var(--auo-text) !important; }
/* 价格是红字，深色下 #e74c3c 只有 3.5:1，换成皮肤的危险色 */
html .record-cell .value.price { color: var(--auo-danger) !important; }
html .m85c-empty { color: var(--auo-text-3) !important; }
html .m85c-empty-hint { color: var(--auo-text-3) !important; }
html .m85c-empty code {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text-2) !important;
}

/* ---------- 宝可梦 ---------- */
html .pokemon-container { color: var(--auo-text) !important; }
html .pokemon-title { color: var(--auo-text) !important; }
html .pokemon-season-tabs { background: var(--auo-surface-3) !important; }
html .pokemon-season-btn { color: var(--auo-text-2) !important; }
html .pokemon-season-btn.active {
    background: var(--auo-surface) !important;
    color: var(--auo-accent-text) !important;
}
html .pokemon-status-bar { color: var(--auo-text-3) !important; }
html .pokemon-card {
    background: var(--auo-surface-2) !important;
    border-color: var(--auo-border) !important;
}
html .pokemon-name { color: var(--auo-text) !important; }
html .pokemon-badge.missing {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text-3) !important;
}
html .pokemon-topbar { border-bottom-color: var(--auo-border) !important; }

/* ============================================================
   ⑬ 收口补丁：模板内联 <style> 里写死浅色的组件
   （左抽屉 / 评论区 / 动态页 / 装备页 / 首页组件 / 卡片）
   —— 统一改由皮肤变量驱动，保证任何风格 + 黑夜模式都可读
   ============================================================ */

/* ---------- 左抽屉 / 移动端抽屉（inc/left-drawer.php） ---------- */
html .mobile-drawer {
    background: var(--auo-shell) !important;
    box-shadow: 4px 0 30px var(--auo-shadow-lift) !important;
    color: var(--auo-text);
}
html .mobile-drawer .drawer-close-btn {
    background: var(--auo-surface) !important;
    border-color: var(--auo-border) !important;
    color: var(--auo-text-2) !important;
}
html .mobile-drawer .left-panel-tabs {
    background: var(--auo-surface-3) !important;
    border-color: var(--auo-border-2) !important;
}
html .mobile-drawer .left-panel-tab { color: var(--auo-text-2) !important; }
html .mobile-drawer .left-panel-tab.active {
    background: var(--auo-surface) !important;
    color: var(--auo-accent-text) !important;
    box-shadow: 0 2px 8px var(--auo-accent-shadow) !important;
}
html .mobile-drawer .side-card {
    background: var(--auo-surface) !important;
    border-color: var(--auo-border) !important;
    box-shadow: var(--auo-shadow) !important;
}
html .mobile-drawer .card-head-title { color: var(--auo-text) !important; }
html .mobile-drawer .card-head-more {
    background: var(--auo-accent-soft) !important;
    color: var(--auo-accent-text) !important;
}
html .mobile-drawer .card-head-more:hover {
    background: var(--auo-accent-fill) !important;
    color: #ffffff !important;
}
html .mobile-drawer .card-head-toggle { color: var(--auo-text-3) !important; }
html .mobile-drawer .right-panel-title { color: var(--auo-text-3) !important; }
html .mobile-drawer .menu-group-title { color: var(--auo-text-3) !important; }
html .mobile-drawer .menu-link,
html .mobile-drawer .menu-nolink,
html .mobile-drawer .menu-group-item { color: var(--auo-text-2) !important; }
html .mobile-drawer .menu-link:hover,
html .mobile-drawer .menu-group-item:hover {
    background: var(--auo-surface-2) !important;
    color: var(--auo-accent-text) !important;
}
html .mobile-drawer .menu-divider { background: var(--auo-border) !important; }
html .mobile-drawer .menu-child-icon { color: var(--auo-text-3) !important; }

/* 抽屉里的日期 / 天气 / 倒计时 */
html .mobile-drawer .datetime-gregorian,
html .mobile-drawer .datetime-clock { color: var(--auo-text) !important; }
html .mobile-drawer .datetime-lunar,
html .mobile-drawer .datetime-clock .seconds { color: var(--auo-text-3) !important; }
html .mobile-drawer .holiday-countdown[data-status="countdown"] {
    background: var(--auo-accent-soft) !important;
    color: var(--auo-accent-text) !important;
}
html .mobile-drawer .holiday-countdown[data-status="during"] {
    background: var(--auo-accent-soft) !important;
    color: var(--auo-accent-text) !important;
}

/* 抽屉里的资料卡 */
html .mobile-drawer .profile-avatar {
    background: var(--auo-surface-3) !important;
    border-color: var(--auo-border) !important;
}
html .mobile-drawer .profile-name { color: var(--auo-text) !important; }
html .mobile-drawer .profile-mbti-tag {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text-2) !important;
}
html .mobile-drawer .profile-tagline { color: var(--auo-text-2) !important; }
html .mobile-drawer .profile-email {
    background: var(--auo-accent-soft) !important;
    color: var(--auo-accent-text) !important;
}
html .mobile-drawer .profile-about-btn {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text-2) !important;
}
html .mobile-drawer .profile-about-btn:hover {
    background: var(--auo-accent-fill) !important;
    color: #ffffff !important;
}
html .mobile-drawer .link-item { color: var(--auo-text-2) !important; }
html .mobile-drawer .link-item:hover { background: var(--auo-surface-2) !important; }

/* 抽屉里的音乐 / 番剧列表 */
html .mobile-drawer .song-item,
html .mobile-drawer .anime-item { border-bottom-color: var(--auo-border) !important; }
html .mobile-drawer .song-item:hover,
html .mobile-drawer .anime-item:hover { background: var(--auo-surface-2) !important; }
html .mobile-drawer .song-title,
html .mobile-drawer .anime-title-col { color: var(--auo-text) !important; }
html .mobile-drawer .song-artist { color: var(--auo-text-3) !important; }
html .mobile-drawer .song-cover,
html .mobile-drawer .anime-poster-col { background: var(--auo-surface-3) !important; }
html .mobile-drawer .song-play-icon,
html .mobile-drawer .song-more-btn { color: var(--auo-accent-text) !important; }
html .mobile-drawer .watching { color: var(--auo-accent-text) !important; }
html .mobile-drawer .watched { color: var(--auo-text-3) !important; }
html .mobile-drawer .unwatched { color: var(--auo-text-2) !important; }
html .mobile-drawer .dropped { color: var(--auo-text-3) !important; }

/* 音乐 / 番剧列表：这几类只在抽屉里出现，不加父级限定，
   抽屉以外（比如以后挪到弹窗里）也能跟着换色 */
html .song-item { border-bottom-color: var(--auo-border) !important; }
html .song-item:hover { background: var(--auo-surface-2) !important; }
html .song-title { color: var(--auo-text) !important; }
html .song-artist { color: var(--auo-text-3) !important; }
html .song-cover { background: var(--auo-surface-3) !important; }
html .song-play-icon,
html .song-more-btn { color: var(--auo-accent-text) !important; }
html .anime-title-col { color: var(--auo-text) !important; }
html .anime-poster-col { background: var(--auo-surface-3) !important; }

/* ---------- 评论区（comments.php） ---------- */
html .comments-title,
html .comment-respond-title { color: var(--auo-text) !important; }
/* 兜底：任何位置的评论卡片都用浅一档底色（下面再按层级细分） */
html .comment-item {
    background: var(--auo-surface-2) !important;
    border-color: var(--auo-border) !important;
}
html .comment-list > .comment-item {
    background: var(--auo-surface-2) !important;
    border-color: var(--auo-border) !important;
}
html .comment-list > .comment-item:hover { border-color: var(--auo-border-2) !important; }
html .comment-children .comment-item {
    background: var(--auo-surface) !important;
    border-color: var(--auo-border) !important;
}
html .comment-children .comment-children { border-left-color: var(--auo-border) !important; }
html .comment-children .comment-children .comment-item {
    background: var(--auo-surface-3) !important;
}
html .comment-author cite { color: var(--auo-text) !important; }
html .comment-author .comment-meta,
html .comment-author .comment-meta a { color: var(--auo-text-3) !important; }
html .comment-content { color: var(--auo-text-2) !important; }
html .comment-content .reply-to { color: var(--auo-text-3) !important; }
html .comment-actions .reply-link {
    background: var(--auo-accent-soft) !important;
    color: var(--auo-accent-text) !important;
}
html .comment-actions .reply-link:hover {
    background: var(--auo-accent-fill) !important;
    color: #ffffff !important;
}
html .comment-pagination a {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text-2) !important;
}
html .comment-pagination a:hover,
html .comment-pagination .current {
    background: var(--auo-accent-fill) !important;
    color: #ffffff !important;
}
html .comment-respond {
    background: var(--auo-surface-2) !important;
    border-color: var(--auo-border) !important;
}
html .login-status {
    background: var(--auo-accent-soft) !important;
    color: var(--auo-text-2) !important;
}
html .logout-link { color: var(--auo-text-3) !important; }
html .cancel-comment-reply a { color: var(--auo-text-3) !important; }
html .comments-closed { color: var(--auo-text-3) !important; }
html .draft-row {
    background: var(--auo-surface-3) !important;
    border-color: var(--auo-border) !important;
    color: var(--auo-text-2) !important;
}
html .draft-clear { color: var(--auo-text-3) !important; }
html .submit-btn {
    background: var(--auo-accent-fill) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px var(--auo-accent-shadow) !important;
}

/* ---------- 动态 / 公告页（page-announcement.php） ---------- */
html .page-header h1 { color: var(--auo-text) !important; }
html .page-header .count {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text-2) !important;
}
html .announce-publish-box .publish-title { color: var(--auo-text) !important; }
html .announce-publish-box textarea,
html .announce-publish-box .publish-options input[type="datetime-local"] {
    background: var(--auo-surface-2) !important;
    border-color: var(--auo-border-2) !important;
    color: var(--auo-text) !important;
}
html .announce-publish-box textarea:focus,
html .announce-publish-box .publish-options input[type="datetime-local"]:focus {
    background: var(--auo-surface) !important;
    border-color: var(--auo-accent) !important;
}
html .announce-publish-box .publish-options label { color: var(--auo-text-2) !important; }
html .announce-publish-box .publish-options .group-label { color: var(--auo-text-3) !important; }
html .announce-item.sticky {
    background: var(--auo-accent-soft) !important;
    border-color: var(--auo-accent) !important;
}
html .announce-item.disabled {
    background: var(--auo-surface-3) !important;
    border-color: var(--auo-border) !important;
}
html .announce-item .disabled-watermark { color: var(--auo-text-3) !important; opacity: .55; }
html .announce-item .announce-status-right { color: var(--auo-accent) !important; opacity: .16; }

/* ---------- 装备页（page-equipment.php） ---------- */
html .equip-group-title { color: var(--auo-text) !important; }
html .equip-group-count,
html .equip-header-actions .count,
html .equip-header-actions .count.retired {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text-2) !important;
}
html .equip-group-desc { color: var(--auo-text-2) !important; }
html .equip-card-image { background: var(--auo-surface-3) !important; }
html .equip-card-image.no-image { color: var(--auo-text-3) !important; }
html .equip-card-name { color: var(--auo-text) !important; }
html .equip-card-spec { color: var(--auo-text-3) !important; }
html .equip-card-detail-row .detail-label { color: var(--auo-text-2) !important; }
html .equip-card-detail-row .detail-value { color: var(--auo-text) !important; }
html .equip-card-rating .star-empty { color: var(--auo-border-2) !important; }
html .equip-cost-info.retired {
    background: var(--auo-surface-2) !important;
    border-color: var(--auo-border) !important;
}
html .equip-cost-days {
    background: var(--auo-surface) !important;
    border-color: var(--auo-border-2) !important;
    color: var(--auo-text-2) !important;
}
html .equip-modal-body {
    background: var(--auo-surface) !important;
    color: var(--auo-text) !important;
}
html .equip-modal-header {
    background: var(--auo-titlebar) !important;
    color: var(--auo-text) !important;
    border-bottom-color: var(--auo-border) !important;
}
html .equip-modal-image { background: var(--auo-surface-3) !important; }

/* ---------- 首页中栏「强制样式」----------
   home-3col.css 里有一组 `.col-center .posts-container{background:#fff!important}`
   之类的规则，特异性 (0,2,0) + !important，会盖掉 ④ 节的 (0,1,1)。
   深色皮肤下整块中栏变成「白底 + 浅字」，首页基本没法看。
   下面按同样的结构 + html 前缀（(0,2,1)~(0,4,1)）逐条抢回来 */
html .col-center .posts-container { background: var(--auo-surface) !important; }
html .col-center .post-item {
    background: transparent !important;
    border-bottom-color: var(--auo-border) !important;
}
html .col-center .post-item:hover { background: var(--auo-surface-2) !important; }
html .col-center .post-item.is-say { background: transparent !important; }
html .col-center .post-item.is-say:hover { background: var(--auo-surface-2) !important; }
html .col-center .filter-tabs { background: var(--auo-surface-3) !important; }
html .col-center .filter-tab { color: var(--auo-text-2) !important; }
html .col-center .filter-tab:hover { color: var(--auo-text) !important; }
html .col-center .filter-tab.active {
    background: var(--auo-surface) !important;
    color: var(--auo-accent-text) !important;
}
html .col-center .anime-feed-card {
    background: transparent !important;
    border-bottom-color: var(--auo-border) !important;
}
html .col-center .anime-feed-card:hover { background: var(--auo-surface-2) !important; }
html .col-center .anime-feed-card:last-child { border-bottom-color: transparent !important; }

/* 首页媒体 feed 卡片里的文字（父级 .col-center 提高了一档特异性，
   所以这里每条都要带 html 前缀才盖得住） */
html .col-center .anime-feed-poster { background: var(--auo-surface-3) !important; }
html .col-center .anime-feed-title,
html .col-center .anime-feed-title-link { color: var(--auo-text) !important; }
html .col-center .anime-feed-title-link:hover { color: var(--auo-accent-text) !important; }
html .col-center .anime-feed-names { color: var(--auo-text-3) !important; }
html .col-center .anime-feed-names b {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text-3) !important;
}
html .col-center .anime-feed-meta { color: var(--auo-text-2) !important; }
html .col-center .anime-feed-comment { color: var(--auo-text-3) !important; }
html .col-center .anime-feed-comment:hover { color: var(--auo-accent-text) !important; }
html .col-center .anime-feed-progress {
    background: var(--auo-accent-soft) !important;
    border-color: var(--auo-border) !important;
}
html .col-center .anime-feed-progress-text { color: var(--auo-accent-text) !important; }
html .col-center .anime-feed-progress-bar { background: var(--auo-surface-3) !important; }
html .col-center .anime-feed-progress-unknown { background: var(--auo-border-2) !important; }
html .col-center .anime-feed-comment-text {
    color: var(--auo-text-2) !important;
    border-top-color: var(--auo-border) !important;
}
html .col-center .anime-feed-status.tag-unwatched {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text-2) !important;
}

/* 这几个语义色的小徽章只在深色皮肤下改（浅色保持原样） */
html.auo-icons-night .col-center .anime-feed-status.tag-watching,
html.auo-dark .col-center .anime-feed-status.tag-watching {
    background: rgba(34, 197, 94, 0.18) !important;
    color: #86efac !important;
}
html.auo-icons-night .col-center .anime-feed-status.tag-watched,
html.auo-dark .col-center .anime-feed-status.tag-watched {
    background: rgba(59, 130, 246, 0.2) !important;
    color: #9dc6ff !important;
}
html.auo-icons-night .col-center .anime-feed-status.tag-dropped,
html.auo-dark .col-center .anime-feed-status.tag-dropped {
    background: rgba(239, 68, 68, 0.18) !important;
    color: #fca5a5 !important;
}
html.auo-icons-night .col-center .anime-feed-rating,
html.auo-dark .col-center .anime-feed-rating { color: #fbbf24 !important; }

/* ---------- 首页：文章列表 / 引用卡片 / 装备卡片 / 最新动态 ---------- */
html .posts-count {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text-2) !important;
}
html .post-row { border-bottom-color: var(--auo-border) !important; }
html .post-row:hover { background: var(--auo-surface-2) !important; }
html .post-title a { color: var(--auo-text) !important; }
html .post-info { color: var(--auo-text-2) !important; }
html .post-comment-count,
html .post-comment-count a { color: var(--auo-text-3) !important; }
html .post-meta,
html .page-meta {
    color: var(--auo-text-2) !important;
    border-bottom-color: var(--auo-border) !important;
}
html .back-link { color: var(--auo-accent-text) !important; }
html .empty-state { color: var(--auo-text-3) !important; }

/* ---------- 首页 / 弹窗里的「说说」卡片正文 ----------
   home-3col.css 里 `.col-center .post-item.say-card .post-item-excerpt`
   是 (0,4,0) 的深灰字，比皮肤规则更硬；深色皮肤下会变成「深底深字」，
   所以这里用 (0,4,1) 同结构抢回来 */
html .col-center .post-item.say-card .post-item-excerpt {
    color: var(--auo-text) !important;
}
html .col-center .post-item.say-card .post-item-excerpt a {
    color: var(--auo-link) !important;
    text-decoration-color: var(--auo-link-line);
}
html .col-center .post-item.say-card .post-item-excerpt a:hover {
    color: var(--auo-link-hover) !important;
}
html .col-center .post-item.say-card .post-item-excerpt code {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text) !important;
}
html .col-center .post-item.say-card .post-item-excerpt blockquote {
    border-left-color: var(--auo-accent) !important;
    color: var(--auo-text-2) !important;
}
/* 说说里的 Markdown 表格：home-3col.css 把它们写死成白底深字 + !important，
   深色皮肤下会冒出一块白表格，这里按同结构 + html 前缀刷回皮肤色 */
html .col-center .post-item.say-card .post-item-excerpt table.markdown-table,
html .modal-say-item .post-item-excerpt table.markdown-table {
    background: var(--auo-surface-2) !important;
    border-color: var(--auo-border) !important;
}
html .col-center .post-item.say-card .post-item-excerpt table.markdown-table th,
html .modal-say-item .post-item-excerpt table.markdown-table th {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text) !important;
    border-color: var(--auo-border) !important;
}
html .col-center .post-item.say-card .post-item-excerpt table.markdown-table td,
html .modal-say-item .post-item-excerpt table.markdown-table td {
    color: var(--auo-text-2) !important;
    border-color: var(--auo-border) !important;
}
html .col-center .post-item.say-card .post-item-excerpt table.markdown-table tr:nth-child(even),
html .modal-say-item .post-item-excerpt table.markdown-table tr:nth-child(even) {
    background: var(--auo-surface-3) !important;
}
html .col-center .post-item.say-card .post-item-excerpt table.markdown-table a,
html .modal-say-item .post-item-excerpt table.markdown-table a {
    color: var(--auo-link) !important;
}

/* 收起时的白色渐隐：深色下会糊成一条白边 */
html .say-card .post-item-excerpt::after {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), var(--auo-surface)) !important;
}
/* 说说卡片 hover：home-3col.css 的 `.post-item.is-say:hover` 是 (0,3,0) */
html .post-item.is-say:hover { background: var(--auo-surface-2) !important; }

/* 引用卡片（[quote] 短代码产物）：保持插件/主题自己的配色，不参与皮肤。
   短代码整体属于「内容区受保护区」，见文件末尾 ⑰ 节 */

/* 首页装备卡片 */
html .equipment-card {
    background: var(--auo-surface) !important;
    border-color: var(--auo-border) !important;
    box-shadow: var(--auo-shadow) !important;
}
html .equipment-card-image { background: var(--auo-surface-3) !important; }
html .equipment-card-image.no-image { background: var(--auo-surface-2) !important; }
html .equipment-card-name { color: var(--auo-text) !important; }
html .equipment-card-spec { color: var(--auo-text-3) !important; }
html .equipment-category-title { color: var(--auo-text) !important; }
html .equipment-category-desc { color: var(--auo-text-2) !important; }
html .equipment-detail-row { color: var(--auo-text-2) !important; }
html .equipment-review { color: var(--auo-text-2) !important; }

/* 最新动态长条 */
html .latest-announce-bar {
    background: var(--auo-surface-2) !important;
    border-color: var(--auo-border-2) !important;
}
html .latest-announce-bar:hover {
    background: var(--auo-accent-soft) !important;
    border-color: var(--auo-accent) !important;
}
html .la-time,
html .la-weather,
html .la-more { color: var(--auo-text-3) !important; }
html .la-status {
    background: var(--auo-accent-soft) !important;
    color: var(--auo-accent-text) !important;
    border-color: var(--auo-border) !important;
}
html .la-content { color: var(--auo-text) !important; }
html .la-content strong { color: var(--auo-text) !important; }

/* 悬浮提示气泡 */
html .tip-popup {
    background: var(--auo-surface) !important;
    border-color: var(--auo-border) !important;
    color: var(--auo-text-2) !important;
    box-shadow: var(--auo-shadow-lift) !important;
}
html .tip-popup::after { border-top-color: var(--auo-surface) !important; }

/* 正文内的引用块（在 ⑤ 节已统一处理，这里不再重复声明 code，
   避免又一条 !important 把代码块里的 code 刷成浅色底） */

/* ---------- 关于页 / 宝可梦页 / 404 细部 ---------- */
html .about-mac-card .spec-row { border-bottom-color: var(--auo-border) !important; }
html .pokemon-header {
    background: var(--auo-surface) !important;
    border-color: var(--auo-border) !important;
}
html .pokemon-avatar { background: var(--auo-surface-3) !important; }
html .auo-404-body { color: var(--auo-text-2) !important; }
html .auo-404-code { color: var(--auo-accent-text) !important; }

/* ============================================================
   ⑭ AUOMedia 插件卡片：番剧 / 音乐 / 短剧 / 书籍 / 媒体库 / 详情页
   —— 插件 CSS 是以 <style> 内联在 body 里输出的，晚于 skins.css 加载；
      所以这里统一用 !important 抢回控制权（插件的 !important 只用于
      padding / margin / display，不涉及颜色，不会冲突）
   ============================================================ */

/* ---------- 页面头部与计数 ---------- */
html .anime-header,
html .music-header,
html .drama-header,
html .book-header,
html .media-header {
    background: var(--auo-surface) !important;
    /* ★ 0.6.5：补 border-color。
       媒体库的头部是「四面都有边框」的独立卡片（插件里写死 border:1px solid #f1f5f9），
       这里以前只改了 border-bottom-color，另外三条边还是那道近白的 #f1f5f9，
       在夜色玻璃下就是一圈发光的白边，把标题框成一个"浮在页面上的白框"，
       看着就像标题错位 / 压住了页面。三边一起换成皮肤边框色即可。 */
    border-color: var(--auo-border) !important;
    border-bottom-color: var(--auo-border) !important;
    box-shadow: var(--auo-shadow) !important;
    color: var(--auo-text) !important;
}
html .anime-header h1,
html .music-header h1,
html .drama-header h1,
html .book-header h1,
html .media-header h1 {
    color: var(--auo-text) !important;
    /* ★ 0.6.5：标题排版复位。
       插件只给 h1 写了 font-size / margin:0 / display:flex，
       「左侧竖线 + 左内边距」这种正文 h1 的装饰会从
       page.php 的 .article-content h1 继承下来（border-left:4px + padding-left:12px），
       于是标题整体右移、左边多出一条竖线，看起来就是错位。
       这里把四个方向一起归零，只留插件原本的 22px + 图标居中。 */
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    line-height: 1.3 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

html .anime-count,
html .music-count,
html .drama-count,
html .book-count,
html .media-count {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text-2) !important;
}

/* 头部动作按钮（复制链接 / 添加） */
html .anime-header-actions .copy-btn,
html .drama-header-actions .copy-btn {
    background: var(--auo-surface-3) !important;
    border-color: var(--auo-border-2) !important;
    color: var(--auo-text-2) !important;
}
html .anime-header-actions .copy-btn:hover,
html .drama-header-actions .copy-btn:hover {
    background: var(--auo-border-2) !important;
    border-color: var(--auo-border-2) !important;
}

/* ---------- 列表容器 ---------- */
html .anime-list,
html .music-list,
html .drama-list,
html .book-list {
    background: var(--auo-surface) !important;
}

/* ---------- 卡片主体 ---------- */
html .anime-card,
html .music-card,
html .drama-card,
html .book-card,
html .media-card {
    background: var(--auo-surface-2) !important;
    border-color: var(--auo-border) !important;
    box-shadow: var(--auo-shadow) !important;
}
html .anime-card:hover,
html .drama-card:hover,
html .book-card:hover,
html .music-card:hover { border-color: var(--auo-border-2) !important; }

/* 封面 / 海报占位底色 */
html .anime-card-image,
html .drama-card-image { background: var(--auo-surface-3) !important; }
html .music-card-cover,
html .book-card-cover,
html .media-card-poster {
    background: var(--auo-accent-soft) !important;
    color: var(--auo-accent-text) !important;
}

/* ---------- 标题 / 副标题 / 元信息 ---------- */
html .anime-card-title,
html .music-card-title,
html .drama-card-title,
html .book-card-title,
html .media-card-name,
html .anime-detail-title,
html .drama-detail-title,
html .book-detail-title {
    color: var(--auo-text) !important;
}
html .book-card:hover .book-card-title,
html .media-card:hover .media-card-name,
html .anime-card-title-link:hover,
html .music-card-title-link:hover,
html .drama-card-title-link:hover { color: var(--auo-accent-text) !important; }

html .anime-card-subtitle,
html .drama-card-subtitle,
html .drama-card-original,
html .music-card-artist {
    color: var(--auo-text-3) !important;
}
html .anime-card-subtitle .sub-item .lang-tag,
html .drama-card-subtitle .sub-item .lang-tag {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text-2) !important;
}
html .anime-card-meta,
html .music-card-meta,
html .drama-card-meta,
html .book-card-meta {
    color: var(--auo-text-2) !important;
}
html .anime-card-meta .meta-comment,
html .music-card-meta .meta-comment,
html .drama-card-meta .meta-comment,
html .music-card-comment-link {
    color: var(--auo-text-3) !important;
}
html .anime-card-meta .meta-comment:hover,
html .drama-card-meta .meta-comment:hover,
html a.music-card-comment-link:hover { color: var(--auo-accent-text) !important; }

/* ---------- 简介 / 评论正文 ---------- */
html .anime-card-comment,
html .music-card-comment,
html .drama-card-comment,
html .book-card-comment {
    color: var(--auo-text-2) !important;
    border-top-color: var(--auo-border) !important;
}
html .anime-card-comment .comment-label,
html .drama-card-comment .comment-label { color: var(--auo-text-3) !important; }
html .anime-card-comment .long-comment,
html .drama-card-comment .long-comment {
    color: var(--auo-text-2) !important;
    border-top-color: var(--auo-border-2) !important;
}
html .anime-card-comment .long-comment blockquote,
html .drama-card-comment .long-comment blockquote {
    border-left-color: var(--auo-accent) !important;
    color: var(--auo-text-2) !important;
}
html .anime-card-comment .long-comment code,
html .drama-card-comment .long-comment code {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text) !important;
}

/* ---------- 星级 ---------- */
html .anime-card-stars .star-empty,
html .music-card-stars .star-empty,
html .drama-card-stars .star-empty,
html .book-card-stars .star-empty,
html .anime-detail-stars .star-empty { color: var(--auo-border-2) !important; }
html .anime-card-stars .star-rating-text,
html .music-card-stars .star-rating-text,
html .drama-card-stars .star-rating-text,
html .book-card-stars .star-rating-text { color: var(--auo-text-3) !important; }

/* ---------- 年份分组 ---------- */
html .anime-year-group .year-title,
html .drama-year-group .year-title {
    color: var(--auo-text) !important;
    border-bottom-color: var(--auo-border-2) !important;
}
html .anime-year-group .year-title .year-count,
html .drama-year-group .year-title .year-count { color: var(--auo-text-3) !important; }
html .year-toggle-btn { color: var(--auo-accent-text) !important; }
html .year-toggle-btn:hover { color: var(--auo-accent) !important; }

/* ---------- 筛选栏 ---------- */
html .anime-filter-bar,
html .drama-filter-bar {
    background: var(--auo-surface-2) !important;
    border-bottom-color: var(--auo-border) !important;
}
html .anime-filter-bar .filter-label,
html .drama-filter-bar .filter-label { color: var(--auo-text-2) !important; }
html .anime-filter-bar .filter-tag,
html .drama-filter-bar .filter-tag {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text-2) !important;
}
html .anime-filter-bar .filter-tag:hover,
html .drama-filter-bar .filter-tag:hover {
    background: var(--auo-border-2) !important;
    color: var(--auo-text) !important;
}
html .anime-filter-bar .filter-tag.active,
html .drama-filter-bar .filter-tag.active {
    background: var(--auo-accent-fill) !important;
    color: #ffffff !important;
}
html .anime-filter-bar .filter-divider,
html .drama-filter-bar .filter-divider { color: var(--auo-text-3) !important; }
html .anime-filter-bar .filter-result,
html .drama-filter-bar .filter-result { color: var(--auo-text-3) !important; }

/* ---------- 观看进度条 ---------- */
html .anime-progress-wrap,
html .drama-progress-wrap,
html .anime-detail-progress {
    background: var(--auo-accent-soft) !important;
    border-color: var(--auo-border) !important;
}
html .anime-progress-head,
html .drama-progress-head,
html .anime-detail-progress-head { color: var(--auo-text-2) !important; }
html .anime-progress-text,
html .drama-progress-text,
html .anime-detail-progress-text { color: var(--auo-accent-text) !important; }
html .anime-progress-bar,
html .drama-progress-bar,
html .anime-detail-progress-bar { background: var(--auo-surface-3) !important; }
html .anime-progress-fill.anime-progress-un,
html .drama-progress-fill.drama-progress-un { background: var(--auo-border-2) !important; }

/* ---------- 链接按钮（插件统一的 .auo-link-btn） ---------- */
html .auo-link-btn,
html .music-link-btn,
html .media-more {
    background: var(--auo-accent-soft) !important;
    border-color: var(--auo-border) !important;
    color: var(--auo-accent-text) !important;
    box-shadow: none !important;
}
html .auo-link-btn:hover,
html .music-link-btn:hover,
html .media-more:hover {
    background: var(--auo-accent-fill) !important;
    border-color: var(--auo-accent) !important;
    color: #ffffff !important;
}
html .anime-card-links .link-item a,
html .drama-card-links .link-item a,
html .anime-detail-links .link-item a { color: var(--auo-accent-text) !important; }

/* 音乐播放器外壳（iframe 本身交给第三方，不动） */
html .music-player {
    background: var(--auo-surface-2) !important;
    border-color: var(--auo-border) !important;
}

/* ---------- 媒体库（library 合并页） ---------- */
html .media-tabs {
    background: var(--auo-surface) !important;
    border-color: var(--auo-border) !important;
    box-shadow: var(--auo-shadow) !important;
}
html .media-tab { color: var(--auo-text-2) !important; }
html .media-tab:hover {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text) !important;
}
html .media-tab.active {
    background: var(--auo-accent-fill) !important;
    color: #ffffff !important;
}
html .media-tab .tab-count {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text-2) !important;
    opacity: 1 !important;
}
html .media-tab.active .tab-count {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

/* ---------- 空状态 ---------- */
html .anime-empty,
html .music-empty,
html .drama-empty,
html .book-empty,
html .media-empty {
    background: var(--auo-surface) !important;
    color: var(--auo-text-3) !important;
    border-color: var(--auo-border) !important;
}
html .media-empty .empty-hint { color: var(--auo-text-3) !important; }

/* ---------- 详情页（detail.css） ---------- */
html .anime-detail-card,
html .drama-detail-card,
html .book-detail-card {
    background: var(--auo-surface) !important;
    border-color: var(--auo-border) !important;
    color: var(--auo-text) !important;
}
html .anime-detail-poster,
html .drama-detail-poster,
html .book-detail-poster,
html .book-detail-noimg { background: var(--auo-surface-3) !important; }
html .anime-detail-subtitle,
html .anime-detail-meta,
html .drama-detail-meta,
html .drama-detail-original,
html .book-detail-meta { color: var(--auo-text-2) !important; }
html .anime-detail-comment,
html .drama-detail-comment,
html .book-detail-comment { color: var(--auo-text-2) !important; }
html .anime-detail-comment,
html .drama-detail-comment,
html .book-detail-comment {
    color: var(--auo-text-2) !important;
    border-top-color: var(--auo-border) !important;
}
/* 插件在 .comment-label / .short-comment 上直接写了 #94a3b8 / #475569，
   深色皮肤里这两层都要单独提亮，否则点评正文黑糊糊一片 */
html .anime-detail-comment .comment-label,
html .drama-detail-comment .comment-label,
html .book-detail-comment .comment-label { color: var(--auo-text-3) !important; }
html .anime-detail-comment .short-comment,
html .drama-detail-comment .short-comment,
html .book-detail-comment .short-comment { color: var(--auo-text-2) !important; }
html .book-detail-links a,
html .drama-detail-links a { color: var(--auo-link) !important; }
html .anime-detail-long,
html .anime-detail-long-label { color: var(--auo-text-2) !important; }
html .anime-detail-status { color: var(--auo-accent-text) !important; }
html .music-detail-wrap { color: var(--auo-text) !important; }

/* ============================================================
   ⑮ 剩下这些零散组件：编辑器下拉 / 引用弹窗 / 说明面板 /
      动态页操作按钮 / M85C 记录 / 灯箱 / 图片按钮 / 宝可梦
   ============================================================ */

/* 深色下主色偏亮一档，保证小字也读得清 */
html.auo-icons-night,
html.auo-dark { --primary-color: var(--auo-accent-text); }

/* ---------- 编辑器（写文章时的工具栏 / 插入下拉） ---------- */
html .wmd-button-row { border-bottom-color: var(--auo-border) !important; }
html .editor-dropdown-btn {
    background: var(--auo-surface-3) !important;
    border-color: var(--auo-border-2) !important;
    color: var(--auo-text) !important;
}
html .editor-dropdown-btn:hover { background: var(--auo-border-2) !important; }
html .editor-dropdown-menu {
    background: var(--auo-surface) !important;
    border-color: var(--auo-border-2) !important;
    box-shadow: var(--auo-shadow-lift) !important;
}
html .editor-dropdown-menu .menu-item { color: var(--auo-text) !important; }
html .editor-dropdown-menu .menu-item:hover { background: var(--auo-surface-2) !important; }
html .editor-dropdown-menu .menu-item .mi-tag {
    background: var(--auo-surface-3) !important;
    border-color: var(--auo-border) !important;
    color: var(--auo-text-3) !important;
}
html .editor-dropdown-menu .menu-divider { background: var(--auo-border) !important; }
html .editor-dropdown-menu .menu-label { color: var(--auo-text-3) !important; }

/* ---------- 引用弹窗（写文章时插引用） ---------- */
html .quote-modal {
    background: var(--auo-surface) !important;
    color: var(--auo-text) !important;
    box-shadow: var(--auo-shadow-lift) !important;
}
html .quote-modal h3 { color: var(--auo-text) !important; }
html .quote-modal p { color: var(--auo-text-2) !important; }
html .quote-modal input {
    background: var(--auo-surface-2) !important;
    border-color: var(--auo-border-2) !important;
    color: var(--auo-text) !important;
}
html .quote-modal .modal-actions .btn-cancel {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text-2) !important;
}
html .quote-modal .modal-actions .btn-cancel:hover { background: var(--auo-border-2) !important; }
html .quote-modal .modal-actions .btn-confirm {
    background: var(--auo-accent-fill) !important;
    color: #ffffff !important;
}

/* ---------- 短代码说明面板 ---------- */
html .sc-help {
    background: var(--auo-surface) !important;
    color: var(--auo-text) !important;
    box-shadow: var(--auo-shadow-lift) !important;
}
html .sc-help-head { border-bottom-color: var(--auo-border) !important; }
html .sc-help-head h3 { color: var(--auo-text) !important; }
html .sc-help-head .sc-help-close {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text-2) !important;
}
html .sc-help-head .sc-help-close:hover { background: var(--auo-border-2) !important; }
html .sc-help-body h4 { color: var(--auo-text-3) !important; }
html .sc-help-body th {
    color: var(--auo-text-2) !important;
    border-bottom-color: var(--auo-border-2) !important;
}
html .sc-help-body td {
    color: var(--auo-text-2) !important;
    border-bottom-color: var(--auo-border) !important;
}
html .sc-help-body td:first-child { color: var(--auo-text) !important; }
html .sc-help-body code {
    background: var(--auo-surface-3) !important;
    border-color: var(--auo-border-2) !important;
    color: var(--auo-text) !important;
}

/* ---------- 动态页的操作按钮 ---------- */
html .announce-item .edit-form .edit-actions .btn-cancel {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text-2) !important;
}
html .announce-item .edit-form .edit-actions .btn-cancel:hover {
    background: var(--auo-border-2) !important;
}
html .announce-item .announce-footer .announce-actions .btn-edit {
    background: var(--auo-accent-soft) !important;
    color: var(--auo-accent-text) !important;
}
html .announce-item .announce-footer .announce-actions .btn-edit:hover {
    background: var(--auo-accent-fill) !important;
    color: #ffffff !important;
}
html .announce-item .announce-footer .announce-actions .btn-disabled {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text-2) !important;
}
html .announce-item .announce-footer .announce-actions .btn-disabled:hover {
    background: var(--auo-border-2) !important;
}
html .announce-item .announce-time .edit-tag {
    background: var(--auo-accent-soft) !important;
    color: var(--auo-accent-text) !important;
}

/* ---------- M85C 记录页 ---------- */
html .record-item { border-bottom-color: var(--auo-border-2) !important; }
html .record-cell .value.note { color: var(--auo-text-3) !important; }
html .m85c-info-value-hint { border-bottom-color: var(--auo-border-2) !important; }
html .m85c-info-value-hint:hover {
    border-bottom-color: var(--auo-accent) !important;
    color: var(--auo-accent-text) !important;
}

/* ---------- 评论区输入框（.text / .textarea 是旧写法） ---------- */
html .comment-form .text,
html .comment-form .textarea {
    background: var(--auo-surface-2) !important;
    border-color: var(--auo-border-2) !important;
    color: var(--auo-text) !important;
}

/* ---------- 灯箱 / 悬浮提示 ----------
   [imgbtn] 与 [tip] 是短代码产物，属于内容保护区，这里不再改它们的颜色，
   只保留主题自己的悬浮提示气泡（.tip-popup） */
html .global-tip-img-box { background: var(--auo-surface) !important; }

/* ---------- 独立文章页的悬浮关闭按钮 ---------- */
html .post-close-fab {
    background: var(--auo-surface) !important;
    border-color: var(--auo-border) !important;
    color: var(--auo-text-2) !important;
    box-shadow: var(--auo-shadow-lift) !important;
}

/* ---------- 宝可梦页 ---------- */
html .pokemon-card.own-shiny {
    background: var(--auo-accent-soft) !important;
    border-color: var(--auo-accent) !important;
}
html .pokemon-gender-summary {
    background: var(--auo-surface) !important;
    border-color: var(--auo-border-2) !important;
}

/* ---------- 说说「展开」按钮（弹窗 + 首页列表两处都用到） ---------- */
html .say-expand-btn {
    background: var(--auo-accent-soft) !important;
    color: var(--auo-accent-text) !important;
}
html .say-expand-btn:hover {
    background: var(--auo-accent-fill) !important;
    color: #ffffff !important;
}

/* ---------- 左抽屉遮罩 / 触发按钮（渐变是品牌色，只校准遮罩） ---------- */
html .mobile-drawer-overlay { background: rgba(15, 23, 42, 0.5) !important; }
html.auo-icons-night .mobile-drawer-overlay,
html.auo-dark .mobile-drawer-overlay { background: rgba(0, 0, 0, 0.62) !important; }

/* ============================================================
   ⑯ 语义色收口：危险（删除 / 失效标签）与警告（置顶）
      浅色下保持原来的浅底深字；深色下换成半透明底 + 亮字
   ============================================================ */

/* 删除按钮 / 失效标签 */
html .announce-item .announce-footer .announce-actions .btn-delete {
    background: var(--auo-danger-soft) !important;
    color: var(--auo-danger) !important;
}
html .announce-item .announce-footer .announce-actions .btn-delete:hover {
    background: var(--auo-danger) !important;
    color: #ffffff !important;
}
html .announce-item .announce-time .expire-tag {
    background: var(--auo-danger-soft) !important;
    color: var(--auo-danger) !important;
}

/* 置顶按钮 */
html .announce-item .announce-footer .announce-actions .btn-sticky {
    background: var(--auo-warning-soft) !important;
    color: var(--auo-warning) !important;
}
html .announce-item .announce-footer .announce-actions .btn-sticky:hover {
    background: var(--auo-warning) !important;
    color: #1e293b !important;
}
html .announce-item .announce-footer .announce-actions .btn-sticky.active {
    background: var(--auo-warning) !important;
    color: #1e293b !important;
}

/* ---------- 404 窗口标题栏（夜色玻璃下也要跟着变） ---------- */
html .auo-404-bar {
    background: var(--auo-titlebar) !important;
    border-bottom-color: var(--auo-border) !important;
}

/* ---------- 宝可梦稀有度徽章：深色下压一点亮度 ---------- */
html.auo-icons-night .pokemon-type-limited,
html.auo-dark .pokemon-type-limited {
    background: rgba(220, 38, 38, 0.16) !important;
    color: #fca5a5 !important;
}
html.auo-icons-night .pokemon-type-common,
html.auo-dark .pokemon-type-common {
    background: rgba(22, 163, 74, 0.16) !important;
    color: #86efac !important;
}
html.auo-icons-night .pokemon-type-battlepass,
html.auo-dark .pokemon-type-battlepass {
    background: rgba(217, 119, 6, 0.16) !important;
    color: #fcd34d !important;
}

/* ============================================================
   ⑰ 内容区保护区：Markdown 代码块 + 短代码渲染结果
   ------------------------------------------------------------
   这两类东西「不跟随皮肤」，理由：
   · 代码块有自己的 GitHub Dark 高亮配色（code-highlight.css），
     被皮肤变量染色后 token 对比度会崩，整块变成浅底浅字；
   · 短代码（[alert] [btn] [collapse] [quote] [tip] [imgbtn] …）
     由 AUOShortcode 自带一套 GitHub 提示块配色，被皮肤覆盖会变成四不像。
   这里只做「把皮肤规则挡回去」，不重新定义外观。
   ============================================================ */

/* ---------- 短代码里的链接 / 加粗：跟随容器色，不用皮肤的主色文字 ----------
   ★ 必须排除 sc-btn（[btn] 短代码的按钮），它有自己「蓝底白字」的配色，
     一旦被 inherit 成正文色，白字按钮会变成深色字，直接糊掉 */
html .article-content [class^="sc-"] a:not([class*="sc-btn"]),
html .article-content [class*=" sc-"] a:not([class*="sc-btn"]),
html .article-content .quote-card a,
html .article-content .quote-card strong,
html .article-content .quote-card em {
    color: inherit !important;
    text-decoration-color: currentColor;
}

/* 短代码里的加粗 / 强调：跟随容器色（否则深色皮肤会把浅底块里的加粗刷成浅色） */
html .article-content [class^="sc-"] strong,
html .article-content [class*=" sc-"] strong,
html .article-content [class^="sc-"] b,
html .article-content [class*=" sc-"] b,
html .article-content [class^="sc-"] em,
html .article-content [class*=" sc-"] em {
    color: inherit !important;
}

/* 短代码里的行内代码：浅淡的自身底，不用皮肤的 surface-3
   ★ 这里带 :not(pre code) 是为了把特异性拉到和 ⑤ 节的行内代码规则相同，
     再靠「后加载」取胜；否则深色下这块会变成「半透明浅底 + 浅字」 */
html .article-content [class^="sc-"] code,
html .article-content [class*=" sc-"] code,
html .article-content .quote-card code {
    background: rgba(15, 23, 42, 0.06) !important;
    color: inherit !important;
    border: 0 !important;
}

/* 折叠面板容器本身没写文字色，深色皮肤下会被继承成浅字，补成插件的深色 */
html .article-content .sc-collapse {
    color: #1f2328 !important;
}

/* 引用卡片是 blockquote，别被正文 blockquote 的皮肤规则改掉底色 */
html .article-content blockquote.quote-card {
    background: #f0f7ff !important;
    border-left-color: #2563eb !important;
    color: #475569 !important;
}
html .article-content blockquote.quote-card .quote-label { color: #64748b !important; }
html .article-content blockquote.quote-card .quote-title { color: #1d4ed8 !important; }
html .article-content blockquote.quote-card .quote-time { color: #64748b !important; }
html .article-content blockquote.quote-card .quote-body { color: #475569 !important; }
html .article-content blockquote.quote-card .quote-footer {
    color: #64748b !important;
    border-top-color: #dbe7f6 !important;
}
html .article-content blockquote.quote-card .quote-footer a { color: #1d4ed8 !important; }

/* ---------- 代码块内的一切都不参与皮肤 ----------
   注意：不能写 `pre * { background: transparent }`，
   那会把 diff 高亮（.tok-del / .tok-ins 的红绿底）一起抹掉。
   只把 code 这一层清干净就够了，token 自己的颜色由 code-highlight.css 管 */

/* 代码块里的链接也不能被染成亮蓝（有些语言会把 URL 高亮成 <a>） */
html .article-content pre a,
html .article-content pre a:visited,
html .article-content pre a:hover {
    color: inherit !important;
    text-decoration: none !important;
}

/* 代码块选中文字：用高亮色，否则深底上的默认选区看不见 */
html .article-content pre ::selection,
html .article-content pre::selection {
    background: #264f78;
    color: #ffffff;
}

/* 代码块横向滚动条跟 GitHub 一致，不跟皮肤 */
html .article-content pre::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 6px;
    border: 2px solid #0d1117;
}
html .article-content pre::-webkit-scrollbar-thumb:hover { background: #484f58; }
html .article-content pre::-webkit-scrollbar-track { background: transparent; }

/* ============================================================
   ⑱ 引用媒体迷你卡：番剧 / 音乐 / 短剧 / 书籍
   ------------------------------------------------------------
   `[quote=CID]` 引用到媒体文章时，插件会输出迷你卡片。
   这几个卡片里大量写死了浅色（内联 style 里 #f8fafc / #0f172a …），
   夜色玻璃下就变成「白卡片」或者「白底浅字」。
   内联样式没有 !important，所以用 !important 就能抢过来；
   选择器都限定在卡片容器内，不会波及其它内容。

   ★ 例外：.quote-card（引用块）是 ⑰ 明确保护的浅色区，
     它里面的卡片要维持浅色，所以最后一段再刷回去。
   ============================================================ */

/* ---------- 容器 ---------- */
html [id^="anime-card"],
html .music-mini-card,
html .drama-mini-card,
html .book-mini-card {
    background: var(--auo-surface-2) !important;
    border-color: var(--auo-border) !important;
}

/* ---------- 封面占位底 ---------- */
html [id^="anime-card"] [style*="background:#e2e8f0"],
html .drama-mini-card [style*="background:#e2e8f0"],
html .book-mini-cover { background: var(--auo-surface-3) !important; }

/* ---------- 标题 ---------- */
html [id^="anime-card"] [style*="color:#0f172a"],
html .drama-mini-card [style*="color:#0f172a"],
html .music-mini-title,
html .book-mini-title { color: var(--auo-text) !important; }

/* ---------- 次级文字（原名 / 原著 / 日期 / 点评） ---------- */
html [id^="anime-card"] [style*="color:#94a3b8"],
html [id^="anime-card"] [style*="color:#b9c2d0"],
html .drama-mini-card [style*="color:#94a3b8"],
html .drama-mini-card [style*="color:#b9c2d0"],
html .music-mini-meta,
html .book-mini-meta { color: var(--auo-text-3) !important; }

html [id^="anime-card"] [style*="color:#64748b"],
html [id^="anime-card"] [style*="color:#475569"],
html .drama-mini-card [style*="color:#64748b"],
html .drama-mini-card [style*="color:#475569"],
html .music-mini-artist,
html .book-mini-sub,
html .book-mini-comment-text { color: var(--auo-text-2) !important; }

/* ---------- EN / JP / 原著 小标签的浅底 ---------- */
html [id^="anime-card"] [style*="background:#f1f5f9"],
html .drama-mini-card [style*="background:#f1f5f9"] {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text-3) !important;
}


/* 卡片标题本身是链接（番剧 / 短剧 / 书籍）：保持与标题同色，
   不要被 ⑤ 节的正文链接色染成蓝色。
   ★ 末尾多挂一个 :not(.auo-keep-title) 只是为了把特异性抬到 (0,5,2)，
     这个类并不存在，不影响任何元素 */
html .article-content [style*="color:#0f172a"] a:not([class*="sc-btn"]):not(.imgbtn-trigger):not(.tip-wrap):not(.auo-keep-title),
html .post-item-excerpt [style*="color:#0f172a"] a:not([class*="sc-btn"]):not(.auo-keep-title),
html .article-content .book-mini-title a:not([class*="sc-btn"]):not(.imgbtn-trigger):not(.tip-wrap):not(.auo-keep-title),
html .post-item-excerpt .book-mini-title a:not([class*="sc-btn"]):not(.auo-keep-title) {
    color: inherit !important;
}

/* ---------- 空星 ---------- */
html [id^="anime-card"] [style*="color:#d1d5db"],
html .music-mini-stars .mini-star-empty,
html .book-mini-stars .mini-star-empty { color: var(--auo-border-2) !important; }

/* ---------- 音乐 / 书籍卡 ---------- */
html .music-mini-cover,
html .book-mini-cover {
    background: linear-gradient(135deg, var(--auo-cover-1, #eef2ff), var(--auo-cover-2, #dbeafe)) !important;
    color: var(--auo-accent-text) !important;
}
html .music-mini-comment,
html .book-mini-comment { color: var(--auo-text-3) !important; }
html .music-mini-comment:hover,
html .book-mini-comment:hover { color: var(--auo-accent-text) !important; }
html .book-mini-link { color: var(--auo-accent-text) !important; }

/* ============================================================
   ⑱-补 引用块（.quote-card）里恢复浅色
   —— 这一段必须放最后：特异性 (0,3,1) 高于上面的 (0,2,1)
   ============================================================ */
html .quote-card [id^="anime-card"],
html .quote-card .music-mini-card,
html .quote-card .drama-mini-card,
html .quote-card .book-mini-card {
    background: #f8fafc !important;
    border-color: #eef2ff !important;
}
html .quote-card [id^="anime-card"] [style*="background:#e2e8f0"],
html .quote-card .drama-mini-card [style*="background:#e2e8f0"],
html .quote-card .book-mini-cover { background: #e2e8f0 !important; }
html .quote-card [id^="anime-card"] [style*="color:#0f172a"],
html .quote-card .drama-mini-card [style*="color:#0f172a"],
html .quote-card .music-mini-title,
html .quote-card .book-mini-title { color: #0f172a !important; }
html .quote-card [id^="anime-card"] [style*="color:#94a3b8"],
html .quote-card [id^="anime-card"] [style*="color:#b9c2d0"],
html .quote-card .drama-mini-card [style*="color:#94a3b8"],
html .quote-card .drama-mini-card [style*="color:#b9c2d0"],
html .quote-card .music-mini-meta,
html .quote-card .book-mini-meta { color: #94a3b8 !important; }
html .quote-card [id^="anime-card"] [style*="color:#64748b"],
html .quote-card [id^="anime-card"] [style*="color:#475569"],
html .quote-card .drama-mini-card [style*="color:#64748b"],
html .quote-card .drama-mini-card [style*="color:#475569"],
html .quote-card .music-mini-artist,
html .quote-card .book-mini-sub,
html .quote-card .book-mini-comment-text { color: #64748b !important; }
html .quote-card [id^="anime-card"] [style*="background:#f1f5f9"],
html .quote-card .drama-mini-card [style*="background:#f1f5f9"] {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
}
html .quote-card .music-mini-cover,
html .quote-card .book-mini-cover {
    background: linear-gradient(135deg, #eef2ff, #dbeafe) !important;
    color: #3b82f6 !important;
}
html .quote-card [id^="anime-card"] [style*="color:#d1d5db"],
html .quote-card .music-mini-stars .mini-star-empty,
html .quote-card .book-mini-stars .mini-star-empty { color: #d1d5db !important; }

/* 引用块里的链接：⑤ 节的正文链接规则 (0,4,2) 会盖掉 ⑰ 的 inherit，
   深色皮肤下于是出现「浅蓝链接 + 浅底引用块」(2.0:1) —— 这里按 ⑤ 的结构补到 (0,5,2) */
html .article-content .quote-card a:not([class*="sc-btn"]):not(.imgbtn-trigger):not(.tip-wrap),
html .article-content .quote-card a:visited:not([class*="sc-btn"]):not(.imgbtn-trigger):not(.tip-wrap) {
    color: #1d4ed8 !important;
    text-decoration-color: rgba(29, 78, 216, 0.35);
}
html .article-content .quote-card a:hover:not([class*="sc-btn"]):not(.imgbtn-trigger):not(.tip-wrap) {
    color: #1e40af !important;
}

/* ============================================================
   ⑲ 页面模板统一（0.6.4）
   ------------------------------------------------------------
   目的：让「异色图鉴 / M85C / 关于 / 友链 / 评论 / 装备弹层」
   这些各写各的模板，在五套风格 + 黑夜下都用同一套颜色。

   做法仍然只改颜色，不动布局与交互：
     · 整页卡片的模板（异色图鉴 / M85C）把主容器接进皮肤；
     · 模板里剩下没被覆盖的浅底、浅描边补成变量。
   ============================================================ */

/* ---------- 异色图鉴：主容器 ---------- */
html .pokemon-container {
    background: var(--auo-surface) !important;
    border-color: var(--auo-border) !important;
    color: var(--auo-text) !important;
}
html .pokemon-status-bar {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text-2) !important;
}
html .pokemon-avatar {
    border-color: var(--auo-border-2) !important;
    color: var(--auo-text-2) !important;
}
/* 稀有度徽章：浅色下原来的 2.9~3.9:1 也偏虚，直接接到语义色上
   （夜色玻璃 / 黑夜有更亮的单独一套，见前面 ⑯ 节，特异性更高会赢） */
html .pokemon-type-limited {
    background: var(--auo-danger-soft) !important;
    /* 比 --auo-danger 再深一档：11px 小字压在同色浅底上，
       #dc2626 只有 4.41:1，差一点点 */
    color: #b91c1c !important;
}
html .pokemon-type-common {
    background: var(--auo-success-soft) !important;
    color: var(--auo-success) !important;
}
html .pokemon-type-battlepass {
    background: var(--auo-warning-soft) !important;
    color: var(--auo-warning) !important;
}
/* 「已拥有」徽章：原来浅绿底 + 中绿字只有 3:1 */
html .pokemon-badge {
    background: var(--auo-success-soft) !important;
    color: var(--auo-success) !important;
}
html .pokemon-badge.missing {
    background: var(--auo-surface-3) !important;
    color: var(--auo-text-3) !important;
}

/* ---------- M85C：主容器与信息行 ---------- */
html .m85c-page-main {
    background: var(--auo-surface) !important;
    border-color: var(--auo-border) !important;
    color: var(--auo-text) !important;
}
html .m85c-info-row { color: var(--auo-text-2) !important; }
html .m85c-records-header { color: var(--auo-text) !important; }
html .m85c-title { border-bottom-color: var(--auo-border) !important; }
html .m85c-hero-img { border-bottom-color: var(--auo-border-2) !important; }

/* ---------- 关于页 / 友链 / 评论 / 装备弹层：剩下的浅描边 ---------- */
html .specs-grid { border-color: var(--auo-border) !important; }
html .link-card .link-url { border-top-color: var(--auo-border) !important; }
html .comments-area { border-top-color: var(--auo-border) !important; }
html .equip-modal-row { border-bottom-color: var(--auo-border) !important; }
html .equip-modal-image,
html .equip-modal-close { border-color: var(--auo-border-2) !important; }

/* ============================================================
   ⑳ 黑夜模式：桌面本体（小组件 / App 图标）
   ------------------------------------------------------------
   「图标风格」（html.auo-xxx）和「黑夜」（html.auo-dark）是两条独立的轴：
   desktop.css 只按风格写了四套桌面配色，完全没考虑黑夜。
   于是「纯白极简 + 黑夜」时，小组件和图标还是白底，压在全黑背景上。

   这里只补这两块，并且用 :not(.auo-icons-night) 把夜色玻璃排除在外 ——
   夜色玻璃本来就是深色，本身已经调好，不去动它。
   ============================================================ */
html.auo-dark:not(.auo-icons-night) .desktop-widget {
    background: var(--auo-surface) !important;
    background-image: none !important;
    border-color: var(--auo-border) !important;
    box-shadow: var(--auo-shadow) !important;
    color: var(--auo-text) !important;
}
html.auo-dark:not(.auo-icons-night) .desktop-widget .dt-gregorian,
html.auo-dark:not(.auo-icons-night) .desktop-widget .dt-clock,
html.auo-dark:not(.auo-icons-night) .desktop-widget .weather-temp,
html.auo-dark:not(.auo-icons-night) .desktop-widget .holiday-widget-title,
html.auo-dark:not(.auo-icons-night) .desktop-widget .profile-widget-name {
    color: var(--auo-text) !important;
}
html.auo-dark:not(.auo-icons-night) .desktop-widget .dt-lunar,
html.auo-dark:not(.auo-icons-night) .desktop-widget .dt-sec,
html.auo-dark:not(.auo-icons-night) .desktop-widget .weather-desc,
html.auo-dark:not(.auo-icons-night) .desktop-widget .weather-extra,
html.auo-dark:not(.auo-icons-night) .desktop-widget .weather-loading,
html.auo-dark:not(.auo-icons-night) .desktop-widget .profile-widget-tagline {
    color: var(--auo-text-3) !important;
}

html.auo-dark:not(.auo-icons-night) .desktop-apps .app-icon-box {
    background: var(--auo-surface-2) !important;
    background-image: none !important;
    color: var(--auo-accent) !important;
    border-color: var(--auo-border) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}
