/* cheyuan 页面专属样式 */
/* 主内容布局 */
.main-content {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

/* 侧边栏 */
.sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  height: fit-content;
}

.sidebar-section {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.sidebar-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-title i {
  color: #ff7d00;
}

.search-box {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: all 0.3s;
  box-sizing: border-box;
}

.search-input:focus {
  border-color: #ff7d00;
  box-shadow: 0 0 0 3px rgba(255, 125, 0, 0.1);
}

.filter-item {
  margin-bottom: 15px;
}

.filter-item label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}

.filter-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
  outline: none;
  transition: all 0.3s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.filter-select:hover {
  border-color: #ff7d00;
}

.filter-select:focus {
  border-color: #ff7d00;
  box-shadow: 0 0 0 3px rgba(255, 125, 0, 0.1);
}

.search-btn {
  width: 100%;
  padding: 12px;
  background: #ff7d00;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s;
}

.search-btn:hover {
  background: #ff9500;
}

.publish-btn {
  width: 100%;
  padding: 12px;
  /* background: linear-gradient(135deg, #ff7d00, #ff9500); */
  background-color: #FFF;
  color: #ff7d00;
  border: 1px solid #ff7d00;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(255, 125, 0, 0.3);
}

.publish-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 125, 0, 0.4);
}

/* 排序/筛选栏 */
.sort-bar {
  background: #fff;
  padding: 15px 0;
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
}
.sort-item {
  font-size: 14px;
  color: #666;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  transition: all 0.3s;
}
.sort-item:hover,
.sort-item.active {
  color: #ff7d00;
  background: #fff2e5;
}
.sort-item.active {
  font-weight: 600;
}

/* 左侧：车源卡片区域 */
.clear-car-list-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 车源卡片列表 */
.clear-car-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 0;
}
.car-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  transition: 0.3s;
  border: 1px solid #f0f0f0;
}
.car-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.car-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.car-info {
  padding: 16px;
}
.car-info-top{
  display: flex; justify-content: space-between; align-items: start;
}
.car-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 6px;
}
.stock-tag {
  display: inline-block;
  font-size: 12px;
  background: #fff2e5;
  color: #ff7d00;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.discount-badge {
  display: inline-block;
  font-size: 12px;
  background: linear-gradient(135deg, #ff7d00, #ff4d4f);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  font-weight: 600;
}
.price-row {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
  align-items: center;
}
.price-old {
  font-size: 14px;
  color: #999;
  text-decoration: line-through;
}
.price-now {
  font-size: 18px;
  font-weight: bold;
  color: #ff7d00;
}
.cut-price {
  font-size: 13px;
  color: #fff;
  background: #ff4d4f;
  padding: 2px 6px;
  border-radius: 4px;
}
.car-features {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.feature-tag {
  font-size: 11px;
  background: #f5f5f5;
  color: #666;
  padding: 2px 6px;
  border-radius: 3px;
}
.store-name {
  font-size: 13px;
  color: #666;
  margin: 8px 0;
}
.car-btns {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.contact-btn {
  flex: 1;
  padding: 10px;
  text-align: center;
  background: linear-gradient(135deg, #ff7d00, #ff9500);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}
.contact-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(255, 125, 0, 0.3);
}
.book-btn {
  flex: 1;
  padding: 10px;
  text-align: center;
  background: #fff;
  color: #ff7d00;
  border: 1px solid #ff7d00;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}
.book-btn:hover {
  background: #fff2e5;
}



/* 平台保障说明 */
.trust-section {
  padding: 30px 0;
  margin-top: 20px;
  border-radius: 12px;
}
.trust-title {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 25px;
  color: #333;
}
.trust-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  background: #ffffff;
  border-radius: 8px;
}
.trust-icon {
  font-size: 24px;
  flex-shrink: 0;
}
.trust-content h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}
.trust-content p {
  font-size: 12px;
  color: #999;
  line-height: 1.5;
}
.no-data{
  padding:300px 0;
  text-align: center;
}

/* 搜索区域样式 - 默认PC端隐藏 */
.search-section {
  display: none;
  background: #fff;
  padding: 20px 0;
  border-bottom: 1px solid #f0f0f0;
}
.search-container {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.search-bar {
  display: flex;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.search-bar .search-input {
  flex: 1;
  padding: 12px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: 0.3s;
}
.search-bar .search-input:focus {
  border-color: #ff7d00;
  box-shadow: 0 0 0 3px rgba(255, 125, 0, 0.1);
}
.search-bar .search-btn {
  padding: 12px 32px;
  background: #ff7d00;
  color: #fff;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: 0.3s;
  white-space: nowrap;
}
.search-bar .search-btn:hover {
  background: #e86d00;
}
.search-bar .filter-group {
  display: flex;
  gap: 12px;
  align-items: center;
}
.search-bar .filter-select {
  padding: 12px 36px 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  cursor: pointer;
  background: #fff;
  min-width: 120px;
  transition: 0.3s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.search-section .publish-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #ff7d00, #ff9500);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(255, 125, 0, 0.3);
}
.search-section .publish-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 125, 0, 0.4);
}
.search-section .publish-btn i {
  font-size: 18px;
}
.store-stock{
    font-size:12px;
    color:#999;
}
.store-stock span{
    display: inline-block;
    margin:0 4px;
    color:#333;
}

/* 移动端响应式 */
@media (max-width: 768px) {
  .search-section {
    display: block;
    padding: 12px 0;
  }

  .search-container {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .search-bar {
    flex-direction: column;
    gap: 10px;
  }

  .search-bar .search-input {
    padding: 12px 16px 12px 36px;
    font-size: 14px;
    border-radius: 25px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23999' d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
  }

  .search-bar .filter-group {
    display: flex;
    gap: 8px;
  }

  .search-bar .filter-select {
    flex: 1;
    padding: 10px 24px 10px 12px;
    font-size: 13px;
    min-width: 0;
    border-radius: 20px;
  }

  .search-bar .search-btn {
    display: none;
  }

  .search-section .publish-btn {
    display: none;
  }

  .sidebar {
    display: none;
  }

  .main-content {
    margin-top: 12px;
    gap: 0;
  }

  .clear-car-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .car-card {
    border-radius: 8px;
  }

  .car-img {
    height: 160px;
  }

  .car-info {
    padding: 12px;
  }

  .car-title {
    font-size: 15px;
  }

  .price-now {
    font-size: 16px;
  }

  .store-name {
    font-size: 12px;
  }

  .contact-btn {
    padding: 8px;
    font-size: 13px;
  }

  .trust-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .trust-item {
    padding: 12px;
    gap: 8px;
  }

  .trust-icon {
    font-size: 20px;
  }

  .trust-content h4 {
    font-size: 13px;
  }

  .trust-content p {
    font-size: 11px;
  }

  .no-data {
    padding: 150px 0;
  }
}