/**
 * 全站壳层：顶栏 / 搜索 / 导航 / 悬浮条（首页 + 内页共用）
 */
:root {
  --px9-orange: #f6a046;
  --px9-orange2: #ff8400;
  --px9-red: #ff2045;
  --px9-line: #f0f0f0;
  --px9-card: #ffffff;
  --px9-w: 1200px;
}

body.pxb9-pc,
body.pxb9-idx-page {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #141414;
  background: #f5f6f8;
  -webkit-font-smoothing: antialiased;
}
body.pxb9-pc a,
body.pxb9-idx-page a {
  text-decoration: none;
  color: inherit;
}
body.pxb9-pc img,
body.pxb9-idx-page img {
  border: 0;
  vertical-align: middle;
}

.pxb9-page {
  max-width: var(--px9-w);
  margin: 0 auto;
  padding: 0 20px 48px;
}

.idx-top {
  background: #fafafa;
  border-bottom: 1px solid #eee;
  font-size: 12px;
  color: #999;
}
.idx-top__in {
  max-width: var(--px9-w);
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.idx-top__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.idx-top__links a {
  transition: color 0.2s;
}
.idx-top__links a:hover {
  color: var(--px9-orange);
}

.idx-hd {
  background: var(--px9-card);
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}
.idx-hd__row {
  max-width: var(--px9-w);
  margin: 0 auto;
  padding: 20px 24px 14px;
  display: flex;
  align-items: flex-start;
  gap: 32px;
}
.idx-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.idx-logo:hover {
  opacity: 0.88;
}
.idx-logo--brand img {
  width: auto !important;
  height: 80px !important;
  max-width: 320px;
  object-fit: contain;
}
.idx-logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}
.idx-logo b {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--px9-orange);
  line-height: 1.2;
}
.idx-logo small {
  display: block;
  font-size: 11px;
  color: #999;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.idx-search-box {
  flex: 1;
  min-width: 0;
}
.idx-search {
  display: flex !important;
  align-items: center;
  height: 60px;
  border: 2px solid var(--px9-orange);
  border-radius: 999px;
  padding: 0 6px 0 18px;
  background: #fff;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.idx-search:focus-within {
  box-shadow: 0 0 0 3px rgba(246, 160, 70, 0.22);
  border-color: var(--px9-orange2);
}
.idx-search__ico {
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0;
  margin-right: 8px;
  object-fit: contain;
}
.idx-search input {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  font-size: 16px;
  height: 48px;
  padding: 0;
  margin: 0;
}
.idx-search button {
  flex-shrink: 0;
  border: 0 !important;
  height: 48px;
  padding: 0 40px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #ff8c00, #ff5b01) !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s;
}
.idx-search button:hover {
  filter: brightness(1.05);
  transform: scale(1.02);
}
.idx-search-hots {
  margin-top: 8px;
  font-size: 12px;
  color: #999;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
}
.idx-search-hots__label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.idx-search-hots__label img {
  width: 14px;
  height: 14px;
}
.idx-search-hots a {
  color: #666;
  transition: color 0.2s;
}
.idx-search-hots a.is-hot,
.idx-search-hots a:nth-child(-n+5) {
  color: var(--px9-red);
}
.idx-search-hots a.is-hot:hover,
.idx-search-hots a:hover {
  color: var(--px9-orange);
}

.idx-hd__promo {
  flex-shrink: 0;
  display: block;
  width: 200px;
  max-width: 200px;
  border-radius: 8px;
  overflow: hidden;
  align-self: center;
}
.idx-hd__promo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 64px;
  object-fit: contain;
  object-position: center right;
  border-radius: 8px;
}

.idx-hd__slogan {
  flex-shrink: 0;
  width: 210px;
  text-align: center;
  padding: 6px 10px;
  line-height: 1.2;
  user-select: none;
}
.idx-hd__slogan-line1 {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: #1a1a1a;
  letter-spacing: 0.5px;
}
.idx-hd__slogan-line2 {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  font-weight: 800;
  color: var(--px9-orange2);
  letter-spacing: 2px;
}

.idx-app {
  flex-shrink: 0;
  width: 90px;
  text-align: center;
  transition: transform 0.2s;
}
.idx-app:hover {
  transform: translateY(-2px);
}
.idx-app__qr {
  width: 76px;
  height: 76px;
  margin: 0 auto;
  border: 1px solid var(--px9-line);
  border-radius: 8px;
  background: #fff url("../img/pxb9/pc/qrcode-wrap.png") center/100% 100% no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
.idx-app__qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}
.idx-app span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: #666;
}

