/* ==========================================================================
   Tpl_2016 / 2026 refresh - Base layer
   Scope: global tokens + site header + site footer ONLY.
   All header/footer rules are namespaced under #siteTop / #siteHdr / #siteFtr
   so they never leak into legacy inner pages.
   Pure ASCII on purpose (site is served as GB2312).
   ========================================================================== */

:root {
  --ym-brand:      #FF5A1F;
  --ym-brand-hi:   #FF7440;
  --ym-brand-ink:  #C43C05;
  --ym-brand-wash: #FFF3ED;
  --ym-brand-line: #FFD9C7;

  --ym-ink:    #0A0E14;
  --ym-ink-2:  #3D4653;
  --ym-ink-3:  #6B7480;
  --ym-ink-4:  #9AA2AE;

  --ym-line:   #E4E7EC;
  --ym-line-2: #F0F1F4;

  --ym-soft:   #F6F7F9;

  --ym-ok:     #0E9F6E;
  --ym-warn:   #E08600;
  --ym-danger: #DC2626;

  --ym-r:    6px;
  --ym-r-sm: 4px;

  --ym-wrap: 1320px;
  --ym-hdr:  66px;

  --ym-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Courier New", monospace;
  --ym-ease: cubic-bezier(.2, .6, .3, 1);
}

/* ---------- header shell ---------- */
#siteTop {
  background: var(--ym-ink);
  color: rgba(255,255,255,.5);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.6;
  height: 34px;
}
#siteTop .st-in {
  max-width: var(--ym-wrap); margin: 0 auto; padding: 0 40px;
  height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
#siteTop a { color: rgba(255,255,255,.5); text-decoration: none; transition: color .16s var(--ym-ease); }
#siteTop a:hover { color: #fff; }
#siteTop .st-l, #siteTop .st-r { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
#siteTop b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
#siteTop .st-sep { width: 1px; height: 11px; background: rgba(255,255,255,.16); display: inline-block; }

#siteHdr {
  background: #fff;
  border-bottom: 1px solid var(--ym-line);
  position: sticky; top: 0; z-index: 900;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}
#siteHdr .hd-in {
  max-width: var(--ym-wrap); margin: 0 auto; padding: 0 40px;
  height: var(--ym-hdr); display: flex; align-items: center; gap: 26px;
}
#siteHdr .hd-logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; text-decoration: none; }
#siteHdr .hd-logo img { max-height: 38px; width: auto; display: block; }

#siteHdr .hd-nav { display: flex; align-items: center; flex: 1; min-width: 0; }
  #siteHdr .hd-nav, #siteHdr .hd-nav ul, #siteHdr .hd-nav li, #siteHdr .hd-drop, #siteHdr .hd-drop li { list-style: none; margin: 0; padding: 0; }
#siteHdr .hd-nav > li { position: relative; }
#siteHdr .hd-nav > li > a {
  display: flex; align-items: center; height: var(--ym-hdr); padding: 0 13px;
  font-size: 13.5px; font-weight: 500; color: var(--ym-ink-2);
  text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent;
  transition: color .16s var(--ym-ease), border-color .16s var(--ym-ease);
}
#siteHdr .hd-nav > li > a:hover { color: var(--ym-ink); border-bottom-color: var(--ym-brand); }
#siteHdr .hd-nav > li.on > a { color: var(--ym-brand-ink); border-bottom-color: var(--ym-brand); }
#siteHdr .hd-nav svg { margin-left: 5px; opacity: .4; flex-shrink: 0; }

/* dropdown */
#siteHdr .hd-drop {
  position: absolute; top: 100%; left: 0; min-width: 200px;
  background: #fff; border: 1px solid var(--ym-line); border-radius: var(--ym-r);
  box-shadow: 0 12px 32px rgba(10,14,20,.1); padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .18s var(--ym-ease); z-index: 20;
}
#siteHdr .hd-nav > li:hover .hd-drop { opacity: 1; visibility: visible; transform: translateY(0); }
#siteHdr .hd-drop a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 11px; border-radius: var(--ym-r-sm);
  font-size: 13px; color: var(--ym-ink-2); text-decoration: none; white-space: nowrap;
}
#siteHdr .hd-drop a:hover { background: var(--ym-soft); color: var(--ym-ink); }
#siteHdr .hd-drop a i {
  font-style: normal; font-size: 10px; color: var(--ym-brand-ink);
  background: var(--ym-brand-wash); padding: 1px 6px; border-radius: 3px;
  font-family: var(--ym-mono); font-variant-numeric: tabular-nums;
}

