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

body {
  background: url('../img/bg.jpg') center/cover fixed;
  color: #1a3a52;
  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; }
img { display: block; max-width: 100%; }

/* ─── Topbar ─────────────────────────────── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 52px;
  background: rgba(10, 28, 50, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(78, 180, 220, 0.18);
  z-index: 900;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
}

.brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #7ECCE8;
  white-space: nowrap;
  flex-shrink: 0;
  text-shadow: 0 0 12px rgba(126,204,232,0.5);
}

.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(126,204,232,0.22);
  border-radius: 20px;
  height: 32px;
  overflow: hidden;
  min-width: 0;
  transition: border-color 0.2s;
}
.search-box:focus-within { border-color: rgba(126,204,232,0.5); }
.search-box input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  padding: 0 10px;
}
.search-box input::placeholder { color: rgba(255,255,255,0.35); }
.search-box button {
  background: none;
  border: none;
  color: #7ECCE8;
  cursor: pointer;
  padding: 0 9px;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.btn-back {
  background: rgba(255,255,255,0.08);
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.9);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.btn-back:hover { background: rgba(255,255,255,0.16); }

.nav-title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Category Pill Bar ─────────────────────────────── */
.catbar {
  position: sticky;
  top: 52px;
  z-index: 800;
  background: rgba(235, 245, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42,143,191,0.14);
}
.catbar-scroll {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.catbar-scroll::-webkit-scrollbar { display: none; }
.cat-pill {
  flex-shrink: 0;
  background: rgba(255,255,255,0.7);
  border: 1.5px solid rgba(42,143,191,0.18);
  color: #2A6F9A;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s;
  user-select: none;
}
.cat-pill.active {
  background: linear-gradient(135deg, #2178A8 0%, #47B4D6 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 2px 10px rgba(42,143,191,0.35);
}

/* ─── Section card wrapper ─────────────────────────────── */
.sec-card {
  margin: 10px 12px 0;
  background: rgba(255,255,255,0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.65);
  box-shadow: 0 3px 18px rgba(30,80,140,0.08);
  overflow: hidden;
}

/* ─── Section header ─────────────────────────────── */
.shd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 9px;
}
.shd-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a3a52;
  display: flex;
  align-items: center;
  gap: 5px;
}
.shd-title::before {
  content: '';
  display: block;
  width: 3px;
  height: 14px;
  background: linear-gradient(to bottom, #2178A8, #47B4D6);
  border-radius: 2px;
  flex-shrink: 0;
}
.shd-more {
  font-size: 11px;
  color: #2178A8;
  background: rgba(42,143,191,0.08);
  border: 1px solid rgba(42,143,191,0.2);
  border-radius: 12px;
  padding: 3px 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.shd-more:hover { background: rgba(42,143,191,0.16); }

/* ─── Loading Spinner ─────────────────────────────── */
.loading {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  display: flex;
  gap: 10px;
  align-items: center;
}
.sk-child {
  width: 11px; height: 11px;
  background: #2178A8;
  border-radius: 50%;
  animation: sk-bounce 1.4s infinite ease-in-out;
}
.sk-bounce2 { animation-delay: -0.7s; }
@keyframes sk-bounce {
  0%, 100% { transform: scale(0.3); opacity: 0.4; }
  50% { transform: scale(1); opacity: 1; }
}

/* ─── Back to Top ─────────────────────────────── */
.back-top {
  position: fixed;
  bottom: 70px; right: 13px;
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #2178A8, #47B4D6);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(33,120,168,0.4);
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.back-top:hover { transform: translateY(-2px); }

/* ─── Back Home / iback ─────────────────────────────── */
.iback {
  position: fixed;
  bottom: 20px; left: 13px;
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #2178A8, #47B4D6);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(33,120,168,0.4);
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.iback:hover { transform: scale(1.1); }

/* ─── goup ─────────────────────────────── */
.goup {
  position: fixed;
  bottom: 70px; right: 13px;
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #2178A8, #47B4D6);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(33,120,168,0.4);
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.goup:hover { transform: translateY(-2px); }

/* ─── Footer ─────────────────────────────── */
.footer {
  background: rgba(10, 28, 50, 0.80);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 18px 16px;
  text-align: center;
  margin-top: 14px;
}
.footer-links {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
}
.footer-links a {
  color: rgba(255,255,255,0.42);
  font-size: 12px;
  transition: color 0.2s;
}
.footer-links a:hover { color: #7ECCE8; }
.footer-links span { color: rgba(255,255,255,0.2); font-size: 12px; }
