/* Shared site surfaces; scoped specificity protects against legacy theme rules. */
html body{background:#fdfdfd;color:#222222}
html body .gwy-topbar{background:linear-gradient(120deg,#2563eb,#2563eb)!important;border-bottom:1px solid rgba(15,23,42,.08)!important}
html body .gwy-topbar a.gwy-tb-brand{color:#ffffff!important}
html body .gwy-topbar .gwy-tb-menu a,html body .gwy-account{color:#ffffff!important}
html body .gwy-topbar .gwy-tb-menu a.on{background:#2563eb!important;color:#fff!important}
html body .gwy-topbar a:hover{color:#dbeafe!important}
html body .gwy-drawer a{color:#222222!important}
#cgyd-search-files{display:none!important}
html body #cgyd-materials-app .mat-categories button{border-radius:14px!important;background:#ffffff!important;border:1px solid #cbd5e1!important;color:#222222!important;box-shadow:none!important;transform:none!important}
html body #cgyd-materials-app .mat-categories button.active{background:#2563eb!important;border-color:#2563eb!important;color:#fff!important}
html body #cgyd-materials-app .mat-categories small{color:#555555!important}
html body #cgyd-materials-app .mat-hero h1{color:#222222!important;background:none!important;-webkit-text-fill-color:#222222!important}
html body #cgyd-materials-app .mat-browser{display:block!important}
html body #cgyd-materials-app .mat-browser aside,html body #cgyd-materials-app #mat-dir-toggle{display:none!important}
html body #cgyd-materials-app .mat-folder{border-radius:0!important;background:transparent!important;color:#222222!important;box-shadow:none!important;transform:none!important;text-align:left!important}
html body #cgyd-materials-app .mat-folder:hover{background:#f2f2f2!important}
html body #cgyd-materials-app .mat-children{margin-left:18px!important;padding-left:10px;border-left:1px solid #cbd5e1}
html body #cgyd-materials-app .mat-level{margin-left:0!important}
html body #cgyd-materials-app .mat-btn,html body #cgyd-materials-app .mat-search button{border-radius:9px!important;color:#fff!important;background:#2563eb!important}
html body #cgyd-materials-app .mat-btn.ghost{background:#e8ecf2!important;color:#2563eb!important}
html body #cgyd-materials-app .mat-copy strong{white-space:normal;overflow-wrap:anywhere}
html body #cgyd-materials-app .mat-copy small{white-space:normal;overflow-wrap:anywhere}
html body .gwy-tools{background:#fdfdfd!important;color:#222222!important;border-radius:18px;overflow:hidden}
html body .gwy-tools .hd,html body .gwy-header,html body .cgyd-ux-start{background:linear-gradient(120deg,#2563eb,#0891b2)!important;border:1px solid rgba(15,23,42,.08)!important;border-radius:18px!important;color:#ffffff!important;padding:28px!important}
html body .gwy-tools .card,html body .gwy-tools .sec,html body .gwy-card,html body .gwy-box,html body .cgyd-home-sec,html body .forum-posts{background:#ffffff!important;border:1px solid #cbd5e1!important;border-radius:14px!important;color:#222222!important;box-shadow:none!important}
html body .gwy-tools .cat-h{color:#222222!important;border-color:#cbd5e1!important}
html body .gwy-tools .card p,html body .gwy-card p{color:#475569!important}
html body .gwy-card a,html body .gwy-box a,html body .forum-title a{color:#2563eb!important}
html body .gwy-header h1,html body .gwy-header h2{color:#ffffff!important}
html body .gwy-tools a{color:#2563eb}
html body .gwy-tools h1,html body .gwy-tools h2,html body .gwy-tools h3{color:#222222!important}
html body .cgyd-grade-card{display:none!important}
.mat-collapse-all{border:1px solid rgba(15,23,42,.15)!important;background:#e8ecf2!important;border-radius:8px!important;color:#222222!important;padding:9px 14px!important;cursor:pointer}
@media(max-width:820px){html body #cgyd-materials-app .mat-children{margin-left:10px!important;padding-left:6px}html body #cgyd-materials-app .mat-folder{min-height:60px;grid-template-columns:32px minmax(0,1fr) 40px!important;gap:8px}html body #cgyd-materials-app .mat-content{padding:12px!important}.mat-categories button{min-height:76px}.mat-accordion-list .mat-file{padding:12px 4px}.gwy-tools{margin:0!important}html body .gwy-topbar .gwy-account{max-width:115px}.mat-head{gap:10px}.mat-head h2{font-size:18px}}

/* ===== [light9] 全站系统性对比度修复 ===== */
/* 模块页 hero 渐变头：标题白字、副标题半透明白 */
html body>div.header h1{color:#ffffff!important;-webkit-text-fill-color:#ffffff!important}
html body>div.header .sub,html body>div.header>div.sub,html body>div.header p.sub{color:rgba(255,255,255,.88)!important;-webkit-text-fill-color:rgba(255,255,255,.88)!important}
/* 顶部公告横条（about/https 等） */
html body div.top>div.w>p{color:rgba(255,255,255,.92)!important}
/* active 标签/筛选/预设：统一品牌蓝底白字 */
html body span.tab.active,html body span.tab.on,html body span.filter-btn.active,html body span.preset-btn.active,html body button.sub-tab.active,html body button.tab.on,html body div.tabs>span.tab.active,html body div.ctrl-bar div.tabs span.tab.active{background:#2563eb!important;background-image:none!important;color:#ffffff!important;-webkit-text-fill-color:#ffffff!important}
html body #sub-tabs button.sub-tab.active .tp{color:#ffffff!important;-webkit-text-fill-color:#ffffff!important}
/* 主按钮统一品牌蓝 */
html body #gwy-setup button.btn-start,html body #cgyd-submit-v4,html body #essay a.btn-start,html body #interview a.btn-start,html body div.add-box button.btn.btn-add,html body #list a.btn-online,html body #btn-custom,html body #mock-area .mock-start button.btn-start{background:#2563eb!important;background-image:none!important;color:#ffffff!important;-webkit-text-fill-color:#ffffff!important}
html body #startBtn,html body #checkin-btn{background:#15803d!important;background-image:none!important;color:#ffffff!important;-webkit-text-fill-color:#ffffff!important}
html body .plans div.plan.perm button.btn{background:#b45309!important;background-image:none!important}
@media (prefers-color-scheme: light){html body .pay-area .step-info .ok{color:#047857!important}}
/* 青色小标签/强调文字加深 */
@media (prefers-color-scheme: light){html body #topic-tag,html body #question .req-tag,html body #btnRandom,html body #grid div.card .pinyin,html body #content div.word-card .p,html body #info b,html body #list div.pair-card .pair-word.w2,html body .ln span.tag.t-key,html body div.wrap div.date-bar b{color:#0e7490!important}}
/* 蓝底标签白字 */
html body #q-tag,html body #daily-card div.card-tag{color:#ffffff!important;-webkit-text-fill-color:#ffffff!important}
/* 搜索悬浮球 */
html body #cgyd-search-fab{background:#2563eb!important;background-image:none!important}
/* question-bank 申论横幅 */
html body #xc-to-essay div div div,html body #xc-to-essay span{color:#ffffff!important;-webkit-text-fill-color:#ffffff!important}
html body #xc-to-essay a.btn.mini{background:#2563eb!important;background-image:none!important}
/* knowledge 指南渐变条 */
html body .guide .g-title,html body .guide span,html body .guide b{color:#ffffff!important;-webkit-text-fill-color:#ffffff!important}
html body #tabs button.tab.on{background:#2563eb!important;background-image:none!important;color:#ffffff!important}
html body #tabs button.tab.on i{color:#ffffff!important}
/* interview 主按钮 */
html body .iv-btn.iv-btn-primary{background:#2563eb!important;background-image:none!important;color:#ffffff!important;-webkit-text-fill-color:#ffffff!important}
/* writing 页 AI chip */
html body .xp-ai-head .xp-ai-chip{color:#ffffff!important;-webkit-text-fill-color:#ffffff!important}
/* quiz 设置面板灰字加深 */
html body #gwy-setup .setup-kicker,html body #gwy-setup .setup-tip,html body #gwy-setup .setup-count,html body #gwy-resume-hint .setup-tip{color:#555555!important}

/* ===== 深色模式: 跟随系统 ===== *//* ===== 深色模式: 跟随系统（原深色主题全量保留） ===== */
@media (prefers-color-scheme: dark){/* Shared site surfaces; scoped specificity protects against legacy theme rules. */
html body{background:#1a1a1a;color:#e6e6e6}
html body .gwy-topbar{background:#101723!important;border-bottom:1px solid #383838!important}
html body .gwy-topbar a.gwy-tb-brand{color:#e6e6e6!important}
html body .gwy-topbar .gwy-tb-menu a,html body .gwy-account{color:#dbeafe!important}
html body .gwy-topbar .gwy-tb-menu a.on{background:#2563eb!important;color:#fff!important}
html body .gwy-topbar a:hover{color:#fff!important}
html body .gwy-drawer a{color:#e6e6e6!important}
#cgyd-search-files{display:none!important}
html body #cgyd-materials-app .mat-categories button{border-radius:14px!important;background:#272727!important;border:1px solid #383838!important;color:#e6e6e6!important;box-shadow:none!important;transform:none!important}
html body #cgyd-materials-app .mat-categories button.active{background:#162d49!important;border-color:#38bdf8!important}
html body #cgyd-materials-app .mat-categories small{color:#b4b4b4!important}
html body #cgyd-materials-app .mat-hero h1{color:#e6e6e6!important;background:none!important;-webkit-text-fill-color:#e6e6e6!important}
html body #cgyd-materials-app .mat-browser{display:block!important}
html body #cgyd-materials-app .mat-browser aside,html body #cgyd-materials-app #mat-dir-toggle{display:none!important}
html body #cgyd-materials-app .mat-folder{border-radius:0!important;background:transparent!important;color:#e6e6e6!important;box-shadow:none!important;transform:none!important;text-align:left!important}
html body #cgyd-materials-app .mat-folder:hover{background:#2e2e2e!important}
html body #cgyd-materials-app .mat-children{margin-left:18px!important;padding-left:10px;border-left:1px solid #383838}
html body #cgyd-materials-app .mat-level{margin-left:0!important}
html body #cgyd-materials-app .mat-btn,html body #cgyd-materials-app .mat-search button{border-radius:9px!important;color:#fff!important;background:#2563eb!important}
html body #cgyd-materials-app .mat-btn.ghost{background:#2e2e2e!important;color:#bae6fd!important}
html body #cgyd-materials-app .mat-copy strong{white-space:normal;overflow-wrap:anywhere}
html body #cgyd-materials-app .mat-copy small{white-space:normal;overflow-wrap:anywhere}
html body .gwy-tools{background:#1a1a1a!important;color:#e6e6e6!important;border-radius:18px;overflow:hidden}
html body .gwy-tools .hd,html body .gwy-header,html body .cgyd-ux-start{background:linear-gradient(120deg,#17243a,#123040)!important;border:1px solid #383838!important;border-radius:18px!important;color:#e6e6e6!important;padding:28px!important}
html body .gwy-tools .card,html body .gwy-tools .sec,html body .gwy-card,html body .gwy-box,html body .cgyd-home-sec,html body .forum-posts{background:#272727!important;border:1px solid #383838!important;border-radius:14px!important;color:#e6e6e6!important;box-shadow:none!important}
html body .gwy-tools .cat-h{color:#e6e6e6!important;border-color:#383838!important}
html body .gwy-tools .card p,html body .gwy-card p{color:#b4b4b4!important}
html body .gwy-card a,html body .gwy-box a,html body .forum-title a{color:#bae6fd!important}
html body .gwy-header h1,html body .gwy-header h2{color:#e6e6e6!important}
html body .gwy-tools a{color:#bae6fd}
html body .gwy-tools h1,html body .gwy-tools h2,html body .gwy-tools h3{color:#e6e6e6!important}
html body .cgyd-grade-card{display:none!important}
.mat-collapse-all{border:1px solid #475569!important;background:#17243a!important;border-radius:8px!important;color:#dbeafe!important;padding:9px 14px!important;cursor:pointer}
@media(max-width:820px){html body #cgyd-materials-app .mat-children{margin-left:10px!important;padding-left:6px}html body #cgyd-materials-app .mat-folder{min-height:60px;grid-template-columns:32px minmax(0,1fr) 40px!important;gap:8px}html body #cgyd-materials-app .mat-content{padding:12px!important}.mat-categories button{min-height:76px}.mat-accordion-list .mat-file{padding:12px 4px}.gwy-tools{margin:0!important}html body .gwy-topbar .gwy-account{max-width:115px}.mat-head{gap:10px}.mat-head h2{font-size:18px}}
}


/* ===== [v26-light20] 浅色对比度修复 (2026-10-02) — 仅浅色模式生效，深色模式走上方媒体查询 ===== */
@media (prefers-color-scheme: light){
/* 顶栏：统一品牌蓝实底白字（压过 WP 动态页 csscode 的冲淡渐变） */
html body header.gwy-topbar.gwy-topbar{background:#2563eb!important;background-image:linear-gradient(120deg,#2563eb,#2563eb)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html body header.gwy-topbar.gwy-topbar .gwy-tb-menu a,html body header.gwy-topbar.gwy-topbar a.gwy-tb-brand,html body header.gwy-topbar.gwy-topbar .gwy-account{color:#ffffff!important}
html body header.gwy-topbar.gwy-topbar .gwy-tb-menu a.on{background:rgba(255,255,255,.18)!important;color:#ffffff!important}
html body header.gwy-topbar.gwy-topbar .gwy-account{border:1px solid rgba(255,255,255,.55)!important;border-radius:999px!important}
html body header.gwy-topbar.gwy-topbar .gwy-tb-menu a:hover,html body header.gwy-topbar.gwy-topbar a.gwy-tb-brand:hover{color:#dbeafe!important}
/* 首页/会员页 hero 文字（浅底上原本是白字） */
html body .cgyd-portal-hero .cgyd-ph-name{color:#222222!important;-webkit-text-fill-color:#222222!important;background:none!important}
html body .cgyd-portal-hero .cgyd-ph-name .cgyd-ph-accent,html body .cgyd-ph-accent{color:#2563eb!important;-webkit-text-fill-color:#2563eb!important;background:none!important}
html body .cgyd-portal-hero .cgyd-ph-tagline{color:#475569!important}
/* 顶部子导航 / 分类条 / 返回链接 */
html body #gwy-subnav a{color:#383838!important}
html body #gwy-subnav .gwy-subnav-tag{color:#555555!important}
html body #gwy-catbar a{color:#383838!important;background:#f2f2f2!important}
html body #gwy-catbar a.cur{color:#2563eb!important;background:#e0e9ff!important}
html body a.back-link{color:#383838!important}
/* 考试模块页 intro / FAQ */
html body .mod-intro .mi-t,html body .mod-faq .mf-t{color:#222222!important}
html body .mod-intro,html body .mod-intro p,html body .mod-faq .mf-a{color:#475569!important}
html body #mi-total{color:#2563eb!important}
html body .mod-faq summary{color:#222222!important}
/* 题库统计 / 索引 / 计数 */
html body #stats .stat .v{color:#1e3a8a!important}
html body .mod-index summary{color:#2563eb!important}
html body .ccount b{color:#2563eb!important}
html body #s1,html body #s2,html body #s4,html body #pc{color:#2563eb!important}
/* 申论页标题 / 字数 / 空态 */
html body #page-title,html body .header h1{color:#222222!important}
html body #word-count,html body #empty-fav{color:#555555!important}
html body .tabs .tab.active{color:#ffffff!important}
/* 会员购买页标题区（白字贴浅底） */
html body .wrap>div.hd h1,html body .wrap>div.hd p,html body .wrap>div.hd .tag,html body .wrap>div.hd .tag b,html body .wrap>.hd h1,html body .wrap>.hd p,html body .wrap>.hd .tag,html body .wrap>.hd .tag b{color:#222222!important}
html body .tip-row span{color:#475569!important}
/* 刷题"练习设置"面板（quiz.js 内嵌深底） */
html body #gwy-setup{background:#ffffff!important;color:#222222!important}
html body #gwy-setup .setup-chips .chip{background:#f2f2f2!important;color:#383838!important}
html body #gwy-setup .setup-chips .chip.on{background:#2563eb!important;color:#ffffff!important}
html body #filters .f.on{background:#2563eb!important;color:#ffffff!important}
/* 面试技巧提示 */
html body .iv-fw-hint{color:#0c4a6e!important}
/* 工具页 page310 深色卡片残留 */
html body #card-fc{background:#ffffff!important;color:#222222!important}
html body #card-fc>h3,html body #card-fc>h3>span{color:#222222!important;background:transparent!important}
html body #card-fc>p{color:#475569!important;background:transparent!important}
html body #cat-memory .grid .card,html body #cat-time .grid .card,html body #cat-news .grid .card,html body #cat-xc .grid .card{background:#ffffff!important;border:1px solid #e6e6e6!important;color:#222222!important}
html body #cat-memory .grid .card>p,html body #cat-time .grid .card>p,html body #cat-news .grid .card>p,html body #cat-xc .grid .card>p{color:#475569!important}
/* 工具/资料页 link-item 深底残留 */
html body .link-item{background:#f2f2f2!important;color:#222222!important}
/* 琥珀色文字加深（时间线/月卡标题/新闻标签/提示词） */
html body .tl-date,html body .month-title,html body .news-item .ntag,html body .tips b,html body .article .tips b,html body .source b,html body .distinction b,html body .tip-box>b{color:#b45309!important}
html body .material-grid span.tag{color:#b45309!important}
/* 链接与强调色加深 */
html body .info-box strong,html body .info-box>strong{color:#0e7490!important}
html body .foot a{color:#2563eb!important}
html body #pls>div{color:#555555!important}
/* 顶栏内层容器透明化（csscode 给 .gwy-tb-inner 套了不透明白底，盖住品牌蓝） */
html body header.gwy-topbar .gwy-tb-inner{background:transparent!important;background-image:none!important}
html body header.gwy-topbar .gwy-tb-menu{background:transparent!important;background-image:none!important}
html body header.gwy-topbar a.gwy-tb-brand,html body header.gwy-topbar .gwy-account{background:transparent!important;background-image:none!important}
html body header.gwy-topbar .gwy-tb-menu li{background:transparent!important}
/* quiz.js 练习设置面板内部浅蓝文字 */
html body #gwy-setup .setup-title{color:#222222!important}
html body #gwy-setup .setup-count,html body #gwy-setup .setup-prog .ptxt{color:#555555!important}
html body #gwy-setup .setup-row,html body #gwy-setup .setup-row label,html body #gwy-setup .setup-row *{color:#383838!important}
html body #gwy-setup .setup-chips .chip.on *{color:#ffffff!important}
html body #gwy-resume-hint .btn-resume{background:#b45309!important;color:#ffffff!important;border-color:#b45309!important}
/* tools 页 page310 卡片标题/徽章（深色文字残留） */
html body #cat-memory .grid .card h3,html body #cat-time .grid .card h3,html body #cat-news .grid .card h3,html body #cat-xc .grid .card h3,html body #card-fc h3{color:#222222!important}
html body #cat-memory .grid .card .badge,html body #cat-time .grid .card .badge,html body #cat-news .grid .card .badge,html body #cat-xc .grid .card .badge,html body #card-fc>div.badge{color:#2563eb!important}
/* 计时器/学习计划周标题琥珀色加深 */
html body #timer,html body .week-title{color:#b45309!important}
/* back-link 统一白药丸（考试页原为深色半透明底） */
html body a.back-link{background:#ffffff!important;background-image:none!important;color:#2563eb!important;border:1px solid #e6e6e6!important;box-shadow:0 1px 3px rgba(15,23,42,.08)!important}
/* ===== 首页浅色精修 (light7): 统一入口卡片网格 ===== */
html body .cgyd-portal-grid .cgyd-pcard{background:#ffffff!important;border:1px solid #e8eef6!important;border-radius:16px!important;box-shadow:0 1px 2px rgba(15,23,42,.04)!important;padding:22px 20px!important;transition:box-shadow .18s ease,transform .18s ease,border-color .18s ease}
html body .cgyd-portal-grid .cgyd-pcard:hover{box-shadow:0 10px 28px rgba(37,99,235,.13)!important;border-color:#bfdbfe!important;transform:translateY(-2px)}
html body .cgyd-portal-grid .cgyd-pcard-ai{background:linear-gradient(180deg,#f2f6ff,#ffffff)!important;border-color:#d8e5ff!important}
html body .cgyd-portal-grid .cgyd-pc-title{color:#222222!important;font-weight:700!important;font-size:17px!important}
html body .cgyd-portal-grid .cgyd-pc-sub{color:#555555!important;line-height:1.7!important}
html body .cgyd-portal-grid .cgyd-pc-arrow{color:#2563eb!important;font-weight:600!important}
html body .cgyd-portal-grid .cgyd-pc-badge-ai{background:#2563eb!important;color:#fff!important;border-radius:999px!important;font-size:11px!important;font-weight:700!important;padding:2px 9px!important;letter-spacing:.5px}
/* row1 4列 / row2 2列，网格对齐 */
html body .cgyd-portal-grid .cgyd-pg-row1{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:18px!important}
html body .cgyd-portal-grid .cgyd-pg-row2{display:grid!important;grid-template-columns:1fr 1fr!important;gap:18px!important;margin-top:18px!important}
@media(max-width:900px){html body .cgyd-portal-grid .cgyd-pg-row1{grid-template-columns:1fr 1fr!important}html body .cgyd-portal-grid .cgyd-pg-row2{grid-template-columns:1fr!important}}
@media(max-width:560px){html body .cgyd-portal-grid .cgyd-pg-row1{grid-template-columns:1fr!important}}
/* 报考指南横条卡片化 */
html body .cgyd-portal-grid>div:last-child{background:#ffffff!important;border:1px solid #e8eef6!important;border-radius:14px!important;padding:15px 22px!important;margin-top:18px!important}
html body .cgyd-portal-grid>div:last-child a{color:#2563eb!important;font-weight:600!important}
/* 快速入口三件套统一白底蓝调 */
html body .cgyd-ph-daily{gap:12px!important;margin-top:16px!important}
html body .cgyd-ph-daily .cgyd-ph-outline{background:#ffffff!important;border:1px solid #dbe7ff!important;color:#2563eb!important;border-radius:12px!important;font-weight:600!important;transition:background .15s ease,border-color .15s ease}
html body .cgyd-ph-daily .cgyd-ph-outline:hover{background:#f0f5ff!important;border-color:#93c5fd!important}
/* hero 微调 */
html body .cgyd-ph-badge{background:#ffffff!important;color:#2563eb!important;border:1px solid #dbe7ff!important;border-radius:999px!important;font-weight:600!important}
html body .cgyd-ph-primary{box-shadow:0 8px 22px rgba(37,99,235,.32)!important;transition:box-shadow .18s ease,transform .18s ease}
html body .cgyd-ph-primary:hover{box-shadow:0 10px 26px rgba(37,99,235,.42)!important;transform:translateY(-1px)}
html body .cgyd-ph-newbie{margin-top:18px!important}
html body .cgyd-ph-newbie .cgyd-ph-nb-txt{color:#555555!important}
html body .cgyd-ph-newbie .cgyd-ph-nb-a{color:#2563eb!important;font-weight:600!important}
html body .cgyd-ph-ai-note{color:#b4b4b4!important}
/* 内容区与页面底色分层：首页文章容器白底 */
html body.home article.main-bg{background:#ffffff!important;border:1px solid #f2f2f2!important}
/* CTA 主按钮文字/图标强制白色（转换器误翻深色，浅色模式下深字贴蓝底） */
html body .cgyd-portal-hero .cgyd-ph-primary .cgyd-ph-label,
html body .cgyd-portal-hero .cgyd-ph-primary .cgyd-ph-ico{color:#ffffff!important;-webkit-text-fill-color:#ffffff!important}
html body .cgyd-portal-hero .cgyd-ph-primary svg{stroke:#ffffff!important}
}

/* ===== [dark9] 深色模式补充修复 ===== */
@media (prefers-color-scheme: dark){
html body #gwy-catbar .cb-cap{color:#8fa3bf!important}
html body #sub-tabs button.sub-tab.active,html body #sub-tabs button.sub-tab.active .tp{background:#2563eb!important;background-image:none!important;color:#ffffff!important;-webkit-text-fill-color:#ffffff!important}
html body #gwy-setup .chip.on{background:#2563eb!important}
html body .iv-progress-bar .label,html body .q-meta span,html body div.container p.note,html body div.wrap>p.sub{color:#b4b4b4!important}
html body a.platform-card span.icon{color:#93c5fd!important}
html body span.tab.active,html body span.tab.on,html body span.filter-btn.active,html body span.preset-btn.active,html body button.sub-tab.active,html body div.tabs>span.tab.active,html body div.ctrl-bar div.tabs span.tab.active{background:#2563eb!important;background-image:none!important;color:#ffffff!important}
html body #startBtn,html body #checkin-btn{background:#15803d!important;background-image:none!important}
html body div.wrap div.guide span,html body div.wrap div.guide .g-title,html body div.wrap div.guide b{color:#ffffff!important;-webkit-text-fill-color:#ffffff!important}
}

/* ===== [light10] 收尾修复 (2026-10-02) ===== */
@media (prefers-color-scheme: light){
html body div.wrap div.guide span,html body div.wrap div.guide .g-title,html body div.wrap div.guide b{color:#1e40af!important;-webkit-text-fill-color:#1e40af!important}
}
@media (prefers-color-scheme: dark){
html body main>div.toolbar a,html body main div.toolbar>a{color:#93c5fd!important}
html body #sign-in form div.box-body button.but.radius{background:#2563eb!important;background-image:none!important;color:#ffffff!important;-webkit-text-fill-color:#ffffff!important}
}
html body .xp-ai-head .xp-ai-chip{background-image:linear-gradient(135deg,#0e7490,#4f46e5)!important}

/* ===== [light11] 微调 (2026-10-02) ===== */
@media (prefers-color-scheme: light){
html body #daily-card .card-tag,html body #daily-card span.card-tag{color:#ffffff!important;-webkit-text-fill-color:#ffffff!important}
}

/* ===== [light12] 题库页 AI 批改横幅 CTA 化 (2026-10-02 用户反馈) ===== */
html body #xc-to-essay{background:linear-gradient(135deg,#2563eb 0%,#4f46e5 100%)!important;background-image:linear-gradient(135deg,#2563eb 0%,#4f46e5 100%)!important;border:1px solid rgba(255,255,255,.28)!important;box-shadow:0 4px 14px rgba(37,99,235,.25)!important}
html body #xc-to-essay div div div:first-child{color:#ffffff!important;-webkit-text-fill-color:#ffffff!important}
html body #xc-to-essay div div div:last-child{color:rgba(255,255,255,.92)!important;-webkit-text-fill-color:rgba(255,255,255,.92)!important}
html body #xc-to-essay a.btn.mini{background:#ffffff!important;background-image:none!important;color:#2563eb!important;-webkit-text-fill-color:#2563eb!important;font-weight:700}

/* ===== [light13] 全站调色板统一：纯跟随系统，无手动切换 (2026-10-02) ===== */
/* 浅色: 底#fdfdfd 正文#222222 辅助#555555 卡#ffffff 边#e5e7eb */
html body{
  --bg:#fdfdfd;--card:#ffffff;--card2:#f2f2f2;--card-hover:#f4f4f4;--hover:#f0f0f0;
  --txt:#222222;--text:#222222;--sub:#555555;--text-dim:#555555;--dim:#555555;--text-secondary:#555555;
  --bd:#e5e7eb;--bd2:#f0f0f0;--border:#e5e7eb;--border-color:#e5e7eb;--line:#e5e7eb;--border-hi:#cbd5e1;
  --bg-primary:#fdfdfd;--bg-secondary:#ffffff;--bg-tertiary:#f2f2f2;
  --text-primary:#222222;--card-bg:#ffffff;
  background-color:#fdfdfd!important;color:#222222!important;
}
/* 深色: 底#1a1a1a 正文#e6e6e6 辅助#b4b4b4 卡#272727 边#383838 */
@media (prefers-color-scheme: dark){
html body{
  --bg:#1a1a1a;--card:#272727;--card2:#2e2e2e;--card-hover:#303030;--hover:#333333;
  --txt:#e6e6e6;--text:#e6e6e6;--sub:#b4b4b4;--text-dim:#b4b4b4;--dim:#b4b4b4;--text-secondary:#b4b4b4;
  --bd:#383838;--bd2:#2f2f2f;--border:#383838;--border-color:#383838;--line:#383838;--border-hi:#4b5563;
  --bg-primary:#1a1a1a;--bg-secondary:#272727;--bg-tertiary:#2e2e2e;
  --text-primary:#e6e6e6;--card-bg:#272727;
  background-color:#1a1a1a!important;color:#e6e6e6!important;
}
}

/* ===== [light14] 调色板回归修正 (2026-10-02) ===== */
@media (prefers-color-scheme: light){
html body .gwy-tools{background:#fdfdfd!important}
html body .cgyd-portal-hero .cgyd-ph-ai-note{color:#555555!important}
html body #gwy-setup,html body #gwy-resume-hint{background:#ffffff!important;border-color:#e5e7eb!important}
html body .badge.badge-国考,html body .tag.tag-真题,html body .tag.t-warn{color:#dc2626!important}
html body .tag.t-tip{color:#15803d!important}
}
@media (prefers-color-scheme: dark){
html body #gwy-setup,html body #gwy-resume-hint{background:#272727!important;border-color:#383838!important}
html body #gwy-setup .setup-kicker,html body #gwy-setup .setup-tip,html body #gwy-setup .setup-count,html body #gwy-resume-hint .setup-tip{color:#b4b4b4!important}
html body .cgyd-portal-hero .cgyd-ph-ai-note{color:#b4b4b4!important}
html body div.card a,html body div.w>div.card a,html body #forum ul li a,html body .container .footer a{color:#93c5fd!important}
html body div.container>div.footer{color:#b4b4b4!important}
html body #info>b,html body #content div.word-card div.p,html body #grid div.card div.pinyin,html body #list div.pair-card .pair-word.w2,html body #btnRandom,html body div.date-bar>b,html body div.card div.ln span.tag.t-key{color:#22d3ee!important}
html body .badge.badge-国考,html body .tag.tag-真题,html body .tag.t-warn{color:#f87171!important}
html body .tag.t-tip{color:#4ade80!important}
html body div.w>div.alert{background:#26211c!important;border-color:#4a3a28!important;color:#f0c98a!important}
html body div.w>div.alert b{color:#f5b95f!important}
}

/* ===== [light15] 调色板收尾修正 (2026-10-02) ===== */
@media (prefers-color-scheme: light){
/* 深底块（浅色模式下的深色卡片）文字保持浅色 */
html body div.wrap div.section a.link-item,html body div.wrap div.section div.link-item{color:#e6e6e6!important}
html body .link-item b,html body .link-item strong{color:#f0f0f0!important}
}
@media (prefers-color-scheme: dark){
html body a.btn.primary,html body .btn.primary,html body #emptyBox .card.empty .acts a.btn.primary{color:#ffffff!important;-webkit-text-fill-color:#ffffff!important}
}
/* ===== [light16] 最终收尾 (2026-10-02) ===== */

@media (prefers-color-scheme: light){
/* 浅色模式下的深底容器（guide 页官网链接块等）文字浅色 */
html body div.wrap div.section>div:not([class]){color:#e6e6e6!important}
html body div.wrap div.section>div:not([class]) b{color:#f0f0f0!important}
}
/* ===== [light17] AA 对比度补强：全站 token 统一 + 实心件 + 定向修复 (2026-10-02) ===== */
/* 站点各页自带 :root 定义；自定义属性可继承，body 上的定义优先于 html(:root)，故在此统一收口 */
html body{
--bg:#fdfdfd;--bg2:#f2f2f2;--bg3:#f2f2f2;--bg-2:#f2f2f2;
--bg-primary:#fdfdfd;--bg-secondary:#ffffff;--bg-tertiary:#f2f2f2;
--card:#ffffff;--card-bg:#ffffff;--card2:#f2f2f2;--card-hover:#f2f2f2;
--text:#222222;--txt:#222222;--tx:#222222;--text-primary:#222222;--text-main:#222222;
--text-dim:#555555;--text-secondary:#555555;--dim:#555555;--sub:#555555;--muted:#555555;
--line:#e5e7eb;--border:#e5e7eb;--bd:#e5e7eb;
--accent1:#2563eb;--accent2:#0e7490;--accent3:#b45309;--accent4:#be123c;--accent5:#15803d;
--pri:#2563eb;--pri2:#2563eb;--p:#2563eb;--blue:#2563eb;--brand:#2563eb;--brand2:#4f46e5;
--teal:#0f766e;--cyan:#0e7490;--amber:#b45309;--orange:#b45309;--purple:#7e22ce;
--red:#be123c;--green:#15803d;--danger:#be123c;--success:#15803d;--warning:#b45309;
--ok:#15803d;--warn:#b45309;--err:#be123c;
--teal-bg:#f2f2f2;--purple-bg:#f2f2f2;--green-bg:#dcfce7;--amber-bg:#fef3c7;--red-bg:#fee2e2;--blue-bg:#f2f2f2;
--cg-teal:#0f766e;--cg-amber:#b45309;--cg-purple:#7e22ce;--cg-red:#be123c;--cg-muted:#555555;
}
@media (prefers-color-scheme: dark){html body{
--bg:#1a1a1a;--bg2:#272727;--bg3:#272727;--bg-2:#272727;
--bg-primary:#1a1a1a;--bg-secondary:#272727;--bg-tertiary:#272727;
--card:#272727;--card-bg:#272727;--card2:#2f2f2f;--card-hover:#2f2f2f;
--text:#e6e6e6;--txt:#e6e6e6;--tx:#e6e6e6;--text-primary:#e6e6e6;--text-main:#e6e6e6;
--text-dim:#b4b4b4;--text-secondary:#b4b4b4;--dim:#b4b4b4;--sub:#b4b4b4;--muted:#b4b4b4;
--line:#383838;--border:#383838;--bd:#383838;
--accent1:#60a5fa;--accent2:#22d3ee;--accent3:#fbbf24;--accent4:#fb7185;--accent5:#4ade80;
--pri:#60a5fa;--pri2:#60a5fa;--p:#60a5fa;--blue:#60a5fa;--brand:#60a5fa;--brand2:#a78bfa;
--teal:#2dd4bf;--cyan:#22d3ee;--amber:#fbbf24;--orange:#fbbf24;--purple:#c084fc;
--red:#f87171;--green:#4ade80;--danger:#f87171;--success:#4ade80;--warning:#fbbf24;
--ok:#4ade80;--warn:#fbbf24;--err:#f87171;
--teal-bg:#14352a;--purple-bg:#2a1f3d;--green-bg:#14352a;--amber-bg:#3a2f12;--red-bg:#3d1a1a;--blue-bg:#1e293b;
--cg-teal:#2dd4bf;--cg-amber:#fbbf24;--cg-purple:#c084fc;--cg-red:#f87171;--cg-muted:#b4b4b4;
}}

/* ---- 实心按钮/徽标：白字 + 足够深的底色，保证 ≥4.5（两种主题通用） ---- */
html body .btn.primary,html body a.btn.primary,html body .btn-primary,
html body button.primary,html body .pg.on,html body .f.on,html body .qn,
html body #tabs>span.on,html body .pl button,html body #fb-submit,
html body #btn-submit,html body #btn-switch,html body .stats .num,
html body .tag.on,html body .badge.on,html body .calc button.o{
background:#2563eb!important;background-image:none!important;border-color:#2563eb!important;
color:#ffffff!important;-webkit-text-fill-color:#ffffff!important}
html body .btn.success,html body button.g,html body .calc button.e,
html body .pm .bt .g,html body .btn-green,html body a.btn.green{
background:#0f766e!important;background-image:none!important;border-color:#0f766e!important;
color:#ffffff!important;-webkit-text-fill-color:#ffffff!important}
html body button.s,html body .pm .bt .s,html body .btn-amber{
background:#b45309!important;background-image:none!important;border-color:#b45309!important;
color:#ffffff!important;-webkit-text-fill-color:#ffffff!important}
html body button.r,html body .calc button.r,html body .pm .bt .r,
html body .btn.danger,html body a.btn.danger{
background:#b91c1c!important;background-image:none!important;border-color:#b91c1c!important;
color:#ffffff!important;-webkit-text-fill-color:#ffffff!important}

/* ---- 浅色模式定向修复 ---- */
@media (prefers-color-scheme: light){
html body div.card-tags>span.card-tag,html body #question>span.req,html body span.req-tag,
html body #topic-tag,html body .badge.badge-事业,html body .badge.badge-国考,
html body div.wrap>div.section>h2{color:#0e7490!important}
html body #todo-n,html body #iv-done-bar>span>b{color:#15803d!important}
html body #cgyd-experience-v4 .xp-ai-sub,html body div.cgyd-tool-head>span{color:#555555!important}
html body #cgyd-essay-tools>div.cgyd-tool-head>span{color:#555555!important}
}
/* ---- 深色模式定向修复 ---- */
@media (prefers-color-scheme: dark){
html body div.card-tags>span.card-tag,html body #question>span.req,html body span.req-tag,
html body #topic-tag,html body .badge.badge-事业,html body .badge.badge-国考,
html body div.wrap>div.section>h2,html body div.date-bar>b{color:#22d3ee!important}
html body #todo-n,html body #iv-done-bar>span>b{color:#4ade80!important}
html body #cgyd-experience-v4 .xp-ai-sub,html body div.cgyd-tool-head>span{color:#b4b4b4!important}
html body #cgyd-essay-tools>div.cgyd-tool-head>span{color:#b4b4b4!important}
html body div.w>div.card>p>a,html body #forum>p>a{color:#60a5fa!important}
}

/* ===== [light18] 残余实底对比度收口 (2026-10-02) ===== */
/* xp-ai-sub / cgyd-tool-head span: 常暗深蓝底, 两模式都用浅色 */
/* moved-to-dark */
/* moved-to-dark */
@media (prefers-color-scheme: dark){
/* 撤销 light17 中这两个选择器的暗灰字（常暗底上需要浅色） */
/* moved-to-dark */
/* moved-to-dark */
/* tools 页(WP容器) .gwy-tools .ft 暗色 */
html body .gwy-tools .ft,html body .gwy-tools .ft a{color:#a8a8a8!important}
html body .gwy-tools .ft code{color:#f87171!important}
/* pay 步骤条 .ok 暗色: 页面深色块底 #123a2a, 字用浅绿 #86efac */
html body .pay-area .step-info .ok{color:#86efac!important}
/* feedback 提交按钮暗色: 白字蓝底 */
html body #fb-submit{background:#2563eb!important;color:#ffffff!important}
/* https 页: 深色卡片底 #161b27 上的 tag/列表/灰字 */
html body .card h2 .tag{background:#1e2a45!important;color:#93c5fd!important}
html body .list{background:#1c2436!important;color:#cbd5e1!important}
html body .kbd{background:#334155!important;color:#e2e8f0!important}
html body #v-target-note,html body div[style*="color:var(--muted)"]{color:#94a3b8!important}
html body .row .k{color:#94a3b8!important}
}
@media (prefers-color-scheme: light){
/* feedback 亮色按钮: 白字 on #2563eb (原 #1e293b 深字 2.83) */
html body #fb-submit{background:#2563eb!important;color:#ffffff!important}
}

/* ===== [light18b] 第二轮收口 (2026-10-02) ===== */
/* fb-submit: 两模式都白字蓝底 (原页面 .btn 亮色 #1e293b 深字) */
html body #fb-submit,html body button#fb-submit,html body .btn#fb-submit{background:#2563eb!important;color:#ffffff!important;-webkit-text-fill-color:#ffffff!important}
@media (prefers-color-scheme: dark){
html body #fb-submit,html body button#fb-submit,html body .btn#fb-submit{background:#2563eb!important;color:#ffffff!important;-webkit-text-fill-color:#ffffff!important}
html body div.w>div.card>p>a,html body #forum>p>a{color:#93c5fd!important}
html body .btn{background:#1d4ed8!important;color:#fff!important}
html body .btn.red{background:#dc2626!important}
}
@media (prefers-color-scheme: light){
html body div.w>div.card>p>a,html body #forum>p>a{color:#1d4ed8!important}
}
/* guide 官方入口(常暗深底盒 #0f172a): accent2 链接提亮 */
html body div.section div[style*="background:#0f172a"] strong a{color:#67e8f9!important}

/* ===== [light19b] 最后一轮收口 (2026-10-02) ===== */
@media (prefers-color-scheme: dark){
/* 卡内迷你按钮 (.btn.mini): 浅蓝字压中蓝底 3.72 → 底加深为 #1e3a8a (4.9) */
html body #tab-xingce div.card div.links a.btn.mini,
html body #emptyBox>div.card.empty>div.acts>a.btn,
html body a.btn.mini{background:#1e3a8a!important;border-color:#1e3a8a!important;color:#dbeafe!important}
}

/* ===== [light21] AI批改面板浅色化 (2026-10-02 用户截图: 面板仍深色) ===== */
@media (prefers-color-scheme: light){
/* 容器: 深蓝渐变 -> 白卡 */
html body #cgyd-experience-v4{background:#ffffff!important;border:1px solid #e8eef6!important;box-shadow:0 2px 12px rgba(15,23,42,.06)!important}
html body #cgyd-experience-v4:before{background:linear-gradient(90deg,transparent,#93c5fd,#a5b4fc,#93c5fd,transparent)!important;background-size:200% 100%!important}
/* AI chip: 深色紫蓝渐变 -> 浅色 */
html body #cgyd-experience-v4 .xp-ai-chip{color:#4f46e5!important;-webkit-text-fill-color:#4f46e5!important;background:linear-gradient(135deg,rgba(99,102,241,.10),rgba(34,211,238,.08))!important;border:1px solid rgba(99,102,241,.35)!important;box-shadow:none!important}
html body #cgyd-experience-v4 .xp-ai-chip:before{color:#0891b2!important;text-shadow:none!important}
/* 通用盒子/文章/摘要: 深蓝描边 -> 浅描边, 字色深 */
html body .xp-box{background:#ffffff!important;color:#1e293b!important;border-color:#e8eef6!important}
html body .xp-box details,html body .xp-box article{border-color:#e2e8f0!important;background:#f8fafc!important}
html body .xp-box summary{color:#1e293b!important}
html body .xp-box p{color:#334155!important}
html body .xp-box small,html body .xp-box .xp-locked-hint{color:#64748b!important}
/* 按钮: 深蓝底 -> 白底蓝字描边 */
html body .xp-box button,html body .xp-box a.xp-primary,html body .xp-mobile button,html body #xp-material-toggle{background:#ffffff!important;color:#1d4ed8!important;border:1px solid #c7d7ee!important}
html body .xp-box button:hover{border-color:#1d4ed8!important}
html body .xp-box .xp-primary,html body .xp-box a.xp-primary{background:#2563eb!important;color:#ffffff!important;border-color:#2563eb!important}
html body .xp-box button:disabled{opacity:.6!important}
/* 状态色: 深底亮字 -> 浅底深字 (对比度均>=4.5) */
html body .xp-hit{color:#15803d!important}
html body .xp-partial{color:#b45309!important}
html body .xp-miss{color:#be123c!important}
html body .xp-muted{color:#64748b!important}
/* 分数渐变字 -> 实色品牌蓝 */
html body .xp-score{background:none!important;-webkit-background-clip:initial!important;background-clip:initial!important;color:#1d4ed8!important;-webkit-text-fill-color:#1d4ed8!important}
/* 引用块/修改建议 */
html body .xp-box blockquote{border-left-color:#2563eb!important;color:#334155!important}
/* 避失分提示条: 深底黄字 -> 浅黄底深字 */
html body .xp-loss-avoid{background:#fffbeb!important;border:1px solid #fcd34d!important;color:#92400e!important}
/* 版本条 */
html body .xp-vers-bar{border-color:#c7d7ee!important;color:#334155!important}
html body .xp-vers-step b{color:#1d4ed8!important}
html body .xp-vers-arrow{color:#94a3b8!important}
html body .xp-vers-up{color:#15803d!important}
/* 补写框 */
html body .xp-patch{background:#eff6ff!important;border:1px dashed #93c5fd!important}
html body .xp-patch [data-patch]{background:#ffffff!important;color:#1e293b!important;border:1px solid #cbd5e1!important}
html body .xp-patch [data-patch]:focus{border-color:#2563eb!important;box-shadow:0 0 0 2px rgba(37,99,235,.15)!important}
html body .xp-patch-n{color:#64748b!important}
html body .xp-patch-fill{color:#1d4ed8!important;background:#eff6ff!important;border-color:#93c5fd!important}
html body .xp-patch-bar{background:#eff6ff!important;border:1px solid #93c5fd!important}
html body .xp-patch-bar [data-patch-count]{color:#334155!important}
/* 回看报告按钮 (xp-back-report 深色虚线) */
html body #xp-back-report{background:#eff6ff!important;color:#1d4ed8!important;border:1.5px dashed #93c5fd!important}
/* 导出按钮/登录CTA */
html body .xp-export-btn{color:#1d4ed8!important;border-color:#c7d7ee!important}
html body .xp-locked-hero{border-color:#c7d7ee!important}
html body .xp-locked-body{color:#94a3b8!important}
/* 锁定态 hero 内链接 */
html body .xp-box a{color:#1d4ed8!important}
html body .xp-box a.xp-login-cta{color:#ffffff!important}
/* 举报按钮 (内联 #8fa8cc 已由内联写死, 无法覆盖内联style, 但可见性尚可) */
/* 顶部遮挡风格修复 */
html body .xp-box textarea{background:#ffffff!important;color:#1e293b!important;border:1px solid #cbd5e1!important}
}

/* ===== [light21b] xp-ai-sub/tool-head: 底色随主题后, 字色分模式 ===== */
@media (prefers-color-scheme: light){
html body #cgyd-experience-v4 .xp-ai-sub,html body #cgyd-experience-v4 div.xp-ai-head>span.xp-ai-sub{color:#64748b!important}
html body #cgyd-essay-tools>div.cgyd-tool-head>span{color:#475569!important}
}
@media (prefers-color-scheme: dark){
html body #cgyd-experience-v4 .xp-ai-sub,html body #cgyd-experience-v4 div.xp-ai-head>span.xp-ai-sub{color:#c7d4f2!important}
html body #cgyd-essay-tools>div.cgyd-tool-head>span{color:#c7d4f2!important}
}

/* ===== [light22] 成绩历史卡片主题化 (2026-10-02: 之前 JS 内联硬编码 #0f172a 任何主题下都是深色) ===== */
/* 深色: 保持原视觉 (#0f172a 卡片/#38bdf8 数字) */
@media (prefers-color-scheme: dark){
html body .anon-hist-card{flex:1 1 0;min-width:80px;text-align:center;background:#0f172a;border:1px solid #2c3a55;border-radius:10px;padding:10px}
html body .anon-hist-num{font-size:1.3rem;font-weight:700;color:#38bdf8}
html body .anon-hist-label{font-size:.72rem;color:#8fa8cc}
html body .anon-hist-note{margin:8px 0 0;font-size:.78rem;color:#8fa8cc}
html body .anon-hist-note a{color:#7dd3fc}
}
/* 浅色: 白卡片 + 品牌蓝数字 */
@media (prefers-color-scheme: light){
html body .anon-hist-card{flex:1 1 0;min-width:80px;text-align:center;background:#ffffff;border:1px solid #dbe6f3;border-radius:10px;padding:10px;box-shadow:0 1px 4px rgba(15,23,42,.05)}
html body .anon-hist-num{font-size:1.3rem;font-weight:700;color:#1d4ed8}
html body .anon-hist-label{font-size:.72rem;color:#64748b}
html body .anon-hist-note{margin:8px 0 0;font-size:.78rem;color:#64748b}
html body .anon-hist-note a{color:#2563eb}
}

/* ===== [light23] 子页面残留深色块修复 (2026-10-02 扫全站40页) ===== */
/* 1) gwy-wrong.html 状态条: wrongsync.js 原内联深色(#2a2213等) -> data-kind 语义化 */
@media (prefers-color-scheme: light){
html body #cgyd-wrong-status{background:#fef3c7!important;border:1px solid #fcd34d!important;color:#92400e!important}
html body #cgyd-wrong-status[data-kind="sync"]{background:#dbeafe!important;border-color:#93c5fd!important;color:#1e40af!important}
html body #cgyd-wrong-status[data-kind="ok"],html body #cgyd-wrong-status[data-kind="done"]{background:#dcfce7!important;border-color:#86efac!important;color:#166534!important}
html body #cgyd-wrong-status .cgyd-wrong-status-link,html body #cgyd-wrong-status a{color:#1d4ed8!important}
}
@media (prefers-color-scheme: dark){
html body #cgyd-wrong-status[data-kind="warn"]{background:#2a2213!important;border-color:#6b5320!important;color:#fbbf24!important}
html body #cgyd-wrong-status[data-kind="sync"]{background:#152232!important;border-color:#2d4a6d!important;color:#8fc7f0!important}
html body #cgyd-wrong-status .cgyd-wrong-status-link,html body #cgyd-wrong-status a{color:#56ccf2!important}
}
/* 2) gwy-tools/guide.html 内联 #0f172a 提示块 + dark 媒体内的 .link-item (浅色下已正常) */
@media (prefers-color-scheme: light){
html body div.wrap div[style*="#0f172a"]{background:#f8fafc!important;border:1px solid #e2e8f0!important;color:#475569!important}
html body div.wrap div[style*="#0f172a"] a{color:#2563eb!important}
}
/* 3) gwy-about.html 顶部 brand 渐变在浅色下保留(品牌设计), 但确认文字对比度——已是白字, 不动 */

/* ===== [setup1] 行测练习设置面板：输入框/滚动定位配色统一 (2026-10-03 用户反馈) ===== */
/* 输入框 #gwy-count：原 quiz.js 深蓝黑底被浅色模式文字覆盖导致看不清；统一为站点卡片风格 */
@media (prefers-color-scheme: light){
html body #gwy-setup .setup-row #gwy-count,html body #gwy-setup #gwy-count{
  background:#f2f2f2!important;border:1.5px solid #cbd5e1!important;color:#222222!important;
  -webkit-text-fill-color:#222222!important;font-weight:700}
html body #gwy-setup .setup-row #gwy-count:focus,html body #gwy-setup #gwy-count:focus{
  border-color:#2563eb!important;outline:none}
}
@media (prefers-color-scheme: dark){
html body #gwy-setup .setup-row #gwy-count,html body #gwy-setup #gwy-count{
  background:#1a1a1a!important;border:1.5px solid #4b5563!important;color:#e6e6e6!important;
  -webkit-text-fill-color:#e6e6e6!important;font-weight:700}
html body #gwy-setup .setup-row #gwy-count:focus,html body #gwy-setup #gwy-count:focus{
  border-color:#60a5fa!important;outline:none}
}
/* 进度数字与"已做"高亮：浅色下用可读的琥珀深色，深色下用亮琥珀 */
@media (prefers-color-scheme: light){
html body #gwy-setup .setup-prog .ptxt b{color:#b45309!important;-webkit-text-fill-color:#b45309!important}
}
@media (prefers-color-scheme: dark){
html body #gwy-setup .setup-prog .ptxt b{color:#fbbf24!important;-webkit-text-fill-color:#fbbf24!important}
}



/* [aibfab-20261006] AI 助手悬浮球悬停提示：修复被全局压色规则盖掉的白字（浅色下深底深字不可见） */
.bot-fab .bot-fab-label{background:#1e293b !important;color:#ffffff !important;-webkit-text-fill-color:#ffffff !important;box-shadow:0 2px 10px rgba(15,23,42,.3)}
@media (prefers-color-scheme: dark){
.bot-fab .bot-fab-label{background:#334155 !important;color:#f1f5f9 !important;-webkit-text-fill-color:#f1f5f9 !important}
}

/* [matfi-20261006] 资料文件类型徽标配色优化（旧深色系→双主题柔和色） */
.gwy-mat .fi{background:rgba(59,99,190,.12) !important;color:#2b5fd9 !important;-webkit-text-fill-color:#2b5fd9 !important}
.gwy-mat .fi.pdf{background:#fee2e2 !important;color:#dc2626 !important;-webkit-text-fill-color:#dc2626 !important}
.gwy-mat .fi.img{background:#dcfce7 !important;color:#15803d !important;-webkit-text-fill-color:#15803d !important}
.gwy-mat .fi.doc{background:#dbeafe !important;color:#1d4ed8 !important;-webkit-text-fill-color:#1d4ed8 !important}
.gwy-mat .fi.ppt{background:#ffedd5 !important;color:#c2410c !important;-webkit-text-fill-color:#c2410c !important}
.gwy-mat .fi.xls{background:#d1fae5 !important;color:#047857 !important;-webkit-text-fill-color:#047857 !important}
.gwy-mat .fi.zip{background:#f3e8ff !important;color:#7e22ce !important;-webkit-text-fill-color:#7e22ce !important}
.gwy-mat .fi.mp4{background:#ede9fe !important;color:#6d28d9 !important;-webkit-text-fill-color:#6d28d9 !important}
@media (prefers-color-scheme: dark){
.gwy-mat .fi{background:rgba(122,140,255,.16) !important;color:#a5b4fc !important;-webkit-text-fill-color:#a5b4fc !important}
.gwy-mat .fi.pdf{background:rgba(248,113,113,.16) !important;color:#fca5a5 !important;-webkit-text-fill-color:#fca5a5 !important}
.gwy-mat .fi.img{background:rgba(52,211,153,.15) !important;color:#6ee7b7 !important;-webkit-text-fill-color:#6ee7b7 !important}
.gwy-mat .fi.doc{background:rgba(96,165,250,.16) !important;color:#93c5fd !important;-webkit-text-fill-color:#93c5fd !important}
.gwy-mat .fi.ppt{background:rgba(251,146,60,.16) !important;color:#fdba74 !important;-webkit-text-fill-color:#fdba74 !important}
.gwy-mat .fi.xls{background:rgba(16,185,129,.16) !important;color:#6ee7b7 !important;-webkit-text-fill-color:#6ee7b7 !important}
.gwy-mat .fi.zip{background:rgba(192,132,252,.16) !important;color:#d8b4fe !important;-webkit-text-fill-color:#d8b4fe !important}
.gwy-mat .fi.mp4{background:rgba(167,139,250,.16) !important;color:#c4b5fd !important;-webkit-text-fill-color:#c4b5fd !important}
}
/* ===== [fix 20261008] 记住登录复选框圆点优化：手机端可见性 ===== */
/* 问题: 主题checkbox仅1em(≈14px), 深色内阴影+灰边框在浅色小屏上几乎看不见 */
/* 方案: 仅登录/注册页(#sign-in|#sign-up表单内)放大勾选框并强化状态对比 */
#sign-in input[type="checkbox"],
#sign-up input[type="checkbox"],
form .form-checkbox input[type="checkbox"]{
  width:1.35em; height:1.35em; min-width:1.35em;
  border-width:1.5px;
  border-color:var(--muted-3-color,#b1b1b1);
  box-shadow:0 1px 3px rgba(0,0,0,.12);
  vertical-align:-.22em;
  border-radius:4px;
}
/* 选中态: 品牌色填充+对勾加大加粗 */
#sign-in input[type="checkbox"]:checked,
#sign-up input[type="checkbox"]:checked,
form .form-checkbox input[type="checkbox"]:checked{
  background:var(--focus-color,#2196f3);
  border-color:var(--focus-color,#2196f3);
  box-shadow:0 1px 4px rgba(33,150,243,.45);
}
#sign-in input[type="checkbox"]:checked::before,
#sign-up input[type="checkbox"]:checked::before,
form .form-checkbox input[type="checkbox"]:checked::before{
  transform:translateY(-50%) scale(.9);
  font-weight:900;
}
/* 标签文字同步加大, 提升整体可点区域 */
#sign-in .form-checkbox label,
#sign-up .form-checkbox label,
form .form-checkbox label{
  font-size:.95em;
  color:var(--muted-2-color,#4b5) !important;
  color:inherit;
  cursor:pointer;
  padding:4px 2px;      /* 扩大触控热区 */
}
.form-checkbox{display:inline-flex;align-items:center}


/* ===== [fix 20261008-v3] 记住登录勾选：改蓝色 + 全端统一(PC/平板/手机) ===== */
/* PC弹窗(u_sign modal)与独立页共用 #sign-in/#sign-up 容器, 选择器已天然覆盖; 此版明确三端一致 */
/* 未选中: 白底+灰框 */
#sign-in input[type="checkbox"],
#sign-up input[type="checkbox"],
form .form-checkbox input[type="checkbox"]{
  width:1.35em; height:1.35em; min-width:1.35em;
  background:#fff !important;
  border:1.5px solid #b9c2cf !important;
  border-radius:4px;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.05), 0 1px 3px rgba(0,0,0,.10) !important;
  vertical-align:-.22em;
  transition:background .15s, border-color .15s, box-shadow .15s, transform .1s;
}
/* 选中: 实心蓝 #2b7de9 + 白粗对勾 + 蓝光晕 */
#sign-in input[type="checkbox"]:checked,
#sign-up input[type="checkbox"]:checked,
form .form-checkbox input[type="checkbox"]:checked{
  background:#2b7de9 !important;
  border-color:#2b7de9 !important;
  box-shadow:0 1px 6px rgba(43,125,233,.55) !important;
}
#sign-in input[type="checkbox"]:checked::before,
#sign-up input[type="checkbox"]:checked::before,
form .form-checkbox input[type="checkbox"]:checked::before{
  color:#fff !important;
  transform:translateY(-50%) scale(1) !important;
  font-weight:900 !important;
  text-shadow:0 1px 1px rgba(0,0,0,.2);
}
/* hover(鼠标端): 未选中时边框提前变蓝, 提示可点 */
#sign-in input[type="checkbox"]:hover,
#sign-up input[type="checkbox"]:hover,
form .form-checkbox input[type="checkbox"]:hover{
  border-color:#2b7de9 !important;
  opacity:1 !important;
}
/* 按压反馈 */
#sign-in input[type="checkbox"]:active,
#sign-up input[type="checkbox"]:active,
form .form-checkbox input[type="checkbox"]:active{
  transform:scale(1.12);
}
/* 联动文字 */
.form-checkbox input[type="checkbox"]:checked + label{
  color:#333 !important;
  font-weight:600 !important;
}
/* ===== 平板/PC触控与布局兼容(768~1199px 断点) ===== */
/* zibll登录窗口在>=992px为宽版(800px), checkbox区域在右侧表单流中, 保持原有尺寸即可;
   平板竖屏(768~991px)下sign窗口收窄, 防止checkbox与"找回密码"同行挤压换行 */
@media (min-width:768px) and (max-width:991px){
  #sign-in .line-form.mb10.em09{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
  #sign-in .form-checkbox label{ white-space:nowrap; }
  #sign-in .pull-right{ white-space:nowrap; }
}
/* 触屏设备(平板)勾选框再大一点, 便于手指点按 */
@media (hover:none) and (pointer:coarse) and (min-width:768px){
  #sign-in input[type="checkbox"],
  #sign-up input[type="checkbox"],
  form .form-checkbox input[type="checkbox"]{
    width:1.5em; height:1.5em; min-width:1.5em;
  }
}
/* ===== 暗色模式适配(站点有toggle-theme) ===== */
.dark-theme #sign-in input[type="checkbox"],
.dark-theme #sign-up input[type="checkbox"],
.dark-theme form .form-checkbox input[type="checkbox"]{
  background:rgba(255,255,255,.92) !important;   /* 暗色下保持浅底保证对比 */
  border-color:#8a93a3 !important;
}
.dark-theme .form-checkbox input[type="checkbox"]:checked + label{ color:#eee !important; }
