:root {
  --primary-color: #4059ad;
  --primary-dark: #30458a;
  --primary-light: #6b9ac4;
  --secondary-color: #6b9ac4;
  --accent-color: #f4b942;
  --success-color: #97d8c4;
  --danger-color: #e63946;
  --warning-color: #f4b942;
  --info-color: #6b9ac4;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-light: #999999;
  --bg-primary: #eff2f1;
  --bg-secondary: #ffffff;
  --bg-tertiary: #97d8c4;
  --border-color: #6b9ac4;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
}

/* 全局滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

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

body {
  font-family: '微软雅黑', 'Times New Roman', Arial, sans-serif;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 14px;
}

.container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 24px 30px;
  background: url('assets/images/background1mirror.png') no-repeat 180px center / contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  background-color: var(--primary-color);
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(64, 89, 173, 0.8) 0%, rgba(48, 69, 138, 0.8) 100%);
  border-radius: var(--radius-lg);
  z-index: 1;
}

.header > * {
  position: relative;
  z-index: 2;
}

.logo h1 {
  font-size: 28px;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.auth-section {
  display: flex;
  gap: 12px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-success {
  background-color: var(--success-color);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-success:hover {
  background-color: #229954;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-danger {
  background-color: var(--danger-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-danger:hover {
  background-color: #a93226;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-warning {
  background-color: var(--warning-color);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-warning:hover {
  background-color: #d68910;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.filter-section {
  background-color: var(--bg-primary);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
}

.filter-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('assets/images/background1.png') no-repeat bottom right / contain;
  border-radius: var(--radius-lg);
  z-index: 1;
  opacity: 0.3;
}

.filter-section > * {
  position: relative;
  z-index: 2;
}

.filter-section:hover {
  box-shadow: var(--shadow-md);
}

.search-box {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  position: relative;
  flex-wrap: wrap;
}

.search-box input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: var(--transition);
  background-color: var(--bg-secondary);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(26, 58, 82, 0.1);
}

.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  margin-top: 4px;
}

.search-suggestions.show {
  display: block;
}

.suggestion-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--bg-tertiary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.suggestion-item:hover {
  background-color: var(--bg-secondary);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-value {
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
}

.suggestion-field {
  font-size: 12px;
  color: var(--text-secondary);
  background-color: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 8px;
  white-space: nowrap;
}

.filter-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-group.full-width {
  grid-column: 1 / -1;
}

.filter-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-select,
.filter-input {
  padding: 10px 12px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background-color: var(--bg-primary);
  transition: var(--transition);
  color: var(--text-primary);
  width: 100%;
}

/* 限制下拉菜单高度 */
.filter-select {
  max-height: 150px;
  overflow-y: auto;
}

/* 为所有select元素添加下拉菜单高度限制 */
select {
  max-height: 150px;
  overflow-y: auto;
}

/* 针对不同浏览器的兼容性处理 */
select::-webkit-scrollbar {
  width: 8px;
}

select::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
}

select::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: var(--radius-sm);
}

select::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

.filter-select:focus,
.filter-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 58, 82, 0.1);
}

.autocomplete-container {
  position: relative;
  width: 100%;
}

.autocomplete-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.autocomplete-suggestions.active {
  display: block;
}

.autocomplete-suggestions div {
  padding: 10px 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid var(--border-color);
}

.autocomplete-suggestions div:hover {
  background-color: var(--bg-secondary);
  color: var(--primary-color);
}

.autocomplete-suggestions div:last-child {
  border-bottom: none;
}

.price-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-range span {
  color: var(--text-light);
  font-weight: 500;
}

.filter-summary {
  padding: 12px 10px;
  background-color: var(--bg-secondary);
  border-left: 4px solid var(--primary-color);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  transition: var(--transition);
  flex: 0 1 auto;
  width: auto;
  min-width: 200px;
  white-space: nowrap;
  box-sizing: border-box;
}

.filter-summary:hover {
  background-color: var(--bg-tertiary);
}

