/*
 * [INPUT]: Company and game page markup.
 * [OUTPUT]: Responsive layouts, page palettes, and decorative illustrations.
 * [POS]: Shared stylesheet for index.html and product.html.
 * [PROTOCOL]: 变更时更新此头部，然后检查 CLAUDE.md
 */
:root {
  color-scheme: light;
  --page: #e9ece8;
  --panel: #f8faf7;
  --text: #173a32;
  --muted: #40574f;
  --line: #a8b4ad;
  --button: #173a32;
  --button-ink: #f8faf7;
  --display: "Avenir Next Condensed", "Arial Narrow", "Liberation Sans Narrow", system-ui, sans-serif;
  --font: "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-block-start: 1.5rem; }
body { margin: 0; background: var(--page); color: var(--text); font: 1rem/1.65 var(--font); }
a { color: inherit; overflow-wrap: anywhere; text-underline-offset: .23em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
address { font-style: normal; }

.frame { max-inline-size: 79rem; margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 4.5rem); }
.skip-link { position: fixed; inset-block-start: .75rem; inset-inline-start: .75rem; z-index: 2; padding: .5rem .9rem; background: var(--panel); }
.skip-link:not(:focus) { clip-path: inset(50%); }
.site-header { border-block-end: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; padding-block: 1.15rem; }
.brand { font: 750 1.5rem/1.1 var(--display); letter-spacing: -.025em; text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem clamp(.85rem, 2.5vw, 2rem); }
.site-nav a { padding-block: .25rem; font-weight: 650; text-decoration-color: transparent; }
.site-nav a:hover, .site-nav a[aria-current] { text-decoration-color: currentColor; }

.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(1.75rem, 4.5vw, 5rem); padding-block: clamp(3rem, 8vw, 7.5rem); }
h1, h2, h3 { margin: 0; line-height: 1.08; }
h1, h2 { font-family: var(--display); font-weight: 760; letter-spacing: -.047em; }
h1 { max-inline-size: 12ch; font-size: clamp(3rem, 6.65vw, 7rem); text-wrap: balance; }
h2 { font-size: clamp(2.25rem, 4vw, 3.9rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.36rem); line-height: 1.3; }
p { max-inline-size: 62ch; margin-block: .85rem 1.1rem; color: var(--muted); }
.hero p { font-size: clamp(1.03rem, 1.55vw, 1.22rem); max-inline-size: 46ch; margin-block: 1.25rem 1.6rem; }
.button { display: inline-block; padding: .82rem 1.1rem; border: 1px solid var(--button); background: var(--button); color: var(--button-ink); font-weight: 700; text-decoration: none; }
.button:hover { background: var(--panel); color: var(--text); }
.button:focus-visible { outline-color: var(--text); }

.material { margin: 0; border: 1px solid var(--line); background: var(--panel); }
.ingots { position: relative; isolation: isolate; display: grid; place-items: center; overflow: hidden; aspect-ratio: 1.28; background: radial-gradient(ellipse at 50% 82%, #727e74, #263d35 68%); }
.ingots span { position: absolute; inset-inline-start: 17%; inline-size: 67%; block-size: 24%; transform: skewY(-14deg) rotate(-7deg); border-radius: .65rem .2rem .45rem .45rem; border: 1px solid #e2e6df; background: linear-gradient(155deg, #f8faf7 6%, #c9d0c9 35%, #8e9b92 78%); box-shadow: -.6rem .75rem 0 #67766b, -.8rem 1.1rem 0 #333f37; }
.ingots span::after { content: ""; position: absolute; inset: 16% 8%; border: 2px ridge #a2aca3; border-radius: .32rem; }
.ingots span:nth-child(1) { inset-block-start: 52%; }
.ingots span:nth-child(2) { inset-block-start: 40%; inset-inline-start: 19%; }
.ingots span:nth-child(3) { inset-block-start: 28%; inset-inline-start: 21%; }
.material figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .75rem; padding: .8rem 1rem; border-block-start: 3px solid #a87852; font-weight: 700; }
.material figcaption span { color: var(--muted); font-weight: 500; }

.section { padding-block: clamp(2.65rem, 6vw, 5rem); }
.frame.section:not(.contact-section .section) { border-block-start: 1px solid var(--line); }
.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.65rem, 5vw, 4.5rem); margin-block-start: clamp(1.3rem, 3vw, 2.3rem); }
.contact-section { background: var(--panel); border-block: 1px solid var(--line); }
.company-details { margin: .75rem 0 1rem; }
.company-details div { display: grid; grid-template-columns: minmax(7.5rem, 36%) 1fr; gap: .3rem .8rem; padding-block: .6rem; border-block-start: 1px solid var(--line); }
.company-details dt { font-weight: 650; }
.company-details dd { margin: 0; color: var(--muted); }
.related { margin-block-start: clamp(2rem, 5vw, 3.25rem); padding-block-start: 1.25rem; border-block-start: 1px solid var(--line); }
.related p { margin-block-end: 0; }
.site-footer { color: var(--muted); font-size: .9rem; }

.game-page {
  color-scheme: dark;
  --page: #112644;
  --panel: #192f4d;
  --text: #fff4d7;
  --muted: #dfe6eb;
  --line: #5b6f86;
  --button: #e4b953;
  --button-ink: #14243b;
}
.game-hero h1 { max-inline-size: none; text-wrap: unset; }
.landscape { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 1.21; background: linear-gradient(160deg, #263257 8%, #33546b 58%, #8c7459); border: 1px solid var(--line); }
.landscape span { position: absolute; inset: 0; }
.landscape span:nth-child(1) { inset: 12% 14% auto auto; inline-size: 26%; aspect-ratio: 1; background: #e4b953; border-radius: 50%; }
.landscape span:nth-child(2) { background: #344959; clip-path: polygon(0 74%, 18% 66%, 37% 45%, 54% 67%, 69% 53%, 100% 74%, 100% 100%, 0 100%); }
.landscape span:nth-child(3) { background: #14273d; clip-path: polygon(0 82%, 19% 88%, 42% 68%, 60% 79%, 75% 64%, 100% 75%, 100% 100%, 0 100%); }

@media (max-width: 52rem) {
  .hero, .columns { grid-template-columns: 1fr; }
  .hero { align-items: start; }
  .material, .landscape { inline-size: min(100%, 36rem); }
  .ingots, .landscape { aspect-ratio: 1.65; }
}

@media (max-width: 24rem) {
  .company-details div { grid-template-columns: 1fr; }
  .site-nav { font-size: .92rem; }
}
