/**
 * 红海车域 - 主样式表
 * 品牌色: #FB331F (红) / #24549B (商务蓝)
 * 参考瓜子二手车设计风格
 */

/* ========== 基础重置 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #FB331F;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

input, button, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
  border-color: #FB331F;
  box-shadow: 0 0 0 2px rgba(251, 51, 31, 0.1);
}

button {
  cursor: pointer;
  border: none;
  background: #FB331F;
  color: #fff;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.2s, transform 0.1s;
}

button:hover {
  background: #e62d1a;
}

button:active {
  transform: scale(0.98);
}

button.secondary {
  background: #24549B;
}

button.secondary:hover {
  background: #1d4785;
}

button.outline {
  background: #fff;
  color: #FB331F;
  border: 1px solid #FB331F;
}

button.outline:hover {
  background: #fff5f4;
}

/* ========== 容器 ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.container-fluid {
  padding: 0 15px;
}

/* ========== 头部导航 ========== */
.header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  background: #24549B;
  color: #fff;
  font-size: 12px;
  padding: 6px 0;
}

.header-top a {
  color: #fff;
  margin-left: 20px;
}

.header-top a:hover {
  text-decoration: underline;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 40px;
}

.logo-text {
  font-size: 22px;
  font-weight: bold;
  color: #FB331F;
}

.logo-text span {
  color: #24549B;
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-menu a {
  font-size: 16px;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #FB331F;
  border-bottom-color: #FB331F;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FB331F;
  font-weight: bold;
  font-size: 18px;
}

.header-phone i {
  font-size: 20px;
}

/* ========== 顶部导航 (top-nav) ========== */
.top-nav {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.logo-home {
  display: flex;
  align-items: center;
}

.logo-home img {
  height: 40px;
}

.city-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f5f5f5;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  position: relative;
}

.city-selector:hover {
  background: #eee;
}

.city-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 80px;
  z-index: 101;
}

.city-selector:hover .city-dropdown,
.city-dropdown.show {
  display: block;
}

.city-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
}

.city-item:hover,
.city-item.active {
  background: #f5f5f5;
  color: #FB331F;
}

.main-nav {
  display: flex;
  gap: 30px;
}

.main-nav a {
  font-size: 16px;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  color: #333;
}

.main-nav a:hover,
.main-nav a.active {
  color: #FB331F;
  border-bottom-color: #FB331F;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-phone {
  font-size: 14px;
  color: #666;
}

