/* ========== MELBET 手机站 · 共享 Site Kit ========== */

:root {
  --c-deep: #0B132B;
  --c-deep-2: #0B1B3F;
  --c-green: #00FF9F;
  --c-purple: #B537F2;
  --c-cyan: #00D4FF;
  --c-text: #F0F4FF;
  --c-text-dim: #A8B2D1;
  --c-text-faint: #6A7BA7;
  --c-glass: rgba(255, 255, 255, 0.08);
  --c-glow: rgba(0, 255, 159, 0.4);
  --font-head: 'Orbitron', 'Rajdhani', 'Noto Sans SC', sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', sans-serif;
  --radius: 14px;
  --shell-w: 1200px;
  --topbar-h: 36px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
  background: linear-gradient(160deg, #0B132B 0%, #0B1B3F 55%, #0B132B 100%) fixed;
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  display: block;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.3;
  color: var(--c-text);
}

a { color: var(--c-green); text-decoration: none; }
ul { list-style: none; }
ol { padding-left: 1.4em; }
img { max-width: 100%; display: block; }

::selection {
  background: rgba(0, 255, 159, 0.28);
  color: var(--c-text);
}

:focus-visible {
  outline: 2px solid var(--c-green);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--c-deep); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 255, 159, 0.4), rgba(181, 55, 242, 0.4));
  border-radius: 8px;
  border: 2px solid var(--c-deep);
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 2000;
  padding: 10px 18px;
  background: var(--c-green);
  color: #061019;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 0 20px rgba(0, 255, 159, 0.5);
  transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 0; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1200;
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--c-green), var(--c-cyan), var(--c-purple));
  box-shadow: 0 0 12px rgba(0, 255, 159, 0.55);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.shell {
  max-width: var(--shell-w);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 24px);
}

/* ---------- 头部 ---------- */

.site-header {
  position: sticky;
  top: calc(-1 * var(--topbar-h));
  z-index: 1000;
}

.header-topbar {
  position: relative;
  height: var(--topbar-h);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(11, 27, 63, 0.92), rgba(11, 27, 63, 0.66));
  border-bottom: 1px solid rgba(0, 255, 159, 0.12);
}
.header-topbar::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 10%, rgba(0, 255, 159, 0.09) 50%, transparent 90%);
  transform: translateX(-100%);
  animation: topbar-scan 7s var(--ease) infinite;
}
@keyframes topbar-scan {
  0% { transform: translateX(-100%); }
  55% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

.header-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}
.header-topbar__label {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--c-text-dim);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-topbar__label::before {
  content: '◈ ';
  color: var(--c-green);
}
.header-topbar__meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.header-topbar__coord {
  font-family: var(--font-head);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--c-text-faint);
  white-space: nowrap;
}
.header-topbar__desc {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--c-green);
  white-space: nowrap;
}
.header-topbar__desc::before {
  content: '// ';
  color: var(--c-purple);
}

.header-main {
  position: relative;
  background: rgba(11, 19, 43, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid rgba(0, 255, 159, 0.15);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.header-main::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 159, 0.5), rgba(0, 212, 255, 0.4), rgba(181, 55, 242, 0.4), transparent);
  pointer-events: none;
}
.header-main-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: var(--c-text);
}
.brand-mark {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--c-text);
  text-shadow: 0 0 14px rgba(0, 255, 159, 0.35);
  transition: text-shadow 0.3s var(--ease);
}
.brand:hover .brand-mark { text-shadow: 0 0 22px rgba(0, 255, 159, 0.6); }
.brand-mark-glow {
  color: var(--c-green);
  text-shadow: 0 0 12px rgba(0, 255, 159, 0.75);
}
.brand-sub {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  border-left: 1px solid rgba(0, 212, 255, 0.35);
  padding-left: 12px;
  line-height: 1.4;
  white-space: nowrap;
}
.brand-mark--footer { font-size: 1.7rem; }