.filter-bottom-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 8px;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.truck-list-section {
  background-color: var(--bg-primary);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  width: 100%;
  overflow-x: hidden;
  transition: var(--transition);
}

.truck-list-section:hover {
  box-shadow: var(--shadow-md);
}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--bg-tertiary);
  min-width: auto;
  flex-wrap: wrap;
  gap: 16px;
}

.list-header h2 {
  font-size: 22px;
  color: var(--primary-color);
  font-weight: 700;
  flex: 1;
  min-width: 200px;
}

.result-count {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-left: 8px;
}

.list-actions {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
  overflow-x: auto;
  padding: 5px 0;
}

/* 响应式调整 - list-actions */
@media screen and (max-width: 1200px) {
  .list-actions {
    gap: 6px;
  }
  
  .list-actions button {
    padding: 8px 12px;
    font-size: 13px;
  }
}

@media screen and (max-width: 992px) {
  .list-actions {
    gap: 4px;
  }
  
  .list-actions button {
    padding: 6px 10px;
    font-size: 12px;
  }
}

@media screen and (max-width: 768px) {
  .list-actions button {
    padding: 5px 8px;
    font-size: 11px;
  }
}

.truck-list {
  width: 100%;
  overflow-x: hidden;
}

.truck-table {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  background-color: var(--bg-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.truck-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition);
  background-color: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.truck-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.truck-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary-light);
}

.truck-card:hover::before {
  transform: scaleX(1);
}

.truck-images {
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.truck-images img {
  max-width: 80px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.truck-images img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.truck-images.no-images {
  padding: 20px;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-sm);
  text-align: center;
  color: var(--text-light);
  font-size: 13px;
}

.more-images {
  padding: 8px 12px;
  background-color: var(--primary-color);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
}

.truck-title {
  font-size: 18px;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.truck-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.detail-item .label {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  display: inline-block;
}

.detail-item .price {
  color: var(--danger-color);
  font-weight: 700;
  font-size: 16px;
}

.truck-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid var(--bg-tertiary);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  padding: 10px 0;
  border-top: 2px solid var(--bg-tertiary);
  width: 100%;
  flex-wrap: nowrap;
  overflow-x: auto;
  min-width: 200px;
  white-space: nowrap;
  box-sizing: border-box;
}

#page-info {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

/* 响应式调整 - pagination */
@media screen and (max-width: 768px) {
  .pagination {
    gap: 10px;
  }
  
  .pagination button {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  #page-info {
    font-size: 13px;
  }
}

@media screen and (max-width: 480px) {
  .pagination {
    gap: 6px;
  }
  
  .pagination button {
    padding: 4px 8px;
    font-size: 11px;
  }
  
  #page-info {
    font-size: 11px;
  }
}

/* 针对极端窄小屏幕的调整 */
@media screen and (max-width: 320px) {
  .pagination {
    gap: 4px;
  }
  
  .pagination button {
    padding: 3px 6px;
    font-size: 10px;
    min-width: 60px;
  }
  
  #page-info {
    font-size: 10px;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  overflow: auto;
  animation: fadeIn 0.3s ease;
}

#login-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  overflow: auto;
  animation: fadeIn 0.3s ease;
}

#login-modal .modal-content {
  position: relative;
  margin: 10% auto 10px;
  padding: 0;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 400px;
  max-height: 80vh;
  height: auto;
  box-shadow: var(--shadow-lg);
  animation: slideDown 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background-color: var(--bg-primary);
  margin: 5% auto;
  padding: 0;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  height: auto;
  box-shadow: var(--shadow-lg);
  animation: slideDown 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-content.large-modal {
  max-width: 1000px;
  width: 95%;
  max-height: 98vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 500px;
}

/* 价格走势图表容器响应式样式 */
#price-trend-chart-container {
  width: 100%;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  gap: 10px;
  flex-grow: 1;
  min-height: 300px;
  height: auto;
}

/* 走势图标题容器 */
#price-trend-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
  margin-bottom: 20px;
  overflow: hidden;
  width: 100%;
}

