/* 这里随便写自定义css样式 */
/* ══════════════════════════════════════════════════════════════
 *  飞鸟云 — 自定义样式
 *  最后更新：2026-08
 *
 *  目录
 *    1. 首页 Banner — 标题 / 永久网址 / 登录注册按钮
 *    2. 公告弹窗
 *    3. 登录注册页 — 底部切换链接
 *
 *  说明
 *    · 使用文档（知识库）的样式已内嵌在 chunk-658d0690 中由 JS 注入，
 *      此处无需再写，早期版本的 .kn-* 规则可全部删除。
 *    · QQ 客服挂件的定位写在自定义页脚 HTML 的内联样式里，不在本文件。
 * ══════════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════════════════════
 *  1. 首页 Banner
 *
 *  桌面端是「左文右图」布局：.earth 绝对定位在右侧 (left:730px)，
 *  文字与按钮在左栏正常流动、左对齐。
 *  手机端是单栏居中布局，相关覆盖见本节末尾的媒体查询。
 * ══════════════════════════════════════════════════════════════ */

/* ── 主标题 ── */
.home-banner .t19 {
  font-size: 36px !important;
  font-weight: 800 !important;
  color: #1890ff !important;
}

/* ── 永久网址提示（由 custom.js 注入的 .perm-url-tip）── */
.perm-url-tip {
  max-width: 680px !important;
  margin-top: 20px !important;
  margin-bottom: 28px !important;
  text-align: left !important;
  line-height: 1.6 !important;
}

.perm-url-tip span {
  display: block !important;
}

.perm-url-tip span:first-child {
  margin-bottom: 4px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #8c9bb0 !important;
  letter-spacing: .5px !important;
}

.perm-url-tip span:last-child {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #1890ff !important;
  letter-spacing: .5px !important;
}

/* ── 按钮容器：竖排 ──
   限制宽度，避免在桌面端撞到右侧地球 */
.home-banner .t3 {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  max-width: 360px !important;
  margin-top: 24px !important;
  margin-bottom: 20px !important;
}

/* ── 按钮共用尺寸 ──
   两个按钮尺寸完全一致，主次只靠配色区分 */
.btn-login-home,
.btn-reg-home {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 56px !important;
  padding: 16px 24px !important;
  border: none !important;
  border-radius: 14px !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  letter-spacing: .5px !important;
  text-align: center !important;
  text-decoration: none !important;
  transition: all .25s ease !important;
}

/* 主按钮：亮蓝 + 光晕 */
.btn-login-home {
  background: #0b5cff !important;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(11, 92, 255, .35) !important;
}

.btn-login-home:hover {
  background: #0048d6 !important;
  color: #fff !important;
  box-shadow: 0 8px 26px rgba(11, 92, 255, .45) !important;
  transform: translateY(-2px) !important;
}

.btn-login-home:active {
  transform: translateY(0) scale(.98) !important;
}

/* 次按钮：浅灰无边框 */
.btn-reg-home {
  background: #ebedf2 !important;
  color: #1a1f36 !important;
  box-shadow: none !important;
}

.btn-reg-home:hover {
  background: #e0e3ea !important;
  color: #1a1f36 !important;
  transform: translateY(-2px) !important;
}

.btn-reg-home:active {
  transform: translateY(0) scale(.98) !important;
}

/* 注：「立即注册」→「注册账号」的文案替换由 custom.js 处理。
   早期用 font-size:0 + ::after 的写法已废弃 —— 手机端媒体查询里的
   font-size 会覆盖它，导致原文和伪元素同时显示成「立即注册注册账号」。 */

