/* ENvideo 门户皮肤 — 仅配色/品牌，不改 Discuz 布局结构 */
:root {
  --ev-bg-primary: #0b0d14;
  --ev-bg-secondary: #11141c;
  --ev-bg-card: rgba(18, 23, 32, 0.92);
  --ev-bg-elevated: rgba(255, 255, 255, 0.04);
  --ev-text-primary: #f0f2f5;
  --ev-text-secondary: rgba(240, 242, 245, 0.62);
  --ev-text-muted: rgba(240, 242, 245, 0.38);
  --ev-accent: #00dcc0;
  --ev-accent-hover: #00c8a8;
  --ev-accent-light: rgba(0, 220, 192, 0.12);
  --ev-border: rgba(255, 255, 255, 0.08);
  --ev-nav-h: 52px;
}

html.envideo-theme,
body.envideo-theme {
  background:
    radial-gradient(ellipse 80% 60% at 12% 8%, rgba(107, 168, 255, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 88% 15%, rgba(0, 220, 192, 0.05) 0%, transparent 50%),
    linear-gradient(175deg, #080a14 0%, #0a0d18 35%, #0c1020 60%, #0b0e1a 100%) !important;
  background-attachment: fixed !important;
  color: var(--ev-text-primary) !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

body.envideo-theme {
  padding-top: var(--ev-nav-h) !important;
}

body.envideo-theme > .xi1.bm.bm_c {
  display: none !important;
}

/* ===== 门户顶栏 ===== */
.ev-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--ev-nav-h);
  background: rgba(8, 9, 13, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ev-border);
}

.ev-navbar-inner {
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
}

.ev-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.ev-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  flex-shrink: 0;
}



.ev-btn-portal,
.ev-btn-login {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
}

.ev-btn-portal {
  background: linear-gradient(135deg, #00dcc0, #00c8a8);
  color: #08090d !important;
}

.ev-btn-login {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--ev-text-primary) !important;
}

.ev-user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 10px 2px 3px;
  border-radius: 999px;
  border: 1px solid var(--ev-border);
  background: var(--ev-bg-elevated);
  text-decoration: none !important;
}

.ev-user-chip img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.ev-user-chip span {
  font-size: 12px;
  color: var(--ev-text-secondary) !important;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Discuz 顶栏（保留结构，仅换色 + 隐藏重复 Logo） ===== */
body.envideo-theme #toptb {
  background: rgba(10, 14, 20, 0.6) !important;
  border-bottom: 1px solid var(--ev-border) !important;
}

body.envideo-theme #toptb,
body.envideo-theme #toptb a {
  color: var(--ev-text-muted) !important;
}

body.envideo-theme #hd {
  background: rgba(12, 16, 24, 0.85) !important;
  border-bottom: 1px solid var(--ev-border) !important;
}

body.envideo-theme #hd .hdc {
  display: none !important;
}

body.envideo-theme #hd .boardlogo,
body.envideo-theme #hd h2 {
  display: none !important;
}

body.envideo-theme #nv {
  background: transparent !important;
}

body.envideo-theme #nv li a {
  color: var(--ev-text-secondary) !important;
}

body.envideo-theme #nv li.a a,
body.envideo-theme #nv li a:hover {
  color: var(--ev-accent) !important;
  background: var(--ev-accent-light) !important;
}

body.envideo-theme #scbar {
  border-top: 1px solid var(--ev-border) !important;
  background: rgba(255, 255, 255, 0.03) !important;
}

body.envideo-theme #scbar #scbar_txt {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid var(--ev-border) !important;
  color: var(--ev-text-primary) !important;
}

body.envideo-theme #scbar #scbar_txt:focus {
  border-color: rgba(0, 220, 192, 0.45) !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

body.envideo-theme #scbar #scbar_type {
  color: var(--ev-text-secondary) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid var(--ev-border) !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
}

body.envideo-theme #scbar #scbar_type.xg1 {
  color: var(--ev-text-secondary) !important;
}

body.envideo-theme #scbar_type_menu.p_pop,
body.envideo-theme #scbar_type_menu.p_pop li {
  background: var(--ev-bg-secondary) !important;
  border-color: var(--ev-border) !important;
}

body.envideo-theme #scbar_type_menu.p_pop a {
  color: var(--ev-text-primary) !important;
}