.login-btn {
  padding: 8px 20px;
  background: #FB331F;
  color: #fff !important;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}

.login-btn:hover {
  background: #e62d1a;
}

/* ========== 搜索栏 ========== */
.search-bar {
  background: linear-gradient(135deg, #FB331F 0%, #ff6b5a 100%);
  padding: 30px 0;
  margin-bottom: 30px;
}

.search-box {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}

.search-box input {
  flex: 1;
  height: 50px;
  font-size: 16px;
  padding: 0 20px;
  border: none;
  border-radius: 25px;
}

.search-box button {
  height: 50px;
  padding: 0 40px;
  border-radius: 25px;
  font-size: 16px;
  background: #24549B;
}

.search-box button:hover {
  background: #1d4785;
}

.search-hot {
  max-width: 800px;
  margin: 15px auto 0;
  display: flex;
  align-items: center;
  gap: 15px;
  color: #fff;
  font-size: 13px;
}

.search-hot span {
  opacity: 0.8;
}

.search-hot a {
  color: #fff;
  background: rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 12px;
}

.search-hot a:hover {
  background: rgba(255,255,255,0.3);
}

/* ========== 品牌筛选 ========== */
.brand-filter {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.brand-filter-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.brand-item {
  padding: 8px 20px;
  background: #f5f5f5;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.brand-item:hover,
.brand-item.active {
  background: #FB331F;
  color: #fff;
}

/* ========== 车辆卡片 ========== */
.car-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 992px) {
  .car-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .car-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .car-grid {
    grid-template-columns: 1fr;
  }
}

.car-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.car-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.car-card-image {
  position: relative;
  padding-top: 66.67%;
  background: #f5f5f5;
}

.car-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.car-card-tags {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.car-tag {
  background: rgba(251, 51, 31, 0.9);
  color: #fff;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
}

.car-tag.green {
  background: rgba(34, 139, 34, 0.9);
}

.car-tag.blue {
  background: rgba(36, 84, 155, 0.9);
}

.car-card-featured {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #FFD700;
  color: #333;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: bold;
}

.car-card-body {
  padding: 15px;
}

.car-card-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.car-card-info {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: #999;
  margin-bottom: 10px;
}

.car-card-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.car-price-current {
  font-size: 22px;
  font-weight: bold;
  color: #FB331F;
}

.car-price-current small {
  font-size: 14px;
  font-weight: normal;
}

.car-price-guide {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
}

.car-card-down {
  font-size: 12px;
  color: #666;
  margin-top: 8px;
}

.car-card-down span {
  color: #FB331F;
  font-weight: 500;
}

/* ========== 精选车源 ========== */
.featured-section {
  margin-bottom: 30px;
}

.section-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: #FB331F;
  border-radius: 2px;
}

.section-more {
  font-size: 14px;
  color: #999;
  margin-left: auto;
}

/* ========== 筛选条件 ========== */
.filter-bar {
  background: #fff;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-group label {
  color: #666;
  font-size: 14px;
}

.filter-group select {
  min-width: 120px;
  padding: 6px 10px;
}

.filter-reset {
  color: #999;
  font-size: 13px;
  cursor: pointer;
}

.filter-reset:hover {
  color: #FB331F;
}

/* ========== 分页 ========== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 30px 0;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #666;
  font-size: 14px;
  transition: all 0.2s;
}

.pagination a:hover {
  border-color: #FB331F;
  color: #FB331F;
}

.pagination .active {
  background: #FB331F;
  border-color: #FB331F;
  color: #fff;
}

.pagination .disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========== 详情页 ========== */
.detail-header {
  background: #fff;
  padding: 30px 0;
  margin-bottom: 30px;
}

.detail-gallery {
  display: flex;
  gap: 20px;
}

.detail-main-image {
  flex: 1;
  max-width: 600px;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}

.detail-main-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.detail-thumbs {
  width: 100px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-thumb {
  width: 100%;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.detail-thumb:hover,
.detail-thumb.active {
  border-color: #FB331F;
}

.detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info {
  flex: 1;
  padding-left: 30px;
}

.detail-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
}

.detail-price-box {
  background: linear-gradient(135deg, #fff5f4 0%, #ffe8e6 100%);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.detail-price {
  font-size: 36px;
  font-weight: bold;
  color: #FB331F;
}

.detail-price small {
  font-size: 18px;
}

.detail-price-guide {
  font-size: 14px;
  color: #999;
  margin-top: 5px;
}

.detail-price-guide span {
  text-decoration: line-through;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.detail-meta-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.detail-meta-item label {
  color: #999;
}

.detail-meta-item span {
  font-weight: 500;
}

.detail-actions {
  display: flex;
  gap: 15px;
}

.detail-actions button {
  flex: 1;
  height: 50px;
  font-size: 16px;
}

/* ========== 底部 ========== */
.footer {
  background: #2a2a2a;
  color: #999;
  padding: 40px 0 20px;
  margin-top: 50px;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
  }
}

.footer-brand h3 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 15px;
}

.footer-brand p {
  line-height: 1.8;
  margin-bottom: 15px;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-contact i {
  color: #FB331F;
}

.footer-links h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 15px;
}

.footer-links a {
  display: block;
  margin-bottom: 10px;
  color: #999;
}

.footer-links a:hover {
  color: #FB331F;
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
}

/* ========== 后台管理 ========== */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 240px;
  background: #2a2a2a;
  color: #fff;
  flex-shrink: 0;
}

.admin-sidebar-header {
  padding: 20px;
  border-bottom: 1px solid #444;
  text-align: center;
}

.admin-sidebar-header h2 {
  font-size: 18px;
  color: #FB331F;
}

.admin-menu {
  padding: 20px 0;
}

.admin-menu-item {
  display: block;
  padding: 12px 20px;
  color: #ccc;
  transition: all 0.2s;
}

.admin-menu-item:hover,
.admin-menu-item.active {
  background: rgba(251, 51, 31, 0.1);
  color: #FB331F;
  border-left: 3px solid #FB331F;
}

.admin-main {
  flex: 1;
  background: #f5f5f5;
}

.admin-header {
  background: #fff;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.admin-content {
  padding: 30px;
}

.admin-card {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.admin-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.admin-card-title {
  font-size: 18px;
  font-weight: bold;
}

/* ========== 表格 ========== */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.data-table th {
  background: #fafafa;
  font-weight: 500;
  color: #666;
}

.data-table tr:hover {
  background: #fafafa;
}

.table-actions {
  display: flex;
  gap: 10px;
}

.table-actions a,
.table-actions button {
  padding: 4px 12px;
  font-size: 13px;
}

/* ========== 表单 ========== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ========== 工具类 ========== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: #FB331F; }
.text-muted { color: #999; }
.text-bold { font-weight: bold; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.p-20 { padding: 20px; }
.p-30 { padding: 30px; }

.flex { display: flex; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }

.hidden { display: none; }
.clearfix::after { content: ''; display: table; clear: both; }

/* ========== 全局在线咨询叠加态 ========== */
.consult-panel{position:fixed;bottom:20px;right:20px;width:360px;max-width:92vw;background:#fff;border-radius:14px;box-shadow:0 12px 48px rgba(0,0,0,0.25);overflow:hidden;font-family:inherit;z-index:10001;}
.consult-panel-min{display:none;}
.consult-panel-header{background:linear-gradient(135deg,#24549B,#1a3d7a);color:#fff;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;cursor:move;user-select:none;}
.consult-panel-title{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:600;overflow:hidden;}
.consult-panel-title i{font-size:17px;}
.consult-panel-title .cp-car-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.consult-panel-actions{display:flex;gap:6px;}
.cp-btn{background:rgba(255,255,255,0.15);border:none;color:#fff;width:28px;height:28px;border-radius:6px;cursor:pointer;font-size:16px;display:flex;align-items:center;justify-content:center;transition:background .2s;}
.cp-btn:hover{background:rgba(255,255,255,0.3);}
.cp-btn-close:hover{background:rgba(251,51,31,0.7);}
.consult-panel-carbar{padding:10px 16px;background:#f8fafc;border-bottom:1px solid #e8ecf0;display:flex;align-items:center;gap:10px;font-size:13px;overflow:hidden;}
.cp-label{color:#999;flex-shrink:0;}
.consult-panel-carbar .cp-car-name-full{font-weight:600;color:#333;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.cp-price{font-weight:700;color:#FB331F;font-size:15px;flex-shrink:0;}
.cp-detail-link{flex-shrink:0;display:inline-flex;align-items:center;gap:3px;color:#24549B;font-size:12px;text-decoration:none;padding:3px 8px;border:1px solid #24549B;border-radius:4px;}
.consult-chat-area{height:280px;overflow-y:auto;padding:14px 16px;background:#f5f7fa;}
.cp-welcome{text-align:center;padding:20px 0;color:#999;font-size:13px;}
.cp-welcome i{font-size:30px;color:#24549B;display:block;margin:0 auto 8px;}
.consult-panel-input{padding:10px 14px;border-top:1px solid #e8ecf0;display:flex;gap:8px;align-items:flex-end;background:#fff;}
.consult-input{flex:1;resize:none;border:1px solid #ddd;border-radius:10px;padding:10px 14px;font-size:14px;height:42px;max-height:80px;line-height:1.4;outline:none;font-family:inherit;}
.consult-input:focus{border-color:#24549B;}
.consult-panel-input button{background:linear-gradient(135deg,#24549B,#1a3d7a);color:#fff;border:none;border-radius:10px;padding:10px 16px;font-size:14px;cursor:pointer;font-weight:500;white-space:nowrap;}
.consult-badge{position:fixed;right:20px;bottom:16px;background:#fff;border-radius:24px;padding:8px 10px 8px 14px;box-shadow:0 4px 20px rgba(0,0,0,0.18);display:flex;align-items:center;gap:6px;cursor:pointer;z-index:10002;font-size:13px;font-family:inherit;transition:transform .15s;}
.consult-badge:hover{transform:scale(1.04);}
.consult-badge i{color:#24549B;font-size:14px;}
.consult-badge .cb-name{font-weight:600;color:#333;max-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.consult-badge .cb-close{color:#999;font-size:16px;line-height:1;margin-left:2px;}
.consult-badge .cb-close:hover{color:#FB331F;}
@keyframes consultReopenFlash{0%{box-shadow:0 0 0 0 rgba(251,51,31,0.6)}50%{box-shadow:0 0 20px 6px rgba(251,51,31,0.4)}100%{box-shadow:0 12px 48px rgba(0,0,0,0.25)}}
/* ========== 移动端全面优化 ========== */

/* === 导航栏移动端优化 === */
@media (max-width: 768px) {
  .top-nav-content {
    flex-wrap: wrap;
    padding: 10px 0;
    gap: 10px;
  }
  
  .logo-home img {
    height: 32px;
  }
  
  .main-nav {
    order: 3;
    width: 100%;
    gap: 0;
    justify-content: space-around;
    border-top: 1px solid #f0f0f0;
    padding-top: 8px;
    margin-top: 5px;
  }
  
  .main-nav a {
    font-size: 14px;
    padding: 6px 8px;
    border-bottom: none;
  }
  
  .main-nav a.active {
    border-bottom: none;
    background: rgba(251, 51, 31, 0.1);
    border-radius: 4px;
  }
  
  .nav-right {
    gap: 10px;
    flex-shrink: 0;
  }
  
  .nav-phone {
    font-size: 13px;
    white-space: nowrap;
  }
  
  .nav-phone i {
    font-size: 14px;
  }
  
  .login-btn {
    padding: 6px 14px;
    font-size: 13px;
  }
  
  .city-selector {
    padding: 4px 8px;
    font-size: 13px;
  }
}

/* === 首页 Hero 区域移动端优化 === */
@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: 30px 0 40px;
  }
  
  .hero-title {
    font-size: 26px;
    margin-bottom: 10px;
  }
  
  .hero-subtitle {
    font-size: 18px;
    margin-bottom: 15px;
  }
  
  .hero-tags {
    font-size: 13px;
    margin-bottom: 25px;
  }
  
  .hero-tags span {
    margin: 0 8px;
  }
  
  .search-box-home {
    padding: 20px;
    border-radius: 10px;
  }
  
  .search-tabs {
    gap: 10px;
    margin-bottom: 15px;
  }
  
  .search-tab {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .search-input-wrap {
    flex-direction: column;
    gap: 10px;
  }
  
  .search-input-wrap input {
    height: 44px;
    font-size: 14px;
  }
  
  .search-input-wrap button {
    height: 44px;
    padding: 0 20px;
    font-size: 15px;
    width: 100%;
  }
  
  .search-hot-home {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
  }
  
  .search-hot-home span {
    font-size: 13px;
  }
  
  .search-hot-home a {
    padding: 5px 12px;
    font-size: 13px;
  }
}

/* === 服务优势区域移动端优化 === */
@media (max-width: 768px) {
  .service-section {
    padding: 30px 0;
    margin-top: -20px;
  }
  
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .service-card {
    padding: 20px 15px;
  }
  
  .service-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  
  .service-card h4 {
    font-size: 14px;
  }
  
  .service-card p {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

/* === 筛选栏移动端优化 === */
@media (max-width: 768px) {
  .filter-section {
    padding: 15px 0;
  }
  
  .filter-row {
    gap: 12px;
  }
  
  .filter-item {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .filter-label {
    font-size: 13px;
    width: auto;
  }
  
  .filter-values {
    gap: 6px;
  }
  
  .filter-value {
    padding: 5px 12px;
    font-size: 13px;
  }
}

/* === 车源列表移动端优化 === */
@media (max-width: 768px) {
  .section-title {
    font-size: 20px;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .car-card-title {
    font-size: 14px;
  }
  
  .car-card-info {
    font-size: 12px;
  }
  
  .car-card-price {
    font-size: 18px;
  }
  
  .car-card-price span {
    font-size: 12px;
  }
}

/* === 品牌筛选移动端优化 === */
@media (max-width: 768px) {
  .brand-filter {
    padding: 15px;
  }
  
  .brand-filter-title {
    font-size: 14px;
  }
  
  .brand-list {
    gap: 8px;
  }
  
  .brand-item {
    padding: 6px 14px;
    font-size: 13px;
  }
}

/* === 页脚移动端优化 === */
@media (max-width: 768px) {
  .footer {
    padding: 30px 0 15px;
  }
  
  .footer-brand h3 {
    font-size: 18px;
  }
  
  .footer-links h4 {
    font-size: 14px;
  }
  
  .footer-links a {
    font-size: 13px;
  }
}

/* === 咨询面板移动端优化 === */
@media (max-width: 768px) {
  .consult-panel {
    width: 100%;
    max-width: none;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 14px 14px 0 0;
  }
  
  .consult-chat-area {
    height: 240px;
  }
  
  .consult-badge {
    right: 10px;
    bottom: 10px;
  }
}

/* === 登录弹窗移动端优化 === */
@media (max-width: 480px) {
  .login-modal {
    width: 92vw;
    max-width: 360px;
  }
  
  .login-modal-header {
    padding: 15px 20px 0;
  }
  
  .login-modal-body {
    padding: 20px;
  }
}


/* ========== 首页专用样式（从 index.html 内联样式合并） ========== */
/* 首页专用样式 */
    .hero-section {
      background: linear-gradient(135deg, #1a3a5c 0%, #2d5a87 50%, #3d7ab5 100%);
      min-height: 480px;
      padding: 60px 0 80px;
      position: relative;
      overflow: hidden;
    }
    .hero-section::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="80" cy="20" r="40" fill="rgba(255,255,255,0.03)"/><circle cx="20" cy="80" r="30" fill="rgba(255,255,255,0.02)"/></svg>');
      pointer-events: none;
    }
    .hero-content {
      position: relative;
      z-index: 1;
    }
    .hero-title {
      font-size: 42px;
      font-weight: bold;
      color: #fff;
      margin-bottom: 15px;
    }
    .hero-subtitle {
      font-size: 28px;
      color: #FB331F;
      font-weight: bold;
      margin-bottom: 20px;
    }
    .hero-tags {
      color: rgba(255,255,255,0.8);
      font-size: 16px;
      margin-bottom: 40px;
    }
    .hero-tags span {
      margin: 0 15px;
    }
    .search-box-home {
      background: #fff;
      border-radius: 12px;
      padding: 30px;
      max-width: 700px;
      box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    }
    .search-tabs {
      display: flex;
      gap: 20px;
      margin-bottom: 20px;
      border-bottom: 2px solid #f0f0f0;
    }
    .search-tab {
      padding: 12px 30px;
      font-size: 16px;
      font-weight: 500;
      color: #666;
      cursor: pointer;
      border-bottom: 3px solid transparent;
      transition: all 0.3s;
    }
    .search-tab.active {
      color: #1a3a5c;
      border-bottom-color: #1a3a5c;
    }
    .search-input-wrap {
      display: flex;
      gap: 15px;
    }
    .search-input-wrap input {
      flex: 1;
      height: 50px;
      border: 1px solid #ddd;
      border-radius: 8px;
      padding: 0 20px;
      font-size: 15px;
    }
    .search-input-wrap button {
      height: 50px;
      padding: 0 40px;
      background: #FB331F;
      border-radius: 8px;
      font-size: 16px;
      font-weight: 500;
    }
    .search-hot-home {
      margin-top: 15px;
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 14px;
    }
    .search-hot-home span {
      color: #999;
    }
    .search-hot-home a {
      color: #666;
      background: #f5f5f5;
      padding: 6px 16px;
      border-radius: 16px;
      transition: all 0.2s;
    }
    .search-hot-home a:hover {
      background: #FB331F;
      color: #fff;
    }
    /* 服务优势 */
    .service-section {
      background: #fff;
      padding: 40px 0;
      margin-top: -40px;
      position: relative;
      z-index: 2;
    }
    .service-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 30px;
    }
    .service-card {
      background: #f8f9fa;
      border-radius: 12px;
      padding: 30px;
      text-align: center;
      transition: all 0.3s;
    }
    .service-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    .service-icon {
      width: 60px;
      height: 60px;
      margin: 0 auto 15px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
    }
    .service-icon.red { background: #fff0ee; color: #FB331F; }
    .service-icon.blue { background: #eef4ff; color: #24549B; }
    .service-icon.green { background: #e8f5e9; color: #22c55e; }
    .service-icon.orange { background: #fff3e0; color: #f59e0b; }
    /* 检索筛选栏 */
    .filter-section {
      background: #fff;
      padding: 20px 0;
      border-bottom: 1px solid #eee;
    }
    .filter-row {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
    }
    .filter-item {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .filter-label {
      color: #999;
      font-size: 14px;
      width: 50px;
    }
    .filter-values {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .filter-value {
      padding: 6px 15px;
      font-size: 14px;
      color: #333;
      border-radius: 4px;
      transition: all 0.2s;
    }
    .filter-value:hover {
      color: #FB331F;
    }
    .filter-value.active {
      background: #FB331F;
      color: #fff;
    }
    .filter-selected {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: 15px;
      padding: 12px 15px;
      background: #fafafa;
      border-radius: 4px;
    }
    .selected-label {
      color: #999;
      font-size: 14px;
    }
    .selected-tag {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: #fff;
      border: 1px solid #FB331F;
      color: #FB331F;
      padding: 5px 10px;
      border-radius: 4px;
      font-size: 13px;
    }
    .selected-tag i {
      cursor: pointer;
    }
    .clear-all {
      color: #999;
      font-size: 13px;
      margin-left: auto;
    }
    .filter-sort {
      display: flex;
      gap: 15px;
      margin-top: 15px;
      padding-top: 15px;
      border-top: 1px solid #f0f0f0;
    }
    .sort-item {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 6px 15px;
      font-size: 14px;
      color: #666;
      background: #f5f5f5;
      border-radius: 4px;
      transition: all 0.2s;
    }
    .sort-item:hover, .sort-item.active {
      background: #FB331F;
      color: #fff;
    }
    .service-title {
      font-size: 18px;
      font-weight: bold;
      color: #333;
      margin-bottom: 8px;
    }
    .service-desc {
      font-size: 14px;
      color: #999;
    }
    /* 精选车源 */
    .featured-section-home {
      background: #f5f5f5;
      padding: 60px 0;
    }
    .section-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 30px;
    }
    .section-title-home {
      font-size: 28px;
      font-weight: bold;
      color: #333;
    }
    .section-title-home span {
      color: #FB331F;
    }
    .view-more {
      color: #666;
      font-size: 14px;
      display: flex;
      align-items: center;
      gap: 5px;
    }
    .view-more:hover {
      color: #FB331F;
    }
    /* 顶部导航 */
    .top-nav {
      background: #fff;
      border-bottom: 1px solid #f0f0f0;
    }
    .top-nav-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 15px 0;
    }
    .logo-home {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .logo-icon {
      width: 40px;
      height: 40px;
      background: #FB331F;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-size: 20px;
    }
    .logo-text-home {
      font-size: 22px;
      font-weight: bold;
      color: #333;
    }
    .logo-text-home span {
      color: #FB331F;
    }
    .city-selector {
      display: flex;
      align-items: center;
      gap: 5px;
      color: #666;
      font-size: 14px;
      cursor: pointer;
      padding: 5px 15px;
      border: 1px solid #ddd;
      border-radius: 20px;
      position: relative;
    }
    .city-dropdown {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      margin-top: 5px;
      background: #fff;
      border: 1px solid #ddd;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      min-width: 100px;
      z-index: 1000;
    }
    .city-dropdown.show {
      display: block;
    }
    .city-item {
      padding: 10px 15px;
      cursor: pointer;
      transition: background 0.2s;
    }
    .city-item:hover {
      background: #f5f5f5;
    }
    .city-item.active {
      color: #FB331F;
      font-weight: 500;
    }
    .main-nav {
      display: flex;
      gap: 40px;
    }
    .main-nav a {
      font-size: 16px;
      color: #333;
      font-weight: 500;
      padding: 5px 0;
      border-bottom: 2px solid transparent;
    }
    .main-nav a:hover, .main-nav a.active {
      color: #FB331F;
      border-bottom-color: #FB331F;
    }
    .nav-right {
      display: flex;
      align-items: center;
      gap: 20px;
    }
    .nav-phone {
      color: #FB331F;
      font-size: 18px;
      font-weight: bold;
    }
    .login-btn {
      background: #FB331F;
      color: #fff;
      padding: 8px 25px;
      border-radius: 20px;
      font-size: 14px;
    }
  
    /* 品牌展示区 - 瓜子风格 */
    .brand-showcase {
      background: #fff;
      border-radius: 12px;
      padding: 30px;
      margin-bottom: 20px;
      box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    }
    .brand-grid {
      display: grid;
      grid-template-columns: repeat(10, 1fr);
      gap: 15px;
    }
    .brand-grid-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 15px 10px;
      border-radius: 8px;
      transition: all 0.2s;
      text-decoration: none;
    }
    .brand-grid-item:hover {
      background: #f8f9fa;
      transform: translateY(-2px);
    }
    .brand-grid-logo {
      width: 48px;
      height: 48px;
      object-fit: contain;
      margin-bottom: 8px;
      filter: grayscale(100%);
      opacity: 0.8;
      transition: all 0.2s;
    }
    .brand-grid-item:hover .brand-grid-logo {
      filter: grayscale(0%);
      opacity: 1;
    }
    .brand-grid-name {
      font-size: 12px;
      color: #333;
      text-align: center;
      white-space: nowrap;
    }
    .brand-grid-item:hover .brand-grid-name {
      color: #FB331F;
    }
    @media (max-width: 768px) {
      .brand-grid {
        grid-template-columns: repeat(5, 1fr);
      }
    }

    /* ===== 首页移动端优化 ===== */
    @media (max-width: 768px) {
      .hero-section {
        min-height: auto;
        padding: 25px 0 35px;
      }
      .hero-title {
        font-size: 24px;
        margin-bottom: 8px;
      }
      .hero-subtitle {
        font-size: 16px;
        margin-bottom: 12px;
      }
      .hero-tags {
        font-size: 12px !important;
        margin-bottom: 20px !important;
      }
      .hero-tags span {
        margin: 0 4px;
      }
      .search-box-home {
        padding: 18px 15px;
        border-radius: 10px;
        margin: 0 -5px;
      }
      .search-tabs {
        gap: 8px;
        margin-bottom: 12px;
      }
      .search-tab {
        padding: 8px 16px;
        font-size: 14px;
      }
      .search-input-wrap {
        flex-direction: column;
        gap: 10px;
      }
      .search-input-wrap input {
        height: 42px;
        font-size: 14px;
        padding: 0 15px;
      }
      .search-input-wrap button {
        height: 42px;
        padding: 0;
        font-size: 15px;
        width: 100%;
      }
      .search-hot-home {
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 12px;
        font-size: 12px;
      }
      .search-hot-home span {
        width: 100%;
        margin-bottom: 4px;
      }
      .search-hot-home a {
        padding: 4px 10px;
        font-size: 12px;
        border-radius: 12px;
      }
      .service-section {
        padding: 25px 0;
        margin-top: -15px;
      }
      .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
      }
      .service-card {
        padding: 15px 10px;
      }
      .service-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
      }
      .service-card h4 {
        font-size: 13px;
        margin-bottom: 4px;
      }
      .service-card p {
        font-size: 11px;
      }
    }
    @media (max-width: 480px) {
      .service-grid {
        grid-template-columns: 1fr;
      }
      .search-hot-home a {
        padding: 3px 8px;
        font-size: 11px;
      }
    }

    /* ===== 登录浮层弹窗 ===== */
    .login-modal-mask {
      display: none;
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.55);
      z-index: 9999;
      align-items: center;
      justify-content: center;
      backdrop-filter: blur(2px);
    }
    .login-modal-mask.show {
      display: flex;
    }
    .login-modal {
      background: #fff;
      width: 420px;
      border-radius: 16px;
      box-shadow: 0 24px 80px rgba(0,0,0,0.25);
      overflow: hidden;
      position: relative;
    }
    .login-modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 20px 24px 0;
    }
    .login-modal-logo {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .login-modal-logo-icon {
      width: 36px; height: 36px;
      background: #FB331F;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      color: #fff; font-size: 18px;
    }
    .login-modal-logo-name {
      font-size: 20px; font-weight: 700; color: #24549B;
    }
    .login-modal-close {
      width: 32px; height: 32px;
      border-radius: 50%;
      background: #f5f5f5;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
      color: #999;
      font-size: 18px;
      transition: background 0.2s;
      border: none;
    }
    .login-modal-close:hover { background: #eee; color: #666; }
    .login-modal-body { padding: 24px 28px 32px; }
    .login-modal-title {
      font-size: 22px; font-weight: 700; color: #222;
      margin-bottom: 24px; margin-top: 16px;
    }
    .login-modal-tab {
      display: flex; gap: 0;
      border-bottom: 2px solid #eee;
      margin-bottom: 24px;
    }
    .login-modal-tab .tab {
      padding: 10px 20px;
      font-size: 15px; color: #999;
      cursor: pointer; border: none; background: none;
      border-bottom: 2px solid transparent;
      margin-bottom: -2px;
      transition: all 0.2s;
    }
    .login-modal-tab .tab.active {
      color: #24549B; font-weight: 600;
      border-bottom-color: #24549B;
    }
    .login-modal-error {
      display: none; margin-bottom: 12px;
      padding: 10px 14px;
      background: #FFF5F5; border-radius: 6px;
      border: 1px solid #FFD7D7;
      color: #FB331F; font-size: 13px;
    }
    .login-modal-form { display: none; }
    .login-modal-form.active { display: block; }
    .login-modal-input-group { margin-bottom: 16px; }
    .login-modal-input-group label {
      display: block; font-size: 13px; color: #666; margin-bottom: 8px;
    }
    .login-modal-input-group input {
      width: 100%; padding: 12px 14px;
      border: 1.5px solid #e0e0e0; border-radius: 8px;
      font-size: 15px; outline: none; transition: border-color 0.2s;
      box-sizing: border-box;
    }
    .login-modal-input-group input:focus { border-color: #24549B; }
    .login-modal-input-group input::placeholder { color: #ccc; }
    .login-modal-row { display: flex; gap: 10px; }
    .login-modal-row input { flex: 1; }
    .login-modal-send-btn {
      padding: 12px 14px;
      background: #fff; border: 1.5px solid #24549B;
      border-radius: 8px; color: #24549B;
      font-size: 13px; cursor: pointer; white-space: nowrap;
      transition: all 0.2s;
    }
    .login-modal-send-btn:hover { background: #f0f5ff; }
    .login-modal-send-btn:disabled { color: #ccc; border-color: #e0e0e0; cursor: not-allowed; }
    .login-modal-submit {
      width: 100%; padding: 13px;
      background: linear-gradient(135deg, #24549B 0%, #1a3d7a 100%);
      color: #fff; border: none; border-radius: 8px;
      font-size: 16px; font-weight: 600; cursor: pointer;
      margin-top: 6px; transition: opacity 0.2s;
    }
    .login-modal-submit:hover { opacity: 0.85; }
    .login-modal-footer {
      text-align: center; margin-top: 20px;
      font-size: 12px; color: #bbb;
    }
    .login-modal-footer a { color: #24549B; text-decoration: none; }
    .login-modal-footer a:hover { text-decoration: underline; }
    .login-modal-reg-link {
      text-align: center; margin-top: 16px;
      font-size: 14px; color: #999;
    }
    .login-modal-reg-link a { color: #24549B; text-decoration: none; font-weight: 500; }
    .login-modal-reg-link a:hover { text-decoration: underline; }

    @media (max-width: 480px) {
      .login-modal { width: 95vw; }
    }