/* ── 首页 · 手机端 ── */
@media (max-width: 768px) {

  /* 文字层提到地球之上，否则按钮看得见点不到 */
  .home-banner .t1,
  .home-banner .t2-wrap,
  .home-banner .t2,
  .home-banner .t3 {
    position: relative !important;
    z-index: 3 !important;
  }

  /* 地球缩放。.earth 布局盒为 300×300，
     scale .72 后视觉高度 216px，空出约 84px，
     取 -40px 保留约 44px 间距。
     文字压到地球上就把负值调小：-40 → -20 → 0 */
  .home-banner .earth {
    transform: scale(.72) !important;
    transform-origin: top center !important;
    margin-bottom: -40px !important;
  }

  .home-banner .t1 {
    margin-top: 16px !important;
    margin-bottom: 12px !important;
    text-align: center !important;
  }

  .home-banner .t19 {
    font-size: 30px !important;
  }

  .perm-url-tip {
    max-width: none !important;
    margin-top: 14px !important;
    margin-bottom: 20px !important;
    text-align: center !important;
  }

  .perm-url-tip span:first-child {
    font-size: 14px !important;
  }

  .perm-url-tip span:last-child {
    font-size: 21px !important;
  }

  .home-banner .t3 {
    box-sizing: border-box !important;
    max-width: none !important;
    margin-top: 22px !important;
    margin-bottom: 18px !important;
    padding: 0 20px !important;
  }

  .btn-login-home,
  .btn-reg-home {
    min-height: 54px !important;
    padding: 15px 20px !important;
    font-size: 16px !important;
  }
}


/* 确认弹窗按钮竖排时留出间距（原重复段落已清理，公告弹窗样式统一见下方"重新设计"块）*/
/* 确认弹窗按钮竖排时留出间距 */
.ant-modal-confirm-btns .ant-btn + .ant-btn {
  margin-top: 10px !important;
  margin-left: 0 !important;
}


/* ══════════════════════════════════════════════════════════════
 *  3. 登录注册页 — 底部切换链接
 * ══════════════════════════════════════════════════════════════ */

.auth-container .tip {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 20px !important;
}

.auth-container .tip a.blu {
  display: inline-block !important;
  padding: 6px 18px !important;
  border: 2px solid #4090de !important;
  border-radius: 20px !important;
  background: transparent !important;
  color: #4090de !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all .3s ease !important;
}

.auth-container .tip a.blu:hover {
  background: #4090de !important;
  color: #fff !important;
}

/* 底部版权 */
.copyright {
  text-align: center !important;
  width: 100% !important;
  display: block !important;
  padding: 10px 0 !important;
  color: #999 !important;
  font-size: 14px !important;
}

/* ═══════════════════════════════════════════════════════
   公告弹窗 — 重新设计（按钮吸底版）
   ═══════════════════════════════════════════════════════ */

/* ── 1. 弹窗外框 ── */
.ant-modal {
  width: 92% !important;
  max-width: 460px !important;
  top: 20px !important;
  padding-bottom: 0 !important;
}

.ant-modal-content {
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 12px 48px rgba(0, 0, 0, .18) !important;
}

/* 弹窗主体：唯一的滚动容器
   dvh 会跟随浏览器地址栏伸缩，vh 作为旧浏览器兜底 */
