/* =========================================================
   酷玩街机秀官网 · 基础层 base.css
   变量 / 重置 / 容器 / 按钮 / 全站共用组件
   移动端优先，媒体查询就近维护
   ========================================================= */

:root {
  --primary: #5a1df0;
  --primary-2: #5c56ff;
  --primary-3: #667eea;
  --primary-deep: #3a34cc;
  --primary-soft: #e0e8fc;
  --primary-softer: #eff4fe;

  --ink: #333333;
  --ink-2: #666666;
  --ink-3: #999999;
  --line: #eaeef2;
  --bg: #f5f7fa;
  --white: #ffffff;

  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;

  --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.06);
  --shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 17px 40px rgba(0, 0, 0, 0.15);

  --header-h: 56px;
  --content: 1333px;
  --gutter: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f5f7fa, #ffffff 620px);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

button, input { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }

.is-hidden { display: none !important; }

.wrap {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 9999;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: #111a2f;
  color: #fff;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

@media (min-width: 768px) {
  :root { --header-h: 64px; --gutter: 24px; }
  body { font-size: 15px; }
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #6b3bff, var(--primary) 55%, var(--primary-3));
  box-shadow: 0 10px 24px rgba(90, 29, 240, 0.25);
}
.btn--primary:hover { box-shadow: 0 14px 30px rgba(90, 29, 240, 0.35); }
.btn--ghost { color: var(--primary-2); background: var(--primary-softer); border-color: var(--primary-soft); }
.btn--ghost:hover { background: var(--primary-soft); }
.btn--outline { color: var(--ink-2); background: #fff; border-color: var(--line); }
.btn--full { width: 100%; }

.text-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary-2);
  font-weight: 600;
  cursor: pointer;
}

/* ---------------- Block header ---------------- */
.block-header { position: relative; z-index: 1; width: 100%; text-align: center; padding: 30px 0 20px; }
.block-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1.25;
}
.block-subtitle {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(90, 29, 240, 0), #5a1df0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.block-slogan { margin-top: 6px; font-size: 15px; color: var(--ink-3); }
.block-subtitle--light { color: transparent; background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), #ffffff); -webkit-background-clip: text; background-clip: text; }

@media (min-width: 768px) {
  .block-header { padding: 44px 0 34px; }
  .block-title { font-size: 34px; }
  .block-subtitle { font-size: 15px; }
  .block-slogan { font-size: 18px; }
}

@media (min-width: 1200px) {
  .block-header { padding: 60px 0 56px; }
  .block-title { font-size: 44px; }
  .block-subtitle { font-size: 17px; }
  .block-slogan { font-size: 20px; }
}

/* ---------------- Guide card（首页与攻略页共用） ---------------- */
.guide-card {
  cursor: pointer;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.guide-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.guide-img { overflow: hidden; background: #101a3a; flex-shrink: 0; }
.guide-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.guide-card:hover .guide-img img { transform: scale(1.05); }
.guide-content { padding: 14px; min-width: 0; }
.guide-title { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.guide-description { margin-top: 8px; font-size: 12px; line-height: 1.8; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.guide-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.guide-time { font-size: 11px; color: var(--ink-3); }
.btn-detail { font-size: 13px; font-weight: 600; color: var(--primary-2); }

/* 攻略文章元信息（攻略列表与详情页共用） */
.article-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ink-3); }
.article-meta span { padding: 2px 8px; border-radius: 999px; background: var(--primary-softer); color: var(--primary-2); font-weight: 700; }

@media (min-width: 768px) {
  .guide-title { font-size: 16px; }
  .guide-description { font-size: 13px; }
}

/* ---------------- Category tabs（产品页与攻略页共用） ---------------- */
.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 20px;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tabs button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
}
.category-tabs button:hover { border-color: var(--primary-soft); color: var(--primary-2); }
.category-tabs button.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary-2), var(--primary-3));
  box-shadow: 0 8px 20px rgba(90, 29, 240, 0.22);
}

/* ---------------- Form controls（福利页与登录弹窗共用） ---------------- */
.input-wrap { display: flex; align-items: center; min-height: 48px; border: 1px solid #e2e7f0; border-radius: var(--radius-md); background: #fafbfe; overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; }
.input-wrap:focus-within { border-color: rgba(90, 29, 240, 0.5); box-shadow: 0 0 0 3px rgba(90, 29, 240, 0.08); }
.input-wrap > span { padding-left: 14px; font-size: 13px; color: var(--ink-3); }
.input-wrap input { width: 100%; height: 46px; padding: 0 14px; border: 0; outline: 0; background: transparent; color: var(--ink); }

/* ---------------- Accessibility ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .gamewallcol { animation: none !important; }
}