body.envideo-theme #scbar_type_menu.p_pop a:hover,
body.envideo-theme #scbar_type_menu.p_pop .curtype {
  background: var(--ev-accent-light) !important;
  color: var(--ev-accent) !important;
}

body.envideo-theme #scbar_hot {
  color: var(--ev-text-muted) !important;
}

body.envideo-theme #scbar_hot .xw1 {
  color: var(--ev-text-muted) !important;
}

body.envideo-theme #scbar_hot a {
  color: var(--ev-accent) !important;
}

body.envideo-theme #scbar_btn {
  color: #08090d !important;
}

body.envideo-theme #scbar table td {
  background: transparent !important;
}

/* ===== 全局文字 / 链接 ===== */
body.envideo-theme,
body.envideo-theme input,
body.envideo-theme button,
body.envideo-theme select,
body.envideo-theme textarea {
  color: var(--ev-text-primary);
}

body.envideo-theme a {
  color: var(--ev-accent);
}

body.envideo-theme a:hover {
  color: var(--ev-accent-hover);
}

body.envideo-theme .xi2,
body.envideo-theme .xi2 a {
  color: var(--ev-accent) !important;
}

body.envideo-theme .xg1,
body.envideo-theme .xg2 {
  color: var(--ev-text-muted) !important;
}

body.envideo-theme .pipe {
  color: var(--ev-border) !important;
}

/* ===== 卡片 / 表格（仅背景色与边框） ===== */
body.envideo-theme .bm,
body.envideo-theme .tl,
body.envideo-theme .fl_tb {
  background: var(--ev-bg-card) !important;
  border-color: var(--ev-border) !important;
}

body.envideo-theme .bm_h,
body.envideo-theme .th {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: var(--ev-border) !important;
  color: var(--ev-text-primary) !important;
}

body.envideo-theme .bm_h h1,
body.envideo-theme .bm_h h2 {
  color: var(--ev-text-primary) !important;
}

body.envideo-theme .bm_c,
body.envideo-theme .tl th,
body.envideo-theme .tl td,
body.envideo-theme .fl_tb td {
  border-color: var(--ev-border) !important;
  color: var(--ev-text-secondary) !important;
}

body.envideo-theme .tl tr th,
body.envideo-theme .tl tr td {
  background: transparent !important;
}

body.envideo-theme .tl tr:hover th,
body.envideo-theme .tl tr:hover td,
body.envideo-theme .tl .threadpre td,
body.envideo-theme .tl .threadpre:hover td {
  background: rgba(255, 255, 255, 0.04) !important;
  background-color: rgba(255, 255, 255, 0.04) !important;
}

body.envideo-theme .tl .newthread tr th,
body.envideo-theme .tl .newthread tr td,
body.envideo-theme .tl tr.new th,
body.envideo-theme .tl tr.new td {
  background: rgba(0, 220, 192, 0.06) !important;
  background-color: rgba(0, 220, 192, 0.06) !important;
}

body.envideo-theme .tl tr:hover.new th,
body.envideo-theme .tl tr:hover.new td {
  background: rgba(0, 220, 192, 0.1) !important;
  background-color: rgba(0, 220, 192, 0.1) !important;
}

body.envideo-theme .tl .common a,
body.envideo-theme .tl .new a,
body.envideo-theme .tl .xst {
  color: var(--ev-text-primary) !important;
}

body.envideo-theme .tl tr:hover .xst {
  color: var(--ev-accent) !important;
}

body.envideo-theme .fl_tb tr:hover td {
  background: rgba(255, 255, 255, 0.04) !important;
  background-color: rgba(255, 255, 255, 0.04) !important;
}

body.envideo-theme .pls,
body.envideo-theme .plc,
body.envideo-theme .pcb,
body.envideo-theme .pct {
  background: rgba(255, 255, 255, 0.02) !important;
  border-color: var(--ev-border) !important;
}

body.envideo-theme .t_f,
body.envideo-theme .pcb,
body.envideo-theme .pstl {
  color: var(--ev-text-secondary) !important;
}

body.envideo-theme #thread_subject,
body.envideo-theme .vwthd h1 {
  color: var(--ev-text-primary) !important;
}

