/*!
 * ElyunWza - 易览云免费无障碍辅助工具条
 * © 易览云 / 顶酷互联  免费使用，保留署名；禁止二次收费转售
 */
:root {
  --elyun-wza-bg: #0b5cab;
  --elyun-wza-fg: #ffffff;
  --elyun-wza-accent: #ffd54f;
}

#elyun-wza-bar {
  position: fixed;
  left: 0; right: 0; top: 0;
  z-index: 2147483000;
  display: none;
  background: var(--elyun-wza-bg);
  color: var(--elyun-wza-fg);
  box-shadow: 0 2px 14px rgba(0,0,0,.28);
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
  font-size: 14px;
}
#elyun-wza-bar.open { display: block; }
body.elyun-wza-on { padding-top: 54px !important; }

#elyun-wza-bar .ew-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 7px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
#elyun-wza-bar .ew-brand {
  font-weight: 700;
  margin-right: 6px;
  white-space: nowrap;
}
#elyun-wza-bar .ew-credit {
  margin-left: auto;
  font-size: 12px;
  opacity: .85;
  white-space: nowrap;
}
#elyun-wza-bar button {
  appearance: none;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
  color: inherit;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
}
#elyun-wza-bar button:hover,
#elyun-wza-bar button.active {
  background: var(--elyun-wza-fg);
  color: var(--elyun-wza-bg);
}
#elyun-wza-bar .ew-sep {
  width: 1px; height: 18px;
  background: rgba(255,255,255,.28);
  margin: 0 2px;
}

#elyun-wza-screen {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2147482990;
  display: none;
  min-height: 56px;
  padding: 10px 14px;
  background: #111;
  color: var(--elyun-wza-accent);
  font-size: 24px;
  text-align: center;
  line-height: 1.35;
}
#elyun-wza-screen.open { display: block; }
body.elyun-wza-screen-on #elyun-wza-mbar { bottom: 56px; }

#elyun-wza-ruler-h,
#elyun-wza-ruler-v {
  position: fixed;
  z-index: 2147482980;
  pointer-events: none;
  display: none;
  background: #e11;
}
#elyun-wza-ruler-h { left: 0; right: 0; height: 2px; }
#elyun-wza-ruler-v { top: 0; bottom: 0; width: 2px; }
body.elyun-wza-ruler #elyun-wza-ruler-h,
body.elyun-wza-ruler #elyun-wza-ruler-v { display: block; }

html.ew-theme-wb body, html.ew-theme-wb body * {
  background-color: #fff !important; color: #000 !important; border-color: #333 !important;
}
html.ew-theme-wb a { color: #06c !important; }
html.ew-theme-by body, html.ew-theme-by body * {
  background-color: #0033aa !important; color: #ff0 !important; border-color: #ff0 !important;
}
html.ew-theme-by a { color: #fff !important; }
html.ew-theme-yb body, html.ew-theme-yb body * {
  background-color: #ff0 !important; color: #000 !important; border-color: #000 !important;
}
html.ew-theme-yb a { color: #06c !important; }
html.ew-theme-bk body, html.ew-theme-bk body * {
  background-color: #000 !important; color: #ff0 !important; border-color: #ff0 !important;
}
html.ew-theme-bk a { color: #fff !important; }

body.elyun-wza-text img,
body.elyun-wza-text video,
body.elyun-wza-text iframe,
body.elyun-wza-text svg,
body.elyun-wza-text canvas { display: none !important; }
body.elyun-wza-text * {
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

/* 桌面入口建议样式（站点可覆盖） */
.elyun-wza-entry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(11,92,171,.35);
  color: #0b5cab !important;
  background: rgba(11,92,171,.08);
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

/* ===== 手机底部条 ===== */
#elyun-wza-mbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2147483000;
  display: none;
  background: var(--elyun-wza-bg);
  color: var(--elyun-wza-fg);
  box-shadow: 0 -4px 18px rgba(0,0,0,.25);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
}
#elyun-wza-mbar.open { display: block; }
#elyun-wza-mbar .ewm-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  max-width: 560px;
  margin: 0 auto;
}
#elyun-wza-mbar button {
  appearance: none;
  border: 0;
  background: rgba(255,255,255,.12);
  color: inherit;
  border-radius: 10px;
  padding: 8px 4px;
  font-size: 12px;
  line-height: 1.25;
  cursor: pointer;
}
#elyun-wza-mbar button.active {
  background: var(--elyun-wza-fg);
  color: var(--elyun-wza-bg);
  font-weight: 700;
}
#elyun-wza-mbar .ewm-credit {
  text-align: center;
  font-size: 11px;
  opacity: .8;
  margin-top: 6px;
}
body.elyun-wza-mobile-on {
  padding-bottom: 78px !important;
}
body.elyun-wza-mobile-on.elyun-wza-screen-on {
  padding-bottom: 134px !important;
}

/* 指读高亮 */
.elyun-wza-tap-hl {
  outline: 3px solid var(--elyun-wza-accent) !important;
  outline-offset: 2px;
}

@media (max-width: 900px) {
  #elyun-wza-bar { display: none !important; }
  body.elyun-wza-on { padding-top: 0 !important; }
  #elyun-wza-bar .ew-credit { display: none; }
}
@media (min-width: 901px) {
  #elyun-wza-mbar { display: none !important; }
  body.elyun-wza-mobile-on { padding-bottom: 0 !important; }
}
