/* ==========================================================================
   ICEPLAY · 冰雪娱乐会馆 共享 Site Kit
   /assets/site.css — reset / tokens / 中文排版 / 头部 / 页脚 / 通用组件
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body,
h1,
h2,
h3,
h4,
h5,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
}

a {
  color: inherit;
}

main {
  display: block;
}

[id] {
  scroll-margin-top: 110px;
}

/* ---------- 2. Tokens ---------- */
:root {
  --snow: #F7FCFF;
  --ice-mist: #DCF2FF;
  --ice: #A8E6FF;
  --neon: #00E5FF;
  --neon-ink: #0A8FA6;
  --aurora: #B388FF;
  --aurora-ink: #5B32B8;
  --action: #FF8A65;
  --action-hi: #FFB199;
  --deep: #063B44;
  --indigo: #2A1D4E;
  --ink: #0B2A3A;
  --ink-soft: #123B4D;
  --muted: #5A6B7A;

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;

  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shell: min(1200px, calc(100% - 48px));
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  background-color: var(--snow);
  background-image:
    radial-gradient(circle, rgba(0, 229, 255, 0.13) 1px, transparent 1.6px),
    radial-gradient(1100px 520px at 88% -10%, rgba(179, 136, 255, 0.18), transparent 62%),
    radial-gradient(900px 520px at 4% 0%, rgba(168, 230, 255, 0.55), transparent 60%);
  background-size: 30px 30px, auto, auto;
  background-repeat: repeat, no-repeat, no-repeat;
  background-position: 0 0, 0 0, 0 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
}

h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
}

h3 {
  font-size: clamp(1.12rem, 1.7vw, 1.35rem);
}

h4 {
  font-size: 1.02rem;
}

p + p {
  margin-top: 1.2em;
}

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

::selection {
  background: var(--aurora);
  color: #fff;
}

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 400;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--deep);
  color: #EAFBFF;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translate(-50%, -180%);
  transition: transform 0.24s var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

/* ---------- 5. 头部：悬浮胶囊浮岛 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  padding: 12px 0 0;
  pointer-events: none;
}

.site-header__rail {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  overflow: hidden;
  background: rgba(0, 229, 255, 0.14);
}

.site-header__progress {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--neon), var(--aurora));
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.75);
}

.site-header__shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: var(--shell);
  margin-inline: auto;
  padding: 9px 12px 9px 18px;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 999px;
  background: rgba(247, 252, 255, 0.84);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 22px 46px -34px rgba(6, 59, 68, 0.85);
  pointer-events: auto;
  transition: padding 0.3s var(--ease), background-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.site-header[data-compact] .site-header__shell {
  padding-block: 5px;
  background: rgba(247, 252, 255, 0.95);
  box-shadow: 0 16px 34px -28px rgba(6, 59, 68, 0.9);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  position: relative;
  flex: none;
  width: 30px;
  height: 34px;
  background: linear-gradient(160deg, var(--neon) 0%, var(--ice) 48%, var(--aurora) 100%);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.45));
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: rgba(247, 252, 255, 0.9);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.brand__text {
  display: grid;
  min-width: 0;
  line-height: 1.15;
}

.brand__name {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.brand__mono {
  max-height: 16px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  white-space: nowrap;
  transition: opacity 0.3s var(--ease), max-height 0.3s var(--ease);
}

.site-header[data-compact] .brand__mono {
  opacity: 0;
  max-height: 0;
}

/* 移动汉堡 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 14px;
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 999px;
  background: var(--ice-mist);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--deep);
  transition: transform 0.26s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* 导航 */
.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
  counter-reset: navitem;
}

.nav__list > li {
  counter-increment: navitem;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.24s var(--ease), color 0.24s var(--ease),
    box-shadow 0.24s var(--ease);
}

.nav__link::before {
  content: counter(navitem, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--neon-ink);
  opacity: 0.85;
}

.nav__link:hover {
  background: var(--ice-mist);
  color: #04303A;
}

.nav__link[aria-current="page"] {
  background: var(--ice);
  color: #06303C;
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.55);
}

.nav__link[aria-current="page"]::before {
  color: #075E6B;
}

