:root {
  --dark: #1E1E28;
  --card: #2A2A3C;
  --gold: #ffb400
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--dark);
  color: #eee;
  -webkit-font-smoothing: antialiased;
  overflow: visible !important;
  height: auto !important;
}

a {
  text-decoration: none;
  color: inherit
}

img {
  max-width: 100%;
  display: block
}

*,
.btn,
img {
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent
}

.header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  z-index: 9999;
  border-bottom: 0 solid rgba(255, 255, 255, .08);
  -webkit-transform: translateZ(0);
  transform: translateZ(0)
}

.notice-bar {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0, #2a2a4e 100%);
  border-bottom: 1px solid rgba(255, 180, 0, .2);
  height: 32px;
  line-height: 32px;
  position: relative;
  z-index: 10;
  box-shadow: 0 1px 8px rgba(0, 0, 0, .3)
}

.notice-bar .notice-track {
  display: flex;
  white-space: nowrap;
  animation: scrollLeft 18s linear infinite;
  width: max-content
}

.notice-bar .notice-track span {
  flex-shrink: 0;
  padding: 0 50px;
  font-size: 13px;
  font-weight: 500;
  color: #ffb400;
  letter-spacing: .3px;
  text-shadow: 0 0 6px rgba(255, 180, 0, .08)
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(-50%)
  }
}

.notice-bar:hover .notice-track {
  animation-play-state: paused
}

.top-nav {
  background: var(--dark);
  padding: 4px 0 2px 0;
  width: 100%;
  display: block
}

.top-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0 8px;
  gap: 6px
}

.top-nav li {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #ccc;
  padding: 6px 0;
  border-radius: 20px;
  background: rgba(255, 180, 0, .08);
  border: 2px solid rgba(255, 180, 0, .25);
  transition: all .25s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
  user-select: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px
}

.top-nav li .nav-icon {
  font-size: 18px;
  display: inline-block;
  line-height: 1
}

.top-nav li.active {
  color: #fff;
  background: linear-gradient(135deg, #ff7e00 0, #fa0 100%);
  border-color: #ffb400;
  box-shadow: 0 0 24px rgba(255, 180, 0, .35), 0 4px 16px rgba(255, 126, 0, .25);
  transform: scale(1.02)
}

.top-nav li:active {
  transform: scale(.94);
  opacity: .85
}

@media (hover:hover) {
  .top-nav li:hover:not(.active) {
    background: rgba(255, 180, 0, .15);
    border-color: rgba(255, 180, 0, .5)
  }
}

.search-box {
  padding: 8px 12px 4px 12px;
  background: var(--dark)
}

.search-inner {
  position: relative;
  display: flex;
  align-items: center
}

.search-inner input {
  width: 100%;
  height: 44px;
  padding: 0 50px 0 44px;
  border: 1px solid #ccc;
  border-radius: 22px;
  font-size: 15px;
  background: #fff;
  color: #000;
  transition: transform .1s, border-color .2s;
  outline: 0
}

.search-inner input::placeholder {
  color: #666
}

.search-inner input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(255, 180, 0, .2)
}

.search-inner input:active {
  transform: scale(.98)
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  transition: transform .2s ease;
  cursor: pointer
}

.search-icon:active {
  transform: translateY(-50%) scale(.9)
}

.search-icon img {
  width: 100%;
  height: 100%
}

.search-submit-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  height: 32px;
  padding: 0 16px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff7e00 0, #fa0 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(255, 126, 0, .25);
  white-space: nowrap
}

.search-submit-btn:active {
  transform: translateY(-50%) scale(.93);
  box-shadow: 0 1px 4px rgba(255, 126, 0, .35)
}

.search-limit-bar {
  display: none;
  background: #e53935;
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  margin: 4px 12px 0 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .5px;
  box-shadow: 0 4px 16px rgba(229, 57, 53, .4);
  animation: limitBarSlideDown .4s ease;
  position: relative
}

.search-limit-bar.show {
  display: block
}

.search-limit-bar .limit-icon {
  margin-right: 8px
}