.idx-nav {
  max-width: var(--px9-w);
  margin: 0 auto;
  padding: 0 20px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 32px;
  border-top: 1px solid #f5f5f5;
}
.idx-nav a {
  font-size: 15px;
  color: #333;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s;
}
.idx-nav a:hover {
  color: var(--px9-orange);
}
.idx-nav a.is-on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--px9-orange);
}
.idx-nav__btn {
  margin-left: auto !important;
  padding: 8px 24px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #ffb347, var(--px9-orange2)) !important;
  color: #fff !important;
  font-weight: 600 !important;
  transition: transform 0.15s, box-shadow 0.15s !important;
}
.idx-nav__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 132, 0, 0.35);
}
.idx-nav__btn::after {
  display: none !important;
}

.idx-float {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 600;
  width: 80px;
  background: var(--px9-card);
  border-radius: 12px 0 0 12px;
  border: 1px solid var(--px9-line);
  border-right: 0;
  box-shadow: -2px 0 12px rgba(0, 0, 0, 0.06);
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.idx-float a {
  font-size: 11px;
  color: #666;
  text-align: center;
  width: 100%;
  transition: color 0.2s, transform 0.2s;
}
.idx-float a:hover {
  color: var(--px9-orange);
  transform: translateX(-2px);
}
.idx-float i {
  display: flex;
  width: 40px;
  height: 40px;
  margin: 0 auto 4px;
  border-radius: 8px;
  background: #fafafa;
  align-items: center;
  justify-content: center;
  font-style: normal;
  transition: background 0.2s;
}
.idx-float a:hover i {
  background: #fff5eb;
}
.idx-float i img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.idx-float__top {
  opacity: 0.45;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s, color 0.2s;
}
.idx-float__top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.idx-float.is-scrolled {
  box-shadow: -4px 0 20px rgba(255, 132, 0, 0.12);
}
.idx-float__top-ico {
  display: block;
  width: 14px;
  height: 14px;
  margin: 0 auto 2px;
  border: 2px solid currentColor;
  border-left: 0;
  border-bottom: 0;
  transform: rotate(-45deg) translate(2px, 2px);
  border-radius: 1px;
}
.idx-float a.idx-float__top:hover i.idx-float__top-ico {
  background: transparent;
}

/* 搜索框聚焦 */
.idx-search.is-focus {
  border-color: #ffb366 !important;
  box-shadow: 0 0 0 3px rgba(255, 179, 102, 0.22);
  background: #fff !important;
}
.idx-search button {
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.idx-search button:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 14px rgba(255, 132, 0, 0.35);
}
.idx-search button:active {
  transform: scale(0.98);
}

/* 入场动画（全站） */
@media (prefers-reduced-motion: no-preference) {
  .idx-card:not(.pxb9-inview),
  .pxb9-pc-card:not(.pxb9-inview) {
    opacity: 0;
  }
  .pxb9-idx-page .idx-card,
  .pxb9-idx-page .idx-card__pic img {
    min-height: 1px;
  }
  body.pxb9-idx-page .idx-trust-item:not(.pxb9-inview),
  body.pxb9-idx-page .idx-flash-card:not(.pxb9-inview) {
    opacity: 1;
    transform: none;
  }
  body.pxb9-pc .idx-trust-item:not(.pxb9-inview),
  body.pxb9-pc .idx-flash-card:not(.pxb9-inview) {
    opacity: 0;
    transform: translateY(14px);
  }
  .idx-card.pxb9-inview,
  .pxb9-pc-card.pxb9-inview {
    opacity: 1;
    transition: opacity 0.45s ease var(--pxb9-delay, 0ms);
  }
  .idx-trust-item.pxb9-inview,
  .idx-flash-card.pxb9-inview {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.45s ease var(--pxb9-delay, 0ms),
      transform 0.45s ease var(--pxb9-delay, 0ms);
  }
}
@media (prefers-reduced-motion: reduce) {
  .idx-card,
  .pxb9-pc-card,
  .idx-trust-item,
  .idx-flash-card {
    opacity: 1 !important;
    transform: none !important;
  }
}
.pxb9-filter-tag.is-press,
.pxb9-list__chips a.is-press {
  transform: scale(0.96);
}

/* 内页：屏蔽旧版 global.css 干扰 */
body.pxb9-pc .bfb.bfbtop,
body.pxb9-pc .bfb.bfbtop1,
body.pxb9-pc .bfb.bfbbottom,
body.pxb9-pc .bfbnewreg {
  background: transparent !important;
  padding: 0 !important;
  float: none !important;
  width: auto !important;
  min-height: 0 !important;
}
body.pxb9-pc .regmain {
  float: none !important;
  width: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
}
body.pxb9-pc .regcenter {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.pxb9-pc .pxb9-float {
  display: none !important;
}

@media (max-width: 1200px) {
  .idx-hd__slogan,
  .idx-hd__promo {
    display: none;
  }
}

@media (max-width: 1024px) {
  .idx-app {
    display: none;
  }
  .idx-float {
    display: none;
  }
}
