/* ============================================
   杰托马 · 代理产品目录 — 浅色简约主题
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f6f7f9;
  color: #1f2430;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: #e11d48; text-decoration: none; }
a:hover { color: #be123c; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font: inherit; }
input, select, textarea { font: inherit; color: inherit; }

/* ─── 顶部导航 ────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e8eaef;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.brand-mark {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-text {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 1px;
  color: #e11d48;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text small {
  font-weight: 600;
  font-size: 0.62rem;
  color: #1f2430;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-img { height: 34px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #5a6270;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 500;
}
.nav-link:hover { color: #1f2430; background: #f0f1f4; }
.nav-link.active { color: #e11d48; background: #fdeef1; font-weight: 600; }
.btn-login, .btn-admin {
  background: #e11d48;
  color: #fff !important;
  font-weight: 600;
  border-radius: 999px;
  padding: 8px 20px;
}
.btn-login:hover, .btn-admin:hover { background: #be123c !important; }

/* ─── 品牌入口页 ──────────────────────────── */
.brand-entry {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}
.entry-head { text-align: center; margin-bottom: 36px; }
.entry-head h1 {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #1f2430;
  margin-bottom: 6px;
}
.entry-head h1 .accent { color: #e11d48; }
.entry-head .subtitle {
  font-size: 0.92rem;
  color: #9aa1ad;
}
.entry-contact {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  color: #fff;
}
.contact-pill svg { flex: none; }
.contact-pill-phone { background: #1f2430; }
.contact-pill-phone:hover { background: #11151c; }
.contact-pill-wechat { background: #07c160; }
.contact-pill-wechat:hover { background: #06ad56; }
.brand-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.brand-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 5 / 6;
  background: #fff;
  box-shadow: 0 2px 12px rgba(31,36,48,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eef0f4;
}
.brand-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(31,36,48,0.14);
}
.brand-card .card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.brand-card:hover .card-img { transform: scale(1.05); }
.brand-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.15) 45%, rgba(0,0,0,0.05) 100%);
}
.brand-card .card-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 16px;
  color: #fff;
}
.brand-card .card-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.2;
}
.brand-card .card-count {
  font-size: 0.8rem;
  margin-top: 4px;
  opacity: 0.85;
}
.brand-card .card-count b { font-weight: 700; }
/* 无海报的品牌用渐变色卡 */
.brand-card.card-gradient {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.brand-card.card-gradient .card-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}
.brand-card.card-gradient .card-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 1px;
}
.brand-card.card-gradient .card-sub {
  font-size: 0.8rem;
  opacity: 0.85;
  margin-top: 4px;
}
.brand-card.grad-moto { background: linear-gradient(135deg, #334155, #1e293b); }
.brand-card.grad-moto2 { background: linear-gradient(135deg, #e11d48, #9f1239); }
.brand-card.grad-part { background: linear-gradient(135deg, #f59e0b, #d97706); }

/* ─── 首页底部：企业背景 + 售后质保 ───────────── */
.entry-footer { margin-top: 40px; display: flex; flex-direction: column; gap: 28px; }
.company-section, .aftersale-section {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #edeff3;
  box-shadow: 0 4px 16px rgba(17,24,39,0.05);
}
.company-section img, .aftersale-section img {
  width: 100%;
  display: block;
  height: auto;
}
.company-section .company-caption {
  padding: 16px 20px;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.7;
  border-top: 1px solid #edeff3;
}
.company-section .company-caption b, .afsale-section b { color: #e11d48; }
.afsale-title {
  padding: 16px 20px 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2430;
}

/* ─── 产品目录页 ──────────────────────────── */
.catalog { max-width: 1200px; margin: 0 auto; padding: 24px 20px 64px; }
.catalog-head { margin-bottom: 20px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #9aa1ad;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.breadcrumb .crumb { cursor: pointer; transition: color 0.2s; }
.breadcrumb .crumb:hover { color: #e11d48; }
.breadcrumb .crumb.current { color: #1f2430; font-weight: 600; cursor: default; }
.breadcrumb .sep { color: #c5cad4; }
.catalog-title { font-size: 1.5rem; font-weight: 800; color: #1f2430; }

/* 分类标签栏（一级分类） */
.cat-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #5a6270;
  background: #fff;
  border: 1px solid #e8eaef;
  cursor: pointer;
  transition: all 0.2s;
}
.cat-tab:hover { border-color: #c5cad4; }
.cat-tab.active {
  background: #e11d48;
  color: #fff;
  border-color: #e11d48;
  box-shadow: 0 4px 12px rgba(225,29,72,0.25);
}

/* 搜索与筛选 */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
}
.search-box { position: relative; flex: 1; min-width: 200px; }
.search-box input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: 10px;
  border: 1px solid #e2e5eb;
  background: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.search-box input:focus { border-color: #e11d48; box-shadow: 0 0 0 3px rgba(225,29,72,0.08); }
.search-box .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa1ad;
  font-size: 1rem;
}
.filter-select {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #e2e5eb;
  background: #fff;
  font-size: 0.9rem;
  color: #1f2430;
  outline: none;
  cursor: pointer;
}
.filter-select:focus { border-color: #e11d48; }

/* 车型网格（二级分类） */
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.model-card {
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}
.model-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(31,36,48,0.12);
  border-color: #e11d48;
}
.model-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f5f6f8;
  overflow: hidden;
}
.model-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.model-card:hover .model-card-img img {
  transform: scale(1.05);
}
.model-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: #c6cad4;
  background: linear-gradient(135deg, #f5f6f8, #eceef2);
}
.model-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
}
.model-card-brand {
  font-size: 0.72rem;
  color: #e11d48;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.model-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2430;
  line-height: 1.3;
}
.model-card-adapt {
  font-size: 0.75rem;
  color: #9aa1ad;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.model-card-crafts {
  font-size: 0.78rem;
  color: #e11d48;
  font-weight: 600;
}

/* 产品卡片（三级款式） */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}
.product-card {
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(31,36,48,0.04);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(31,36,48,0.12);
  border-color: #ddd;
}
.product-card .thumb {
  aspect-ratio: 4 / 3;
  background: #f3f4f7;
  overflow: hidden;
  position: relative;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .thumb .no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c5cad4;
  font-size: 2rem;
}
.product-card .info { padding: 14px; }
.product-card .p-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2430;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.product-card .p-craft {
  font-size: 0.75rem;
  color: #9aa1ad;
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-card .p-price {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #eceef2;
}
.product-card .price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  margin-bottom: 4px;
}
.product-card .price-item .label { color: #9aa1ad; }
.product-card .price-item .value { color: #e11d48; font-weight: 700; }
.product-card .price-item.retail .value { color: #1f2430; font-size: 0.98rem; }

/* 弹窗 */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(20,22,28,0.5);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: maskIn 0.2s ease;
}
@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff;
  border-radius: 18px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 0.25s ease;
}
@keyframes modalIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #eef0f4;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.modal-head h3 { font-size: 1.15rem; font-weight: 700; color: #1f2430; }
.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: #f0f1f4;
  border-radius: 50%;
  font-size: 1.1rem;
  color: #5a6270;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: #e2e5eb; }
.modal-body { padding: 22px; }

/* 产品详情弹窗（左右布局） */
.modal-product { max-width: 820px !important; padding: 24px; position: relative; }
.modal-product .modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.modal-product-layout { display: flex; gap: 22px; align-items: flex-start; }
.modal-product-img {
  flex: 0 0 300px;
  border-radius: 14px;
  overflow: hidden;
  background: #f3f4f7;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-product-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.modal-product-img .product-placeholder.large { width: 100%; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #c5cad4; }
.modal-product-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.modal-product-info h2 { font-size: 1.25rem; font-weight: 700; color: #1f2430; margin: 2px 0 14px; line-height: 1.4; }
.info-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 0.9rem; }
.info-table tr { border-bottom: 1px solid #eef0f4; }
.info-table tr:last-child { border-bottom: none; }
.info-table td { padding: 9px 4px; color: #4b5563; vertical-align: top; }
.info-table td:first-child { color: #9aa1ad; width: 76px; white-space: nowrap; font-size: 0.85rem; }
.info-table .price-value { color: #e11d48; font-weight: 700; font-size: 1.05rem; }
.modal-actions { display: flex; gap: 10px; margin-top: auto; }
.modal-contact { display: flex; gap: 10px; margin-top: 12px; }
.btn-contact {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  color: #fff;
}
.btn-contact svg { flex: none; }
.btn-contact-phone { background: #1f2430; }
.btn-contact-phone:hover { background: #11151c; }
.btn-contact-wechat { background: #07c160; }
.btn-contact-wechat:hover { background: #06ad56; }

/* 产品详情弹窗 */
.detail-img {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f4f7;
  margin-bottom: 18px;
}
.detail-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.detail-img .no-img {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c5cad4;
  font-size: 3rem;
}
.detail-title { font-size: 1.2rem; font-weight: 700; color: #1f2430; }
.detail-meta { font-size: 0.82rem; color: #9aa1ad; margin: 8px 0 16px; }
.detail-meta span { margin-right: 12px; }
.price-table {
  background: #f8f9fb;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
}
.price-table .price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.9rem;
}
.price-table .price-row:not(:last-child) { border-bottom: 1px solid #eef0f4; }
.price-table .price-row .label { color: #5a6270; }
.price-table .price-row .value { font-weight: 700; color: #1f2430; }
.price-table .price-row.retail .value { color: #e11d48; font-size: 1.1rem; }
.price-hint {
  text-align: center;
  color: #9aa1ad;
  font-size: 0.85rem;
  padding: 16px;
  background: #f8f9fb;
  border-radius: 12px;
  margin-bottom: 18px;
}
.detail-actions { display: flex; gap: 10px; }
.btn {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-primary { background: #e11d48; color: #fff; }
.btn-primary:hover { background: #be123c; }
.btn-secondary { background: #f0f1f4; color: #1f2430; }
.btn-secondary:hover { background: #e2e5eb; }

/* 表单 */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1f2430;
  margin-bottom: 6px;
}
.form-group label .req { color: #e11d48; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid #e2e5eb;
  background: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: #e11d48;
  box-shadow: 0 0 0 3px rgba(225,29,72,0.08);
}
.form-group textarea { min-height: 80px; resize: vertical; }
.form-tip { font-size: 0.78rem; color: #9aa1ad; margin-top: 4px; }

/* 登录提示 */
.login-note {
  background: #fdf0f3;
  border: 1px solid #fbd5df;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #be123c;
  margin-bottom: 16px;
}

/* 输入错误 */
.input-error { border-color: #e11d48 !important; }

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #9aa1ad;
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state p { font-size: 0.95rem; }

/* 提示消息 */
.toast {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2430;
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.9rem;
  z-index: 300;
  box-shadow: 0 8px 24px rgba(31,36,48,0.25);
  animation: toastIn 0.3s ease;
}
@keyframes toastIn { from { transform: translate(-50%,-12px); opacity: 0; } to { transform: translate(-50%,0); opacity: 1; } }

/* ─── 管理后台 ────────────────────────────── */
.admin-panel { max-width: 1200px; margin: 0 auto; padding: 30px 20px 64px; }
.admin-head { margin-bottom: 24px; }
.admin-head h2 { font-size: 1.5rem; font-weight: 800; color: #1f2430; margin-bottom: 4px; }
.admin-head p { font-size: 0.88rem; color: #9aa1ad; }
.admin-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.admin-tab {
  padding: 9px 18px;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #5a6270;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.admin-tab:hover { background: #f0f1f4; }
.admin-tab.active { background: #1f2430; color: #fff; }

/* 产品管理表格 */
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.admin-table th {
  text-align: left;
  padding: 12px 14px;
  background: #f8f9fb;
  color: #5a6270;
  font-weight: 600;
  border-bottom: 1px solid #e8eaef;
  white-space: nowrap;
}
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eef0f4;
  color: #1f2430;
  vertical-align: middle;
}
.admin-table td .thumb-sm {
  width: 48px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
}
.admin-table .action-btn {
  padding: 5px 10px;
  border-radius: 6px;
  border: none;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  margin-right: 6px;
  transition: all 0.2s;
}
.admin-table .btn-edit { background: #eef2ff; color: #4f46e5; }
.admin-table .btn-edit:hover { background: #e0e7ff; }
.admin-table .btn-del { background: #fef2f2; color: #dc2626; }
.admin-table .btn-del:hover { background: #fee2e2; }
.admin-table .btn-enable { background: #e8f7ee; color: #16a34a; }
.admin-table .btn-enable:hover { background: #dcf2e4; }

/* 管理工具栏 & 账号标签 */
.admin-toolbar { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.admin-toolbar .btn { flex: none; padding: 10px 20px; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 6px; font-size: 0.78rem; font-weight: 600; }
.tag-green { background: #e8f7ee; color: #16a34a; }
.tag-gray { background: #f0f1f4; color: #6b7280; }
.tag-dark { background: #1f2430; color: #fff; }

/* 价格权限说明 */
.price-perm-tip {
  background: #f8f9fb;
  border: 1px solid #e8eaef;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.price-perm-tip .perm-title { font-weight: 700; color: #1f2430; font-size: 0.9rem; margin-bottom: 4px; }
.perm-line { font-size: 0.85rem; color: #5a6270; }
.perm-badge {
  display: inline-block;
  min-width: 72px;
  text-align: center;
  padding: 2px 10px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e2e5eb;
  font-weight: 600;
  color: #1f2430;
  margin-right: 6px;
}

/* 询价卡列表 */
.inquiry-list { display: flex; flex-direction: column; gap: 14px; }
.inquiry-card {
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  padding: 18px;
}
.inquiry-card .iq-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.inquiry-card .iq-name { font-weight: 700; color: #1f2430; font-size: 0.95rem; }
.inquiry-card .iq-time { font-size: 0.78rem; color: #9aa1ad; white-space: nowrap; }
.inquiry-card .iq-contact {
  font-size: 0.82rem;
  color: #5a6270;
  background: #f8f9fb;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 10px;
}
.inquiry-card .iq-note { font-size: 0.85rem; color: #5a6270; }

/* 响应式 */
@media (max-width: 900px) {
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .model-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .brand-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .brand-card { aspect-ratio: 5 / 6.4; }
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .brand-text small { display: none; }
  .nav-link { padding: 6px 10px; font-size: 0.82rem; }
  .entry-head h1 { font-size: 1.5rem; }
  .modal-product-layout { flex-direction: column; }
  .modal-product-img { flex: 1 1 auto; width: 100%; }
  .modal-contact { flex-direction: column; }
  .btn-contact { font-size: 0.9rem; }
}
/* ============================================================
   样式对齐补丁 · 2026-09-09
   补齐 app.js 实际引用但本文档缺失的类名，使样式与 JS 版本对齐
   ============================================================ */

/* ─── 搜索与筛选区 ─────────────────────────── */
.search-bar {
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 18px;
  display: grid;
  gap: 10px;
}
.search-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.search-input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid #e2e5eb;
  border-radius: 10px;
  background: #fafbfc;
  font-size: 0.9rem;
  color: #1f2430;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.search-input:focus { border-color: #e11d48; background: #fff; box-shadow: 0 0 0 3px rgba(225,29,72,0.08); }
.btn-search {
  flex-shrink: 0;
  padding: 10px 22px;
  border: none;
  border-radius: 10px;
  background: #e11d48;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.btn-search:active { background: #be123c; }
.filter-row {
  display: flex;
  gap: 10px;
}
.filter-row .filter-select {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid #e2e5eb;
  border-radius: 10px;
  background: #fff;
  font-size: 0.85rem;
  color: #5a6270;
  max-width: 50%;
}

/* ─── 分类标签内部元素 ─────────────────────── */
.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cat-icon { font-size: 1rem; line-height: 1; }
.cat-label { white-space: nowrap; }
.cat-count {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  background: #f0f1f5;
  color: #9aa1ad;
}
.cat-tab.active .cat-count { background: rgba(255,255,255,0.25); color: #fff; }

/* ─── 产品列表 ─────────────────────────────── */
.products-container { display: grid; gap: 16px; }
.product-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f5f6f8;
  overflow: hidden;
  position: relative;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-placeholder, .model-placeholder {
  width: 100%;
  height: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #c5cad4;
  background: #f5f6f8;
}
.product-card-body { padding: 12px 14px 14px; }
.product-card-brand {
  font-size: 0.7rem;
  font-weight: 700;
  color: #e11d48;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}
.product-card-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2430;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-craft {
  font-size: 0.75rem;
  color: #9aa1ad;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-card-price {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #eceef2;
  font-size: 1rem;
  font-weight: 800;
  color: #e11d48;
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.price-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #9aa1ad;
  background: #f6f7f9;
  padding: 2px 8px;
  border-radius: 999px;
}

/* ─── 面包屑当前页 ─────────────────────────── */
.crumb-current { color: #1f2430; font-weight: 600; cursor: default; }

/* ─── 弹窗宽度 ─────────────────────────────── */
.modal-login { max-width: 380px; }
.modal-inquiry { max-width: 500px; }
.modal-add-product { max-width: 640px; }

/* ─── 表单 ─────────────────────────────────── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.required { color: #e11d48; }
.price-fieldset {
  border: 1px solid #eceef2;
  border-radius: 12px;
  padding: 14px;
  margin: 4px 0 16px;
}
.price-fieldset legend {
  font-size: 0.78rem;
  font-weight: 700;
  color: #5a6270;
  padding: 0 8px;
}

/* ─── 询价记录卡 ───────────────────────────── */
.inquiry-product {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1f2430;
  margin-bottom: 8px;
}
.inquiry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.8rem;
  color: #9aa1ad;
}
.inquiry-note {
  margin-top: 8px;
  padding: 8px 10px;
  background: #f8f9fb;
  border-radius: 8px;
  font-size: 0.8rem;
  color: #5a6270;
}
.status-pending { color: #d97706; font-weight: 600; }
.status-done { color: #16a34a; font-weight: 600; }
.status-rejected { color: #9aa1ad; font-weight: 600; }

/* ─── 管理后台 ─────────────────────────────── */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}
.page-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1f2430;
}
.admin-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.stat-card {
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  padding: 14px 20px;
  min-width: 110px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: #e11d48;
  line-height: 1.2;
}
.stat-label { font-size: 0.75rem; color: #9aa1ad; }
.admin-content { display: grid; gap: 16px; }
.import-section {
  background: #fff;
  border: 1px dashed #d8dce4;
  border-radius: 14px;
  padding: 16px;
}
.btn-danger {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.btn-danger:hover { background: #fee2e2; }
.btn-sm { padding: 5px 12px; font-size: 0.78rem; border-radius: 8px; }

/* ─── 杂项 ─────────────────────────────────── */
.loading {
  text-align: center;
  padding: 60px 0;
  color: #9aa1ad;
  font-size: 0.9rem;
  letter-spacing: 2px;
}
.login-hint {
  text-align: center;
  margin-top: 14px;
  font-size: 0.8rem;
  color: #9aa1ad;
}
.company-img, .aftersale-img {
  width: 100%;
  border-radius: 14px;
  display: block;
}
.entry-contact-footer {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* ─── 微信内置浏览器兼容 ───────────────────── */
body { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font-family: inherit; }

/* ══════════════════════════════════════════
   审核版页脚（site-footer）
   ══════════════════════════════════════════ */
.site-footer {
  background: #fff;
  border-top: 1px solid #eef0f4;
  margin-top: 44px;
  padding: 30px 20px 36px;
  text-align: center;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 9px;
}
.footer-company { font-size: 0.92rem; color: #1f2430; }
.footer-company strong { font-weight: 700; letter-spacing: 0.5px; }
.footer-contact { font-size: 0.82rem; color: #5a6270; }
.footer-contact a { color: #e11d48; font-weight: 600; }
.footer-copy { font-size: 0.72rem; color: #9aa1ad; }
.footer-beian { font-size: 0.75rem; }
.footer-beian a { color: #9aa1ad; text-decoration: none; }
.footer-beian a:hover { color: #e11d48; }
