﻿:root {
  --primary: #4361ee;
  --primary-dark: #3a56d4;
  --primary-light: rgba(67, 97, 238, 0.08);
  --primary-gradient: linear-gradient(135deg, #4361ee, #7209b7);
  --secondary: #7209b7;
  --accent: #f72585;
  --accent2: #4cc9f0;
  --accent3: #f9c74f;
  --accent4: #06d6a0;
  --accent5: #fb5607;
  --bg: #f0f2f8;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f4ff;
  --border-color: #e2e5ef;
  --border-light: #eceff5;
  --text-primary: #1a1a2e;
  --text-secondary: #6c7a92;
  --text-muted: #9aa8b9;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 4px 20px rgba(67, 97, 238, 0.2);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --rainbow: linear-gradient(
    90deg,
    #f72585,
    #fb5607,
    #f9c74f,
    #06d6a0,
    #4cc9f0,
    #4361ee,
    #7209b7
  );
}

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

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.navbar-brand img,
.navbar-brand .default-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: contain;
}

.navbar-brand .default-logo {
  background: var(--rainbow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
}

.navbar-brand span {
  color: #000;
  font-weight: 700;
  font-size: 17px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.25s;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-links a img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: contain;
}

/* Hero Section */
.hero {
  padding: 100px 0 40px;
  text-align: center;
  position: relative;
  background: linear-gradient(
    135deg,
    #f8f9ff 0%,
    #f0f2ff 30%,
    #fef0f5 60%,
    #f5f0ff 100%
  );
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(67, 97, 238, 0.04) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  bottom: -300px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(247, 37, 133, 0.04) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* Carousel */
.carousel-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto 28px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  min-height: 280px;
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a73e8, #6c5ce7);
  background-size: cover;
  background-position: center;
  padding: 60px 40px;
  position: relative;
  min-height: 280px;
}

.carousel-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.carousel-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  max-width: 600px;
}

.carousel-title {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.carousel-subtitle {
  font-size: clamp(14px, 1.6vw, 18px);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
  line-height: 1.5;
}

.carousel-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s;
}

.carousel-dot.active {
  width: 24px;
  border-radius: 4px;
  background: #fff;
}

/* Carousel Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  opacity: 0;
}

.carousel-container:hover .carousel-arrow {
  opacity: 1;
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.25);
}

.carousel-arrow-left {
  left: 12px;
}
.carousel-arrow-right {
  right: 12px;
}

/* Search */
.search-box {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
}

.search-box input:focus {
  border-color: transparent;
  box-shadow:
    0 0 0 3px rgba(67, 97, 238, 0.08),
    0 0 0 6px rgba(247, 37, 133, 0.04);
  background: linear-gradient(135deg, #fff, #f8f9ff);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 18px;
  pointer-events: none;
}

.category-sidebar {
  padding: 0 24px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}

.category-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s;
  font-size: 14px;
  font-weight: 500;
  user-select: none;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.category-tab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50px;
  opacity: 0;
  transition: opacity 0.25s;
}

.category-tab:hover {
  border-color: transparent;
  color: #fff;
  background: var(--primary-gradient);
  box-shadow: 0 4px 15px rgba(67, 97, 238, 0.2);
  transform: translateY(-1px);
}

.category-tab.active {
  background: var(--rainbow);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 20px rgba(247, 37, 133, 0.25);
}

.category-tab i {
  font-size: 14px;
  color: var(--text-secondary);
}

.category-tab:hover i,
.category-tab.active i {
  color: #fff;
}

.category-tab img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: contain;
}

/* Items Grid */
.content-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  padding: 0 24px 100px;
}

.item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.item-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--rainbow);
  opacity: 0;
  transition: opacity 0.3s;
}

.item-card:hover::before {
  opacity: 1;
}

.item-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 8px 30px rgba(67, 97, 238, 0.12),
    0 8px 30px rgba(247, 37, 133, 0.06);
  border-color: rgba(67, 97, 238, 0.12);
}

.item-card .icon-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--primary-light),
    rgba(247, 37, 133, 0.06)
  );
  transition: all 0.3s;
  overflow: hidden;
}

.item-card:nth-child(3n + 1) .icon-wrap {
  background: linear-gradient(
    135deg,
    rgba(67, 97, 238, 0.1),
    rgba(114, 9, 183, 0.06)
  );
}
.item-card:nth-child(3n + 2) .icon-wrap {
  background: linear-gradient(
    135deg,
    rgba(247, 37, 133, 0.1),
    rgba(251, 86, 7, 0.06)
  );
}
.item-card:nth-child(3n + 3) .icon-wrap {
  background: linear-gradient(
    135deg,
    rgba(6, 214, 160, 0.1),
    rgba(76, 201, 240, 0.06)
  );
}

