/* ============================================================
   Backloggd 复刻 — 统一视觉规范 (Design Tokens)
   维护者：B
   本文件是全站的颜色/字体/圆角/状态色的唯一来源，
   A / C / D 的页面请 import 本文件，不要各自重新定义颜色。
   ============================================================ */

/* ---------- 字体：Roboto（自托管，离线可用，不依赖 Google Fonts） ---------- */
@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  src: url('../assets/fonts/roboto-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  src: url('../assets/fonts/roboto-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* ---------- 背景色 ---------- */
  --bg-primary: #16181c;      /* 页面主背景（近黑的深蓝灰） */
  --bg-secondary: #242832;    /* 卡片 / 次级区域背景 */
  --bg-field: #272c37;        /* 输入框背景 */
  --bg-field-alt: #30394c;    /* 输入框 hover / 焦点背景 */
  --bg-highlight: #262b37;    /* 悬浮高亮背景 */

  /* ---------- 边框 ---------- */
  --border-field: #3b414e;    /* 输入框边框 */
  --border-hover: #3f4b64;    /* 边框 hover */

  /* ---------- 文字 ---------- */
  --text-primary: #cbd4dc;    /* 正文 */
  --text-secondary: #8f9ca7;  /* 次要文字 / 说明 */
  --text-review: #ccdbf1;     /* 评测正文 */
  --text-disabled: rgba(143, 156, 167, 0.38); /* 禁用/占位 */

  /* ---------- 强调色（粉色系：按钮 / 评分 / 链接） ---------- */
  --accent: #fc6399;          /* 主强调粉 */
  --accent-dark: #ea377a;     /* 深粉（主按钮底色） */
  --accent-light: #fcbadb;    /* 浅粉 */

  /* ---------- 交互蓝 ---------- */
  --interact: #4a5e8d;
  --interact-light: #839df9;

  /* ---------- 游戏状态色（详情页 / 个人库会用到） ---------- */
  --status-played: #ffdcf5;   /* 玩过 */
  --status-playing: #856fef;  /* 在玩 */
  --status-completed: #43b94f;/* 通关 */
  --status-mastered: #8d58af; /* 完美 */
  --status-retired: #4b7bd4;  /* 退坑 */
  --status-shelved: #e69b3e;  /* 搁置 */
  --status-abandoned: #ea4747;/* 弃坑 */
  --status-wishlist: #70a9c8; /* 想玩 */
  --status-backlog: #efe36f;  /* 待玩 */

  /* ---------- 字体 ---------- */
  --font: 'Roboto', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  /* ---------- 尺寸规范 ---------- */
  --radius: 8px;              /* 卡片圆角 */
  --radius-sm: 5px;           /* 按钮 / 输入框圆角 */
  --max-width: 1140px;        /* 页面内容最大宽度 */
  --nav-height: 38px;         /* 导航内容高度（= nav-item 实测 37.99px） */
}

/* ---------- 基础重置 ---------- */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- 通用容器 ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 15px;      /* Bootstrap 标准 15px（原站 .container） */
}

/* Keep all primary page shells aligned with the personal Games view. */
@media (min-width: 820px) {
  .container,
  .browse-container,
  .detail-layout {
    width: min(1600px, 80.6vw);
    max-width: none;
  }
}