#siteHdr .hd-act { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
#siteHdr .hd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 16px; border-radius: var(--ym-r);
  background: var(--ym-brand); color: #fff; font-size: 13px; font-weight: 600;
  text-decoration: none; white-space: nowrap; border: 0; cursor: pointer;
  transition: background .16s var(--ym-ease);
}
#siteHdr .hd-btn:hover { background: var(--ym-brand-hi); color: #fff; }
#siteHdr .hd-btn--ghost {
  background: #fff; color: var(--ym-ink-3); border: 1px solid var(--ym-line); font-weight: 500;
}
#siteHdr .hd-btn--ghost:hover { border-color: var(--ym-ink-3); color: var(--ym-ink); background: #fff; }

/* login state injected by /noedit/jslogin.asp - tame its inline markup */
#siteHdr .hd-login { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ym-ink-3); white-space: nowrap; }
#siteHdr .hd-login a { color: var(--ym-ink-2); text-decoration: none; font-size: 13px; }
#siteHdr .hd-login a:hover { color: var(--ym-brand-ink); }
#siteHdr .hd-login input[type="text"],
#siteHdr .hd-login input[type="password"] {
  height: 32px; padding: 0 10px; border: 1px solid var(--ym-line); border-radius: var(--ym-r-sm);
  font-size: 13px; outline: none; width: 116px; background: #fff; color: var(--ym-ink);
}
#siteHdr .hd-login input[type="text"]:focus,
#siteHdr .hd-login input[type="password"]:focus { border-color: var(--ym-brand); }
#siteHdr .hd-login input[type="image"] { height: 32px; width: auto; border-radius: var(--ym-r-sm); cursor: pointer; }
#siteHdr .hd-login table { border-collapse: collapse; margin: 0; }
#siteHdr .hd-login td { padding: 0 3px; vertical-align: middle; font-size: 12.5px; color: var(--ym-ink-3); white-space: nowrap; }
#siteHdr .hd-login font { color: var(--ym-brand-ink) !important; }

/* ---------- footer ---------- */
#siteFtr {
  background: var(--ym-ink);
  color: rgba(255,255,255,.44);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px; line-height: 1.7; padding: 56px 0 0; margin-top: 0;
}
#siteFtr .ft-in { max-width: var(--ym-wrap); margin: 0 auto; padding: 0 40px; }
#siteFtr .ft-grid {
  display: grid; grid-template-columns: 3.2fr repeat(4, 1.5fr);
  gap: 40px; padding-bottom: 44px;
}
#siteFtr .ft-brand img { max-height: 36px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .92; }
#siteFtr .ft-brand .ft-name { font-size: 16px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
#siteFtr .ft-brand p { margin: 14px 0 0; max-width: 300px; font-size: 12.5px; line-height: 1.85; }
#siteFtr .ft-tel { margin-top: 20px; }
#siteFtr .ft-tel span {
  font-family: var(--ym-mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255,255,255,.3);
}
#siteFtr .ft-tel b {
  display: block; font-size: 22px; font-weight: 800; color: #fff;
  letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums;
}
#siteFtr .ft-col h4 {
  font-family: var(--ym-mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.35);
  font-weight: 600; margin: 0 0 16px;
}
#siteFtr .ft-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
#siteFtr .ft-col a { font-size: 12.5px; color: rgba(255,255,255,.5); text-decoration: none; }
#siteFtr .ft-col a:hover { color: var(--ym-brand-hi); }