.item-card:nth-child(3n + 1):hover {
  border-color: rgba(67, 97, 238, 0.15);
}
.item-card:nth-child(3n + 2):hover {
  border-color: rgba(247, 37, 133, 0.15);
}
.item-card:nth-child(3n + 3):hover {
  border-color: rgba(6, 214, 160, 0.15);
}

.item-card:hover .icon-wrap {
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 8px 25px rgba(67, 97, 238, 0.12);
}

.item-card:nth-child(3n + 1):hover .icon-wrap {
  box-shadow: 0 8px 25px rgba(67, 97, 238, 0.15);
}
.item-card:nth-child(3n + 2):hover .icon-wrap {
  box-shadow: 0 8px 25px rgba(247, 37, 133, 0.12);
}
.item-card:nth-child(3n + 3):hover .icon-wrap {
  box-shadow: 0 8px 25px rgba(6, 214, 160, 0.12);
}

.item-card .icon-wrap .default-icon {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.05));
}

.item-card .icon-wrap img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.item-card:nth-child(3n + 1) .icon-wrap .default-icon {
  color: #4361ee;
}
.item-card:nth-child(3n + 2) .icon-wrap .default-icon {
  color: #f72585;
}
.item-card:nth-child(3n + 3) .icon-wrap .default-icon {
  color: #06d6a0;
}

.item-card:nth-child(6n + 4) .icon-wrap .default-icon {
  color: #f9c74f;
}
.item-card:nth-child(6n + 5) .icon-wrap .default-icon {
  color: #7209b7;
}
.item-card:nth-child(6n + 6) .icon-wrap .default-icon {
  color: #fb5607;
}

.item-card .icon-wrap .default-icon {
  font-size: 24px;
  transition: all 0.3s;
}

.item-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.item-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-card .item-category {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.item-card:nth-child(4n + 1) .item-category {
  background: rgba(67, 97, 238, 0.1);
  color: #4361ee;
}
.item-card:nth-child(4n + 2) .item-category {
  background: rgba(247, 37, 133, 0.1);
  color: #f72585;
}
.item-card:nth-child(4n + 3) .item-category {
  background: rgba(6, 214, 160, 0.1);
  color: #06d6a0;
}
.item-card:nth-child(4n + 4) .item-category {
  background: rgba(249, 199, 79, 0.15);
  color: #d4a017;
}

/* Detail overlay */
.item-detail-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.item-detail-overlay.active {
  display: flex;
}

.item-detail-card {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 40px 36px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  animation: modalIn 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

@keyframes modalIn {
  from {
    transform: scale(0.92) translateY(16px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.item-detail-card .icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(67, 97, 238, 0.1),
    rgba(247, 37, 133, 0.06)
  );
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(67, 97, 238, 0.08);
}

.item-detail-card .icon-wrap img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.item-detail-card .icon-wrap .default-icon {
  font-size: 32px;
  color: var(--primary);
}
.item-detail-card h2 {
  font-size: 22px;
  margin-bottom: 8px;
}
.item-detail-card p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

.item-detail-card .btn-visit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: var(--rainbow);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(247, 37, 133, 0.2);
  background-size: 200% auto;
}

.item-detail-card .btn-visit:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(67, 97, 238, 0.25);
  background-position: right center;
}

.item-detail-card .btn-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s;
  line-height: 1;
}

.item-detail-card .btn-close:hover {
  background: var(--bg);
  color: var(--text-primary);
}

/* Desktop Footer */
.footer {
  display: none;
}

/* Bottom Tab Bar - Desktop: macOS pill style */
.bottom-tab-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: auto;
  padding: 6px 10px;
  gap: 2px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  z-index: 1000;
}

