/* 模板七 · plansbiz 风（参考 plansbiz.site）：白底 + 明黄主色，黄色区块栏目 + 描边滑块栏目 */

:root {
  --bg: #ffffff;
  --bg-card: #fbfbfb;
  --text: #333333;
  --text-dim: #777777;
  --accent: #fdd011;
  --pb-yellow: #ffe82c;
  --pb-border: #fdd011;
  --pb-shadow: #e4b715;
}

body {
  background: #ffffff;
}

/* 顶部导航 */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  justify-content: flex-start;
  gap: 12px;
  padding: 8px 24px;
}

.tpl-logo {
  font-size: 28px;
  font-weight: 800;
  color: #333333;
  text-decoration: none;
  white-space: nowrap;
}

.tpl-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  flex: 1;
}

.tpl-nav-link {
  display: block;
  padding: 8px 16px;
  border-radius: 100px;
  color: #333333;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.tpl-nav-link:hover {
  background: var(--pb-yellow);
  color: #333333;
}

.search-box input {
  background: #ffffff;
  border: 2px solid var(--pb-yellow);
  border-radius: 100px;
  color: #666666;
  font-weight: 700;
}

.search-box input::placeholder {
  color: #999999;
}

.search-box input:focus {
  border-color: var(--pb-border);
}

.lang-toggle {
  position: static;
  background: #ffffff;
  border: 2px solid var(--pb-yellow);
  border-radius: 100px;
  color: #333333;
  font-weight: 700;
  flex: 0 0 auto;
}

.tpl-back {
  position: static;
  color: #999999;
  font-size: 12px;
  margin-left: auto;
  flex: 0 0 auto;
}

.tpl-back:hover {
  color: var(--pb-border);
}

main {
  max-width: 1140px;
}

/* 栏目标题（白色胶囊横幅） */
.pb-banner {
  margin-bottom: 12px;
}

.pb-banner span {
  display: inline-block;
  padding: 8px 36px;
  border-radius: 100px;
  background: #ffffff;
  color: #333333;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
}

/* 栏目标题（纯文字） */
.pb-title {
  font-size: 20px;
  font-weight: 800;
  color: #333333;
  margin-bottom: 12px;
}

.pb-sec {
  margin: 20px 0;
}

/* 区块一：黄色底 6 列卡片 */
.pb-m1 {
  background: var(--pb-yellow);
  border-radius: 12px;
  padding: 16px 12px;
}

.pb-grid {
  display: grid;
  gap: 20px;
}

.pb-grid-6 {
  grid-template-columns: repeat(6, 1fr);
}

.pb-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.pb-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  cursor: pointer;
  background: var(--pb-yellow);
  box-shadow: 0 0 2px 0 rgba(255, 255, 255, 0.5) inset, 0 1px 4px 0 var(--pb-shadow);
  transition: transform 0.15s;
}

.pb-card:hover {
  transform: translateY(-3px);
}

.pb-card .pb-img,
.pb-card .game-icon-placeholder {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 0.8;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  background: #d9d9d9;
  font-size: 38px !important;
}

.pb-name {
  font-size: 14px;
  font-weight: 700;
  color: #333333;
  line-height: 1.3;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 描边卡片（白底灰边，用于滑块与趋势栏目） */
.pb-card.bordered {
  background: #fbfbfb;
  border: 2px solid #e5e5e5;
  box-shadow: none;
  padding: 0 0 8px;
  text-align: center;
}

.pb-card.bordered .pb-img,
.pb-card.bordered .game-icon-placeholder {
  border-radius: 10px 10px 0 0;
}

.pb-card.bordered .pb-name {
  padding: 0 8px;
}

/* 区块二：热门滑块 + 最新发布 */
.pb-row {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.pb-box {
  border: 4px solid var(--pb-border);
  border-radius: 12px;
  padding: 12px;
}

.pb-m2 {
  width: calc(70% - 12px);
}

.pb-m3 {
  width: calc(30% - 12px);
}

.pb-slider {
  position: relative;
  overflow: hidden;
  padding: 4px 0;
}

.pb-slider-wrap {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.pb-slide-group {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0 44px;
}

.pb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--pb-border);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.pb-arrow.left {
  left: 2px;
}

.pb-arrow.right {
  right: 2px;
}

.pb-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

/* 最新发布列表行 */
.pb-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pb-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border-radius: 10px;
  padding: 4px;
  transition: background 0.15s;
}

.pb-list-item:hover {
  background: #fff8d6;
}

.pb-list-item .pb-img,
.pb-list-item .game-icon-placeholder {
  width: 64px !important;
  height: 64px !important;
  border-radius: 10px;
  object-fit: cover;
  background: #d9d9d9;
  flex: 0 0 auto;
  font-size: 24px !important;
}

.pb-list-item .pb-name {
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* 区块四：最受喜爱 3 列横排卡 */
.pb-fav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #f8f8f8;
  cursor: pointer;
  transition: transform 0.15s;
}

.pb-fav:hover {
  transform: translateY(-3px);
}

.pb-fav .pb-img,
.pb-fav .game-icon-placeholder {
  width: 96px !important;
  height: 96px !important;
  border-radius: 12px;
  object-fit: cover;
  background: #d9d9d9;
  flex: 0 0 auto;
  font-size: 32px !important;
}

.pb-fav .pb-name {
  flex: 1;
  white-space: normal;
  font-size: 15px;
}

.pb-fav-play {
  color: #5daf03;
  font-size: 26px;
  flex: 0 0 auto;
}

/* 分类 / 详情 / 播放器等通用元素的浅色覆盖 */
.hero-title {
  background: linear-gradient(120deg, #fdd011, #ff9d2e);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-desc {
  color: #777777;
}

.section-title {
  color: #333333;
}

.breadcrumb,
.breadcrumb a {
  color: #888888;
}

.breadcrumb a:hover {
  color: var(--pb-border);
}

.breadcrumb .current {
  color: #333333;
}

.empty-tip {
  color: #888888;
}

.game-card,
.cat-card {
  background: #ffffff;
  border: 1px solid #f0f0f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.game-card:hover,
.cat-card:hover {
  background: #fffdf2;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.09);
}

.game-name,
.cat-name {
  color: #333333;
}

.cat-count {
  color: #888888;
}

.game-icon,
.cat-icon,
.detail-icon {
  background: #e9e9e9;
}

.detail-head {
  background: #ffffff;
  border: 1px solid #f0f0f0;
}

.detail-title {
  color: #333333;
}

.detail-cat-tag {
  background: rgba(253, 208, 17, 0.16);
  color: #b8910a;
}

.detail-cat-tag:hover {
  background: rgba(253, 208, 17, 0.32);
}

.detail-section h3 {
  border-left-color: var(--pb-border);
  color: #333333;
}

.detail-desc {
  color: #777777;
}

.info-table {
  background: #ffffff;
  border: 1px solid #f0f0f0;
}

.info-table td {
  border-top-color: #f2f2f2;
  color: #333333;
}

.info-table td.k {
  color: #888888;
}

.info-table a {
  color: #b8910a;
}

.play-btn {
  background: var(--pb-yellow);
  color: #333333;
  box-shadow: 0 2px 6px rgba(228, 183, 21, 0.55);
}

.player-bar {
  background: #333333;
}

@media (max-width: 900px) {
  .pb-grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }

  .pb-row {
    flex-direction: column;
  }

  .pb-m2,
  .pb-m3 {
    width: 100%;
  }

  .pb-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .tpl-logo {
    font-size: 20px;
  }

  .tpl-nav {
    display: none;
  }

  .pb-grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }

  .pb-slide-group {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 36px;
  }
}
