:root {
  --zm-red: #a9342e;
  --zm-red-dark: #84251f;
  --zm-ink: #202825;
  --zm-green: #214536;
  --zm-gold: #b78b45;
  --zm-muted: #66716c;
  --zm-line: #dfe4e1;
  --zm-soft: #f5f7f5;
}

body.zm-drawer-open,
body.zm-dialog-open { overflow: hidden; }

.feng-topbar {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 max(20px, calc((100% - 1380px) / 2));
  border-bottom: 1px solid var(--zm-line);
  background: rgba(255,255,255,.97);
  box-shadow: 0 5px 20px rgba(31,42,36,.05);
  backdrop-filter: blur(14px);
}
.feng-topbar .feng-brand { display:flex; align-items:center; gap:10px; color:var(--zm-ink); font-size:19px; font-weight:900; text-decoration:none; white-space:nowrap; }
.feng-topbar .feng-brand img { width:46px; height:46px; object-fit:contain; }
.feng-topbar nav { min-width:0; display:flex; align-items:center; justify-content:center; gap:3px; }
.feng-topbar nav a { min-height:42px; display:inline-flex; align-items:center; padding:0 12px; border-radius:4px; color:#3e4a44; font-size:15px; font-weight:750; text-decoration:none; white-space:nowrap; }
.feng-topbar nav a:hover,.feng-topbar nav a[aria-current="page"] { color:var(--zm-red); background:#fff3f1; }
.feng-topbar .feng-home-link { min-height:42px; display:inline-flex; align-items:center; padding:0 15px; border:1px solid var(--zm-red-dark); border-radius:5px; color:#fff; background:var(--zm-red); font-size:14px; font-weight:800; text-decoration:none; white-space:nowrap; }

.zm-site-header,
.zm-site-header *,
.footer,
.footer * { box-sizing: border-box; letter-spacing: 0; }

.zm-site-header {
  position: sticky !important;
  z-index: 100 !important;
  top: 0 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  display: block !important;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--zm-line) !important;
  color: var(--zm-ink);
  background: rgba(255, 255, 255, .97) !important;
  box-shadow: 0 5px 20px rgba(31, 42, 36, .05);
  backdrop-filter: blur(14px);
  overflow: visible !important;
}

.zm-shell { width: min(1380px, calc(100% - 40px)); margin: 0 auto; }

.zm-utility {
  min-height: 30px;
  border-bottom: 1px solid #ecefed;
  color: #728079;
  background: #f7f8f7;
  font-size: 13px;
}

.zm-utility .zm-shell,
.zm-utility nav { display: flex; align-items: center; }
.zm-utility .zm-shell { min-height: 30px; justify-content: space-between; }
.zm-utility nav { gap: 20px; }
.zm-utility a,
.zm-utility button {
  padding: 3px 0;
  border: 0;
  color: inherit;
  background: none;
  font: inherit;
  cursor: pointer;
}
.zm-utility a:hover,
.zm-utility button:hover { color: var(--zm-red); }

.zm-header-main {
  position: relative;
  min-height: 74px;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto minmax(292px, 1fr);
  align-items: center;
  gap: 18px;
}

.zm-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  color: var(--zm-ink) !important;
  text-decoration: none !important;
}
.zm-brand img { width: 50px !important; height: 50px !important; object-fit: contain; }
.zm-brand > span { display: grid; font-size: 20px; font-weight: 900; line-height: 1.1; white-space: nowrap; }
.zm-brand small { margin-top: 5px; color: var(--zm-gold); font-size: 11px; font-weight: 700; }

.zm-primary {
  height: 74px;
  display: flex !important;
  align-items: stretch;
  justify-content: center;
  gap: 2px !important;
  overflow: visible !important;
}
.zm-primary > a,
.zm-nav-item > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 4px;
  color: #37423d !important;
  font-size: 15px !important;
  font-weight: 750 !important;
  line-height: 1.25;
  text-decoration: none !important;
  white-space: nowrap;
}
.zm-primary > a { align-self: center; }
.zm-primary > a:hover,
.zm-nav-item:hover > a,
.zm-nav-item:focus-within > a,
.zm-primary > a.is-active,
.zm-nav-item.is-active > a { color: var(--zm-red) !important; background: #fff3f1; }
.zm-nav-item { position: relative; display: flex; align-items: center; }
.zm-nav-item > button {
  width: 24px;
  height: 44px;
  margin-left: -8px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.zm-nav-item > button::before,
.zm-language > button::after,
.zm-mobile-group > div > button::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.zm-nav-item > button[aria-expanded="true"]::before,
.zm-language > button[aria-expanded="true"]::after,
.zm-mobile-group > div > button[aria-expanded="true"]::after { transform: translateY(2px) rotate(225deg); }

.zm-mega {
  position: fixed;
  z-index: 110;
  top: 104px;
  left: 50%;
  width: min(940px, calc(100vw - 48px));
  max-height: 320px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 24px 30px 18px;
  border: 1px solid var(--zm-line);
  border-top: 3px solid var(--zm-gold);
  border-radius: 0 0 7px 7px;
  background: #fff;
  box-shadow: 0 22px 46px rgba(20, 31, 26, .15);
  transform: translateX(-50%);
  overflow: auto;
}
.zm-mega:not([hidden]) { display: grid; }
.zm-mega-line {
  position: absolute;
  top: 11px;
  right: 30px;
  left: 30px;
  height: 1px;
  background: linear-gradient(90deg, var(--zm-gold) 0 9%, #e8dfd0 9% 100%);
}
.zm-mega section { min-width: 0; padding: 0 26px; border-left: 1px solid #edf0ee; }
.zm-mega section:first-of-type { padding-left: 0; border-left: 0; }
.zm-mega section:last-child { padding-right: 0; }
.zm-mega h2 { margin: 0 0 8px; color: var(--zm-green); font-size: 14px; font-weight: 900; }
.zm-mega a {
  min-height: 30px;
  display: flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  color: #4e5a54;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}
.zm-mega a:hover,
.zm-mega a:focus-visible { color: var(--zm-red); background: #fff4f2; outline: none; }

.zm-actions { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.zm-free {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid var(--zm-red-dark);
  border-radius: 5px;
  color: #fff !important;
  background: var(--zm-red);
  box-shadow: 0 4px 12px rgba(169, 52, 46, .16);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none !important;
  white-space: nowrap;
}
.zm-free:hover { background: var(--zm-red-dark); }
.zm-icon-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--zm-line);
  border-radius: 5px;
  color: var(--zm-green);
  background: #fff;
  cursor: pointer;
}
.zm-search-icon {
  position: relative;
  width: 16px;
  height: 16px;
  display: block;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.zm-search-icon::after { content: ""; position: absolute; width: 7px; height: 2px; right: -6px; bottom: -3px; background: currentColor; transform: rotate(45deg); }

.zm-account,
.zm-language { position: relative; }
.zm-login,
.zm-language > button,
.zm-account-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #45514b !important;
  background: transparent;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
}
.zm-login:hover,
.zm-language > button:hover,
.zm-account-button:hover { border-color: var(--zm-line); background: var(--zm-soft); }
.zm-language > div,
.zm-account-menu {
  position: absolute;
  z-index: 130;
  top: calc(100% + 8px);
  right: 0;
  width: 178px;
  padding: 7px;
  border: 1px solid var(--zm-line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(24, 35, 29, .14);
}
.zm-language > div:not([hidden]),
.zm-account-menu:not([hidden]) { display: grid; }
.zm-language > div a,
.zm-account-menu a,
.zm-account-menu > button {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  border: 0;
  border-radius: 4px;
  color: #46534c;
  background: transparent;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.zm-language > div a:hover,
.zm-language > div a[aria-current="true"],
.zm-account-menu a:hover { color: var(--zm-red); background: #fff3f1; }
.zm-account-menu > button { margin-top: 5px; border-top: 1px solid var(--zm-line); border-radius: 0 0 4px 4px; color: #9a312b; }
.zm-account-button > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--zm-green); }
.zm-account-button b { max-width: 72px; overflow: hidden; text-overflow: ellipsis; }

.zm-mobile-toggle,
.zm-mobile-drawer,
.zm-drawer-backdrop { display: none; }

.zm-search-dialog {
  position: fixed;
  z-index: 1000;
  inset: 0;
  padding: 8vh 20px 20px;
  background: rgba(18, 27, 23, .54);
  overflow: auto;
}
.zm-search-dialog:not([hidden]) { display: block; }
.zm-search-panel {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 24px;
  border-top: 4px solid var(--zm-gold);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .25);
}
.zm-search-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.zm-search-head h2 { margin: 0; color: var(--zm-ink); font-size: 25px; }
.zm-search-head button,
.zm-drawer-head button { min-height: 40px; padding: 0 13px; border: 1px solid var(--zm-line); border-radius: 5px; background: #fff; cursor: pointer; }
.zm-search-panel form { margin: 20px 0; }
.zm-search-panel label { display: block; margin-bottom: 8px; color: var(--zm-muted); font-size: 15px; }
.zm-search-panel form > div { display: grid; grid-template-columns: 1fr auto; }
.zm-search-panel input { min-width: 0; height: 48px; padding: 0 14px; border: 1px solid #bdc7c1; border-radius: 5px 0 0 5px; font-size: 17px; }
.zm-search-panel form button { min-width: 86px; border: 0; border-radius: 0 5px 5px 0; color: #fff; background: var(--zm-green); font-size: 16px; font-weight: 800; cursor: pointer; }
.zm-search-results { display: grid; gap: 5px; }
.zm-search-results > p { color: var(--zm-muted); font-size: 15px; }
.zm-search-results a { display: grid; gap: 3px; padding: 12px; border-bottom: 1px solid #edf0ee; color: var(--zm-ink); text-decoration: none; }
.zm-search-results a:hover { background: var(--zm-soft); }
.zm-search-results strong { font-size: 16px; }
.zm-search-results span { color: var(--zm-muted); font-size: 14px; }

.footer {
  width: 100%;
  display: block !important;
  padding: 0 !important;
  border-top: 1px solid var(--zm-line) !important;
  color: #dce5df !important;
  background: #202b26 !important;
}
.zm-footer-main {
  display: grid;
  grid-template-columns: minmax(190px, 1.45fr) repeat(5, minmax(118px, 1fr));
  gap: 30px;
  padding-top: 48px;
  padding-bottom: 44px;
}
.zm-footer-brand img { display: block; width: 58px; height: 58px; margin-bottom: 12px; }
.zm-footer-brand strong { color: #fff; font-size: 22px; }
.zm-footer-brand p { max-width: 210px; margin: 10px 0 0; color: #aebbb4; font-size: 14px; line-height: 1.75; }
.zm-footer-main section { display: grid; align-content: start; gap: 9px; }
.zm-footer-main h2 { margin: 0 0 7px; color: #d7bd85; font-size: 15px; }
.zm-footer-main a { color: #c8d2cc !important; font-size: 14px; line-height: 1.45; text-decoration: none !important; }
.zm-footer-main a:hover { color: #fff !important; }
.zm-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); background: #19211e; }
.zm-footer-bottom .zm-shell { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.zm-footer-bottom nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.zm-footer-bottom a { color: #9eaaa4 !important; font-size: 13px; text-decoration: none !important; }

@media (max-width: 1260px) {
  .zm-shell { width: min(1180px, calc(100% - 28px)); }
  .zm-header-main { grid-template-columns: auto 1fr auto; gap: 10px; }
  .zm-brand > span small { display: none; }
  .zm-primary > a,
  .zm-nav-item > a { padding-right: 8px; padding-left: 8px; font-size: 14px !important; }
  .zm-nav-item > button { width: 20px; }
  .zm-language > button { width: 42px; padding: 0; font-size: 0; }
  .zm-language > button::before { content: "文"; font-size: 14px; }
  .zm-account-button b { display: none; }
}

@media (max-width: 1100px) {
  .feng-topbar { min-height:68px; grid-template-columns:auto 1fr; gap:14px; padding:0 14px; }
  .feng-topbar nav { justify-content:flex-start; overflow-x:auto; }
  .feng-topbar nav a { font-size:14px; }
  .feng-topbar .feng-home-link { display:none; }
  .zm-utility,
  .zm-primary,
  .zm-actions > .zm-icon-button,
  .zm-actions > .zm-account,
  .zm-actions > .zm-language { display: none !important; }
  .zm-site-header { min-height: 68px !important; }
  .zm-header-main { min-height: 68px; grid-template-columns: 1fr auto auto; }
  .zm-brand img { width: 44px !important; height: 44px !important; }
  .zm-brand > span { font-size: 19px; }
  .zm-actions { display: block; }
  .zm-actions .zm-free { min-height: 40px; }
  .zm-mobile-toggle {
    min-width: 44px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 11px;
    border: 1px solid var(--zm-line);
    border-radius: 5px;
    color: var(--zm-green);
    background: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
  }
  .zm-mobile-toggle > span,
  .zm-mobile-toggle > span::before,
  .zm-mobile-toggle > span::after { width: 17px; height: 2px; display: block; background: currentColor; }
  .zm-mobile-toggle > span { position: relative; }
  .zm-mobile-toggle > span::before,
  .zm-mobile-toggle > span::after { content: ""; position: absolute; left: 0; }
  .zm-mobile-toggle > span::before { top: -6px; }
  .zm-mobile-toggle > span::after { top: 6px; }
  .zm-drawer-backdrop { position: fixed; z-index: 140; inset: 0; background: rgba(19, 29, 24, .48); }
  .zm-drawer-backdrop:not([hidden]) { display: block; }
  .zm-mobile-drawer {
    position: fixed;
    z-index: 150;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 92vw);
    display: block;
    padding: 0 18px 30px;
    background: #fff;
    box-shadow: -16px 0 40px rgba(20, 29, 24, .18);
    transform: translateX(105%);
    transition: transform .22s ease;
    overflow-y: auto;
  }
  .zm-mobile-drawer[aria-hidden="false"] { transform: translateX(0); }
  .zm-drawer-head { position: sticky; z-index: 1; top: 0; min-height: 68px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--zm-line); background: #fff; }
  .zm-drawer-head strong { color: var(--zm-ink); font-size: 20px; }
  .zm-mobile-nav { display: grid; }
  .zm-mobile-nav > a,
  .zm-mobile-group > div { min-height: 52px; border-bottom: 1px solid #edf0ee; }
  .zm-mobile-nav > a,
  .zm-mobile-group > div > a { display: flex; align-items: center; color: var(--zm-ink); font-size: 17px; font-weight: 800; text-decoration: none; }
  .zm-mobile-group > div:first-child { display: grid; grid-template-columns: 1fr 48px; }
  .zm-mobile-group > div > button { border: 0; color: var(--zm-muted); background: #fff; cursor: pointer; }
  .zm-mobile-group > div + div { display: block; padding: 6px 0 16px 12px; border-bottom: 1px solid var(--zm-line); }
  .zm-mobile-group > div + div section { margin: 12px 0; }
  .zm-mobile-group h2 { margin: 0 0 6px; color: var(--zm-green); font-size: 14px; }
  .zm-mobile-group section a { min-height: 44px; display: flex; align-items: center; padding: 0 10px; border-radius: 4px; color: #4d5953; font-size: 16px; text-decoration: none; }
  .zm-mobile-group section a:hover { color: var(--zm-red); background: #fff3f1; }
  .zm-drawer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
  .zm-drawer-actions > a:not(.zm-free) { min-height: 42px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--zm-line); border-radius: 5px; color: var(--zm-green); font-size: 15px; font-weight: 800; text-decoration: none; }
  .zm-drawer-tools { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 16px; border-top: 1px solid var(--zm-line); }
  .zm-drawer-tools a { color: var(--zm-muted); font-size: 14px; text-decoration: none; }
  .zm-footer-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zm-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .feng-topbar { display:flex; overflow-x:auto; }
  .feng-topbar .feng-brand span { display:none; }
  .feng-topbar nav { flex:0 0 auto; }
  .feng-topbar nav a { padding:0 9px; font-size:13px; }
  .zm-shell { width: min(100% - 24px, 1180px); }
  .zm-header-main { min-height: 62px; grid-template-columns: 1fr auto; }
  .zm-brand img { width: 40px !important; height: 40px !important; }
  .zm-brand > span { font-size: 18px; }
  .zm-brand > span small { display: none; }
  .zm-header-main > .zm-actions { display: none; }
  .zm-mobile-toggle { font-size: 0; }
  .zm-mobile-toggle > span { margin: 0; }
  .zm-search-dialog { padding: 12px; }
  .zm-search-panel { padding: 18px 14px; }
  .zm-search-head h2 { font-size: 21px; }
  .zm-footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding-top: 36px; }
  .zm-footer-brand { grid-column: 1 / -1; }
  .zm-footer-bottom .zm-shell { align-items: flex-start; flex-direction: column; padding-top: 20px; padding-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .zm-mobile-drawer { transition: none; }
}