/* 走势图标题文字 */
#price-trend-title span {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: -1px -1px 0 white, 1px -1px 0 white, -1px 1px 0 white, 1px 1px 0 white;
  min-width: 0;
}

/* 年份选择框 */
#price-trend-title #year-select {
  padding: 4px 5px;
  font-size: 18px;
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  white-space: nowrap;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .modal-content.large-modal {
    width: 95%;
    max-width: 95%;
    max-height: 95vh;
  }
  
  #price-trend-chart-container {
    padding: 10px;
    gap: 10px;
  }
  
  #price-trend-title {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
  }
  
  #price-trend-title span {
    font-size: 16px;
  }
  
  #price-trend-title #year-select {
    font-size: 16px;
    padding: 3px 4px;
  }
  
}

/* 针对小屏幕的特殊调整 */
@media screen and (max-width: 600px) {
  .modal-content.large-modal {
    width: 98%;
    min-height: 450px;
  }
  
  #price-trend-chart-container {
    padding: 5px;
    gap: 8px;
  }
  
  #price-trend-title {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
  }
  
  #price-trend-title span {
    font-size: 16px;
    white-space: normal;
    text-align: center;
  }
  
  #price-trend-title #year-select {
    font-size: 16px;
  }
  
  .modal-body {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .modal-content.large-modal {
    width: 98%;
    max-width: 98%;
    max-height: 95vh;
  }
  
  #price-trend-chart-container {
    padding: 10px;
    gap: 10px;
  }
  
  #price-trend-title span {
    font-size: 14px;
  }
  
  #price-trend-title #year-select {
    font-size: 14px;
    padding: 2px 3px;
  }
  
  .modal-body {
    padding: 12px;
  }
}

@media (max-width: 360px) {
  #price-trend-title span {
    font-size: 12px;
  }
  
  #price-trend-title #year-select {
    font-size: 12px;
    padding: 1px 2px;
  }
}

.modal-content.small-modal {
  max-width: 400px;
  height: auto;
  max-height: 80vh;
}

#login-modal .modal-content {
  height: auto;
  max-height: 80vh;
}

#login-modal .modal-body {
  padding: 24px;
  max-height: calc(80vh - 100px);
  height: auto;
  overflow-y: auto;
}