.nav__cta {
  flex: none;
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: background-size 0.34s var(--ease), transform 0.24s var(--ease),
    background-color 0.24s var(--ease), color 0.24s var(--ease),
    border-color 0.24s var(--ease), box-shadow 0.24s var(--ease);
}

.btn--action {
  color: var(--ink);
  background-color: var(--action);
  background-image: linear-gradient(90deg, var(--action-hi), var(--action-hi));
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 0% 100%;
  box-shadow: 0 14px 26px -16px rgba(255, 138, 101, 0.95);
}

.btn--action:hover {
  background-size: 100% 100%;
  transform: translateY(-1px);
}

.btn--ghost {
  margin-top: 18px;
  border-color: rgba(168, 230, 255, 0.5);
  background: transparent;
  color: #DCF2FF;
}

.btn--ghost:hover {
  background: rgba(168, 230, 255, 0.14);
  border-color: var(--neon);
  color: #FFFFFF;
}

/* ---------- 7. 页脚：靛紫珠宝带 ---------- */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #DCD6F2;
  background: linear-gradient(180deg, var(--indigo) 0%, #1B1338 62%, #120C27 100%);
}

.site-footer__glow {
  position: absolute;
  inset: -18% -12% auto;
  z-index: -1;
  height: 70%;
  pointer-events: none;
  background:
    radial-gradient(60% 100% at 18% 0%, rgba(179, 136, 255, 0.38), transparent 70%),
    radial-gradient(50% 100% at 82% 8%, rgba(0, 229, 255, 0.28), transparent 72%);
  filter: blur(12px);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.25fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  width: var(--shell);
  margin-inline: auto;
  padding: clamp(48px, 7vw, 88px) 0 clamp(34px, 5vw, 56px);
}

.site-footer a {
  color: #DCD6F2;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.site-footer a:hover {
  color: #FFFFFF;
  border-bottom-color: var(--neon);
}

.site-footer :focus-visible {
  outline-color: var(--neon);
}

.brand--footer .brand__name {
  color: #FFFFFF;
}

.brand--footer .brand__mono {
  color: #9C93C9;
}

.site-footer__pitch {
  margin-top: 16px;
  max-width: 26em;
  font-size: 14.5px;
  line-height: 1.9;
  color: #C6BFE6;
}

.site-footer__title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #9C93C9;
}

.footer-links,
.legal-links {
  display: grid;
  gap: 9px;
  font-size: 14.5px;
}

.contact-list {
  display: grid;
  gap: 12px;
  font-size: 14px;
}

.contact-list li {
  display: grid;
  gap: 1px;
}

.contact-list__key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: #8C83BE;
}

.contact-list__val {
  color: #EBE7FA;
  line-height: 1.7;
  word-break: break-word;
}

.site-footer__icp {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: #8C83BE;
}

.site-footer__base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: var(--shell);
  margin-inline: auto;
  padding: 20px 0 30px;
  border-top: 1px solid rgba(0, 229, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(0, 229, 255, 0.12);
}

.site-footer__crystal {
  flex: none;
  width: 30px;
  height: 34px;
  opacity: 0.9;
  background: linear-gradient(160deg, rgba(0, 229, 255, 0.95), rgba(179, 136, 255, 0.7));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: crystal-turn 90s linear infinite;
}

.site-footer__copy {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #9C93C9;
  text-align: right;
}

