/* ============================================================
   Global Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(180deg, #f6fbff 0%, #eef5fc 100%);
  color: #0b1b36;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

body {
  padding-bottom: 59px;
  padding-bottom: calc(59px + env(safe-area-inset-bottom));
}

img {
  display: block;
  max-width: 100%;
}

button {
  margin: 0;
  padding: 0;
  line-height: 1;
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

input {
  border: none;
  outline: none;
  font-family: inherit;
  background: transparent;
}

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

/* ============================================================
   Tech shell effects (global)
   ============================================================ */
.tech-shell {
  position: relative;
  overflow: hidden;
}

.tech-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, rgba(14, 119, 255, 0.08), transparent 42%),
    repeating-linear-gradient(90deg, rgba(14, 119, 255, 0.06) 0, rgba(14, 119, 255, 0.06) 1px, transparent 1px, transparent 36px),
    repeating-linear-gradient(180deg, rgba(14, 119, 255, 0.04) 0, rgba(14, 119, 255, 0.04) 1px, transparent 1px, transparent 36px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

.tech-panel {
  position: relative;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(19, 124, 255, 0.1);
  box-shadow: 0 9px 21px rgba(16, 42, 82, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.tech-chip {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(14, 119, 255, 0.14), rgba(32, 213, 255, 0.12));
  border: 1px solid rgba(14, 119, 255, 0.14);
  color: #0d3d82;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.tech-accent {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(32, 213, 255, 0), #20d5ff 30%, #0c8cff 70%, rgba(32, 213, 255, 0));
  box-shadow: 0 0 9px rgba(12, 140, 255, 0.34);
}

.tech-rise {
  animation: tech-rise 0.72s ease both;
}

.tech-pulse {
  animation: tech-pulse 2.8s ease-in-out infinite;
}

.tech-sweep {
  animation: tech-sweep 3.8s linear infinite;
}

.tech-float {
  animation: tech-float 4.8s ease-in-out infinite;
}

@keyframes tech-rise {
  from {
    opacity: 0;
    transform: translateY(9px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tech-pulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes tech-sweep {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(160%);
  }
}

@keyframes tech-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* ============================================================
   Page container
   ============================================================ */
.page-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  background: linear-gradient(180deg, rgba(246, 251, 255, 0.96), rgba(238, 245, 252, 0.98));
}

/* ============================================================
   Custom Tab Bar
   ============================================================ */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 59px;
  height: calc(59px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(248, 251, 255, 0.9);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -9px 19px rgba(16, 42, 82, 0.1);
  border-top: 1px solid rgba(19, 124, 255, 0.1);
  z-index: 999;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.tab-bar-line {
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(32, 213, 255, 0.92), rgba(12, 140, 255, 0.92), transparent);
  box-shadow: 0 0 9px rgba(12, 140, 255, 0.35);
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  transition: all 0.24s ease;
  cursor: pointer;
}

.tab-item.selected {
  transform: translateY(-1.5px);
}

.icon-shell {
  position: relative;
  width: 34px;
  height: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all 0.24s ease;
}

.tab-item .icon {
  position: relative;
  z-index: 2;
  width: 20px;
  height: 20px;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tab-item.selected .icon {
  transform: scale(1.16);
}

.tab-item .tab-text {
  font-size: 11px;
  color: #72829a;
  margin-top: 1px;
}

.tab-item .tab-text.active {
  color: #0c8cff;
  font-weight: 700;
}

.tab-item:active {
  opacity: 0.6;
}

/* ============================================================
   Toast notification
   ============================================================ */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  padding: 10px 24px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ============================================================
   Modal dialog
   ============================================================ */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.modal-box {
  width: 300px;
  padding: 24px 20px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #0b1b36;
  margin-bottom: 10px;
}

.modal-content {
  font-size: 14px;
  color: #43536a;
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-confirm {
  width: 100%;
  padding: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #20d5ff, #0c8cff);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(12, 140, 255, 0.2);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================================
   Image preview lightbox
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox-img {
  max-width: 95vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

/* ============================================================
   Index page styles
   ============================================================ */
.index-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 10px 10px 90px;
  background: linear-gradient(180deg, rgba(246, 251, 255, 0.96), rgba(238, 245, 252, 0.98));
}

/* Banner Swiper */
.banner {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(32, 213, 255, 0.2);
  box-shadow: 0 11px 25px rgba(16, 42, 82, 0.18), 0 0 17px rgba(12, 140, 255, 0.08);
  z-index: 1;
}

.swiper {
  width: 100%;
  height: 210px;
  border-radius: 14px;
  overflow: hidden;
}

.swiper-slide {
  position: relative;
}

.banner-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.banner-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(120deg, rgba(32, 213, 255, 0.16), transparent 42%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0, rgba(255, 255, 255, 0.16) 1px, transparent 1px, transparent 27px),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0, rgba(255, 255, 255, 0.1) 1px, transparent 1px, transparent 27px);
  opacity: 0.42;
  pointer-events: none;
}

.banner-scan {
  position: absolute;
  left: 0;
  top: 14px;
  z-index: 3;
  width: 52%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(32, 213, 255, 0.96), transparent);
  box-shadow: 0 0 10px rgba(32, 213, 255, 0.56);
  pointer-events: none;
  animation: tech-sweep 3.8s linear infinite;
}

.banner-copy {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 15px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  color: #fff;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 15, 32, 0.12) 0%, rgba(8, 15, 32, 0.48) 100%);
  z-index: 1;
  pointer-events: none;
}

.banner-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.32);
}

/* Swiper pagination customization */
.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5) !important;
  opacity: 1 !important;
}

