/* ==========================================================================
   优发国游戏 · 共享站点样式 /assets/site.css
   结构：重置 → 变量 → 基础排版 → 通用组件 → 头部 → 页脚 → 响应式
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-900);
  background-color: var(--pearl);
  background-image:
    radial-gradient(1200px 520px at 112% -6%, rgba(14, 110, 140, 0.10), transparent 62%),
    radial-gradient(880px 460px at -12% 2%, rgba(255, 107, 61, 0.08), transparent 58%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; }
img { height: auto; }
button { font: inherit; }

:root {
  /* 色彩 */
  --deep-900: #062B3F;
  --deep-800: #0A3A52;
  --tide-600: #0E6E8C;
  --coral-500: #FF6B3D;
  --coral-600: #E8552A;
  --palm-500: #2E8B6F;
  --pearl: #F7F4EC;
  --paper: #F3EBDD;
  --ink-900: #141A1C;
  --focus: #FFC857;
  --glass: rgba(14, 110, 140, 0.18);
  --glass-light: rgba(247, 244, 236, 0.10);

  /* 字体 */
  --font-display: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  /* 形状与阴影 */
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --radius-pill: 999px;
  --shadow-isle: 0 10px 30px rgba(6, 43, 63, 0.18);
  --shadow-lift: 0 18px 44px rgba(6, 43, 63, 0.26);

  /* 布局 */
  --container: 1240px;
  --gutter: clamp(18px, 4vw, 44px);
  --header-h: 70px;
}

