/* SupportGame · 支持的游戏 · candycake 设计规范
 * 颜色/圆角/阴影/字号 均使用 --cc-* token；断点只用 1100 / 760 / 520
 */

/* ── 页面背景：浅绿白渐变 + 淡网格 ────────────────────────────── */
.support-page {
  position: relative;
  background:
    radial-gradient(circle at 18% 6%, rgba(var(--cc-brand-rgb), .14), transparent 30%),
    radial-gradient(circle at 82% 16%, rgba(158, 236, 211, .22), transparent 32%),
    linear-gradient(180deg, #f5fffb 0%, #ffffff 38%, #f7fcfa 100%);
}
.support-page::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(18, 166, 124, .04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(18, 166, 124, .04) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 78%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 78%);
}
.support-page section { position: relative; padding: 64px 0; }
.support-page .container {
  position: relative; z-index: 1;
  width: min(1680px, calc(100% - 48px));
  max-width: 1680px; margin: 0 auto; padding: 0;
}

/* ── Section Head（kicker + title + sub + actions） ───────────── */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 24px 32px; margin-bottom: 32px;
}
.section-head-copy { max-width: 760px; }
.section-kicker {
  display: inline-flex; align-items: center;
  margin-bottom: 14px; padding: 6px 14px; border-radius: 999px;
  background: linear-gradient(135deg, var(--cc-brand-bg), var(--cc-brand-soft));
  color: var(--cc-brand-dark);
  font-size: 13px; font-weight: 900; letter-spacing: .02em;
}
.section-title {
  margin: 0; color: var(--cc-text);
  font-size: clamp(34px, 3.4vw, 56px); font-weight: 800;
  line-height: 1.14; letter-spacing: -.055em;
}
.title-accent { color: var(--cc-brand); }
.section-sub {
  margin: 16px 0 0; color: #526961;
  font-size: 16px; line-height: 1.85; max-width: 720px;
}
.section-head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ── 按钮（规范 §3.1 三件套） ─────────────────────────────────── */
.support-page .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px;
  border: 1px solid var(--cc-border); border-radius: var(--cc-radius-sm);
  background: var(--cc-surface); color: var(--cc-text);
  font-size: 14px; font-weight: 800; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 95, 71, .06);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.support-page .btn:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--cc-brand-rgb), .35);
  box-shadow: 0 10px 24px rgba(15, 95, 71, .12);
}
.support-page .btn.primary {
  border-color: transparent; color: #fff;
  background: linear-gradient(135deg, var(--cc-brand), var(--cc-brand-strong));
  box-shadow: 0 10px 24px rgba(var(--cc-brand-rgb), .28);
}
.support-page .btn.primary:hover {
  transform: none; color: #fff;
  background: linear-gradient(135deg, var(--cc-brand-strong), var(--cc-brand-dark));
  box-shadow: 0 14px 32px rgba(var(--cc-brand-rgb), .34);
}
.support-page .btn.ghost {
  border-color: transparent; color: var(--cc-brand-dark);
  background: linear-gradient(135deg, var(--cc-brand-bg), var(--cc-brand-soft));
  box-shadow: 0 6px 18px rgba(var(--cc-brand-rgb), .12);
}
.support-page .btn.ghost:hover {
  background: linear-gradient(135deg, var(--cc-brand-soft), #c5ecdc);
  color: var(--cc-brand-dark);
}
.support-page .btn .icon-svg { width: 16px; height: 16px; }

/* ── 1. Hero + 数字事实 ──────────────────────────────────────── */
.support-hero { padding: 72px 0 36px; }
.support-metrics {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px; margin-top: 36px;
}
.support-metric {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--cc-border); border-radius: var(--cc-radius);
  background: var(--cc-surface);
  box-shadow: 0 12px 30px rgba(25, 105, 82, .06);
}
.support-metric-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, #effff9, #d9f8ee);
  color: var(--cc-brand-dark); font-size: 22px; flex-shrink: 0;
}
.support-metric-icon .icon-svg { width: 22px; height: 22px; }
.support-metric > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.support-metric strong {
  color: var(--cc-brand-dark);
  font-size: 22px; font-weight: 900; letter-spacing: -.02em; line-height: 1.1;
}
.support-metric span { color: #687a73; font-size: 13px; font-weight: 600; }

/* ── 2. 列表区 + 搜索 Banner ─────────────────────────────────── */
.support-list { padding: 36px 0 96px; }

.support-search {
  position: relative; height: 168px; margin-bottom: 24px;
  border: 1px solid var(--cc-border); border-radius: var(--cc-radius-lg);
  overflow: hidden; box-shadow: 0 18px 40px rgba(25, 105, 82, .08);
}
.support-search-bg {
  position: absolute; inset: 0; display: flex; width: max-content;
  animation: supportBgScroll 60s linear infinite;
}
.support-search-bg-item { flex: 0 0 auto; width: 220px; height: 100%; object-fit: cover; filter: saturate(.7); }
@keyframes supportBgScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-1760px); }
}
.support-search-veil {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(240, 251, 247, .92) 0%, rgba(240, 251, 247, .72) 38%, rgba(255, 255, 255, .82) 68%, rgba(221, 245, 236, .9) 100%);
  backdrop-filter: blur(1.5px);
}
.support-search-inner {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 0 24px;
}
.support-search-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(var(--cc-brand-rgb), .22);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 10px 24px rgba(15, 95, 71, .08);
  color: var(--cc-brand-dark);
  font-size: 12px; font-weight: 800; letter-spacing: .02em;
}
.support-search-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cc-brand);
  box-shadow: 0 0 0 4px rgba(var(--cc-brand-rgb), .18);
  animation: supportPulse 1.8s ease-in-out infinite;
}
@keyframes supportPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(.7); opacity: .55; }
}
.support-search-box {
  position: relative; display: flex; align-items: center;
  width: min(640px, 100%); height: 56px;
  padding: 0 56px 0 24px; border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 95, 71, .14), inset 0 0 0 1px rgba(var(--cc-brand-rgb), .18);
  transition: box-shadow .2s ease;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 50%, calc(100% - 28px) 100%, 0 100%);
}
.support-search-box:focus-within {
  box-shadow: 0 16px 40px rgba(var(--cc-brand-rgb), .22), inset 0 0 0 2px var(--cc-brand);
}
.support-search-icon { position: absolute; right: 56px; width: 18px; height: 18px; color: var(--cc-brand); }
.support-search-input {
  width: 100%; border: 0; background: transparent; outline: none;
  color: var(--cc-text); font-size: 15px; font-weight: 500; padding-right: 40px;
}
.support-search-input::placeholder { color: #94a8a0; }

/* ── 2.2 筛选 pill ────────────────────────────────────────────── */
.support-filter-bar {
  display: flex; align-items: center; gap: 10px; margin-bottom: 28px;
  padding: 8px;
  border: 1px solid var(--cc-border); border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 10px 24px rgba(15, 95, 71, .06);
  backdrop-filter: blur(8px); overflow-x: auto;
}
.support-filter-bar::-webkit-scrollbar { display: none; }
.support-filter {
  flex-shrink: 0; padding: 10px 20px;
  border: 0; border-radius: 999px;
  background: transparent; color: #526961;
  font-size: 14px; font-weight: 700; letter-spacing: .01em;
  white-space: nowrap; cursor: pointer;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.support-filter:hover { color: var(--cc-brand-dark); background: var(--cc-brand-bg); }
.support-filter.is-active,
.support-filter.active {
  background: linear-gradient(135deg, var(--cc-brand), var(--cc-brand-strong));
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(var(--cc-brand-rgb), .26);
}

/* ── 2.3 游戏卡片 ─────────────────────────────────────────────── */
.support-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px; margin-bottom: 56px;
}
.game-card {
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  background: var(--cc-surface);
  border: 1px solid var(--cc-border); border-radius: var(--cc-radius);
  box-shadow: 0 18px 40px rgba(25, 105, 82, .08);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--cc-brand-rgb), .35);
  box-shadow: 0 28px 60px rgba(25, 105, 82, .16);
}
.game-card-cover {
  position: relative; display: block; padding-top: 142%;
  overflow: hidden; background: #eef7f3; text-decoration: none;
}
.game-card-cover img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .5s ease;
}
.game-card:hover .game-card-cover img { transform: scale(1.06); }
.game-card-cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 95, 71, 0) 60%, rgba(15, 95, 71, .25) 100%);
}
.game-card-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: var(--cc-brand-dark);
  font-size: 12px; font-weight: 800; letter-spacing: .02em;
  box-shadow: 0 6px 14px rgba(15, 95, 71, .14); backdrop-filter: blur(6px);
}
.game-card-badge.is-hot {
  background: linear-gradient(135deg, var(--cc-brand), var(--cc-brand-strong));
  color: #fff;
}
.game-card-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 18px; flex: 1; }
.game-card-title {
  margin: 0; color: var(--cc-text);
  font-size: 16px; font-weight: 900; letter-spacing: -.02em; line-height: 1.35;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px;
}
.game-card-title em {
  font-style: normal;
  font-size: 12px; font-weight: 700; letter-spacing: .02em; color: #8aa39a;
}
.game-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.game-tag {
  padding: 3px 9px; border-radius: 6px;
  background: var(--cc-brand-bg); color: var(--cc-brand-dark);
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
}
.game-card-footer {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding-top: 12px;
  border-top: 1px dashed rgba(var(--cc-brand-rgb), .18);
}
.game-card-price { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.game-card-price-label { color: #8aa39a; font-size: 11px; font-weight: 600; }
.game-card-price-value {
  color: var(--cc-brand-dark);
  font-size: 20px; font-weight: 900; letter-spacing: -.02em;
}
.game-card-price-value small { font-size: 12px; font-weight: 700; color: #8aa39a; margin-left: 2px; }
.game-card-cta {
  min-height: 36px !important; padding: 0 14px !important;
  font-size: 13px !important; border-radius: 8px !important;
  box-shadow: 0 6px 14px rgba(var(--cc-brand-rgb), .22) !important;
}

/* ── 2.4 无结果 ───────────────────────────────────────────────── */
.support-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 60px 24px;
  border: 1px dashed rgba(var(--cc-brand-rgb), .28); border-radius: var(--cc-radius);
  background: rgba(255, 255, 255, .72); color: #64748b; text-align: center;
}
.support-empty.is-hidden { display: none; }
.support-empty-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--cc-brand-bg); color: var(--cc-brand); font-size: 26px;
}
.support-empty-icon .icon-svg { width: 26px; height: 26px; }
.support-empty-title { margin: 0; color: var(--cc-text); font-size: 18px; font-weight: 900; letter-spacing: -.01em; }
.support-empty-desc { color: #64748b; font-size: 13px; }
.support-empty-desc a {
  color: var(--cc-brand); font-weight: 800; text-decoration: none;
  border-bottom: 1px dashed rgba(var(--cc-brand-rgb), .4);
}
.support-empty-desc a:hover { color: var(--cc-brand-dark); }

/* ── 2.5 底部 CTA 收口 ────────────────────────────────────────── */
.support-cta {
  display: grid; grid-template-columns: 1.6fr 1fr; align-items: center;
  gap: 28px; margin-top: 16px; padding: 32px 36px;
  border: 1px solid var(--cc-border); border-radius: var(--cc-radius-lg);
  background:
    radial-gradient(circle at 12% 14%, rgba(var(--cc-brand-rgb), .14), transparent 50%),
    linear-gradient(135deg, #ffffff 0%, #f0fbf7 100%);
  box-shadow: 0 22px 48px rgba(15, 95, 71, .1);
}
.support-cta-title {
  margin: 8px 0 10px; color: var(--cc-text);
  font-size: clamp(24px, 2.2vw, 32px); font-weight: 900; letter-spacing: -.04em; line-height: 1.2;
}
.support-cta-sub { margin: 0; color: #526961; font-size: 14px; line-height: 1.8; }
.support-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* ── 3. 弹窗（沿用 c-modal 浅色样式，加少量定制） ─────────────── */
.support-modal .c-modal__content {
  width: min(92vw, 460px); padding: 36px 32px 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fcfa 100%);
  border: 1px solid rgba(var(--cc-brand-rgb), .18);
  box-shadow: 0 30px 70px rgba(15, 95, 71, .22);
}
.support-modal-icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--cc-brand-bg), var(--cc-brand-soft));
  color: var(--cc-brand-dark);
  box-shadow: 0 10px 24px rgba(var(--cc-brand-rgb), .2);
}
.support-modal-icon .icon-svg { width: 30px; height: 30px; }
.support-modal .c-modal__title { font-size: 22px; font-weight: 900; letter-spacing: -.02em; color: var(--cc-text); }
.support-modal .c-modal__desc { margin: 8px 0 24px; color: #5b7068; font-size: 14px; line-height: 1.8; }
.support-modal-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.support-modal-actions .btn { min-height: 42px; padding: 0 18px; }

/* ── 响应式：1100 / 760 / 520 ─────────────────────────────────── */
@media (max-width: 1100px) {
  .support-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .support-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .support-cta { grid-template-columns: 1fr; padding: 28px; }
  .support-cta-actions { justify-content: flex-start; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head-actions { width: 100%; }
}
@media (max-width: 760px) {
  .support-page .container { width: min(1680px, calc(100% - 28px)); }
  .support-hero { padding: 48px 0 24px; }
  .support-list { padding: 24px 0 72px; }
  .support-search { height: 144px; }
  .support-search-box { height: 50px; padding: 0 48px 0 20px; }
  .support-search-input { font-size: 14px; }
  .support-search-icon { right: 48px; }
  .support-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .support-metrics { gap: 12px; }
  .support-metric { padding: 14px; }
  .support-metric strong { font-size: 18px; }
  .game-card-body { padding: 12px 12px 14px; gap: 8px; }
  .game-card-title { font-size: 15px; }
  .game-card-title em { display: none; }
  .game-tag:nth-child(n+3) { display: none; }
  .game-card-footer { flex-direction: column; align-items: stretch; gap: 10px; }
  .game-card-price { flex-direction: row; align-items: baseline; gap: 6px; }
  .game-card-cta { width: 100%; }
}
@media (max-width: 520px) {
  .support-metrics { grid-template-columns: 1fr; }
  .support-search-eyebrow { font-size: 11px; padding: 4px 10px; }
  .support-filter { padding: 8px 14px; font-size: 13px; }
  .section-title { font-size: clamp(26px, 7.5vw, 34px); letter-spacing: -.04em; }
  .support-cta-actions { flex-direction: column; align-items: stretch; }
  .support-cta-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .support-search-bg, .support-search-dot, .game-card,
  .game-card-cover img, .support-page .btn {
    animation: none !important; transition: none !important;
  }
}