.ant-modal-confirm .ant-modal-body {
  padding: 20px 18px 0 !important;
  max-height: 76vh !important;
  max-height: 76dvh !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

/* ── 2. 关键：取消内层滚动，只保留一层 ── */
.ant-modal-confirm-body-wrapper,
.ant-modal-confirm-body,
.ant-modal-confirm-content,
.ant-modal-confirm-content > div {
  max-height: none !important;
  overflow: visible !important;
  height: auto !important;
}

/* ── 3. 去掉中间灰色盒子的边框和内边距 ── */
.ant-modal-confirm-content {
  margin: 14px 0 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}

.ant-modal-confirm-content > div,
.ant-modal-confirm-content > div > div:first-child {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* ── 4. 标题栏 ── */
.ant-modal-confirm-title {
  font-size: 17px !important;
  font-weight: 600 !important;
  padding-right: 28px !important;
}

.ant-modal-confirm .ant-modal-confirm-body > .anticon,
.ant-modal-confirm-body > svg {
  margin-right: 10px !important;
  font-size: 20px !important;
}

/* ── 5. 关闭按钮 ── */
.ant-modal-close {
  top: 4px !important;
  right: 4px !important;
}

.ant-modal-close-x {
  width: 44px !important;
  height: 44px !important;
  line-height: 44px !important;
  font-size: 17px !important;
}

/* ── 6. 底部按钮吸底 ── */
/* 无论内容多长，按钮始终贴在可视区底部，不会被顶出屏幕 */
.ant-modal-confirm-body-wrapper .ant-modal-confirm-btns {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 5 !important;
  float: none !important;
  text-align: center !important;
  width: 100% !important;
  margin-top: 16px !important;
  padding: 12px 0 16px !important;
  background: #fff !important;
  border-top: 1px solid #eef0f5 !important;
}

.ant-modal-confirm-btns .ant-btn {
  float: none !important;
  min-width: 140px !important;
  height: 42px !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
}

/* ── 7. 正文内容排版 ── */
.ant-modal-confirm-content p {
  margin-bottom: 10px !important;
}

.ant-modal-confirm-content p:last-child {
  margin-bottom: 0 !important;
}

.ant-modal-confirm-content ul,
.ant-modal-confirm-content ol {
  padding-left: 20px !important;
  margin-bottom: 12px !important;
}

.ant-modal-confirm-content li {
  margin-bottom: 6px !important;
}

.ant-modal-confirm-content > div > div {
  padding: 12px 14px !important;
  margin-bottom: 12px !important;
}

.ant-modal-confirm-content > div > div:last-child {
  margin-bottom: 0 !important;
}

.ant-modal-confirm-content a[style*="background"],
.ant-modal-confirm-content a[class*="btn"] {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  text-align: center !important;
}

.ant-modal-confirm-content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 8px !important;
}

/* ── 8. 手机端 ── */
@media (max-width: 768px) {
  .ant-modal {
    width: 94% !important;
    top: 12px !important;
    margin: 0 auto !important;
  }

  .ant-modal-confirm .ant-modal-body {
    padding: 18px 14px 0 !important;
    max-height: 80vh !important;
    max-height: 80dvh !important;
  }

  .ant-modal-confirm-title {
    font-size: 16px !important;
  }

  .ant-modal-confirm-content {
    font-size: 13.5px !important;
    line-height: 1.65 !important;
  }

  .ant-modal-confirm-content > div > div {
    padding: 10px 12px !important;
    margin-bottom: 10px !important;
  }

  .ant-modal-confirm-body-wrapper .ant-modal-confirm-btns {
    padding: 10px 0 14px !important;
    margin-top: 12px !important;
  }

  .ant-modal-confirm-btns .ant-btn {
    min-width: 60% !important;
    height: 44px !important;
  }
}

/* ── 9. 矮屏兜底（横屏 / 小屏手机）── */
@media (max-height: 640px) {
  .ant-modal {
    top: 8px !important;
  }

  .ant-modal-confirm .ant-modal-body {
    max-height: 86vh !important;
    max-height: 86dvh !important;
    padding-top: 14px !important;
  }
}

/* ── 10. 滚动条美化 ── */
.ant-modal-confirm .ant-modal-body::-webkit-scrollbar {
  width: 5px;
}

.ant-modal-confirm .ant-modal-body::-webkit-scrollbar-thumb {
  background: #d0d5e0;
  border-radius: 3px;
}

.ant-modal-confirm .ant-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

/* ── 11. 暗色模式 ── */
body.is-darkmode .ant-modal-confirm-body-wrapper .ant-modal-confirm-btns {
  background: #1f232e !important;
  border-top-color: rgba(255, 255, 255, .08) !important;
}

/* 确保按钮本身是内联块级，以便受 text-align 影响 */
.ant-modal-confirm-btns .ant-btn {
    float: none !important;
}
/* 弹窗外框：宽度 + 吸顶高度（这是全文最后一处 .ant-modal，实际生效的就是这条） */
.ant-modal {
  width: 88% !important;
  max-width: 420px !important;
  top: 60px !important;
  margin: 0 auto !important;
}

/* 隐藏原始支付按钮区域（桌面端仍保留，仅移动端隐藏） */
@media (max-width: 768px) {
  .g-btns {
    display: none !important;
  }
}
/* 悬浮支付底栏 */
#fp-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #eeeeee;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.10);
  padding: 10px 16px 20px;
  z-index: 9999;
}
#fp-bar .fp-label {
  font-size: 12px;
  color: #999999;
  text-align: right;
  margin-bottom: 8px;
}
#fp-bar .fp-amount {
  font-size: 18px;
  font-weight: 600;
  color: #e05a5a;
}
#fp-bar .fp-fee {
  font-size: 11px;
  color: #bbbbbb;
  margin-left: 4px;
}
#fp-bar #fp-btn {
  width: 100%;
  background: #4a90e2;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
