/*
 * Karuo AI Default v15
 * Discuz X3.5 / release 20250901
 * Based on the official default template. No legacy qing layout overrides.
 */
:root {
  --karuo-primary: #274690;
  --karuo-primary-dark: #172b5d;
  --karuo-accent: #14a6a0;
  --karuo-bg: #f5f7fb;
  --karuo-surface: #ffffff;
  --karuo-line: #e3e8f1;
  --karuo-text: #1e293b;
  --karuo-muted: #6b778c;
}

html,
body {
  background: var(--karuo-bg) !important;
  color: var(--karuo-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif !important;
}

a {
  color: var(--karuo-primary);
}

a:hover {
  color: var(--karuo-accent);
  text-decoration: none;
}

.wp {
  width: min(1200px, calc(100% - 40px)) !important;
}

#toptb {
  height: 36px;
  border-bottom: 1px solid var(--karuo-line);
  background: #fff !important;
}

#hd {
  border: 0 !important;
  background: var(--karuo-surface) !important;
  box-shadow: 0 1px 0 var(--karuo-line);
}

#hd .hdc {
  min-height: 92px;
  padding: 14px 0 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

#hd .karuo-brand {
  float: none !important;
  flex: 0 0 300px;
  width: 300px;
  margin: 0;
  padding: 0;
}

#hd .karuo-brand img {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
}

#hd #um {
  float: none !important;
  width: auto;
  max-width: calc(100% - 340px);
  margin: 0 0 0 auto;
  padding-right: 62px;
  position: relative;
  text-align: right;
  line-height: 1.65;
}

#hd #um p {
  margin: 0;
  white-space: nowrap;
}

#hd #um .avt {
  float: none !important;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

#hd #um .avt img {
  width: 46px;
  height: 46px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 10px;
  box-shadow: 0 5px 16px rgba(30, 48, 86, .14);
}

#hd #um .pipe {
  color: #d5dae4;
  margin: 0 5px;
}

#nv {
  height: 46px !important;
  border: 0 !important;
  border-radius: 8px 8px 0 0;
  background: var(--karuo-primary-dark) !important;
  overflow: visible;
}

#nv ul {
  height: 46px;
}

#nv li,
#nv li a {
  height: 46px !important;
  line-height: 46px !important;
  background: none !important;
}

#nv li {
  border: 0 !important;
}

#nv li a {
  padding: 0 24px !important;
  color: #e9eefb !important;
  font-size: 15px;
  font-weight: 600;
}

#nv li.a,
#nv li.a a,
#nv li a:hover {
  background: var(--karuo-primary) !important;
  color: #fff !important;
}

#qmenu {
  box-sizing: border-box !important;
  width: 120px !important;
  height: 46px !important;
  line-height: 46px !important;
  margin: 0 !important;
  padding: 0 16px 0 42px !important;
  border-radius: 0 8px 0 0;
  background-color: #0e827f !important;
  color: #fff !important;
  font-weight: 600;
}

#scbar {
  box-sizing: border-box !important;
  height: 48px !important;
  line-height: normal !important;
  border: 1px solid var(--karuo-line) !important;
  border-top: 0 !important;
  border-radius: 0 0 8px 8px;
  background: #fff !important;
  overflow: visible !important;
}

#scbar_form,
#scbar_form > table {
  width: 100% !important;
}

#scbar *,
#scbar_form > table {
  box-sizing: border-box !important;
}

#scbar_form > table {
  height: 47px;
  table-layout: fixed;
}

#scbar .scbar_icon_td {
  display: none;
  width: 0 !important;
}

#scbar .scbar_txt_td {
  width: auto !important;
  background: none !important;
}

#scbar .scbar_type_td {
  width: 90px !important;
  border-left: 1px solid var(--karuo-line);
  background: #fafbfe !important;
}

#scbar .scbar_btn_td {
  width: 54px !important;
  background: none !important;
}

#scbar_txt {
  width: 100% !important;
  height: 46px !important;
  padding: 0 16px !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 14px !important;
}

#scbar_type {
  display: block;
  height: 46px;
  padding: 0 12px;
  line-height: 46px;
}

#scbar_btn {
  width: 38px !important;
  height: 36px !important;
  margin: 5px 8px 5px 4px;
  border: 0 !important;
  border-radius: 8px;
  background: var(--karuo-accent) !important;
  box-shadow: none !important;
}

#scbar_hot,
.scbar_hot_td {
  display: none !important;
}

#wp {
  padding-top: 20px;
}

.bm,
.fl,
.tl,
.pl {
  border: 1px solid var(--karuo-line) !important;
  background: #fff !important;
}

.bm_h,
.fl .bm_h {
  min-height: 46px;
  padding: 13px 18px !important;
  border-bottom: 1px solid var(--karuo-line) !important;
  background: #f8faff !important;
}

.bm_h h2,
.bm_h h3 {
  color: var(--karuo-text) !important;
  font-size: 16px !important;
}

.fl_tb td {
  padding: 18px 14px !important;
  border-top-color: #edf0f6 !important;
}

.fl_icn img,
.fl_icn_g img {
  border-radius: 10px;
}

.fl_g dt a,
.fl_icn_g + dt a {
  color: var(--karuo-text);
  font-size: 15px;
  font-weight: 700;
}

.xg1,
.xg2 {
  color: var(--karuo-muted) !important;
}

#pt {
  margin-bottom: 12px;
  border: 0 !important;
  background: transparent !important;
}

.pnc,
.pn.pnc {
  border-color: var(--karuo-primary) !important;
  background: var(--karuo-primary) !important;
}

.pg strong,
.pg a,
.pgb a {
  border-color: var(--karuo-line) !important;
}

.pls {
  background: #f7f9fc !important;
}

.plc {
  background: #fff !important;
}

.pct {
  color: #273449;
  font-size: 15px;
  line-height: 1.8;
}

.pct img[src*="capsule-cover.php"] {
  display: block;
  width: 100%;
  max-width: 980px;
  height: auto;
  margin: 0 0 24px;
  border-radius: 12px;
}

.pct a[href*="mod=attachment"] {
  display: inline-block;
  margin: 14px 0;
  padding: 11px 18px;
  border-radius: 8px;
  background: var(--karuo-primary);
  color: #fff !important;
  font-weight: 700;
}

#ft {
  margin-top: 28px !important;
  padding: 24px 0 !important;
  border-top: 1px solid var(--karuo-line) !important;
  color: var(--karuo-muted);
}

.lk,
.lk_logo {
  display: none !important;
}

@media (max-width: 900px) {
  .wp {
    width: calc(100% - 24px) !important;
  }

  #hd .hdc {
    min-height: 72px;
    padding: 10px 0 !important;
  }

  #hd .karuo-brand,
  #hd .karuo-brand img {
    width: 230px;
  }

  #hd #um {
    display: none;
  }

  #nv {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
  }

  #qmenu {
    display: none;
  }
}
