/* 设计系统：Archivo 粗体标题 + IBM Plex Sans 正文 + IBM Plex Mono 标签，近黑墨色 + 酒红强调 */
:root {
  --paper: #ffffff;
  --ink: #17181c;
  --muted: #5c5f66;
  --line: #e4e4e2;
  --accent: #7a2e2e;
  --wrap: 1160px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); color: var(--ink); }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

/* 通用容器与排版原子 */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }
.wrap.narrow { max-width: 820px; }
.label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.disp {
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
}
em { font-style: normal; color: var(--accent); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand span { color: var(--accent); }
.brand-logo { flex: none; display: block; width: 30px; height: 30px; margin-right: 10px; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
}
.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  content: "";
}
.menu-icon::before { transform: translateY(-6px); }
.menu-icon::after { transform: translateY(4px); }

/* 区块骨架 */
main { display: block; }
.sec { padding: 92px 0; border-top: 1px solid var(--line); }
.sec-head { max-width: 60ch; }
.sec-head .label { margin: 0 0 18px; }
.sec-head h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.sec-head .intro { margin: 24px 0 0; max-width: 52ch; color: var(--muted); font-size: 1.1rem; }

/* 英雄区 */
.hero { padding: 96px 0 88px; }
.home-hero {
  position: relative;
  min-height: min(720px, calc(100vh - 76px));
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.home-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .9) 38%, rgba(255, 255, 255, .36) 100%);
  content: "";
}
.home-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero .label { margin: 0 0 30px; }
.hero h1 {
  font-weight: 800;
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  line-height: 1.03;
  max-width: 16ch;
  opacity: 0;
  transform: translateY(14px);
  animation: rise .9s cubic-bezier(.2, .7, .2, 1) .1s forwards;
}
@keyframes rise { to { opacity: 1; transform: none; } }
.hero .lead { margin: 42px 0 0; max-width: 56ch; font-size: 1.15rem; color: var(--muted); }
.hero .lead strong { color: var(--ink); font-weight: 600; }
.page-hero { padding: 76px 0 4px; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 20ch; }
.page-hero .lead { margin-top: 26px; }

/* CTA 与文字链接 */
.cta { margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 34px; }
.cta a, .links a {
  font-weight: 600;
  font-size: 1.08rem;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--accent);
  transition: color .2s ease;
}
.cta a:hover, .links a:hover { color: var(--accent); }
.cta a .arw { color: var(--accent); margin-left: .4em; }
.links { margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 34px; }

/* 产品条目 */
.products { margin: 56px 0 0; }
.product {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 40px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding: 44px 0;
}
.product:last-child { border-bottom: 1px solid var(--line); }
.product-art {
  width: 180px;
  aspect-ratio: 14 / 9;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
}
.plate {
  width: 104px;
  height: 104px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 3rem;
  letter-spacing: -.02em;
}
.product h3 {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  letter-spacing: -.02em;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.1;
}
.product p { margin: 16px 0 0; max-width: 48ch; color: var(--muted); font-size: 1.06rem; }
.status {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  padding-top: 8px;
}

/* 价值观 */
.values { margin: 52px 0 0; }
.value {
  display: grid;
  grid-template-columns: 3rem 1fr;
  column-gap: 28px;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding: 38px 0;
}
.value:last-child { border-bottom: 1px solid var(--line); }
.value .rn {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: .08em;
  color: var(--accent);
}
.value h3 {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  letter-spacing: -.02em;
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  line-height: 1.1;
}
.value p { margin: 14px 0 0; max-width: 56ch; color: var(--muted); font-size: 1.05rem; }