.swiper-pagination-bullet-active {
  background: rgba(32, 213, 255, 0.95) !important;
  box-shadow: 0 0 8px rgba(32, 213, 255, 0.6);
}

/* Cards */
.card {
  margin-top: 10px;
  padding: 14px;
  border-radius: 14px;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s ease;
}

.card:active {
  transform: translateY(1px);
  box-shadow: 0 7px 15px rgba(16, 42, 82, 0.08);
}

.panel-accent {
  position: absolute;
  left: 13px;
  right: 13px;
  top: 0;
  pointer-events: none;
}

.card-title {
  display: flex;
  align-items: center;
  font-size: 17px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #0b1b36;
}

.title-bar {
  width: 5px;
  height: 17px;
  background: linear-gradient(180deg, #20d5ff, #0c8cff);
  margin-right: 8px;
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(12, 140, 255, 0.28);
}

.intro-text {
  font-size: 14px;
  color: #43536a;
  line-height: 1.85;
  display: block;
}

.tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  padding: 4px 9px;
  background: rgba(12, 140, 255, 0.08);
  color: #0d4f9e;
  border-radius: 999px;
  border: 1px solid rgba(12, 140, 255, 0.12);
  font-size: 12px;
  font-weight: 500;
}

/* Navigation grid */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  background: #fff;
  margin-top: 10px;
  border-radius: 14px;
  padding: 11px 8px;
  z-index: 1;
}

.nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  padding: 9px 5px;
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 248, 255, 0.82) 100%),
    linear-gradient(135deg, rgba(32, 213, 255, 0.12), transparent 56%);
  border: 1px solid rgba(12, 140, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:active {
  transform: translateY(1px) scale(0.985);
  opacity: 0.92;
}

.nav-item img {
  width: 48px;
  height: 48px;
  margin-bottom: 7px;
  filter: drop-shadow(0 5px 9px rgba(12, 140, 255, 0.32));
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-item:active img {
  transform: scale(1.12);
}

.nav-item span {
  font-size: 12px;
  color: #102342;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}

/* News list */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.news-item {
  display: flex;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(12, 140, 255, 0.08);
  transition: all 0.2s ease;
  border-radius: 6px;
  cursor: pointer;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:active {
  transform: translateX(1px);
  opacity: 0.92;
}

.news-img {
  width: 94px;
  height: 63px;
  border-radius: 9px;
  margin-right: 10px;
  border: 1px solid rgba(32, 213, 255, 0.14);
  box-shadow: 0 6px 12px rgba(16, 42, 82, 0.1);
  object-fit: cover;
}

.news-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 63px;
}

.news-title {
  font-size: 14px;
  color: #0d1e38;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 6px;
}

.news-date {
  align-self: flex-start;
  padding: 3px 7px;
  font-size: 11px;
  color: #0c6bc4;
  background: rgba(12, 140, 255, 0.08);
  border: 1px solid rgba(12, 140, 255, 0.1);
  border-radius: 999px;
}

/* ============================================================
   Scenery page styles
   ============================================================ */
.scenery-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-bottom: 65px;
  background: linear-gradient(180deg, rgba(246, 251, 255, 0.98), rgba(238, 245, 252, 0.98));
}

.tabs {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  background-color: rgba(255, 255, 255, 0.82);
  padding: 10px 9px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 8px 17px rgba(16, 42, 82, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.subtabs {
  display: flex;
  gap: 5px;
  margin: 7px 10px 0;
  padding: 7px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 7px 15px rgba(16, 42, 82, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.tab {
  flex: 1;
  font-size: 14px;
  color: #72829a;
  padding: 7px 9px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  background: linear-gradient(180deg, rgba(242, 247, 252, 0.92), rgba(230, 239, 250, 0.88));
  text-align: center;
  border: 1px solid rgba(12, 140, 255, 0.08);
}

.tab.active {
  color: #ffffff;
  background: linear-gradient(135deg, #20d5ff, #0c8cff);
  box-shadow: 0 6px 14px rgba(12, 140, 255, 0.24);
  transform: translateY(-0.5px);
}

.subtab {
  flex: 1;
  padding: 6px 5px;
  border-radius: 999px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(242, 247, 252, 0.9), rgba(230, 239, 250, 0.84));
  border: 1px solid rgba(12, 140, 255, 0.06);
  transition: all 0.2s ease;
}

.subtab.active {
  color: #ffffff;
  background: linear-gradient(135deg, #20d5ff, #0c8cff);
  box-shadow: 0 5px 11px rgba(12, 140, 255, 0.2);
  transform: translateY(-0.5px);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  padding: 11px;
  box-sizing: border-box;
}

.photo-item {
  position: relative;
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 17px rgba(16, 42, 82, 0.1);
  border: 1px solid rgba(12, 140, 255, 0.08);
  transition: all 0.2s ease;
  cursor: pointer;
}

.photo-item:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 5px 10px rgba(19, 35, 66, 0.06);
}

.photo-scan {
  position: absolute;
  left: 0;
  top: 7px;
  z-index: 2;
  width: 44%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(32, 213, 255, 0.9), transparent);
  box-shadow: 0 0 9px rgba(12, 140, 255, 0.42);
  pointer-events: none;
  animation: tech-sweep 3.8s linear infinite;
}

.photo-item img {
  width: 100%;
  height: 152px;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

.photo-desc {
  padding: 9px 8px;
  font-size: 13px;
  color: #0d1e38;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-top: 1px solid rgba(12, 140, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.96));
}

/* ============================================================
   Map page styles
   ============================================================ */
.map-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 12px 10px 85px;
  background: linear-gradient(180deg, rgba(246, 251, 255, 0.98), rgba(238, 245, 252, 0.98));
}

.map-header {
  position: relative;
  z-index: 1;
  padding: 0 2px 9px;
}

.map-kicker {
  margin-bottom: 6px;
}

.page-title {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #0b1b36;
  line-height: 1.3;
}

/* Segmented tabs */
.segment-tabs {
  display: flex;
  margin-top: 9px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(12, 140, 255, 0.12);
  box-shadow: 0 6px 15px rgba(16, 42, 82, 0.06);
}

.segment-tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 700;
  color: #586982;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.segment-tab.active {
  color: #ffffff;
  background: linear-gradient(135deg, #0c8cff, #20d5ff);
  box-shadow: 0 3px 10px rgba(12, 140, 255, 0.28);
}

/* Plane map */
.map-frame {
  position: relative;
  z-index: 1;
  min-height: 450px;
  border-radius: 15px;
  overflow: hidden;
  margin-top: 9px;
  border: 1px solid rgba(12, 140, 255, 0.14);
  box-shadow: 0 11px 24px rgba(16, 42, 82, 0.14), 0 0 17px rgba(12, 140, 255, 0.08);
  cursor: pointer;
}

.map-frame-scan {
  position: absolute;
  left: 0;
  top: 10px;
  z-index: 2;
  width: 48%;
  height: 1.5px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(32, 213, 255, 0.96), transparent);
  animation: tech-sweep 3.8s linear infinite;
}

.static-map {
  position: relative;
  z-index: 1;
  width: 100%;
  display: block;
  background: #eef5fc;
}

.map-tips {
  position: relative;
  z-index: 1;
  margin-top: 9px;
  padding: 11px 12px;
  border-radius: 12px;
}

.tip-item {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.tip-item:last-child {
  margin-bottom: 0;
}

.tip-dot {
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #20d5ff, #0c8cff);
  box-shadow: 0 0 7px rgba(12, 140, 255, 0.3);
  flex-shrink: 0;
}

.tip-text {
  flex: 1;
  font-size: 12px;
  color: #40516b;
  line-height: 1.5;
}

/* Interactive map */
.interactive-map-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: 9px;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(12, 140, 255, 0.14);
  box-shadow: 0 11px 24px rgba(16, 42, 82, 0.14), 0 0 17px rgba(12, 140, 255, 0.08);
  background: rgba(255, 255, 255, 0.78);
}

.search-bar {
  display: flex;
  align-items: center;
  margin: 9px 9px 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(248, 251, 255, 0.9);
  border: 1px solid rgba(12, 140, 255, 0.12);
  box-shadow: inset 0 1px 4px rgba(12, 140, 255, 0.04);
}

.search-icon {
  margin-right: 7px;
  flex-shrink: 0;
  font-size: 16px;
  color: #0c8cff;
}

.search-input {
  flex: 1;
  font-size: 13px;
  color: #0b1b36;
  height: 22px;
  line-height: 22px;
}

.clear-icon {
  padding: 3px;
  flex-shrink: 0;
  font-size: 16px;
  color: #72829a;
  cursor: pointer;
  display: none;
}

/* Category filter */
.category-scroll {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  padding: 0 9px 7px;
  gap: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.category-badge {
  display: inline-block;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #5c6c84;
  border-radius: 999px;
  background: rgba(12, 140, 255, 0.06);
  border: 1px solid rgba(12, 140, 255, 0.08);
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.category-badge.active {
  color: #0c8cff;
  background: rgba(12, 140, 255, 0.14);
  border-color: rgba(12, 140, 255, 0.3);
  box-shadow: 0 2px 7px rgba(12, 140, 255, 0.08);
  font-weight: 700;
}

/* Map area */
.map-box {
  position: relative;
  width: 100%;
  height: 420px;
}

#campusMap {
  width: 100%;
  height: 100%;
}

/* Locate button */
.locate-btn {
  position: absolute;
  right: 12px;
  bottom: 100px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(12, 140, 255, 0.2);
  box-shadow: 0 5px 12px rgba(16, 42, 82, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  cursor: pointer;
}

.locate-icon {
  width: 22px;
  height: 22px;
}

/* Detail drawer */
.detail-drawer {
  position: absolute;
  bottom: 9px;
  left: 9px;
  right: 9px;
  padding: 13px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(12, 140, 255, 0.18);
  box-shadow: 0 8px 24px rgba(16, 42, 82, 0.24);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 100;
  transform: translateY(120%);
  transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1);
  pointer-events: none;
}

.detail-drawer.show {
  transform: translateY(0);
  pointer-events: auto;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 7px;
}

.drawer-title-box {
  display: flex;
  flex-direction: column;
}

.drawer-title {
  font-size: 17px;
  font-weight: 700;
  color: #0b1b36;
}

.drawer-tag {
  align-self: flex-start;
  margin-top: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(12, 140, 255, 0.12), rgba(32, 213, 255, 0.08));
  border: 1px solid rgba(12, 140, 255, 0.14);
  color: #0d4fa2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.drawer-close-btn {
  font-size: 22px;
  color: #72829a;
  padding: 2px 6px;
  line-height: 0.8;
  cursor: pointer;
}

.drawer-close-btn:active {
  opacity: 0.6;
}

.drawer-desc {
  font-size: 12.5px;
  color: #43536a;
  line-height: 1.6;
  display: block;
}

.drawer-distance-box {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(32, 213, 255, 0.08);
  border: 1px solid rgba(32, 213, 255, 0.12);
}

.distance-pulse {
  width: 5px;
  height: 5px;
  background: #20d5ff;
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 5px rgba(32, 213, 255, 0.8);
  animation: tech-pulse 2.8s ease-in-out infinite;
}

.distance-label {
  font-size: 11px;
  color: #43536a;
}

.distance-value {
  font-size: 11px;
  font-weight: 700;
  color: #0c8cff;
}

/* ============================================================
   History page styles
   ============================================================ */
.history-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-bottom: 85px;
  background: linear-gradient(180deg, rgba(246, 251, 255, 0.98), rgba(238, 245, 252, 0.98));
}

.header {
  position: relative;
  height: 200px;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 16px 16px;
  z-index: 1;
}

.header-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 15, 32, 0.18) 0%, rgba(8, 15, 32, 0.55) 100%);
  z-index: 1;
  pointer-events: none;
}

