/* 
 * 广西旅游网 (travelgx.cn) - Modern Responsive Stylesheet
 * 100% Localized Assets, Mobile-First & 375px Overflow-Safe
 */
:root {
  --brand-blue: #0b63a8;
  --brand-blue-dark: #073f6e;
  --brand-blue-light: #e0f2fe;
  --brand-orange: #ea580c;
  --brand-orange-hover: #c2410c;
  --brand-orange-soft: #fff7ed;
  --brand-teal: #0d9488;
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --radius-lg: 14px;
  --radius-md: 10px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
}

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

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

a:hover {
  color: var(--brand-orange);
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Top Utility Bar */
.utility-bar {
  background: #072f54;
  color: #cbd5e1;
  font-size: 13px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.utility-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.utility-badge {
  background: var(--brand-orange);
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 4px;
}

.utility-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.utility-right a {
  color: #e2e8f0;
}

.utility-right a:hover {
  color: #fde047;
}

/* Header & Navigation */
.site-header {
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.brand-tagline {
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--border-color);
  padding-left: 12px;
}

.brand-tagline strong {
  font-size: 14px;
  color: var(--brand-blue-dark);
  letter-spacing: 0.3px;
}

.brand-tagline span {
  font-size: 12px;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-blue);
  background: var(--brand-blue-light);
}

.nav-cta {
  background: var(--brand-orange);
  color: #ffffff !important;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  margin-left: 6px;
}

.nav-cta:hover {
  background: var(--brand-orange-hover);
}

.mobile-menu-btn {
  display: none;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
}

/* Required Announcement Banner (Navigation 下方通栏横幅) */
.announce-banner {
  background: linear-gradient(90deg, #fff7ed 0%, #ffedd5 50%, #fef3c7 100%);
  border-top: 1px solid #fed7aa;
  border-bottom: 1px solid #fdba74;
  padding: 10px 0;
}

.announce-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #9a3412;
  line-height: 1.5;
}

.announce-tag {
  background: var(--brand-orange);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 99px;
  flex-shrink: 0;
  margin-top: 1px;
}

.announce-text {
  font-weight: 600;
  word-break: break-word;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #072f54 0%, #0b5a98 55%, #0d7a8a 100%);
  color: #ffffff;
  padding: 40px 0 44px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  color: #fde047;
}

.hero-title {
  font-size: 32px;
  line-height: 1.28;
  font-weight: 800;
  margin-bottom: 14px;
}

.hero-subtitle {
  font-size: 15px;
  color: #e0f2fe;
  margin-bottom: 22px;
  max-width: 660px;
}

.hero-search-form {
  display: flex;
  gap: 8px;
  background: #ffffff;
  padding: 6px;
  border-radius: 12px;
  max-width: 600px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  margin-bottom: 18px;
}

.hero-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--text-main);
  border-radius: 8px;
  min-width: 0;
}

.hero-search-btn {
  background: var(--brand-orange);
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.hero-search-btn:hover {
  background: var(--brand-orange-hover);
}

.hero-quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

.hero-quick-tags span {
  color: #bae6fd;
}

.hero-quick-tags a {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  padding: 3px 11px;
  border-radius: 99px;
  font-size: 12.5px;
}

.hero-quick-tags a:hover {
  background: var(--brand-orange);
}

/* Hero Right: Quick Port & Service Dispatch Card */
.hero-dispatch-card {
  background: rgba(255, 255, 255, 0.97);
  color: var(--text-main);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.dispatch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.dispatch-header h3 {
  font-size: 17px;
  color: var(--brand-blue-dark);
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #15803d;
  background: #dcfce7;
  padding: 3px 10px;
  border-radius: 99px;
  font-weight: 700;
}

.dispatch-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.dispatch-item {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
}

.dispatch-item strong {
  color: var(--brand-blue-dark);
  display: block;
  margin-bottom: 2px;
}

.dispatch-item span {
  color: var(--text-secondary);
}

.dispatch-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-primary, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--brand-orange);
  color: #ffffff !important;
}

.btn-primary:hover {
  background: var(--brand-orange-hover);
}

.btn-outline {
  background: #f1f5f9;
  color: var(--brand-blue-dark) !important;
  border: 1px solid #cbd5e1;
}

.btn-outline:hover {
  background: var(--brand-blue-light);
  border-color: var(--brand-blue);
}

/* Section Layout */
.section {
  padding: 40px 0;
}

.section-alt {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.section-title-group h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title-group h2::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 24px;
  background: var(--brand-orange);
  border-radius: 3px;
}

.section-title-group p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 6 Core Business Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pillar-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #93c5fd;
}

.pillar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.pillar-top h3 {
  font-size: 17px;
  color: var(--brand-blue-dark);
}

