:root {
  color-scheme: light;
  --blue: #07529b;
  --navy: #12334f;
  --ink: #243b51;
  --muted: #65788a;
  --line: #dce6ee;
  --gold: #b59b61;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; color: var(--ink); background: #f5f8fb; font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif; font-size: 16px; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid #c39335; outline-offset: 5px; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.container { width: min(1280px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 20; top: 5px; left: -500px; padding: 10px 20px; background: white; }
.skip-link:focus { left: 16px; }
.topline { background: var(--blue); color: #dfefff; font-size: 13px; letter-spacing: .07em; }
.topline .container { display: flex; align-items: center; justify-content: space-between; min-height: 35px; }
.site-header { background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 102px; gap: 30px; }
.brand { display: flex; align-items: center; gap: 15px; }
.brand-seal { display: flex; width: 54px; height: 54px; align-items: center; justify-content: center; background: var(--blue); color: #fff; border: 3px double #b2cce5; border-radius: 50%; font: 30px/1 "STKaiti", "KaiTi", serif; }
.brand-type { color: var(--blue); font-size: 28px; font-weight: 700; letter-spacing: .14em; line-height: 1.15; }
.brand-type small { display: block; margin-top: 8px; color: #596b7b; font-size: 13px; letter-spacing: .17em; font-weight: 400; }
nav { display: flex; align-self: stretch; gap: 40px; }
nav a { display: flex; align-items: center; border-bottom: 3px solid transparent; padding: 3px 3px 0; font-size: 16px; color: #4b5f70; }
nav a:hover, nav a.active { color: var(--blue); border-bottom-color: var(--blue); }
.hero { position: relative; isolation: isolate; min-height: 330px; color: #fff; background: #114b80; overflow: hidden; }
.hero-image { position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%; background-position: center; background-size: cover; }
.hero-shade { position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, rgba(5, 44, 82, .97) 0%, rgba(7, 56, 101, .85) 30%, rgba(11, 67, 112, .38) 62%, rgba(9, 52, 85, .06) 100%); }
.hero-content { padding-block: 55px; }
h1 { font-size: clamp(36px, 4.5vw, 57px); letter-spacing: .07em; line-height: 1.35; font-weight: 700; }
.hero-description { margin-top: 23px; color: #d4e1ed; font-size: 16px; line-height: 1.9; }
.hero-button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; margin-top: 26px; padding: 8px 29px; color: #164a78; background: #fff; border: 1px solid #fff; font-weight: 700; font-size: 15px; transition: background .18s; }
.hero-button:hover { background: #dfedf9; }
.catalog-section { padding-top: 54px; padding-bottom: 64px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; padding-bottom: 28px; margin-bottom: 29px; border-bottom: 1px solid #d6e2ec; gap: 24px; }
.section-kicker { font-size: 14px; color: var(--blue); letter-spacing: .13em; font-weight: 700; margin-bottom: 8px; }
h2 { font-size: 29px; line-height: 1.5; color: var(--navy); letter-spacing: .025em; }
.section-heading > p { text-align: right; color: #53718a; font-size: 16px; }
.section-heading > p span { display: block; color: var(--muted); font-size: 14px; margin-top: 3px; }
.catalog-layout { display: grid; grid-template-columns: 227px minmax(0, 1fr); gap: 30px; align-items: start; }
.directory-inner { position: sticky; top: 24px; }
.directory { align-self: stretch; }
.directory summary { cursor: pointer; padding: 15px 20px; color: #fff; font-size: 18px; letter-spacing: .08em; background: var(--blue); border-bottom: 3px solid var(--gold); }
.directory ol { list-style: none; margin: 0; padding: 7px 16px; border: 1px solid var(--line); background: #fff; }
.directory li + li { border-top: 1px solid #e7edf3; }
.directory li a { display: block; padding: 12px 2px; color: #596e81; font-size: 14px; line-height: 1.7; }
.directory li a:hover { color: var(--blue); }
.directory-top { display: block; margin-top: 14px; text-align: center; color: #617d94; font-size: 14px; }
.filter-bar { display: flex; justify-content: space-between; align-items: center; min-height: 43px; margin-bottom: 23px; gap: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { padding: 7px 17px; min-height: 40px; color: #526d84; background: #eaf0f6; border: 1px solid transparent; font-size: 14px; border-radius: 2px; }
.filters button.selected { background: var(--blue); color: #fff; }
.filters button:hover { border-color: #719ac0; }
.filter-count { color: var(--muted); font-size: 14px; white-space: nowrap; }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 27px; }
.game-card { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); scroll-margin-top: 24px; box-shadow: 0 4px 15px #203d5e03; transition: box-shadow .2s; }
.game-card:hover { box-shadow: 0 7px 23px #203d5e12; }
.game-cover { display: block; position: relative; overflow: hidden; background: #dbe6f0; border-bottom: 1px solid var(--line); }
.game-cover img { width: 100%; height: auto; object-fit: contain; }
.cover-type { position: absolute; bottom: 12px; left: 14px; font-size: 13px; color: #fff; background: #093e71e8; padding: 2px 11px; border-left: 2px solid #bda86f; }
.game-content { display: flex; flex-direction: column; flex-grow: 1; padding: 23px 24px 21px; }
.game-card h3 { font-size: 21px; line-height: 1.5; color: #143e65; font-weight: 700; margin-bottom: 13px; }
.game-intro { color: #4c6276; font-size: 16px; line-height: 1.85; }
dl { margin: 19px 0 21px; padding-top: 16px; border-top: 1px solid #e7edf3; }
dl div + div { margin-top: 12px; }
dt { font-size: 14px; color: #315d82; font-weight: 700; margin-bottom: 3px; }
dd { margin: 0; font-size: 14px; line-height: 1.8; color: #697c8c; }
.play-link { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding: 10px 15px; background: #edf4fa; color: var(--blue); font-weight: 700; font-size: 15px; min-height: 44px; border: 1px solid #dae8f3; transition: background .18s, color .18s; }
.play-link:hover { background: var(--blue); color: #fff; }
.play-symbol { font-size: 22px; line-height: 1; }
.about-section { background: #e9f0f7; border-top: 1px solid #dce7f1; }
.about-inner { display: flex; align-items: center; gap: 49px; padding-top: 46px; padding-bottom: 47px; }
.about-mark { display: flex; flex-shrink: 0; align-items: center; justify-content: center; color: #3874aa; width: 132px; height: 132px; border: 1px solid #b8cfe3; outline: 1px solid #b8cfe3; outline-offset: -9px; font: 72px/1 "STKaiti", "KaiTi", serif; }
.about-text { max-width: 900px; }
.about-text h2 { font-size: 25px; margin-bottom: 13px; }
.about-text > p:not(.section-kicker) { color: #526d83; font-size: 16px; line-height: 1.9; }
.about-text p.experience-note { margin-top: 12px; font-size: 14px; color: #6d8294; }
footer { padding: 30px 0; color: #adc2d3; background: #123b60; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; font-size: 13px; }
.footer-inner strong { font-size: 23px; color: #fff; letter-spacing: .1em; }
.footer-inner span { margin-left: 18px; }
.footer-inner a:hover { color: #fff; }
@media (min-width: 901px) and (min-height: 520px) {
  .hero-image { background-image: url("media/hero.webp"); }
}
@media (max-width: 900px), (max-height: 519px) {
  .hero { min-height: auto; background: #124e80; }
  .hero-image, .hero-shade, .desktop-break { display: none; }
  .hero .hero-content { padding-block: 24px; }
  .hero .hero-description { margin-top: 8px; font-size: 15px; max-width: 36em; line-height: 1.65; }
  .hero .hero-button { min-height: 44px; margin-top: 13px; }
}

@media (max-width: 1100px) {
  .container { width: calc(100% - 48px); }
  .catalog-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 22px; }
  .game-grid { gap: 20px; }
  .game-content { padding: 20px; }
  .game-card h3 { font-size: 19px; }
  .footer-inner p { display: none; }
}
@media (max-width: 900px) {
  .catalog-layout { display: block; }
  .directory { display: block; margin-bottom: 16px; }
  .directory summary { font-size: 15px; padding: 10px 15px; }
  .directory-top { display: none; }
  .hero-shade { background: linear-gradient(90deg, #052c52eb, #073865af 55%, #0b437042); }
}
@media (max-width: 620px) {
  .container { width: calc(100% - 36px); }
  .topline .container { min-height: 31px; font-size: 12px; letter-spacing: .01em; }
  .header-inner { min-height: 66px; gap: 8px; }
  .brand { gap: 10px; }
  .brand-seal { width: 42px; height: 42px; font-size: 25px; }
  .brand-type { font-size: 23px; }
  .brand-type small { font-size: 12px; letter-spacing: .04em; }
  nav { gap: 0; align-self: center; }
  nav a { font-size: 14px; padding: 7px 0; margin-left: 15px; }
  nav a:first-child, nav a:last-child { display: none; }
  

  h1 { font-size: clamp(29px, 7.5vw, 35px); letter-spacing: .025em; }
  .hero-description { font-size: 14px; margin-top: 18px; max-width: 320px; }
  .desktop-break { display: none; }
  .hero-button { font-size: 14px; min-height: 44px; margin-top: 24px; padding-inline: 23px; }
  .hero-shade { background: linear-gradient(90deg, #052c52ed, #073865a8); }
  .catalog-section { padding-top: 32px; padding-bottom: 36px; }
  .section-heading { align-items: baseline; margin-bottom: 14px; padding-bottom: 12px; gap: 8px; }
  .section-kicker { font-size: 12px; margin-bottom: 5px; }
  h2 { font-size: 24px; }
  .section-heading > p { font-size: 13px; }
  .section-heading > p span { display: inline; font-size: 12px; margin-left: 12px; }
  .filter-bar { margin-bottom: 18px; gap: 7px; }
  .filters { gap: 6px; }
  .filters button { font-size: 13px; padding-inline: 12px; }
  .filter-count { font-size: 12px; }
  .game-grid { grid-template-columns: 1fr; gap: 22px; }
  .game-content { padding: 21px; }
  .game-card h3 { font-size: 21px; }
  .about-inner { gap: 0; padding-block: 32px; }
  .about-mark { display: none; }
  .about-text h2 { font-size: 23px; }
  .about-text > p:not(.section-kicker) { font-size: 14px; }
  .about-text p.experience-note { font-size: 13px; }
  footer { padding: 23px 0; }
  .footer-inner { gap: 15px; font-size: 12px; }
  .footer-inner strong { font-size: 21px; }
  .footer-inner span { display: block; margin-left: 0; margin-top: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media (min-width: 560px) and (max-height: 519px) {
  .topline { display: none; }
  .header-inner { min-height: 60px; }
  .brand-seal { width: 38px; height: 38px; font-size: 22px; }
  .brand-type { font-size: 23px; }
  .brand-type small { display: none; }
  .hero .hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 16px;
    align-items: center;
    padding-block: 15px;
  }
  .hero h1 { font-size: 29px; }
  .hero .hero-description { grid-column: 1; margin: 0; }
  .hero .hero-button { grid-area: 1 / 2 / 3; margin: 0; }
}
