/* GG扑克 · 石墨黑 / 翡翠绿 */
:root {
  --bg: #050807;
  --surface: #0c1211;
  --surface-2: #111917;
  --raise: #16211e;
  --line: #1d2725;
  --text: #e6efea;
  --dim: #8c9a94;
  --accent: #2fbf71;
  --accent-2: #7ee0ab;
  --accent-dim: rgba(47, 191, 113, 0.14);
  --rail: 248px;
  --radius: 14px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul,
ol {
  list-style: none;
}

/* 左侧导航 */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail);
  background: linear-gradient(180deg, #0a100e, #070b0a);
  border-right: 1px solid var(--line);
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  z-index: 40;
  overflow-y: auto;
}

.mark {
  display: flex;
  align-items: center;
  gap: 11px;
}

.mark img {
  width: 40px;
  height: 40px;
}

.mark b {
  display: block;
  font-size: 17px;
  letter-spacing: 0.04em;
}

.mark span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.26em;
  color: var(--dim);
}

.rail nav {
  display: grid;
  gap: 4px;
}

.rail .grp {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #5f6d67;
  margin: 14px 0 6px 12px;
}

.rail nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #c3cfc9;
  font-size: 14.5px;
  transition: 0.16s ease;
}

.rail nav a:hover {
  background: var(--surface-2);
  color: #fff;
}

.rail nav a.on {
  background: var(--accent-dim);
  color: var(--accent-2);
  font-weight: 600;
}

.rail nav a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #33413b;
}

.rail nav a.on::before {
  background: var(--accent);
}

.rail-foot {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.rail-foot small {
  color: #5f6d67;
  font-size: 11.5px;
  line-height: 1.6;
}

/* 主区域 */
.main {
  margin-left: var(--rail);
  min-height: 100vh;
}

.shell {
  width: min(1080px, calc(100% - 64px));
  margin: 0 auto;
}

.sec {
  padding: 78px 0;
}

.sec + .sec {
  border-top: 1px solid var(--line);
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent-2);
  font-size: 12px;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}

h1,
h2,
h3,
h4 {
  line-height: 1.35;
  font-weight: 700;
}

.sec > .shell > h2,
.sec-head h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  margin-bottom: 12px;
}

.sec-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.sec-head p {
  color: #b3c0ba;
}

.row-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.link-more {
  color: var(--accent-2);
  font-size: 14px;
  white-space: nowrap;
}

.link-more:hover {
  color: #a9ecc7;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.18s ease;
}

.btn-main {
  background: var(--accent);
  color: #04140c;
}

.btn-main:hover {
  background: var(--accent-2);
}

.btn-line {
  border-color: #2c3733;
  color: var(--text);
}

.btn-line:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}

.btn-full {
  width: 100%;
}

.btn-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

/* 首屏 */
.stage {
  position: relative;
  padding: 96px 0 72px;
  background:
    radial-gradient(760px 420px at 12% 8%, rgba(47, 191, 113, 0.14), transparent 62%),
    radial-gradient(600px 400px at 90% 20%, rgba(64, 142, 255, 0.07), transparent 60%);
  border-bottom: 1px solid var(--line);
}

.stage h1 {
  font-size: clamp(30px, 4.1vw, 50px);
  max-width: 15em;
  margin-bottom: 20px;
}

.stage .intro {
  color: #c0ccc6;
  max-width: 62ch;
  margin-bottom: 14px;
}

.acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 34px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 18, 17, 0.7);
  font-size: 13px;
  color: #b6c3bd;
}

.pill b {
  color: var(--accent-2);
}

