/* ============================================================================
   玉生支付系统 · 支付结果页主题（Aurora）
   ----------------------------------------------------------------------------
   覆盖对象：app/view/index/payok.html（支付成功）、payerr.html（支付失败）、404.html
   基础样式：/static/css/weui-simple.css 或 weui.min.css（原样式保留）
   原则：只覆盖视觉，不动 DOM、不动任何脚本。
   ========================================================================== */

:root,
html {
  --ys-brand-1: #4f46e5;
  --ys-brand-2: #7c3aed;
  --ys-brand-grad: linear-gradient(135deg, var(--ys-brand-1), var(--ys-brand-2));
  --ys-card: #ffffff;
  --ys-text: #0f172a;
  --ys-text-2: #64748b;
  --ys-text-3: #94a3b8;
  --ys-border: rgba(15, 23, 42, 0.07);
  --ys-soft: #f1f4fa;
  --ys-radius: 22px;
  --ys-radius-sm: 12px;
  --ys-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 20px 44px -26px rgba(15, 23, 42, 0.3);
}

/* 页面底 */
html body {
  background-color: #f4f6fb !important;
  background-image:
    radial-gradient(720px 420px at 12% -10%, rgba(124, 58, 237, 0.10), transparent 62%),
    radial-gradient(700px 400px at 92% 2%, rgba(79, 70, 229, 0.10), transparent 58%) !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
  min-height: 100vh;
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif !important;
  -webkit-font-smoothing: antialiased;
  color: var(--ys-text) !important;
}

/* 容器 */
body .container,
body .js_container {
  max-width: 480px !important;
  margin: 0 auto !important;
  padding: 28px 16px 40px !important;
  background: transparent !important;
  box-sizing: border-box;
}
body .page.msg {
  background: transparent !important;
  padding: 0 !important;
}

/* 主卡片 */
body .weui_msg {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  box-sizing: border-box;
  background: var(--ys-card) !important;
  border: 1px solid var(--ys-border) !important;
  border-radius: var(--ys-radius) !important;
  box-shadow: var(--ys-shadow) !important;
  overflow: hidden;
  max-width: 100% !important;
}

/* 图标区 */
body .weui_msg .weui_icon_area {
  padding: 34px 0 10px !important;
  text-align: center;
}
body .weui_icon_msg::before,
body .weui_icon_success.weui_icon_msg::before,
body .weui_icon_info.weui_icon_msg::before {
  font-size: 62px !important;
  line-height: 1 !important;
}
body .weui_icon_success::before,
body .weui_icon_success.weui_icon_msg::before {
  color: #10b981 !important;
}
body .weui_icon_warn::before,
body .weui_icon_warn.weui_icon_msg::before {
  color: #f59e0b !important;
}
body .weui_icon_info::before {
  color: var(--ys-brand-1) !important;
}

/* 文本区 */
body .weui_msg .weui_text_area {
  padding: 6px 26px 30px !important;
  text-align: center;
}
body .weui_msg_title {
  font-size: 21px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  color: var(--ys-text) !important;
  margin-bottom: 8px !important;
}
body .weui_msg_desc {
  font-size: 13.5px !important;
  line-height: 1.75 !important;
  color: var(--ys-text-2) !important;
}
body .weui_msg_desc b,
body .weui_msg_desc strong {
  color: var(--ys-text) !important;
}

/* 按钮区 */
body .weui_msg .weui_btn_area {
  padding: 0 26px 28px !important;
  margin-top: 0 !important;
}
body .weui_btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 46px !important;
  line-height: 1 !important;
  border-radius: var(--ys-radius-sm) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  border: none !important;
  margin-bottom: 10px !important;
  transition: filter 0.2s ease, transform 0.2s ease;
}
body .weui_btn:last-child {
  margin-bottom: 0 !important;
}
body .weui_btn_primary {
  background: var(--ys-brand-grad) !important;
  color: #fff !important;
  box-shadow: 0 12px 26px -14px rgba(79, 70, 229, 0.9) !important;
}
body .weui_btn_primary:hover,
body .weui_btn_primary:active {
  filter: brightness(1.07);
  transform: translateY(-1px);
}
body .weui_btn_default {
  background: var(--ys-soft) !important;
  color: var(--ys-text-2) !important;
  box-shadow: none !important;
}

/* 卡片外的补充文字 */
body .page.msg > p,
body .weui_msg + p,
body .tip-text {
  color: var(--ys-text-3) !important;
  font-size: 12.5px !important;
  line-height: 1.7 !important;
  text-align: center;
  margin-top: 16px;
}

/* 404 / 通用标题 */
body h1, body h2, body h3 {
  color: var(--ys-text) !important;
  letter-spacing: -0.015em;
}

/* 链接 */
body a {
  color: var(--ys-brand-1) !important;
  text-decoration: none;
}

/* 响应式 */
@media (max-width: 640px) {
  body .container,
  body .js_container {
    padding: 20px 14px 32px !important;
  }
  body .weui_msg {
    border-radius: 20px !important;
  }
  body .weui_msg_title {
    font-size: 19px !important;
  }
  body .weui_icon_msg::before {
    font-size: 54px !important;
  }
}
