/* ==========================================================================
   美高美娱乐 · 共享样式表 /assets/site.css
   夜航识路 —— 深海墨蓝底色 + 霓虹路径 + 数据铭牌标签
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --ink-900: #07131F;
  --ink-800: #0D2033;
  --ink-700: #14304A;
  --paper: #F3EBDD;
  --paper-dim: #C9C2B4;
  --cyan: #35E7D6;
  --gold: #F5B942;
  --coral: #FF6B57;
  --violet: #8A6BFF;
  --mint: #6BE39B;
  --white: #F7FBFF;

  --font-display: "Alibaba PuHuiTi 3.0", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-editorial: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-label: "JetBrains Mono", "IBM Plex Mono", SFMono-Regular, Consolas, ui-monospace, monospace;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --gap: clamp(18px, 2.2vw, 32px);

  --border-line: 1px solid var(--ink-700);
  --shadow-card: 0 24px 52px -30px rgba(0, 0, 0, 0.96);
  --shadow-lift: 0 30px 60px -30px rgba(0, 0, 0, 0.98);
  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
}

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

html,
body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100%;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(1200px 620px at 82% -12%, rgba(53, 231, 214, 0.10), transparent 62%),
    radial-gradient(900px 540px at 4% 18%, rgba(138, 107, 255, 0.10), transparent 64%),
    linear-gradient(transparent 95%, rgba(20, 48, 74, 0.34) 95%),
    linear-gradient(90deg, transparent 95%, rgba(20, 48, 74, 0.34) 95%);
  background-size: auto, auto, 46px 46px, 46px 46px;
  background-attachment: fixed, fixed, scroll, scroll;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; }

a {
  color: var(--cyan);
  text-decoration: none;
}
a:hover { color: var(--white); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

#main-content { scroll-margin-top: 120px; }

/* ---------- 3. 排版基础 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.14;
  color: var(--white);
}

.display-xl { font-size: clamp(46px, 8vw, 88px); }
.display-lg { font-size: clamp(38px, 6vw, 72px); }
.display-md { font-size: clamp(30px, 4.4vw, 56px); }

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.16;
  color: var(--white);
}

.lede {
  font-family: var(--font-editorial);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.85;
  color: var(--paper);
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
}

.prose { max-width: 72ch; }
.prose p { margin-bottom: 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--white); font-weight: 700; }

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--cyan);
  color: var(--ink-900);
  font-weight: 700;
  font-size: 14px;
  transform: translateY(-200%);
  transition: transform 0.22s var(--ease);
}
.skip-link:focus { transform: translateY(0); color: var(--ink-900); }

/* ---------- 4. 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(48px, 7vw, 96px); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.path-divider {
  height: 1px;
  border: 0;
  margin-block: clamp(32px, 5vw, 64px);
  background-image: linear-gradient(90deg, var(--ink-700) 0 8px, transparent 8px 16px);
  background-size: 16px 1px;
  background-repeat: repeat-x;
}

/* ---------- 5. 头部：悬浮胶囊导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 14px var(--gutter) 0;
  pointer-events: none;
}

.header-island {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 10px 12px 10px 14px;
  background: rgba(13, 32, 51, 0.88);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: padding 0.28s var(--ease), background 0.28s var(--ease),
              border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.site-header[data-scrolled] .header-island {
  padding-top: 6px;
  padding-bottom: 6px;
  background: rgba(7, 19, 31, 0.95);
  border-color: rgba(53, 231, 214, 0.24);
  box-shadow: var(--shadow-lift);
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--white);
  min-width: 0;
}
.brand:hover { color: var(--white); }

.brand__mark {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--cyan), var(--violet));
  color: var(--ink-900);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(53, 231, 214, 0.45), 0 12px 24px -16px rgba(53, 231, 214, 0.9);
}

.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }

.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--white);
  white-space: nowrap;
}

.brand__tagline {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--paper-dim);
  white-space: nowrap;
}

/* 导航胶囊 */
.nav { margin-left: auto; min-width: 0; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__item { list-style: none; }

.nav__link {
  display: block;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  color: var(--paper-dim);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav__link:hover {
  color: var(--white);
  border-color: rgba(53, 231, 214, 0.5);
  background: rgba(53, 231, 214, 0.08);
}
.nav__link[aria-current="page"] {
  color: var(--ink-900);
  background: var(--cyan);
  border-color: var(--cyan);
  font-weight: 700;
}

/* 右侧动作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(107, 227, 155, 0.42);
  background: rgba(107, 227, 155, 0.1);
  color: var(--mint);
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.status-badge:hover {
  color: var(--mint);
  background: rgba(107, 227, 155, 0.18);
  border-color: var(--mint);
}

.status-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  animation: badgePulse 2.6s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.38; }
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ink-700);
  background: transparent;
  color: var(--paper-dim);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.icon-btn:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(53, 231, 214, 0.08);
}

.icon-btn__grid {
  width: 14px;
  height: 14px;
  background-image: radial-gradient(circle, currentColor 1.6px, transparent 1.7px);
  background-size: 7px 7px;
  background-position: 0 0;
}

/* 移动端汉堡 */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ink-700);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-toggle:hover { border-color: var(--cyan); background: rgba(53, 231, 214, 0.08); }

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.site-header[data-open] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 6. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
              box-shadow 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn--gold {
  background: var(--gold);
  color: #20150A;
  box-shadow: 0 16px 32px -20px rgba(245, 185, 66, 0.95);
}
.btn--gold:hover {
  background: #FFC95C;
  color: #20150A;
  transform: translateY(-2px);
}

.btn--cyan {
  background: var(--cyan);
  color: #04211F;
  box-shadow: 0 16px 32px -20px rgba(53, 231, 214, 0.9);
}
.btn--cyan:hover {
  background: #62F0E2;
  color: #04211F;
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--ink-700);
}
.btn--ghost:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(53, 231, 214, 0.08);
  transform: translateY(-2px);
}