.header-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(135deg, rgba(32, 213, 255, 0.1), transparent 46%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0.12) 1px, transparent 1px, transparent 28px);
  opacity: 0.32;
  pointer-events: none;
}

.header-scan {
  position: absolute;
  left: 0;
  top: 9px;
  z-index: 3;
  width: 44%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(32, 213, 255, 0.98), transparent);
  box-shadow: 0 0 10px rgba(32, 213, 255, 0.54);
  pointer-events: none;
}

.header-text {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.big-title {
  font-size: 23px;
  font-weight: bold;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-shadow: 0 3px 9px rgba(0, 0, 0, 0.34);
}

.sub-title {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.34);
}

.timeline {
  padding: 16px 10px 0;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.timeline-item {
  display: flex;
  position: relative;
  padding-bottom: 17px;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 82.5px;
  top: 17px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(12, 140, 255, 0.18), rgba(32, 213, 255, 0.04));
  z-index: 1;
}

.timeline-item:last-child::after {
  display: none;
}

.year {
  width: 60px;
  font-size: 15.5px;
  font-weight: bold;
  color: #0b2f68;
  text-align: right;
  margin-right: 15px;
  flex-shrink: 0;
  padding-top: 3px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, #20d5ff, #0c8cff);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 4px rgba(12, 140, 255, 0.08), 0 0 8px rgba(32, 213, 255, 0.18);
  z-index: 5;
  margin-top: 6px;
  flex-shrink: 0;
}

