/* ===== Design Tokens ===== */
:root {
  --radius: 9999px;
  --font-heading: 'Noto Sans', 'Noto Sans SC', sans-serif;
  --font-body: 'Noto Sans', 'Noto Sans SC', sans-serif;
  --font-cn: 'Noto Sans SC', sans-serif;
  --glass-border-pad: 1.4px;
  --glass-border-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
}
.container {
  max-width: 768px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  background: #000;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
/* ===== Reduced Motion ===== */
@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;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
/* ===== Focus ===== */
*:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
  border-radius: 4px;
}
/* ===== Glass ===== */
.glass::before,
.glass-strong::before,
.btn-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: var(--glass-border-pad, 1.4px);
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.15) 20%,
      rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 60%,
      rgba(255, 255, 255, 0.15) 80%, rgba(255, 255, 255, 0.45) 100%);
  -webkit-mask: var(--glass-border-mask);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}
.glass-strong::before,
.btn-glass::before {
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 20%,
      rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 60%,
      rgba(255, 255, 255, 0.2) 80%, rgba(255, 255, 255, 0.5) 100%);
}
.glass {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.glass > * { position: relative; z-index: 2; }
.glass-strong {
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}
/* ===== Badge-star (inline star label) ===== */
.badge-star {
  background: #fff;
  color: #000;
  border-radius: var(--radius);
  padding: 0.1rem 0.6rem;
  font-size: 0.6rem;
  font-weight: 600;
  margin-left: 0.5rem;
  display: inline-block;
}
/* ===== Buttons ===== */
.btn-primary,
.btn-glass {
  min-height: 48px;
  min-width: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.btn-primary {
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  background: #fff;
  color: #000;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: scale(1.02); box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15); }
.btn-primary:active { transform: scale(0.96); }
.btn-glass {
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}
.btn-glass > * { position: relative; z-index: 2; }
.btn-glass:hover { transform: scale(1.02); box-shadow: 0 8px 30px rgba(255, 255, 255, 0.08); }
.btn-glass:active { transform: scale(0.96); }
/* ===== Typography ===== */
.heading {
  font-family: var(--font-heading);
  color: #fff;
  letter-spacing: -0.02em;
  font-weight: 100;
}
.heading-cn {
  font-family: var(--font-cn);
  font-weight: 100;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.body-text {
  font-family: var(--font-body);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.875rem;
  line-height: 1.7;
}
.nowrap { white-space: nowrap; }
/* ===== Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
/* ===== Hamburger ===== */
.hamburger-btn {
  position: fixed; top: 1.5rem; right: 1.5rem; z-index: 1001;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1); cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #fff;
  transition: background 0.3s, transform 0.2s;
}
.hamburger-btn:hover { background: rgba(0,0,0,0.85); transform: scale(1.05); }
.hamburger-btn:active { transform: scale(0.95); }
/* ===== Fullscreen Menu ===== */
.fullscreen-menu {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.96); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem;
  visibility: hidden; opacity: 0; transition: opacity 0.35s ease, visibility 0.35s ease;
}
.fullscreen-menu.active { visibility: visible; opacity: 1; }
.fullscreen-menu .menu-close-btn {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 48px; height: 48px; border-radius: 50%;
  background: none; border: none; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.fullscreen-menu .menu-close-btn:hover { background: rgba(255,255,255,0.08); }
.fullscreen-menu .menu-links {
  display: flex; flex-direction: column; align-items: center; gap: 2.5rem;
}
.fullscreen-menu .menu-links a {
  font-family: var(--font-cn); font-size: clamp(1.5rem, 5vw, 2.4rem);
  color: #fff; font-weight: 100; letter-spacing: 0.12em; text-decoration: none;
  transition: opacity 0.3s;
}
.fullscreen-menu .menu-links a:hover { opacity: 0.6; }
/* ===== Modal ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: 9999; display: none; align-items: center; justify-content: center; padding: 1.5rem;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: #1a1a1a; border-radius: 1.5rem; padding: 2rem;
  max-width: 400px; width: 100%; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8); position: relative;
  border: 1px solid rgba(255,255,255,0.05);
}
.modal-box img { width: 100%; height: auto; border-radius: 0.75rem; margin-bottom: 1rem; }
.modal-box .close-btn {
  position: absolute; top: 0.75rem; right: 1rem;
  background: none; border: none; color: rgba(255,255,255,0.7);
  font-size: 1.8rem; cursor: pointer; padding: 0.25rem 0.5rem; line-height: 1;
}
.modal-box .close-btn:hover { color: #fff; }
.modal-box p { font-family: var(--font-body); font-weight: 400; color: rgba(255,255,255,0.82); font-size: 0.9rem; }
/* ===== WeChat FAB ===== */
.wechat-fab {
  position: fixed; bottom: 2rem; right: 1.5rem; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: #000; border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4); cursor: pointer;
  transition: transform 0.2s;
}
.wechat-fab:hover { transform: scale(1.05); }
.wechat-fab:active { transform: scale(0.96); }
/* ===== Footer ===== */
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; font-size: 0.75rem; color: rgba(255, 255, 255, 0.7);
}
.footer-bottom .meta { font-size: 0.75rem; color: rgba(255,255,255,0.7); }
.footer-bottom .meta a { color: rgba(255,255,255,0.7); }
.footer-bottom .meta a:hover { color: rgba(255,255,255,0.9); }
