/* OneCell Games 官网 · 共用样式
   无框架、无外部依赖(字体走系统栈,避免 Google Fonts 在国内加载慢)。
   深色基调配合台球桌呢绿,两个页面共用。 */

:root {
  --bg: #0e1310;
  --bg-soft: #161d19;
  --card: #1b241f;
  --line: #2a352e;
  --felt: #1f7a4d;
  --felt-bright: #2ea86a;
  --chalk: #3b7fb8;
  --text: #e8efe9;
  --muted: #94a69b;
  --muted-dim: #6b7d72;
  --radius: 14px;
  --maxw: 960px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden; /* 兜底:宁可裁掉意外的宽元素,也不要整页横向滚动 */
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  /* 整页当一张台面:顶部台灯打亮、底部压暗 */
  background:
    radial-gradient(
      ellipse 110% 70% at 50% -10%,
      rgba(52, 190, 120, 0.3),
      transparent 62%
    ),
    radial-gradient(
      ellipse 90% 55% at 50% 115%,
      rgba(11, 58, 37, 0.75),
      transparent 72%
    ),
    linear-gradient(180deg, #11231a 0%, #0c1712 55%, #090f0c 100%);
  background-attachment: fixed;
}

/* 暗角:四周压暗。fixed + 不吃点击,滚动时不动 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 220px 40px rgba(0, 0, 0, 0.62);
}

a {
  color: var(--felt-bright);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px; /* 手机侧边距 */
}

/* ---- 顶栏 ---- */
.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(14, 19, 16, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand:hover {
  text-decoration: none;
}
.brand-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff, #cfd8d2 35%, #7d8a83);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
  flex: none;
}
.topnav a {
  color: var(--muted);
  margin-left: 22px;
  font-size: 15px;
}
.topnav a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ---- 通用区块 ---- */
section {
  padding: 56px 0;
}
h1 {
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1.25;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
h2 {
  font-size: 22px;
  margin: 0 0 18px;
}
.lead {
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 28px;
  max-width: 44em;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 14px;
}
.tiny {
  font-size: 13px;
  color: var(--muted-dim);
}

/* ---- 卡片 ---- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

/* ---- 下载按钮 ---- */
.dl-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.dl {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  transition:
    border-color 0.15s,
    transform 0.15s,
    background 0.15s;
}
.dl:hover {
  text-decoration: none;
  border-color: var(--felt);
  background: #1f2a24;
  transform: translateY(-1px);
}
.dl.primary {
  border-color: var(--felt);
  background: linear-gradient(180deg, #1f7a4d22, #1f7a4d0d);
}
.dl.soon {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}
.dl-ico {
  width: 34px;
  height: 34px;
  flex: none;
  color: var(--felt-bright);
}
.dl.soon .dl-ico {
  color: var(--muted);
}
.dl-main {
  min-width: 0;
}
.dl-name {
  font-weight: 600;
  font-size: 16px;
}
.dl-meta {
  color: var(--muted);
  font-size: 13px;
}

/* ---- 提示条 ---- */
.notice {
  border: 1px solid var(--line);
  border-left: 3px solid var(--chalk);
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 18px 0;
  font-size: 14.5px;
  color: var(--muted);
}
.notice strong {
  color: var(--text);
}
.notice.warn {
  border-left-color: #c8973a;
}
.notice[hidden] {
  display: none;
}

/* ---- 版本信息 ---- */
.ver-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.ver-num {
  font-size: 19px;
  font-weight: 600;
}
.notes {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
}
.notes li {
  margin: 4px 0;
}

/* ---- 游戏卡(首页)---- */
.game {
  display: block;
  color: var(--text);
  overflow: hidden;
  padding: 0;
}
.game:hover {
  text-decoration: none;
  border-color: var(--felt);
}
.game-art {
  height: 150px;
  background:
    radial-gradient(
      60% 100% at 50% 0%,
      rgba(46, 168, 106, 0.35),
      transparent 70%
    ),
    linear-gradient(160deg, #19392a, #12201a);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}
.game-body {
  padding: 18px 20px 20px;
}
.game-title {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 4px;
}
.tag {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 9px;
  margin-right: 6px;
}

/* ---- 页脚 ---- */
footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted-dim);
  font-size: 13.5px;
}
footer a {
  color: var(--muted);
}

/* 浅色系统下仍保持深色(本站只做深色,显式声明避免浏览器强行反色) */
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: dark;
  }
}
