/* ============================================================
   重庆工商大学管理科学与工程学院 — 全站通用样式
   ============================================================ */
:root {
  --blue-900: #0d2a5c;
  --blue-800: #123470;
  --blue-700: #1b3a73;
  --blue-600: #24509b;
  --blue-500: #2e63b0;
  --blue-100: #eaf0f9;
  --gold: #c8a24b;
  --ink: #253044;
  --muted: #71809a;
  --line: #dce3ee;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "SimHei", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue-600); }
img { max-width: 100%; border: 0; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.w15 { width: 1200px; max-width: calc(100% - 40px); margin-left: auto; margin-right: auto; }

/* ---------- 顶部信息条 ---------- */
.pc_top_lj { height: 34px; background: #f4f6fa; border-bottom: 1px solid #e6eaf1; color: #6b7891; font-size: 13px; }
.pc_top_lj .w15 { height: 34px; display: flex; align-items: center; justify-content: space-between; }
.pc_top_lj .l p { letter-spacing: .3px; }
.pc_top_lj .r { display: flex; align-items: center; gap: 14px; }
.pc_top_lj .r a:hover { color: var(--blue-600); }
.pc_top_lj .line { display: block; width: 1px; height: 12px; background: #cbd3e0; }

/* ---------- 头部 ---------- */
.site-header { position: relative; z-index: 50; }
.header-logo { background: linear-gradient(105deg, #0a2246 0%, #123b7f 46%, #24509b 100%); position: relative; overflow: hidden; }
.header-logo::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 120px at 78% 50%, rgba(46,99,176,.55), transparent 70%),
              radial-gradient(420px 100px at 12% 0%, rgba(255,255,255,.08), transparent 70%); }
.header-logo-inner { height: 108px; display: flex; align-items: center; justify-content: space-between; position: relative; }
.header-logo-inner::after { content: ""; position: absolute; left: 0; bottom: 0; width: 170px; height: 3px; background: linear-gradient(90deg, var(--gold), transparent); }
.header-brand #logo { display: block; }
.header-brand img { width: 300px; height: 120px; object-fit: contain; object-position: left center; }
.header-tools { display: flex; align-items: center; }
.search_btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px;
  border: 1px solid rgba(255,255,255,.55); border-radius: 2px; color: #fff; font-size: 14px;
  transition: all .25s; position: relative; z-index: 1;
}
.search_btn svg { width: 17px; height: 17px; }
.search_btn:hover { background: rgba(255,255,255,.16); border-color: #fff; color: #fff; }

/* ---------- 主导航 ---------- */
.mainnav { background: var(--blue-700); position: relative; }
.mainnav-inner { width: 100%; max-width: 1320px; margin: 0 auto; display: flex; align-items: stretch; position: relative; padding: 0 24px; }
.nav-menu { flex: 1; }
.nav-menu > ul { display: flex; justify-content: space-between; gap: 12px; }
.nav-menu > ul > li { position: relative; flex: 0 0 auto; }
.nav-menu > ul > li > a {
  display: block; height: 52px; line-height: 52px; text-align: center; color: #fff;
  padding: 0 14px; white-space: nowrap;
  transition: background .25s, color .25s;
}
.nav-menu > ul > li > a h3 { font-size: 17px; font-weight: 500; letter-spacing: .3px; }
.nav-arrow { display: none; }
.nav-menu > ul > li:hover > a, .nav-menu > ul > li.on > a { background: #0f2b5f; }
.nav-menu > ul > li.on > a h3 { font-weight: 700; }
.nav-menu > ul > li > a::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 3px;
  background: var(--gold); transform: translateX(-50%); transition: width .25s;
}
.nav-menu > ul > li:hover > a::after, .nav-menu > ul > li.on > a::after { width: 60%; }

.nav-menu .sub {
  position: absolute; top: 52px; left: 0; min-width: 100%; background: #fff;
  box-shadow: 0 12px 26px rgba(13, 42, 92, .18); border-top: 2px solid var(--gold);
  padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .25s; z-index: 60;
}
.nav-menu > ul > li:hover > .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu .sub li a { display: block; padding: 8px 12px; text-align: center; font-size: 15px; color: #40506b; white-space: nowrap; }
.nav-menu .sub li a:hover { background: var(--blue-100); color: var(--blue-700); }

.nav-toggle { display: none; width: 46px; height: 52px; margin-left: auto; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; transition: all .3s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 搜索蒙板 ---------- */
.search-dialog-box {
  position: fixed; inset: 0; z-index: 200; background: rgba(10, 25, 55, .72);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.search-dialog-box.on { opacity: 1; visibility: visible; }
.search-close { position: absolute; right: 42px; top: 38px; width: 42px; height: 42px; color: #fff; opacity: .8; }
.search-close:hover { opacity: 1; transform: rotate(90deg); transition: transform .3s; }
.search-close svg { width: 30px; height: 30px; }
.search-dialog { display: flex; align-items: center; justify-content: center; min-height: 100%; padding: 20px; }
.search-dialog .wrap-inner { width: 720px; max-width: 100%; text-align: center; }
.search-label { color: rgba(255,255,255,.72); font-size: 14px; letter-spacing: 3px; margin-bottom: 24px; }
.tc_search form { display: flex; height: 62px; background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 18px 44px rgba(0,0,0,.3); }
.qwss { flex: 1; border: 0; outline: 0; padding: 0 22px; font-size: 18px; color: var(--ink); }
.btn_blue { width: 74px; display: flex; align-items: center; justify-content: center; background: var(--blue-700); color: #fff; transition: background .25s; }
.btn_blue:hover { background: var(--blue-500); }
.search-hot { margin-top: 20px; color: rgba(255,255,255,.65); font-size: 14px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.search-hot a:hover { color: var(--gold); }

/* ---------- 回到顶部 ---------- */
.fhdb {
  position: fixed; right: 26px; bottom: 38px; width: 46px; height: 46px; z-index: 90;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: var(--blue-700); box-shadow: 0 6px 18px rgba(13,42,92,.28);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s;
}
.fhdb.on { opacity: 1; visibility: visible; transform: translateY(0); }
.fhdb:hover { background: var(--blue-500); }
.fhdb svg { width: 22px; height: 22px; }

/* ---------- 页脚 ---------- */
.footer { background: url(../images/bg_footer.svg) center top / cover no-repeat, #0a2246; margin-top: 60px; position: relative; }
.footer_top_line { height: 4px; background: linear-gradient(90deg, var(--blue-800), var(--blue-500) 55%, var(--gold)); }
.footer .w15:nth-of-type(2) { display: flex; align-items: flex-start; padding: 34px 0 30px; gap: 60px; }
.footer_col h4 { font-size: 17px; color: #f0d99a; margin-bottom: 14px; padding-left: 10px; border-left: 3px solid var(--gold); line-height: 1.2; }
.footer_col p { color: rgba(255,255,255,.74); font-size: 14px; margin-bottom: 5px; }
.footer_col li { margin-bottom: 5px; }
.footer_col li a { color: rgba(255,255,255,.74); font-size: 14px; }
.footer_col li a:hover, .footer_col p:hover { color: #f0d99a; }
.foot_left { flex: 1.1; }
.footer_col:nth-child(2) { flex: 1; }
.footer_qr { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-left: 40px; border-left: 1px solid rgba(255,255,255,.22); }
.qr-box { width: 106px; height: 106px; padding: 5px; background: #fff; border: 1px solid var(--line); }
.qr-box img { width: 100%; height: 100%; display: block; }
.qr-text { text-align: center; }
.qr-title { color: #fff; font-size: 14px; font-weight: 700; }
.qr-desc { color: rgba(255,255,255,.62); font-size: 12px; margin-top: 2px; }
.footer_bottom { background: rgba(4,18,42,.55); border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.72); font-size: 13px; text-align: center; padding: 14px 0; }
.footer_bottom .w15 { max-width: calc(100% - 40px); }

/* ---------- 页脚（新结构 gp-container） ---------- */
.gp-container.footer { background: url(../images/bg_footer.svg) center top / cover no-repeat, #0a2246; margin-top: 0; }
.gp-clearFix::after { content: ""; display: table; clear: both; }
.footer-lf, .footer-md, .footer-rt { box-sizing: border-box; padding: 36px 0 34px; }
.footer-lf { float: left; width: 34%; }
.footer-md { float: left; width: 46%; padding-left: 50px; }
.footer-rt { float: right; width: 20%; text-align: right; }
.footer-addr .f-logo { display: block; margin-bottom: 12px; }
.footer-addr .f-logo img { display: block; width: 290px; max-width: 100%; height: auto; }
.footer-addr p { color: rgba(255,255,255,.74); font-size: 14px; line-height: 1.7; margin-bottom: 2px; }
.footer-addr p.gp-f14 { color: rgba(255,255,255,.86); margin-bottom: 8px; }
.footer-addr p a { color: #f0d99a; }
.footer-addr p a:hover { color: #fff; }
.footer-links h2.gp-f18 { font-size: 18px; color: #f0d99a; margin-bottom: 14px; padding-left: 10px; border-left: 3px solid var(--gold); line-height: 1.2; }
.links-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 20px; }
.links-list li a { color: rgba(255,255,255,.74); font-size: 14px; line-height: 1.5; transition: color .2s; }
.links-list li a:hover { color: #f0d99a; }
.code-box { list-style: none; }
.code-box > li > div { display: inline-block; padding: 7px; background: #fff; border-radius: 2px; }
.code-box span { display: block; }
.code-box img { display: block; width: 120px; height: 120px; }
.code-box p { margin: 0; }
.gp-f14 { font-size: 14px; }
.gp-f18 { font-size: 18px; }
@media (max-width: 992px) {
  .footer-lf { width: 40%; }
  .footer-md { width: 60%; padding-left: 24px; }
  .footer-rt { width: 100%; text-align: center; padding-top: 6px; }
}
@media (max-width: 767px) {
  .footer-lf, .footer-md, .footer-rt { width: 100%; float: none; text-align: left; padding: 20px 0; }
  .footer-md { padding-left: 0; }
  .footer-rt { text-align: center; }
  .links-list { grid-template-columns: 1fr; gap: 6px; }
  .footer-addr .f-logo img { width: 240px; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
  .nav-menu > ul > li > a h3 { font-size: 15px; }
  .nav-menu .sub li a { padding: 8px 5px; font-size: 14px; }
}
@media (max-width: 992px) {
  .nav-arrow {
    display: block; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
    font-family: Arial, sans-serif; font-size: 22px; line-height: 1;
    color: rgba(255,255,255,.8); transition: transform .25s;
  }
  .nav-menu > ul > li.open > .nav-arrow { transform: translateY(-50%) rotate(90deg); }
  .header-logo-inner { height: 88px; }
  .header-brand img { width: 250px; height: 100px; }
  .nav-toggle { display: flex; }
  .nav-menu { display: none; position: absolute; top: 52px; left: 0; right: 0; background: var(--blue-800); z-index: 70; max-height: calc(100vh - 52px); overflow-y: auto; }
  .nav-menu.open { display: block; }
  .nav-menu > ul { display: block; }
  .nav-menu > ul > li { border-top: 1px solid rgba(255,255,255,.1); }
  .nav-menu > ul > li > a { height: 46px; line-height: 46px; text-align: left; padding: 0 20px; }
  .nav-menu > ul > li > a::after { left: 0; bottom: 6px; transform: none; }
  .nav-menu > ul > li:hover > a::after, .nav-menu > ul > li.on > a::after { width: 26px; }
  .nav-menu .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: #0e2757; padding: 0 0 8px; display: none; }
  .nav-menu > ul > li.open > .sub { display: block; }
  .nav-menu .sub li a { text-align: left; padding: 7px 40px; color: rgba(255,255,255,.76); }
  .footer .w15:nth-of-type(2) { gap: 30px; }
  .footer_qr { padding-left: 24px; }
}
@media (max-width: 767px) {
  .w15 { max-width: calc(100% - 28px); }
  /* 手机端顶部信息条：保留左侧学院名，右侧只留 English */
  .pc_top_lj .w15 { justify-content: space-between; }
  .pc_top_lj .l p { max-width: 62%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .pc_top_lj .r .line, .pc_top_lj .r a:not(.top-en) { display: none; }
  .pc_top_lj .r { gap: 0; }
  .header-logo-inner { height: 74px; }
  .header-brand img { width: 210px; height: 86px; }
  .search_btn { width: 38px; padding: 0; justify-content: center; }
  .search_btn span { display: none; }
  .search-close { right: 20px; top: 20px; }
  .tc_search form { height: 52px; }
  .qwss { font-size: 15px; }
  .footer .w15:nth-of-type(2) { flex-wrap: wrap; gap: 24px; padding: 28px 0; }
  .foot_left, .footer_col:nth-child(2) { flex: 1 1 100%; }
  .footer_qr { flex: 1 1 100%; padding: 20px 0 0; border-left: 0; border-top: 1px solid #dfe5ee; }
  .fhdb { right: 14px; bottom: 20px; width: 40px; height: 40px; }
}
