/* TDSI 游戏库 —— 蓝白渐变 · 毛玻璃 · 极简 */
:root {
  --blue-900: #0a2745;
  --blue-700: #16528f;
  --blue-600: #1f6fd0;
  --blue-500: #2f8bf6;
  --blue-400: #62b0ff;
  --blue-200: #b9dbff;
  --blue-100: #e2f0ff;
  --ink: #0d2338;
  --ink-2: #3d5a76;
  --ink-3: #7089a3;
  --line: rgba(24, 78, 138, .14);
  --glass: rgba(255, 255, 255, .62);
  --glass-2: rgba(255, 255, 255, .42);
  --shadow: 0 18px 46px -18px rgba(14, 60, 118, .34), 0 2px 8px -2px rgba(14, 60, 118, .12);
  --r: 20px;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SFMono-Regular", "DejaVu Sans Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: #eef5ff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 背景：多层渐变光斑 */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 800px at 78% -10%, #d8ecff 0%, rgba(216, 236, 255, 0) 62%),
    radial-gradient(900px 700px at 8% 8%, #e8f4ff 0%, rgba(232, 244, 255, 0) 60%),
    linear-gradient(180deg, #f6faff 0%, #eaf3ff 46%, #f7fbff 100%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  animation: drift 26s ease-in-out infinite alternate;
}
.blob.b1 { width: 520px; height: 520px; left: -120px; top: -90px; background: radial-gradient(circle, #9ccbff, rgba(156, 203, 255, 0)); }
.blob.b2 { width: 620px; height: 620px; right: -160px; top: 90px; background: radial-gradient(circle, #bcd9ff, rgba(188, 217, 255, 0)); animation-duration: 34s; }
.blob.b3 { width: 460px; height: 460px; left: 34%; bottom: -180px; background: radial-gradient(circle, #d6e9ff, rgba(214, 233, 255, 0)); animation-duration: 30s; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(42px, -30px, 0) scale(1.12); }
}

/* 入场：无进度条的丝滑淡入上浮 */
.rise {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  animation: rise .9s cubic-bezier(.16, .84, .28, 1) forwards;
}
.rise.d1 { animation-delay: .06s; }
.rise.d2 { animation-delay: .16s; }
.rise.d3 { animation-delay: .26s; }
.rise.d4 { animation-delay: .36s; }
.rise.d5 { animation-delay: .46s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; transform: none; }
  .blob { animation: none; }
}

/* 玻璃容器 */
.glass {
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(155%);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: var(--shadow);
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 90px;
}

/* 顶栏 */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  margin-bottom: 26px;
  background: linear-gradient(180deg, rgba(246, 250, 255, .92), rgba(246, 250, 255, .55) 70%, rgba(246, 250, 255, 0));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: .2px;
  font-size: 17px;
}
.logo {
  width: 34px; height: 34px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--blue-500), var(--blue-700));
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 18px -8px rgba(31, 111, 208, .75), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.nav .sp { flex: 1; }
.nav a.lnk {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 13px;
  border-radius: 11px;
  transition: background .18s, color .18s;
}
.nav a.lnk:hover { background: rgba(255, 255, 255, .7); color: var(--blue-700); }
.nav a.lnk.on { color: var(--blue-700); background: rgba(255, 255, 255, .85); }

/* 标题 */
.hero { padding: 22px 0 8px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 4px rgba(46, 204, 113, .16); }

h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.06;
  letter-spacing: -1.4px;
  margin: 18px 0 12px;
  font-weight: 800;
  background: linear-gradient(120deg, #0c2f52 12%, #1f6fd0 58%, #62b0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sub {
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--ink-2);
  max-width: 68ch;
  line-height: 1.75;
  margin: 0 0 26px;
}

/* 主推卡片 */
.feature {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 0;
  border-radius: 26px;
  overflow: hidden;
  margin: 8px 0 40px;
}
.feature .info { padding: 34px 34px 30px; }
.feature .shot {
  position: relative;
  min-height: 320px;
  background: linear-gradient(160deg, #071a2e, #0a2340 55%, #061422);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.feature .shot pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.06;
  color: #6fd0ff;
  text-shadow: 0 0 12px rgba(80, 190, 255, .45);
  white-space: pre;
  transform: scale(1.02);
}
.feature .shot::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 70% 0%, rgba(90, 170, 255, .22), transparent 70%);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; }
.tag {
  font-size: 12.5px;
  font-family: var(--mono);
  color: var(--blue-700);
  background: rgba(226, 240, 255, .9);
  border: 1px solid rgba(47, 139, 246, .18);
  padding: 5px 10px;
  border-radius: 999px;
}

h2.sec {
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 700;
  margin: 44px 0 16px;
  display: flex; align-items: center; gap: 12px;
}
h2.sec::after { content: ""; height: 1px; flex: 1; background: var(--line); }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 650;
  padding: 13px 22px;
  border-radius: 14px;
  text-decoration: none;
  transition: transform .16s cubic-bezier(.2, .8, .3, 1), box-shadow .2s, background .2s, color .2s;
  will-change: transform;
}
.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #3d97ff, #1a5fb8);
  box-shadow: 0 14px 28px -14px rgba(26, 95, 184, .85), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 20px 34px -14px rgba(26, 95, 184, .9); }
.btn.ghost {
  color: var(--blue-700);
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--line);
}
.btn.ghost:hover { transform: translateY(-2px); background: #fff; }
.btn:active { transform: translateY(0) scale(.985); }

.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* 卡片网格 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 18px;
}
.card {
  border-radius: var(--r);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: transform .2s cubic-bezier(.2, .8, .3, 1), box-shadow .24s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 26px 52px -22px rgba(14, 60, 118, .42); }
.card h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.2px; }
.card p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }
.card .thumb {
  height: 108px;
  border-radius: 13px;
  background: linear-gradient(160deg, #071a2e, #0b2745);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.05;
  color: #59c6ff;
  white-space: pre;
  overflow: hidden;
  margin-bottom: 4px;
}
.card .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.chip {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--blue-700);
  background: rgba(226, 240, 255, .85);
  border: 1px solid rgba(47, 139, 246, .16);
  padding: 3px 8px;
  border-radius: 7px;
}
.chip.soon { color: #8a6a12; background: #fff6dd; border-color: #f0dcae; }
.card.off { opacity: .72; }

/* 页脚 */
.foot {
  margin-top: 64px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 13px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.foot .sp { flex: 1; }
.foot a { color: var(--blue-700); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* 说明页 */
.doc { max-width: 860px; }
.doc h3 { font-size: 18px; margin: 34px 0 10px; letter-spacing: -.2px; }
.doc p, .doc li { font-size: 14.6px; line-height: 1.85; color: var(--ink-2); }
.doc ul { padding-left: 22px; margin: 8px 0; }
.doc code, kbd {
  font-family: var(--mono);
  font-size: 12.6px;
  background: rgba(226, 240, 255, .9);
  border: 1px solid rgba(47, 139, 246, .18);
  color: var(--blue-700);
  padding: 2px 7px;
  border-radius: 7px;
}
.keytable { width: 100%; border-collapse: collapse; margin: 12px 0; }
.keytable th, .keytable td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.keytable th { color: var(--ink-3); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.keytable td:first-child { width: 190px; }
.callout {
  border-left: 3px solid var(--blue-500);
  background: rgba(226, 240, 255, .55);
  padding: 13px 16px;
  border-radius: 0 12px 12px 0;
  margin: 16px 0;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.75;
}

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature .shot { min-height: 220px; order: -1; }
  .wrap { padding: 0 16px 70px; }
}