.timeline-item .content {
  flex: 1;
  margin-left: 15px;
  padding: 13px 14px;
  border-radius: 12px;
  z-index: 5;
  transform: translate3d(0, 0, 0);
  transition: all 0.2s ease;
  overflow: hidden;
}

.timeline-item:active .content {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(1px);
}

.content-accent {
  position: absolute;
  left: 11px;
  right: 11px;
  top: 0;
  pointer-events: none;
}

.event-title {
  font-size: 15px;
  font-weight: bold;
  color: #0b1b36;
  margin-bottom: 5px;
  display: block;
}

.event-desc {
  font-size: 12px;
  color: #46576e;
  line-height: 1.7;
  display: block;
}

/* ============================================================
   Detail page styles
   ============================================================ */
.detail-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-bottom: 40px;
  background: linear-gradient(180deg, rgba(246, 251, 255, 0.98), rgba(238, 245, 252, 0.98));
}

.cover-frame {
  position: relative;
  width: calc(100% - 20px);
  margin: 10px 10px 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(16, 42, 82, 0.14), 0 0 14px rgba(12, 140, 255, 0.06);
  border: 1px solid rgba(12, 140, 255, 0.14);
}

.cover-image {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

.cover-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(135deg, rgba(32, 213, 255, 0.1), transparent 46%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0, rgba(255, 255, 255, 0.16) 0.5px, transparent 1px, transparent 28px);
  opacity: 0.38;
  pointer-events: none;
}

.cover-scan {
  position: absolute;
  left: 0;
  top: 9px;
  z-index: 3;
  width: 48%;
  height: 1.5px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(32, 213, 255, 0.96), transparent);
  animation: tech-sweep 3.8s linear infinite;
}

.article-body {
  margin: -14px 10px 0;
  padding: 18px 14px 17px;
  border-radius: 15px;
  box-shadow: 0 9px 19px rgba(19, 35, 66, 0.08);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.body-accent {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 0;
  pointer-events: none;
}

.article-body .title {
  font-size: 21px;
  font-weight: bold;
  color: #0b1b36;
  line-height: 1.45;
  margin-bottom: 12px;
}

.meta-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.meta-pill {
  display: inline-block;
  padding: 4px 8px;
  font-size: 11px;
  color: #0c6bc4;
  background: rgba(12, 140, 255, 0.08);
  border-radius: 999px;
  border: 1px solid rgba(12, 140, 255, 0.1);
}

.content-paragraphs {
  margin-top: 5px;
}

.paragraph {
  margin-bottom: 14px;
  text-indent: 28px;
}

.para-text {
  font-size: 14px;
  color: #23324a;
  line-height: 1.9;
  text-align: justify;
  display: block;
}

.footer-btn {
  margin: 17px 10px 50px;
}

.back-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #20d5ff, #0c8cff);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 14px rgba(12, 140, 255, 0.2);
}

.back-btn:active {
  opacity: 0.92;
}