#fp-bar #fp-btn:hover {
  background: #3a7fd5;
}
#fp-bar #fp-btn:active {
  background: #2d6bbf;
  transform: scale(0.98);
}
/* 一体化嵌入式分段选择器 */
.period-select {
  display: flex;
  background: #f5f5f5;       /* 浅灰底座 */
  border-radius: 8px;        /* 和"立即购买"按钮统一的微圆角 */
  padding: 3px;
  margin: 12px 0;
  gap: 2px;
}
.period-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 7px 4px;
  font-size: 13px;
  color: #888;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.period-btn:hover {
  color: #555;
}

/* 激活态：浅色背景块 + 文字加粗，贴合主题色 */
.period-btn.is-active {
  background: #fff;
  color: var(--primary-color, #1890ff);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* 弹窗吸顶高度已改由 .ant-modal 的 top / margin 控制，见上方。
   注意：不要给 .ant-modal-wrap 设 display: flex !important，
   它会压过 antd 关闭弹窗时打的行内 display: none，
   导致全屏遮罩层残留、整页点不动。 */

/* 让"我的订阅"和"快速导入"两个区块左右互换位置 */
/* 桌面端：左右互换 */
@media (min-width: 769px) {
  .subscribe-info {
    display: flex !important;
    flex-direction: row-reverse !important;
  }
}

/* 手机端：上下互换 */
@media (max-width: 768px) {
  .subscribe-info {
    display: flex !important;
    flex-direction: column-reverse !important;
  }
}

/* 仪表盘圆环卡片 */
#gauge-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 20px 24px;
  margin-bottom: 16px;
  box-sizing: border-box;
}

#gauge-card .gc-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

#gauge-card .gc-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: #666;
}

#gauge-card .gc-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
  flex-shrink: 0;
}

#gauge-card .gc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  border-top: 1px solid #f0f0f0;
  margin-top: 12px;
  height: 140px;
}

#gauge-card .gc-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 12px;
  min-height: 70px;
  border-bottom: 1px solid #f0f0f0;
  border-right: 1px solid #f0f0f0;
}

#gauge-card .gc-item:nth-child(2n) {
  border-right: none;
}

#gauge-card .gc-item:nth-child(3),
#gauge-card .gc-item:nth-child(4) {
  border-bottom: none;
}

#gauge-card .gc-dot2 {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4a90e2;
  flex-shrink: 0;
}

#gauge-card .gc-val {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  line-height: 1.3;
}

#gauge-card .gc-lab {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

@media (max-width: 768px) {
  #gauge-card {
    padding: 16px;
  }
  #gauge-card .gc-grid {
    height: 160px;
  }
  #gauge-card .gc-item {
    padding: 0 8px;
    min-height: 80px;
  }
}

/* 在仪表盘页面，原始卡片立即隐藏，不等 JS */
.dashboard-container .overview-box {
  visibility: hidden;
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
/* 修复个人中心我的钱包区域布局 */
.profile-container .pro-bag {
  margin-top: 0 !important;
}
/* 未支付提示条 — 立即支付链接改为蓝色按钮 */
.unpay-tip .cont .link {
  display: inline-block;
  margin-left: 4px;
  padding: 3px 12px;
  background: #1890ff;
  color: #fff !important;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background .2s;
}

.unpay-tip .cont .link:hover {
  background: #096dd9;
  color: #fff !important;
}
/* 订阅卡片 · 续费说明小字 */
.subs-btns {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.fy-renew-note {
  margin: 0 !important;
  font-size: 13px;
  color: #595959;
  line-height: 1.5;
}

/* 手机端：换行到按钮上方 */
@media (max-width: 991px) {
  .fy-renew-note {
    flex-basis: 100%;
    order: -1;
  }
}

/* 修复容器固定 210px 高 + overflow:hidden，裁掉第 8 个按钮 */
.panel-body.import-btns {
  height: auto !important;
  overflow: visible !important;
}