/* AI 法律问题库 — layout aligned with dark portal shell */

.aii-geo-page {
  padding: 28px 0 64px;
}

.aii-geo-page-inner {
  max-width: 1180px;
}

.aii-geo-article,
.aii-geo-content,
.aii-geo-content > *:first-child {
  margin-top: 0;
}

.aii-geo-content {
  max-width: none !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: inherit !important;
}

/* Neutralize generic static/prose overrides inside geo layout */
.aii-geo-content p,
.aii-geo-content h1,
.aii-geo-content h2,
.aii-geo-content h3,
.aii-geo-content h4,
.aii-geo-content li,
.aii-geo-content strong,
.aii-geo-content a {
  color: inherit;
}

.geo-wrapper {
  margin: 0 auto;
  color: #e5e7eb;
  line-height: 1.7;
}

/* Hero */
.geo-hero {
  position: relative;
  padding: 36px 32px 32px;
  background:
    radial-gradient(circle at 88% 12%, rgba(96, 165, 250, 0.22), transparent 42%),
    linear-gradient(135deg, #0f274f 0%, #163a73 52%, #1d4f91 100%);
  border: 1px solid rgba(147, 197, 253, 0.22);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  margin-bottom: 22px;
}

.geo-hero::after {
  content: "";
  position: absolute;
  right: -48px;
  top: -48px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.geo-badge {
  display: inline-block;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 750;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.geo-hero h1 {
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 820;
  color: #fff !important;
  margin: 0 0 12px !important;
  letter-spacing: -0.02em;
  line-height: 1.28;
}

.geo-hero p {
  font-size: 15.5px;
  color: rgba(226, 232, 240, 0.92) !important;
  max-width: 760px;
  margin: 0 !important;
  line-height: 1.75;
}

.geo-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.geo-hero-meta span {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

/* Intro */
.geo-intro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
}

.geo-intro-item {
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  padding: 16px 16px 14px;
  backdrop-filter: blur(8px);
}

.geo-intro-item strong {
  display: block;
  color: #f8fafc !important;
  font-size: 15px;
  font-weight: 760;
  margin-bottom: 6px;
}

.geo-intro-item p {
  margin: 0 !important;
  color: #94a3b8 !important;
  font-size: 14px;
  line-height: 1.65;
}

/* Tabs */
.geo-nav {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  margin: 0 0 20px;
  flex-wrap: wrap;
  position: sticky;
  top: 56px;
  z-index: 20;
  padding: 10px 0;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.96), rgba(11, 18, 32, 0.88));
  backdrop-filter: blur(10px);
}

.geo-tab {
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.geo-tab:hover {
  color: #f8fafc;
  border-color: rgba(147, 197, 253, 0.55);
  background: rgba(30, 58, 138, 0.35);
}

.geo-tab.active {
  color: #fff !important;
  background: #2563eb !important;
  border-color: #60a5fa !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28) !important;
}

/* Cards */
.geo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 32px;
  align-items: stretch;
}

.geo-card {
  background: rgba(17, 24, 39, 0.82) !important;
  border: 1px solid rgba(148, 163, 184, 0.22) !important;
  border-radius: 16px !important;
  padding: 20px 20px 16px !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease !important;
  position: relative !important;
  min-height: 100%;
  min-width: 0;
}

.geo-card:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(96, 165, 250, 0.55) !important;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.16) !important;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 10px;
}

.card-num {
  font-size: 13px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.04em;
}

.card-tag {
  font-size: 12px;
  font-weight: 740;
  padding: 3px 10px;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(147, 197, 253, 0.28);
  color: #93c5fd;
  border-radius: 999px;
  white-space: nowrap;
}

.geo-card h3 {
  font-size: 17.5px !important;
  font-weight: 780 !important;
  color: #f8fafc !important;
  margin: 0 0 10px 0 !important;
  line-height: 1.45 !important;
}

.geo-card p {
  font-size: 14.5px !important;
  color: #94a3b8 !important;
  line-height: 1.72 !important;
  margin: 0 0 16px 0 !important;
  flex-grow: 1;
}

.card-bottom {
  display: flex;
  justify-content: flex-start;
  padding-top: 2px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  margin-top: auto;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 740;
  color: #93c5fd !important;
  text-decoration: none !important;
  padding-top: 12px;
  transition: color 0.15s ease;
}

.card-link:hover {
  color: #dbeafe !important;
}

/* Route / note sections */
.geo-route {
  background: rgba(15, 23, 42, 0.75) !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  border-radius: 16px !important;
  padding: 28px 24px !important;
  margin-top: 8px !important;
}

.geo-route h2 {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #f8fafc !important;
  margin: 0 0 18px 0 !important;
  text-align: left !important;
}

.geo-route-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.route-item {
  background: rgba(17, 24, 39, 0.9) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  border-radius: 12px !important;
  padding: 16px !important;
}

.route-item h4 {
  font-size: 15px !important;
  font-weight: 780 !important;
  color: #93c5fd !important;
  margin: 0 0 8px 0 !important;
}

.route-item p {
  font-size: 13.5px !important;
  color: #94a3b8 !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}

.geo-note {
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(120, 53, 15, 0.22);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fde68a !important;
  font-size: 13.5px;
  line-height: 1.7;
}

.geo-note a {
  color: #93c5fd !important;
  font-weight: 720;
  text-decoration: underline !important;
}

/* Responsive */
@media (max-width: 960px) {
  .geo-intro,
  .geo-route-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .geo-grid {
    grid-template-columns: 1fr !important;
  }

  .geo-nav {
    top: 48px;
    margin-left: -4px;
    margin-right: -4px;
    padding-left: 4px;
    padding-right: 4px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .geo-nav::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 640px) {
  .aii-geo-page {
    padding: 18px 0 48px;
  }

  .geo-hero {
    padding: 26px 18px !important;
    border-radius: 14px;
  }

  .geo-hero h1 {
    font-size: 24px !important;
  }

  .geo-intro,
  .geo-route-grid {
    grid-template-columns: 1fr !important;
  }

  .geo-route {
    padding: 20px 16px !important;
  }

  .geo-card {
    padding: 18px 16px 14px !important;
  }
}