/* ===== 表单 / 按钮 ===== */
body.envideo-theme .px,
body.envideo-theme .pt,
body.envideo-theme input.px,
body.envideo-theme textarea.pt {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: var(--ev-border) !important;
  color: var(--ev-text-primary) !important;
}

body.envideo-theme .pn,
body.envideo-theme button.pn,
body.envideo-theme .pnc,
body.envideo-theme #fastpostsubmit {
  background: linear-gradient(135deg, #00dcc0, #00c8a8) !important;
  border: none !important;
  color: #08090d !important;
}

body.envideo-theme .pn strong,
body.envideo-theme .pn em {
  color: #08090d !important;
}

body.envideo-theme .pg a,
body.envideo-theme .pg strong,
body.envideo-theme .pgb a {
  background: var(--ev-bg-elevated) !important;
  border-color: var(--ev-border) !important;
  color: var(--ev-text-secondary) !important;
}

body.envideo-theme .pg strong {
  background: var(--ev-accent-light) !important;
  color: var(--ev-accent) !important;
}

/* ===== 页脚 ===== */
body.envideo-theme #ft {
  background: rgba(10, 14, 20, 0.9) !important;
  border-top: 1px solid var(--ev-border) !important;
  color: var(--ev-text-muted) !important;
}

body.envideo-theme #ft a {
  color: var(--ev-text-muted) !important;
}

body.envideo-theme #frt,
body.envideo-theme #flk,
body.envideo-theme #category_lk,
body.envideo-theme .bm.lk,
body.envideo-theme #scrolltop,
body.envideo-theme #ft {
  display: none !important;
}

/* ===== 弹层 ===== */
body.envideo-theme .p_pop,
body.envideo-theme .p_pof {
  background: var(--ev-bg-secondary) !important;
  border-color: var(--ev-border) !important;
}

body.envideo-theme .p_pop a:hover {
  background: var(--ev-accent-light) !important;
  color: var(--ev-accent) !important;
}

/* ===== 系统提示页（showmessage：搜索限频、操作结果等） ===== */
body.envideo-theme .nfl .f_c {
  background: var(--ev-bg-card) !important;
  border: 1px solid var(--ev-border) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35) !important;
}

body.envideo-theme .nfl .f_c,
body.envideo-theme .nfl .f_c p,
body.envideo-theme #messagetext,
body.envideo-theme #messagetext p,
body.envideo-theme .alert_error,
body.envideo-theme .alert_info,
body.envideo-theme .alert_right {
  color: var(--ev-text-primary) !important;
}

body.envideo-theme .alert_error a,
body.envideo-theme .alert_info a,
body.envideo-theme .alert_btnleft a,
body.envideo-theme .nfl .f_c a {
  color: var(--ev-accent) !important;
  font-weight: 600 !important;
}

body.envideo-theme .alert_error a:hover,
body.envideo-theme .alert_btnleft a:hover,
body.envideo-theme .nfl .f_c a:hover {
  color: var(--ev-accent-hover) !important;
}

body.envideo-theme .alert_btnleft {
  margin-top: 12px !important;
}

/* ===== 搜索页（search.php，覆盖 style_1_search_forum.css） ===== */
body.envideo-theme#nv_search,
body.envideo-theme.pg_search {
  background:
    radial-gradient(ellipse 80% 60% at 12% 8%, rgba(107, 168, 255, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 88% 15%, rgba(0, 220, 192, 0.05) 0%, transparent 50%),
    linear-gradient(175deg, #080a14 0%, #0a0d18 35%, #0c1020 60%, #0b0e1a 100%) !important;
  background-attachment: fixed !important;
}

body.envideo-theme#nv_search #ct,
body.envideo-theme.pg_search #ct {
  margin: 0 auto !important;
  padding: 0 !important;
  float: none !important;
}

body.envideo-theme#nv_search #wp,
body.envideo-theme.pg_search #wp {
  min-width: 1200px;
}

body.envideo-theme#nv_search .mw,
body.envideo-theme.pg_search .mw {
  width: 100% !important;
  float: none !important;
}

body.envideo-theme#nv_search #scform,
body.envideo-theme.pg_search #scform {
  display: block !important;
  width: 100% !important;
  background: var(--ev-bg-card) !important;
  border: 1px solid var(--ev-border) !important;
  border-radius: 12px !important;
  padding: 16px 24px !important;
  margin: 0 0 16px !important;
  box-sizing: border-box !important;
}