/* 数字要点行 */
.numrow {
  display: grid;
  grid-template-columns: 64px 1fr 260px;
  gap: 28px;
  align-items: start;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.numrow:last-child {
  border-bottom: 1px solid var(--line);
}

.numrow .idx {
  font-size: 30px;
  font-weight: 700;
  color: #24352e;
}

.numrow h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.numrow p {
  color: #b3c0ba;
  margin-bottom: 10px;
}

.thumb {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.thumb img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

/* 玩法卡 */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.mode {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: 0.18s ease;
}

.mode:hover {
  border-color: #2b3b35;
  background: var(--surface-2);
}

.mode span {
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.mode h3 {
  font-size: 17px;
  margin: 8px 0 8px;
}

.mode p {
  color: var(--dim);
  font-size: 14px;
}

/* 卡片（活动 / 教学 / 列表） */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.18s ease;
}

.card:hover {
  border-color: #2b3b35;
}

.card .shot {
  height: 190px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.card .shot img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.card .in {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.kicker {
  font-size: 12px;
  color: var(--accent-2);
  letter-spacing: 0.08em;
}

.card h3 {
  font-size: 18px;
}

.card p {
  color: var(--dim);
  font-size: 14px;
  flex: 1;
}

.card .go {
  color: var(--accent-2);
  font-size: 13.5px;
}

/* 时间线（新闻） */
.line {
  position: relative;
  padding-left: 26px;
}

.line::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}

.node {
  position: relative;
  padding: 0 0 30px;
}

.node::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 9px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}

.node time {
  font-size: 12.5px;
  color: var(--accent-2);
  letter-spacing: 0.06em;
}

.node h3 {
  font-size: 18px;
  margin: 6px 0 6px;
}

.node h3 a:hover {
  color: var(--accent-2);
}

.node p {
  color: var(--dim);
  font-size: 14px;
}

/* 教学清单 */
.stack {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stack a {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  background: var(--surface);
  transition: 0.16s ease;
}

.stack a:hover {
  background: var(--surface-2);
}

.stack .no {
  font-size: 18px;
  font-weight: 700;
  color: #2b3b35;
}

.stack h3 {
  font-size: 16.5px;
  margin-bottom: 4px;
}

.stack p {
  color: var(--dim);
  font-size: 13.5px;
}

.stack .arrow {
  color: var(--accent-2);
  font-size: 18px;
}

/* 折叠问答 */
.qa {
  display: grid;
  gap: 10px;
}

.qa details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
}

.qa summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.qa summary::-webkit-details-marker {
  display: none;
}

.qa summary::before {
  content: "+ ";
  color: var(--accent);
}

.qa details[open] summary::before {
  content: "− ";
}

.qa details p {
  color: #b3c0ba;
  margin-top: 10px;
  font-size: 14.5px;
}

/* 行动条 */
.band {
  background: linear-gradient(100deg, rgba(47, 191, 113, 0.16), rgba(12, 18, 17, 0.2));
  border: 1px solid #1f3a2d;
  border-radius: 18px;
  padding: 34px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.band h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.band p {
  color: #b9c6c0;
}

/* 页面头 */
.ptop {
  padding: 60px 0 34px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(600px 260px at 8% 0%, rgba(47, 191, 113, 0.1), transparent 65%);
}

.crumb {
  font-size: 13px;
  color: var(--dim);
  margin-bottom: 14px;
}

.crumb a:hover {
  color: var(--accent-2);
}

.ptop h1 {
  font-size: clamp(26px, 3.4vw, 38px);
  margin-bottom: 12px;
}

.ptop p {
  color: #b3c0ba;
  max-width: 68ch;
}

/* 详情正文 */
.cover-hero {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.cover-hero img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.doc {
  width: min(760px, calc(100% - 64px));
  margin: 0 auto;
  padding: 52px 0 30px;
}

.doc .meta {
  font-size: 13px;
  color: var(--accent-2);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.doc h1 {
  font-size: clamp(26px, 3.2vw, 36px);
  margin-bottom: 20px;
}

.doc h2 {
  font-size: 21px;
  margin: 34px 0 12px;
}

.doc p {
  color: #cfdad4;
  margin-bottom: 16px;
}

.doc ol,
.doc ul {
  margin: 0 0 18px 0;
  display: grid;
  gap: 8px;
}

.doc ol li {
  counter-increment: s;
  position: relative;
  padding-left: 30px;
  color: #cfdad4;
}

.doc ol {
  counter-reset: s;
}

.doc ol li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--accent-dim);
  color: var(--accent-2);
  font-size: 12px;
  display: grid;
  place-items: center;
}

.doc ul li {
  position: relative;
  padding-left: 20px;
  color: #cfdad4;
}

.doc ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.box {
  border: 1px solid #23342d;
  background: rgba(47, 191, 113, 0.06);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 22px 0;
  font-size: 14.5px;
  color: #c7d5ce;
}

.figure {
  margin: 26px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.figure img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 22px;
  font-size: 14px;
}

.pager a {
  color: #b3c0ba;
}

.pager a:hover {
  color: var(--accent-2);
}

/* 下载卡 */
.os {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.os h3 {
  font-size: 19px;
  margin-bottom: 6px;
}

.os p {
  color: var(--dim);
  font-size: 14px;
  margin-bottom: 14px;
}

.spec {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #a9b7b1;
  margin-bottom: 18px;
  padding-top: 14px;
  border-top: 1px dashed #222e2a;
}

/* 页脚 */
.foot {
  border-top: 1px solid var(--line);
  background: #070b0a;
  padding: 46px 0 26px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 30px;
}

.foot h4 {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--accent-2);
  margin-bottom: 12px;
}

.foot p,
.foot li {
  color: var(--dim);
  font-size: 13.5px;
  margin-bottom: 7px;
}

.foot a:hover {
  color: var(--accent-2);
}

.foot .fine {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 12px;
  color: #5c6a64;
}

/* 响应式 */
@media (max-width: 1080px) {
  .rail {
    position: sticky;
    inset: 0 auto auto 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    overflow-x: auto;
  }

  .rail nav {
    display: flex;
    gap: 4px;
  }

  .rail .grp,
  .rail-foot small {
    display: none;
  }

  .rail-foot {
    margin: 0;
  }

  .rail nav a {
    white-space: nowrap;
  }

  .main {
    margin-left: 0;
  }

  .shell,
  .doc {
    width: calc(100% - 36px);
  }

  .numrow,
  .grid-3,
  .grid-2,
  .foot-grid,
  .band {
    grid-template-columns: 1fr;
    display: grid;
  }

  .stack a {
    grid-template-columns: 34px 1fr auto;
    gap: 12px;
  }

  .cover-hero img {
    height: 200px;
  }
}