.search-limit-bar .limit-unlock-btn {
  display: inline-block;
  margin-left: 12px;
  padding: 2px 18px;
  background: #fff;
  color: #e53935;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2)
}

.search-limit-bar .limit-unlock-btn:active {
  transform: scale(.92)
}

@keyframes limitBarSlideDown {
  0% {
    opacity: 0;
    transform: translateY(-12px)
  }

  100% {
    opacity: 1;
    transform: translateY(0)
  }
}

.online-count-wrap {
  margin: 6px 12px 4px 12px;
  background: rgba(0, 0, 0, .35);
  backdrop-filter: blur(2px);
  border-radius: 60px;
  border: 1px solid rgba(255, 180, 0, .25);
  padding: 4px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s
}

.online-count {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #ffe6c7;
  letter-spacing: .3px
}

.online-icon {
  font-size: 18px;
  filter: drop-shadow(0 0 2px #ffb400)
}

.online-num {
  font-weight: 800;
  font-size: 18px;
  color: #ffb400;
  text-shadow: 0 0 3px rgba(255, 180, 0, .5);
  min-width: 58px;
  display: inline-block;
  text-align: center;
  font-family: monospace
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  margin-left: 4px;
  box-shadow: 0 0 6px #22c55e;
  animation: pulseLive 1.4s infinite
}

@keyframes pulseLive {
  0% {
    opacity: .4;
    transform: scale(.8)
  }

  100% {
    opacity: 1;
    transform: scale(1.2)
  }
}

.video-grid {
  padding: 2px 12px 4px 12px;
  background: var(--dark)
}

.video-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap
}

.video-card {
  flex: 1;
  background: 0 0;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all .2s ease
}

.video-thumb-container {
  position: relative;
  width: 100%;
  height: 130px;
  border-radius: 12px;
  background: var(--card);
  margin-bottom: 6px;
  overflow: hidden;
  transition: all .3s ease
}

.video-thumb-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.free-tag {
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, #ff416c 0, #ff6b6b 50%, #ffa502 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px 2px 8px;
  border-radius: 0 0 10px 0;
  z-index: 5;
  line-height: 1.5;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .4);
  letter-spacing: .5px
}

.lock-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  z-index: 2;
  transition: transform .2s ease
}

.lock-center img {
  width: 100%;
  height: 100%;
  display: block
}

.bottom-icons {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 8px;
  z-index: 2
}

.left-group {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: #fff
}

.eye-icon {
  width: 14px;
  height: 14px;
  background: url('../images/gk.png') center/contain no-repeat;
  transition: transform .2s ease
}

.right-group {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: #fff
}

.time-clock-icon {
  width: 13px;
  height: 13px;
  background: url('../images/sj.png') center/contain no-repeat;
  transition: transform .2s ease
}

.video-card.resource-card {
  background: #2a2a3c;
  border-radius: 12px;
  overflow: hidden;
  padding: 0 0 10px 0;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s
}

.video-card.resource-card:active {
  transform: scale(.96);
  box-shadow: 0 0 0 2px var(--gold)
}

.video-card.resource-card .video-thumb-container {
  border-radius: 12px 12px 0 0;
  margin-bottom: 0
}

.video-card.resource-card .video-info {
  padding: 6px 10px 2px 10px;
  margin-bottom: 0
}

.video-card.resource-card .video-info h5 {
  font-size: 13px;
  color: #fff;
  font-weight: 500;
  max-width: 6.5em;
  white-space: nowrap;
  overflow: hidden
}

.video-card.resource-card .game-download-btn,
.video-card.resource-card .get-resource-btn {
  margin: 2px 10px 0 10px;
  width: calc(100% - 20px)
}