.btn--sm { padding: 9px 16px; font-size: 13.5px; }

/* ---------- 7. 面板 / 网格 / 标签 ---------- */
.panel {
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(20px, 2.4vw, 32px);
}
.panel--flush { padding: 0; overflow: hidden; }

.grid {
  display: grid;
  gap: var(--gap);
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.5;
  white-space: nowrap;
  text-decoration: none;
}
.tag--coral { color: var(--coral); }
.tag--violet { color: var(--violet); }
.tag--mint { color: var(--mint); }
.tag--cyan { color: var(--cyan); }
.tag--gold { color: var(--gold); }

/* ---------- 8. 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--ink-700);
  border-radius: var(--radius-lg);
  background-color: var(--ink-800);
  background-image:
    radial-gradient(120% 90% at 12% 0%, rgba(53, 231, 214, 0.18), transparent 60%),
    radial-gradient(90% 80% at 92% 100%, rgba(138, 107, 255, 0.20), transparent 62%);
  box-shadow: var(--shadow-card);
}
.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--wide { aspect-ratio: 21 / 9; }

.media-frame__caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  font-family: var(--font-label);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--paper);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}

/* ---------- 9. 范围圈与路径装饰 ---------- */
.range-ring {
  position: absolute;
  border: 1px solid rgba(53, 231, 214, 0.28);
  border-radius: 50%;
  pointer-events: none;
}

/* ---------- 10. 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 18px;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--paper-dim);
}
.breadcrumbs a { color: var(--paper-dim); text-decoration: none; }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs__sep { color: var(--ink-700); }
.breadcrumbs__current { color: var(--cyan); }

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(72px, 10vw, 128px);
  background: var(--ink-800);
  border-top: 1px solid var(--ink-700);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan) 20%, var(--violet) 55%, var(--gold) 86%, transparent);
  opacity: 0.8;
}

.footer-shell {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(48px, 6vw, 80px) var(--gutter) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(24px, 3vw, 48px);
}

.footer-brand__mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(140deg, var(--cyan), var(--violet));
  color: var(--ink-900);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
}

.footer-brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-brand__line {
  max-width: 30ch;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--paper-dim);
}

.footer-col__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}
.footer-col__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ink-700);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-list--contact { gap: 14px; }

.footer-link {
  color: var(--paper-dim);
  font-size: 14.5px;
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer-link:hover {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-contact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 3px 10px;
}

.footer-contact__key {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--paper-dim);
  padding-top: 3px;
  white-space: nowrap;
}

.footer-contact__val {
  color: var(--paper);
  font-size: 14px;
  line-height: 1.6;
  word-break: break-word;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(40px, 5vw, 64px);
  padding: 20px 0 28px;
  border-top: 1px solid var(--ink-700);
}

.footer-legal__copy {
  font-family: var(--font-label);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--paper-dim);
}

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-label);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}
.footer-legal__links a { color: var(--paper-dim); text-decoration: none; }
.footer-legal__links a:hover { color: var(--cyan); }

/* ---------- 12. 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: var(--gutter);
  bottom: 24px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ink-700);
  background: rgba(13, 32, 51, 0.94);
  color: var(--cyan);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  box-shadow: var(--shadow-card);
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease),
              transform 0.3s var(--ease), border-color 0.2s var(--ease);
}
.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
}
.to-top:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
}

.to-top__arrow {
  display: block;
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg) translate(2px, 2px);
}

/* ---------- 13. 滚动显现协议 ---------- */
.reveal { opacity: 1; }

html.js-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
html.js-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1080px) {
  .header-island { flex-wrap: wrap; }

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

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    margin: 0;
    padding: 12px;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    background: rgba(7, 19, 31, 0.98);
    border: 1px solid var(--ink-700);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lift);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .site-header[data-open] .nav { display: flex; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    width: 100%;
  }

  .nav__link {
    padding: 13px 16px;
    border-radius: var(--radius-md);
    border-color: var(--ink-700);
    font-size: 15px;
    color: var(--paper);
  }
  .nav__link[aria-current="page"] { border-color: var(--cyan); }

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

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

@media (max-width: 720px) {
  .status-badge { display: none; }
  .brand__tagline { display: none; }
  .footer-legal { align-items: flex-start; }
}

@media (max-width: 560px) {
  .header-cta { display: none; }
  .icon-btn { display: none; }
  .header-island { gap: 10px; padding: 8px 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-contact { grid-template-columns: minmax(0, 1fr); }
  .footer-contact__key { padding-top: 0; }
  .to-top { right: 14px; bottom: 16px; }
}

/* ---------- 15. 动效降级 ---------- */
@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-ready .reveal {
    transform: none;
    transition: opacity 0.25s linear !important;
  }
}
