  :root {
      --primary-color: #1c5098;
      --primary-hover-color: #0f3a73;
      --text-dark: #333;
      --text-light: #666;
      --bg-light: #f8f9fa;
      --border-color: #e9ecef;
      --header-height: 70px;
  }

   .mobile-menu-nav a::before {
       content: ' ';

       width: 10px;
       height: 10px;
       border-radius: 50%;
       background: #0000002e;
       margin-right: 10px;

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

  body {
      font-family: 'Roboto', 'Noto Sans JP', sans-serif;
      line-height: 1.6;
      background: var(--bg-light);
      color: var(--text-dark);
      overflow-x: hidden;
  }

  /* 加载动画容器 */
  .loading-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      z-index: 9999;
      transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .loading-overlay.fade-out {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      z-index: -1;
  }

  /* 加载动画主体 */
  .loading-container {
      text-align: center;
      color: white;
  }

  /* 日本风格的樱花加载动画 */
  .sakura-loader {
      position: relative;
      width: 80px;
      height: 80px;
      margin: 0 auto 30px;
  }

  .sakura-petal {
      position: absolute;
      width: 12px;
      height: 12px;
      background: rgba(255, 182, 193, 0.9);
      border-radius: 0 100% 0 100%;
      animation: sakuraFall 2s infinite ease-in-out;
  }

  .sakura-petal:nth-child(1) {
      top: 0;
      left: 50%;
      animation-delay: 0s;
      background: rgba(255, 182, 193, 1);
  }

  .sakura-petal:nth-child(2) {
      top: 14%;
      right: 14%;
      animation-delay: 0.25s;
      background: rgba(255, 192, 203, 0.9);
  }

  .sakura-petal:nth-child(3) {
      right: 0;
      top: 50%;
      animation-delay: 0.5s;
      background: rgba(255, 182, 193, 0.8);
  }

  .sakura-petal:nth-child(4) {
      bottom: 14%;
      right: 14%;
      animation-delay: 0.75s;
      background: rgba(255, 192, 203, 0.7);
  }

  .sakura-petal:nth-child(5) {
      bottom: 0;
      left: 50%;
      animation-delay: 1s;
      background: rgba(255, 182, 193, 0.6);
  }

  .sakura-petal:nth-child(6) {
      bottom: 14%;
      left: 14%;
      animation-delay: 1.25s;
      background: rgba(255, 192, 203, 0.5);
  }

  .sakura-petal:nth-child(7) {
      left: 0;
      top: 50%;
      animation-delay: 1.5s;
      background: rgba(255, 182, 193, 0.4);
  }

  .sakura-petal:nth-child(8) {
      top: 14%;
      left: 14%;
      animation-delay: 1.75s;
      background: rgba(255, 192, 203, 0.3);
  }

  @keyframes sakuraFall {
      0% {
          transform: scale(1) rotate(0deg);
          opacity: 1;
      }

      50% {
          transform: scale(1.2) rotate(180deg);
          opacity: 0.8;
      }

      100% {
          transform: scale(1) rotate(360deg);
          opacity: 1;
      }
  }

  /* 加载文字动画 */
  .loading-text {
      font-size: 1.5rem;
      font-weight: 600;
      margin-bottom: 10px;
      animation: textPulse 2s infinite ease-in-out;
  }

  .loading-subtitle {
      font-size: 1rem;
      opacity: 0.8;
      animation: textPulse 2s infinite ease-in-out 0.5s;
  }

  @keyframes textPulse {

      0%,
      100% {
          opacity: 0.8;
          transform: scale(1);
      }

      50% {
          opacity: 1;
          transform: scale(1.05);
      }
  }

  /* 进度条 */
  .loading-progress {
      width: 200px;
      height: 4px;
      background: rgba(255, 255, 255, 0.2);
      border-radius: 2px;
      margin: 20px auto 0;
      overflow: hidden;
  }

  .loading-progress-bar {
      width: 0%;
      height: 100%;
      background: linear-gradient(90deg, #ff6b9d, #ffa8c5, #ff6b9d);
      border-radius: 2px;
      animation: progressMove 2s infinite ease-in-out;
  }

  @keyframes progressMove {
      0% {
          width: 0%;
      }

      50% {
          width: 80%;
      }

      100% {
          width: 100%;
      }
  }

  /* 页面容器默认可见，避免影响其他页面 */
  .page-container {
      opacity: 1;
      visibility: visible;
      transition: all 0.3s ease;
  }

  /* ----- Header ----- */
  .main-header {
      height: var(--header-height);
      background: white;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
      position: sticky;
      top: 0;
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 24px;
  }

  .header-content {
      width: 100%;
       
      display: flex;
      align-items: center;
      justify-content: space-between;
  }

  .header-brand {
      display: flex;
      align-items: center;
      text-decoration: none;
      color: var(--primary-color);
      font-weight: 700;
      font-size: 1.1rem;
  }

  .header-brand img {
      width: 80px;
      height: 40px;
      margin-right: 10px;
      border-radius: 8px;
  }

  .main-nav {
      display: flex;
      list-style: none;
      gap: 15px;
  }

  .nav-item .nav-link {
      text-decoration: none;
      color: var(--text-light);
      font-weight: 500;
      padding: 10px 15px;
      border-radius: 8px;
      position: relative;
      transition: all 0.3s ease;
  }

  .nav-item .nav-link:hover {
      color: var(--primary-color);
      background-color: rgba(28, 80, 152, 0.05);
  }

  .nav-item.active .nav-link {
      color: var(--primary-color);
      font-weight: 700;
  }

  /* 下拉菜单样式 */
  .nav-item {
      position: relative;
  }

  .dropdown-menu {
      position: absolute;
      top: 100%;
      left: 0;
      min-width: 220px;
      background: white;
      border-radius: 8px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
      border: 1px solid rgba(0, 0, 0, 0.05);
      opacity: 0;
      visibility: hidden;
      transform: translateY(10px);
      transition: all 0.3s ease;
      z-index: 1000;
      padding: 8px 0;
  }

  .nav-item:hover .dropdown-menu {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
  }

  .dropdown-item {
      display: block;
      padding: 10px 20px;
      color: #333;
      text-decoration: none;
      font-size: 14px;
      font-weight: 500;
      transition: all 0.3s ease;
      border-radius: 0;
  }

  .dropdown-item:hover {
      background: rgba(28, 80, 152, 0.05);
      color: var(--primary-color);
      padding-left: 25px;
  }

  .nav-link.has-dropdown::after {
      content: '▼';
      font-size: 10px;
      margin-left: 5px;
      transition: transform 0.3s ease;
  }

  .nav-item:hover .nav-link.has-dropdown::after {
      transform: rotate(180deg);
  }

  .hamburger-menu {
      display: none;
      cursor: pointer;
  }

  /* ----- Main Content ----- */
  main {
      padding-top: 0;
      padding-bottom: 0;
  }

  .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 24px;
  }

  /* ----- Footer ----- */
  .main-footer {
      margin-top: 20px;
      background: #2a333d;
      color: #adb5bd;
      padding: 50px 0;
      font-size: 0.9rem;
  }

  .footer-content {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 40px;
  }

  .footer-section h4 {
      color: white;
      margin-bottom: 1.2rem;
      font-size: 1.1rem;
  }

  .footer-section ul {
      list-style: none;
  }

  .footer-section li {
      margin-bottom: 0.8rem;
  }

  .footer-section a {
      color: #adb5bd;
      text-decoration: none;
      transition: color 0.3s ease;
  }

  .footer-section a:hover {
      color: white;
  }

  .footer-bottom {
      margin-top: 40px;
      padding-top: 20px;
      border-top: 1px solid #495057;
      text-align: center;
  }

  /* 悬浮搜索按钮 - 巴士形状 */
  .floating-search-btn-trigger {
      position: fixed;
      bottom: 130px;
      right: 30px;
      padding: 0;
      background: linear-gradient(135deg, #FF6B35, #F7931E, #FFD23F);
      border: none;
      border-radius: 20px 40px 40px 20px;
      color: white;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      z-index: 1000;
      box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
      overflow: hidden;
      min-width: 180px;
      height: 50px;
      animation: buttonPulse 3s infinite ease-in-out;

  }

  /* 巴士车窗效果 */
  .floating-search-btn-trigger::before {
      content: '';
      position: absolute;
      top: 8px;
      left: 15px;
      right: 15px;
      height: 12px;
      background: rgba(255, 255, 255, 0.3);
      border-radius: 6px;
      z-index: 1;
  }

  /* 巴士车轮效果 */
  .floating-search-btn-trigger::after {
      content: '';
      position: absolute;
      bottom: -3px;
      left: 20px;
      width: 12px;
      height: 12px;
      background: #333;
      border-radius: 50%;
      box-shadow: 120px 0 0 #333;
      z-index: 2;
  }

  .floating-search-btn-trigger:hover {
      transform: translateY(-3px) translateX(5px) scale(1.03);
      box-shadow: 0 12px 35px rgba(255, 107, 53, 0.6);
      animation-play-state: paused;
      background: linear-gradient(135deg, #FF8A50, #FFB347, #FFE066);
  }

  .floating-search-btn-trigger:active {
      transform: translateY(-1px) translateX(2px) scale(1.01);
  }

  /* 按钮脉动动画 - 巴士行驶效果 */
  @keyframes buttonPulse {

      0%,
      100% {
          transform: scale(1) translateX(0);
          box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
      }

      50% {
          transform: scale(1.01) translateX(2px);
          box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
      }
  }

  /* 按钮内容容器 */
  .btn-content {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 25px 25px 15px 25px;
      position: relative;
      overflow: hidden;
      width: 100%;
      height: 100%;
      z-index: 3;
  }

  /* 路线文字容器 */
  .route-text {
      position: relative;
      font-size: 13px;
      font-weight: 700;
      line-height: 1.2;
      min-height: 20px;
      width: 100%;
      text-align: center;
      z-index: 3;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  }

  /* 路线项目 */
  .route-item {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      opacity: 0;
      transform: translateY(8px);
      transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
      white-space: nowrap;
      color: white;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
      letter-spacing: 0.5px;
  }

  .route-item.active {
      opacity: 1;
      transform: translateY(0);
  }

  .route-item.exit {
      opacity: 0;
      transform: translateY(-8px);
  }

  /* 路线箭头动画 */
  .route-arrow {
      margin: 0 8px;
      display: inline-block;
      animation: arrowFlow 2s infinite ease-in-out;
      font-weight: bold;
      color: rgba(255, 255, 255, 0.9);
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  }

  @keyframes arrowFlow {

      0%,
      100% {
          transform: translateX(0) scale(1);
          opacity: 0.9;
      }

      50% {
          transform: translateX(3px) scale(1.1);
          opacity: 1;
      }
  }

  /* 巴士内部光效 */
  .btn-content::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
      animation: busShimmer 4s infinite;
      z-index: 1;
  }

  @keyframes busShimmer {
      0% {
          left: -100%;
      }

      100% {
          left: 100%;
      }
  }



  /* 响应式调整 */
  @media (max-width: 768px) {
      .floating-search-btn-trigger {

          bottom: 20px;
          right: 20px;
          min-width: 160px;
          height: 45px;
          border-radius: 18px 35px 35px 18px;
      }

      .floating-search-btn-trigger::before {
          top: 6px;
          left: 12px;
          right: 12px;
          height: 10px;
      }

      .floating-search-btn-trigger::after {
          bottom: -2px;
          left: 16px;
          width: 10px;
          height: 10px;
          box-shadow: 100px 0 0 #333;
      }

      .btn-content {
          padding: 22px 20px 12px 20px;
      }

      .route-text {
          font-size: 12px;
      }
  }

  /* 悬浮搜索组件样式 */
  .floating-search-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.7);
      backdrop-filter: blur(10px);
      z-index: 10000;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
  }

  .floating-search-overlay.active {
      opacity: 1;
      visibility: visible;
  }

  .floating-search-container {
      background: white;
      border-radius: 20px;
      padding: 0;
      max-width: 800px;
      width: 90%;
      max-height: 80vh;
      overflow-y: auto;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
      transform: scale(0.9) translateY(50px);
      transition: all 0.3s ease;
  }

  .floating-search-overlay.active .floating-search-container {
      transform: scale(1) translateY(0);
  }

  .floating-search-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 20px 30px;
      border-bottom: 1px solid #e9ecef;
      background: linear-gradient(45deg, #1c5098, #46acfe);
      color: white;
      border-radius: 20px 20px 0 0;
  }

  .floating-search-header h3 {
      margin: 0;
      font-size: 1.5rem;
      font-weight: 700;
  }

  .close-floating-search {
      background: none;
      border: none;
      color: white;
      cursor: pointer;
      padding: 5px;
      border-radius: 50%;
      transition: background-color 0.3s ease;
  }

  .close-floating-search:hover {
      background: rgba(255, 255, 255, 0.2);
  }

  .floating-search-content {
      padding: 30px;
  }

  /* 模式选择样式 */
  .search-mode {
      display: flex;
      gap: 5px;
      background: #f8f9fa;
      border-radius: 25px;
      padding: 5px;
      margin-bottom: 25px;
  }

  .mode-option {
      position: relative;
      cursor: pointer;
      padding: 8px 20px;
      border-radius: 20px;
      transition: all 0.3s ease;
      font-size: 14px;
      font-weight: 500;
      color: #666;
  }

  .mode-option input {
      display: none;
  }

  .mode-option.active,
  .mode-option:has(input:checked) {
      background: #1c5098;
      color: white;
      box-shadow: 0 2px 10px rgba(28, 80, 152, 0.3);
  }

  /* 悬浮搜索表单样式 */
  .floating-search-form {
      margin-bottom: 25px;
  }

  .floating-search-row {
      display: grid;
      grid-template-columns: 1fr auto 1fr 200px;
      gap: 15px;
      align-items: end;
      margin-bottom: 20px;
  }

  .floating-search-field {
      display: flex;
      flex-direction: column;
      gap: 8px;
  }

  .floating-search-field label {
      color: #333;
      font-weight: 600;
      font-size: 14px;
  }

  .floating-search-select,
  .floating-search-date {
      padding: 12px 15px;
      border: 2px solid #e9ecef;
      border-radius: 12px;
      font-size: 16px;
      background: white;
      transition: all 0.3s ease;
      outline: none;
      width: 100%;
      box-sizing: border-box;
  }

  /* 优化城市下拉框的显示 */
  .floating-search-select {
      /* 使用原生下拉框样式，避免选项过多的问题 */
      appearance: menulist;
      -webkit-appearance: menulist;
      -moz-appearance: menulist;
  }

  /* 自定义城市选择器容器 */
  .city-selector-container {
      position: relative;
      width: 100%;
  }

  .city-search-input {
      padding: 12px 15px;
      border: 2px solid #e9ecef;
      border-radius: 12px;
      font-size: 16px;
      background: white;
      transition: all 0.3s ease;
      outline: none;
      width: 100%;
      box-sizing: border-box;
      cursor: pointer;
  }

  .city-search-input:focus {
      border-color: #1c5098;
      box-shadow: 0 0 0 3px rgba(28, 80, 152, 0.1);
  }

  .city-dropdown {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: white;
      border: 2px solid #1c5098;
      border-top: none;
      border-radius: 0 0 12px 12px;
      max-height: 200px;
      overflow-y: auto;
      z-index: 1000;
      display: none;
  }

  .city-dropdown.active {
      display: block;
  }

  .city-option {
      padding: 10px 15px;
      cursor: pointer;
      border-bottom: 1px solid #f0f0f0;
      transition: background-color 0.2s ease;
  }

  .city-option:hover {
      background-color: #f8f9fa;
  }

  .city-option.selected {
      background-color: #1c5098;
      color: white;
  }

  .city-option.group-header {
      background-color: #f8f9fa;
      font-weight: bold;
      color: #666;
      cursor: default;
      font-size: 13px;
  }

  .city-option.group-header:hover {
      background-color: #f8f9fa;
  }

  /* 为下拉选项设置最大高度和滚动 */
  .floating-search-select option {
      padding: 8px 12px;
      font-size: 14px;
      line-height: 1.4;
      min-height: 36px;
      border-bottom: 1px solid #f0f0f0;
  }

  /* 禁用选项的样式 */
  .floating-search-select option:disabled {
      color: #999;
      background-color: #f8f9fa;
      font-weight: bold;
      font-style: italic;
  }

  /* 移动端下拉框优化 */
  .floating-search-select {
      /* 在支持的浏览器中使用原生样式 */
      -webkit-appearance: menulist;
  }

  .floating-search-select:focus,
  .floating-search-date:focus {
      border-color: #1c5098;
      box-shadow: 0 0 0 3px rgba(28, 80, 152, 0.1);
  }

  .floating-search-swap {
      display: flex;
      align-items: center;
      justify-content: center;
  }

  .floating-swap-btn {
      width: 40px;
      height: 40px;
      border: 2px solid #e9ecef;
      border-radius: 50%;
      background: white;
      color: #666;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
  }

  .floating-swap-btn:hover {
      border-color: #1c5098;
      color: #1c5098;
      transform: rotate(180deg);
  }

  .floating-search-actions {
      text-align: center;
  }

  .floating-search-btn {
      background: linear-gradient(45deg, #1c5098, #46acfe);
      color: white;
      border: none;
      padding: 15px 40px;
      border-radius: 12px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      display: inline-flex;
      align-items: center;
      gap: 8px;
  }

  .floating-search-btn:hover {
      background: linear-gradient(45deg, #0f3a6b, #1c5098);
      transform: translateY(-2px);
      box-shadow: 0 10px 30px rgba(28, 80, 152, 0.4);
  }

  /* ----- Responsive ----- */
  @media (max-width: 768px) {
      .main-nav {
          display: none;
      }

      .hamburger-menu {
          display: block;
      }

      .floating-search-container {
          width: 95%;
          margin: 20px;
          max-height: 85vh;
      }

      .floating-search-content {
          padding: 20px;
          max-height: calc(85vh - 80px);
          overflow-y: auto;
      }

      .floating-search-row {
          grid-template-columns: 1fr;
          gap: 15px;
      }

      .floating-search-swap {
          order: 3;
      }

      .floating-swap-btn {
          transform: rotate(90deg);
      }

      .floating-swap-btn:hover {
          transform: rotate(270deg);
      }

      /* 移动端下拉框优化 */
      .floating-search-select {
          /* 在移动端使用原生下拉框样式，这样选项会以系统原生方式显示 */
          appearance: menulist;
          -webkit-appearance: menulist;
          -moz-appearance: menulist;
          background-image: none;
          padding-right: 15px;
          /* 设置较小的字体以适应移动端 */
          font-size: 14px;
      }
  }