@charset "UTF-8";

/* ===== GamesToday · 深蓝游戏库版式 ===== */
:root {
  --blue: #1860D8;
  --blue-deep: #0D3C8C;
  --blue-soft: #E8F0FE;
  --ink: #0F1726;
  --body: #47546B;
  --paper: #ffffff;
  --wash: #F4F7FC;
  --line: #DCE5F2;
  --radius-s: 4px;
  --radius-m: 12px;
  --radius-l: 22px;
  --shell: 1180px;
  --header-height: 72px;
  --card-shadow: 0 2px 0 rgba(15, 23, 38, .06), 0 18px 34px -22px rgba(15, 23, 38, .45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "HarmonyOS Sans SC", "Source Han Sans SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  color: inherit;
  font: inherit;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 2px dashed var(--blue);
  outline-offset: 4px;
}

.page-shell {
  width: min(calc(100% - 44px), var(--shell));
  margin: 0 auto;
}

.icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.icon::before {
  display: block;
  width: 100%;
  height: 100%;
  content: "";
  background: center / contain no-repeat;
}

.icon-download::before {
  background-image: url("../icons/download.svg");
}

.icon-menu::before {
  background-image: url("../icons/menu.svg");
}

.icon-close::before {
  background-image: url("../icons/close.svg");
}

.icon-plus::before {
  background-image: url("../icons/plus.svg");
}

/* ===== 头部 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  color: #EAF1FD;
  background: #0B1B33;
  border-bottom: 1px solid #1B2E4C;
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 26px;
  width: min(calc(100% - 44px), var(--shell));
  min-height: var(--header-height);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: #ffffff;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .2px;
  overflow-wrap: anywhere;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #fff;
  object-fit: contain;
}

.primary-nav {
  margin-left: auto;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-nav a {
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  color: #C4D3EA;
  font-size: 14px;
  transition: color 160ms ease;
}

.primary-nav a::before {
  position: absolute;
  top: -3px;
  left: 50%;
  width: 4px;
  height: 4px;
  content: "";
  border-radius: 50%;
  background: #4C93FF;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 160ms ease;
}

.primary-nav a:hover {
  color: #fff;
}

.primary-nav a:hover::before {
  opacity: 1;
}

.nav-download,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.nav-download {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 18px -10px rgba(24, 96, 216, .95);
  transition: background-color 160ms ease;
}

.nav-download .icon {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.nav-download:hover {
  background: #2C79F5;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #2C4A75;
  border-radius: 10px;
  color: #EAF1FD;
  background: transparent;
  cursor: pointer;
}

.menu-toggle .icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* ===== 英雄区 ===== */
.hero {
  padding: 54px 0 58px;
  color: #EEF4FF;
  background:
    radial-gradient(720px 340px at 88% 6%, rgba(64, 127, 240, .32), transparent 70%),
    linear-gradient(160deg, #0B1B33 0%, #0A2447 52%, #0B1B33 100%);
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 548px);
  align-items: center;
  gap: 46px;
}

.hero-copy {
  max-width: 470px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: #6FA5FF;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 5.4vw, 66px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.hero-title {
  margin: 16px 0 14px;
  color: #ffffff;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: .5px;
}

.hero-summary {
  max-width: 430px;
  margin: 0 0 28px;
  color: #A9BDD9;
  font-size: 15px;
  line-height: 1.85;
}

.button {
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
}

.button-primary {
  color: #fff;
  background: linear-gradient(120deg, #1860D8, #2F84FF);
  box-shadow: 0 14px 26px -16px rgba(47, 132, 255, .95);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button-primary .icon {
  filter: brightness(0) invert(1);
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px -14px rgba(47, 132, 255, .95);
}

/* 游戏封面大卡 + 缩略索引 + 评分 */
.hero-gamedeck {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid #24425F;
  border-radius: var(--radius-l);
  background: rgba(9, 24, 44, .78);
  box-shadow: 0 30px 60px -34px #000;
}

.gdMain {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 10px;
  border-radius: 16px;
  background: #0F2743;
}

.gdCover {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #143152;
}

.gdCover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.gdTag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 9px;
  border-radius: 6px;
  color: #08203C;
  background: #7FE3C4;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .5px;
}

.gdFoot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 3px 3px;
}

.gdFoot b {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.gdFoot small {
  display: block;
  margin-top: 3px;
  color: #8FA9C9;
  font-size: 11px;
}

.gdScore {
  text-align: right;
}

.gdScore b {
  color: #7FE3C4;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.gdSide {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.gdHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 6px;
  color: #C3D5EC;
  font-size: 12px;
}

.gdHead b {
  font-size: 13px;
  font-weight: 700;
}

.gdHead span {
  color: #7FE3C4;
  font-size: 11px;
}

.gdItem {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 7px;
  border: 1px solid #1E3A5C;
  border-radius: 11px;
  background: #0E233C;
}

.gdItem img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.gdItem b {
  display: block;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gdItem small {
  display: block;
  color: #86A0C0;
  font-size: 10.5px;
}

.gdItem em {
  color: #3D6FA8;
  font-size: 15px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: -.5px;
}

.gdRate {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  margin-top: auto;
  padding: 11px 12px;
  border-radius: 11px;
  background: #12314F;
  font-size: 11px;
}

.gdRate span {
  color: #93ADC9;
}

.gdRate b {
  color: #ffffff;
  font-size: 13px;
  text-align: right;
}

/* ===== 特色 ===== */
.routes {
  padding: 76px 0 78px;
  background: var(--wash);
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.section-heading {
  max-width: 640px;
  margin-bottom: 36px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(27px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -.4px;
  line-height: 1.24;
}

.section-heading > p:last-child {
  margin: 12px 0 0;
  color: var(--body);
  font-size: 15px;
}

.routes .section-heading h2 {
  padding-left: 16px;
  border-left: 4px solid var(--blue);
}

.fours {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.four {
  position: relative;
  min-width: 0;
  padding: 24px 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: #fff;
  transition: transform 180ms ease, border-color 180ms ease;
}

.four:hover {
  border-color: #9CBEF0;
  transform: translateY(-4px);
}

.four .n {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.four h3 {
  margin: 14px 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.four p {
  margin: 0;
  color: var(--body);
  font-size: 13.5px;
  line-height: 1.8;
}

/* ===== 界面展示 ===== */
.screens {
  padding: 78px 0 82px;
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.covers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.covers figure {
  min-width: 0;
  margin: 0;
}

.covers img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  border-radius: 14px;
  background: var(--wash);
  box-shadow: var(--card-shadow);
}

.covers b {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
}

.covers small {
  display: block;
  margin-top: 2px;
  color: var(--body);
  font-size: 12px;
}

/* ===== FAQ ===== */
.faq {
  padding: 74px 0 16px;
  background: #FBFCFE;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color 160ms ease;
}

.faq-item[open] {
  border-color: #A7C6F2;
  box-shadow: 0 12px 24px -20px rgba(24, 96, 216, .7);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 54px;
  padding: 0 16px;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
}

.faq-item summary .icon {
  width: 15px;
  height: 15px;
  flex: none;
  filter: invert(33%) sepia(96%) saturate(2054%) hue-rotate(203deg) brightness(92%) contrast(96%);
  transition: transform 180ms ease;
}

.faq-item[open] summary .icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 16px 15px;
  border-top: 1px dashed #E4EBF6;
  margin-top: 2px;
}

.faq-answer p {
  margin: 12px 0 0;
  color: var(--body);
  font-size: 13.5px;
  line-height: 1.8;
}

/* ===== 官方入口 ===== */
.official {
  padding: 30px 0 76px;
  background: #FBFCFE;
}

.official .section-heading h2 {
  font-size: 22px;
}

.official-fold {
  border-radius: 10px;
  background: #fff;
  border: 1px solid #B9D2F6;
}

.official-fold summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  cursor: pointer;
  list-style: none;
  color: var(--blue-deep);
  font-size: 14px;
  font-weight: 700;
}

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

.official-fold summary::after {
  margin-left: auto;
  color: var(--blue);
  content: "展开";
  font-size: 11px;
  font-weight: 700;
}

.official-fold[open] summary::after {
  content: "收起";
}

.official-link {
  padding: 4px 18px 16px;
  border-top: 1px dashed #D8E4F6;
}

.official-link p {
  margin: 10px 0 0;
  font-size: 13.5px;
}

.official-link a {
  color: var(--blue);
  font-weight: 700;
  word-break: break-all;
}

/* ===== 评论 ===== */
.reviews {
  padding: 76px 0 80px;
  background: #0E1E33;
  color: #E6EEFA;
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.reviews .section-heading h2 {
  color: #fff;
}

.reviews .section-heading > p:last-child {
  color: #9DB3CE;
}

.reviews .eyebrow {
  color: #6FA5FF;
}

.rgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.review-card {
  display: flex;
  min-width: 0;
  min-height: 210px;
  flex-direction: column;
  padding: 22px 20px;
  border: 1px solid #233B59;
  border-radius: 14px;
  background: #132741;
}

.review-card header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #223A57;
}

.review-card header b {
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
}

.review-card time {
  color: #7C94B3;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.review-card > p {
  margin: 13px 0 12px;
  color: #C0D0E4;
  font-size: 13.5px;
  line-height: 1.85;
}

.rv-site {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed #25405F;
  color: #7FE3C4;
  font-size: 11.5px;
  word-break: break-all;
}

/* ===== 下载 CTA ===== */
.download-cta {
  padding: 70px 0 76px;
  text-align: center;
  background:
    radial-gradient(560px 260px at 50% 0%, rgba(24, 96, 216, .14), transparent 72%),
    #F4F7FC;
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.download-cta .section-heading {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.download-cta .eyebrow {
  color: var(--blue);
}

.download-cta .section-heading > p:last-child {
  margin-bottom: 26px;
}

.disclaimer {
  max-width: 620px;
  margin: 24px auto 0;
  padding: 12px 16px;
  border: 1px dashed #B9CBE6;
  border-radius: 8px;
  color: #63738C;
  font-size: 12.5px;
  line-height: 1.75;
  text-align: left;
}

/* ===== 页脚 ===== */
.site-footer {
  padding: 34px 0 20px;
  color: #9FB2CA;
  background: #0A1626;
  text-align: center;
  font-size: 12.5px;
}

.site-footer p {
  margin: 6px 0;
}

.site-footer a {
  color: #C9D8EC;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer a:hover {
  color: #ffffff;
}

.site-footer .icp a {
  color: #8CA1BC;
  text-decoration: none;
}

/* ===== 返回顶部 ===== */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 150px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  box-shadow: 0 12px 26px -12px rgba(24, 96, 216, .9);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
}

.to-top::before {
  width: 10px;
  height: 10px;
  content: "";
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: rotate(45deg) translate(2px, 2px);
}

.to-top.is-show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

/* ===== 响应式 ===== */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .hero-copy {
    max-width: 620px;
  }

  .fours {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .covers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .rgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .primary-nav {
    display: none;
    margin: 0;
  }

  .nav-shell {
    position: relative;
    gap: 12px;
  }

  .nav-download {
    margin-left: auto;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .primary-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 12px 22px 16px;
    border-bottom: 1px solid #1B2E4C;
    background: #0B1B33;
  }

  .primary-nav.is-open ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .primary-nav.is-open a {
    display: block;
    padding: 10px 12px;
    border: 1px solid #24405F;
    border-radius: 8px;
    background: #0F2743;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 62px;
  }

  body {
    font-size: 15px;
  }

  .page-shell,
  .nav-shell {
    width: min(calc(100% - 30px), var(--shell));
  }

  .hero {
    padding: 38px 0 42px;
  }

  .hero-gamedeck {
    grid-template-columns: minmax(0, 1fr);
  }

  .gdCover img {
    aspect-ratio: 16 / 10;
  }

  .routes,
  .screens,
  .reviews,
  .download-cta {
    padding: 52px 0;
  }

  .faq {
    padding: 52px 0 10px;
  }

  .official {
    padding: 18px 0 52px;
  }

  .fours {
    grid-template-columns: minmax(0, 1fr);
  }

  .covers {
    gap: 12px;
  }

  .rgrid {
    grid-template-columns: minmax(0, 1fr);
  }

  .review-card {
    min-height: 0;
  }

  .section-heading h2 {
    font-size: 25px;
  }

  .disclaimer {
    text-align: left;
  }

  .to-top {
    right: 14px;
    bottom: 132px;
    width: 40px;
    height: 40px;
  }
}