.get-resource-btn {
  display: block;
  width: 100%;
  padding: 3px 0;
  margin-top: 4px;
  border: none;
  border-radius: 20px;
  background: linear-gradient(135deg, #ff7e00 0, #fa0 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(255, 126, 0, .3);
  text-align: center
}

.get-resource-btn:active {
  transform: scale(.95);
  box-shadow: 0 1px 4px rgba(255, 126, 0, .4)
}

.game-download-btn {
  display: block;
  width: 100%;
  padding: 3px 0;
  margin-top: 4px;
  border: none;
  border-radius: 20px;
  background: linear-gradient(135deg, #00b894 0, #00cec9 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(0, 184, 148, .3);
  text-align: center
}

.game-download-btn:active {
  transform: scale(.95);
  box-shadow: 0 1px 4px rgba(0, 184, 148, .4)
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 2px 12px 8px 12px;
  background: var(--dark);
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch
}

.pagination a {
  flex: 0 0 auto;
  min-width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  font-size: 15px;
  color: #bbb;
  background: #2a2a3c;
  border-radius: 50%;
  transition: background .25s, color .25s, transform .15s;
  cursor: pointer;
  padding: 0 6px
}

.pagination a.on {
  background: linear-gradient(135deg, #ff7e00 0, #fa0 100%);
  color: #fff;
  font-weight: 700
}

.pagination a.disabled {
  opacity: .6;
  cursor: default;
  pointer-events: none
}

.pagination a:active:not(.disabled) {
  transform: scale(.88);
  filter: brightness(.9)
}

.pagination .next-btn {
  border-radius: 20px;
  background: #3a3a4c;
  color: #ddd;
  padding: 0 16px;
  min-width: 56px;
  height: 32px;
  line-height: 32px;
  font-size: 15px;
  flex: 0 0 auto
}

.pagination .next-btn.on {
  background: var(--gold);
  color: #fff
}

.pagination .next-btn.disabled {
  opacity: .4
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: rgba(30, 30, 40, .95);
  border-top: 1px solid rgba(255, 180, 0, .15);
  z-index: 9999;
  width: 100%
}

.bottom-nav a {
  flex: 1;
  text-align: center;
  padding: 8px 0 6px;
  font-size: 11px;
  color: #999;
  background: 0 0;
  transition: all .3s ease;
  cursor: pointer
}

.bottom-nav a.on {
  color: var(--gold)
}

.bottom-nav-icon {
  display: block;
  width: 22px;
  height: 22px;
  margin: 0 auto 3px;
  border-radius: 6px;
  background: 0 0;
  background-size: cover;
  transition: all .3s ease
}

.icon-home .bottom-nav-icon {
  background-image: url('../images/sy.jpg')
}

.icon-category .bottom-nav-icon {
  background-image: url('../images/qz.jpg')
}

.icon-new .bottom-nav-icon {
  background-image: url('../images/zb.jpg')
}

.icon-me .bottom-nav-icon {
  background-image: url('../images/wd.jpg')
}

.bottom-nav a:active .bottom-nav-icon {
  transform: scale(.85);
  filter: brightness(1.2)
}

.bottom-nav a:active {
  color: var(--gold)
}

.free-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px 9px;
  background: var(--dark)
}

.free-label {
  position: relative;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  padding-left: 11px
}

.free-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 25px;
  background: var(--gold);
  border-radius: 2px
}

.free-more {
  font-size: 13px;
  color: #bbb
}

html {
  overflow: visible !important;
  height: auto !important
}

.app-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: visible
}

.scroll-box {
  height: auto;
  overflow-y: auto;
  padding-right: 0;
  margin-right: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none
}

.scroll-box::-webkit-scrollbar {
  width: 0 !important
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s
}

.overlay.show {
  opacity: 1;
  pointer-events: auto
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, .2);
  border-top-color: #ffb400;
  border-radius: 50%;
  animation: spin 1s linear infinite
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.page-content {
  display: none
}

.page-content.active {
  display: block
}

.sub-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 10px 12px 10px 12px;
  background: var(--dark);
  border-bottom: 1px solid rgba(255, 255, 255, .08)
}