.site-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-item { list-style: none; }
.nav-link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  border: 1px solid transparent;
  background: transparent;
  white-space: nowrap;
  transition: color 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav-link:hover {
  color: var(--c-text);
  background: rgba(0, 255, 159, 0.1);
  border-color: rgba(0, 255, 159, 0.28);
}
.nav-link[aria-current="page"] {
  color: #061019;
  background: var(--c-green);
  border-color: var(--c-green);
  box-shadow: 0 0 18px rgba(0, 255, 159, 0.45);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 159, 0.3);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.3s var(--ease);
}
.nav-toggle:hover { border-color: var(--c-green); }
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-green);
  box-shadow: 0 0 8px rgba(0, 255, 159, 0.5);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 页脚 ---------- */

.site-footer {
  position: relative;
  margin-top: clamp(48px, 10vw, 96px);
  background: linear-gradient(180deg, #0B132B 0%, #0B1B3F 100%);
  border-top: 1px solid rgba(0, 255, 159, 0.16);
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 85% -10%, rgba(181, 55, 242, 0.2), transparent 55%),
    radial-gradient(ellipse at 15% 120%, rgba(0, 212, 255, 0.14), transparent 50%);
  pointer-events: none;
}
.site-footer::after {
  content: 'MOBILE // INDEX';
  position: absolute;
  right: -30px;
  bottom: 20px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(60px, 13vw, 180px);
  line-height: 1;
  letter-spacing: 0.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 255, 159, 0.1);
  transform: rotate(-8deg);
  white-space: nowrap;
  pointer-events: none;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 48px;
  padding-top: 60px;
  padding-bottom: 56px;
}
.footer-brand, .footer-links, .footer-contact { min-width: 0; }

.footer-slogan {
  margin-top: 8px;
  color: var(--c-green);
  font-size: 13px;
  letter-spacing: 0.28em;
}
.footer-note {
  margin-top: 14px;
  max-width: 36em;
  color: var(--c-text-dim);
  font-size: 14px;
}
.footer-title {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin-bottom: 16px;
  padding-bottom: 10px;
  position: relative;
}
.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--c-green), var(--c-purple));
  box-shadow: 0 0 8px rgba(0, 255, 159, 0.4);
}
.footer-link-list li + li,
.footer-contact-list li + li { margin-top: 10px; }
.footer-link-list a {
  color: var(--c-text-dim);
  font-size: 14px;
  transition: color 0.3s, padding-left 0.3s, text-shadow 0.3s;
}
.footer-link-list a:hover {
  color: var(--c-green);
  padding-left: 4px;
  text-shadow: 0 0 8px rgba(0, 255, 159, 0.4);
}
.footer-contact-list {
  color: var(--c-text-dim);
  font-size: 14px;
}
.footer-contact-list li { position: relative; padding-left: 18px; }
.footer-contact-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 8px;
  color: var(--c-purple);
}
.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 18px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--c-text-faint);
  font-size: 12px;
  letter-spacing: 0.06em;
}

/* ---------- 按钮 ---------- */

.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn-primary {
  background: var(--c-green);
  color: #061019;
  border: 1px solid var(--c-green);
  box-shadow: 0 0 22px rgba(0, 255, 159, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 34px rgba(0, 255, 159, 0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--c-text);
  border: 1px solid rgba(0, 212, 255, 0.45);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  color: var(--c-cyan);
  border-color: var(--c-cyan);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.2);
}

.btn-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  background: transparent;
  color: var(--c-text-dim);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.btn-filter:hover { color: var(--c-text); border-color: rgba(0, 212, 255, 0.6); }
.btn-filter.is-active,
.btn-filter[aria-pressed="true"] {
  background: rgba(0, 255, 159, 0.12);
  border-color: var(--c-green);
  color: var(--c-green);
  box-shadow: 0 0 14px rgba(0, 255, 159, 0.2);
}

/* ---------- 布局与基础组件 ---------- */

.grid-basic { display: grid; gap: 24px; }
.grid-basic--2 { grid-template-columns: repeat(2, 1fr); }
.grid-basic--3 { grid-template-columns: repeat(3, 1fr); }
.grid-basic--4 { grid-template-columns: repeat(4, 1fr); }

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

.terminal {
  position: relative;
  padding: clamp(28px, 6vw, 64px);
  border: 1px solid rgba(0, 255, 159, 0.2);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}
