/* ============ 顶部运营计时条 ============ */
.timer-bar {
  width: 100%;
  background: linear-gradient(90deg, #1e3a8a 0%, #2563eb 50%, #1e3a8a 100%);
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1000;
}
.timer-bar .tb-label {
  opacity: 0.9;
  margin-right: 6px;
}
.timer-bar .tb-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: tbpulse 1.6s infinite;
}
@keyframes tbpulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); }
  70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.timer-bar .tb-seg {
  display: inline-block;
  background: rgba(255,255,255,.14);
  border-radius: 6px;
  padding: 2px 8px;
  margin: 0 2px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  min-width: 34px;
}
.timer-bar .tb-unit {
  font-size: 12px;
  font-weight: 400;
  opacity: .85;
  margin-right: 4px;
}

/* ============ 导航栏购买源码按钮（居中） ============ */
.nav-buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ff7a45 0%, #f5222d 100%);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(245, 34, 45, 0.3);
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}
.nav-buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 34, 45, 0.45);
}
.nav-buy-btn svg {
  width: 16px;
  height: 16px;
}

/* ============ 多链接购买弹窗 ============ */
.buymodal-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.buymodal-mask.show {
  display: flex;
  opacity: 1;
}
.buymodal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 760px;
  max-height: 86vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  transform: scale(0.92) translateY(20px);
  transition: transform 0.28s cubic-bezier(.34,1.56,.64,1);
}
.buymodal-mask.show .buymodal {
  transform: scale(1) translateY(0);
}
.buymodal-head {
  padding: 24px 28px 18px;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  color: #fff;
  position: relative;
}
.buymodal-head h3 {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.buymodal-head p {
  font-size: 13px;
  opacity: .9;
  margin-top: 4px;
}
.buymodal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.buymodal-close:hover { background: rgba(255,255,255,.35); }
.buymodal-body {
  padding: 24px 28px 28px;
  overflow-y: auto;
}
.buygrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.buycell {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1.5px solid #e5edff;
  border-radius: 14px;
  padding: 22px 16px 18px;
  text-decoration: none;
  color: #1f2937;
  background: #fff;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}
.buycell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,.06), rgba(122,92,255,.06));
  opacity: 0;
  transition: opacity .25s;
}
.buycell:hover {
  border-color: #2563eb;
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(37,99,235,.18);
}
.buycell:hover::before { opacity: 1; }
.buycell-ic {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #7a5cff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.buycell-ic img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.buycell-name {
  font-size: 16px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.buycell-desc {
  font-size: 12px;
  color: #6b7280;
  margin-top: 6px;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}
.buycell-price {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 700;
  color: #f5222d;
  position: relative;
  z-index: 1;
}
.buycell-go {
  margin-top: 10px;
  font-size: 12px;
  color: #2563eb;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.buymodal-empty {
  text-align: center;
  color: #9ca3af;
  padding: 40px 0;
  font-size: 14px;
}

/* ============ 移动端导航抽屉里的购买按钮 ============ */
.mobile-buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #ff7a45, #f5222d);
  color: #fff;
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 8px;
}