#siteFtr .ft-bot {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0 24px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; font-size: 11.5px; flex-wrap: wrap;
}
#siteFtr .ft-bot a { color: rgba(255,255,255,.44); text-decoration: none; }
#siteFtr .ft-bot a:hover { color: #fff; }
#siteFtr .ft-bot .lk { display: flex; gap: 16px; flex-wrap: wrap; }
#siteFtr .ft-bot .bd { display: flex; gap: 8px; align-items: center; }
#siteFtr .ft-bot .bd span {
  border: 1px solid rgba(255,255,255,.16); padding: 2px 8px; border-radius: 3px;
  font-family: var(--ym-mono); font-size: 10px; letter-spacing: .06em; color: rgba(255,255,255,.5);
}

/* qq service list (kept from legacy loop) */
#siteFtr .ft-qq { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: 12px; }
#siteFtr .ft-qq a { color: rgba(255,255,255,.5); }

@media (max-width: 1180px) {
  #siteTop .st-in, #siteHdr .hd-in, #siteFtr .ft-in { padding: 0 20px; }
  #siteHdr .hd-nav > li > a { padding: 0 9px; font-size: 13px; }
  #siteFtr .ft-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  #siteTop { display: none; }
  #siteHdr .hd-nav { display: none; }
  #siteHdr .hd-in { justify-content: space-between; }
  #siteFtr .ft-grid { grid-template-columns: 1fr; }
}

/* ---------- CSS logo (no image dependency) ---------- */
#siteHdr .hd-logo-m {
  width: 30px; height: 30px; border-radius: 7px; background: var(--ym-brand);
  position: relative; flex-shrink: 0; display: block;
}
#siteHdr .hd-logo-m::before {
  content: ""; position: absolute; inset: 8px;
  border: 2px solid #fff; border-right-color: transparent; border-bottom-color: transparent;
  transform: rotate(-45deg); border-radius: 2px;
}
#siteHdr .hd-logo-t b {
  font-size: 16px; font-weight: 800; color: var(--ym-ink);
  letter-spacing: -.02em; display: block; line-height: 1.1;
}
#siteHdr .hd-logo-t span {
  font-family: var(--ym-mono); font-size: 8.5px; letter-spacing: .18em;
  color: var(--ym-ink-4); display: block; margin-top: 1px;
}
#siteFtr .ft-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
#siteFtr .ft-logo-m {
  width: 28px; height: 28px; border-radius: 6px; background: var(--ym-brand);
  position: relative; flex-shrink: 0; display: block;
}
#siteFtr .ft-logo-m::before {
  content: ""; position: absolute; inset: 7px;
  border: 2px solid #fff; border-right-color: transparent; border-bottom-color: transparent;
  transform: rotate(-45deg); border-radius: 2px;
}

/* ---------- header login links ---------- */
#siteHdr .hd-lk {
  font-size: 13px; color: var(--ym-ink-2); text-decoration: none;
  padding: 0 2px; white-space: nowrap;
}
#siteHdr .hd-lk:hover { color: var(--ym-brand-ink); }
#siteHdr .hd-lk--reg { color: var(--ym-brand-ink); font-weight: 600; }
#siteHdr .hd-lk--out { color: var(--ym-ink-4); }
#siteHdr .hd-hello { font-size: 13px; color: var(--ym-ink-3); white-space: nowrap; }
#siteHdr .hd-hello a { color: var(--ym-brand-ink); font-weight: 600; text-decoration: none; }

/* ---------- narrow screens: keep the header on one row ---------- */
@media (max-width: 900px) {
  #siteHdr .hd-in { gap: 12px; padding: 0 16px; }
  #siteHdr .hd-act { gap: 8px; }
  #siteHdr .hd-btn { padding: 0 14px; height: 34px; font-size: 13px; }
  #siteHdr .hd-hello, #siteHdr .hd-lk--out { display: none; }
}
@media (max-width: 620px) {
  #siteHdr .hd-lk--reg { display: none; }
  #siteHdr .hd-logo-t b { font-size: 14.5px; }
  #siteFtr .ft-in { padding: 0 16px; }
}