.pillar-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 99px;
  background: var(--brand-blue-light);
  color: var(--brand-blue);
}

.pillar-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.pillar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
}

.pillar-links a {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  padding: 3px 9px;
  border-radius: 6px;
  color: var(--text-secondary);
}

.pillar-links a:hover {
  background: var(--brand-orange-soft);
  color: var(--brand-orange);
  border-color: #fdba74;
}

/* Route Cards Grid */
.routes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.route-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.route-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.route-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9.6;
  background: #0f172a;
  overflow: hidden;
}

.route-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.route-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--brand-orange);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.route-duration-pill {
  position: absolute;
  bottom: 10px;
  left: 12px;
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 6px;
}

.route-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.route-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

.route-title a {
  color: var(--text-main);
}

.route-title a:hover {
  color: var(--brand-orange);
}

.route-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.route-meta-list {
  font-size: 12.5px;
  color: var(--text-secondary);
  background: #f8fafc;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.route-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-box {
  color: var(--brand-orange);
  font-size: 13px;
}

.price-box strong {
  font-size: 22px;
  font-weight: 800;
}

/* Cross-Border Ports Decision Table / Cards */
.ports-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.port-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--brand-blue);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

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

.port-card-head h3 {
  font-size: 17px;
  color: var(--brand-blue-dark);
}

.port-badge {
  background: #dcfce7;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 99px;
  white-space: nowrap;
}

.port-specs {
  font-size: 13.5px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text-secondary);
}

.port-specs div strong {
  color: var(--text-main);
}

/* Interactive AI/Smart Budget Calculator Widget */
.calc-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

.calc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.form-field label {
  display: block;
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 6px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
}

.calc-result-panel {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-price-big {
  font-size: 30px;
  font-weight: 800;
  color: #fde047;
  margin: 8px 0;
}

.calc-breakdown {
  list-style: none;
  font-size: 13.5px;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 18px;
}

/* Guides & Fleets Grid */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.guide-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.guide-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
  line-height: 1.4;
}

.guide-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.guide-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
}

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 16px 0;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #ffffff;
  min-width: 540px;
}

.data-table th, .data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  background: #f1f5f9;
  color: var(--brand-blue-dark);
  font-weight: 700;
}

/* Detail Pages (Route & Guide SSR Detail) */
.breadcrumb {
  font-size: 13.5px;
  color: var(--text-muted);
  padding: 16px 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 26px;
  padding: 16px 0 48px;
}

.detail-main {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
  font-size: 16px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-orange);
  color: var(--brand-blue-dark);
}

.timeline-day {
  border-left: 3px solid var(--brand-blue);
  padding-left: 18px;
  margin-bottom: 24px;
  position: relative;
}

.timeline-day-badge {
  display: inline-block;
  background: var(--brand-blue);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  padding: 2px 10px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.timeline-day h4 {
  font-size: 17px;
  color: var(--text-main);
  margin-bottom: 6px;
}

.timeline-day-meta {
  font-size: 13px;
  color: var(--brand-orange);
  font-weight: 600;
  margin-bottom: 8px;
}

.article-content h3 {
  font-size: 20px;
  color: var(--brand-blue-dark);
  margin: 24px 0 12px;
  padding-left: 10px;
  border-left: 4px solid var(--brand-orange);
}

.article-content h4 {
  font-size: 16px;
  color: var(--text-main);
  margin: 16px 0 8px;
}

.article-content p, .article-content li {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.article-content ul, .article-content ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 44px 0 28px;
  font-size: 13.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: #fde047;
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: #94a3b8;
  font-size: 13px;
}

.footer-bottom a {
  color: #e2e8f0;
  font-weight: 600;
}

/* Responsive Breakpoints (Strict 375px Compatibility) */
@media (max-width: 992px) {
  .hero-grid,
  .calc-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .pillars-grid,
  .routes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .utility-bar {
    display: none;
  }
  .brand-tagline {
    display: none;
  }
  .brand-logo-img {
    height: 42px;
  }
  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 16px;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  }
  .main-nav.open {
    display: flex;
  }
  .nav-cta {
    margin-left: 0;
    margin-top: 6px;
    text-align: center;
  }
  .hero-section {
    padding: 26px 0 30px;
  }
  .hero-title {
    font-size: 23px;
  }
  .hero-search-form {
    flex-direction: column;
  }
  .hero-search-btn {
    width: 100%;
  }
  .pillars-grid,
  .routes-grid,
  .ports-grid,
  .guides-grid,
  .calc-form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .detail-main {
    padding: 18px 14px;
  }
  .calc-box {
    padding: 18px 14px;
  }
}