.sub-nav button {
  flex: 1;
  max-width: 140px;
  padding: 10px 0;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
  text-align: center;
  letter-spacing: .5px;
  background: linear-gradient(135deg, #4a4a6a 0, #6a6a8a 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
  position: relative
}

.sub-nav button.active {
  background: linear-gradient(135deg, #ff7e00 0, #fa0 100%);
  box-shadow: 0 0 12px rgba(255, 126, 0, .5);
  animation: breatheGlow 1.6s ease-in-out infinite
}

@keyframes breatheGlow {

  0%,
  100% {
    box-shadow: 0 0 12px rgba(255, 126, 0, .5), 0 0 24px rgba(255, 126, 0, .2);
    transform: scale(1)
  }

  50% {
    box-shadow: 0 0 36px #ff7e00, 0 0 72px rgba(255, 126, 0, .6), 0 0 108px rgba(255, 126, 0, .3);
    transform: scale(1.04)
  }
}

.sub-nav button:active {
  transform: scale(.94);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3)
}

.sub-nav button:first-child {
  border-radius: 30px 12px 12px 30px
}

.sub-nav button:last-child {
  border-radius: 12px 30px 30px 12px
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 16px
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
  animation: modal-fade-in .3s ease both;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  width: 380px;
  max-width: 100%;
  background: #fff;
  border-radius: 18px;
  padding:  40px 35px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .55);
  transform: scale(.92) translateY(16px);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), opacity .35s ease;
  opacity: 0
}

.modal-overlay.show .modal-content {
  transform: scale(1) translateY(0);
  opacity: 1;
  animation: modal-pop .38s cubic-bezier(.34, 1.56, .64, 1) both;
}

@keyframes modal-pop {
  0% { opacity: 0; transform: scale(.88) translateY(22px); }
  60% { opacity: 1; transform: scale(1.02) translateY(-3px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-top-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 4px;
  padding: 0 2px
}

.modal-close {
  font-size: 26px;
  line-height: 1;
  color: #bbb;
  cursor: pointer;
  transition: color .2s, transform .15s;
  padding: 0 4px;
  user-select: none
}

.modal-close:active {
  color: #333;
  transform: scale(.85)
}

/* —— 二级告知弹窗 —— */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(120% 120% at 50% 20%, rgba(30, 20, 40, .55), rgba(0, 0, 0, .72));
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.confirm-panel {
  width: 380px;
  max-width: 100%;
  background: #fff;
  border-radius: 24px;
  padding: 34px 24px 22px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  animation: modal-pop .38s cubic-bezier(.34, 1.56, .64, 1) both;
  overflow: hidden;
}

.confirm-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #ff2d78, #ff6a3d, #ffb03a);
}

.confirm-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 22px;
  line-height: 1;
  color: #b6bcc7;
  cursor: pointer;
  padding: 0 4px;
  user-select: none;
  transition: color .2s, transform .15s;
  z-index: 2;
}

.confirm-close:active {
  color: #333;
  transform: scale(.85);
}

.confirm-badge {
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  background: linear-gradient(135deg, #ffe3ee, #fff1e2);
  box-shadow: inset 0 0 0 1px rgba(255, 45, 120, .12);
}

.confirm-title {
  font-size: 19px;
  font-weight: 700;
  text-align: center;
  color: #16181d;
  margin-bottom: 14px;
  letter-spacing: .2px;
}

.confirm-body {
  background: #f6f7f9;
  border-radius: 16px;
  padding: 16px 18px;
  max-height: 46vh;
  overflow-y: auto;
}

.confirm-rich {
  font-size: 14px;
  color: #3d424b;
  line-height: 1.7;
}

.confirm-rich p {
  margin: 0 0 10px;
}

.confirm-rich p:last-child {
  margin-bottom: 0;
}

.confirm-rich ul,
.confirm-rich ol {
  margin: 0;
  padding-left: 20px;
}

.confirm-rich li {
  margin: 6px 0;
}

.confirm-rich strong,
.confirm-rich b {
  color: #16181d;
  font-weight: 700;
}

.confirm-rich a {
  color: #ff2d78;
  text-decoration: none;
}

.confirm-rich h1,
.confirm-rich h2,
.confirm-rich h3 {
  font-size: 15px;
  margin: 8px 0 6px;
  color: #16181d;
}

.confirm-intro {
  font-size: 14px;
  color: #555;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 12px;
}

.confirm-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.confirm-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 14px;
  color: #333;
  line-height: 1.55;
}

