/* ====== Tact Grip — Bento Grid Homepage ====== */
.tg-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 80px;
}

/* 顶栏徽章条 */
.bento--top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}
.bento__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--tg-border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--tg-text);
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.06);
}
.bento__tag {
  background: var(--tg-orange);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}
.bento__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tg-green);
  box-shadow: 0 0 0 3px rgba(102, 187, 106, 0.25);
}
.bento__status {
  font-weight: 600;
}
.bento__star {
  color: var(--tg-gold);
  font-size: 15px;
}
.bento__num {
  font-weight: 800;
  color: var(--tg-navy);
}
.bento__sub {
  color: var(--tg-text-dim);
  font-size: 12px;
}

/* ====== Bento Grid ====== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(140px, auto);
  gap: 16px;
}

/* 通用卡片 */
.bento-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--tg-border);
  box-shadow: 0 6px 20px rgba(30, 58, 95, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(30, 58, 95, 0.14);
}
.bento-card--dark {
  background: var(--tg-navy);
  border-color: #2b4a73;
}

/* 尺寸跨度 */
.bento-card--xl { grid-column: span 12; }
.bento-card--lg { grid-column: span 8; }
.bento-card--md { grid-column: span 6; }
.bento-card--sm { grid-column: span 4; }

/* ====== Hero 大卡 ====== */
.bento-card--hero {
  aspect-ratio: 16 / 9;
  max-height: 80vh;
  display: flex;
  align-items: flex-end;
}
/* 宽屏 Hero:突破容器,全屏宽度 */
.bento-card--wide {
  width: 100%;
  max-width: none;
  border-radius: 0;
  border: none;
  box-shadow: none;
  margin: 0;
}
.bento-card--wide:hover {
  transform: none;
  box-shadow: none;
}
.bento-card--wide .bento-card__body {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.bento-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.bento-card__img--contain { object-fit: contain; background: #e8f5e9; }
.bento-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,58,95,0) 35%, rgba(30,58,95,0.78) 100%);
  z-index: 1;
}
.bento-card__body {
  position: relative;
  z-index: 2;
  padding: clamp(20px, 4vw, 40px);
  color: #fff;
  width: 100%;
}
.bento-card__chip {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.bento-card__title {
  font-family: var(--tg-font-display);
  font-size: clamp(40px, 8vw, 72px);
  line-height: 1;
  margin: 0 0 10px;
  color: #fff !important;
  text-shadow: 0 4px 18px rgba(0,0,0,0.35);
}
.bento-card__desc {
  font-size: clamp(14px, 2.4vw, 17px);
  margin: 0 0 22px;
  color: rgba(255,255,255,0.9);
}
.bento-card__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* 标签角 */
.bento-card__tag {
  position: absolute;
  z-index: 3;
  background: var(--tg-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}
.bento-card__tag--tl { top: 14px; left: 14px; }

/* 按钮 */
.bento-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: clamp(10px, 1.8vw, 14px) clamp(18px, 3vw, 26px);
  border-radius: 999px;
  font-weight: 700;
  font-size: clamp(13px, 1.8vw, 15px);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--tg-font-body);
}
.bento-btn:hover { transform: scale(1.04); }
.bento-btn--primary {
  background: var(--tg-orange);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 107, 53, 0.4);
}
.bento-btn--dark {
  background: var(--tg-navy);
  color: #fff;
}
.bento-card--dark .bento-btn--primary { background: #fff; color: var(--tg-navy); }
.bento-btn--ghost {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  backdrop-filter: blur(6px);
}
.bento-btn--block { display: flex; width: 100%; justify-content: center; }
.bento-btn--lg { padding: 16px 28px; font-size: 16px; }

/* ====== 截图卡 ====== */
.bento-card--shot { position: relative; overflow: hidden; padding: 0; display: flex; }

/* ====== 轮播图 ====== */
.bento-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}
.bento-carousel__track {
  position: relative;
  width: 100%;
  height: 100%;
}
.bento-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}
.bento-carousel__slide.is-active {
  opacity: 1;
  z-index: 1;
}
.bento-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bento-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--tg-navy);
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.bento-carousel__btn:hover { background: #fff; }
.bento-carousel__btn--prev { left: 10px; }
.bento-carousel__btn--next { right: 10px; }
.bento-carousel__dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 6px;
}
.bento-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.bento-carousel__dot.is-active {
  background: #fff;
  transform: scale(1.3);
}

