/*
 * 按页面语言选择本机原生字体。
 * 中文不再回退到 Windows 的 Yu Gothic，避免笔画偏细、发虚。
 */
html[lang="zh-CN"] body {
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC",
    "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  font-synthesis: none;
  text-rendering: auto;
}

html[lang="en"] body {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-synthesis: none;
  text-rendering: auto;
}

html[lang="ja"] body {
  font-family: "Yu Gothic UI", "Yu Gothic", Meiryo, "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", sans-serif;
  font-synthesis: none;
  text-rendering: auto;
}

html[lang="zh-CN"] .section h2,
html[lang="zh-CN"] .business h2,
html[lang="zh-CN"] .news h2,
html[lang="zh-CN"] .universe-overlay h2,
html[lang="zh-CN"] .careers h2 {
  letter-spacing: -0.04em;
  font-weight: 700;
}

html[lang="zh-CN"] p,
html[lang="zh-CN"] a,
html[lang="zh-CN"] button {
  font-weight: 400;
}

main > section:not(.hero) {
  border-top: 1px solid rgba(216, 220, 228, 0.9);
}

.about.section {
  grid-template-columns: 1fr;
  gap: clamp(56px, 7vw, 92px);
  align-items: center;
  justify-items: center;
}

.about-copy {
  min-width: 0;
  justify-self: center;
  width: 100%;
  max-width: 960px;
}

.about-copy .eyebrow,
.about-copy h2 {
  text-align: center;
}

.about-copy > p:not(.eyebrow) {
  text-align: left;
  overflow-wrap: anywhere;
}

.hero > .hero-background {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image .hero-shade {
  background: rgba(3, 12, 25, 0.58);
}

.hero-copy {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: var(--pad);
  width: min(1040px, calc(100% - 48px));
  transform: translateY(-50%);
}

.hero-copy p {
  margin: 0 0 20px;
  color: #FEBF43;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: clamp(20px, 2.2vw, 36px);
  font-weight: 600;
  letter-spacing: 0;
}

.hero-copy h1 {
  margin: 0;
  color: #FFFFFF;
  font-size: clamp(30px, 3.4vw, 52px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  white-space: normal;
  text-wrap: balance;
}

.about-media.about-ceo {
  position: relative;
  min-width: 0;
  justify-self: center;
  width: 100%;
  max-width: 760px;
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 46px clamp(30px, 4vw, 54px) 50px;
  overflow: hidden;
  border: 1px solid #dfe6f2;
  border-top: 4px solid var(--blue);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
    linear-gradient(135deg, rgba(6, 75, 232, 0.08), rgba(254, 191, 67, 0.05));
  box-shadow: 0 24px 54px rgba(10, 30, 70, 0.12);
}

.about-media.about-ceo::before {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(6, 75, 232, 0.1);
  content: "";
  pointer-events: none;
}

.about-media.about-ceo::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 104px;
  height: 104px;
  background: linear-gradient(135deg, rgba(6, 75, 232, 0.14), rgba(254, 191, 67, 0.12));
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  content: "";
  pointer-events: none;
}

.about-media.about-ceo > * {
  position: relative;
  z-index: 1;
}

.ceo-photo {
  display: block;
  width: min(220px, 54%);
  height: auto;
  max-width: 100%;
  min-height: 0;
  max-height: 320px;
  border: 1px solid rgba(17, 24, 39, 0.16);
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.14);
  object-fit: contain;
  object-position: center center;
}

.ceo-name {
  margin: 24px 0 0;
  color: var(--ink);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC",
    "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
}

.ceo-profile {
  width: 100%;
  max-width: 100%;
  min-height: 0;
  margin-top: 28px;
  padding: 26px 0 0;
  overflow: visible;
  background: transparent;
  border-top: 1px solid #dfe6f2;
}

.ceo-label {
  margin: 0 0 22px;
  color: var(--blue);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 3px;
}

.ceo-profile ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ceo-profile li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 2;
  overflow-wrap: anywhere;
}

