/* 全站三语浏览器推送订阅样式 · 零内联 style，严格遵守 style-src 'self' */
.el-push-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  border: 1px solid rgba(226, 184, 107, 0.42);
  background: rgba(226, 184, 107, 0.1);
  color: #f4f7fb;
  font-size: 0.8rem;
  line-height: 1;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.el-push-btn:hover {
  background: rgba(226, 184, 107, 0.22);
  border-color: #e2b86b;
}
.el-push-btn.is-subscribed {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(74, 222, 128, 0.58);
  color: #bbf7d0;
  width: 28px;
  height: 28px;
  padding: 0;
  justify-content: center;
  gap: 0;
}
.el-push-btn.is-subscribed .el-push-lbl {
  display: none;
}
.el-push-btn.is-busy {
  opacity: 0.65;
  cursor: wait;
}
.el-push-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e2b86b;
  flex: 0 0 auto;
}
.el-push-btn.is-subscribed .el-push-dot {
  background: #4ade80;
}

/* 左下角克制订阅提示条（避开右下角 AI 顾问浮窗） */
.el-push-prompt {
  position: fixed;
  left: 18px;
  bottom: 20px;
  z-index: 950;
  max-width: 340px;
  background: rgba(11, 24, 41, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 184, 107, 0.42);
  border-radius: 14px;
  padding: 0.95rem 1.05rem;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.48);
  color: #f4f7fb;
  font-size: 0.85rem;
  line-height: 1.5;
}
.el-push-prompt[hidden] {
  display: none;
}
.el-push-prompt-title {
  font-weight: 600;
  color: #e2b86b;
  margin: 0 0 0.3rem;
  font-size: 0.9rem;
}
.el-push-prompt-text {
  margin: 0 0 0.78rem;
  color: rgba(232, 238, 247, 0.86);
}
.el-push-prompt-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.el-push-allow {
  appearance: none;
  border: 0;
  background: #e2b86b;
  color: #07111f;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.42rem 0.92rem;
  border-radius: 999px;
  cursor: pointer;
}
.el-push-allow:hover {
  background: #edd08c;
}
.el-push-dismiss {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: rgba(226, 234, 245, 0.74);
  font-size: 0.8rem;
  padding: 0.4rem 0.78rem;
  border-radius: 999px;
  cursor: pointer;
}
.el-push-dismiss:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

/* 顶部轻提示 Toast */
.el-push-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 990;
  background: rgba(13, 28, 48, 0.96);
  border: 1px solid rgba(226, 184, 107, 0.45);
  color: #f4f7fb;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  font-size: 0.84rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.el-push-toast[hidden] {
  display: none;
}

@media (max-width: 760px) {
  html, body {
    max-width: 100%;
    overflow-x: clip;
  }
  .v4-header {
    max-width: 100vw;
    box-sizing: border-box;
    padding-left: 10px;
    padding-right: 10px;
    gap: 6px;
  }
  .v4-header .site-brand {
    flex: 0 1 auto;
    min-width: 0;
  }
  .v4-header .brand-calligraphy {
    max-width: 76px;
  }
  .v4-actions {
    gap: 4px;
    min-width: 0;
    flex: 0 0 auto;
  }
  .v4-lang a {
    padding: 4px 6px;
    font-size: 11px;
  }
  .el-push-btn {
    font-size: 11px;
    padding: 4px 7px;
    gap: 4px;
    flex: 0 0 auto;
  }
  .el-push-btn.is-subscribed {
    width: 24px;
    height: 24px;
    padding: 0;
  }
  .v4-menu {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
  }
  .el-push-prompt {
    left: 12px;
    right: 12px;
    bottom: 74px;
    max-width: none;
  }
}

/* 邮件订阅兜底弹窗（iOS 普通浏览器 / 微信内置浏览器等不支持直接 Push 时自动弹出） */
.el-push-toast {
  border-radius: 12px;
  max-width: calc(100vw - 32px);
  text-align: center;
  line-height: 1.5;
}
.el-email-modal {
  padding: 0;
  border: 1px solid rgba(226, 184, 107, 0.42);
  border-radius: 16px;
  background: #0b1829;
  color: #f4f7fb;
  width: min(420px, calc(100vw - 28px));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65);
}
.el-email-modal::backdrop {
  background: rgba(4, 10, 18, 0.72);
  backdrop-filter: blur(4px);
}
.el-email-box {
  padding: 1.25rem 1.3rem 1.2rem;
}
.el-email-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.el-email-head h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #e2b86b;
}
.el-email-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(232, 238, 247, 0.72);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.35rem;
}
.el-email-desc {
  margin: 0 0 0.9rem;
  font-size: 0.86rem;
  line-height: 1.6;
  color: rgba(232, 238, 247, 0.86);
}
.el-email-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.el-email-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.62rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(7, 17, 31, 0.9);
  color: #fff;
  font-size: 16px;
}
.el-email-input:focus {
  outline: none;
  border-color: #e2b86b;
}
.el-email-submit {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #e2b86b;
  color: #07111f;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.62rem 1rem;
  cursor: pointer;
}
.el-email-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}
.el-email-hint {
  margin: 0.85rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(226, 234, 245, 0.68);
}