/* ====== 数据卡 ====== */
.bento-card--stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
}
.bento-card--dark .bento-stat__num { color: #fff; }
.bento-card--dark .bento-stat__label { color: rgba(255,255,255,0.6); }
.bento-stat__num {
  font-family: var(--tg-font-display);
  font-size: clamp(34px, 6vw, 52px);
  color: var(--tg-navy);
  line-height: 1;
  margin-bottom: 6px;
}
.bento-stat__num span { font-size: 0.45em; color: var(--tg-orange); margin-left: 2px; }
.bento-stat__label {
  font-size: 13px;
  color: var(--tg-text-dim);
  font-weight: 600;
}

/* ====== 玩法流程卡 ====== */
.bento-card--flow { padding: clamp(20px, 3vw, 32px); }
.bento-card__h3 {
  font-family: var(--tg-font-display);
  font-size: clamp(20px, 3vw, 26px);
  margin: 0 0 18px;
  color: var(--tg-navy);
}
.bento-card--dark .bento-card__h3 { color: #fff; }
.bento-flow {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bento-flow li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--tg-border);
}
.bento-flow li:last-child { border-bottom: none; padding-bottom: 0; }
.bento-flow__n {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tg-orange);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
}
.bento-flow strong {
  display: block;
  color: var(--tg-navy);
  font-size: 15px;
  margin-bottom: 3px;
}
.bento-flow p {
  margin: 0;
  font-size: 13px;
  color: var(--tg-text-dim);
  line-height: 1.5;
}

/* ====== 英雄卡 ====== */
.bento-card--heroes { padding: clamp(20px, 3vw, 32px); }
.bento-heroes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.bento-hero {
  text-align: center;
  border-radius: 16px;
  padding: 12px 8px;
  background: #f8fafc;
  border: 1px solid var(--tg-border);
  transition: transform 0.25s ease;
}
.bento-hero:hover { transform: translateY(-3px); }
.bento-hero__img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #e0f2fe, #fef3c7);
}
.bento-hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bento-hero__name {
  display: block;
  font-weight: 700;
  color: var(--tg-navy);
  font-size: 13px;
}
.bento-hero__role {
  display: block;
  font-size: 11px;
  color: var(--tg-orange);
  font-weight: 600;
  margin-top: 2px;
}

/* ====== 技能卡 ====== */
.bento-card--skills { padding: clamp(20px, 3vw, 32px); }
.bento-skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.bento-skill {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 14px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}
.bento-skill:hover { background: rgba(255,255,255,0.15); }
.bento-skill__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: #fff;
  margin-bottom: 4px;
}
.bento-skill__icon--orange { background: var(--tg-orange); }
.bento-skill__icon--blue { background: var(--tg-blue); }
.bento-skill__icon--green { background: var(--tg-green); }
.bento-skill strong { color: #fff; font-size: 14px; }
.bento-skill span { color: rgba(255,255,255,0.65); font-size: 11px; }
.bento-card__hint {
  margin: 14px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

/* ====== 养成系统卡 ====== */
.bento-card--progression { padding: clamp(18px, 2.5vw, 26px); }
.bento-prog {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bento-prog__item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--tg-border);
}
.bento-prog__item:last-child { border-bottom: none; padding-bottom: 0; }
.bento-prog__img {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border: 2px solid var(--tg-green);
}
.bento-prog__img img { width: 100%; height: 100%; object-fit: cover; }
.bento-prog__icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 30px;
  color: #fff;
}
.bento-prog__icon--blue { background: linear-gradient(135deg, var(--tg-blue), var(--tg-sky-hi)); }
.bento-prog__icon--gold { background: linear-gradient(135deg, var(--tg-gold), #ff8f00); }
.bento-prog__info { flex: 1; min-width: 0; }
.bento-prog__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--tg-navy);
  font-size: 15px;
  margin-bottom: 4px;
}
.bento-prog__badge {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--tg-green);
  padding: 2px 8px;
  border-radius: 999px;
}
.bento-prog__badge--gold { background: var(--tg-gold); }
.bento-prog__desc {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--tg-text-dim);
  line-height: 1.45;
}
.bento-prog__btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border: none;
  border-radius: 999px;
  background: var(--tg-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s;
}
.bento-prog__btn:hover { transform: scale(1.05); }
.bento-prog__tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--tg-navy);
  background: #f1f8e9;
  padding: 3px 10px;
  border-radius: 999px;
}
.bento-prog__tag i { color: var(--tg-gold); font-size: 13px; }