body.envideo-theme#nv_search #scform::before,
body.envideo-theme.pg_search #scform::before {
  content: none;
  display: none;
}

body.envideo-theme#nv_search #scform table,
body.envideo-theme.pg_search #scform table,
body.envideo-theme#nv_search #scform tbody,
body.envideo-theme.pg_search #scform tbody,
body.envideo-theme#nv_search #scform tr,
body.envideo-theme.pg_search #scform tr,
body.envideo-theme#nv_search #scform td,
body.envideo-theme.pg_search #scform td {
  display: block !important;
  width: 100% !important;
  float: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.envideo-theme#nv_search #scform h1,
body.envideo-theme.pg_search #scform h1,
body.envideo-theme#nv_search .searchlogo,
body.envideo-theme.pg_search .searchlogo {
  display: none !important;
}

body.envideo-theme#nv_search #scform_tb,
body.envideo-theme.pg_search #scform_tb {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px 16px !important;
  margin: 0 0 14px !important;
  padding: 0 0 14px !important;
  border-bottom: 1px solid var(--ev-border) !important;
  overflow: visible !important;
}

body.envideo-theme#nv_search #scform_tb .y,
body.envideo-theme.pg_search #scform_tb .y {
  float: none !important;
  margin-left: auto !important;
  display: flex !important;
  gap: 12px !important;
}

body.envideo-theme#nv_search #scform_tb a,
body.envideo-theme.pg_search #scform_tb a {
  float: none !important;
  display: inline-block !important;
  margin: 0 !important;
  height: auto !important;
  line-height: 1.5 !important;
  padding: 4px 0 !important;
  color: var(--ev-text-secondary) !important;
  font-size: 14px !important;
  position: static !important;
}

body.envideo-theme#nv_search #scform_tb a.a,
body.envideo-theme.pg_search #scform_tb a.a {
  color: var(--ev-accent) !important;
  font-weight: 600 !important;
}

body.envideo-theme#nv_search #scform_tb .a::before,
body.envideo-theme.pg_search #scform_tb .a::before {
  display: none !important;
}

body.envideo-theme#nv_search #scform_form,
body.envideo-theme.pg_search #scform_form {
  display: flex !important;
  width: 100% !important;
  border-collapse: separate !important;
}

body.envideo-theme#nv_search #scform_form tr,
body.envideo-theme.pg_search #scform_form tr {
  display: flex !important;
  width: 100% !important;
  align-items: stretch !important;
}

body.envideo-theme#nv_search .td_srchtxt,
body.envideo-theme.pg_search .td_srchtxt {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

body.envideo-theme#nv_search .td_srchbtn,
body.envideo-theme.pg_search .td_srchbtn {
  flex: 0 0 auto !important;
}

body.envideo-theme#nv_search #scform_srchtxt,
body.envideo-theme.pg_search #scform_srchtxt {
  width: 100% !important;
  max-width: none !important;
  height: 42px !important;
  line-height: 42px !important;
  box-sizing: border-box !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid var(--ev-border) !important;
  border-right: none !important;
  color: var(--ev-text-primary) !important;
  border-radius: 8px 0 0 8px !important;
  padding: 0 14px !important;
  outline: none !important;
}

body.envideo-theme#nv_search #scform_srchtxt:focus,
body.envideo-theme.pg_search #scform_srchtxt:focus {
  border-color: rgba(0, 220, 192, 0.45) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

body.envideo-theme#nv_search #scform_submit,
body.envideo-theme.pg_search #scform_submit,
body.envideo-theme#nv_search .schbtn,
body.envideo-theme.pg_search .schbtn {
  width: auto !important;
  min-width: 92px !important;
  height: 42px !important;
  line-height: 42px !important;
  padding: 0 18px !important;
  background: linear-gradient(135deg, #00dcc0, #00c8a8) !important;
  border: none !important;
  color: #08090d !important;
  border-radius: 0 8px 8px 0 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}

body.envideo-theme#nv_search #scform_submit::before,
body.envideo-theme.pg_search #scform_submit::before {
  content: none !important;
  display: none !important;
}

body.envideo-theme#nv_search #scform_submit strong,
body.envideo-theme.pg_search #scform_submit strong {
  display: inline !important;
  color: #08090d !important;
  font-weight: 600 !important;
}