.confirm-item-icon {
  flex: 0 0 auto;
  font-size: 14px;
  line-height: 1.55;
}

.confirm-item-text {
  flex: 1;
}

.confirm-question {
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  color: #16181d;
  margin: 18px 0 14px;
}

.confirm-actions {
  display: flex;
  gap: 10px;
}

.confirm-btn {
  flex: 1;
  border: none;
  border-radius: 14px;
  padding: 13px 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s, transform .15s, box-shadow .2s;
}

.confirm-btn:active {
  transform: scale(.96);
}

.confirm-continue {
  color: #fff;
  background: linear-gradient(135deg, #ff2d78, #ff6a3d);
  box-shadow: 0 8px 20px rgba(255, 45, 120, .28);
}

.confirm-register {
  color: #333945;
  background: #f0f1f4;
}

@media (max-width: 380px) {
  .confirm-actions {
    flex-direction: column;
  }
}

.modal-main-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  text-align: center;
  margin-bottom: 2px;
  letter-spacing: .3px;
  display: block
}

.modal-sub-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  text-align: center;
  margin-bottom: 12px;
  display: block;
  letter-spacing: .3px
}

.modal-card-area {
  display: block
}

.modal-card-area.hide {
  display: none
}

.modal-video-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f4f4f9;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px
}

.modal-vthumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #ddd;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08)
}

.modal-vthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.modal-vinfo {
  flex: 1;
  min-width: 0
}

.modal-vtitle {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 4px;
  line-height: 1.3;
  word-break: break-all
}

.modal-vmeta-views {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: #666
}

.modal-vmeta-views span {
  display: flex;
  align-items: center;
  gap: 4px
}

.modal-vmeta-views .meta-icon {
  font-size: 14px
}

.modal-vmeta-label {
  display: none;
  font-size: 13px;
  color: #666
}

.modal-vmeta-label span {
  display: flex;
  align-items: center;
  gap: 4px
}

.modal-vmeta-label .meta-icon {
  font-size: 14px
}

.modal-vmeta-label.show {
  display: block
}

.modal-footer-count {
  font-size: 13px;
  color: #999;
  text-align: center;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #e0e0e0;
  display: none
}

.modal-footer-count.show {
  display: block
}

.modal-btn-row .btn-main-text,
.modal-btns .btn-main-text {
  font-size: 20px;
  font-weight: 700
}

.modal-btn-row .btn-sub-text,
.modal-btns .btn-sub-text {
  font-size: 12px;
  font-weight: 700;
  opacity: .85;
  color: rgba(255, 255, 255, .9)
}

.modal-btn-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px
}

.modal-btn-row button {
  flex: 1;
  height: 60px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: transform .15s, box-shadow .25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 6px;
  line-height: 1.2
}

.modal-btn-row button:active {
  transform: scale(.95)
}

.modal-btns {
  display: flex;
  gap: 10px;
  margin-bottom: 12px
}

.modal-btns button {
  flex: 1;
  height: 60px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: transform .15s, box-shadow .25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 6px;
  line-height: 1.2
}

.modal-btns button:active {
  transform: scale(.95)
}

.btn-visit {
  background: linear-gradient(135deg, #ff7e00 0, #fa0 100%);
  box-shadow: 0 4px 14px rgba(255, 126, 0, .35)
}

.btn-visit:active {
  box-shadow: 0 2px 8px rgba(255, 126, 0, .5)
}

.btn-classic {
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}

.btn-classic:active {
  box-shadow: 0 2px 8px rgba(0, 0, 0, .28);
}

.modal-free-desc {
  font-size: 12px;
  color: #999;
  text-align: center;
  margin-bottom: 14px;
  margin-top: 2px
}

.modal-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px
}

.modal-input-row input {
  flex: 1;
  height: 46px;
  padding: 0 16px;
  border: 2px solid #ffb400;
  border-radius: 12px;
  font-size: 16px;
  color: #222;
  background: #fafafa;
  transition: border-color .25s, background .2s, box-shadow .2s;
  min-width: 0
}