@keyframes slideDown {
  from { 
    opacity: 0;
    transform: translateY(-30px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 2px solid var(--bg-tertiary);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  flex-shrink: 0;
}

.modal-header h3 {
  font-size: 18px;
  color: #ffffff;
  margin: 0;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-btn:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
  padding: 24px;
  height: 100%;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

#truck-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  align-items: start;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

/* 营销概况模块样式 */
.district-section {
  margin-top: 16px;
  padding: 12px;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary-color);
}

.district-section h5 {
  margin: 0 0 12px 0;
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 600;
}

.region-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.region-item {
  padding: 8px 12px;
  background-color: var(--bg-primary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.region-item .region-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.region-item .region-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 13px;
}

.region-item .region-details {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.region-item .region-actions {
  display: flex;
  gap: 4px;
}

.region-item .btn-sm {
  padding: 2px 6px;
  font-size: 10px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 12px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: var(--transition);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(26, 58, 82, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.form-group input[type="file"] {
  padding: 8px 12px;
}

#fuel-extra-group,
#fuel-extra-b-group {
  margin-top: 0;
  margin-bottom: 0;
}

.region-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.region-row input {
  flex: 1;
  min-width: 100px;
  padding: 8px 10px;
  margin-top: 6px;
}

.region-row input[type="text"] {
  flex: 2;
  min-width: 120px;
}

.region-row input[type="number"]::-webkit-outer-spin-button,
.region-row input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.region-row input[type="number"] {
  -moz-appearance: textfield;
}

.region-row button {
  flex-shrink: 0;
  padding: 6px 12px;
  font-size: 13px;
  margin-top: 6px;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid var(--bg-tertiary);
}

.image-preview {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  overflow: hidden;
  min-height: 0;
  flex-shrink: 0;
}

.preview-item {
  position: relative;
  width: calc(20% - 6.4px);
  min-width: 60px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-secondary);
  flex-shrink: 0;
}

.preview-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.delete-image-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: var(--danger-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.delete-image-btn:hover {
  background-color: #a93226;
  transform: scale(1.1);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-primary);
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 0;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-primary);
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.region-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}

.region-row input {
  flex: 1;
  min-width: 120px;
  padding: 8px 10px;
}

.region-row input[type="text"] {
  flex: 2;
  min-width: 150px;
}

.region-row input[type="number"]::-webkit-outer-spin-button,
.region-row input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.region-row input[type="number"] {
  -moz-appearance: textfield;
}

.region-row button {
  flex-shrink: 0;
  padding: 6px 12px;
  font-size: 13px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.backup-section {
  margin-bottom: 24px;
  padding: 20px;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-color);
}

.backup-section h4 {
  margin-bottom: 16px;
  color: var(--primary-color);
  font-size: 16px;
  font-weight: 600;
}

.backup-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.backup-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.backup-item:last-child {
  border-bottom: none;
}

.backup-item:hover {
  background-color: var(--bg-secondary);
}

.backup-info {
  display: flex;
  gap: 16px;
  align-items: center;
}

.backup-type {
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.backup-type:first-child {
  background-color: var(--success-color);
  color: white;
}

.backup-type:not(:first-child) {
  background-color: var(--info-color);
  color: white;
}

.backup-time {
  font-size: 13px;
  color: var(--text-secondary);
}

.backup-size {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
}

.backup-actions {
  display: flex;
  gap: 8px;
}

.logs-list {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.log-item {
  display: grid;
  grid-template-columns: 150px 100px 1fr;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.log-item:last-child {
  border-bottom: none;
}

.log-item:hover {
  background-color: var(--bg-secondary);
}

.log-time {
  font-size: 12px;
  color: var(--text-secondary);
}

.log-action {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-color);
}

.log-detail {
  font-size: 13px;
  color: var(--text-secondary);
}

.empty-state {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  text-align: center;
  color: var(--text-light);
}

.empty-state::before {
  content: '📋';
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.search-highlight {
  background-color: #fff3cd;
  color: #856404;
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 600;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  color: var(--text-secondary);
}

.loading::after {
  content: '';
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1366px) {
  .container {
    max-width: 100%;
    padding: 20px;
  }
  
  .truck-list {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  
  .truck-table {
    width: 100%;
    min-width: 0;
  }
  
  /* 隐藏最低价格列 (第10列) */
  .truck-table th:nth-child(10),
  .truck-table td:nth-child(10) {
    display: none;
  }
  
  .filter-row {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  
  .list-header {
    flex-wrap: wrap;
    gap: 16px;
    min-width: auto;
  }
  
  .list-actions {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .search-box {
    flex-wrap: wrap;
  }
  
  .search-box input {
    min-width: 180px;
  }
  
  /* 确保表格单元格不换行 */
  .truck-table td {
    white-space: normal;
    word-wrap: break-word;
  }
  
  /* 优化操作列宽度 */
  .truck-table th:nth-child(11),
  .truck-table td:nth-child(11) {
    min-width: 160px;
    max-width: 200px;
  }
  
  /* 优化车辆型号列宽度 */
  .truck-table th:nth-child(3),
  .truck-table td:nth-child(3) {
    min-width: 100px;
    max-width: 150px;
  }
}

@media (max-width: 1280px) {
  /* 隐藏驾驶室地板列 (第9列) */
  .truck-table th:nth-child(9),
  .truck-table td:nth-child(9) {
    display: none;
  }
}

@media (max-width: 1200px) {
  /* 隐藏驾驶室高度列 (第8列) */
  .truck-table th:nth-child(8),
  .truck-table td:nth-child(8) {
    display: none;
  }
}

@media (max-width: 1100px) {
  /* 隐藏变速箱列 (第7列) */
  .truck-table th:nth-child(7),
  .truck-table td:nth-child(7) {
    display: none;
  }
}

@media (max-width: 1000px) {
  /* 隐藏发动机列 (第6列) */
  .truck-table th:nth-child(6),
  .truck-table td:nth-child(6) {
    display: none;
  }
}

@media (max-width: 900px) {
  /* 隐藏储能容器容量列 (第5列) */
  .truck-table th:nth-child(5),
  .truck-table td:nth-child(5) {
    display: none;
  }
}

@media (max-width: 800px) {
  /* 隐藏燃料类型列 (第4列) */
  .truck-table th:nth-child(4),
  .truck-table td:nth-child(4) {
    display: none;
  }
}

@media (max-width: 700px) {
  /* 隐藏车辆类型列 (第2列) */
  .truck-table th:nth-child(2),
  .truck-table td:nth-child(2) {
    display: none;
  }
}

@media (max-width: 600px) {
  /* 隐藏品牌列 (第1列) */
  .truck-table th:nth-child(1),
  .truck-table td:nth-child(1) {
    display: none;
  }
}

@media (max-width: 1024px) {
  .container {
    max-width: 100%;
    padding: 16px;
  }
  
  .header {
    padding: 20px 24px;
  }
  
  .logo h1 {
    font-size: 24px;
  }
  
  .filter-row {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  
  .truck-list {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .truck-table {
    width: 100%;
    min-width: 0;
  }
  
  /* 优化操作列按钮大小 */
  .truck-table .action-cell button {
    padding: 4px 6px;
    font-size: 11px;
  }
  
  /* 确保操作列和车辆型号列可见 */
  .truck-table th:nth-child(3),
  .truck-table td:nth-child(3),
  .truck-table th:nth-child(11),
  .truck-table td:nth-child(11) {
    display: table-cell !important;
  }
  
  .modal-content {
    width: 95%;
    margin: 3% auto;
  }
  
  .search-box input {
    min-width: 150px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  /* 针对769px至1024px分辨率的优化 */
  .truck-list-section {
    overflow-x: hidden;
  }
  
  .truck-table {
    width: 100%;
    table-layout: auto;
  }
  
  /* 确保操作列和车辆型号列可见 */
  .truck-table th:nth-child(3),
  .truck-table td:nth-child(3),
  .truck-table th:nth-child(11),
  .truck-table td:nth-child(11) {
    display: table-cell !important;
    white-space: nowrap;
  }
  
  /* 优化操作列按钮布局 */
  .truck-table .action-cell {
    display: flex;
    gap: 4px;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .truck-table .action-cell button {
    flex: 1;
    min-width: 40px;
    padding: 3px 5px;
    font-size: 10px;
  }
  
  /* 优化表格单元格内容换行 */
  .truck-table td {
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.2;
  }
  
  /* 确保表格宽度适应容器 */
  .truck-list {
    overflow-x: hidden;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 12px;
  }
  
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
  }
  
  .logo h1 {
    font-size: 20px;
  }
  
  .auth-section {
    width: 100%;
    justify-content: flex-end;
  }
  
  .search-box {
    flex-direction: column;
  }
  
  .search-box input {
    min-width: 100%;
  }
  
  .search-suggestions {
    right: 0;
  }
  
  .filter-row {
    grid-template-columns: 1fr;
  }
  
  .filter-bottom-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-actions {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .filter-summary {
    min-width: 100%;
    white-space: normal;
  }
  
  .list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .list-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  
  .truck-table {
    width: 100%;
    min-width: 0;
  }
  
  .truck-table .action-cell button {
    padding: 3px 5px;
    font-size: 10px;
  }
  
  .truck-list {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    width: 95%;
    margin: 5% auto;
    max-height: 90vh;
  }
  
  #truck-form {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .backup-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .backup-actions {
    width: 100%;
    justify-content: flex-end;
  }
  
  .log-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .filter-section,
  .truck-list-section {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .logo {
    margin-top: 15px;
  }
  
  .header {
    background: url('assets/images/background1mirror.png') no-repeat 10px center / contain;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 8px;
  }
  
  .header {
    padding: 16px;
  }
  
  .logo h1 {
    font-size: 18px;
  }
  
  .truck-table {
    min-width: 600px;
  }
  
  .truck-table th {
    padding: 6px 8px;
    text-align: center;
  }
  
  .truck-table td {
    padding: 4px 8px;
    text-align: center;
  }
  
  .truck-table .action-cell button {
    padding: 2px 4px;
  }
  
  .btn-primary,
  .btn-secondary,
  .btn-success,
  .btn-warning {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .filter-section,
  .truck-list-section {
    padding: 16px;
  }
  
  .truck-card {
    padding: 16px;
  }
  
  .truck-images img {
    width: 60px;
    height: 45px;
  }
  
  .modal-body {
    padding: 16px;
  }
  
  .pagination {
    flex-direction: column;
    gap: 8px;
  }
  
  .list-header h2 {
    font-size: 18px;
  }
  
  .filter-actions {
    justify-content: center;
  }
  
  .list-actions {
    justify-content: center;
  }
}

@media print {
  .header,
  .filter-section,
  .pagination,
  .list-actions {
    display: none;
  }
  
  .truck-list {
    grid-template-columns: 1fr;
  }
  
  .truck-table {
    box-shadow: none;
    border: 1px solid #000;
  }
  
  .truck-table .action-cell {
    display: none;
  }
}

.sync-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--success-color) 0%, #229954 100%);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  z-index: 10000;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
}

.sync-notification.show {
  opacity: 1;
  transform: translateX(0);
}

.sync-notification::before {
  content: '✓';
  margin-right: 8px;
  font-size: 16px;
}

/* 页脚样式 */
.footer {
  margin-top: 40px;
  padding: 20px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border-radius: 0;
  box-shadow: var(--shadow-md);
  text-align: center;
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-title {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  margin-bottom: 10px;
  line-height: 1.4;
}

.footer-author {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  margin: 0;
}

/* 响应式页脚样式 */
@media (max-width: 768px) {
  .footer {
    padding: 13px 16px;
    margin-top: 30px;
  }
  
  .footer-title {
    font-size: 12px;
  }
  
  .footer-author {
    font-size: 10px;
  }
}

.truck-table {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  background-color: var(--bg-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.truck-table thead {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.truck-table th {
  padding: 12px 14px;
  text-align: center;
  font-weight: 600;
  color: #ffffff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.truck-table th:nth-child(1) {
  min-width: 60px;
  max-width: 80px;
}

.truck-table th:nth-child(2) {
  min-width: 60px;
  max-width: 80px;
}

.truck-table th:nth-child(3) {
  min-width: 80px;
  max-width: 120px;
}

.truck-table th:nth-child(4) {
  min-width: 60px;
  max-width: 80px;
}

.truck-table th:nth-child(5) {
  min-width: 100px;
  max-width: 140px;
}

.truck-table th:nth-child(6) {
  min-width: 80px;
  max-width: 120px;
}

.truck-table th:nth-child(7) {
  min-width: 80px;
  max-width: 120px;
}

.truck-table th:nth-child(8) {
  min-width: 70px;
  max-width: 100px;
}

.truck-table th:nth-child(9) {
  min-width: 70px;
  max-width: 100px;
}

.truck-table th:nth-child(10) {
  min-width: 70px;
  max-width: 100px;
}

.truck-table th:nth-child(11) {
  min-width: 110px;
  max-width: 140px;
}

.truck-table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.truck-table tbody tr:hover {
  background-color: var(--bg-secondary);
}

.truck-table td {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-primary);
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.truck-table .price-cell {
  color: var(--danger-color);
  font-weight: 700;
  font-size: 15px;
}

.truck-table .action-cell {
  white-space: nowrap;
  text-align: center;
}

.truck-table .action-cell button {
  margin-right: 3px;
  padding: 2px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.truck-table .action-cell button i {
  font-size: 12px;
}

.truck-table .action-cell button:last-child {
  margin-right: 0;
}

/* 基础显示列样式 - 始终保持可见 */
.truck-table th:nth-child(3),
.truck-table td:nth-child(3),
.truck-table th:nth-child(10),
.truck-table td:nth-child(10),
.truck-table th:nth-child(11),
.truck-table td:nth-child(11) {
  display: table-cell !important;
  min-width: 100px;
}

/* 响应式表格布局 */
@media screen and (max-width: 1200px) {
  .truck-table th:nth-child(8),
  .truck-table td:nth-child(8),
  .truck-table th:nth-child(9),
  .truck-table td:nth-child(9) {
    display: none;
  }
}

@media screen and (max-width: 992px) {
  .truck-table th:nth-child(4),
  .truck-table td:nth-child(4),
  .truck-table th:nth-child(6),
  .truck-table td:nth-child(6),
  .truck-table th:nth-child(7),
  .truck-table td:nth-child(7) {
    display: none;
  }
}

@media screen and (max-width: 770px) {
  .truck-table th:nth-child(1),
  .truck-table td:nth-child(1),
  .truck-table th:nth-child(2),
  .truck-table td:nth-child(2),
  .truck-table th:nth-child(4),
  .truck-table td:nth-child(4),
  .truck-table th:nth-child(5),
  .truck-table td:nth-child(5),
  .truck-table th:nth-child(6),
  .truck-table td:nth-child(6),
  .truck-table th:nth-child(7),
  .truck-table td:nth-child(7),
  .truck-table th:nth-child(8),
  .truck-table td:nth-child(8),
  .truck-table th:nth-child(9),
  .truck-table td:nth-child(9) {
    display: none;
  }
}

/* 对比按钮样式 */
.btn-comparison {
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-comparison:hover {
  background-color: #45a049;
  transform: translateY(-1px);
}

/* 对比选中状态样式 */
.comparison-selected {
  background: url('assets/images/background1.png') no-repeat center calc(50% + 5px) / 80%;
  opacity: 0.7;
}

/* 对比容器样式 */
.comparison-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  margin: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  padding: 20px;
  background-color: white;
  height: 100%;
  box-sizing: border-box;
}

/* 对比内容容器样式 */
#comparison-content {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 对比表格样式 */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 10px;
  background-color: white;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* 标签列样式 */
.comparison-table .label-column {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 700;
  min-width: 100px;
  width: 20%;
  max-width: 200px;
  text-align: center;
  vertical-align: middle;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.4;
}

/* 表体样式 */
.comparison-table tbody tr {
  transition: var(--transition);
}

.comparison-table tbody tr:hover {
  background-color: var(--bg-light);
}

/* 值列样式 */
.comparison-table .value-column {
  padding: 12px 16px;
  text-align: center;
  vertical-align: middle;
  font-size: 14px;
  color: var(--text-primary);
  min-width: 100px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: white;
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.4;
  width: 100%;
}

/* 对比表格容器样式 */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  table-layout: fixed;
}

/* 对比表格tbody样式 */
.comparison-table tbody {
  width: 100%;
}

/* 对比表格行样式 */
.comparison-table tbody tr {
  width: 100%;
}

/* 对比表格首列样式 */
.comparison-table .label-column {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 700;
  min-width: 100px;
  width: 20%;
  max-width: 200px;
  text-align: center;
  vertical-align: middle;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.4;
}

/* 对比表格其他列样式 */
.comparison-table tbody tr td:not(.label-column) {
  width: calc((100% - 200px) / var(--column-count, 3));
}

/* 差异标记样式 */
.comparison-table .different {
  background-color: #ffebee;
  color: #c62828;
  font-weight: 600;
  border-left: 4px solid #e57373;
}

/* 大模态框样式 */
.large-modal {
  max-width: 90%;
  max-height: 90vh;
  height: 90vh;
  overflow-y: hidden;
  overflow-x: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

/* 模态框内容样式 */
.large-modal .modal-content {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow-x: hidden;
  overflow-y: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* 模态框头部样式 */
.large-modal .modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: 20px;
  background-color: var(--bg-light);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  flex-shrink: 0;
}

/* 模态框体部样式 */
.large-modal .modal-body {
  padding: 20px;
  overflow-x: hidden;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  max-height: calc(90vh - 100px);
}

/* 小分辨率设备表格显示优化 */
@media (max-width: 768px) {
  .truck-table {
    min-width: auto;
    width: 100%;
    table-layout: fixed;
  }
  
  .truck-table th:not(:nth-child(3)):not(:nth-child(4)):not(:nth-child(11)),
  .truck-table td:not(:nth-child(3)):not(:nth-child(4)):not(:nth-child(11)) {
    display: none;
  }
  
  .truck-table th {
    padding: 6px 4px;
    white-space: nowrap;
    text-align: center;
  }
  
  .truck-table td {
    padding: 4px 4px;
    white-space: nowrap;
    text-align: center;
  }
  
  .truck-table th:nth-child(3),
  .truck-table td:nth-child(3) {
    min-width: 70px;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .truck-table th:nth-child(4),
  .truck-table td:nth-child(4) {
    min-width: 140px;
    max-width: 200px;
  }
  
  .truck-table th:nth-child(5),
  .truck-table td:nth-child(5) {
    min-width: 140px;
  }
  
  .truck-table th:nth-child(6) {
    min-width: 140px;
  }
  
  .truck-table .action-cell {
    display: flex;
    gap: 2px;
    justify-content: center;
    flex-wrap: nowrap;
  }
  
  .truck-table .action-cell button {
    padding: 2px 4px;
    margin: 0;
    flex: 1;
    min-width: 20px;
  }
}

/* 更小分辨率设备表格显示优化 */
@media (max-width: 480px) {
  .truck-table th {
    padding: 4px 3px;
  }
  
  .truck-table td {
    padding: 3px 3px;
  }
  
  .truck-table th:nth-child(3),
  .truck-table td:nth-child(3) {
    min-width: 60px;
    max-width: 80px;
  }
  
  .truck-table th:nth-child(11),
  .truck-table td:nth-child(11) {
    min-width: 70px;
    max-width: 100px;
  }
  
  .truck-table .action-cell {
    gap: 1px;
  }
  
  .truck-table .action-cell button {
    padding: 1px 3px;
  }
}

.truck-detail-content {
  max-height: 60vh;
  overflow-y: auto;
}

.detail-section {
  margin-bottom: 24px;
  padding: 20px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-primary);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.detail-section:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-section h4 {
  font-size: 16px;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}

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

.detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 0;
}

.detail-item .label {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  display: inline-block;
}

.detail-item .price {
  color: var(--danger-color);
  font-weight: 700;
  font-size: 18px;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
  overflow: hidden;
}

.image-gallery img {
  max-width: 100%;
  max-height: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
  background-color: var(--bg-secondary);
}

.image-gallery img:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

/* 图片模态框样式 */
#image-modal .modal-content {
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
}

#image-modal .modal-body {
  padding: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 70vh;
}

#modal-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* 自动完成功能样式 */
.autocomplete-container {
  position: relative;
  width: 100%;
}

.autocomplete-input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: var(--transition);
  background-color: var(--bg-secondary);
}

.autocomplete-input:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(26, 58, 82, 0.1);
}

.autocomplete-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  display: none;
  margin-top: 4px;
}

.autocomplete-suggestions.active {
  display: block;
}

.autocomplete-suggestions div {
  padding: 10px 16px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid var(--bg-tertiary);
}

.autocomplete-suggestions div:hover,
.autocomplete-suggestions div.selected {
  background-color: var(--bg-tertiary);
  color: var(--primary-color);
  font-weight: 500;
}

.autocomplete-suggestions div:hover {
  background-color: rgba(26, 58, 82, 0.05);
}

.autocomplete-suggestions div.selected {
  background-color: rgba(26, 58, 82, 0.1);
  border-left: 3px solid var(--primary-color);
}

@media print {