/* ─── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[v-cloak] { display: none; }
html { scroll-behavior: smooth; }

body {
  background: #f5f5fa;
  color: #1a1a2e;
  font-family: 'Roboto', 'Source Han Sans CN', -apple-system, sans-serif;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: rgba(255,61,138,0.35); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* ─── Navbar ─────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: linear-gradient(90deg, #cc0060 0%, #ff3d8a 100%);
  z-index: 900;
  box-shadow: 0 2px 16px rgba(255,61,138,0.45);
  display: flex;
  align-items: center;
}

.navbar-inner {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0 12px;
  gap: 10px;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.navbar-center {
  flex: 1;
  min-width: 0;
}

/* Hamburger */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 8px;
  flex-shrink: 0;
  transition: background 0.2s;
}
.hamburger:hover { background: rgba(255,255,255,0.15); }
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Brand */
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 32px; object-fit: contain; }
.logo-image { height: 32px; object-fit: contain; }

/* Navbar fancy brand name */
.navbar-brand-name {
  font-family: 'Barlow', 'Roboto', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;

  background: linear-gradient(
    110deg,
    #fff0f5 0%,
    #ffcce0 18%,
    #ffffff 36%,
    #ffb3d5 54%,
    #ffffff 72%,
    #ffcce0 88%,
    #fff0f5 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: brand-shimmer 2.8s linear infinite;

  filter: drop-shadow(0 0 6px rgba(255,180,215,0.6));
}

@keyframes brand-shimmer {
  0%   { background-position: 220% center; }
  100% { background-position: -220% center; }
}

/* Searchbar */
.searchbar {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  overflow: hidden;
  height: 36px;
  max-width: 480px;
  transition: background 0.2s;
}
.searchbar:focus-within { background: rgba(255,255,255,0.26); }
.searchbar-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: white;
  font-size: 14px;
  padding: 0 14px;
  min-width: 0;
}
.searchbar-input::placeholder { color: rgba(255,255,255,0.6); }
.searchbar-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0 12px;
  height: 100%;
  display: flex;
  align-items: center;
  opacity: 0.85;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.searchbar-btn:hover { opacity: 1; }

/* Nav page title (info page) */
.nav-page-title {
  font-size: 15px;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

/* ─── Sidebar ─────────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 950;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }

.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 240px;
  background: #13131f;
  border-right: 1px solid rgba(255,255,255,0.07);
  z-index: 960;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sidebar.open { transform: translateX(0); }

.sidebar-top {
  padding: 20px 16px 18px;
  background: linear-gradient(135deg, #14061a 0%, #2a0a20 100%);
  border-bottom: 1px solid rgba(255,61,138,0.22);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  min-height: 72px;
}
.sidebar-logo { height: 34px; object-fit: contain; }

/* ─── Sidebar fancy site name ─────────────── */
.sidebar-site-name {
  font-family: 'Barlow', 'Roboto', sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;

  background: linear-gradient(
    110deg,
    #ffb3d5 0%,
    #ff3d8a 20%,
    #ffcce0 40%,
    #ff3d8a 60%,
    #e0006a 80%,
    #ffb3d5 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;

  filter: drop-shadow(0 0 8px rgba(255,61,138,0.55));

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

@keyframes shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.sidebar-group-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.35);
  padding: 10px 20px 6px;
  margin-top: 4px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  cursor: pointer;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  border-left: 3px solid transparent;
  transition: all 0.18s;
  user-select: none;
}
.sidebar-item:hover {
  background: rgba(255,255,255,0.05);
  color: white;
}
.sidebar-item.active {
  background: rgba(255,61,138,0.12);
  border-left-color: #ff3d8a;
  color: #ff85b8;
}
.sidebar-item.home-item:hover {
  background: rgba(255,61,138,0.1);
  color: white;
}

/* ─── Loading Spinner ─────────────────────────────── */
.loading {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  display: flex;
  gap: 14px;
}
.sk-child {
  width: 14px;
  height: 14px;
  background: #ff3d8a;
  border-radius: 50%;
  animation: sk-bounce 1.8s infinite ease-in-out;
}
.sk-bounce2 { animation-delay: -0.9s; }
@keyframes sk-bounce {
  0%, 100% { transform: scale(0); opacity: 0.3; }
  50% { transform: scale(1); opacity: 1; }
}

/* ─── Floating Buttons ─────────────────────────────── */
.back-top, .goup {
  position: fixed;
  bottom: 80px; right: 16px;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, #cc0060, #ff3d8a);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255,61,138,0.45);
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.back-top:hover, .goup:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255,61,138,0.55);
}

.back-home, .iback {
  position: fixed;
  bottom: 24px; left: 16px;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, #cc0060, #ff3d8a);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 19px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255,61,138,0.45);
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.back-home:hover, .iback:hover { transform: scale(1.1); }

/* ─── Footer ─────────────────────────────── */
.footer {
  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,0.07);
  padding: 28px 20px 24px;
  text-align: center;
}
.footer-inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-logo { height: 32px; object-fit: contain; opacity: 0.5; }
.footer-links {
  display: flex;
  gap: 20px;
  align-items: center;
}
.footer-links a {
  color: rgba(0,0,0,0.38);
  font-size: 13px;
  transition: color 0.2s;
}
.footer-links a:hover { color: #ff3d8a; }
.footer-links span { color: rgba(0,0,0,0.18); }
.footer-cp { color: rgba(0,0,0,0.25); font-size: 12px; }

/* Legacy footer compat for privacy/terms pages */
.footer > .img { display: none; }
.footer > .word { display: flex; gap: 12px; align-items: center; }
.footer > .word a { color: rgba(255,255,255,0.5); font-size: 13px; }
.footer > .word a:hover { color: #ff3d8a; }
.footer > .word .split { color: rgba(255,255,255,0.25); }
.footer > .word .info { color: inherit; }

/* ─── Privacy / Terms pages ─────────────────────────────── */
.privacy_container {
  max-width: 860px;
  margin: 80px auto 40px;
  background: #13131f;
  border-radius: 12px;
  overflow: hidden;
}
.word_content {
  padding: 32px 24px;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  font-size: 14px;
}
.center_text { text-align: center; }
@media (min-width: 640px) {
  .word_content { padding: 36px 64px; }
}

/* ─── Advertising ─────────────────────────────── */
.advertising {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 1%;
  overflow-x: auto;
  overflow-y: hidden;
}