.modal-input-row input:focus {
  outline: 0;
  border-color: #ff7e00;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 180, 0, .2)
}

.modal-input-row input::placeholder {
  color: #999;
  font-size: 15px
}

.modal-input-row button {
  height: 46px;
  padding: 0 24px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #4a7bff 0, #8a2be2 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, box-shadow .25s;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(74, 123, 255, .3);
  flex-shrink: 0
}

.modal-input-row button:active {
  transform: scale(.95);
  box-shadow: 0 2px 8px rgba(74, 123, 255, .4)
}

.modal-success-msg {
  font-size: 14px;
  color: #22c55e;
  font-weight: 600;
  padding: 8px 0 2px;
  border-top: 1.5px dashed #e0e0e0;
  margin-top: 2px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px
}

.modal-success-msg.show {
  display: flex
}

.modal-success-msg::before {
  content: '✅';
  font-size: 16px
}

.modal-error-tip {
  font-size: 12px;
  color: #e53935;
  height: 18px;
  margin-top: -6px;
  margin-bottom: 4px;
  opacity: 0;
  transition: opacity .2s;
  text-align: center
}

.modal-error-tip.show {
  opacity: 1;
  animation: shake-tip .36s ease;
}

@keyframes shake-tip {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-5px);
  }
  40% {
    transform: translateX(5px);
  }
  60% {
    transform: translateX(-3px);
  }
  80% {
    transform: translateX(3px);
  }
}

.shake-input {
  animation: shakeInput .36s ease
}

@keyframes shakeInput {

  0%,
  100% {
    transform: translateX(0)
  }

  20% {
    transform: translateX(-6px)
  }

  40% {
    transform: translateX(6px)
  }

  60% {
    transform: translateX(-4px)
  }

  80% {
    transform: translateX(4px)
  }
}

#page-search .search-result-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 30vh;
  padding: 12px 20px 40px 20px;
  text-align: center
}

#page-search .search-result-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px
}

#page-search .search-result-title .search-icon-svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0
}

#searchFolderIcon {
  font-size: 56px;
  cursor: pointer;
  margin: 6px 0 10px 0;
  transition: transform .2s, filter .2s;
  user-select: none;
  line-height: 1
}

#searchFolderIcon:active {
  transform: scale(.88);
  filter: brightness(1.3)
}

#searchKeywordDisplay {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  margin-top: 2px;
  letter-spacing: .5px;
  word-break: break-all
}

#searchResultLink {
  display: none !important
}

#page-search .search-result-hint {
  margin-top: 16px;
  font-size: 14px;
  color: #888
}

#page-search .search-back-link {
  margin-top: 24px;
  font-size: 14px;
  color: #888;
  cursor: pointer;
  transition: color .2s;
  border-bottom: 1px dashed #555;
  padding-bottom: 2px
}

#page-search .search-back-link:active {
  color: var(--gold)
}

.search-spinner {
  margin: 16px 0 8px 0;
  display: flex;
  justify-content: center
}

.search-spinner .spinner {
  width: 32px;
  height: 32px;
  border-width: 3px
}

.toast-tip {
  position: fixed;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0, 0, 0, .85);
  color: #fff;
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 14px;
  z-index: 9999999;
  opacity: 0;
  transition: opacity .4s, transform .4s;
  pointer-events: none;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, .06)
}

.toast-tip.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0)
}

.welcome-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .78);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 20px
}

.welcome-overlay.show {
  opacity: 1;
  pointer-events: auto
}

.welcome-content {
  width: 400px;
  max-width: 100%;
  background: linear-gradient(145deg, #2a2a3c, #1e1e28);
  border-radius: 24px;
  padding: 30px 26px 28px;
  position: relative;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 180, 0, .15);
  transform: scale(.92) translateY(24px);
  transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), opacity .45s ease;
  opacity: 0;
  border: 1px solid rgba(255, 180, 0, .12)
}

.welcome-overlay.show .welcome-content {
  transform: scale(1) translateY(0);
  opacity: 1
}