/* ---------- 中文排版基线 ---------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--deep-900);
}
h1 { font-size: clamp(34px, 5vw, 64px); line-height: 1.06; font-weight: 900; }
h2 { font-size: clamp(26px, 3.4vw, 44px); }
h3 { font-size: clamp(21px, 2.4vw, 30px); }
h4 { font-size: clamp(17px, 1.8vw, 22px); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }
small { font-size: 13px; }
a { color: var(--tide-600); text-underline-offset: 3px; }
a:hover { color: var(--coral-600); }
ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
ul:last-child, ol:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 跳至主内容 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 400;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  background: var(--focus);
  color: var(--ink-900);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transform: translate(-50%, -180%);
  transition: transform 0.2s ease;
  box-shadow: 0 8px 22px rgba(6, 43, 63, 0.3);
}
.skip-link:focus { transform: translate(-50%, 0); color: var(--ink-900); }

/* ---------- 通用布局 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 860px; }

.section { padding-block: clamp(40px, 7vw, 88px); }
.section--dark {
  background: linear-gradient(165deg, var(--deep-900) 0%, var(--deep-800) 62%, #08303f 100%);
  color: rgba(247, 244, 236, 0.86);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--pearl); }
.section--paper {
  background: var(--paper);
  color: var(--ink-900);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tide-600);
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--coral-500);
}
.section--dark .eyebrow { color: var(--focus); }

.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.85;
}
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { margin-top: 1.8em; }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--cards {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.btn--primary {
  background: var(--coral-500);
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 107, 61, 0.32);
}
.btn--primary:hover {
  background: var(--coral-600);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(232, 85, 42, 0.4);
}
.btn--primary:active { transform: translateY(0); }
.btn--tide {
  background: var(--tide-600);
  color: #fff;
  box-shadow: 0 8px 20px rgba(14, 110, 140, 0.3);
}
.btn--tide:hover { background: #0b5c75; color: #fff; transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--deep-900);
  border-color: rgba(6, 43, 63, 0.3);
}
.btn--ghost:hover {
  background: rgba(6, 43, 63, 0.08);
  border-color: rgba(6, 43, 63, 0.5);
  color: var(--deep-900);
}
.btn--cta { padding: 10px 18px; font-size: 14px; }

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid rgba(14, 110, 140, 0.22);
  border-radius: var(--radius-pill);
  background: rgba(14, 110, 140, 0.12);
  color: var(--tide-600);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.tag--coral {
  background: rgba(255, 107, 61, 0.14);
  border-color: rgba(255, 107, 61, 0.34);
  color: var(--coral-600);
}
.tag--palm {
  background: rgba(46, 139, 111, 0.14);
  border-color: rgba(46, 139, 111, 0.32);
  color: var(--palm-500);
}
.tag--focus {
  background: rgba(255, 200, 87, 0.24);
  border-color: rgba(255, 200, 87, 0.62);
  color: #856112;
}

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(6, 43, 63, 0.1);
  border-radius: var(--radius-l);
  background: #fff;
  box-shadow: 0 2px 0 rgba(6, 43, 63, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 107, 61, 0.42);
  box-shadow: var(--shadow-lift);
}

/* ---------- 图片容器基础规则（页面阶段放置图像） ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-m);
  background: linear-gradient(150deg, var(--deep-800) 0%, var(--tide-600) 56%, var(--palm-500) 100%);
  isolation: isolate;
}
.media-frame img,
.media-frame svg,
.media-frame picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(202deg, rgba(6, 43, 63, 0) 42%, rgba(6, 43, 63, 0.58) 100%);
  pointer-events: none;
}
.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--plain::after { display: none; }

/* ---------- 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.6;
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumb__link { color: var(--tide-600); text-decoration: none; }
.breadcrumb__link:hover { color: var(--coral-600); }
.breadcrumb__sep { color: rgba(20, 26, 28, 0.34); }
.breadcrumb__current { color: rgba(20, 26, 28, 0.64); }
.section--dark .breadcrumb__link { color: var(--focus); }
.section--dark .breadcrumb__current,
.section--dark .breadcrumb__sep { color: rgba(247, 244, 236, 0.62); }

/* ==========================================================================
   头部：玻璃海面 + 三枚浮岛
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  color: var(--pearl);
  background: rgba(6, 43, 63, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(247, 244, 236, 0.14);
  transition: background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.site-header[data-scrolled="true"] {
  background: rgba(6, 43, 63, 0.97);
  border-bottom-color: rgba(255, 107, 61, 0.46);
  box-shadow: 0 12px 32px rgba(6, 43, 63, 0.28);
}
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: var(--container);
  min-height: var(--header-h);
  margin-inline: auto;
  padding: 11px var(--gutter);
}

/* 品牌浮岛 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 4px 6px 4px 4px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--pearl);
}
.brand:hover { color: var(--pearl); }
.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(148deg, var(--coral-500), var(--coral-600));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(232, 85, 42, 0.36);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.16; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16.5px;
  letter-spacing: 0.02em;
}
.brand__line {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: rgba(247, 244, 236, 0.62);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 15px;
  border: 1px solid rgba(247, 244, 236, 0.26);
  border-radius: var(--radius-pill);
  background: rgba(247, 244, 236, 0.07);
  color: var(--pearl);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}
.nav-toggle:hover { background: rgba(247, 244, 236, 0.14); border-color: rgba(255, 107, 61, 0.5); }
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.18s ease, top 0.18s ease;
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }
[data-nav-toggle][aria-expanded="true"] .nav-toggle__bars { background: transparent; }
[data-nav-toggle][aria-expanded="true"] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
[data-nav-toggle][aria-expanded="true"] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }
.nav-toggle__text { white-space: nowrap; }

/* 导航面板 */
.nav-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex: 0 1 auto;
}
.nav { margin: 0; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 4px;
  list-style: none;
  border: 1px solid rgba(247, 244, 236, 0.13);
  border-radius: var(--radius-pill);
  background: var(--glass-light);
}
.nav__item { list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  color: rgba(247, 244, 236, 0.86);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.nav__link:hover { background: rgba(247, 244, 236, 0.15); color: #fff; }
.nav__link[aria-current="page"] {
  background: var(--pearl);
  color: var(--deep-900);
  font-weight: 700;
}

/* 苹果设备入口：导航中段的高饱和锚点 */
.nav__item--apple .nav__link--apple {
  background: linear-gradient(135deg, var(--coral-500), var(--coral-600));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(232, 85, 42, 0.34);
}
.nav__item--apple .nav__link--apple:hover {
  background: linear-gradient(135deg, #ff8158, var(--coral-500));
  color: #fff;
}
.nav__item--apple .nav__link--apple[aria-current="page"] {
  background: linear-gradient(135deg, #ff8158, var(--coral-600));
  color: #fff;
}
.nav__pkg {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(6, 43, 63, 0.36);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* 头部工具与行动 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.utility-link {
  padding: 6px 9px;
  border-radius: var(--radius-s);
  color: rgba(247, 244, 236, 0.66);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.16s ease, background-color 0.16s ease;
}
.utility-link:hover { color: var(--focus); background: rgba(247, 244, 236, 0.09); }

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--coral-500), var(--focus));
  pointer-events: none;
  will-change: transform;
}

/* ==========================================================================
   页脚：退潮后的海底剖面
   ========================================================================== */
.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(178deg, var(--deep-900) 0%, #05222f 100%);
  color: rgba(247, 244, 236, 0.82);
}
.site-footer__tide {
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--coral-500) 0%,
    var(--coral-500) 18%,
    var(--focus) 18%,
    var(--focus) 36%,
    var(--palm-500) 36%,
    var(--palm-500) 54%,
    var(--tide-600) 54%,
    var(--tide-600) 100%
  );
}
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.95fr) minmax(0, 1.7fr) minmax(196px, 0.85fr);
  gap: clamp(24px, 4vw, 56px);
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(34px, 5.5vw, 62px) var(--gutter) clamp(26px, 4vw, 42px);
}
.site-footer__brand { min-width: 0; }
.brand--footer { padding: 0; margin-bottom: 14px; }
.brand--footer .brand__mark { box-shadow: 0 6px 16px rgba(232, 85, 42, 0.28); }
.site-footer__pitch {
  max-width: 30ch;
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(247, 244, 236, 0.7);
}
.site-footer__mono {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: rgba(247, 244, 236, 0.45);
}
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 34px);
}
.footer-col { min-width: 0; }
.footer-col__heading {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--focus);
}
.footer-col__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
  line-height: 1.9;
}
.footer-col__list li + li { margin-top: 2px; }
.footer-col__list--mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.95;
  letter-spacing: 0.01em;
  color: rgba(247, 244, 236, 0.7);
}
.footer-link {
  display: inline-block;
  color: rgba(247, 244, 236, 0.8);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.footer-link:hover {
  color: #fff;
  border-bottom-color: var(--coral-500);
}
.site-footer__contact { min-width: 0; }
.site-footer__address {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(247, 244, 236, 0.14);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(247, 244, 236, 0.62);
}
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 18px var(--gutter) 30px;
  border-top: 1px solid rgba(247, 244, 236, 0.14);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: rgba(247, 244, 236, 0.5);
}
.site-footer__base p { margin: 0; }
.site-footer__icp { color: rgba(247, 244, 236, 0.66); }
.site-footer__note { margin-left: auto; color: rgba(247, 244, 236, 0.42); }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1080px) {
  .utility-link { display: none; }
}

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }

  .nav-shell {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: var(--gutter);
    right: var(--gutter);
    z-index: 130;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-left: 0;
    padding: 16px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    border: 1px solid rgba(247, 244, 236, 0.16);
    border-radius: var(--radius-l);
    background: rgba(6, 43, 63, 0.98);
    box-shadow: var(--shadow-lift);
  }
  .nav-shell[data-open="true"] { display: flex; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .nav__item--apple { order: -1; }
  .nav__link {
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(247, 244, 236, 0.07);
    font-size: 15px;
  }
  .nav__link[aria-current="page"] {
    background: rgba(255, 107, 61, 0.18);
    color: #fff;
    box-shadow: inset 3px 0 0 var(--coral-500);
  }
  .nav__item--apple .nav__link--apple { justify-content: space-between; }
  .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(247, 244, 236, 0.14);
  }
  .utility-link {
    display: block;
    padding: 8px 4px;
    color: rgba(247, 244, 236, 0.7);
  }
  .btn--cta { width: 100%; }
}

@media (max-width: 960px) {
  .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
  .site-footer__pitch { max-width: none; }
}

@media (max-width: 640px) {
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__note { margin-left: 0; }
  .brand__line { display: none; }
  .site-footer__base { gap: 6px 16px; }
}

@media (max-width: 420px) {
  .site-footer__cols { grid-template-columns: minmax(0, 1fr); }
  .nav-toggle__text { display: none; }
  .nav-toggle { padding: 10px 12px; }
}

/* ==========================================================================
   可访问性：减少动态
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover,
  .btn--primary:hover,
  .btn--tide:hover { transform: none; }
  .scroll-progress { transition: none; }
}