/* ====== 段位进阶卡 ====== */
.bento-card--rankup { padding: clamp(18px, 2.5vw, 28px); }
.bento-rankup {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  align-items: center;
  flex-wrap: wrap;
}
.bento-rankup__badge {
  flex-shrink: 0;
  width: clamp(90px, 12vw, 140px);
  height: clamp(90px, 12vw, 140px);
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--tg-gold);
  box-shadow: 0 0 20px rgba(255, 179, 0, 0.4);
}
.bento-rankup__badge img { width: 100%; height: 100%; object-fit: cover; }
.bento-rankup__body { flex: 1; min-width: 280px; }
.bento-rankup__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bento-rankup__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--tg-text);
  line-height: 1.4;
}
.bento-rankup__list li i {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--tg-gold), #ff8f00);
  color: #fff;
  font-size: 15px;
}
.bento-rankup__list li strong { color: var(--tg-navy); }

/* ====== 特性卡 ====== */
.bento-card--feat {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.bento-card--feat i {
  font-size: 28px;
  color: var(--tg-orange);
  margin-bottom: 4px;
}
.bento-card--feat strong { color: var(--tg-navy); font-size: 14px; }
.bento-card--feat span { font-size: 12px; color: var(--tg-text-dim); }

/* ====== 战斗Build卡 ====== */
.bento-card--build {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.bento-build__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #e3f2fd, #e8f5e9);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bento-build__img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.bento-build__title {
  padding: 12px 16px 4px;
  color: var(--tg-navy);
  font-size: 15px;
}
.bento-build__desc {
  padding: 0 16px 16px;
  margin: 0;
  font-size: 12px;
  color: var(--tg-text-dim);
  line-height: 1.5;
}

/* ====== 英雄养成卡 ====== */
.bento-card--dev {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.bento-dev__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #e3f2fd, #fff3e0);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bento-dev__img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.bento-dev__title {
  padding: 12px 16px 6px;
  color: var(--tg-navy);
  font-size: 15px;
}
.bento-dev__list {
  list-style: none;
  padding: 0 16px 16px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bento-dev__list li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11.5px;
  color: var(--tg-text);
  line-height: 1.4;
}
.bento-dev__list li i {
  flex-shrink: 0;
  color: var(--tg-orange);
  font-size: 13px;
  margin-top: 1px;
}

/* ====== CTA 卡 ====== */
.bento-card--cta {
  background: linear-gradient(135deg, var(--tg-orange), var(--tg-gold));
  padding: clamp(40px, 8vw, 80px) 24px;
  text-align: center;
}
.bento-cta h2 {
  font-family: var(--tg-font-display);
  font-size: clamp(32px, 6vw, 56px);
  color: #fff;
  margin: 0 0 10px;
  text-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.bento-cta p {
  color: rgba(255,255,255,0.92);
  font-size: clamp(14px, 2.2vw, 18px);
  margin: 0 0 28px;
}
.bento-cta__btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ====== 入场动画 ====== */
.bento-card { opacity: 0; transform: translateY(24px); }
.bento-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ====== 响应式 ====== */
/* 平板:保持桌面跨度,所有行仍为 12 列 */
@media (max-width: 900px) {
  .tg-wrap { padding: 20px 14px 70px; }
}
/* 手机:所有卡片全宽堆叠 */
@media (max-width: 640px) {
  .tg-wrap { padding: 16px 12px 60px; }
  .bento-grid { gap: 12px; grid-auto-rows: minmax(120px, auto); }
  .bento-card--xl,
  .bento-card--lg,
  .bento-card--md,
  .bento-card--sm { grid-column: span 12; }
  .bento-heroes { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .bento-skills { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .bento-hero__name { font-size: 11px; }
  /* 段位卡:徽章居中 */
  .bento-rankup { flex-direction: column; align-items: center; }
}
@media (max-width: 420px) {
  .bento-heroes { grid-template-columns: repeat(3, 1fr); }
  .bento-skills { grid-template-columns: 1fr; }
}