.welcome-title {
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 18px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px
}

.welcome-title .welcome-emoji {
  font-size: 32px
}

.welcome-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px
}

.welcome-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: #e8e8f0;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  transition: background .2s
}

.welcome-line .line-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  width: 28px;
  text-align: center
}

.welcome-line .line-text {
  flex: 1
}

.welcome-line .line-text .highlight {
  color: var(--gold);
  font-weight: 600
}

.welcome-line-orange .line-text {
  color: var(--gold);
  font-weight: 500
}

.welcome-line-orange .line-text .highlight {
  font-weight: 700
}

.welcome-btn {
  display: block;
  width: 100%;
  padding: 14px 0;
  border: none;
  border-radius: 60px;
  background: linear-gradient(135deg, #ff7e00 0, #fa0 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s, box-shadow .25s;
  box-shadow: 0 4px 20px rgba(255, 126, 0, .35);
  letter-spacing: 1px;
  text-align: center
}

.welcome-btn:active {
  transform: scale(.95);
  box-shadow: 0 2px 10px rgba(255, 126, 0, .5)
}

@media (max-width:480px) {
  .welcome-content {
    padding: 22px 18px 24px
  }

  .welcome-title {
    font-size: 22px
  }

  .welcome-line {
    font-size: 14px;
    padding: 5px 8px;
    gap: 10px
  }

  .welcome-line .line-icon {
    font-size: 18px;
    width: 24px
  }

  .welcome-btn {
    font-size: 16px;
    padding: 12px 0
  }

  .top-nav li {
    font-size: 13px;
    padding: 4px 0
  }

  .top-nav li .nav-icon {
    font-size: 15px
  }
}

.modal-btn-row.hide-paid-btn {
  display: none !important
}

/* Local replica asset fallbacks and desktop-safe layout */
body {
  min-width: 0;
}

img {
  image-rendering: auto;
}

.btn-wechat {
  background: linear-gradient(135deg, #ff7e00 0, #fa0 100%);
  box-shadow: 0 4px 14px rgba(255, 126, 0, .35);
}

.btn-wechat:active {
  box-shadow: 0 2px 8px rgba(255, 126, 0, .5);
}

.modal-acquire-count {
  color: #aaa;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
  margin: 2px 0 4px;
}

.modal-acquire-count strong {
  color: #ff7e00;
  font-weight: 800;
}

.bottom-nav .icon-home .bottom-nav-icon {
  background-image: url('../images/sy.jpg');
}

.bottom-nav .icon-category .bottom-nav-icon {
  background-image: url('../images/qz.jpg');
}

.bottom-nav .icon-new .bottom-nav-icon {
  background-image: url('../images/zb.jpg');
}

.bottom-nav .icon-me .bottom-nav-icon {
  background-image: url('../images/wd.jpg');
}

.eye-icon {
  background-image: url('../images/gk.png') !important;
}

.time-clock-icon {
  background-image: url('../images/sj.png') !important;
}

.search-icon img {
  content: url('../images/ss.jpg');
}

@media (min-width: 768px) {
  body {
    max-width: 560px;
    margin: 0 auto;
    box-shadow: 0 0 38px rgba(0, 0, 0, .35);
  }

  .header-fixed,
  .bottom-nav {
    left: 50%;
    right: auto;
    width: min(100%, 560px);
    transform: translateX(-50%);
  }
}

/* ===== 解锁弹窗：样式2 深色紫蓝（获取《资源》） ===== */
.modal-style-dark .modal-content {
  background: linear-gradient(145deg, #1e1e3a, #2a2a5a);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .6);
}
.modal-style-dark .modal-close {
  color: #a99fc9;
}
.modal-style-dark .dark-title {
  color: #fff;
  font-size: 20px;
}
.modal-style-dark .dark-subtitle {
  color: #b9b0d6;
  font-size: 14px;
  font-weight: 500;
}
.modal-style-dark .dark-input {
  position: relative;
}
.modal-style-dark .dark-input input {
  background: #3a3157;
  border-color: #4a3f6e;
  color: #fff;
}
.modal-style-dark .dark-input input::placeholder {
  color: #8d83ad;
}
.modal-style-dark .dark-input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.modal-style-dark .dark-input-icon:hover {
  color: #000;
  box-shadow: none;
}
.modal-style-dark .btn-confirm.dark-confirm {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c6cf0, #a06cf0);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin: 6px 0 12px;
  box-shadow: 0 4px 14px rgba(124, 108, 240, .35);
}
.modal-style-dark .btn-get-password {
  width: 100%;
  height: 46px;
  background: transparent;
  border: 1.5px dashed #f5c518;
  color: #f5c518;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
}
.modal-style-dark .btn-later {
  display: block;
  margin: 0 auto;
  background: none;
  border: none;
  color: #9a90bd;
  font-size: 13px;
  cursor: pointer;
}

/* ===== 解锁弹窗：样式3 黑底加密（内容已加密） ===== */
.modal-style-vip .modal-content {
  background: #151515;
  border: 1px solid #2a2a2a;
}
.modal-style-vip .vip-head {
  text-align: center;
  margin-bottom: 6px;
}
.modal-style-vip .vip-lock {
  font-size: 30px;
}
.modal-style-vip .vip-title {
  color: #fff;
  font-size: 19px;
  margin-top: 4px;
}
.modal-style-vip .vip-subtitle {
  color: #999;
  font-size: 13px;
}
.modal-style-vip .vip-input input {
  background: #000;
  border-color: #333;
  color: #fff;
}
.modal-style-vip .vip-input input::placeholder {
  color: #777;
}
.modal-style-vip .btn-confirm.vip-confirm {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #2f7cf6, #4a90ff);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin: 6px 0 12px;
}
.modal-style-vip .btn-vip-free {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #e53935, #f44336);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.modal-style-vip .btn-later {
  display: block;
  margin: 12px auto 0;
  background: none;
  border: none;
  color: #999;
  font-size: 13px;
  cursor: pointer;
}

/* ===== 解锁弹窗：样式4 双通道卡片（免费通道 / 注册登陆） ===== */
.modal-style-channel .modal-content {
  background: #262626;
  border: 1px solid #343434;
}
.modal-style-channel .ch-title {
  color: #fff;
  font-size: 20px;
  text-align: center;
}
.modal-style-channel .ch-subtitle {
  color: #999;
  font-size: 13px;
  text-align: center;
  margin: 6px 0 18px;
}
.modal-style-channel .ch-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal-style-channel .ch-card {
  width: 100%;
  background: #333;
  border: 1px solid #404040;
  border-radius: 14px;
  padding: 16px 14px;
  cursor: pointer;
  text-align: center;
}
.modal-style-channel .ch-card:active {
  transform: scale(.98);
}
.modal-style-channel .ch-card-title {
  color: #e53935;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.modal-style-channel .ch-card-sub {
  color: #f5c518;
  font-size: 17px;
  font-weight: 700;
}
.modal-style-channel .ch-card-note {
  color: #888;
  font-size: 12px;
  margin-top: 6px;
}
.modal-style-channel .ch-later {
  display: block;
  width: 100%;
  height: 44px;
  margin-top: 16px;
  background: #3a3a3a;
  border: none;
  border-radius: 12px;
  color: #eee;
  font-size: 15px;
  cursor: pointer;
}

/* ===== 解锁成功面板（三套通用） ===== */
.modal-success-panel {
  text-align: center;
  padding: 10px 4px 4px;
}
.success-icon {
  font-size: 46px;
  margin-bottom: 8px;
}
.success-title {
  font-size: 20px;
  font-weight: 800;
  color: #22c55e;
  margin-bottom: 6px;
}
.success-text {
  font-size: 14px;
  color: #888;
  margin-bottom: 18px;
  line-height: 1.6;
}
.btn-go-redirect {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(34, 197, 94, .35);
}
.btn-success-close {
  display: block;
  margin: 12px auto 0;
  background: none;
  border: none;
  color: #999;
  font-size: 13px;
  cursor: pointer;
}