html[lang="zh-CN"] .ceo-profile,
html[lang="zh-CN"] .ceo-profile li {
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC",
    "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  font-synthesis: none;
  text-rendering: auto;
  -webkit-font-smoothing: subpixel-antialiased;
}

.ceo-profile li:last-child {
  margin-bottom: 0;
}

.ceo-profile li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.86em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FEBF43;
}

.game-track {
  display: grid;
  gap: clamp(30px, 4vw, 48px);
  margin-top: clamp(44px, 5vw, 64px);
  overflow: visible;
  scroll-snap-type: none;
}

.game-card {
  display: grid;
  grid-template-columns: 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dfe6f2;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(10, 30, 70, 0.1);
  scroll-snap-align: unset;
}

.game-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  margin: 0;
  padding: clamp(16px, 2vw, 24px);
  border-bottom: 1px solid #dfe6f2;
  background: #f8fbff;
}

.game-card img {
  width: 100%;
  height: auto;
  max-height: 440px;
  aspect-ratio: auto;
  object-fit: contain;
  transition: transform 450ms ease;
}

.game-card:hover img {
  transform: scale(1.015);
}

.game-copy {
  padding: clamp(24px, 3vw, 38px);
}

.game-card h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1.2;
}

.game-description {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.game-description li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 18px;
  color: #3f4654;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.75;
}

.game-description li:last-child {
  margin-bottom: 0;
}

.game-description li::before {
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FEBF43;
  content: "";
}

html[lang="zh-CN"] .game-description,
html[lang="zh-CN"] .game-description li {
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC",
    "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  font-synthesis: none;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: subpixel-antialiased;
}

.office-showcase {
  grid-column: 1 / -1;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  margin-top: clamp(12px, 3vw, 36px);
  padding-top: clamp(34px, 5vw, 58px);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.office-heading {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.office-heading .eyebrow {
  margin-bottom: 16px;
}

.office-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.office-tools {
  margin: 42px 0 20px;
}

.office-track {
  display: flex;
  gap: 24px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  padding: 2px 0 18px;
  scroll-padding-left: 1px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.office-track::-webkit-scrollbar {
  display: none;
}

.office-card {
  position: relative;
  flex: 0 0 clamp(300px, 32vw, 460px);
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #dfe6f2;
  background: #f8fbff;
  box-shadow: 0 18px 38px rgba(10, 30, 70, 0.1);
  scroll-snap-align: start;
}

.office-card::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-top: 4px solid var(--blue);
  content: "";
  pointer-events: none;
}

.office-card a {
  display: block;
  color: inherit;
}

.office-card a:focus-visible {
  outline: 3px solid #FEBF43;
  outline-offset: -3px;
}

.office-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
  transition: transform 450ms ease;
}

.office-card:hover img {
  transform: scale(1.035);
}

.news-item {
  grid-template-columns: 120px minmax(0, 1fr);
}

.news-item > h2 {
  display: grid;
  width: 100%;
  height: 100%;
  margin: 0;
  place-items: center;
  color: var(--blue);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.careers.partners {
  min-height: 0;
  display: block;
  padding: 120px var(--pad);
  color: var(--ink);
  text-align: center;
  background: #fff;
}

.careers.partners::before {
  display: none;
}

.partners-content {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.partners-content h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.partner-visual {
  max-width: 1100px;
  margin: clamp(42px, 5vw, 64px) auto 0;
}

.partner-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.desktop-nav {
  gap: clamp(10px, 1.35vw, 26px);
  align-items: center;
}

.desktop-nav a {
  font-size: clamp(12px, 0.9vw, 14px);
  white-space: nowrap;
}

.qualifications {
  background: #fff;
}

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

.qualifications .section-heading p {
  margin-right: auto;
  margin-left: auto;
}

.qualification-list {
  display: grid;
  width: min(980px, 100%);
  min-width: 0;
  margin: clamp(42px, 5vw, 64px) auto 0;
  gap: clamp(30px, 4vw, 48px);
}

.qualification-card {
  display: grid;
  justify-items: center;
  min-width: 0;
  padding: clamp(24px, 3vw, 38px);
  overflow: hidden;
  border: 1px solid #dfe6f2;
  border-top: 4px solid var(--blue);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
    linear-gradient(135deg, rgba(6, 75, 232, 0.06), rgba(254, 191, 67, 0.05));
  box-shadow: 0 18px 38px rgba(10, 30, 70, 0.1);
}

.qualification-card h3 {
  width: 100%;
  margin: 0 0 clamp(18px, 2.4vw, 28px);
  color: var(--ink);
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  text-align: center;
}

.qualification-card h3 + .qualification-subtitle {
  margin-top: calc(clamp(18px, 2.4vw, 28px) * -0.42);
}

.qualification-subtitle {
  width: 100%;
  max-width: 760px;
  margin: 0 0 clamp(18px, 2.4vw, 28px);
  color: var(--muted);
  font-size: clamp(14px, 1.35vw, 17px);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0;
  text-align: center;
  overflow-wrap: anywhere;
}

.qualification-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: clamp(14px, 2.2vw, 26px);
  border: 1px solid #dfe6f2;
  background: #f8fbff;
}

.qualification-visual img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: contain;
}

.services .service-grid {
  margin-top: clamp(34px, 4vw, 54px);
}

html[lang="zh-CN"] .qualification-card h3 {
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC",
    "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  font-synthesis: none;
  text-rendering: auto;
  -webkit-font-smoothing: subpixel-antialiased;
}

html[lang="zh-CN"] .qualification-subtitle {
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC",
    "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  font-synthesis: none;
  text-rendering: auto;
  -webkit-font-smoothing: subpixel-antialiased;
}

.contact {
  position: relative;
  overflow: hidden;
  background: #f5f7fb;
}

.contact::before {
  position: absolute;
  inset: auto -18vw -32vw auto;
  width: 56vw;
  height: 56vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 75, 232, 0.1), rgba(6, 75, 232, 0) 64%);
  content: "";
  pointer-events: none;
}

