:root {
  --ea-ink: #14213d;
  --ea-blue: #1677ff;
  --ea-blue-dark: #0b4fc4;
  --ea-cyan: #22b8cf;
  --ea-bg: #f4f7fb;
  --ea-card: #ffffff;
  --ea-line: #e7edf5;
  --ea-muted: #7d8aa3;
}

html, body { background: var(--ea-bg) !important; color: var(--ea-ink); }
body { font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif; }
a { color: var(--ea-blue); }
a:hover { color: var(--ea-blue-dark); text-decoration: none; }

#toptb { background: #0e1b36 !important; border: 0 !important; color: #b9c7df; }
#toptb a { color: #c9d7ed; }
#hd { background: linear-gradient(120deg, #0b4fc4 0%, #1677ff 58%, #22b8cf 100%) !important; border: 0 !important; box-shadow: 0 8px 24px rgba(15, 78, 160, .18); }
#hd .wp { width: 1180px; max-width: calc(100% - 32px); }
#hd .hdc { height: 78px; }
#hd h2 { width: 250px; height: 78px; }
#hd h2 a { display: block; height: 78px; line-height: 78px; color: #fff !important; font-size: 30px; font-weight: 800; letter-spacing: .5px; }
#hd h2 a:after { content: "EAHub"; }
#hd h2 img { display: none; }
#um a, #um .pipe { color: rgba(255,255,255,.9) !important; }

#nv { height: 48px !important; background: rgba(5, 45, 117, .3) !important; border: 0 !important; }
#nv li a { height: 48px !important; line-height: 48px !important; color: rgba(255,255,255,.86) !important; padding: 0 21px !important; font-size: 15px; }
#nv li.a a, #nv li a:hover { background: rgba(255,255,255,.16) !important; color: #fff !important; }
#scbar { margin: 14px 0 8px; background: rgba(255,255,255,.16) !important; border: 1px solid rgba(255,255,255,.22) !important; border-radius: 8px; }
#scbar_txt { color: #fff !important; background: transparent !important; }
#scbar_txt::placeholder { color: rgba(255,255,255,.7); }
#scbar_btn { background: #fff !important; color: var(--ea-blue) !important; border-radius: 0 7px 7px 0; }

