/* 全局样式 */
:root {
    --primary-color: #fcb827; /* Logo橙色 */
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --light-text: #fff;
    --border-radius: 8px;
    --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --orange-color: #fcb827; /* Logo橙色 */
    --xmiles-orange: #fcb827;
    --xmiles-blue: #562581;
    --announcement-bg: #fef4e4;
    --announcement-text: #333;
    --announcement-height: 40px;
    /* --primary-color: #562581; */
    --bs-primary-rgb: 86, 37, 129;
  }
  
  /* 公告横幅样式 */
  .announcement-banner {
    background-color: var(--xmiles-orange);
    color: white;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1031;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 12px 15px;
    font-weight: 500;
    font-size: 14px;
    animation: fadeIn 0.5s ease-in-out;
    cursor: pointer;
    padding-left: 63px;
    width: 400px;
  }

  .announcement-banner.announcement-bannerNext{
    top: 80px;
  }
  
  .announcement-icon {
    position: absolute;
    left: 20px;
    font-size: 20px;
  }
  
  .announcement-text {
    margin-right: 10px;
    line-height: 1.4;
  }
  
  .announcement-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    margin-left: 5px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .announcement-close:hover {
    color: var(--xmiles-orange);
  }
  
  /* 不再需要调整导航栏位置，因为横幅现在显示在右上角 */
  
  .announcement-hidden {
    transform: translateX(calc(100% + 20px));
    opacity: 0;
  }
  
  .announcement-minimized {
    transform: translateX(calc(100% - 40px));
    opacity: 0.8;
  }
  
  .announcement-minimized:hover {
    transform: translateX(calc(100% - 45px));
    opacity: 1;
  }
  
  .announcement-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: var(--xmiles-orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1030;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-size: 20px;
    transform: scale(0);
    transition: all 0.3s ease;
  }
  
  .announcement-toggle.visible {
    transform: scale(1);
  }
  
  @keyframes fadeIn {
    0% {
      opacity: 0;
      transform: translateY(-20px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* 响应式调整 */
  @media (max-width: 768px) {
    .announcement-text {
      font-size: 12px;
    }
  }
  
  /* 加载状态样式 */
  .loading [data-i18n] {
    visibility: hidden;
  }
  
  .loading [data-i18n]::after {
    visibility: hidden;
  }
  
  /* 基础样式 */
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
      "Helvetica Neue", Arial, sans-serif;
    padding-top: 0;
    color: var(--text-color);
    line-height: 1.6;
  }
  
  /* 导航栏样式 */
  .navbar {
    /* background: linear-gradient(135deg, 
          rgba(240, 245, 255, 0.9),
          rgba(230, 240, 255, 0.7),
          rgba(235, 245, 255, 0.8)
      ); */
    background-color: white;
    opacity: 0.9;
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    box-shadow: 0 4px 30px rgba(100, 150, 255, 0.1),
      inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(200, 220, 255, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 1rem 0;
    transition: all 0.3s ease;
  }
  
  .navbar-brand {
    font-weight: 600;
    background: linear-gradient(120deg, #562581, var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding: 0.5rem 1rem;
    margin-right: 1rem;
    transition: all 0.3s ease;
  }
  
  .navbar-brand::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
  }
  
  .navbar-brand:hover::after {
    transform: scaleX(1);
  }
  
  .nav-link {
    position: relative;
    padding: 0.5rem 1rem !important;
    color: #562581 !important;
    font-weight: 500;
    transition: all 0.3s ease;
  }
  
  .nav-link:hover {
    color: var(--primary-color) !important;
  }
  
  .nav-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--orange-color), var(--primary-color));
    transform: translateX(-50%);
    transition: width 0.3s ease;
  }
  
  .nav-link:hover::before {
    width: 80%;
  }
  
  .navbar.scrolled {
    background: linear-gradient(
      135deg,
      rgba(33, 37, 41, 0.95),
      rgba(33, 37, 41, 0.85)
    ) !important;
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  }
  
  .navbar.scrolled {
    background: linear-gradient(
      135deg,
      rgba(48, 65, 107, 0.95),
      rgba(37, 50, 82, 0.92)
    ) !important;
  }
  
  .navbar.scrolled .nav-link,
  .navbar.scrolled .navbar-brand,
  .navbar.scrolled .navbar-toggler-icon {
    color: #fff !important;
  }
  
  .navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
  }
  
  .navbar.scrolled .nav-link:hover {
    color: #ffd700 !important;
  }
  
  .navbar.scrolled .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
  }
  
  .navbar.scrolled .language-selector .btn {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
  }
  
  .navbar.scrolled .language-selector .btn:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  
  .navbar .btn {
    background: linear-gradient(135deg, var(--primary-color), #562581);
    border: none;
    padding: 0.5rem 1.5rem;
    color: white;
    font-weight: 500;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }
  
  .navbar .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  }
  
  .navbar.scrolled .btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
  }
  
  .navbar.scrolled .btn-primary:hover {
    background-color: #ff7600 !important;
    border-color: #ff7600 !important;
  }
  
  button[type="submit"]:hover {
    background-color: #ff7600 !important;
    border-color: #ff7600 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 140, 26, 0.2);
  }
  
  /* 轮播图样式 */
  .carousel {
    position: relative;
    z-index: 1;
    margin-top: -76px;
  }
  
  .carousel-inner {
    height: 100%;
  }
  
  .carousel-item {
    height: 100vh;
  }
  
  .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  
  .carousel-caption {
    bottom: auto;
    top: 40%;
    transform: translateY(-50%);
    text-align: left;
    max-width: 600px;
    padding: 0;
    left: 10%;
    right: 10%;
    padding-top: 76px;
  }
  
  .carousel-caption h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
  }
  
  .carousel-caption p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
  }
  
  .carousel-indicators {
    margin-bottom: 1rem;
  }
  
  .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 4px;
  }
  
  .carousel-indicators .active {
    opacity: 1;
    transform: scale(1.2);
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    width: 5%;
    opacity: 0;
    transition: all 0.3s ease;
  }
  
  #heroCarousel:hover .carousel-control-prev,
  #heroCarousel:hover .carousel-control-next {
    opacity: 0.8;
  }
  
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    background-size: 50%;
  }
  
  @media (max-width: 991.98px) {
    .hero-section {
      min-height: 350px;
    }
  
    .carousel-caption h2 {
      font-size: 2rem;
    }
  
    .carousel-caption p {
      font-size: 1.1rem;
    }
  }
  
  @media (max-width: 767.98px) {
    .hero-section {
      min-height: 300px;
    }
  
    .carousel-caption {
      text-align: center;
      padding: 0 15px;
    }
  
    .carousel-caption h2 {
      font-size: 1.75rem;
    }
  
    .carousel-caption p {
      font-size: 1rem;
      margin-bottom: 1rem;
    }
  }
  
  /* 语言选择器样式 */
  .language-selector {
    margin-left: 1rem;
  }
  
  .language-selector .btn {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    background: transparent;
    transition: var(--transition);
  }
  
  .language-selector .btn:hover {
    background: rgba(0, 0, 0, 0.05);
  }
  
  .language-selector .dropdown-menu {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    min-width: 140px;
  }
  
  .language-selector .dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
  }
  
  .language-selector .dropdown-item:hover {
    background: var(--primary-color);
    color: var(--light-text);
  }
  
  /* 响应式导航栏 */
  @media (max-width: 991.98px) {
    .navbar-collapse {
      background: rgba(255, 255, 255, 0.9);
      backdrop-filter: blur(10px) saturate(180%);
      -webkit-backdrop-filter: blur(10px) saturate(180%);
      border-radius: var(--border-radius);
      padding: 1rem;
      margin-top: 1rem;
      border: 1px solid rgba(255, 255, 255, 0.3);
      box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    }
  
    .navbar.scrolled .navbar-collapse {
      background: rgba(33, 37, 41, 0.95);
      border: 1px solid rgba(255, 255, 255, 0.1);
    }
  
    .navbar-nav .nav-link {
      padding: 0.75rem 1rem !important;
    }
  
    .language-selector {
      margin: 1rem 0;
    }
  }
  
  /* 导航栏追踪输入框样式 */
  #navTrackingForm {
    position: relative;
    z-index: 10;
  }
  
  #navTrackingForm .input-group {
    max-width: 300px;
    transition: all 0.3s ease;
  }
  
  .tracking-input {
    width: 100%;
    border-radius: 20px 0 0 20px !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .tracking-input:focus {
    box-shadow: none !important;
    border-color: var(--primary-color);
  }
  
  #navTrackingForm .btn {
    border-radius: 0 20px 20px 0 !important;
    padding: 0.5rem 1.25rem;
  }
  
  /* 移动端导航栏样式优化 */
  @media (max-width: 991.98px) {
    #navTrackingForm {
      width: 100%;
      margin: 0.5rem 0;
    }
  
    #navTrackingForm .input-group {
      max-width: 100%;
    }
  
    .navbar-collapse {
      padding: 1rem;
    }
  
    .navbar-nav {
      margin-bottom: 0.5rem;
    }
  
    /* 在移动端调整输入框和按钮的大小 */
    .tracking-input {
      height: 40px;
      font-size: 0.85rem;
    }
  
    #navTrackingForm .btn {
      height: 40px;
      font-size: 0.85rem;
      padding: 0.375rem 1rem;
    }
  }
  
  /* 平板设备优化 */
  @media (min-width: 992px) and (max-width: 1199.98px) {
    #navTrackingForm .input-group {
      max-width: 250px;
    }
  }
  
  /* 主横幅区域 */
  .hero-section {
    position: relative;
    padding: 0;
    height: calc(100vh - 50px);
    min-height: 400px;
    margin-top: 50px;
    background-color: #000;
    overflow: hidden;
  }
  
  #heroCarousel {
    height: 100%;
  }
  
  /* 服务卡片样式 */
  .card {
    border: none;
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.9),
      rgba(240, 245, 255, 0.8)
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(100, 150, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
  }
  
  .card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      135deg,
      rgba(43, 92, 247, 0.1),
      rgba(255, 255, 255, 0)
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    border-radius: 16px;
  }
  
  .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(100, 150, 255, 0.2);
  }
  
  .card:hover::before {
    opacity: 1;
  }
  
  .card .bi {
    font-size: 2.5rem;
    background: linear-gradient(120deg, var(--xmiles-blue), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
  }
  
  .card:hover .bi {
    transform: scale(1.1) rotate(-5deg);
  }
  
  .card-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #562581;
    transition: all 0.3s ease;
  }
  
  .card-text {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 0;
  }
  
  /* 服务部分标题 */
  .section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
  }
  
  .section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #562581, var(--primary-color));
    border-radius: 3px;
  }
  
  /* 响应式调整 */
  @media (max-width: 768px) {
    .card {
      margin-bottom: 1.5rem;
    }
  
    .card:hover {
      transform: translateY(-5px);
    }
  }
  
  /* 添加动画类 */
  .fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
  }
  
  .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* 图标样式 */
  .bi {
    display: inline-block;
    line-height: 1;
  }
  
  /* 按钮样式 */
  .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.3s ease;
  }
  
  .btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
    transition: all 0.3s ease;
  }
  
  .btn-primary:hover {
    background-color: #ff7600 !important;
    border-color: #ff7600 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 140, 26, 0.2);
  }
  
  .btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    background-color: transparent !important;
  }
  
  .btn-outline-primary:hover {
    color: white !important;
    background-color: var(--primary-color) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 140, 26, 0.2);
  }
  
  /* 确保所有按钮都有圆角和过渡效果 */
  .btn {
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
  }
  
  /* 表单提交按钮 */
  button[type="submit"] {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
  }
  
  button[type="submit"]:hover {
    background-color: #ff7600 !important;
    border-color: #ff7600 !important;
  }
  
  /* 响应式图片 */
  .img-fluid {
    max-width: 100%;
    height: auto;
  }
  
  /* 联系方式图标 */
  .contact-info i {
    width: 24px;
    height: 24px;
    margin-right: 10px;
  }
  
  /* Logo 样式 */
  .logo-text {
    font-family: "Roboto", sans-serif;
    font-size: 24px;
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
  }
  
  .logo-text::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #562581;
    background-image: linear-gradient(to right, #562581 50%, transparent 50%);
    background-size: 10px 1px;
    background-repeat: repeat-x;
  }
  
  .logo-text .primary-text {
    color: #562581;
    font-weight: 700;
  }
  
  .logo-text .secondary-text {
    color: #333333;
    font-weight: 400;
    margin-left: 5px;
  }
  
  /* 联系表单样式 */
  .form-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.3rem;
  }
  
  .form-control {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    padding: 0.5rem 0.75rem;
  }
  
  .form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  }
  
  /* 页脚样式 */
  footer {
    background: linear-gradient(
      135deg,
      rgba(48, 65, 107, 0.95),
      rgba(37, 50, 82, 0.92)
    );
    color: #fff;
  }
  
  /* 运单查询表单样式 */
  .tracking-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
  }
  
  .tracking-form input {
    height: 36px;
    max-width: 200px;
    margin: 0;
    padding: 0.25rem 0.75rem;
  }
  
  .tracking-form .btn {
    height: 36px;
    padding: 0.25rem 0.75rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* 运单查询输入框统一样式 */
  .tracking-input {
    height: 46px;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  }
  
  .tracking-input:focus {
    border-color: #562581;
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.15);
    outline: none;
  }
  
  .tracking-input::placeholder {
    color: #6c757d;
    opacity: 0.8;
  }
  
  /* 导航栏运单查询 */
  #navTrackingForm .input-group {
    width: 500px;
    max-width: 100%;
  }
  
  #navTrackingForm .btn {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  /* 主运单查询区域 */
  #trackingForm .tracking-input {
    margin-bottom: 1rem;
  }
  
  #trackingForm .btn {
    min-width: 120px;
  }
  
  /* 快速追踪输入框样式 */
  .quick-track .input-group {
    transition: all 0.3s ease;
  }
  
  .quick-track .form-control {
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
  }
  
  .quick-track .form-control:focus {
    border-color: #4a9eff;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 0.25rem rgba(74, 158, 255, 0.25);
  }
  
  .quick-track .btn-primary {
    min-width: 80px;
    height: 42px;
    border: none;
    background: linear-gradient(135deg, #4a9eff 0%, #2872cc 100%);
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
  }
  
  .quick-track .btn-primary:hover {
    background: linear-gradient(135deg, #3d8ae6 0%, #1e62b8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
  }
  
  /* 响应式调整 */
  @media (max-width: 768px) {
    .hero-section {
      text-align: center;
      padding: 4rem 0;
    }
  
    .navbar-brand img {
      height: 30px;
    }
  }
  
  @media (max-width: 991.98px) {
    .tracking-form {
      margin-top: 1rem;
      width: 100%;
      max-width: none;
    }
  }
  
  /* 动画效果 */
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* 语言切换按钮样式 */
  .btn-link {
    color: #333;
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
    transition: color 0.3s ease;
  }
  
  .btn-link:hover {
    color: #562581;
  }
  
  .btn-link.active {
    color: #562581;
    font-weight: bold;
  }
  
  /* Language Selector Styles */
  .dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
  }
  
  .dropdown-item .flag,
  .current-flag,
  .quick-track-flag {
    font-size: 1.2em;
    line-height: 1;
  }
  
  .current-flag,
  .quick-track-flag {
    display: inline-block;
    vertical-align: middle;
  }
  
  .quick-track .btn-outline-secondary {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 120px;
  }
  
  .quick-track .form-control {
    border-left: 0;
  }
  
  .dropdown-item:hover {
    background-color: #f8f9fa;
  }
  
  /* Flag colors */
  .flag-en {
    color: #012169; /* UK Blue */
  }
  
  .flag-zh {
    color: #de2910; /* China Red */
  }
  
  .flag-es {
    color: #f1bf00; /* Spain Yellow */
  }
  
  /* 右下角语言选择器样式 */
  .language-selector {
    position: fixed;
    bottom: 120px;
    right: 20px;
    z-index: 1050;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }
  
  .language-selector .btn {
    background-color: #ffffff;
    border: 2px solid #562581;
    color: #562581;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }
  
  .language-selector .btn:hover {
    background-color: #f0f7ff;
    border-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  }
  
  .language-selector .dropdown-menu {
    min-width: 160px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    margin-top: 8px;
    padding: 0.5rem;
  }
  
  .language-selector .dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    color: #1c2333;
    font-weight: 500;
    transition: all 0.2s ease;
  }
  
  .language-selector .dropdown-item:hover {
    background-color: #f0f7ff;
    color: #562581;
  }
  
  .language-selector .dropdown-item.active {
    background-color: #562581;
    color: #ffffff;
  }
  
  .language-selector .lang-code {
    display: inline-block;
    font-weight: 600;
    margin-right: 8px;
    font-size: 0.9em;
    min-width: 40px;
  }
  
  .language-selector .current-lang {
    font-weight: 500;
  }
  
  /* 响应式调整 */
  @media (max-width: 767.98px) {
    .language-selector {
      bottom: 1rem !important;
      right: 1rem !important;
    }
  
    .language-selector .btn {
      padding: 0.5rem 1rem;
      min-width: 140px;
    }
  }
  
  /* 移动端响应式优化 */
  @media (max-width: 768px) {
    /* 导航栏调整 */
    .navbar {
      padding: 0.5rem 1rem;
    }
  
    .navbar-brand img {
      height: 35px;
    }
  
    .navbar-toggler {
      border: none;
      padding: 0.25rem;
    }
  
    .navbar-toggler:focus {
      box-shadow: none;
    }
  
    /* 导航菜单样式 */
    .navbar-collapse {
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border-radius: 0 0 16px 16px;
      padding: 1rem;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
  
    .nav-link {
      padding: 0.75rem 1rem;
      border-radius: 8px;
      transition: all 0.3s ease;
    }
  
    .nav-link:hover {
      background: rgba(43, 92, 247, 0.1);
    }
  
    /* 服务卡片调整 */
    .card {
      margin-bottom: 1.5rem;
      padding: 1.25rem;
    }
  
    .card:hover {
      transform: translateY(-5px);
    }
  
    .card .bi {
      font-size: 2rem;
    }
  
    /* 主横幅调整 */
    .hero-section {
      padding-top: 60px;
    }
  
    .hero-content {
      padding: 2rem 1rem;
    }
  
    .hero-content h1 {
      font-size: 2rem;
    }
  
    .hero-content .lead {
      font-size: 1.1rem;
    }
  
    /* 按钮组调整 */
    .btn-group-lg > .btn,
    .btn-lg {
      padding: 0.5rem 1rem;
      font-size: 1rem;
    }
  
    /* 表单调整 */
    .form-control,
    .input-group {
      font-size: 0.9rem;
    }
  
    /* 间距调整 */
    .py-5 {
      padding-top: 3rem !important;
      padding-bottom: 3rem !important;
    }
  
    .mb-5 {
      margin-bottom: 2.5rem !important;
    }
  
    /* 轮播图调整 */
    .carousel-caption {
      padding: 1rem;
      background: rgba(0, 0, 0, 0.5);
      border-radius: 8px;
    }
  
    .carousel-caption h2 {
      font-size: 1.5rem;
    }
  
    .carousel-caption p {
      font-size: 1rem;
    }
  }
  
  /* 小屏幕设备优化 */
  @media (max-width: 576px) {
    .container {
      padding-left: 1rem;
      padding-right: 1rem;
    }
  
    .hero-content h1 {
      font-size: 1.6rem;
    }
  
    .btn-group-lg > .btn,
    .btn-lg {
      width: 100%;
      margin-bottom: 0.5rem;
    }
  
    .d-flex.gap-3 {
      flex-direction: column;
    }
  }
  
  /* 平板设备优化 */
  @media (min-width: 769px) and (max-width: 1024px) {
    .card {
      padding: 1.25rem;
    }
  
    .hero-content h1 {
      font-size: 2.5rem;
    }
  
    .container {
      padding-left: 2rem;
      padding-right: 2rem;
    }
  }
  
  /* 输入框和服务卡片样式修复 */
  .form-control,
  .input-group {
    position: relative;
    z-index: 10;
  }
  
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
  }
  
  .navbar-collapse {
    z-index: 1020;
  }
  
  .section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
  }
  
  .section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #562581, var(--primary-color));
    border-radius: 3px;
  }
  
  /* Tracking Container Styles */
  .tracking-container {
    min-height: 70vh;
    padding-bottom: 15vh; /* 添加底部padding使表单在视觉上更居中 */
  }
  
  .tracking-container.with-results {
    min-height: auto;
    padding-bottom: 0;
    margin-bottom: 2rem;
  }
  
  /* Loading Spinner Styles */
  .spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
  }
  
  /* Alert Styles */
  .alert {
    max-width: 600px;
    margin: 0 auto;
  }
  
  /* Timeline Styles */
  .timeline {
    position: relative;
    padding: 1rem;
  }
  
  .timeline-item {
    position: relative;
    border-left: 2px solid #e9ecef;
    margin-left: 1rem;
    padding: 1rem 0;
  }
  
  .timeline-item.connected {
    border-left: 2px solid rgba(255, 140, 0, 0.2);
  }
  
  .timeline-item.timeline-item-0 {
    border-left-color: rgba(255, 140, 0, 0.2);
  }
  
  .timeline-item.timeline-item-1 {
    border-left-color: rgba(255, 140, 0, 0.4);
  }
  
  .timeline-item.timeline-item-2 {
    border-left-color: rgba(255, 140, 0, 0.6);
  }
  
  .timeline-item.timeline-item-3 {
    border-left-color: rgba(255, 140, 0, 0.8);
  }
  
  .timeline-item.timeline-item-4,
  .timeline-item.timeline-item-5,
  .timeline-item.timeline-item-6 {
    border-left-color: rgba(255, 140, 0, 1);
  }
  
  .timeline-item::before {
    content: "";
    position: absolute;
    left: -0.5rem;
    top: 1.5rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e9ecef;
  }
  
  .timeline-item.connected::before {
    border-color: var(--xmiles-orange);
    background: #fff;
  }
  
  .timeline-item.active::before {
    background: var(--xmiles-orange);
    border-color: var(--xmiles-orange);
  }
  
  .timeline-date {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: #666;
  }
  
  .timeline-content {
    padding-left: 1rem;
  }
  
  .bg-success {
    background-color: var(--xmiles-orange) !important;
  }
  
  .bg-info {
    background-color: var(--xmiles-blue) !important;
  }
  
  .bg-warning {
    background-color: var(--xmiles-orange) !important;
  }
  
  .bg-secondary {
    background-color: #6c757d !important;
  }
  
  /* Tracking Results Styles */
  
  .tracking-item {
    margin-bottom: 1.5rem;
  }
  
  .tracking-item:last-child {
    margin-bottom: 0;
  }
  
  .tracking-item .card {
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .tracking-item .card-header {
    border-radius: 8px 8px 0 0;
    padding: 1rem;
    background-color: var(--xmiles-orange) !important;
  }
  
  .tracking-item .carrier-info {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.9);
  }
  
  .bg-dark {
    background-color: var(--xmiles-blue) !important;
  }
  