/* 2026-07-23 夜航轨道：仅覆盖视觉变量与现有结构，不改变 Discuz 功能或插件接口。 */
body.discuzx5 {
  --dz-bgf: rgba(19, 29, 53, .84);
  --dz-bgc: #0d1427;
  --dz-fc: #eaf0ff;
  --dz-fa: #d9e5fa;
  --dz-fb: #94a1bf;
  --dz-nvbg: #10182e;
  --dz-nvbga: #1c2d4d;
  --dz-btnbg: #a9f1cf;
  --dz-btntxt: #0b2026;
  --dz-borderb: rgba(231, 240, 255, .13);
  --dz-borderc: rgba(231, 240, 255, .2);
  background:
    radial-gradient(circle at 93% 8%, rgba(112, 91, 224, .30), transparent 28rem),
    radial-gradient(circle at 3% 43%, rgba(50, 146, 132, .17), transparent 22rem),
    #0b1020;
  color: #eaf0ff;
}

body.discuzx5::before {
  content: "";
  position: fixed;
  z-index: -1;
  width: 560px;
  height: 560px;
  top: -340px;
  right: -155px;
  border: 1px solid rgba(213, 225, 255, .15);
  border-radius: 50%;
  pointer-events: none;
}

body.discuzx5 a { color: #dce8ff; }
body.discuzx5 a:hover { color: #a9f1cf; }
body.discuzx5 #toptb,
body.discuzx5 #nv,
body.discuzx5 .waoo-community-nav { background: rgba(12, 18, 35, .9); border-color: rgba(231, 240, 255, .13); }
body.discuzx5 #nv li a,
body.discuzx5 #nv li a:visited,
body.discuzx5 .waoo-community-nav a { color: #aebbd7; }
body.discuzx5 #nv li.a a,
body.discuzx5 #nv li a:hover,
body.discuzx5 .waoo-community-nav a:hover { color: #a9f1cf; background: rgba(169, 241, 207, .10); }
body.discuzx5 #wp,
body.discuzx5 .wp { color: #eaf0ff; }

/* 门户首页、栏目页和内容卡片：保留原生模块数据，只改外观。 */
body.discuzx5 .waoo-home-intro,
body.discuzx5 .bm,
body.discuzx5 .bm_h,
body.discuzx5 .frame,
body.discuzx5 .frame-1,
body.discuzx5 .block,
body.discuzx5 .portalcat-list,
body.discuzx5 .portalcat-card {
  background: rgba(19, 29, 53, .72);
  border-color: rgba(231, 240, 255, .13);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .14);
}
body.discuzx5 .waoo-home-intro { border-radius: 20px; }
body.discuzx5 .waoo-kicker,
body.discuzx5 .waoo-home-intro h1,
body.discuzx5 .frame-title,
body.discuzx5 .bm_h h2,
body.discuzx5 .portalcat-title { color: #eaf0ff; }
body.discuzx5 .waoo-home-intro p,
body.discuzx5 .xg1,
body.discuzx5 .xg1 a,
body.discuzx5 .xg2 { color: #9ca9c6 !important; }
body.discuzx5 .waoo-intro-action,
body.discuzx5 .pn,
body.discuzx5 .pnc,
body.discuzx5 a.pnc { background: #a9f1cf; color: #0b2026 !important; border-color: #a9f1cf; }
body.discuzx5 .waoo-intro-action:hover,
body.discuzx5 .pn:hover,
body.discuzx5 .pnc:hover { background: #c4f9dd; color: #0b2026 !important; }

/* 原生论坛列表与帖子：不改变列表、分页、发帖、回复等 DOM 和行为。 */
body.discuzx5 .tl,
body.discuzx5 .tl .th,
body.discuzx5 .tl tr,
body.discuzx5 .pl,
body.discuzx5 .pl .ad,
body.discuzx5 .pl .pls,
body.discuzx5 .pl .plc,
body.discuzx5 .ct2_a .mn,
body.discuzx5 .ct3_a .mn,
body.discuzx5 .ct3_a .sd,
body.discuzx5 .tbn,
body.discuzx5 .p_pop,
body.discuzx5 .p_pof,
body.discuzx5 .tedt .area { background: rgba(19, 29, 53, .80); border-color: rgba(231, 240, 255, .13); }
body.discuzx5 .tl th,
body.discuzx5 .tl td,
body.discuzx5 .pl .pls,
body.discuzx5 .pl .plc,
body.discuzx5 .pl .ad { border-color: rgba(231, 240, 255, .13); }
body.discuzx5 .tl tr:hover td { background: rgba(169, 241, 207, .06); }
body.discuzx5 .tl .bm_c,
body.discuzx5 .pl .pi,
body.discuzx5 .pl .pct { color: #dce8ff; }
body.discuzx5 .tbn a:hover,
body.discuzx5 .tbn .a a { background: rgba(169, 241, 207, .12); color: #a9f1cf; }
body.discuzx5 .quote,
body.discuzx5 .blockquote { border-left-color: #a9f1cf; background: rgba(169, 241, 207, .08); }

body.discuzx5 .pg a,
body.discuzx5 .pg strong,
body.discuzx5 .pgb a,
body.discuzx5 .pgs #newspecial,
body.discuzx5 .pgs #post_reply { border-color: rgba(231, 240, 255, .18); background: rgba(255, 255, 255, .05); color: #dce8ff; }
body.discuzx5 .pg strong,
body.discuzx5 .pg a:hover { background: #a9f1cf; color: #0b2026; }
body.discuzx5 #ft { border-color: rgba(231, 240, 255, .13); color: #8f9dbb; }

/* 门户首页采用现有 waoo-portal-* 结构；以 !important 压过门户页内置浅色声明。 */
body.discuzx5 .waoo-portal-home { background: transparent !important; }
body.discuzx5 .waoo-portal-hero,
body.discuzx5 .waoo-portal-overview,
body.discuzx5 .waoo-portal-section,
body.discuzx5 .waoo-toolbox-section,
body.discuzx5 .waoo-section-empty {
  background: rgba(19, 29, 53, .78) !important;
  border: 1px solid rgba(231, 240, 255, .13) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .16) !important;
}
body.discuzx5 .waoo-portal-hero { border-radius: 20px !important; }
body.discuzx5 .waoo-portal-overview > a {
  background: rgba(29, 43, 75, .76) !important;
  border-color: rgba(231, 240, 255, .13) !important;
  color: #eaf0ff !important;
}
body.discuzx5 .waoo-portal-overview > a:hover {
  background: rgba(169, 241, 207, .14) !important;
  border-color: rgba(169, 241, 207, .62) !important;
  transform: translateY(-3px);
}
body.discuzx5 .waoo-portal-home h1,
body.discuzx5 .waoo-portal-home h2,
body.discuzx5 .waoo-portal-home h3,
body.discuzx5 .waoo-portal-home strong { color: #eaf0ff !important; }
body.discuzx5 .waoo-portal-home p,
body.discuzx5 .waoo-portal-home em,
body.discuzx5 .waoo-portal-home .waoo-section-summary { color: #a9b6d1 !important; }
body.discuzx5 .waoo-primary-action { background: #a9f1cf !important; color: #0b2026 !important; }
body.discuzx5 .waoo-secondary-action { background: rgba(255, 255, 255, .05) !important; border-color: rgba(231, 240, 255, .18) !important; color: #eaf0ff !important; }
body.discuzx5 .waoo-portal-section article,
body.discuzx5 .waoo-portal-section .block,
body.discuzx5 .waoo-portal-section .frame { background: transparent !important; }

/* 首页结构仍是 Discuz 原生 DIY 门户模板；这里仅为其已有内容模块提供夜航轨道布局。 */
body.discuzx5 .waoo-orbit-home { width: min(1180px, calc(100% - 40px)) !important; }
body.discuzx5 .waoo-orbit-home .waoo-portal-hero {
  min-height: 414px;
  display: grid !important;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, .9fr);
  align-items: center;
  gap: 12px;
  padding: 46px 48px !important;
  overflow: hidden;
  position: relative;
  background: linear-gradient(138deg, rgba(19, 29, 53, .96), rgba(25, 35, 72, .91)) !important;
}
body.discuzx5 .waoo-hero-copy { position: relative; z-index: 2; }
body.discuzx5 .waoo-orbit-home .waoo-portal-hero h1 { margin: 12px 0 16px !important; max-width: 660px; font-size: clamp(42px, 5vw, 69px) !important; line-height: 1.06 !important; letter-spacing: -3px !important; color: #f4f8ff !important; }
body.discuzx5 .waoo-orbit-home .waoo-portal-hero h1 em { color: #a9f1cf !important; font-style: normal; }
body.discuzx5 .waoo-orbit-home .waoo-portal-hero p { max-width: 550px; color: #b4c0d9 !important; }
body.discuzx5 .waoo-orbit-home .waoo-portal-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
body.discuzx5 .waoo-orbit-home .waoo-primary-action,
body.discuzx5 .waoo-orbit-home .waoo-secondary-action { display: inline-flex; align-items: center; min-height: 43px; padding: 0 16px; border-radius: 10px; font-weight: 700; }
body.discuzx5 .waoo-orbit-home .waoo-orbit-art { position: relative; height: 320px; min-width: 0; }
body.discuzx5 .waoo-orbit-ring { position: absolute; left: 50%; top: 50%; width: 300px; height: 300px; border: 1px solid rgba(229, 239, 255, .25); border-radius: 50%; transform: translate(-50%, -50%) scaleY(.48); }
body.discuzx5 .waoo-ring-two { width: 248px; height: 248px; transform: translate(-50%, -50%) rotate(56deg) scaleY(.45); }
body.discuzx5 .waoo-ring-three { width: 194px; height: 194px; transform: translate(-50%, -50%) rotate(-35deg) scaleY(.51); }
body.discuzx5 .waoo-orbit-planet { position: absolute; left: 50%; top: 50%; width: 126px; height: 126px; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle at 34% 28%, #e3ffe7 0 3%, #95e4c1 16%, #41798f 51%, #1b294a 73%); box-shadow: 0 0 52px rgba(144, 231, 196, .38); }
body.discuzx5 .waoo-orbit-star { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #ffbd72; box-shadow: 0 0 20px #ffbd72; }
body.discuzx5 .waoo-star-one { top: 40px; right: 37px; } body.discuzx5 .waoo-star-two { bottom: 48px; left: 45px; width: 4px; height: 4px; background: #fff; box-shadow: 0 0 12px #fff; }
body.discuzx5 .waoo-orbit-note { position: absolute; display: block; z-index: 2; padding: 12px 14px; border: 1px solid rgba(232, 241, 255, .17); border-radius: 13px; background: rgba(14, 25, 49, .71); box-shadow: 0 18px 38px rgba(0, 0, 0, .18); backdrop-filter: blur(10px); }
body.discuzx5 .waoo-orbit-note b { display: block; color: #f0f5ff !important; font-size: 13px; } body.discuzx5 .waoo-orbit-note em { display: block; margin-top: 4px; color: #a6b5d2 !important; font-size: 11px; font-style: normal; }
body.discuzx5 .waoo-orbit-note-a { left: 0; top: 44px; } body.discuzx5 .waoo-orbit-note-b { right: 0; bottom: 26px; }
body.discuzx5 .waoo-orbit-home .waoo-portal-overview { gap: 13px !important; margin: 17px 0 30px !important; }
body.discuzx5 .waoo-orbit-home .waoo-portal-overview > a { min-height: 166px !important; padding: 19px !important; border-radius: 16px !important; position: relative; overflow: hidden; transition: transform .22s ease, border-color .22s ease, background .22s ease; }
body.discuzx5 .waoo-orbit-home .waoo-portal-overview > a::after { content: ""; position: absolute; width: 120px; height: 120px; right: -39px; bottom: -51px; border-radius: 50%; background: rgba(169, 241, 207, .16); }
body.discuzx5 .waoo-orbit-home .waoo-portal-overview > a:nth-child(2)::after { background: rgba(155, 140, 255, .22); } body.discuzx5 .waoo-orbit-home .waoo-portal-overview > a:nth-child(3)::after { background: rgba(255, 179, 107, .19); }
body.discuzx5 .waoo-orbit-home .waoo-portal-overview span { color: #a9f1cf !important; font-size: 11px !important; letter-spacing: 1px; } body.discuzx5 .waoo-orbit-home .waoo-portal-overview strong { margin: 30px 0 7px !important; font-size: 19px !important; } body.discuzx5 .waoo-orbit-home .waoo-portal-overview em { position: relative; z-index: 1; }
body.discuzx5 .waoo-orbit-home .waoo-portal-section { padding: 27px !important; border-radius: 18px !important; } body.discuzx5 .waoo-orbit-home .waoo-portal-section header span { color: #a9f1cf !important; letter-spacing: 1px; } body.discuzx5 .waoo-orbit-home .waoo-portal-section header > a { color: #a9f1cf !important; }
body.discuzx5 .waoo-orbit-home .waoo-portal-section .area .module.xld dl { background: rgba(25, 37, 65, .75) !important; border-color: rgba(231, 240, 255, .13) !important; border-radius: 14px !important; overflow: hidden; } body.discuzx5 .waoo-orbit-home .waoo-portal-section .area .module.xld dt { color: #edf3ff !important; } body.discuzx5 .waoo-orbit-home .waoo-portal-section .area .module.xld dd:not(.m) { color: #a9b7d0 !important; }

/* 全站文字对比系统：所有原生内容容器均使用深色面板，避免页面间残留浅底浅字。 */
body.discuzx5 #ct,
body.discuzx5 .ct2 .mn,
body.discuzx5 .ct2 .sd,
body.discuzx5 .ct3 .mn,
body.discuzx5 .ct3 .sd,
body.discuzx5 .bm,
body.discuzx5 .bm_c,
body.discuzx5 .bm_h,
body.discuzx5 .pl,
body.discuzx5 .pl .plc,
body.discuzx5 .pl .pls,
body.discuzx5 .tl,
body.discuzx5 .tl .th,
body.discuzx5 .portal_article_title,
body.discuzx5 .portal_article_content,
body.discuzx5 .article,
body.discuzx5 .dxb_bc,
body.discuzx5 .p_pop,
body.discuzx5 .p_pof,
body.discuzx5 .tedt .area,
body.discuzx5 .tedt .bar {
  background-color: rgba(19, 29, 53, .88) !important;
  border-color: rgba(231, 240, 255, .14) !important;
}
body.discuzx5 h1,
body.discuzx5 h2,
body.discuzx5 h3,
body.discuzx5 h4,
body.discuzx5 h5,
body.discuzx5 h6,
body.discuzx5 .bm_h,
body.discuzx5 .bm_h h2,
body.discuzx5 .bm_h a,
body.discuzx5 .tl th,
body.discuzx5 .tl .threadlisttable .new,
body.discuzx5 .plc .pi strong,
body.discuzx5 .plc .ts,
body.discuzx5 #article_title,
body.discuzx5 .portal_article_title h1 { color: #f4f8ff !important; }
body.discuzx5 .bm_c,
body.discuzx5 .bm_c p,
body.discuzx5 .bm_c li,
body.discuzx5 .plc,
body.discuzx5 .plc p,
body.discuzx5 .plc .t_f,
body.discuzx5 .plc .t_f div,
body.discuzx5 .plc .t_f td,
body.discuzx5 .tl td,
body.discuzx5 .tl td a,
body.discuzx5 #article_content,
body.discuzx5 #article_content p,
body.discuzx5 .portal_article_content,
body.discuzx5 .portal_article_content p,
body.discuzx5 .article_content,
body.discuzx5 .article_content p { color: #c7d2e7 !important; }
body.discuzx5 .xg1,
body.discuzx5 .xg1 a,
body.discuzx5 .xg2,
body.discuzx5 .xg2 a,
body.discuzx5 .plc .authi,
body.discuzx5 .plc .authi a,
body.discuzx5 .tl .by,
body.discuzx5 .tl .by a,
body.discuzx5 .portal_article_title .xg1,
body.discuzx5 .portal_article_title .xg1 a { color: #9eadc9 !important; }
body.discuzx5 .pl .pls .avatar,
body.discuzx5 .pl .pls p,
body.discuzx5 .pl .pls dd { color: #aebbd5 !important; }
body.discuzx5 .t_f a,
body.discuzx5 #article_content a,
body.discuzx5 .portal_article_content a { color: #a9f1cf !important; }
body.discuzx5 .tl tr:hover td,
body.discuzx5 .pl .plc:hover { background-color: rgba(169, 241, 207, .055) !important; }

/* 站内已存在的 waoo 文章结构：静态 waoo.css 曾把这些面板单独设为白底，需逐项覆盖。 */
body.discuzx5 .waoo-article-shell,
body.discuzx5 .waoo-related-articles,
body.discuzx5 .waoo-article-comments,
body.discuzx5 .waoo-article-pager a,
body.discuzx5 .waoo-article-summary,
body.discuzx5 .waoo-article-tags a,
body.discuzx5 .waoo-article-like > a,
body.discuzx5 .waoo-contribution-box,
body.discuzx5 .waoo-discussion-callout {
  background: rgba(19, 29, 53, .90) !important;
  border-color: rgba(231, 240, 255, .14) !important;
  color: #c7d2e7 !important;
}
body.discuzx5 .waoo-article-header { border-bottom-color: rgba(231, 240, 255, .14) !important; }
body.discuzx5 .waoo-article-header h1,
body.discuzx5 .waoo-article-content h1,
body.discuzx5 .waoo-article-content h2,
body.discuzx5 .waoo-article-content h3,
body.discuzx5 .waoo-related-articles h2,
body.discuzx5 .waoo-article-comments > h2,
body.discuzx5 .waoo-article-pager strong { color: #f4f8ff !important; }
body.discuzx5 .waoo-article-content,
body.discuzx5 .waoo-article-content p,
body.discuzx5 .waoo-article-content li,
body.discuzx5 .waoo-article-summary { color: #c7d2e7 !important; }
body.discuzx5 .waoo-article-meta,
body.discuzx5 .waoo-article-meta a,
body.discuzx5 .waoo-article-breadcrumb,
body.discuzx5 .waoo-article-breadcrumb a,
body.discuzx5 .waoo-article-pager span,
body.discuzx5 .waoo-article-admin a { color: #9eadc9 !important; }
body.discuzx5 .waoo-article-category,
body.discuzx5 .waoo-article-content a,
body.discuzx5 .waoo-article-tags a:hover { color: #a9f1cf !important; }
body.discuzx5 .waoo-article-like > a:hover { background: rgba(169, 241, 207, .12) !important; border-color: rgba(169, 241, 207, .60) !important; color: #a9f1cf !important; }

/* 顶部栏是 X5 原生 header_userstatus；补齐其必需布局和下拉收起规则，避免登录态卡片进入正文流。 */
body.discuzx5 #dz_btm_layer { position: sticky; top: 0; z-index: 600; width: 100%; min-height: 72px; background: rgba(12, 18, 35, .96); }
body.discuzx5 #dz_btm_layer .dz_layer_top { min-height: 72px; background: transparent !important; }
body.discuzx5 #dz_btm_layer .dz_btm_layer.dz_nav {
  display: flex !important; align-items: center; gap: 22px; width: min(1180px, calc(100% - 40px)) !important;
  min-width: 0 !important; height: 72px; padding: 0 !important; box-sizing: border-box;
}
body.discuzx5 .dz_nav_logo { display: flex !important; flex: 0 0 132px; align-items: center; height: 72px; margin: 0 !important; }
body.discuzx5 .dz_nav_logo .dzlogo { display: flex; align-items: center; height: 72px; }
body.discuzx5 .dz_layer_nav { display: block; flex: 1 1 auto; float: none !important; width: auto !important; min-width: 0; height: auto !important; overflow: visible !important; }
body.discuzx5 .dz_layer_nav ul,
body.discuzx5 .waoo-main-nav { display: flex !important; align-items: center; gap: 2px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
body.discuzx5 .dz_layer_nav ul li { float: none !important; margin: 0 !important; padding: 0 !important; list-style: none !important; }
body.discuzx5 .dz_layer_nav ul li::marker { content: none; }
body.discuzx5 .dz_layer_nav ul li a { display: inline-flex !important; align-items: center; height: 72px !important; line-height: 1 !important; margin: 0 !important; padding: 0 12px !important; }
body.discuzx5 .dz_layer_dl { display: block; flex: 0 0 auto; float: none !important; margin-left: auto; }
body.discuzx5 .header-right { display: flex !important; align-items: center; gap: 10px; height: 72px !important; position: relative; }
body.discuzx5 .header-notice,
body.discuzx5 .header-user { display: flex; position: relative; align-items: center; height: 72px; margin: 0; }
body.discuzx5 .header-notice .notice-dropdown,
body.discuzx5 .header-user .header-user-dropdown { display: none !important; position: absolute; z-index: 700; top: calc(100% - 6px); right: 0; }
body.discuzx5 .header-notice.open .notice-dropdown,
body.discuzx5 .header-user.open .header-user-dropdown { display: block !important; }
body.discuzx5 .header-user-avatar,
body.discuzx5 .header-user-avatar > a { display: block; width: 34px; height: 34px; overflow: hidden; border-radius: 50%; }
body.discuzx5 .header-user-avatar img { display: block; width: 34px !important; height: 34px !important; object-fit: cover; border-radius: 50%; }
body.discuzx5 .header-user-dropdown { width: 280px; padding: 14px; background: #16213c; border: 1px solid rgba(231, 240, 255, .18); border-radius: 12px; box-shadow: 0 18px 42px rgba(0, 0, 0, .34); box-sizing: border-box; }
body.discuzx5 .header-user-dropdown .block_avatar img { width: 44px !important; height: 44px !important; border-radius: 50%; object-fit: cover; }
body.discuzx5 .notice-dropdown { min-width: 130px; background: #16213c; border: 1px solid rgba(231, 240, 255, .18); border-radius: 10px; overflow: hidden; }
body.discuzx5 .notice-dropdown ul { margin: 0; padding: 5px 0; list-style: none; }
body.discuzx5 .notice-dropdown li { list-style: none; }
body.discuzx5 .notice-dropdown a { display: block; padding: 9px 14px; white-space: nowrap; color: #dce8ff; }

/* X5 当前样式缓存没有输出完整基础 reset：移除浏览器默认白边，并让门户内容与顶栏共用居中宽度。 */
html { margin: 0 !important; min-height: 100%; background: #0b1020 !important; }
body.discuzx5 { margin: 0 !important; min-width: 0 !important; min-height: 100vh; }
body.discuzx5 .wp { margin-left: auto !important; margin-right: auto !important; }
body.discuzx5 #wp.wp { width: min(1180px, calc(100% - 40px)) !important; }
body.discuzx5 main.waoo-orbit-home { width: 100% !important; margin: 0 auto 40px !important; }

/* 门户栏目页：原 static/waoo 的筛选和文章卡片是另一组浅色规则，必须与首页、文章页共用同一面板与文字色阶。 */
body.discuzx5.pg_list #ct.ct2 > .mn { background: rgba(19, 29, 53, .88) !important; border: 1px solid rgba(231, 240, 255, .14); border-radius: 18px; overflow: hidden; }
body.discuzx5.pg_list #ct .mn > .bm > .bm_h { background: transparent !important; border-bottom-color: rgba(231, 240, 255, .14) !important; padding-left: 28px; padding-right: 28px; }
body.discuzx5 .waoo-native-category-description { color: #9eadc9 !important; }
body.discuzx5 .waoo-category-filters { padding: 18px 28px 2px !important; }
body.discuzx5 .waoo-category-filters a { background: rgba(255, 255, 255, .055) !important; border-color: rgba(231, 240, 255, .16) !important; color: #c7d2e7 !important; }
body.discuzx5 .waoo-category-filters a:hover { background: rgba(169, 241, 207, .10) !important; border-color: rgba(169, 241, 207, .56) !important; color: #a9f1cf !important; }
body.discuzx5 .waoo-category-filters a.is-active { background: #a9f1cf !important; border-color: #a9f1cf !important; color: #0b2026 !important; }
body.discuzx5 .waoo-category-grid { padding: 24px 28px 28px !important; }
body.discuzx5 .waoo-category-card,
body.discuzx5 .waoo-category-empty { background: rgba(25, 37, 65, .92) !important; border-color: rgba(231, 240, 255, .14) !important; box-shadow: 0 14px 30px rgba(0, 0, 0, .16); }
body.discuzx5 .waoo-category-card-body { background: transparent !important; }
body.discuzx5 .waoo-category-card h2,
body.discuzx5 .waoo-category-card h2 a,
body.discuzx5 .waoo-category-empty strong { color: #f4f8ff !important; }
body.discuzx5 .waoo-category-card-summary,
body.discuzx5 .waoo-category-empty p { color: #c7d2e7 !important; }
body.discuzx5 .waoo-category-card-meta,
body.discuzx5 .waoo-category-card-edit,
body.discuzx5 .waoo-category-load-status { color: #9eadc9 !important; }
body.discuzx5 .waoo-category-card-type,
body.discuzx5 .waoo-category-card-meta a { color: #a9f1cf !important; }

/* 同源的论坛首页、主题列表和帖子标题也显式采用相同等级，避免原样式缓存的浅底规则重新介入。 */
body.discuzx5 .fl .bm,
body.discuzx5 .fl .bm_c,
body.discuzx5 .fl_tb,
body.discuzx5 .fl_tb td,
body.discuzx5 .tl tbody tr,
body.discuzx5 .tl tbody td { background: rgba(19, 29, 53, .88) !important; border-color: rgba(231, 240, 255, .14) !important; }
body.discuzx5 .fl_tb h2 a,
body.discuzx5 .tl .xst,
body.discuzx5 .tl .xst a,
body.discuzx5 .plc .ts,
body.discuzx5 .plc .ts a { color: #f4f8ff !important; }
body.discuzx5 .fl_tb .xg2,
body.discuzx5 .tl .by,
body.discuzx5 .tl .by a,
body.discuzx5 .plc .authi,
body.discuzx5 .plc .authi a { color: #9eadc9 !important; }

/* 全站共用顶部搜索：原 X5 图标路径未进入当前样式缓存，改为纯 CSS 放大镜，避免出现白色横线。 */
body.discuzx5 .header-searcher .searcher-wrap { position: relative; }
body.discuzx5 .header-searcher .search-input { width: 210px; height: 34px; padding: 0 38px 0 12px; box-sizing: border-box; }
body.discuzx5 .header-searcher .search-icon {
  position: absolute; top: 50%; right: 0; display: flex; align-items: center; justify-content: center;
  width: 36px; height: 34px; margin: 0; padding: 0; border: 0 !important; transform: translateY(-50%);
  background: transparent !important; cursor: pointer;
}
body.discuzx5 .header-searcher .search-icon::before { width: 10px; height: 10px; border: 2px solid #a9f1cf; border-radius: 50%; content: ""; box-sizing: border-box; }
body.discuzx5 .header-searcher .search-icon::after { position: absolute; width: 6px; height: 2px; margin: 9px 0 0 10px; border-radius: 2px; background: #a9f1cf; content: ""; transform: rotate(45deg); }

/* Discuz 原生搜索页保留现有检索能力，仅替换为夜航面板、字段与结果列表。 */
body.discuzx5 #ct .mw > .searchform,
body.discuzx5 #ct .mw > .tl { margin-bottom: 18px; padding: 26px 30px; background: rgba(19, 29, 53, .90); border: 1px solid rgba(231, 240, 255, .14); border-radius: 16px; }
body.discuzx5 #scform { margin: 0 !important; color: #c7d2e7; }
body.discuzx5 #scform h1 a { color: #f4f8ff !important; }
body.discuzx5 #scform_tb { border-bottom-color: rgba(231, 240, 255, .14) !important; }
body.discuzx5 #scform_tb a { color: #9eadc9 !important; }
body.discuzx5 #scform_tb a.a,
body.discuzx5 #scform_tb a:hover { color: #a9f1cf !important; border-bottom-color: #a9f1cf !important; }
body.discuzx5 #scform_srchtxt { height: 40px; padding: 0 13px; background: rgba(255, 255, 255, .055) !important; border-color: rgba(231, 240, 255, .18) !important; color: #f4f8ff !important; box-sizing: border-box; }
body.discuzx5 #scform_submit { min-height: 40px; padding: 0 16px; background: #a9f1cf !important; border-color: #a9f1cf !important; color: #0b2026 !important; border-radius: 8px; }
body.discuzx5 #ct .mw > .tl h2,
body.discuzx5 #ct .mw > .tl h3,
body.discuzx5 #ct .mw > .tl h3 a { color: #f4f8ff !important; }
body.discuzx5 #ct .mw > .tl .emp,
body.discuzx5 #ct .mw > .tl p { color: #c7d2e7 !important; }
body.discuzx5 #ct .mw > .tl .xg1,
body.discuzx5 #ct .mw > .tl .xg1 a { color: #9eadc9 !important; }
body.discuzx5 #ct .mw > .tl .slst { border-top-color: rgba(231, 240, 255, .14) !important; }
body.discuzx5 #ct .mw > .tl .slst li { border-bottom-color: rgba(231, 240, 255, .14) !important; }
body.discuzx5 #ct .mw > .tl .slst li:hover { background: rgba(169, 241, 207, .055); }

/* 论坛首页：保留 Discuz 的版块表、统计、最新主题和跳转地址，仅把原始表格排成夜航信息卡。 */
body.discuzx5 .waoo-community-nav { margin: 0 0 18px !important; padding: 8px !important; background: rgba(19, 29, 53, .86) !important; border: 1px solid rgba(231, 240, 255, .14) !important; border-radius: 14px; }
body.discuzx5 .waoo-community-nav a { border-left: 0 !important; border-radius: 9px; color: #c7d2e7 !important; }
body.discuzx5 .waoo-community-nav a span { color: #9eadc9 !important; }
body.discuzx5 .waoo-community-nav a.is-active,
body.discuzx5 .waoo-community-nav a:hover { background: rgba(169, 241, 207, .13) !important; color: #a9f1cf !important; }
body.discuzx5 #chart { margin: 0 0 18px; padding: 13px 17px; background: rgba(19, 29, 53, .72); border: 1px solid rgba(231, 240, 255, .13); border-radius: 12px; color: #9eadc9; }
body.discuzx5 #chart a { color: #a9f1cf !important; }
body.discuzx5 #ct > .mn > .fl.bm { overflow: hidden; background: rgba(19, 29, 53, .86) !important; border: 1px solid rgba(231, 240, 255, .14); border-radius: 18px; }
body.discuzx5 #ct > .mn > .fl.bm > .bm_h { padding: 19px 24px; background: rgba(255, 255, 255, .025) !important; border-bottom: 1px solid rgba(231, 240, 255, .14) !important; }
body.discuzx5 #ct > .mn > .fl.bm > .bm_h h2 { color: #f4f8ff !important; }
body.discuzx5 #ct > .mn > .fl.bm > .bm_c { background: transparent !important; }
body.discuzx5 #ct > .mn > .fl.bm .fl_tb { width: 100%; border-collapse: separate; border-spacing: 0; }
body.discuzx5 #ct > .mn > .fl.bm .fl_tb tr { display: grid; grid-template-columns: 76px minmax(0, 1fr) 92px minmax(250px, .82fr); align-items: center; min-height: 126px; background: rgba(25, 37, 65, .72); border-bottom: 1px solid rgba(231, 240, 255, .12); transition: background .2s ease; }
body.discuzx5 #ct > .mn > .fl.bm .fl_tb tr:hover { background: rgba(169, 241, 207, .075) !important; }
body.discuzx5 #ct > .mn > .fl.bm .fl_tb tr:last-child:not(:has(td)) { display: none; }
body.discuzx5 #ct > .mn > .fl.bm .fl_tb td { display: block; min-width: 0; padding: 22px 14px; background: transparent !important; border: 0 !important; box-sizing: border-box; }
body.discuzx5 #ct > .mn > .fl.bm .fl_tb .fl_icn { display: flex; align-items: center; justify-content: center; width: auto !important; min-height: 0 !important; margin: 0 !important; padding-right: 0; }
body.discuzx5 #ct > .mn > .fl.bm .fl_tb .fl_icn a { display: flex; align-items: center; justify-content: center; width: 43px; height: 43px; border: 1px solid rgba(169, 241, 207, .45); border-radius: 14px; background: rgba(169, 241, 207, .12); }
body.discuzx5 #ct > .mn > .fl.bm .fl_tb .fl_icn img { display: none; }
body.discuzx5 #ct > .mn > .fl.bm .fl_tb .fl_icn a::before { color: #a9f1cf; content: "✦"; font-size: 20px; }
body.discuzx5 #ct > .mn > .fl.bm .fl_tb h2 { margin: 0 0 7px; font-size: 18px; line-height: 1.35; }
body.discuzx5 #ct > .mn > .fl.bm .fl_tb h2 a { color: #f4f8ff !important; }
body.discuzx5 #ct > .mn > .fl.bm .fl_tb h2 em { color: #a9f1cf !important; font-style: normal; }
body.discuzx5 #ct > .mn > .fl.bm .fl_tb .xg2 { margin: 0; color: #aebbd5 !important; line-height: 1.65; }
body.discuzx5 #ct > .mn > .fl.bm .fl_tb .fl_i { color: #a9f1cf !important; text-align: center; font-size: 13px; }
body.discuzx5 #ct > .mn > .fl.bm .fl_tb .fl_i .xg1 { color: #9eadc9 !important; }
body.discuzx5 #ct > .mn > .fl.bm .fl_tb .fl_by { width: auto !important; padding-left: 20px; border-left: 1px solid rgba(231, 240, 255, .12) !important; color: #9eadc9; }
body.discuzx5 #ct > .mn > .fl.bm .fl_tb .fl_by a { color: #c7d2e7 !important; }
body.discuzx5 #ct > .mn > .fl.bm .fl_tb .fl_by a:hover { color: #a9f1cf !important; }
body.discuzx5 #ct > .mn > .fl.bm .fl_tb .fl_by cite { display: block; margin-top: 6px; color: #9eadc9; font-style: normal; font-size: 12px; }

/* 同一论坛链路的分版列表、主题页和发帖面板：让内容层级与首页卡片保持一致，不动任何论坛操作 DOM。 */
body.discuzx5.pg_forumdisplay .tl,
body.discuzx5.pg_viewthread .pl,
body.discuzx5.pg_post .bm { overflow: hidden; border: 1px solid rgba(231, 240, 255, .14) !important; border-radius: 16px; box-shadow: 0 16px 34px rgba(0, 0, 0, .14); }
body.discuzx5.pg_forumdisplay .tl tr,
body.discuzx5.pg_viewthread .pl .ad,
body.discuzx5.pg_viewthread .pl .pls,
body.discuzx5.pg_viewthread .pl .plc { background: rgba(25, 37, 65, .72) !important; }
body.discuzx5.pg_forumdisplay .tl tr:hover td { background: rgba(169, 241, 207, .075) !important; }
body.discuzx5.pg_post .tedt .bar,
body.discuzx5.pg_post .tedt .area { background: rgba(25, 37, 65, .82) !important; }

/* 主题自带 extend_common 恢复列表结构后，统一把原生帖子项收束为夜航的阅读卡，而不替换其原有内容和操作。 */
body.discuzx5.pg_forumdisplay #threadlist { background: transparent !important; border: 0 !important; box-shadow: none; }
body.discuzx5.pg_forumdisplay #threadlist > .bm_c { padding: 0 !important; background: transparent !important; }
body.discuzx5.pg_forumdisplay .dz_list_top { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 12px; margin: 0 0 14px; padding: 12px 16px; background: rgba(19, 29, 53, .82); border: 1px solid rgba(231, 240, 255, .14); border-radius: 12px; color: #9eadc9; }
body.discuzx5.pg_forumdisplay .dz_list_top .pipe { display: none; }
body.discuzx5.pg_forumdisplay .dz_list_top a { color: #aebbd5 !important; }
body.discuzx5.pg_forumdisplay .dz_list_top .kmon,
body.discuzx5.pg_forumdisplay .dz_list_top a:hover { color: #a9f1cf !important; }
body.discuzx5.pg_forumdisplay .forumportal_listc { margin: 0 !important; overflow: visible !important; }
body.discuzx5.pg_forumdisplay .forumportal_listc li.kmlist { margin: 0 0 10px; padding: 20px 22px; min-height: 0; background: rgba(25, 37, 65, .80); border: 1px solid rgba(231, 240, 255, .14); border-radius: 14px; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
body.discuzx5.pg_forumdisplay .forumportal_listc li.kmlist:hover { background: rgba(31, 48, 82, .92); border-color: rgba(169, 241, 207, .46); transform: translateY(-1px); }
body.discuzx5.pg_forumdisplay .forumportal_listc .kmtit { height: auto; min-height: 24px; margin: 0; color: #f4f8ff !important; font-size: 17px; line-height: 1.48; white-space: normal; }
body.discuzx5.pg_forumdisplay .forumportal_listc .km_subject { color: #f4f8ff !important; }
body.discuzx5.pg_forumdisplay .forumportal_listc li .kmtxt { margin-top: 9px; color: #c7d2e7 !important; line-height: 1.7; }
body.discuzx5.pg_forumdisplay .forumportal_listc .kmfoot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; height: auto; margin-top: 14px; color: #9eadc9 !important; }
body.discuzx5.pg_forumdisplay .forumportal_listc .kmfoot a { float: none; margin: 0; color: #aebbd5 !important; }
body.discuzx5.pg_forumdisplay .forumportal_listc .kmfoot .kmimg { flex: 0 0 auto; width: 24px; height: 24px; margin: 0; }
body.discuzx5.pg_forumdisplay .forumportal_listc .kmfoot .kmtime { float: none; margin: 0; font-family: inherit; }
body.discuzx5.pg_forumdisplay .forumportal_listc .kmfoot .kmpl,
body.discuzx5.pg_forumdisplay .forumportal_listc .kmfoot .kmck { float: none; margin: 0 0 0 auto; color: #9eadc9; }
body.discuzx5.pg_forumdisplay .forumportal_listc .kmfoot .kmpl + .kmck { margin-left: -5px; }
body.discuzx5.pg_forumdisplay .forumportal_listc .kmfoot .kmbg { padding: 3px 7px; background: rgba(169, 241, 207, .10) !important; border-radius: 999px; color: #a9f1cf !important; }

/* 帖子阅读与编辑页的原生结构样式恢复后，明确正文、作者栏、编辑器和表单的深色层级。 */
body.discuzx5.pg_viewthread .pl .pls { background: rgba(18, 29, 53, .94) !important; border-right-color: rgba(231, 240, 255, .14) !important; }
body.discuzx5.pg_viewthread .pl .pls .avatar .avtm { background: rgba(169, 241, 207, .08); border-color: rgba(169, 241, 207, .28); }
body.discuzx5.pg_viewthread .pl .pls .pi a,
body.discuzx5.pg_viewthread .pl .pls .pil { color: #aebbd5 !important; }
body.discuzx5.pg_viewthread .pl .plc { color: #c7d2e7 !important; }
body.discuzx5.pg_viewthread .pl .plc .t_f,
body.discuzx5.pg_viewthread .pl .plc .t_f * { color: inherit; }
body.discuzx5.pg_viewthread .pl .plc .t_f a { color: #a9f1cf !important; }
body.discuzx5.pg_post #postform #ct div.bm,
body.discuzx5.pg_post #postbox { background: rgba(19, 29, 53, .90) !important; }
body.discuzx5.pg_post #subject,
body.discuzx5.pg_post .px,
body.discuzx5.pg_post .tedt { background: rgba(25, 37, 65, .82) !important; border-color: rgba(231, 240, 255, .18) !important; color: #f4f8ff !important; }

/* 顶栏提醒不再依赖未进入当前缓存的 dzicon 字体：所有页面使用同一枚可控的 CSS 信封图标。 */
body.discuzx5 .header-notice .notice-icon { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0 !important; border-radius: 10px; }
body.discuzx5 .header-notice .notice-icon:hover,
body.discuzx5 .header-notice.open .notice-icon { background: rgba(169, 241, 207, .11) !important; }
body.discuzx5 .header-notice .notice-icon .dzicon { position: relative; display: block; width: 19px; height: 15px; padding: 0 !important; color: transparent !important; background: linear-gradient(145deg, transparent 47%, #a9f1cf 48% 53%, transparent 54%), linear-gradient(215deg, transparent 47%, #a9f1cf 48% 53%, transparent 54%); border: 1.5px solid #a9f1cf; border-radius: 3px; box-sizing: border-box; }
body.discuzx5 .header-notice .notice-icon .dzicon::before,
body.discuzx5 .header-notice .notice-icon .dzicon::after { display: none !important; content: "" !important; }
body.discuzx5 .header-notice .notice-icon .dot { top: 2px; right: 1px; min-width: 6px; height: 6px; padding: 0; border: 2px solid #10182e; background: #ffbd72; font-size: 0; line-height: 0; }

/* 论坛文字层级：标题、摘要、辅助信息、编辑区各自固定字号，避免原模板与移动规则互相放大。 */
body.discuzx5.pg_forum .waoo-community-nav a strong { font-size: 14px !important; line-height: 1.35; }
body.discuzx5.pg_forum .waoo-community-nav a span { font-size: 12px !important; line-height: 1.35; }
body.discuzx5.pg_forum #pt { font-size: 13px; }
body.discuzx5.pg_forum .bml .bm_h h1 { font-size: 27px !important; line-height: 1.28; }
body.discuzx5.pg_forum .bml .bm_h h1 .xs1 { font-size: 12px !important; font-weight: 400; }
body.discuzx5.pg_forumdisplay .dz_list_top { font-size: 13px; }
body.discuzx5.pg_forumdisplay .forumportal_listc .kmtit { font-size: 17px; }
body.discuzx5.pg_forumdisplay .forumportal_listc li .kmtxt { font-size: 14px; }
body.discuzx5.pg_forumdisplay .forumportal_listc .kmfoot { font-size: 12px; }
body.discuzx5.pg_viewthread .pl .ts { font-size: 20px; line-height: 1.45; }
body.discuzx5.pg_viewthread .pl .t_f { font-size: 16px; line-height: 1.9; }
body.discuzx5.pg_post #subject { font-size: 17px !important; }

@media (max-width: 760px) {
  body.discuzx5.pg_forumdisplay .forumportal_listc li.kmlist { padding: 17px; }
  body.discuzx5.pg_forumdisplay .forumportal_listc .kmfoot .kmpl,
  body.discuzx5.pg_forumdisplay .forumportal_listc .kmfoot .kmck { margin-left: 0; }
  body.discuzx5 .header-right { gap: 8px; }
  body.discuzx5 .header-searcher { display: block !important; margin-right: 0 !important; }
  body.discuzx5 .header-searcher .search-input { width: min(280px, calc(100vw - 190px)) !important; height: 42px; font-size: 15px !important; }
  body.discuzx5 .header-searcher .search-icon { width: 42px; height: 42px; }
  body.discuzx5 .header-user-avatar,
  body.discuzx5 .header-user-avatar > a,
  body.discuzx5 .header-user-avatar img { width: 38px !important; height: 38px !important; }
  body.discuzx5.pg_forum .bml .bm_h h1 { font-size: 23px !important; }
  body.discuzx5.pg_forumdisplay .forumportal_listc .kmtit { font-size: 16px; }
  body.discuzx5.pg_viewthread .pl .ts { font-size: 18px; }
  body.discuzx5.pg_viewthread .pl .t_f { font-size: 15px; }
}

@media (max-width: 760px) {
  body.discuzx5 #ct > .mn > .fl.bm .fl_tb tr { grid-template-columns: 58px minmax(0, 1fr); min-height: 0; }
  body.discuzx5 #ct > .mn > .fl.bm .fl_tb .fl_icn { padding: 18px 8px 18px 14px; }
  body.discuzx5 #ct > .mn > .fl.bm .fl_tb td { padding: 18px 14px; }
  body.discuzx5 #ct > .mn > .fl.bm .fl_tb .fl_i,
  body.discuzx5 #ct > .mn > .fl.bm .fl_tb .fl_by { display: none; }
}

@media (max-width: 760px) {
  body.discuzx5 #wp.wp { width: calc(100% - 24px) !important; }
  body.discuzx5 .waoo-category-filters { padding-left: 18px !important; padding-right: 18px !important; }
  body.discuzx5 .waoo-category-grid { padding-left: 18px !important; padding-right: 18px !important; }
}

@media (max-width: 760px) {
  body.discuzx5 .waoo-orbit-home { width: calc(100% - 24px) !important; }
  body.discuzx5 .waoo-orbit-home .waoo-portal-hero { display: block !important; min-height: 0; padding: 30px 25px !important; }
  body.discuzx5 .waoo-orbit-home .waoo-portal-hero h1 { font-size: 39px !important; letter-spacing: -2px !important; }
  body.discuzx5 .waoo-orbit-home .waoo-orbit-art { display: none; }
  body.discuzx5 .waoo-orbit-home .waoo-portal-overview { grid-template-columns: 1fr !important; }
}

@media (max-width: 980px) {
  body.discuzx5 .waoo-home-intro,
  body.discuzx5 .bm,
  body.discuzx5 .frame { border-radius: 15px; }
}