@keyframes crystal-turn {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- 8. 页面容器与色带 ---------- */
.container {
  width: var(--shell);
  margin-inline: auto;
}

.container--narrow {
  width: min(720px, calc(100% - 48px));
  margin-inline: auto;
}

.band {
  position: relative;
  padding: clamp(56px, 8vw, 110px) 0;
}

.band--ice {
  background: var(--ice-mist);
}

.band--deep {
  background: var(--deep);
  color: #EAFBFF;
}

.band--indigo {
  background: var(--indigo);
  color: #F1EAFF;
}

.band--deep h1,
.band--deep h2,
.band--deep h3,
.band--deep h4,
.band--indigo h1,
.band--indigo h2,
.band--indigo h3,
.band--indigo h4 {
  color: #FFFFFF;
}

/* ---------- 9. 章节头与索引 ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 28px;
}

.index-num {
  display: inline-flex;
  align-items: center;
  padding: 2px 11px;
  border: 1px solid rgba(0, 229, 255, 0.45);
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--neon-ink);
}

.band--deep .index-num,
.band--indigo .index-num {
  border-color: rgba(0, 229, 255, 0.6);
  background: rgba(0, 229, 255, 0.14);
  color: var(--neon);
}

/* ---------- 10. 正文块 ---------- */
.prose {
  max-width: 720px;
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.prose h2 {
  margin-top: 2.2em;
  margin-bottom: 0.6em;
}

.prose h3 {
  margin-top: 1.8em;
  margin-bottom: 0.5em;
}

.prose ul {
  margin-top: 0.8em;
}

.prose ul > li {
  position: relative;
  margin-top: 0.6em;
  padding-left: 22px;
}

.prose ul > li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--neon);
  transform: rotate(45deg);
}

.band--deep .prose,
.band--indigo .prose {
  color: #DDF4FB;
}

/* ---------- 11. 网格与卡片 ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid rgba(11, 42, 58, 0.08);
  border-radius: var(--radius-md);
  background: #FFFFFF;
  box-shadow: 0 26px 50px -46px rgba(6, 59, 68, 0.85);
}

.card--float {
  border-color: rgba(0, 229, 255, 0.3);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border: 1px solid rgba(179, 136, 255, 0.38);
  border-radius: 999px;
  background: rgba(179, 136, 255, 0.14);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--aurora-ink);
}

/* ---------- 12. 图片容器基座 ---------- */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: linear-gradient(140deg, var(--ice) 0%, #EDF9FF 46%, var(--ice-mist) 100%);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--16-9 {
  aspect-ratio: 16 / 9;
}

.media-frame--4-3 {
  aspect-ratio: 4 / 3;
}

.media-frame--1-1 {
  aspect-ratio: 1 / 1;
}

.media-frame--tall {
  aspect-ratio: 3 / 4;
}

.media-frame__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-align: center;
  color: #2C6B80;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.62) 0 10px,
    rgba(255, 255, 255, 0) 10px 20px
  );
}

/* ---------- 13. 面包屑 ---------- */
.breadcrumbs {
  padding-top: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: rgba(90, 107, 122, 0.5);
}

.breadcrumbs a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.22s var(--ease), color 0.22s var(--ease);
}

.breadcrumbs a:hover {
  color: var(--ink);
  border-bottom-color: var(--neon);
}

.breadcrumbs [aria-current="page"] {
  color: var(--ink);
}

/* ---------- 14. 入场显现 ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
  }

  html.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1180px) {
  .nav__link::before {
    display: none;
  }

  .nav__link {
    padding-inline: 11px;
    font-size: 14px;
  }
}

@media (max-width: 920px) {
  .site-header__shell {
    gap: 10px;
    padding: 8px 10px 8px 16px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: 0;
    display: grid;
    gap: 6px;
    margin-left: 0;
    padding: 14px;
    border: 1px solid rgba(0, 229, 255, 0.35);
    border-radius: 26px;
    background: rgba(247, 252, 255, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 34px 64px -38px rgba(6, 59, 68, 0.7);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.26s var(--ease), transform 0.26s var(--ease),
      visibility 0.26s var(--ease);
  }

  .nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 2px;
    margin-inline: 0;
  }

  .nav__link {
    justify-content: flex-start;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 15px;
  }

  .nav__cta {
    width: 100%;
    margin-top: 8px;
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  :root {
    --shell: calc(100% - 32px);
  }

  .container,
  .container--narrow {
    width: calc(100% - 32px);
  }

  .brand__name {
    font-size: 14.5px;
  }

  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }

  .site-footer__base {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .site-footer__copy {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .brand__mono {
    font-size: 9px;
    letter-spacing: 0.12em;
  }
}

@media (max-width: 400px) {
  .nav-toggle__label {
    display: none;
  }

  .brand__mono {
    display: none;
  }
}

/* ---------- 16. 动效偏好 ---------- */
@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;
  }

  html.js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .site-footer__crystal {
    animation: none;
  }
}