.contact .section-heading,
.contact-panel {
  position: relative;
  z-index: 1;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.28fr);
  width: min(1120px, 100%);
  min-width: 0;
  margin: clamp(42px, 5vw, 64px) auto 0;
  overflow: hidden;
  border: 1px solid #dfe6f2;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 58px rgba(10, 30, 70, 0.12);
}

.contact-summary {
  display: flex;
  min-width: 0;
  min-height: 300px;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 4vw, 52px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(6, 75, 232, 0.96), rgba(6, 32, 94, 0.98)),
    linear-gradient(135deg, rgba(254, 191, 67, 0.2), rgba(254, 191, 67, 0));
}

.contact-summary p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.contact-summary h3 {
  max-width: 360px;
  margin: 34px 0;
  color: #fff;
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
}

.contact-summary span {
  align-self: flex-start;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  line-height: 1.3;
}

.contact-list {
  display: grid;
  min-width: 0;
  padding: clamp(18px, 3vw, 38px) clamp(24px, 4vw, 52px);
}

.contact-item {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: clamp(18px, 2vw, 28px);
  min-width: 0;
  padding: 22px 0;
  border-bottom: 1px solid #dfe6f2;
  align-items: start;
}

.contact-item:last-child {
  border-bottom: 0;
}

.contact-item span {
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: 0.04em;
}

.contact-item p {
  min-width: 0;
  margin: 0;
  color: #2f3746;
  font-size: clamp(16px, 1.45vw, 19px);
  font-weight: 500;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.contact-item a {
  transition: color 180ms ease;
}

.contact-item a:hover {
  color: var(--blue);
}

html[lang="zh-CN"] .contact-summary h3,
html[lang="zh-CN"] .contact-item {
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC",
    "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  font-synthesis: none;
  text-rendering: auto;
  -webkit-font-smoothing: subpixel-antialiased;
}

footer {
  flex-wrap: wrap;
  min-height: 100px;
  padding: 25px var(--pad);
}

footer .footer-logo {
  width: 150px;
}

.footer-records {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  min-width: 0;
  color: #8992a0;
  font-size: 12px;
  line-height: 1.7;
}

.footer-records a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: inherit;
  transition: color 180ms ease;
}

