/* 爱玩社：消息/通知中心浅色简洁版 - 只压 Discuz 默认 home space 页面 */
body#nv_home.pg_space {
  background: #f3f7fb !important;
  color: #102033 !important;
}

body#nv_home.pg_space .aws-wp,
body#nv_home.pg_space #wp {
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 22px 0 56px !important;
  background: transparent !important;
}

/* 默认两栏结构重新排版，解决宽屏下左侧跑偏 */
body#nv_home.pg_space #ct,
body#nv_home.pg_space .ct2_a,
body#nv_home.pg_space .ct2 {
  width: 100% !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 22px !important;
  box-sizing: border-box !important;
}

body#nv_home.pg_space #ct:before,
body#nv_home.pg_space #ct:after,
body#nv_home.pg_space .ct2_a:before,
body#nv_home.pg_space .ct2_a:after,
body#nv_home.pg_space .ct2:before,
body#nv_home.pg_space .ct2:after {
  display: none !important;
}

/* 左侧通知/消息菜单 */
body#nv_home.pg_space .appl,
body#nv_home.pg_space .sd {
  float: none !important;
  width: 210px !important;
  min-width: 210px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  border: 1px solid #dfe8f4 !important;
  border-radius: 14px !important;
  box-shadow: 0 14px 38px rgba(15, 35, 64, .08) !important;
  overflow: hidden !important;
  color: #14243a !important;
  writing-mode: horizontal-tb !important;
  word-break: normal !important;
}

body#nv_home.pg_space .appl h2,
body#nv_home.pg_space .sd h2,
body#nv_home.pg_space .tbn h2 {
  height: auto !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  padding: 16px 18px 12px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #0f1f33 !important;
  border-bottom: 1px solid #edf2f8 !important;
  white-space: nowrap !important;
  text-align: left !important;
  background: #fff !important;
}

body#nv_home.pg_space .appl ul,
body#nv_home.pg_space .sd ul,
body#nv_home.pg_space .tbn ul {
  margin: 0 !important;
  padding: 10px !important;
  list-style: none !important;
}

body#nv_home.pg_space .appl li,
body#nv_home.pg_space .sd li,
body#nv_home.pg_space .tbn li {
  float: none !important;
  display: block !important;
  width: auto !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  height: auto !important;
  line-height: normal !important;
}

body#nv_home.pg_space .appl li a,
body#nv_home.pg_space .sd li a,
body#nv_home.pg_space .tbn li a {
  display: block !important;
  width: auto !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  color: #41536b !important;
  font-size: 14px !important;
  line-height: 20px !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  writing-mode: horizontal-tb !important;
  letter-spacing: 0 !important;
}

body#nv_home.pg_space .appl li.a a,
body#nv_home.pg_space .sd li.a a,
body#nv_home.pg_space .tbn li.a a,
body#nv_home.pg_space .appl li a:hover,
body#nv_home.pg_space .sd li a:hover,
body#nv_home.pg_space .tbn li a:hover {
  background: #eaf3ff !important;
  color: #1677ff !important;
  font-weight: 700 !important;
}

/* 主内容区 */
body#nv_home.pg_space .mn {
  float: none !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  margin: 0 !important;
  padding: 22px !important;
  background: #fff !important;
  border: 1px solid #dfe8f4 !important;
  border-radius: 14px !important;
  box-shadow: 0 14px 38px rgba(15, 35, 64, .08) !important;
  color: #13233a !important;
  box-sizing: border-box !important;
}

body#nv_home.pg_space .mn * {
  box-sizing: border-box !important;
}

body#nv_home.pg_space .mn,
body#nv_home.pg_space .mn p,
body#nv_home.pg_space .mn td,
body#nv_home.pg_space .mn th,
body#nv_home.pg_space .mn div,
body#nv_home.pg_space .mn span,
body#nv_home.pg_space .mn li {
  color: #13233a !important;
}

body#nv_home.pg_space .mn a {
  color: #1677ff !important;
  text-decoration: none !important;
}

body#nv_home.pg_space .mn a:hover {
  color: #0b63d8 !important;
}

/* 顶部 Tab：私人消息 / 公共消息 / 发送消息 */
body#nv_home.pg_space .tb,
body#nv_home.pg_space .tbmu,
body#nv_home.pg_space .pm_tb,
body#nv_home.pg_space .tb cl {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 0 0 16px !important;
  padding: 0 0 14px !important;
  border-bottom: 1px solid #e8eef6 !important;
  background: transparent !important;
}

