/* 模板三 · itch.io 风（参考 itch.io）：白底 + 左侧标签链接栏 + 焦点游戏 + 带简介的卡片网格 */

:root {
  --bg: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f7f7f7;
  --text: #222222;
  --text-dim: #767676;
  --accent: #fa5c5c;
}

body {
  background: #ffffff;
}

.site-header {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #e4e4e4;
}

.search-box input {
  background: #f4f4f4;
  border: 1px solid #dcdcdc;
  color: #222222;
  border-radius: 4px;
}

.lang-toggle {
  background: #ffffff;
  border: 1px solid #dcdcdc;
  color: #555555;
  border-radius: 4px;
}

.tpl-back {
  color: #767676;
}

main {
  max-width: 1300px;
}

/* 左侧标签链接栏 */
.tpl-with-sidebar {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
}

.tpl-with-sidebar .breadcrumb {
  flex: 0 0 100%;
}

.tpl-sidebar {
  flex: 0 0 190px;
  position: sticky;
  top: 76px;
}

.side-title {
  font-size: 15px;
  font-weight: 700;
  color: #222222;
  margin: 20px 0 8px;
}

.side-title:first-child {
  margin-top: 0;
}

.side-link {
  display: block;
  padding: 4px 0;
  color: #555555;
  text-decoration: none;
  font-size: 14px;
}

.side-link:hover {
  color: var(--accent);
}

#view {
  flex: 1;
  min-width: 0;
}

/* 介绍条 */
.intro-strip {
  background: #f4f4f4;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 14px;
  color: #555555;
  line-height: 1.8;
  margin-bottom: 26px;
}

/* 焦点游戏位 */
.spotlight {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.spot-cover {
  flex: 1 1 420px;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: #eeeeee;
}

.spot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.spot-cover .game-icon-placeholder {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0;
  font-size: 72px !important;
}

.spot-info {
  flex: 1 1 260px;
}

.spot-info h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.spot-info p {
  font-size: 14px;
  color: #555555;
  line-height: 1.8;
  margin-bottom: 12px;
}

.spot-tags {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 20px;
}

.play-btn {
  background: #fa5c5c;
  box-shadow: none;
  border-radius: 6px;
}

/* 最新推荐网格 */
.itch-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid #222222;
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.itch-head h2 {
  font-size: 18px;
}

.itch-head a {
  color: var(--accent);
  font-size: 13px;
  text-decoration: none;
}

.itch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.itch-card {
  cursor: pointer;
}

.itch-cover {
  aspect-ratio: 16 / 12;
  border-radius: 4px;
  overflow: hidden;
  background: #eeeeee;
  margin-bottom: 10px;
}

.itch-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.itch-cover .game-icon-placeholder {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0;
  font-size: 44px !important;
}

.itch-row {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.itch-price {
  color: #888888;
  font-size: 13px;
  white-space: nowrap;
}

.itch-title {
  font-weight: 700;
  font-size: 15px;
  color: #222222;
}

.itch-card:hover .itch-title {
  color: var(--accent);
}

.itch-tags {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin: 3px 0;
}

.itch-desc {
  font-size: 13px;
  color: #767676;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 分类 / 详情页元素 */
.game-card,
.cat-card {
  background: #ffffff;
  border: 1px solid #e4e4e4;
}

.game-card:hover,
.cat-card:hover {
  background: #fff5f4;
  box-shadow: 0 4px 14px rgba(250, 92, 92, 0.12);
}

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

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

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

.detail-cat-tag {
  background: #ffe3e3;
  color: #fa5c5c;
}

.detail-cat-tag:hover {
  background: #ffd2d2;
}

.detail-section h3 {
  border-left-color: var(--accent);
}

.player-bar {
  background: #2b2b2b;
}

@media (max-width: 900px) {
  .tpl-sidebar {
    display: none;
  }

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

@media (max-width: 560px) {
  .itch-grid {
    grid-template-columns: 1fr;
  }
}