.footer-records a:hover {
  color: #fff;
}

footer .beian-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  object-fit: contain;
}

footer .back-top {
  color: #fff;
  font-size: 24px;
}

@media (max-width: 800px) {
  .hero-copy {
    left: 24px;
    width: calc(100% - 48px);
  }

  .hero-copy p {
    margin-bottom: 14px;
    font-size: 18px;
  }

  .hero-copy h1 {
    font-size: clamp(20px, 5.8vw, 30px);
    line-height: 1.3;
  }

  .about.section {
    grid-template-columns: 1fr;
    gap: 42px;
    align-items: stretch;
    justify-items: stretch;
  }

  .about-copy {
    width: 100%;
    max-width: none;
  }

  .about-media.about-ceo {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 34px 24px 36px;
  }

  .about-media.about-ceo::before {
    inset: 10px;
  }

  .about-media.about-ceo::after {
    width: 76px;
    height: 76px;
  }

  .ceo-photo {
    width: min(200px, 68%);
    height: auto;
    max-height: 300px;
    min-height: 0;
    aspect-ratio: auto;
  }

  .ceo-name {
    margin-top: 20px;
    font-size: 30px;
  }

  .ceo-profile {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #dfe6f2;
  }

  .ceo-label {
    margin-bottom: 18px;
    font-size: 28px;
  }

  .ceo-profile li {
    padding-left: 16px;
    font-size: 13px;
    line-height: 1.7;
  }

  .game-card {
    grid-template-columns: 1fr;
  }

  .game-visual {
    min-height: 180px;
    padding: 14px;
    border-bottom: 1px solid #dfe6f2;
  }

  .game-card img {
    max-height: 280px;
  }

  .game-copy {
    padding: 18px 18px 20px;
  }

  .game-description li {
    padding-left: 16px;
    font-size: 13px;
    line-height: 1.7;
  }

  .office-showcase {
    margin-top: 6px;
    padding-top: 38px;
  }

  .office-heading h3 {
    font-size: 28px;
  }

  .office-tools {
    justify-content: center;
    margin: 30px 0 18px;
  }

  .office-card {
    flex-basis: 82%;
  }

  .news-item p {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
  }

  .news-item {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
  }

  .news-item > h2 {
    font-size: 24px;
  }

  .careers.partners {
    min-height: 0;
    padding: 80px 24px;
  }

  .partners-content h2 {
    font-size: 34px;
  }

  .partner-visual {
    margin-top: 32px;
  }

  .qualification-list {
    margin-top: 32px;
    gap: 24px;
  }

  .qualification-card {
    padding: 20px 16px;
  }

  .qualification-card h3 {
    margin-bottom: 16px;
    font-size: 24px;
  }

  .qualification-card h3 + .qualification-subtitle {
    margin-top: -6px;
  }

  .qualification-subtitle {
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.6;
  }

  .qualification-visual {
    padding: 10px;
  }

  .qualification-visual img {
    width: 100%;
    max-height: none;
  }

  .contact-panel {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  .contact-summary {
    min-height: 220px;
    padding: 30px 24px;
  }

  .contact-summary h3 {
    margin: 28px 0;
    font-size: 30px;
  }

  .contact-list {
    padding: 6px 22px 18px;
  }

  .contact-item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px 0;
  }

  .contact-item p {
    font-size: 15px;
    line-height: 1.7;
  }

  footer {
    justify-content: center;
    gap: 12px 20px;
    text-align: center;
  }

  .footer-records {
    flex-basis: 100%;
    order: 2;
  }

  footer .back-top {
    order: 3;
  }
}

.universe > .universe-background {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