body#nv_home.pg_space .tb li,
body#nv_home.pg_space .tbmu a,
body#nv_home.pg_space .tb a {
  float: none !important;
  margin: 0 !important;
}

body#nv_home.pg_space .tb a,
body#nv_home.pg_space .tbmu a,
body#nv_home.pg_space .tb .a a,
body#nv_home.pg_space .tb .a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 34px !important;
  padding: 8px 14px !important;
  border: 1px solid #dce6f2 !important;
  border-radius: 10px !important;
  background: #f7faff !important;
  color: #26364d !important;
  font-weight: 700 !important;
  line-height: 18px !important;
}

body#nv_home.pg_space .tb .a a,
body#nv_home.pg_space .tb .a,
body#nv_home.pg_space .tbmu a.a,
body#nv_home.pg_space .tb a.a {
  background: #2fd663 !important;
  border-color: #2fd663 !important;
  color: #fff !important;
}

/* 未读提示条 */
body#nv_home.pg_space .notice,
body#nv_home.pg_space .pm_o,
body#nv_home.pg_space .tip,
body#nv_home.pg_space .tbmu + .notice {
  background: #fff7ed !important;
  border: 1px solid #fed7aa !important;
  color: #9a3412 !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  margin: 0 0 16px !important;
}

/* 消息列表：从老论坛列表改成清楚的卡片 */
body#nv_home.pg_space .xld,
body#nv_home.pg_space .pmlist,
body#nv_home.pg_space .pm_list,
body#nv_home.pg_space .nts {
  margin: 0 !important;
  padding: 0 !important;
}

body#nv_home.pg_space .xld dl,
body#nv_home.pg_space .xld li,
body#nv_home.pg_space .pmlist li,
body#nv_home.pg_space .pm_list li,
body#nv_home.pg_space .nts dl,
body#nv_home.pg_space .bbda {
  position: relative !important;
  display: block !important;
  margin: 0 0 14px !important;
  padding: 16px 18px !important;
  border: 1px solid #e2eaf5 !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 6px 18px rgba(15, 35, 64, .05) !important;
  color: #17243a !important;
}

body#nv_home.pg_space .xld dl:hover,
body#nv_home.pg_space .xld li:hover,
body#nv_home.pg_space .pmlist li:hover,
body#nv_home.pg_space .pm_list li:hover,
body#nv_home.pg_space .nts dl:hover {
  border-color: #c9daf1 !important;
  box-shadow: 0 10px 28px rgba(15, 35, 64, .08) !important;
}

body#nv_home.pg_space .avt,
body#nv_home.pg_space .pm_avt,
body#nv_home.pg_space .xld dt,
body#nv_home.pg_space .xlda .avt {
  float: left !important;
  width: 58px !important;
  margin: 0 14px 0 0 !important;
}

body#nv_home.pg_space .avt img,
body#nv_home.pg_space .pm_avt img,
body#nv_home.pg_space .xld dt img,
body#nv_home.pg_space .xlda .avt img,
body#nv_home.pg_space .mn img.avatar {
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid #e5eef8 !important;
  background: #f4f8ff !important;
}

body#nv_home.pg_space .xld dd,
body#nv_home.pg_space .pm_c,
body#nv_home.pg_space .ptm,
body#nv_home.pg_space .pmlist .pm_c {
  overflow: hidden !important;
  margin: 0 !important;
  line-height: 1.65 !important;
  color: #17243a !important;
}

body#nv_home.pg_space .xld dd p,
body#nv_home.pg_space .pm_c p,
body#nv_home.pg_space .ptm p {
  margin: 4px 0 0 !important;
  color: #33445d !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

body#nv_home.pg_space .xld dd em,
body#nv_home.pg_space .pm_date,
body#nv_home.pg_space .date,
body#nv_home.pg_space .xg1 {
  color: #7b8aa0 !important;
  font-size: 12px !important;
}

body#nv_home.pg_space .pm_op,
body#nv_home.pg_space .xld .y,
body#nv_home.pg_space .y {
  float: right !important;
  margin-left: 16px !important;
  color: #6b7b91 !important;
}