.eahub-hero { background: linear-gradient(135deg, #0e2d63, #1677ff 62%, #23b7c8); color: #fff; }
.eahub-hero__inner { width: 1180px; max-width: calc(100% - 32px); margin: 0 auto; padding: 34px 0 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.eahub-hero h1 { margin: 0 0 8px; font-size: 30px; line-height: 1.2; color: #fff; }
.eahub-hero p { margin: 0; color: rgba(255,255,255,.78); font-size: 15px; }
.eahub-hero__eyebrow { display: block; margin-bottom: 8px; color: #8ce7f2; font-size: 11px; font-weight: 700; letter-spacing: 2px; }
.eahub-hero__cta { display: inline-block; padding: 11px 20px; border-radius: 8px; background: #fff; color: var(--ea-blue) !important; font-weight: 700; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.eahub-channelbar { background: #fff; border-bottom: 1px solid var(--ea-line); }
.eahub-channelbar__inner { width: 1180px; max-width: calc(100% - 32px); height: 54px; margin: 0 auto; display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.eahub-channelbar__inner::-webkit-scrollbar { display: none; }
.eahub-channelbar a { position: relative; flex: 0 0 auto; padding: 0 22px; line-height: 54px; color: #33415c; font-size: 15px; font-weight: 600; }
.eahub-channelbar a:hover, .eahub-channelbar a.is-active { color: var(--ea-blue); }
.eahub-channelbar a.is-active:after { position: absolute; right: 22px; bottom: 0; left: 22px; height: 3px; border-radius: 3px 3px 0 0; background: var(--ea-blue); content: ""; }
.eahub-filterbox { width: 1180px; max-width: calc(100% - 32px); box-sizing: border-box; margin: 20px auto 0; padding: 10px 22px; border: 1px solid var(--ea-line); border-radius: 10px; background: #fff; box-shadow: 0 4px 18px rgba(28,61,107,.05); }
.eahub-filterrow { min-height: 46px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; border-bottom: 1px dashed #edf1f7; }
.eahub-filterrow:last-child { border-bottom: 0; }
.eahub-filterrow b { width: 62px; color: #263753; font-size: 13px; }
.eahub-filterrow a { padding: 5px 12px; border-radius: 5px; color: #68758b; font-size: 13px; }
.eahub-filterrow a:hover, .eahub-filterrow a.is-active { background: #eaf3ff; color: var(--ea-blue); }
.eahub-resourcehub { width: 1180px; max-width: calc(100% - 32px); margin: 26px auto 0; }
.eahub-sectiontitle { margin-bottom: 14px; display: flex; align-items: end; justify-content: space-between; }
.eahub-sectiontitle span { color: var(--ea-blue); font-size: 10px; font-weight: 800; letter-spacing: 1.8px; }
.eahub-sectiontitle h2 { margin: 4px 0 0; color: var(--ea-ink); font-size: 21px; }
.eahub-sectiontitle > a { padding-bottom: 3px; color: var(--ea-muted); font-size: 12px; }
.eahub-resourcegrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.eahub-resourcecard { min-height: 126px; box-sizing: border-box; padding: 18px; display: flex; gap: 15px; border: 1px solid var(--ea-line); border-radius: 10px; background: #fff; color: inherit !important; box-shadow: 0 4px 16px rgba(28,61,107,.04); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.eahub-resourcecard:hover { transform: translateY(-3px); border-color: #bfd9ff; box-shadow: 0 12px 28px rgba(28,90,180,.1); }
.eahub-resourcecard > i { width: 50px; height: 50px; flex: 0 0 50px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #e9f3ff; color: #1677ff; font-size: 13px; font-style: normal; font-weight: 900; }
.eahub-resourcecard.is-indicator > i { background: #e9fbfb; color: #0fa5a8; }
.eahub-resourcecard.is-tool > i { background: #fff3e6; color: #e78324; }
.eahub-resourcecard.is-code > i { background: #f0edff; color: #7059cc; }
.eahub-resourcecard.is-school > i { background: #eaf8ec; color: #3b9d52; }
.eahub-resourcecard.is-help > i { background: #fff0f4; color: #d94d79; }
.eahub-resourcecard div { min-width: 0; }
.eahub-resourcecard em { color: var(--ea-blue); font-size: 11px; font-style: normal; }
.eahub-resourcecard h3 { margin: 4px 0 7px; overflow: hidden; color: #20304d; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.eahub-resourcecard p { height: 35px; margin: 0 0 7px; overflow: hidden; color: #7b8799; font-size: 12px; line-height: 18px; }
.eahub-resourcecard span { color: #98a3b4; font-size: 10px; }
.eahub-portals { background: #fff; border-bottom: 1px solid var(--ea-line); box-shadow: 0 8px 24px rgba(28,61,107,.05); }
.eahub-portals__inner { width: 1180px; max-width: calc(100% - 32px); margin: 0 auto; padding: 18px 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.eahub-portals a { display: block; min-width: 0; padding: 13px 14px; border: 1px solid var(--ea-line); border-radius: 9px; background: #f8fbff; transition: .2s ease; }
.eahub-portals a:hover { transform: translateY(-2px); border-color: #bcd8ff; box-shadow: 0 8px 18px rgba(22,119,255,.09); }
.eahub-portals strong, .eahub-portals span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eahub-portals strong { margin-bottom: 5px; color: var(--ea-ink); font-size: 14px; }
.eahub-portals span { color: var(--ea-muted); font-size: 11px; }
.eahub-risk { width: 1180px; max-width: calc(100% - 32px); box-sizing: border-box; margin: 16px auto -6px; padding: 10px 14px; border: 1px solid #f1dfb8; border-radius: 8px; background: #fffaf0; color: #856522; font-size: 12px; }

#wp { width: 1180px; max-width: calc(100% - 32px); margin: 22px auto 40px !important; }
.bm, .bm_c, .bm_h, .mn, .pls, .plc, .vwthd, .pgs { border-color: var(--ea-line) !important; }
.bm, .mn { background: var(--ea-card) !important; border-radius: 10px; box-shadow: 0 4px 18px rgba(28, 61, 107, .05); overflow: hidden; }
.bm_h { background: #fff !important; padding: 15px 20px !important; color: var(--ea-ink) !important; border-bottom: 1px solid var(--ea-line) !important; }
.bm_c { padding: 20px !important; }
#ct { min-height: 420px; }
.fl { border: 0 !important; }
.fl .bm_h { font-size: 17px; }
.fl_row td, .fl_tb td { border-color: var(--ea-line) !important; }
.fl_row:hover, .fl_tb tr:hover { background: #f7fbff !important; }
.fl_icn_g { opacity: .85; }
.xg1, .xg1 a { color: var(--ea-muted) !important; }
.xi2, .xi2 a { color: var(--ea-blue) !important; }

.pg a, .pg strong { border-radius: 6px !important; border-color: var(--ea-line) !important; }
.pg strong { background: var(--ea-blue) !important; color: #fff !important; }
.pn, .pnc { border-radius: 6px !important; }
button, input[type=submit], input[type=button], .pn, .pnc { border-radius: 6px !important; }

#ft { border-top: 1px solid var(--ea-line) !important; background: #fff !important; color: var(--ea-muted); padding: 28px 0 !important; }
#ft a { color: var(--ea-muted); }

@media (max-width: 760px) {
  #hd .wp, #wp, .eahub-hero__inner { max-width: calc(100% - 20px); }
  #hd h2 { width: 150px; }
  #hd h2 a { font-size: 24px; }
  #nv li a { padding: 0 11px !important; font-size: 13px; }
  .eahub-hero__inner { display: block; padding: 24px 0 26px; }
  .eahub-hero__cta { margin-top: 18px; }
  .eahub-channelbar__inner { max-width: 100%; }
  .eahub-channelbar a { padding: 0 14px; }
  .eahub-channelbar a.is-active:after { right: 14px; left: 14px; }
  .eahub-filterbox, .eahub-resourcehub { max-width: calc(100% - 20px); }
  .eahub-filterbox { padding: 8px 12px; }
  .eahub-filterrow { align-items: flex-start; padding: 10px 0; }
  .eahub-filterrow b { width: 100%; }
  .eahub-resourcegrid { grid-template-columns: 1fr; }
  .eahub-portals__inner { grid-template-columns: repeat(2, 1fr); max-width: calc(100% - 20px); }
  .eahub-risk { max-width: calc(100% - 20px); }
}


/* EAHub.cn compatibility theme - visual layer only */
html, body { background: #f2f2f2 !important; color: #333 !important; }
body, input, button, select, textarea { font-family: "Microsoft YaHei", Tahoma, Helvetica, "SimSun", sans-serif; }
a { color: #333; }
a:hover { color: #ff6f40; text-decoration: none; }
#toptb { min-width: 960px; background: #fff !important; border-bottom: 1px solid #fff !important; color: #666 !important; line-height: 28px; }
#toptb a, #toptb a:hover { color: #666 !important; }
#hd { background: #fff !important; border: 0 !important; box-shadow: none !important; }
#hd .wp, #wp { width: 960px; max-width: calc(100% - 20px); }
#hd .wp { padding: 10px 0 0; }
#hd .hdc { min-height: 70px; height: auto; }
#hd h2 { width: auto; height: auto; padding: 0 20px 8px 0; }
#hd h2 a { display: block; height: 70px; line-height: 70px; color: #ff6f40 !important; font-size: 30px; font-weight: 800; letter-spacing: 0; }
#hd h2 a:after { content: "EAHub"; }
#hd h2 img { display: none; }
#um a, #um .pipe { color: #666 !important; }
#nv { height: 48px !important; background: #ff6f40 !important; border: 0 !important; overflow: hidden; }
#nv li a { height: 48px !important; line-height: 48px !important; padding: 0 25px !important; color: #fff !important; font-size: 14px; }
#nv li.a a, #nv li a:hover { background: #f75733 !important; color: #fff !important; }
#scbar { width: 306px; height: 32px; margin: 3px 0 0 50px; border: 2px solid #ff6f40 !important; border-radius: 4px; background: #fff !important; box-sizing: border-box; }
#scbar_txt { width: 260px; color: #333 !important; background: #fff !important; }
#scbar_btn { background: #ff6f40 !important; color: #fff !important; border-radius: 0 !important; }
.eahub-channelbar, .eahub-hero, .eahub-filterbox, .eahub-resourcehub, .eahub-risk { display: none !important; }
#wp { margin: 20px auto 40px !important; }
.bm, .mn { border-radius: 0; box-shadow: none; background: #fff !important; }
.bm_h { background: #f9f9f9 !important; border-bottom: 1px solid #eee !important; padding: 10px !important; color: #333 !important; }
.bm_c { padding: 10px !important; }
#ft { border-top: 1px solid #eee !important; background: #fff !important; color: #999; padding: 28px 0 !important; }
#ft a { color: #999; }
@media (max-width: 760px) {
  #hd .wp, #wp { max-width: calc(100% - 20px); }
  #hd h2 a { font-size: 24px; }
  #nv li a { padding: 0 12px !important; font-size: 13px; }
}

/* eahub.cn header alignment */
#hd .wp { position: relative; }
#hd h2 { width: 148px; height: 41px; padding: 0 20px 8px 0; }
#hd h2 a { width: 148px; height: 41px; line-height: 41px; margin-top: 12px; background: url('/static/image/common/eahub-logo.png') left center / 148px 41px no-repeat; font-size: 0; }
#hd h2 a:after { display: none; }
#scbar { position: absolute; top: 20px; left: 360px; margin: 0; }
#scbar_hot { position: absolute; top: -28px; left: 0; width: 300px; color: #666; white-space: nowrap; }
#scbar_hot strong, #scbar_hot a { color: #ff6f40 !important; margin-right: 8px; }
#nv { clear: both; }

/* widthauto compatibility */
.widthauto #hd .wp, .widthauto #wp { width: 1040px !important; max-width: calc(100% - 20px) !important; }

#hd .wp, #wp { width: 1040px !important; max-width: calc(100% - 20px) !important; }

#hd .wp, #wp { min-width: 0 !important; }