/* ============ 汉堡按钮 & 移动端抽屉 ============ */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: #2563eb;
  border-radius: 2px;
  transition: all .3s ease;
}
.mobile-drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.5);
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
}
.mobile-drawer-mask.show { opacity: 1; visibility: visible; }
.mobile-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 78%;
  max-width: 320px;
  height: 100%;
  background: #fff;
  z-index: 10002;
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  padding: 0;
  box-shadow: -8px 0 30px rgba(0,0,0,.15);
  overflow-y: auto;
}
.mobile-drawer.show { transform: translateX(0); }
.md-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
  border-bottom: 1px solid #f0f0f0;
}
.md-head button {
  background: none; border: none; font-size: 26px;
  color: #9ca3af; cursor: pointer; line-height: 1;
}
.md-item {
  display: block;
  padding: 15px 20px;
  color: #374151;
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid #f5f7fa;
}
.md-item:active { background: #f0f7ff; }

/* ============ 小屏显示汉堡按钮，隐藏菜单/登录按钮 ============ */
@media (max-width: 992px) {
  .nav-toggle { display: flex; }
  .nav-menu { display: none !important; }
  .btn-login { display: none; }
  .navbar { padding: 14px 20px; }
}

/* ============ 子页面通用 ============ */
.page-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
  padding: 56px 20px;
  text-align: center;
}
.page-hero h1 { font-size: 32px; font-weight: 700; }
.page-hero p { margin-top: 10px; opacity: .92; font-size: 15px; }
.sub-wrap { max-width: 1080px; margin: 32px auto 60px; padding: 0 20px; }
.sub-card {
  background: #fff; border-radius: 16px; padding: 32px;
  box-shadow: 0 6px 24px rgba(37,99,235,.08); margin-bottom: 24px;
}
.sub-card h2 { font-size: 22px; color: #1e3a8a; margin-bottom: 16px; }
.sub-card h3 { font-size: 17px; color: #1f2937; margin: 20px 0 8px; }
.sub-card p { color: #4b5563; line-height: 1.9; font-size: 15px; }
.sub-card a { color: #2563eb; }

/* 功能介绍 Tab */
.pi-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.pi-tab {
  padding: 10px 22px; border-radius: 20px; background: #eaf1ff;
  color: #2563eb; font-weight: 600; cursor: pointer; font-size: 14px;
  transition: all .2s;
}
.pi-tab.active { background: #2563eb; color: #fff; }
.pi-pane { display: none; }
.pi-pane.active { display: block; }

/* 三宫格 */
.three-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 18px; margin-top: 18px; }
.mini-card {
  border: 1px solid #e5edff; border-radius: 14px; padding: 22px; text-align: center;
}
.mini-card .mc-ic {
  width: 48px;height:48px;border-radius:12px;margin:0 auto 12px;
  background:linear-gradient(135deg,#2563eb,#7a5cff);color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:22px;
}
.mini-card h4 { font-size:16px;margin-bottom:6px; }
.mini-card p { font-size:13px;color:#6b7280;line-height:1.6; }

/* 时间轴 */
.timeline { border-left: 2px solid #dbe7ff; margin-left: 8px; padding-left: 24px; }
.tl-item { position: relative; margin-bottom: 26px; }
.tl-item::before {
  content:'';position:absolute;left:-31px;top:4px;width:12px;height:12px;
  border-radius:50%;background:#2563eb;border:3px solid #dbe7ff;
}
.tl-date { color:#2563eb;font-weight:700;font-size:14px; }
.tl-title { font-size:16px;font-weight:600;margin:4px 0; }
.tl-desc { color:#6b7280;font-size:14px;line-height:1.7; }

/* 招聘 / 联系 */
.contact-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px; }
.contact-card { border:1px solid #e5edff;border-radius:14px;padding:24px;text-align:center; }
.contact-card .ct-ic {
  width:50px;height:50px;border-radius:50%;margin:0 auto 12px;
  background:#eaf1ff;color:#2563eb;display:flex;align-items:center;justify-content:center;font-size:22px;
}
.recruit-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px; }
.recruit-card { border:1px solid #e5edff;border-radius:12px;padding:20px;text-align:center; }
.recruit-card .rc-ic { font-size:24px;color:#2563eb;margin-bottom:8px; }
.recruit-card h4 { font-size:15px;margin-bottom:6px; }
.recruit-card p { font-size:13px;color:#6b7280; }

/* 协议 */
.agree-head { text-align:center;margin-bottom:8px; }
.agree-head h2 { font-size:22px;color:#1e3a8a;margin-bottom:12px; }
.agree-head .lead { color:#6b7280;font-size:14px;line-height:1.8; }
.agree-body p { margin-bottom:14px; }
@media (max-width:768px){
  .page-hero h1{font-size:25px;}
  .sub-card{padding:22px;}
}

/* 窄屏计时器紧凑化 */
@media (max-width: 520px) {
  .timer-bar { font-size: 12px; padding: 7px 8px; white-space: nowrap; overflow: hidden; }
  .timer-bar .tb-seg { min-width: 26px; padding: 2px 6px; margin: 0 1px; font-size: 13px; }
  .timer-bar .tb-unit { font-size: 11px; margin-right: 3px; }
  .timer-bar .tb-label { margin-right: 4px; }
  .timer-bar .tb-dot { margin-right: 5px; }
}
