/* ==========================================================================
   机场想要 (jichangwant.blog) - 核心样式表
   ========================================================================== */

:root {
  --bg-primary: #0b1120;
  --bg-secondary: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #24344d;
  --border-color: #334155;
  --border-light: #1e293b;
  --text-primary: #ffffff;
  --text-secondary: #ffffff;
  --text-muted: #ffffff;
  --text-main: #ffffff;
  --accent-cyan: #38bdf8;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 12px 0 rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.45);
  --max-width: 1200px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.site-header {
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-link:hover {
  text-decoration: none;
  color: var(--accent-cyan);
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}

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

.nav-link {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background-color: var(--border-light);
  text-decoration: none;
}

.nav-link.highlight {
  color: #38bdf8;
  font-weight: 600;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.nav-link.highlight:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #ffffff;
}

/* Header Right: Search bar */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-trigger-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-trigger-btn:hover {
  border-color: var(--accent-cyan);
  color: #ffffff;
  background-color: var(--bg-card-hover);
}

.search-shortcut {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: #ffffff;
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1.25rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  padding: 56px 0 36px;
  background: radial-gradient(circle at 50% 20%, rgba(56, 189, 248, 0.08) 0%, rgba(11, 17, 32, 0) 70%);
  border-bottom: 1px solid var(--border-light);
}

.hero-inner {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.hero-title {
  font-size: 2.5rem;
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, #bae6fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.12rem;
  color: #ffffff;
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.98rem;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  border: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
}

.btn-outline {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Section Common */
.section-wrap {
  padding: 48px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 24px;
  background: var(--accent-cyan);
  border-radius: 2px;
}

.section-subtitle {
  color: #ffffff;
  font-size: 0.95rem;
  margin-top: 4px;
}

/* Airport Cards Grid */
.airports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 22px;
}

.airport-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.airport-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: var(--shadow-lg);
  background-color: var(--bg-card-hover);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-index {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.card-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-price-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.card-meta-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.92rem;
}

.card-meta-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #ffffff;
}

.meta-label {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 76px;
}

.meta-value {
  color: #ffffff;
  font-weight: 500;
}

.promo-badge-box {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.18) 0%, rgba(245, 158, 11, 0.1) 100%);
  border: 1.5px dashed #facc15;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  box-shadow: 0 0 14px rgba(234, 179, 8, 0.18);
}

.promo-code-text {
  font-family: var(--font-mono);
  font-weight: 800;
  color: #0b1120 !important;
  background: linear-gradient(135deg, #fde047 0%, #facc15 50%, #f59e0b 100%);
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.96rem;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border: 1px solid #fef08a;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.card-desc {
  font-size: 0.92rem;
  color: #ffffff;
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

.card-actions .btn {
  flex: 1;
  font-size: 0.9rem;
  padding: 10px 14px;
}

/* Comparison Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  margin-bottom: 30px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.comparison-table th {
  background-color: var(--bg-secondary);
  color: #ffffff;
  font-weight: 600;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  vertical-align: middle;
}

.comparison-table tr:hover {
  background-color: var(--bg-card-hover);
}

/* Articles & Content Layout */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  padding: 36px 0;
}

.main-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.main-content h1 {
  font-size: 2.1rem;
  line-height: 1.3;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.main-content h2 {
  font-size: 1.45rem;
  margin: 32px 0 16px;
  color: var(--accent-cyan);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
}

.main-content h3 {
  font-size: 1.2rem;
  margin: 24px 0 12px;
  color: var(--text-primary);
}

.main-content p {
  margin-bottom: 18px;
  color: #ffffff;
  line-height: 1.75;
}

.main-content ul, .main-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
  color: #ffffff;
}

.main-content li {
  color: #ffffff;
  margin-bottom: 8px;
}

.audience-box {
  background: rgba(56, 189, 248, 0.08);
  border-left: 4px solid var(--accent-cyan);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 24px;
}

.audience-title {
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 6px;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.widget-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.widget-list a {
  color: #ffffff;
  font-size: 0.92rem;
  display: block;
}

.widget-list a:hover {
  color: var(--accent-cyan);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--accent-cyan);
}

.faq-question {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 1.05rem;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.02);
}

.faq-answer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.7;
  background-color: var(--bg-secondary);
}

.faq-answer p,
.faq-item p,
.faq-item h3,
.faq-item h4 {
  color: #ffffff !important;
}

/* Disclaimer & Notice */
.disclosure-banner {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  margin: 20px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* Footer */
.site-footer {
  background-color: #080d19;
  border-top: 1px solid var(--border-color);
  padding: 48px 0 24px;
  margin-top: 60px;
  color: #ffffff;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 14px;
}

.footer-col p {
  color: #ffffff;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #ffffff;
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Search Modal */
.search-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  padding: 40px 20px;
  overflow-y: auto;
}

.search-modal.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.search-modal-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
  gap: 12px;
}

.search-input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.15rem;
  outline: none;
}

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

.search-results-list {
  max-height: 420px;
  overflow-y: auto;
  padding: 12px;
  list-style: none;
}

.search-result-item {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  display: block;
  transition: background-color 0.15s ease;
}

.search-result-item:hover {
  background-color: var(--bg-card);
  text-decoration: none;
}

.search-result-title {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 4px;
}

.search-result-badge {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 6px;
}

.search-result-snippet {
  color: #ffffff;
  font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .content-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 16px 20px;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.mobile-open {
    display: flex;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .search-shortcut {
    display: none;
  }
  .hero-title {
    font-size: 1.85rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .airports-grid {
    grid-template-columns: 1fr;
  }
}

/* Sticky Anchor Navigation for /airport-recommend/ */
.sticky-anchor-nav {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) var(--bg-card);
}

.sticky-anchor-nav::-webkit-scrollbar {
  width: 6px;
}

.sticky-anchor-nav::-webkit-scrollbar-track {
  background: var(--bg-card);
}

.sticky-anchor-nav::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.anchor-nav-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.anchor-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.anchor-nav-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: #ffffff;
  transition: all 0.15s ease;
  text-decoration: none;
}

.anchor-nav-item a:hover {
  background-color: var(--bg-card-hover);
  color: var(--accent-cyan);
}

.anchor-nav-item.flagship a {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  font-weight: 700;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.anchor-nav-item.flagship a:hover {
  background: rgba(245, 158, 11, 0.22);
  color: #fef08a;
}

/* Master Airport Directory Table */
.master-airport-directory {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin: 28px 0 40px;
  overflow: hidden;
}

.directory-header {
  background: var(--bg-secondary);
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.directory-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.directory-table th {
  background: rgba(15, 23, 42, 0.8);
  color: #ffffff;
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  white-space: nowrap;
}

.directory-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  vertical-align: middle;
}

.directory-table tr:hover {
  background: var(--bg-card-hover);
}

.directory-table td:last-child,
.directory-table th:last-child {
  white-space: nowrap;
  min-width: 170px;
}

.directory-actions {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
}

.jump-anchor-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(56, 189, 248, 0.25);
  transition: all 0.2s ease;
  white-space: nowrap !important;
  flex-shrink: 0;
  line-height: 1.4;
}

.jump-anchor-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  color: #fff;
  text-decoration: none;
}

.directory-actions .btn {
  white-space: nowrap !important;
  flex-shrink: 0;
  line-height: 1.4;
  padding: 5px 10px;
  font-size: 0.8rem;
}