body {
  padding-bottom: 80px;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 70px;
  }

  .navbar {
    padding: 0 16px;
    height: 56px;
  }
  .nav-links {
    display: none;
  }

  .hero {
    padding: 80px 0 36px;
  }

  .carousel-container {
    border-radius: 16px;
    margin: 0 12px 16px;
    box-shadow: var(--shadow);
    max-width: none;
  }
  .carousel-slide {
    min-height: 180px;
    padding: 36px 28px 32px;
    border-radius: 16px;
  }
  .carousel-slide::before {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.02) 0%,
      rgba(0, 0, 0, 0.3) 100%
    );
    border-radius: 16px;
  }
  .carousel-arrow {
    display: none;
  }
  .carousel-track {
    min-height: 180px;
  }

  .carousel-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
  }

  .carousel-subtitle {
    font-size: 13px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.88);
  }

  .carousel-btn {
    padding: 7px 20px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
  }

  .carousel-dots {
    bottom: 10px;
    gap: 5px;
  }

  .carousel-dot {
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .carousel-dot.active {
    width: 16px;
    height: 5px;
    background: #fff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
  }

  .content-wrap {
    display: flex;
    gap: 0;
    padding: 0 8px;
  }

  .category-sidebar {
    width: 72px;
    flex-shrink: 0;
    padding: 4px 0 0 0;
  }

  .category-tabs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 0;
    padding: 0;
  }

  .category-tab {
    flex-direction: column;
    gap: 3px;
    padding: 8px 4px;
    border-radius: 10px;
    font-size: 10px;
    text-align: center;
  }

  .category-tab i {
    font-size: 18px;
  }
  .category-tab img {
    width: 18px;
    height: 18px;
    border-radius: 4px;
  }
  .category-tab:hover {
    background: var(--bg-card);
    border-color: transparent;
    transform: none;
    box-shadow: none;
  }
  .category-tab.active {
    border-color: transparent;
    box-shadow: none;
  }

  .items-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 4px 0 80px 8px;
    flex: 1;
    min-width: 0;
    margin: 0;
    max-width: none;
    align-content: start;
  }
  .item-card {
    padding: 8px 6px;
    min-height: 0;
  }
  .item-card .icon-wrap {
    width: 32px;
    height: 32px;
    margin: 0 auto 4px;
    border-radius: 8px;
  }
  .item-card .icon-wrap img {
    width: 18px;
    height: 18px;
  }
  .item-card .icon-wrap .default-icon {
    font-size: 14px;
  }
  .item-card h3 {
    font-size: 11px;
    margin-bottom: 1px;
    font-weight: 500;
  }
  .item-card p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    font-size: 9px;
    line-height: 1.2;
    margin: 0;
    overflow: hidden;
    color: var(--text-muted);
  }

  /* Mobile: full-width grid tab bar */
  .bottom-tab-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 64px 1fr 1fr;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 62px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    padding: 0;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.06);
    align-items: stretch;
    border-radius: 0;
    transform: none;
    gap: 0;
  }

  .bottom-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 10px;
    gap: 2px;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    padding: 2px 0;
    border-radius: 0;
  }

  .bottom-tab-item i {
    font-size: 20px;
    transition: all 0.2s;
  }

  .bottom-tab-item span {
    display: block;
    font-weight: 500;
    letter-spacing: 0;
    font-size: 10px;
  }

  .bottom-tab-item:nth-child(1) i {
    color: #4361ee;
  }
  .bottom-tab-item:nth-child(2) i {
    color: #f72585;
  }
  .bottom-tab-item:nth-child(4) i {
    color: #06d6a0;
  }
  .bottom-tab-item:nth-child(5) i {
    color: #7209b7;
  }

  .bottom-tab-item:active {
    transform: scale(0.92);
  }

  .bottom-tab-item.active i {
    transform: scale(1.08);
  }

  /* Center home button - raised */
  .bottom-tab-home-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-top: -8px;
    justify-self: center;
    align-self: start;
    gap: 2px;
    padding-top: 4px;
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-tab-home-icon,
  .bottom-tab-home-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(67, 97, 238, 0.25);
    transition: all 0.3s;
  }

  .bottom-tab-home-icon {
    background: var(--rainbow);
    background-size: 200% auto;
  }

  .bottom-tab-home-icon i {
    font-size: 20px;
    color: #fff;
  }

  .bottom-tab-home-img img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
  }

  .bottom-tab-home-label {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0;
  }

  .bottom-tab-home-wrap:active .bottom-tab-home-icon,
  .bottom-tab-home-wrap:active .bottom-tab-home-img {
    transform: scale(0.92);
  }

  .bottom-tab-home-wrap:active .bottom-tab-home-icon {
    box-shadow: 0 2px 10px rgba(247, 37, 133, 0.2);
  }
}

/* Announcement Bar */
.announcement-bar {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1000px;
  margin: 32px auto 24px;
  padding: 18px 28px;
  background: linear-gradient(
    135deg,
    rgba(67, 97, 238, 0.04),
    rgba(114, 9, 183, 0.04)
  );
  border: 1px solid rgba(67, 97, 238, 0.1);
  border-radius: 12px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.announcement-icon {
  font-size: 28px;
  color: var(--primary);
  flex-shrink: 0;
  animation: announcementSwing 2s ease-in-out infinite;
}
@keyframes announcementSwing {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-15deg);
  }
  75% {
    transform: rotate(15deg);
  }
}
.announcement-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .announcement-bar {
    margin: 10px 12px 0;
    padding: 8px 12px;
    font-size: 13px;
  }
  .announcement-icon {
    font-size: 16px;
  }
}