.terminal::before, .terminal::after {
  content: '';
  position: absolute;
  width: 34px;
  height: 34px;
  pointer-events: none;
}
.terminal::before {
  top: -1px;
  left: -1px;
  border-top: 3px solid var(--c-green);
  border-left: 3px solid var(--c-green);
  border-radius: 18px 0 0 0;
  filter: drop-shadow(0 0 6px rgba(0, 255, 159, 0.6));
}
.terminal::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 3px solid var(--c-purple);
  border-right: 3px solid var(--c-purple);
  border-radius: 0 0 18px 0;
  filter: drop-shadow(0 0 6px rgba(181, 55, 242, 0.6));
}

.ticket-card {
  position: relative;
  padding: 28px;
  background: var(--c-glass);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.ticket-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 159, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 24px rgba(0, 255, 159, 0.07);
}

.media-frame {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.16);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(181, 55, 242, 0.08));
}
.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame > img, .media-frame__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-frame__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-text-faint);
  background-image:
    linear-gradient(45deg, rgba(0, 212, 255, 0.08) 25%, transparent 25%, transparent 75%, rgba(0, 212, 255, 0.08) 75%),
    linear-gradient(45deg, rgba(0, 212, 255, 0.08) 25%, transparent 25%, transparent 75%, rgba(0, 212, 255, 0.08) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 10px 10px;
}
.media-frame::after {
  content: attr(data-caption);
  display: none;
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 4px 10px;
  background: rgba(11, 19, 43, 0.82);
  color: var(--c-cyan);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-top-left-radius: 10px;
}
.media-frame[data-caption]::after { display: block; }

/* ---------- 文字与标引 ---------- */

.page-head { margin-bottom: 28px; }
.page-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--c-text);
  text-shadow: 0 0 10px rgba(0, 255, 159, 0.35);
}
.page-lead {
  margin-top: 14px;
  max-width: 60ch;
  color: var(--c-text-dim);
  font-size: 16px;
}

.legend-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-cyan);
}
.legend-label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--c-green), transparent);
  box-shadow: 0 0 6px rgba(0, 255, 159, 0.5);
}
.coord-index {
  font-family: var(--font-head);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--c-text-faint);
}

.divider-glow {
  border: none;
  height: 1px;
  margin: 56px 0;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 159, 0.45), rgba(0, 212, 255, 0.3), rgba(181, 55, 242, 0.4), transparent);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--c-text-faint);
}
.breadcrumb a, .breadcrumb__link {
  color: var(--c-text-dim);
  transition: color 0.3s;
}
.breadcrumb a:hover, .breadcrumb__link:hover { color: var(--c-green); }
.breadcrumb__sep { color: var(--c-text-faint); margin: 0 2px; }
.breadcrumb__current { color: var(--c-green); }

.prose { max-width: 72ch; color: var(--c-text-dim); }
.prose h1, .prose h2, .prose h3, .prose h4 {
  font-family: var(--font-head);
  color: var(--c-text);
  letter-spacing: 0.05em;
  margin: 1.6em 0 0.5em;
}
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.15rem; }
.prose p { margin-bottom: 1em; }
.prose ul { margin-bottom: 1em; }
.prose ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
}
.prose ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--c-green);
}

/* ---------- 交互状态 ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

[hidden] { display: none !important; }

#main-content { scroll-margin-top: 90px; }
#main-content:focus { outline: none; }

/* ---------- 响应式 ---------- */

@media (max-width: 1000px) {
  .header-main-inner { min-height: 60px; gap: 12px; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    z-index: 10;
    max-height: 0;
    visibility: hidden;
    overflow: hidden;
    background: rgba(11, 19, 43, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 255, 159, 0.18);
    transition: max-height 0.45s var(--ease), visibility 0.45s;
  }
  .site-nav[data-open="true"] {
    max-height: 520px;
    visibility: visible;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px 20px 22px;
  }
  .nav-link {
    display: block;
    padding: 13px 18px;
    font-size: 15px;
    white-space: normal;
    border-radius: 10px;
  }
}

@media (max-width: 900px) {
  .grid-basic--3, .grid-basic--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding-top: 44px;
    padding-bottom: 40px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --topbar-h: 26px; }
  .header-topbar-inner { justify-content: center; }
  .header-topbar__coord, .header-topbar__desc { display: none; }
  .brand-mark { font-size: 1.2rem; }
  .brand-sub { display: none; }
  .header-main-inner { min-height: 56px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