/* 流程 */
.steps { margin: 52px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.step { border-top: 2px solid var(--accent); padding: 26px 26px 40px 0; }
.step .num {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: 2.4rem;
  letter-spacing: -.02em;
  line-height: 1;
}
.step h3 {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  letter-spacing: -.02em;
  font-size: 1.35rem;
  margin: 16px 0 0;
}
.step p { margin: 10px 0 0; max-width: 26ch; color: var(--muted); font-size: .98rem; }

/* 公司档案表 */
.record { margin: 48px 0 0; border: 1px solid var(--line); }
.record dl { margin: 0; }
.record .rrow {
  display: grid;
  grid-template-columns: minmax(0, .42fr) minmax(0, .58fr);
  gap: 32px;
  padding: 22px 30px;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.record .rrow:first-child { border-top: 0; }
.record dt {
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.record dd { margin: 0; font-size: 1.04rem; }

/* About 叙事 */
.prose { max-width: 62ch; }
.prose p { margin: 0 0 20px; color: var(--muted); font-size: 1.12rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }

/* 表单 */
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 52px;
  align-items: start;
}
.note h3 {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  letter-spacing: -.02em;
  font-size: 1.4rem;
}
.note p { margin: 16px 0 0; max-width: 40ch; color: var(--muted); }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(122, 46, 46, .16);
  outline-offset: 0;
}
.notice {
  display: none;
  padding: 14px 16px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
}
.notice.show { display: block; }
.btn {
  justify-self: start;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: 14px 26px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }

/* Games 空状态 */
.empty { margin: 40px 0 0; padding: 30px; border: 1px dashed var(--line); }
.empty h3 { font-family: "Archivo", sans-serif; font-weight: 700; font-size: 1.2rem; }
.empty p { margin: 8px 0 0; color: var(--muted); }

/* 法务页 */
.legal { max-width: 76ch; }
.legal section { padding: 26px 0; border-top: 1px solid var(--line); }
.legal section:first-child { border-top: 0; }
.legal h2 {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  letter-spacing: -.01em;
  font-size: 1.3rem;
  margin: 0 0 10px;
}
.legal p { color: var(--muted); }

/* 页脚 */
.site-footer { background: var(--ink); color: #f2f2f1; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; padding: 70px 0 40px; }
.site-footer .brand { color: #f2f2f1; }
.site-footer .brand span { color: #c78c8c; }
.foot p { margin: 18px 0 0; max-width: 40ch; color: #b1b2b6; font-size: .98rem; }
.foot h3 {
  margin: 0 0 18px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #8b8c90;
}
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 0 0 12px; }
.foot a {
  color: #f2f2f1;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color .2s ease;
}
.foot a:hover { border-color: #c78c8c; }
.foot-base {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 44px;
  border-top: 1px solid rgba(242, 242, 241, .16);
  color: #8b8c90;
  font-size: .86rem;
}
.foot-base .rule { display: inline-block; width: 34px; height: 2px; background: #c78c8c; vertical-align: middle; }

/* 响应式 */
@media (max-width: 820px) {
  .menu-button { display: grid; place-items: center; }
  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    margin-top: 1px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 16px; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); background: #f5f4f2; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 24px; }
  .hero { padding: 60px 0 52px; }
  .home-hero { min-height: 640px; }
  .home-hero::after { background: rgba(255, 255, 255, .86); }
  .page-hero { padding: 52px 0 4px; }
  .sec { padding: 60px 0; }
  .hero .lead { font-size: 1.05rem; }
  .product { grid-template-columns: 1fr; gap: 16px; padding: 34px 0; }
  .product-art { width: 100%; max-width: 360px; }
  .plate { width: 84px; height: 84px; font-size: 2.4rem; }
  .status { padding-top: 0; }
  .value { grid-template-columns: 2rem 1fr; column-gap: 16px; }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 22px 0 30px; }
  .step p { max-width: none; }
  .record .rrow { grid-template-columns: 1fr; gap: 6px; padding: 18px 20px; }
  .form-grid { grid-template-columns: 1fr; gap: 32px; }
  .foot { grid-template-columns: 1fr; gap: 36px; padding: 52px 0 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1 { animation: none; opacity: 1; transform: none; }
  * { transition: none !important; }
}