body.envideo-theme#nv_search .sttl,
body.envideo-theme.pg_search .sttl {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 0 12px !important;
}

body.envideo-theme#nv_search .sttl h2,
body.envideo-theme.pg_search .sttl h2 {
  color: var(--ev-text-secondary) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

body.envideo-theme#nv_search .slst,
body.envideo-theme.pg_search .slst {
  width: 100% !important;
  background: var(--ev-bg-card) !important;
  border: 1px solid var(--ev-border) !important;
  border-radius: 12px !important;
  padding: 8px 20px !important;
  box-sizing: border-box !important;
}

body.envideo-theme#nv_search .slst ul,
body.envideo-theme.pg_search .slst ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.envideo-theme#nv_search .slst li,
body.envideo-theme.pg_search .slst li {
  border-bottom: 1px solid var(--ev-border) !important;
  padding: 16px 0 !important;
}

body.envideo-theme#nv_search .slst li:last-child,
body.envideo-theme.pg_search .slst li:last-child {
  border-bottom: none !important;
}

body.envideo-theme#nv_search .slst h3,
body.envideo-theme.pg_search .slst h3 {
  margin: 0 0 8px !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
}

body.envideo-theme#nv_search .slst h3 a,
body.envideo-theme.pg_search .slst h3 a,
body.envideo-theme#nv_search .slst a,
body.envideo-theme.pg_search .slst a {
  color: var(--ev-text-primary) !important;
  text-decoration: none !important;
  font-weight: 500 !important;
}

body.envideo-theme#nv_search .slst h3 a:hover,
body.envideo-theme.pg_search .slst h3 a:hover {
  color: var(--ev-accent) !important;
}

body.envideo-theme#nv_search .slst font,
body.envideo-theme.pg_search .slst font,
body.envideo-theme#nv_search .slst font[color],
body.envideo-theme.pg_search .slst font[color],
body.envideo-theme#nv_search .pbw font,
body.envideo-theme.pg_search .pbw font,
body.envideo-theme#nv_search .pbw font[color],
body.envideo-theme.pg_search .pbw font[color] {
  color: var(--ev-accent) !important;
}

body.envideo-theme#nv_search .pbw p,
body.envideo-theme.pg_search .pbw p {
  color: var(--ev-text-secondary) !important;
  line-height: 1.6 !important;
  margin: 8px 0 !important;
}

body.envideo-theme#nv_search .slst p span,
body.envideo-theme.pg_search .slst p span,
body.envideo-theme#nv_search .xg1,
body.envideo-theme.pg_search .xg1 {
  color: var(--ev-text-muted) !important;
}

body.envideo-theme#nv_search .slst p span a,
body.envideo-theme.pg_search .slst p span a {
  color: var(--ev-text-muted) !important;
}

body.envideo-theme#nv_search .emp,
body.envideo-theme.pg_search .emp {
  color: var(--ev-text-muted) !important;
  padding: 24px !important;
  text-align: center !important;
}

@media (max-width: 900px) {
  .ev-navbar-inner {
    padding: 0 12px;
  }

  body.envideo-theme#nv_search #scform_form tr,
  body.envideo-theme.pg_search #scform_form tr {
    flex-direction: column !important;
  }

  body.envideo-theme#nv_search #scform_srchtxt,
  body.envideo-theme.pg_search #scform_srchtxt {
    border-right: 1px solid var(--ev-border) !important;
    border-radius: 8px !important;
    margin-bottom: 8px !important;
  }

  body.envideo-theme#nv_search #scform_submit,
  body.envideo-theme.pg_search #scform_submit {
    width: 100% !important;
    border-radius: 8px !important;
  }
}

/* chenjing navbar logo 20260818logo */
/* chenjing navbar logo + default avatar — append to envideo.css */
.ev-brand {
  gap: 0;
}

.ev-brand-logo {
  width: auto;
  height: 36px;
  max-width: 220px;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.ev-brand-logo img {
  width: auto;
  height: 36px;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.ev-brand-name {
  display: none !important;
}

.ev-user-chip img {
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.ev-user-chip img[src*="xinghe-logo"],
.ev-user-chip img[src*="logo_sc"],
.ev-user-chip img[src*="noavatar"] {
  object-fit: contain;
  padding: 2px;
  box-sizing: border-box;
}
