/* 这里随便写自定义css样式 */

/* 立即注册按钮样式 */
.auth-container .tip {
  margin-bottom: 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
.auth-container .tip a.blu {
  display: inline-block !important;
  padding: 6px 18px !important;
  border: 2px solid #4090de !important;
  border-radius: 20px !important;
  color: #4090de !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  background: transparent !important;
}
.auth-container .tip a.blu:hover {
  background: #4090de !important;
  color: #fff !important;
}

/* Better and 标题样式 */
.home-banner .t1 {
  text-align: center !important;
  margin-bottom: 10px !important;
}
.home-banner .t19 {
  font-size: 36px !important;
  font-weight: 800 !important;
  color: #1890ff !important;
}

/* 首页按钮布局 */
.home-banner .t3 {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 30px !important;
  gap: 16px !important;
}

/* 立即登录 - 比注册稍大 */
.btn-login-home {
  display: block !important;
  width: 220px !important;        /* 原260px → 220px */
  padding: 10px 24px !important;  /* 原12px 30px → 10px 24px */
  border-radius: 10px !important; /* 原12px → 10px */
  font-size: 16px !important;     /* 原18px → 16px */
  font-weight: 500 !important;
  text-align: center !important;
  background: #1890ff !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* 立即注册 - 保持不变 */
.btn-reg-home {
  display: block !important;
  width: 200px !important;
  padding: 8px 20px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-align: center !important;
  background: transparent !important;
  color: #1890ff !important;
  border: 2px solid #1890ff !important;
  text-decoration: none !important;
}

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

/* 针对公告弹窗的按钮容器进行居中 */
.ant-modal-confirm-body-wrapper .ant-modal-confirm-btns {
    float: none !important;      /* 覆盖 AntD 默认的 float: right */
    text-align: center !important; /* 使内部按钮居中 */
    margin-top: 24px !important;  /* 增加一点顶部间距，更好看 */
    width: 100% !important;
}

/* 确保按钮本身是内联块级，以便受 text-align 影响 */
.ant-modal-confirm-btns .ant-btn {
    float: none !important;
}
.ant-modal {
  width: 88% !important;
  max-width: 420px !important;
}

/* 订单列表卡片化改造 */
.order-table .ant-table-thead {
  display: none !important;
}

.order-table .ant-table-tbody tr.ant-table-row {
  display: block !important;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin-bottom: 12px;
  padding: 16px 20px;
  border: none !important;
}

.order-table .ant-table-tbody tr.ant-table-row td {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  border: none !important;
  padding: 6px 0 !important;
  font-size: 14px;
}

.order-table .ant-table-tbody tr.ant-table-row td:first-child {
  font-size: 12px;
  color: #999;
  padding-bottom: 10px !important;
  border-bottom: 1px solid #f0f0f0 !important;
  margin-bottom: 4px;
}

.order-table .ant-table-tbody tr.ant-table-row td:first-child::before { content: "订单号"; font-weight: 500; color: #333; }
.order-table .ant-table-tbody tr.ant-table-row td:nth-child(2)::before { content: "周期"; font-weight: 500; color: #333; }
.order-table .ant-table-tbody tr.ant-table-row td:nth-child(3)::before { content: "金额"; font-weight: 500; color: #333; }
.order-table .ant-table-tbody tr.ant-table-row td:nth-child(4)::before { content: "状态"; font-weight: 500; color: #333; }
.order-table .ant-table-tbody tr.ant-table-row td:nth-child(5)::before { content: "创建时间"; font-weight: 500; color: #333; }
.order-table .ant-table-tbody tr.ant-table-row td:nth-child(6) { 
  justify-content: flex-end;
  padding-top: 10px !important;
  border-top: 1px solid #f0f0f0 !important;
  margin-top: 4px;
}

/* 修复表格布局 */
.order-table .ant-table-fixed { width: 100% !important; }
.order-table .ant-table-scroll { overflow: visible !important; }
.order-table .ant-table-body { overflow: visible !important; }
.order-table colgroup { display: none; }

/* 隐藏原始支付按钮区域（桌面端仍保留，仅移动端隐藏） */
@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-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);
}

/* 给每个订单"卡片"（实际是表格行）加边框 */
.order-table .ant-table-tbody > tr {
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  margin-bottom: 12px;
  display: block;          /* 移动端已经是 block 了，这里保险加一下 */
  overflow: hidden;
}

/* 去掉 antd 默认的蓝色背景高亮，改成只变边框颜色 */
.order-table .ant-table-tbody > tr:hover > td,
.order-table .ant-table-tbody > tr.ant-table-row-hover > td,
.order-table .ant-table-tbody > tr:hover {
  background: transparent !important;
}

.order-table .ant-table-tbody > tr:hover {
  border-color: #1890ff;   /* 鼠标移上去只变边框为主题蓝 */
}

/* 去掉每个 td 原本的下边框线，因为现在整体已经有外边框了 */
.order-table .ant-table-tbody > tr > td {
  border-bottom: none;
}

/* 修改弹窗吸顶高度 */
.ant-modal-wrap {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
}

.ant-modal {
  top: 60px !important;
  margin: 0 auto !important;
}

/* 让"我的订阅"和"快速导入"两个区块左右互换位置 */
/* 桌面端：左右互换 */
@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;
  }
}

/* 永久网址提示 */
.perm-url-tip {
  text-align: center;
  margin-top: 16px;
  margin-bottom: 8px;
  font-size: 20px;
  color: #888;
  line-height: 1.7;
}
.perm-url-tip span {
  display: block;
}
.perm-url-tip span:first-child {
  font-size: 20px;
  color: #4090de;
}
.perm-url-tip span:last-child {
  font-size: 22px;
  font-weight: 600;
  color: #4090de;
}