@media (min-width: 769px) {
  .bottom-tab-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 20px;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
  }
  .bottom-tab-item i {
    font-size: 20px;
    transition: all 0.2s;
  }
  .bottom-tab-item span {
    display: none;
  }
  .bottom-tab-item:hover {
    background: rgba(67, 97, 238, 0.08);
    color: var(--primary);
  }
  .bottom-tab-item:nth-child(1) i {
    color: #4361ee;
  }
  .bottom-tab-item:nth-child(2) i {
    color: #f72585;
  }
  .bottom-tab-item:nth-child(4) i {
    color: #06d6a0;
  }
  .bottom-tab-item:nth-child(5) i {
    color: #7209b7;
  }
  .bottom-tab-item:active {
    transform: scale(0.92);
  }
  .bottom-tab-item.active i {
    transform: scale(1.08);
  }

  .bottom-tab-home-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 4px 14px;
    -webkit-tap-highlight-color: transparent;
  }
  .bottom-tab-home-icon,
  .bottom-tab-home-img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(67, 97, 238, 0.2);
    transition: all 0.3s;
  }
  .bottom-tab-home-icon {
    background: var(--rainbow);
    background-size: 200% auto;
  }
  .bottom-tab-home-icon i {
    font-size: 17px;
    color: #fff;
  }
  .bottom-tab-home-img img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
  }
  .bottom-tab-home-label {
    display: none;
  }

  .bottom-tab-home-wrap:hover .bottom-tab-home-icon,
  .bottom-tab-home-wrap:hover .bottom-tab-home-img {
    transform: scale(1.08);
    box-shadow: 0 4px 20px rgba(67, 97, 238, 0.35);
  }
}

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ===== Video Background ===== */
.bg-video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-video-container video {
  pointer-events: none;
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bg-video-fallback {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* Mobile: show fallback image, hide video */
@media (max-width: 768px) {
  .bg-video {
    display: none;
  }
  .bg-video-fallback {
    display: block;
  }
  .bg-video-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
  }
}

/* ---- Video bg active ---- */

html.has-video-bg,
body.has-video-bg {
  background: transparent !important;
}

/* Lift all page content above video (z-index: 0) */
body.has-video-bg .navbar {
  z-index: 1000;
}
body.has-video-bg .hero {
  position: relative;
  z-index: 1;
}
body.has-video-bg .content-wrap {
  position: relative;
  z-index: 1;
}
body.has-video-bg .announcement-bar {
  position: relative;
  z-index: 1;
}
body.has-video-bg .bottom-tab-bar {
  z-index: 1000;
}
body.has-video-bg .item-detail-overlay {
  z-index: 2000;
}

/* Semi-transparent cards */
body.has-video-bg .navbar {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
body.has-video-bg .navbar.scrolled {
  background: rgba(255, 255, 255, 0.75);
}

body.has-video-bg .hero {
  background: transparent;
}
body.has-video-bg .hero::after,
body.has-video-bg .hero::before {
  display: none;
}

body.has-video-bg .search-box input {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(255, 255, 255, 0.3);
}
body.has-video-bg .search-box input:focus {
  background: rgba(255, 255, 255, 0.85);
}

body.has-video-bg .category-tab {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.2);
}
body.has-video-bg .category-tab:hover {
  background: var(--primary-gradient);
  color: #fff;
}
body.has-video-bg .category-tab.active {
  background: var(--rainbow);
  color: #fff;
}

body.has-video-bg .item-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.2);
}
body.has-video-bg .item-card:hover {
  background: rgba(255, 255, 255, 0.85);
}

body.has-video-bg .item-detail-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
body.has-video-bg .item-detail-overlay {
  background: rgba(0, 0, 0, 0.55);
}
body.has-video-bg .btn-close:hover {
  background: rgba(255, 255, 255, 0.5);
}

body.has-video-bg .announcement-bar {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.2);
}

body.has-video-bg .bottom-tab-bar {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

@media (max-width: 768px) {
  body.has-video-bg .bottom-tab-bar {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  body.has-video-bg .item-card {
    background: rgba(255, 255, 255, 0.55);
  }
  body.has-video-bg .category-tab {
    background: rgba(255, 255, 255, 0.5);
  }
  body.has-video-bg .category-tab:hover {
    background: rgba(255, 255, 255, 0.8);
  }

  body.has-video-bg .hero {
    z-index: 1;
  }
  body.has-video-bg .content-wrap {
    z-index: 1;
  }
}