:root {
  --primary: #1f6feb;
  --bg: #f3f5f8;
  --card: #ffffff;
  --border: #e3e8ef;
  --text: #1f2733;
  --muted: #6b7787;
  --red: #d93a3a;
  --shadow: 0 2px 12px rgba(20, 40, 70, 0.1);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}
a { color: var(--primary); text-decoration: none; }

/* ===== 顶部 ===== */
.sr-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.sr-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.sr-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.sr-logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #1f6feb, #38a3f5);
  color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.sr-logo-text { font-weight: 700; font-size: 16px; color: var(--text); }
.sr-search { flex: 1; }
.sr-search input {
  width: 100%; max-width: 480px; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 10px; font-size: 14px; background: var(--bg);
}
.sr-search input:focus { outline: none; border-color: var(--primary); background: #fff; }

.sr-main { max-width: 1200px; margin: 0 auto; padding: 20px; }

/* ===== 筛选栏 ===== */
.sr-filter {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; margin-bottom: 20px; box-shadow: var(--shadow);
}
.sr-filter-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.sr-field { display: flex; align-items: center; gap: 8px; }
.sr-field label { color: var(--muted); white-space: nowrap; }
.sr-field select, .sr-field input {
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 9px;
  font-size: 14px; background: #fff; min-width: 110px;
}
.sr-price-range { display: flex; align-items: center; gap: 6px; }
.sr-price-range input { width: 90px; }
.sr-filter-actions { margin-left: auto; display: flex; gap: 10px; }
.btn {
  padding: 8px 16px; border-radius: 9px; border: 1px solid var(--border);
  background: #fff; cursor: pointer; font-size: 14px;
}
.btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn.link { border: none; background: none; color: var(--muted); }

/* ===== 顶部 Banner 轮播 ===== */
.sr-banner {
  position: relative; border-radius: var(--radius); overflow: hidden;
  margin-bottom: 20px; box-shadow: var(--shadow); background: #e9eef4;
}
.sr-banner-track { display: flex; transition: transform .5s ease; }
.sr-banner-slide { position: relative; min-width: 100%; aspect-ratio: 21 / 8; display: block; }
.sr-banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.sr-banner-caption {
  position: absolute; left: 0; bottom: 0; right: 0; padding: 26px 28px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .65)); color: #fff;
}
.sr-banner-title { font-size: 20px; font-weight: 700; }
.sr-banner-price { color: #ffd9d9; font-weight: 700; margin-top: 4px; }
.sr-banner-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px;
  border-radius: 50%; border: none; background: rgba(255, 255, 255, .85); cursor: pointer;
  font-size: 20px; line-height: 1; color: var(--text);
}
.sr-banner-arrow.left { left: 14px; }
.sr-banner-arrow.right { right: 14px; }
.sr-banner-dots { position: absolute; right: 18px; bottom: 14px; display: flex; gap: 8px; }
.sr-banner-dot {
  width: 9px; height: 9px; border-radius: 50%; border: none; padding: 0;
  background: rgba(255, 255, 255, .5); cursor: pointer;
}
.sr-banner-dot.active { background: #fff; }

.sr-meta { color: var(--muted); margin: 0 0 14px; }

/* ===== 卡片网格 ===== */
.sr-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 18px;
}
.sr-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
  display: flex; flex-direction: column;
}
.sr-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(20, 40, 70, 0.16); }
.sr-thumb { position: relative; aspect-ratio: 16 / 10; background: #e9eef4; overflow: hidden; }
.sr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sr-thumb .sr-noimg {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: #9aa8b8; font-size: 13px;
  background: linear-gradient(135deg, #e9eef4, #d7e1ec);
}
.sr-card-body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
a.sr-card-title {
  font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  text-decoration: none;
}
.sr-card-price-loc { display: flex; flex-direction: column; gap: 4px; }
.sr-card-qr { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sr-card-qr img { width: 64px; height: 64px; border-radius: 8px; object-fit: contain; border: 1px solid var(--border); }
.sr-card-qr span { font-size: 11px; color: var(--muted); }
.sr-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sr-tag {
  font-size: 12px; color: var(--muted); background: var(--bg);
  border-radius: 6px; padding: 3px 8px;
}
.sr-card-foot { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; }
.sr-price { color: var(--red); font-weight: 700; font-size: 20px; }
.sr-price small { font-size: 12px; font-weight: 400; }
.sr-location { color: var(--muted); font-size: 12px; }

/* ===== 详情 ===== */
.sr-detail { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; }
.sr-gallery { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.sr-gallery-main { aspect-ratio: 16 / 10; background: #e9eef4; }
.sr-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.sr-gallery-thumbs { display: flex; gap: 10px; padding: 12px; overflow-x: auto; }
.sr-gallery-thumbs .t {
  width: 84px; height: 64px; border-radius: 8px; overflow: hidden; flex-shrink: 0;
  border: 2px solid transparent; cursor: pointer; background: #e9eef4;
}
.sr-gallery-thumbs .t.active { border-color: var(--primary); }
.sr-gallery-thumbs .t img { width: 100%; height: 100%; object-fit: cover; }
.sr-detail-panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.sr-detail-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.sr-detail-price { color: var(--red); font-weight: 700; font-size: 26px; margin: 10px 0; }
.sr-detail-price small { font-size: 13px; font-weight: 400; }
.sr-kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 18px; margin-top: 16px; }
.sr-kv .item { display: flex; flex-direction: column; gap: 2px; }
.sr-kv .k { color: var(--muted); font-size: 12px; }
.sr-kv .v { font-size: 14px; }

/* ===== 参数分组表（左导航 + 右分组） ===== */
.sr-param-wrap { display: flex; gap: 22px; margin-top: 16px; align-items: flex-start; }
.sr-param-nav {
  width: 124px; flex: 0 0 124px; position: sticky; top: 16px;
  display: flex; flex-direction: column; gap: 2px;
}
.sr-param-nav-item {
  padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 13px;
}
.sr-param-nav-item:hover { background: var(--bg); color: var(--primary); }
.sr-param-body { flex: 1; min-width: 0; }
.sr-param-group + .sr-param-group { margin-top: 24px; }
.sr-param-group-title { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.sr-param-table {
  margin: 0; display: grid; grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
}
.sr-param-row { display: flex; border-bottom: 1px solid var(--border); }
.sr-param-row:nth-child(odd) { border-right: 1px solid var(--border); }
.sr-param-row:last-child, .sr-param-row:nth-last-child(2):nth-child(odd) { border-bottom: none; }
.sr-param-row dt {
  width: 42%; background: #f7f9fc; color: var(--muted);
  padding: 10px 12px; font-size: 13px; font-weight: 400;
}
.sr-param-row dd { flex: 1; margin: 0; padding: 10px 12px; font-size: 13px; }

@media (max-width: 640px) {
  .sr-param-wrap { flex-direction: column; gap: 12px; }
  .sr-param-nav { position: static; width: auto; flex: 0 0 auto; flex-direction: row; overflow-x: auto; }
  .sr-param-nav-item { white-space: nowrap; }
  .sr-param-table { grid-template-columns: 1fr; }
  .sr-param-row:nth-child(odd) { border-right: none; }
}
.sr-note { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.sr-note h4 { margin: 0 0 8px; font-size: 14px; }
.sr-note p { color: var(--text); margin: 0; white-space: pre-wrap; }
.sr-detail-qr {
  display: flex; gap: 16px; align-items: center; margin-top: 18px;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.sr-detail-qr img {
  width: 104px; height: 104px; border-radius: 10px; object-fit: contain; border: 1px solid var(--border);
}
.sr-detail-qr-text h4 { margin: 0 0 6px; font-size: 14px; }
.sr-detail-qr-text p { margin: 0; color: var(--muted); font-size: 13px; }
.sr-back { margin-bottom: 16px; }

/* ===== 空态 / 加载 ===== */
.sr-empty {
  text-align: center; color: var(--muted); padding: 70px 20px; background: var(--card);
  border: 1px dashed var(--border); border-radius: var(--radius);
}
.sr-loading { text-align: center; color: var(--muted); padding: 50px; }

.sr-footer {
  max-width: 1200px; margin: 20px auto 0; padding: 18px 20px; color: var(--muted);
  font-size: 12px; text-align: center; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 6px;
}
.sr-footer .sr-copyright { color: var(--muted); }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .sr-detail { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sr-header-inner { flex-wrap: wrap; gap: 10px; }
  .sr-search { flex-basis: 100%; }
  .sr-search input { max-width: none; }
  .sr-filter-actions { margin-left: 0; }
  .sr-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .sr-banner-slide { aspect-ratio: 16 / 10; }
  .sr-banner-title { font-size: 16px; }
  .sr-banner-caption { padding: 16px; }
}

.sr-logo-img{width:40px;height:40px;border-radius:50%;object-fit:cover;display:block}
.sr-back{font-size:14px;color:#1C5C89;text-decoration:none;border:1px solid #D7E7F5;border-radius:999px;padding:7px 14px;background:#fff}
.sr-back:hover{background:#F2F8FE}
