:root{
  --bg: #fafafa;          /* 高级浅灰白背景 */
  --panel: #ffffff;       /* 白色内容面板 */
  --text: #1a1a1a;        /* 沉稳近黑色文字 */
  --muted: #737373;       /* 高级灰次级文字 */
  --border: #e5e5e5;      /* 边框 */
  --brand: #1e3a5f;       /* 主色：深邃藏青蓝 */
  --brand2:#0f172a;       /* 深沉黑蓝 */
  --brand-light: #f1f5f9; /* 浅灰蓝背景 */
  --ok: #059669;          /* 沉稳绿 */
  --ok-light: #ecfdf5;    /* 浅绿背景 */
  --warn:#b45309;         /* 沉稳金橙 */
  --warn-light: #fffbeb;  /* 浅橙背景 */
  --bad: #dc2626;         /* 沉稳红 */
  --bad-light: #fef2f2;   /* 浅红背景 */
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --font: ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

*{
  box-sizing:border-box;
  margin: 0;
  padding: 0;
}
html,body{ height:100%; }
body{
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,h2,h3,h4,label,.card-title{ color: var(--text); font-weight: 600; }
.card-desc,.subtitle,.small,.kv .k{ color: var(--muted); }

a{ color: var(--brand); text-decoration:none; transition: color 0.2s; }
a:hover{ color: var(--brand2); text-decoration:underline; }

.container{
  max-width: 980px;
  margin: 0 auto;
  padding: 30px 20px;
}
@media (max-width: 768px){
  .container{
    padding: 20px 16px;
  }
}

.panel{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.section{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  transition: box-shadow 0.2s;
}
.section:hover{
  box-shadow: var(--shadow);
}
.section h3{
  margin: 0 0 14px;
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 600;
}
.subtitle{ color: var(--muted); margin-top: 6px; font-size: 0.9rem; }
.small{ font-size: 12px; color: var(--muted); }

label{
  display:block;
  margin-bottom: 6px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}
.required-star{
  color: var(--bad);
  margin-left: 2px;
}

input,select,textarea{
  width:100%;
  border:1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder, textarea::placeholder{ color: #94a3b8; }
input:focus,select:focus,textarea:focus{
  outline:none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

button, .btn{
  width:100%;
  border:none;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 15px;
  cursor:pointer;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-primary{
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color:#fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}
.btn-secondary{
  background: var(--brand-light);
  color: var(--brand2);
}
.btn-secondary:hover{
  background: #bfdbfe;
}
button:disabled{
  opacity:.5;
  cursor:not-allowed;
  transform: none;
  box-shadow: none;
}

.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 820px){
  .grid-2{ grid-template-columns: 1fr; }
}

.kv{
  display:flex;
  justify-content:space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.kv:last-child{ border-bottom:none; }
.kv .k{ color: var(--muted); font-weight: 500; }
.kv .v{ font-weight: 700; text-align:right; word-break: break-word; color: var(--text); }

/* 车型提示与咨询 */
#vehicleTip{
  margin-top: 10px;
  border: 1px solid var(--brand-light);
  background: var(--brand-light);
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 600;
  color: var(--brand2);
}
#consultBox{
  display:none;
  margin-top: 10px;
  border: 1px solid var(--bad);
  background: var(--bad-light);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--bad);
  font-weight: 600;
}

/* 车型图片占位 */
.vehicle-images{
  display:none;
  margin-top: 10px;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
}
.vehicle-images.show{ display:grid; }
.vehicle-images figure{
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.vehicle-images img{
  width:100%;
  height: 120px;
  object-fit: cover;
  display:block;
  background: #f1f5f9;
}
.vehicle-images figcaption{
  padding: 8px 10px;
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 820px){
  .vehicle-images{ grid-template-columns: 1fr; }
}

/* 响应式卡片 */
.card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.2s;
}
.card:hover{
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.card-title{
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.card-desc{
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.card-price{
  margin-top: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand);
}
.card-btn{
  margin-top: 14px;
  padding: 12px 20px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.card-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

/* 价格展示 */
.price-tag{
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
  padding: 16px 20px;
  border-radius: var(--radius);
  margin: 16px 0;
}
.price-tag .label{
  font-size: 0.9rem;
  opacity: 0.9;
}
.price-tag .amount{
  font-size: 1.75rem;
  font-weight: 700;
}

/* 状态徽章 */
.badge{
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-success{
  background: var(--ok-light);
  color: var(--ok);
}
.badge-warning{
  background: var(--warn-light);
  color: var(--warn);
}
.badge-danger{
  background: var(--bad-light);
  color: var(--bad);
}
.badge-info{
  background: var(--brand-light);
  color: var(--brand);
}

/* 表格样式 */
table{
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
th,td{
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th{
  background: var(--bg);
  font-weight: 600;
  color: var(--text);
}
td{
  color: var(--text);
}
tr:hover td{
  background: var(--bg);
}

/* 分页 */
.pagination{
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}
.pagination button{
  width: auto;
  padding: 8px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
}
.pagination button.active{
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.pagination button:hover:not(.active){
  background: var(--brand-light);
}

/* 加载动画 */
.loading{
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin{
  to{ transform: rotate(360deg); }
}

/* ========== 移动端适配优化 ========== */
@media (max-width: 768px){
  /* 通用调整 */
  body{
    font-size: 14px;
  }
  
  /* 容器和面板 */
  .panel{
    padding: 16px;
  }
  .section{
    padding: 16px;
    margin-bottom: 12px;
  }
  .section h3{
    font-size: 1rem;
  }
  
  /* 表单元素 */
  input,select,textarea{
    padding: 14px 16px;
    font-size: 16px; /* 防止iOS缩放 */
    border-radius: 8px;
  }
  button,.btn{
    padding: 16px;
    font-size: 16px;
  }
  
  /* 标题大小 */
  h1{
    font-size: 1.75rem;
  }
  h2{
    font-size: 1.5rem;
  }
  
  /* 车型图片网格 */
  .vehicle-images{
    gap: 8px;
  }
  .vehicle-images img{
    height: 100px;
  }
  
  /* 表格滚动 */
  table{
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* 按钮间距 */
  .actions{
    gap: 12px;
  }
}

@media (max-width: 480px){
  /* 小屏幕进一步优化 */
  .container{
    padding: 16px 12px;
  }
  .panel{
    padding: 14px;
  }
  .section{
    padding: 14px;
  }
  .card{
    padding: 16px;
  }
}