/* 表单和按钮 */
body#nv_home.pg_space .mn input[type="text"],
body#nv_home.pg_space .mn input[type="password"],
body#nv_home.pg_space .mn textarea,
body#nv_home.pg_space .mn select {
  border: 1px solid #d8e3f1 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #13233a !important;
  padding: 8px 10px !important;
}

body#nv_home.pg_space .pn,
body#nv_home.pg_space .pnc,
body#nv_home.pg_space button,
body#nv_home.pg_space input[type="submit"] {
  border-radius: 10px !important;
  border: 1px solid #2fd663 !important;
  background: #2fd663 !important;
  color: #fff !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

body#nv_home.pg_space .pg,
body#nv_home.pg_space .pages {
  margin-top: 16px !important;
}

/* 宽屏/小屏都不再跑偏 */
@media (max-width: 900px) {
  body#nv_home.pg_space .aws-wp,
  body#nv_home.pg_space #wp {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  body#nv_home.pg_space #ct,
  body#nv_home.pg_space .ct2_a,
  body#nv_home.pg_space .ct2 {
    display: block !important;
  }
  body#nv_home.pg_space .appl,
  body#nv_home.pg_space .sd {
    width: 100% !important;
    min-width: 0 !important;
    margin-bottom: 14px !important;
  }
  body#nv_home.pg_space .mn {
    width: 100% !important;
    padding: 16px !important;
  }
}

/* ===== 2026-06-09：消息/通知页顶部空白和背景修正 ===== */
html body#nv_home.pg_space,
body#nv_home.pg_space .aws-page {
  background: #f3f6fa !important;
  background-image: none !important;
}

body#nv_home.pg_space .header {
  background: #07111c !important;
}

body#nv_home.pg_space #wp.aws-wp,
body#nv_home.pg_space #wp {
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding-top: 10px !important;
  padding-bottom: 46px !important;
  background: transparent !important;
  background-image: none !important;
}

/* 面包屑不要撑出一大块空白 */
body#nv_home.pg_space #pt {
  height: auto !important;
  min-height: 0 !important;
  line-height: 22px !important;
  margin: 0 auto 10px !important;
  padding: 0 !important;
  color: #64748b !important;
  background: transparent !important;
  border: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

body#nv_home.pg_space #pt *,
body#nv_home.pg_space #pt a,
body#nv_home.pg_space #pt em,
body#nv_home.pg_space #pt span {
  writing-mode: horizontal-tb !important;
  white-space: nowrap !important;
  color: #64748b !important;
  font-size: 13px !important;
  line-height: 22px !important;
  letter-spacing: 0 !important;
}

body#nv_home.pg_space #pt a:hover {
  color: #1677ff !important;
}

/* 内容区上移，去掉奇怪的深色背景感 */
body#nv_home.pg_space #ct,
body#nv_home.pg_space .ct2_a,
body#nv_home.pg_space .ct2 {
  margin-top: 0 !important;
  padding-top: 0 !important;
  background: transparent !important;
  background-image: none !important;
}

/* 主内容和右侧菜单靠上、留白更自然 */
body#nv_home.pg_space .mn {
  padding: 20px !important;
  border-radius: 16px !important;
  box-shadow: 0 16px 42px rgba(15, 35, 64, .08) !important;
}

body#nv_home.pg_space .appl,
body#nv_home.pg_space .sd,
body#nv_home.pg_space .tbn {
  border-radius: 16px !important;
  box-shadow: 0 16px 42px rgba(15, 35, 64, .08) !important;
}

/* 消息卡片更紧凑一点，页面不会显得空 */
body#nv_home.pg_space .xld dl,
body#nv_home.pg_space .xld li,
body#nv_home.pg_space .pmlist li,
body#nv_home.pg_space .pm_list li,
body#nv_home.pg_space .nts dl,
body#nv_home.pg_space .bbda {
  margin-bottom: 12px !important;
  padding: 14px 16px !important;
}

/* 左侧残留竖排字修正：强制所有通知菜单文字横向 */
body#nv_home.pg_space .appl *,
body#nv_home.pg_space .sd *,
body#nv_home.pg_space .tbn * {
  writing-mode: horizontal-tb !important;
  letter-spacing: 0 !important;
  word-break: keep-all !important;
}

@media (max-width: 900px) {
  body#nv_home.pg_space #wp.aws-wp,
  body#nv_home.pg_space #wp {
    padding-top: 8px !important;
  }
}
