/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  background-color: #f7f8fa;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

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

@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }
}

/* 导航栏 */
.header {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 99;
  background-color: #FFF;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  gap: 20px;
}

@media (max-width: 768px) {
  .nav {
    height: 56px;
    gap: 10px;
  }

  .logo-area {
    gap: 10px;
  }

  .logo {
    font-size: 18px;
  }

  .logo-main {
    gap: 4px;
  }

  .logo-main em {
    font-size: 16px;
  }

  .logo .slogan {
    display: none;
  }

  .location-selector {
    font-size: 14px;
  }
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #ff7d00;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.logo-main strong {
  font-weight: bold;
  font-style: normal;
}

.logo-main em {
  font-style: italic;
  font-family: "STKaiti", "KaiTi", "楷体", serif;
  font-size: 22px;
  color: #ff7d00;
}

.logo .slogan {
  font-size: 12px;
  color: #999;
  font-weight: normal;
  margin: 0;
}

/* 地理位置选择器 */
.location-selector {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 16px;
  color: #333;
  width: fit-content;
}

.location-selector:hover {
  opacity: 0.8;
}

.location-selector i:first-child {
  font-size: 12px;
}

.location-selector i:last-child {
  font-size: 10px;
  margin-left: 2px;
}

.nav-menu {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-menu a {
  font-size: 15px;
  color: #333;
  position: relative;
}

.nav-menu a.active {
  color: #ff7d00;
  font-weight: bold;
}

.nav-menu a:hover {
  color: #ff7d00;
}

/* 避坑动画 */
.nav-main-text {
  font-size: 16px;
  font-weight: 500;
}

.nav-avoid-pit {
  display: inline-block;
  font-size: 12px;
  color: #ff7d00;
  vertical-align: super;
  margin-left: 2px;
  animation: floatUpAndDown 2.5s ease-in-out infinite;
}

@keyframes floatUpAndDown {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.dropdown {
  position: relative;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 160px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  padding: 8px 0;
  z-index: 100;
}

.dropdown-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: #f5f5f5;
}

.login-btn {
  padding: 6px 16px;
  border: 1px solid #ff7d00;
  color: #ff7d00;
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.2;
}

.login-btn:hover {
  background: #fff9f0;
}

.login-btn-main {
  font-size: 14px;
  font-weight: 500;
}

.login-btn-sub {
  font-size: 11px;
  color: #ff9500;
}

/* 登录弹窗 */
.login-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.login-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.login-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.login-modal.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.login-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.login-modal-header h3 {
  font-size: 18px;
  color: #333;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

.login-modal-body {
  padding: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #666;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
}

.form-group input:focus {
  border-color: #ff7d00;
}

.code-input-wrap {
  display: flex;
  gap: 10px;
}

.code-input-wrap input {
  flex: 1;
}

.get-code-btn {
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #ff7d00;
  color: #ff7d00;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap;
}

.submit-login-btn {
  width: 100%;
  padding: 14px;
  background: #ff7d00;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
}

.login-tips {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin-top: 15px;
}

/* 底部 */
.footer {
  padding: 40px 0;
  text-align: center;
  font-size: 14px;
  color: #999;
  margin-bottom: 0;
}

/* 自定义提示框 */
.custom-alert {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  min-width: 320px;
  max-width: 90%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.custom-alert.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.custom-alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.custom-alert-overlay.show {
  opacity: 1;
  visibility: visible;
}

.custom-alert-icon {
  text-align: center;
  font-size: 48px;
  margin-bottom: 15px;
}

.custom-alert-icon.success {
  color: #52c41a;
}

.custom-alert-icon.error {
  color: #ff4d4f;
}

.custom-alert-icon.warning {
  color: #faad14;
}

.custom-alert-title {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.custom-alert-message {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.custom-alert-btn {
  width: 100%;
  padding: 12px;
  background: #ff7d00;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.custom-alert-btn:hover {
  background: #e66b00;
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
}

.page-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover:not(:disabled) {
  border-color: #ff7d00;
  color: #ff7d00;
}

.page-btn.active {
  background: linear-gradient(135deg, #ff7d00, #ff9500);
  border-color: #ff7d00;
  color: #fff;
}

.page-btn.active:hover {
  opacity: .7;
  color: #fff;
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-btn.prev,
.page-btn.next {
  width: auto;
  padding: 0 14px;
}

.banner {
  margin: 0 auto;
  text-align: center;
  opacity: 0.6;
}

.banner img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
/* 面包屑导航 */
.breadcrumb {
  background: #fff;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #666;
}

.breadcrumb-list a {
  color: #666;
  transition: color 0.3s;
}

.breadcrumb-list a:hover {
  color: #ff7d00;
}

.breadcrumb-list .separator {
  color: #ccc;
}

.breadcrumb-list .current {
  color: #333;
}
/* 弹窗样式 */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.5); z-index: 9999;
}
.modal-popup {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
    background: #fff; border-radius: 12px; z-index: 10000;
    width: 340px; padding: 30px 20px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    text-align: center;
}
.modal-close {
    position: absolute; top: 10px; right: 14px;
    font-size: 24px; cursor: pointer; color: #999;
    line-height: 1;
}
.modal-close:hover { color: #333; }
.modal-content h3 {
    margin: 0 0 10px; font-size: 18px; color: #333;
}
.modal-content p {
    margin: 0 0 15px; font-size: 14px; color: #666;
}
.qr-code {
    margin: 0 auto 12px;
}
.qr-code img {
    width: 180px; height: 180px; display: block; margin: 0 auto;
    border: 1px solid #eee; border-radius: 8px;
}
.modal-tip {
    color: #999 !important; font-size: 12px !important; margin-bottom: 0 !important;
}

/* ==================== 全局遮罩层 ==================== */
.common-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    display: none;
}

/* ==================== 场景 1: 顶部滑出提示 ==================== */
.top-toast {
    position: fixed;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 300px;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: #fff;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    transition: top 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.top-toast.show {
    top: 20px;
}
.top-toast-success { background-color: #f6ffed; border: 1px solid #b7eb8f; color: #52c41a; }
.top-toast-error { background-color: #fff1f0; border: 1px solid #ffa39e; color: #ff4d4f; }

/* ==================== 场景 2 & 4: 统一弹窗基础 ==================== */
.common-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    z-index: 9999;
    width: 380px;
    max-width: 90%;
    display: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.common-popup.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}
.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid #f5f5f5;
}
.popup-header h3 {
    margin: 0;
    font-size: 18px;
    color: #222;
    font-weight: 600;
}
.popup-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #bbb;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}
.popup-close:hover { color: #666; }
.popup-body { padding: 30px 24px 24px; text-align: center; }

/* ==================== 购车查询弹窗样式 ==================== */
.query-info {
  margin-bottom: 20px;
  text-align: left;
}
.query-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  align-items: flex-start;
}
.query-label {
  font-size: 14px;
  color: #666;
  width: 80px;
  flex-shrink: 0;
}
.query-value {
  font-size: 14px;
  color: #333;
  font-weight: 500;
  flex: 1;
  text-align: right;
  margin-left: 10px;
}
.query-input-section {
  margin-bottom: 20px;
}
.query-input-section input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
}
.query-input-section input:focus {
  border-color: #ff7d00;
}
.query-input-section input::placeholder {
  color: #999;
}
.query-submit-btn {
  width: 100%;
  padding: 14px;
  background: #ff7d00;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.query-submit-btn:hover {
  background: #e67000;
}
.query-submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* ==================== 登录弹窗细节美化 (完美匹配截图) ==================== */
.login-title-main {
    font-size: 22px;
    color: #ff7d00; /* 匹配汽车服务主橙色 */
    font-weight: bold;
    margin-bottom: 6px;
}
.login-subtitle {
    font-size: 13px;
    color: #999;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}
.qrcode-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 16px;
    border: 1px solid #eee;
    padding: 8px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.qrcode-img {
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
}
.login-tips-orange {
    font-size: 14px;
    color: #ff7d00;
    font-weight: 500;
    margin-bottom: 20px;
}

/* 底部服务切换与勾选协议 */
.popup-footer-actions {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f5f5f5;
}
.agreement-label {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    margin-bottom: 12px;
}
.agreement-label input[type="checkbox"] {
    margin-right: 6px;
    cursor: pointer;
    accent-color: #ff7d00; /* 现代浏览器复选框高亮色 */
}
.agreement-label a {
    color: #ff7d00;
    text-decoration: none;
}
.agreement-label a:hover { text-decoration: underline; }

.switch-login-type {
    display: block;
    font-size: 13px;
    color: #888;
    text-decoration: none;
    margin-top: 5px;
    transition: color 0.2s;
}
.switch-login-type:hover { color: #ff7d00; }

/* ==================== 场景 3: 汽车三级联动 ==================== */
.vehicle-select-group { display: flex; gap: 10px; margin-bottom: 15px; }
.vehicle-select { flex: 1; padding: 10px 12px; border: 1px solid #d9d9d9; border-radius: 6px; font-size: 14px; color: #333; outline: none; background-color: #fff; transition: border-color 0.2s; }
.vehicle-select:focus { border-color: #ff7d00; }
.vehicle-select:disabled { background-color: #f5f5f5; color: #b8b8b8; cursor: not-allowed; }
/*
联系我们
*/
.contact-card {
  background: linear-gradient(135deg, #ff7d00, #ff9326);
  color: #fff;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.contact-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
}

.contact-desc {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 16px;
}

.contact-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #fff;
  color: #ff7d00;
  border-radius: 6px;
  font-weight: bold;
  transition: all 0.3s;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ==================== 固定悬浮在线客服 ==================== */
.float-service {
  position: fixed;
  right: 20px;
  bottom: 100px;
  z-index: 9999;
}

.service-trigger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ff7d00, #ff9326);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(255, 125, 0, 0.3);
  transition: all 0.3s ease;
}

.service-trigger i {
  font-size: 20px;
  margin-bottom: 4px;
}

.service-trigger span {
  font-size: 12px;
  font-weight: 500;
}

.service-trigger:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(255, 125, 0, 0.4);
}

.service-qrcode {
  position: absolute;
  right: 70px;
  bottom: 0;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.3s ease;
  text-align: center;
}

.float-service:hover .service-qrcode {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.service-qrcode img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
}

.service-qrcode p {
  margin-top: 8px;
  font-size: 14px;
  color: #666;
}

/* ==================== 移动端响应式导航 ==================== */
/* 默认样式 - 桌面端隐藏移动端菜单元素 */
.mobile-menu-btn {
  display: none;
}

.mobile-sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-sidebar {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100%;
  background: #fff;
  z-index: 1001;
  transition: right 0.3s ease;
  flex-direction: column;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 6px;
  }

  .mobile-sidebar-overlay {
    display: block;
  }

  .mobile-sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
  }

  .mobile-sidebar {
    display: flex;
  }

  .mobile-sidebar.show {
    right: 0;
  }

  .mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    border-radius: 1px;
    transition: all 0.3s ease;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .sidebar-nav {
    padding: 0;
    overflow-y: auto;
  }

  .sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f5f5f5;
    background: #fff;
  }

  .sidebar-header .logo-main {
    font-size: 18px;
  }

  .sidebar-header .logo-main strong {
    color: #333;
  }

  .sidebar-header .logo-main em {
    color: #ff7d00;
    font-size: 14px;
    margin-left: 4px;
  }

  .sidebar-close-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #666;
    font-size: 16px;
  }

  .sidebar-close-btn:hover {
    background: #eee;
    color: #333;
  }

  .sidebar-nav a {
    display: block;
    padding: 16px 24px;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
  }

  .sidebar-nav a:hover {
    background: #f8f8f8;
  }

  .sidebar-nav a.active {
    color: #ff7d00;
    font-weight: 500;
  }

  .sidebar-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .sidebar-link i {
    font-size: 14px;
    color: #999;
    transition: transform 0.3s ease;
  }

  .sidebar-link.active i {
    transform: rotate(180deg);
    color: #ff7d00;
  }

  .sidebar-submenu {
    display: none;
    background: #fafafa;
  }

  .sidebar-submenu.show {
    display: block;
  }

  .sidebar-submenu a {
    padding-left: 48px;
    font-size: 14px;
    color: #666;
    border-bottom: none;
  }

  .sidebar-submenu a:last-child {
    border-bottom: 1px solid #f5f5f5;
  }
}