/* ===== 本地商家目录 · 网站版样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #f97316;
  --primary-dark: #ea580c;
  --primary-light: #fff3e8;
  --blue: #2563eb;
  --green: #16a34a;
  --red: #dc2626;
  --text: #1f2937;
  --text-2: #6b7280;
  --bg: #f5f6f8;
  --card: #ffffff;
  --border: #e5e7eb;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.05);
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ===== 顶栏 ===== */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(135deg, var(--primary) 0%, #f59e0b 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(249,115,22,.25);
}
.topbar-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 14px 20px;
  display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 8px; font-size: 28px; line-height: 34px; font-weight: 800; letter-spacing: .3px; white-space: nowrap; min-width: 0; }

/* 顶栏栏目跳转按钮（本地商家 / 条路维修） */
.topbar-nav {
  margin-left: auto; padding: 7px 16px; border-radius: 999px;
  font-size: 14.5px; font-weight: 700; color: #fff; text-decoration: none;
  white-space: nowrap; background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35); transition: background .15s;
}
.topbar-nav:hover { background: rgba(255,255,255,.3); }
.brand .logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.topbar .search {
  flex: 1; max-width: 460px;
  display: flex; align-items: center;
  background: rgba(255,255,255,.95);
  border-radius: 999px; padding: 0 6px 0 16px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.08);
}
.topbar .search input {
  flex: 1; border: none; outline: none; background: transparent;
  padding: 9px 0; font-size: 14px; color: var(--text); min-width: 0;
}
.topbar .search button {
  border: none; background: var(--primary-dark); color: #fff;
  border-radius: 999px; padding: 7px 18px; font-size: 14px; cursor: pointer;
  transition: opacity .15s;
}
.topbar .search button:hover { opacity: .88; }
.topbar .admin-link {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  padding: 7px 14px; border-radius: 999px;
  font-size: 13.5px; cursor: pointer; white-space: nowrap;
  transition: background .15s;
}
.topbar .admin-link:hover { background: rgba(255,255,255,.3); }

.topbar .nav-link {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  padding: 7px 14px; border-radius: 999px;
  font-size: 13.5px; cursor: pointer; white-space: nowrap;
  transition: background .15s; color: #fff;
}
.topbar .nav-link:hover { background: rgba(255,255,255,.3); }

/* ===== 顶栏栏目切换（本地商家 / 条路维修） ===== */
.topbar-tabs { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.topbar-tab {
  padding: 7px 16px; border-radius: 999px;
  font-size: 14.5px; font-weight: 700; color: #fff;
  text-decoration: none; white-space: nowrap;
  transition: background .15s, color .15s;
}
.topbar-tab:hover { background: rgba(255,255,255,.18); }
.topbar-tab.active {
  background: rgba(255,255,255,.95); color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,.10);
}

/* ===== 首页内嵌条路维修板块 ===== */
.repair-home-section { margin-top: 30px; }
.repair-home-slogan { text-align: center; color: #9a3412; font-weight: 700; font-size: 15px; margin: -6px 0 16px; }
.repair-home-empty { text-align: center; color: var(--text-2); font-size: 14px; padding: 18px 0; }
.repair-home-empty a { color: var(--primary); font-weight: 600; }

/* ===== 页面标题 ===== */
.page-title {
  max-width: 1100px; margin: 28px auto 8px; padding: 0 20px;
  text-align: center;
}
.page-title h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; color: var(--text); }
.page-title p { font-size: 14.5px; color: var(--text-2); }

/* ===== 商品列表 ===== */
.goods-list {
  max-width: 1100px; margin: 18px auto 40px; padding: 0 20px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px;
}
.goods-card {
  background: var(--card); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow); cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  border: 1px solid transparent;
}
.goods-card:hover {
  transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.1); border-color: var(--primary);
}
.goods-img-wrap {
  width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: #f8f9fa;
}
.goods-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .25s;
}
.goods-card:hover .goods-img-wrap img { transform: scale(1.05); }
.goods-info {
  padding: 14px 16px 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.goods-title { font-size: 15px; font-weight: 700; line-height: 1.4; }
.goods-price { font-size: 20px; color: #e63946; font-weight: 800; }
.goods-price .unit { font-size: 12px; font-weight: 400; margin-right: 2px; }

/* ===== 商品详情 ===== */
.goods-detail-wrap {
  max-width: 720px; margin: 24px auto 80px; padding: 0 20px;
}
.goods-detail-img {
  width: 100%; border-radius: 18px; box-shadow: var(--shadow);
  display: block; margin-bottom: 20px;
}
.goods-detail-title { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.goods-detail-price { font-size: 26px; color: #e63946; font-weight: 800; margin-bottom: 20px; }
.goods-detail-price .unit { font-size: 14px; font-weight: 400; }
.goods-detail-desc {
  font-size: 15.5px; line-height: 1.8; color: var(--text);
  background: var(--card); border-radius: 14px; padding: 22px 24px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  white-space: pre-wrap; margin-bottom: 22px;
}

/* 好物详情 · 视频播放区 */
.goods-video {
  margin: 0 0 16px; border-radius: 14px; overflow: hidden;
  background: #000; box-shadow: var(--shadow); border: 1px solid var(--border);
}
.goods-video iframe {
  display: block; width: 100%; height: auto; border: 0;
}
.goods-video video {
  display: block; width: 100%; max-height: 72vh; background: #000;
}
/* 竖屏视频（抖音等）居中自适应 */
.goods-video.goods-video-portrait {
  max-width: 360px; margin: 0 auto 16px;
}
.goods-video.goods-video-portrait iframe {
  aspect-ratio: 9 / 16;
}

/* ===== 响应式（补充） ===== */
@media (max-width: 640px) {
  .topbar-inner { padding: 12px 14px; gap: 10px; flex-wrap: wrap; }
  .brand { font-size: 26px; line-height: 34px; }
  .topbar .search { order: 3; max-width: none; width: 100%; flex-basis: 100%; }
  .topbar .nav-link { font-size: 12.5px; padding: 6px 11px; }
  .topbar .admin-link { font-size: 12.5px; padding: 6px 11px; }
  .grid { grid-template-columns: 1fr; padding: 0 14px; }
  .admin-item { flex-direction: column; align-items: stretch; }
  .admin-item .ops { width: 100%; }
  /* 纵向排列后子元素按内容撑开，而 .sub 是 nowrap，会把整页撑到 1000px+ —— 强制限宽并允许换行 */
  .admin-item .info,
  .admin-item .name { width: 100%; max-width: 100%; min-width: 0; }
  .admin-item .sub {
    white-space: normal; overflow: visible; text-overflow: clip;
    word-break: break-word; overflow-wrap: anywhere;
  }
  .admin-list { min-width: 0; }
  .op-btn { flex: 1; justify-content: center; }
  .detail-actions { flex-direction: column; }
  .goods-list { grid-template-columns: 1fr 1fr; padding: 0 14px; gap: 14px; }
  .page-title h1 { font-size: 22px; }
  .page-title p { font-size: 13.5px; }
  .goods-info { padding: 10px 12px 12px; }
  .goods-title { font-size: 13.5px; }
  .goods-price { font-size: 17px; }
  .goods-detail-wrap { padding: 0 14px; }
  .goods-detail-title { font-size: 20px; }
  .goods-detail-price { font-size: 22px; }
  .goods-detail-desc { padding: 18px 16px; }
  .goods-admin-item { flex-direction: column; align-items: flex-start; }
  .goods-admin-item .ops { width: 100%; }
  .tab-btn { font-size: 12.5px; padding: 7px 14px; }
  .img-preview { width: 100%; height: 140px; }
  .img-upload-area { flex-direction: column; }
  .img-upload-area .input { width: 100%; }
}


/* ===== 商家卡片网格 ===== */
.grid {
  max-width: 1100px; margin: 16px auto 60px; padding: 0 20px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px;
}
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
  cursor: pointer; transition: transform .15s, box-shadow .15s;
  border: 1px solid transparent;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); border-color: var(--primary); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card-name { font-size: 17px; font-weight: 700; line-height: 1.4; }
.tag {
  flex-shrink: 0; font-size: 11.5px; padding: 3px 10px; border-radius: 999px;
  background: var(--primary-light); color: var(--primary-dark); font-weight: 600;
  white-space: nowrap;
}
.tag.home-badge { background: #fff7e6; color: #b26a00; border: 1px solid #ffd591; }

.card-biz { font-size: 13.5px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.card-meta { display: flex; flex-direction: column; gap: 5px; margin-top: auto; }
.meta-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.meta-row .ico { font-size: 14px; width: 16px; text-align: center; }

/* ===== 空状态 / 加载 ===== */
.empty { max-width: 1100px; margin: 60px auto; text-align: center; color: var(--text-2); font-size: 15px; }
.empty .big { font-size: 44px; margin-bottom: 10px; }
.loading { text-align: center; padding: 60px 0; color: var(--text-2); }
.spinner {
  width: 34px; height: 34px; margin: 0 auto 12px;
  border: 3px solid var(--border); border-top-color: var(--primary);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== 详情页 ===== */
.detail-wrap { max-width: 640px; margin: 24px auto 80px; padding: 0 20px; }
.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 999px; font-size: 13.5px;
  cursor: pointer; margin-bottom: 18px; transition: all .15s;
}
.back-btn:hover { border-color: var(--primary); color: var(--primary); }
.detail-card {
  background: var(--card); border-radius: 18px; box-shadow: var(--shadow);
  overflow: hidden;
}
.detail-head {
  background: linear-gradient(135deg, var(--primary) 0%, #f59e0b 100%);
  color: #fff; padding: 28px 26px 24px;
}
.detail-name { font-size: 24px; font-weight: 800; }
.detail-body { padding: 24px 26px; display: flex; flex-direction: column; gap: 4px; }
.info-row {
  display: flex; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--border); align-items: flex-start;
}
.info-row:last-child { border-bottom: none; }
.info-row .label { width: 64px; flex-shrink: 0; font-size: 13.5px; color: var(--text-2); padding-top: 2px; }
.info-row .value { font-size: 15px; color: var(--text); word-break: break-all; }
.phone-link { color: var(--blue); font-weight: 600; }
.detail-actions { display: flex; gap: 12px; margin-top: 22px; }
.btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 18px; border-radius: 999px; border: none;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: opacity .15s, transform .1s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { opacity: .9; }
.btn-outline { background: var(--card); border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-green { background: var(--green); color: #fff; }
.btn-red { background: var(--red); color: #fff; }

/* 详情页 · 提示语（位于电话下方） */
.detail-note {
  margin-top: 14px; padding: 12px 14px;
  background: #f8fafc; border-left: 3px solid var(--primary);
  border-radius: 8px; font-size: 13px; line-height: 1.7; color: var(--text-2);
}

/* ===== 管理后台 ===== */
.admin-wrap { max-width: 1000px; margin: 24px auto 80px; padding: 0 20px; }
.admin-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
}
.admin-header h2 { font-size: 20px; display: flex; align-items: center; gap: 8px; }
.admin-actions { display: flex; gap: 10px; }
.btn-sm { padding: 8px 16px; font-size: 13.5px; border-radius: 999px; border: none; cursor: pointer; transition: opacity .15s; display: inline-flex; align-items: center; gap: 6px; }
.btn-sm:hover { opacity: .88; }

/* 登录卡片 */
.login-card {
  max-width: 380px; margin: 60px auto; background: var(--card);
  border-radius: 18px; box-shadow: var(--shadow); padding: 34px 30px;
  text-align: center;
}
.login-card .lock { font-size: 42px; margin-bottom: 12px; }
.login-card h2 { font-size: 19px; margin-bottom: 6px; }
.login-card p { font-size: 13px; color: var(--text-2); margin-bottom: 22px; }
.input {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: 12px; font-size: 14.5px; outline: none; transition: border .15s;
  background: #fff; color: var(--text);
}
.input:focus { border-color: var(--primary); }
.login-card .input { text-align: center; margin-bottom: 14px; }
.login-error { color: var(--red); font-size: 13px; min-height: 20px; margin-bottom: 8px; }

/* 管理列表 */
.admin-list { display: flex; flex-direction: column; gap: 10px; }
.admin-item {
  background: var(--card); border-radius: 12px; box-shadow: var(--shadow);
  padding: 14px 18px; display: flex; align-items: center; gap: 14px;
}
.admin-item .info { flex: 1; min-width: 0; }
.admin-item .name { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-item .sub { font-size: 12.5px; color: var(--text-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-item .ops { display: flex; gap: 8px; flex-shrink: 0; }
/* 首页排序弹窗 */
.sort-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 12px;
}
.sort-idx {
  width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%;
  background: var(--primary-light); color: var(--primary-dark);
  font-size: 12.5px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.sort-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sort-num-label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); white-space: nowrap; flex-shrink: 0; }
.sort-num-label input.sort-input { width: 72px; margin: 0; padding: 6px 8px; text-align: center; }
.sort-arrow {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px;
  border: 1px solid var(--border); background: #fff; cursor: pointer;
  font-size: 15px; line-height: 1; transition: all .15s;
}
.sort-arrow:hover:not(:disabled) { background: var(--primary-light); border-color: var(--primary); }
.sort-arrow:disabled { opacity: .35; cursor: not-allowed; }
/* 拖拽排序 */
.sort-row[draggable="true"] { cursor: grab; user-select: none; }
.sort-row[draggable="true"]:active { cursor: grabbing; }
.sort-row.dragging { opacity: .45; border-color: var(--primary); background: var(--primary-light); }
.sort-row.drag-over { border-color: var(--primary); }
.sort-grip {
  flex-shrink: 0; color: var(--text-2); font-size: 15px; line-height: 1;
  cursor: grab; user-select: none; opacity: .65;
}
.op-btn {
  border: 1px solid var(--border); background: #fff; border-radius: 8px;
  padding: 6px 12px; font-size: 12.5px; cursor: pointer; transition: all .15s;
  display: inline-flex; align-items: center; gap: 4px;
}
.op-btn.edit:hover { border-color: var(--blue); color: var(--blue); }
.op-btn.del:hover { border-color: var(--red); color: var(--red); }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn .15s;
  overflow-y: auto;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--card); border-radius: 18px; width: 100%; max-width: 460px;
  padding: 26px; box-shadow: 0 20px 60px rgba(0,0,0,.25); animation: pop .18s;
  max-height: 85vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal h3 { font-size: 17px; margin-bottom: 18px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.form-group select.input { appearance: auto; }
.check-label {
  display: flex !important; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text) !important; margin-bottom: 0 !important;
  cursor: pointer; user-select: none;
}
.check-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.modal-btns { display: flex; gap: 10px; margin-top: 20px; }

/* 页脚 */
.footer {
  text-align: center; color: var(--text-2); font-size: 12.5px;
  padding: 26px 20px 34px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.footer-admin {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 64px; padding: 6px 18px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card);
  font-size: 13px; color: var(--text-2); transition: all .15s;
}
.footer-admin:hover { border-color: var(--primary); color: var(--primary); }
.footer-admin-group { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.footer-icp {
  color: var(--text-2); text-decoration: none; font-size: 12px;
  transition: color .15s;
}
.footer-icp:hover { color: var(--primary); text-decoration: underline; }

/* ===== Tab 切换栏 ===== */
.tab-bar {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 22px; flex-wrap: wrap;
}
.tab-btn {
  padding: 9px 20px; border-radius: 999px; border: 1.5px solid var(--border);
  background: var(--card); font-size: 14px; font-weight: 600;
  color: var(--text-2); cursor: pointer; transition: all .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.tab-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ===== 好物管理列表 ===== */
.goods-admin-list { display: flex; flex-direction: column; gap: 10px; }
.goods-admin-item {
  background: var(--card); border-radius: 12px; box-shadow: var(--shadow);
  padding: 12px 16px; display: flex; align-items: center; gap: 14px;
}
.goods-admin-thumb {
  width: 64px; height: 64px; border-radius: 10px; overflow: hidden;
  background: #f5f5f5; flex-shrink: 0;
}
.goods-admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.goods-admin-info { flex: 1; min-width: 0; }
.goods-admin-title { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.goods-admin-price { font-size: 15px; color: #e63946; font-weight: 700; }
.goods-admin-desc { font-size: 12.5px; color: var(--text-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== 图片上传区 ===== */
.img-upload-area {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px;
}
.img-preview {
  width: 120px; height: 120px; border-radius: 10px;
  border: 2px dashed var(--border); background: #fafafa;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0; cursor: pointer;
  transition: border-color .15s;
}
.img-preview:hover { border-color: var(--primary); }
.img-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ===== 响应式 ===== */
@media (max-width: 640px) {
  .topbar-inner { padding: 12px 14px; gap: 10px; flex-wrap: wrap; }
  .brand { font-size: 26px; line-height: 34px; }
  .topbar .search { order: 3; max-width: none; width: 100%; flex-basis: 100%; }
  .topbar .admin-link { font-size: 12.5px; padding: 6px 11px; }
  .grid { grid-template-columns: 1fr; padding: 0 14px; }
  .admin-item { flex-direction: column; align-items: stretch; }
  .admin-item .ops { width: 100%; }
  /* 纵向排列后子元素按内容撑开，而 .sub 是 nowrap，会把整页撑到 1000px+ —— 强制限宽并允许换行 */
  .admin-item .info,
  .admin-item .name { width: 100%; max-width: 100%; min-width: 0; }
  .admin-item .sub {
    white-space: normal; overflow: visible; text-overflow: clip;
    word-break: break-word; overflow-wrap: anywhere;
  }
  .admin-list { min-width: 0; }
  .op-btn { flex: 1; justify-content: center; }
  .detail-actions { flex-direction: column; }
  .goods-list { grid-template-columns: 1fr 1fr; padding: 0 14px; gap: 14px; }
  .page-title h1 { font-size: 22px; }
  .page-title p { font-size: 13.5px; }
  .goods-info { padding: 10px 12px 12px; }
  .goods-title { font-size: 13.5px; }
  .goods-price { font-size: 17px; }
  .goods-detail-wrap { padding: 0 14px; }
  .goods-detail-title { font-size: 20px; }
  .goods-detail-price { font-size: 22px; }
  .goods-detail-desc { padding: 18px 16px; }
  .goods-admin-item { flex-direction: column; align-items: flex-start; }
  .goods-admin-item .ops { width: 100%; }
  .tab-btn { font-size: 12.5px; padding: 7px 14px; }
  .img-preview { width: 100%; height: 140px; }
  .img-upload-area { flex-direction: column; }
  .img-upload-area .input { width: 100%; }
  .btn-sm { padding: 10px 16px; }
  .op-btn { padding: 9px 14px; }
  .sort-arrow { width: 38px; height: 38px; font-size: 16px; }
  .modal-mask { padding: 12px; }
  .modal { padding: 18px; max-height: 92vh; }
  .detail-name { font-size: 20px; }
  .detail-head { padding: 22px 18px 20px; }
  .detail-body { padding: 20px 18px; }
  .info-row .label { width: 56px; font-size: 12.5px; }
  .info-row .value { font-size: 14px; }
  .admin-wrap { padding: 0 14px; }
  .login-card { padding: 28px 22px; margin: 40px auto; }
}

/* ===== 本地好物轮播板块 ===== */
.section {
  max-width: 1100px; margin: 0 auto 24px; padding: 0 20px;
}
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.section-header h2 {
  font-size: 18px; font-weight: 800; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.section-count {
  font-size: 13px; color: var(--text-2); font-weight: 600;
  white-space: nowrap;
}
.section-more {
  font-size: 13.5px; color: var(--primary); font-weight: 600;
  transition: opacity .15s;
}
.section-more:hover { opacity: .8; }
.section-sub {
  font-size: 13px; color: var(--text-2); font-weight: 500;
  margin-left: auto;
}

/* 好物板块与顶栏留出间距，与下方「资讯-商家」间距保持一致 */
.goods-carousel-section { margin-top: 28px; }

/* 轮播容器 */
.carousel-wrap {
  position: relative; overflow: hidden; border-radius: 18px;
  background: var(--card); box-shadow: var(--shadow);
  border: 1px solid var(--border);
  touch-action: pan-y; /* 横向滑动手势交给JS处理，避免触发浏览器返回 */
}
.carousel-track {
  display: flex; transition: transform .5s ease;
}
.carousel-slide {
  flex: 0 0 100%; cursor: pointer;
  display: flex; flex-direction: column;
}
.carousel-img-wrap {
  width: 100%; height: 360px; overflow: hidden;
  background: #f8f9fa; position: relative;
}
.carousel-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s;
}
.carousel-slide:hover .carousel-img-wrap img { transform: scale(1.03); }
.carousel-info {
  padding: 14px 18px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.carousel-title {
  font-size: 16px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.carousel-price {
  font-size: 18px; color: #e63946; font-weight: 800; flex-shrink: 0;
}
.carousel-price .unit { font-size: 12px; font-weight: 400; margin-right: 2px; }

/* 轮播指示点 */
.carousel-dots {
  display: flex; justify-content: center; gap: 8px;
  padding: 0 18px 14px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); cursor: pointer;
  transition: all .25s;
}
.dot.active {
  width: 22px; border-radius: 999px; background: var(--primary);
}

/* ===== 本地资讯板块（集成框） ===== */
.news-section { margin-bottom: 28px; }
.news-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}
.news-item {
  padding: 13px 16px; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  min-width: 0;
  background: var(--card);
  transition: background .15s;
}
.news-item:hover { background: var(--primary-light); }
.news-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0;
}
.news-text {
  font-size: 14.5px; color: var(--text); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: .3px;
}

/* ===== 资讯详情页 ===== */
.news-detail-wrap {
  max-width: 720px; margin: 24px auto 80px; padding: 0 20px;
}
.news-detail-img-wrap {
  width: 100%; border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow); margin-bottom: 20px;
  background: #f8f9fa; aspect-ratio: 16 / 9;
}
.news-detail-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.news-detail-title {
  font-size: 24px; font-weight: 800; margin-bottom: 18px; color: var(--text);
}
.news-detail-body {
  font-size: 16px; line-height: 1.85; color: var(--text);
  background: var(--card); border-radius: 14px; padding: 24px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
  margin-bottom: 24px;
}

/* ===== 客服页 ===== */
.kefu-wrap {
  max-width: 420px; margin: 40px auto 80px; padding: 0 20px;
}
.kefu-card {
  background: var(--card); border-radius: 20px;
  box-shadow: var(--shadow); padding: 36px 28px;
  text-align: center; border: 1px solid var(--border);
}
.kefu-icon { font-size: 48px; margin-bottom: 12px; }
.kefu-card h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.kefu-sub { font-size: 14px; color: var(--text-2); margin-bottom: 24px; }
.kefu-qr {
  width: 200px; height: 200px; margin: 0 auto 20px;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  border: 1px solid var(--border); background: #fff;
}
.kefu-qr img { width: 100%; height: 100%; object-fit: contain; display: block; }
.kefu-wechat {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--primary-light); border-radius: 999px;
  padding: 8px 20px; margin-bottom: 12px;
}
.kefu-wechat .label { font-size: 13px; color: var(--primary-dark); font-weight: 600; }
.kefu-wechat .value { font-size: 15px; color: var(--text); font-weight: 700; font-family: monospace; }
.kefu-hint { font-size: 13px; color: var(--text-2); }

/* ===== 资讯管理列表 ===== */
.news-admin-list { display: flex; flex-direction: column; gap: 10px; }
.news-admin-item {
  background: var(--card); border-radius: 12px; box-shadow: var(--shadow);
  padding: 12px 16px; display: flex; align-items: center; gap: 14px;
}
.news-admin-thumb {
  width: 80px; height: 56px; border-radius: 8px; overflow: hidden;
  background: #f5f5f5; flex-shrink: 0;
}
.news-admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-admin-info { flex: 1; min-width: 0; }
.news-admin-title { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.news-admin-desc { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== 商家详情 · 店铺展示图片 ===== */
.shop-display-img {
  width: 100%; max-width: 640px; border-radius: 18px;
  box-shadow: var(--shadow); display: block; margin: 0 auto 20px;
}

/* ===== 好物详情 · 直播间按钮 ===== */
.btn-live {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 18px; border-radius: 999px; border: none;
  font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none;
  background: linear-gradient(135deg, #ff4e6a 0%, #ff6b35 100%); color: #fff;
  margin-bottom: 16px; transition: opacity .15s;
}
.btn-live:hover { opacity: .9; }

/* ===== 好物详情 · 抖音直播间嵌入 ===== */
.goods-live-wrap {
  margin-bottom: 22px;
}
.goods-live-header {
  font-size: 16px; font-weight: 700; color: #ff4e6a;
  margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.goods-live-iframe-wrap {
  width: 100%; border-radius: 14px; overflow: hidden;
  background: #000; box-shadow: var(--shadow); border: 1px solid var(--border);
  height: 50vh; min-height: 280px; max-height: 600px;
}
.goods-live-iframe {
  width: 100%; height: 100%; border: 0; display: block;
}
.goods-live-fallback {
  display: block; text-align: center; margin-top: 10px;
  font-size: 13px; color: var(--text-2);
}
.goods-live-fallback:hover { color: var(--primary); }

/* ===== 商家入驻链接 ===== */
.join-link {
  max-width: 1100px; margin: 0 auto 50px; padding: 0 20px;
  text-align: center;
}
.join-link a {
  display: inline-block; font-size: 16px; font-weight: 700;
  color: var(--primary); padding: 10px 28px;
  border-radius: 999px; border: 1.5px solid var(--primary);
  background: var(--card); transition: all .15s;
}
.join-link a:hover { background: var(--primary); color: #fff; }

/* ===== 商家入驻页 ===== */
.join-wrap {
  max-width: 560px; margin: 40px auto 80px; padding: 0 20px;
}
.join-card {
  background: var(--card); border-radius: 20px;
  box-shadow: var(--shadow); padding: 40px 30px;
  text-align: center; border: 1px solid var(--border);
}
.join-icon { font-size: 52px; margin-bottom: 14px; }
.join-card h1 { font-size: 24px; font-weight: 800; margin-bottom: 6px; color: var(--text); }
.join-sub { font-size: 14px; color: var(--text-2); margin-bottom: 30px; }
.join-contact {
  background: var(--primary-light); border-radius: 16px;
  padding: 24px 20px; margin-bottom: 24px;
}
.join-contact-label { font-size: 15px; color: var(--text-2); margin-bottom: 10px; }
.join-phone {
  font-size: 22px; font-weight: 800; color: var(--primary-dark);
  letter-spacing: .5px;
}
.join-divider {
  height: 1px; background: var(--border); margin: 24px 0;
}
.join-notice {
  font-size: 14px; color: var(--text-2); line-height: 1.8;
}

/* ===== 移动端适配 ===== */
@media (max-width: 640px) {
  .section { padding: 0 14px; }
  .section-header h2 { font-size: 16px; }
  .carousel-img-wrap { height: 220px; }
  .carousel-info { padding: 10px 14px 12px; }
  .carousel-title { font-size: 14px; }
  .carousel-price { font-size: 16px; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .news-item { padding: 12px 16px; gap: 8px; }
  .news-dot { width: 5px; height: 5px; }
  .news-text { font-size: 13px; }
  .news-detail-wrap { padding: 0 14px; }
  .news-detail-title { font-size: 20px; }
  .news-detail-body { padding: 18px 16px; font-size: 15px; }
  .kefu-wrap { padding: 0 14px; margin-top: 24px; }
  .kefu-card { padding: 28px 20px; }
  .kefu-qr { width: 160px; height: 160px; }
  .news-admin-item { flex-direction: column; align-items: flex-start; }
  .news-admin-item .ops { width: 100%; }
  .goods-live-iframe-wrap { height: 65vh; min-height: 260px; max-height: none; }
}

/* ===== 超小屏适配（≤380px：iPhone SE / Android小屏） ===== */
@media (max-width: 380px) {
  .topbar-inner { padding: 10px 12px; gap: 8px; }
  .brand { font-size: 20px; line-height: 28px; }
  .brand .logo { width: 28px; height: 28px; font-size: 15px; }
  .topbar .nav-link, .topbar .admin-link { font-size: 11.5px; padding: 5px 9px; }
  .goods-list { grid-template-columns: 1fr; }
  .card { padding: 16px; }
  .card-name { font-size: 15px; }
  .modal { padding: 16px; }
  .modal h3 { font-size: 15px; margin-bottom: 14px; }
  .carousel-img-wrap { height: 180px; }
  .kefu-qr { width: 140px; height: 140px; }
}

/* ===== 首页搜索框（位于「本地好物」下方） ===== */
.home-search-section { margin-top: 4px; margin-bottom: 28px; }
.home-search-box {
  display: flex; align-items: center; gap: 10px;
  max-width: 600px; margin: 0 auto;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 999px; padding: 6px 6px 6px 18px;
  box-shadow: var(--shadow);
}
.home-search-box input {
  flex: 1; border: none; outline: none; background: transparent;
  padding: 10px 0; font-size: 15px; color: var(--text); min-width: 0;
}
.home-search-box button {
  border: none; background: var(--primary); color: #fff;
  border-radius: 999px; padding: 10px 26px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: opacity .15s; white-space: nowrap;
}
.home-search-box button:hover { opacity: .9; }

/* ===== 本地商家列表（本地商家主页面） ===== */
.merchant-list {
  max-width: 1100px; margin: 14px auto 40px; padding: 0 20px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px;
}
.merchant-item {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 16px 18px; text-decoration: none; color: inherit;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.merchant-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  border-color: var(--primary);
}
.mi-name { font-size: 17px; font-weight: 800; margin-bottom: 6px; color: var(--text); }
.mi-biz { font-size: 13.5px; color: var(--primary); margin-bottom: 8px; }
.mi-addr, .mi-phone { font-size: 13px; color: var(--text-2); margin-top: 3px; }

/* 本地商家主页面 · 移动端适配 */
@media (max-width: 640px) {
  .merchant-list { grid-template-columns: 1fr; gap: 12px; }
}

/* ===== 首页搜索框 · 移动端适配 ===== */
@media (max-width: 640px) {
  .home-search-box { padding: 5px 5px 5px 14px; }
  .home-search-box input { font-size: 14px; padding: 9px 0; }
  .home-search-box button { padding: 9px 20px; font-size: 14px; }
}

/* ===== 首页「条路维修」入口 banner ===== */
.repair-banner { margin: 18px auto 0; max-width: 600px; }
.repair-banner-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1.5px solid #fed7aa; border-radius: var(--radius);
  padding: 14px 18px; box-shadow: var(--shadow);
}
.repair-banner-title { font-size: 13px; color: var(--primary-dark); font-weight: 600; }
.repair-banner-slogan { font-size: 16px; font-weight: 700; color: #9a3412; margin-top: 2px; }
.repair-banner-btn {
  flex: none; background: var(--primary); color: #fff; border-radius: 999px;
  padding: 10px 22px; font-size: 15px; font-weight: 600; transition: opacity .15s;
}
.repair-banner-btn:hover { opacity: .9; }

/* ===== 条路维修独立页 ===== */
.repair-hero { text-align: center; padding: 26px 16px 6px; }
.repair-logo { font-size: 30px; }
.repair-slogan { font-size: 24px; font-weight: 700; color: #9a3412; margin: 8px 0 6px; line-height: 1.4; }
.repair-sub { color: var(--text-2); font-size: 14px; }
.repair-section-title { text-align: center; font-size: 14px; color: var(--text-2); margin: 10px 0 14px; }

@media (max-width: 640px) {
  .repair-banner-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .repair-banner-btn { text-align: center; }
  .repair-slogan { font-size: 20px; }
}

/* ===== 维修公开页 · 搜索框与卡片 ===== */
.repair-search { max-width: 600px; margin: 0 auto 14px; }
.repair-search input {
  width: 100%; padding: 11px 16px; border: 1.5px solid var(--border);
  border-radius: 999px; font-size: 15px; outline: none; box-shadow: var(--shadow);
}
.card-avatar { width: 100%; height: 120px; object-fit: cover; border-radius: 10px; margin-bottom: 8px; background: var(--primary-light); }
.card-cert {
  display: inline-block; font-size: 11px; background: #dcfce7; color: #15803d;
  padding: 1px 8px; border-radius: 999px; margin-left: 6px; font-weight: 600;
}
.card-intro { font-size: 12.5px; color: var(--text-2); margin-top: 6px; line-height: 1.5; }

/* =========================================================
   条路维修平台（独立模块） · 全局样式 v16
   ========================================================= */
.rp-topbar { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.rp-topbar-inner { max-width: 1000px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 10px 16px; }
.rp-brand { font-size: 20px; font-weight: 800; color: #222; text-decoration: none; white-space: nowrap; }
.rp-brand span { color: var(--primary); }
.rp-topbar-nav { display: flex; gap: 4px; flex: 1; justify-content: center; flex-wrap: wrap; }
.rp-topbar-nav a { font-size: 14px; color: var(--text-2); text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.rp-topbar-nav a.on { color: var(--primary); background: var(--primary-light); font-weight: 600; }
.rp-topbar-btn { flex: none; background: var(--primary); color: #fff; text-decoration: none; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.rp-topbar-btn:hover { opacity: .9; }

.rp-hero { text-align: center; padding: 30px 16px 18px; background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%); }
.rp-hero h1 { font-size: 26px; margin: 0 0 8px; color: #9a3412; }
.rp-hero-sub { color: #b45309; font-size: 15px; margin: 0 0 18px; }
.rp-hero-search { display: flex; gap: 8px; max-width: 520px; margin: 0 auto; }
.rp-hero-search input { flex: 1; padding: 12px 16px; border: 1.5px solid #fed7aa; border-radius: 999px; font-size: 15px; outline: none; box-shadow: var(--shadow); }
.rp-hero-search button { flex: none; background: var(--primary); color: #fff; border: none; border-radius: 999px; padding: 0 24px; font-size: 15px; font-weight: 600; cursor: pointer; }
.rp-quick { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.rp-quick a { font-size: 14px; color: #9a3412; background: #fff; border: 1px solid #fed7aa; border-radius: 999px; padding: 6px 18px; text-decoration: none; }
.rp-quick a:hover { background: #fffbeb; }

.rp-section { max-width: 1000px; margin: 0 auto; padding: 22px 16px; }
.rp-section-title { font-size: 18px; font-weight: 700; margin: 0 0 14px; color: #222; }

.rp-top-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rp-card { display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.rp-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.10); }
.rp-card-avatar { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; margin: 0 auto 8px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; }
.rp-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rp-avatar-txt { font-size: 26px; font-weight: 700; color: var(--primary); }
.rp-card-name { text-align: center; font-size: 16px; font-weight: 700; }
.rp-card-cat { text-align: center; font-size: 13px; color: var(--text-2); margin-top: 4px; }
.rp-card-rating { text-align: center; font-size: 12px; color: #d98300; margin-top: 4px; }
.rp-card-call { text-align: center; margin-top: 10px; background: var(--primary); color: #fff; border-radius: 999px; padding: 8px 0; font-size: 14px; font-weight: 600; }
.rp-badge { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 999px; margin-left: 6px; vertical-align: middle; font-weight: 600; }
.rp-badge-top { background: #fff3e0; color: #d98300; }
.rp-badge-cert { background: #dcfce7; color: #15803d; }

.rp-ad { max-width: 1000px; margin: 0 auto; background: #fef3c7; border: 1px dashed #f59e0b; color: #92400e; border-radius: var(--radius); padding: 14px; text-align: center; font-size: 14px; }

.rp-how { text-align: center; }
.rp-steps { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.rp-steps div { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 22px; font-size: 16px; box-shadow: var(--shadow); }
.rp-steps span { display: inline-block; width: 26px; height: 26px; line-height: 26px; background: var(--primary); color: #fff; border-radius: 50%; margin-right: 8px; font-weight: 700; }
.rp-how-note { color: var(--text-2); font-size: 13px; margin-top: 12px; }

.rp-bigjob { max-width: 1000px; margin: 0 auto 18px; background: linear-gradient(135deg, #e23b3b 0%, #ff6b6b 100%); color: #fff; border-radius: var(--radius); padding: 24px 20px; text-align: center; }
.rp-bigjob h2 { margin: 0 0 6px; font-size: 22px; }
.rp-bigjob p { margin: 0 0 14px; opacity: .95; }
.rp-bigjob-btn { display: inline-block; background: #fff; color: var(--primary); text-decoration: none; padding: 12px 30px; border-radius: 999px; font-weight: 800; font-size: 17px; }

.rp-join { max-width: 1000px; margin: 0 auto 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 20px; text-align: center; box-shadow: var(--shadow); }
.rp-join h2 { margin: 0 0 6px; font-size: 20px; }
.rp-join p { margin: 0 0 14px; color: var(--text-2); }
.rp-join-btn { display: inline-block; background: var(--primary); color: #fff; text-decoration: none; padding: 11px 28px; border-radius: 999px; font-weight: 700; font-size: 15px; }

.rp-footer { background: #222; color: #ccc; padding: 22px 16px; text-align: center; font-size: 13px; }
.rp-footer-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.rp-footer-links a { color: #ddd; text-decoration: none; }
.rp-footer-icp { font-size: 12px; color: #999; }
.rp-footer-icp a { color: #999; }

/* 找师傅：后台可编辑文本广告位 */
.rp-ads-section { max-width: 1000px; margin: 0 auto 18px; padding: 18px 16px 0; }
.rp-ads-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.rp-ads-item { display: flex; align-items: center; gap: 8px; padding: 14px 16px; font-size: 14px; color: #222; text-decoration: none; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); transition: background .15s; }
.rp-ads-item:nth-child(3n) { border-right: none; }
.rp-ads-item:hover { background: #f9f9f9; }
.rp-ads-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.rp-ads-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 768px) {
  .rp-ads-grid { grid-template-columns: repeat(2, 1fr); }
  .rp-ads-item:nth-child(3n) { border-right: 1px solid var(--border); }
  .rp-ads-item:nth-child(2n) { border-right: none; }
}

/* 找师傅：筛选 */
.rp-filters { margin-bottom: 16px; }
.rp-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.rp-tabs a { font-size: 14px; color: var(--text-2); background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 7px 16px; text-decoration: none; cursor: pointer; }
.rp-tabs a.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.rp-areas { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.rp-areas a { font-size: 13px; color: var(--text-2); background: #f4f6f9; border-radius: 999px; padding: 5px 14px; text-decoration: none; cursor: pointer; }
.rp-areas a.on { background: #fff3e0; color: #d98300; }
.rp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rp-empty { text-align: center; color: var(--text-2); padding: 30px 10px; font-size: 14px; }
.rp-empty-btn { display: inline-block; background: var(--primary); color: #fff; text-decoration: none; padding: 14px 34px; border-radius: 999px; font-weight: 800; font-size: 17px; margin-top: 14px; box-shadow: 0 4px 12px rgba(240,120,0,.28); }

/* 广告位内容详情页 */
.ad-detail { max-width: 720px; margin: 0 auto; }
.ad-detail .rp-loading { text-align: center; color: var(--text-2); padding: 30px; }
.ad-detail-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.ad-detail-title { font-size: 22px; font-weight: 800; margin: 0 0 12px; color: #222; }
.ad-detail-desc { font-size: 15px; line-height: 1.85; color: #444; white-space: pre-wrap; word-break: break-word; margin-bottom: 16px; }
.ad-sub { font-size: 15px; color: #666; margin: 18px 0 10px; border-left: 3px solid var(--primary); padding-left: 8px; }
.ad-images-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ad-images-grid img { width: 100%; border-radius: 8px; display: block; }
@media (max-width: 560px) {
  .ad-images-grid { grid-template-columns: 1fr; }
}

/* 师傅详情 */
.rp-detail .rp-loading { text-align: center; color: var(--text-2); padding: 30px; }
.rp-back { display: inline-block; color: var(--text-2); text-decoration: none; font-size: 14px; margin-bottom: 12px; }
.rp-detail-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); text-align: center; }
.rp-detail-avatar { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; margin: 0 auto 12px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; }
.rp-avatar-lg { font-size: 38px; }
.rp-detail-name { font-size: 22px; font-weight: 800; }
.rp-detail-slogan { color: #9a3412; font-size: 15px; margin: 6px 0; }
.rp-detail-rating { font-size: 14px; color: #d98300; }
.rp-muted { color: var(--text-2); }
.rp-detail-certnote { background: #dcfce7; color: #15803d; border-radius: 8px; padding: 8px; font-size: 13px; margin: 10px 0; }
.rp-detail-rows { text-align: left; margin: 14px 0; }
.rp-row { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f3f4f6; font-size: 14px; }
.rp-row span { color: var(--text-2); flex: none; width: 72px; }
.rp-row b { font-weight: 600; }
.rp-row-block { flex-direction: column; gap: 4px; }
.rp-detail-call { display: block; background: var(--primary); color: #fff; text-decoration: none; border-radius: 999px; padding: 13px; font-size: 16px; font-weight: 700; margin-top: 8px; }
.rp-detail-call-2 { background: #2e9e5b; }
.rp-dy { color: var(--primary); text-decoration: none; font-weight: 600; }
.rp-dy:hover { text-decoration: underline; }

/* 评价 */
.rp-reviews { margin-top: 22px; }
.rp-reviews h3 { font-size: 16px; margin: 0 0 12px; }
.rp-review-form { background: #f9fafb; border: 1px solid var(--border); border-radius: 10px; padding: 12px; display: grid; gap: 8px; margin-bottom: 14px; }
.rp-review-form input, .rp-review-form select, .rp-review-form textarea { padding: 9px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; }
.rp-review-form button { background: var(--primary); color: #fff; border: none; border-radius: 8px; padding: 10px; font-size: 14px; cursor: pointer; }
.rp-review-list { display: grid; gap: 10px; }
.rp-review { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.rp-review-head { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.rp-review-star { color: #d98300; font-size: 13px; }
.rp-review-date { color: var(--text-2); font-size: 12px; margin-left: auto; }
.rp-review p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; }

/* 平台报修 */
.rp-repair-tip { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 10px; padding: 12px; font-size: 14px; line-height: 1.6; }
.rp-repair-form { margin-top: 16px; }
.rp-form-row { margin-bottom: 14px; }
.rp-form-row label { display: block; font-size: 13px; color: #555; margin-bottom: 6px; }
.rp-form-row input, .rp-form-row select, .rp-form-row textarea { width: 100%; padding: 11px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; box-sizing: border-box; font-family: inherit; }
.rp-msg { font-size: 14px; min-height: 20px; margin-bottom: 8px; }
.rp-msg.ok { color: #1a9e54; }
.rp-msg.err { color: #e23b3b; }
.rp-repair-btn { width: 100%; background: var(--primary); color: #fff; border: none; border-radius: 999px; padding: 13px; font-size: 16px; font-weight: 700; cursor: pointer; }

/* 师傅入驻 */
.rp-join-lead { color: var(--text-2); font-size: 14px; margin: 0 0 16px; }
.rp-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rp-tier { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; box-shadow: var(--shadow); position: relative; }
.rp-tier-hot { border-color: var(--primary); box-shadow: 0 6px 18px rgba(226,59,59,.18); }
.rp-tier-name { font-size: 16px; font-weight: 700; }
.rp-tier-price { font-size: 28px; font-weight: 800; color: var(--primary); margin: 8px 0; }
.rp-tier-price span { font-size: 14px; color: var(--text-2); }
.rp-tier ul { list-style: none; padding: 0; margin: 0 0 12px; font-size: 13px; color: var(--text-2); }
.rp-tier ul li { padding: 5px 0; }
.rp-tier-tag { display: inline-block; background: #f4f6f9; border-radius: 999px; padding: 3px 12px; font-size: 12px; color: #555; }
.rp-tier-hot .rp-tier-tag { background: var(--primary-light); color: var(--primary); }
.rp-join-cta { text-align: center; margin-top: 22px; }
.rp-join-contact { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 12px 0; }
.rp-join-wechat { background: #07c160; }
.rp-join-note { color: var(--text-2); font-size: 12.5px; margin-top: 10px; }

/* 关于条路 */
.rp-about-block { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.rp-about-block h3 { margin: 0 0 8px; font-size: 16px; }
.rp-about-block p, .rp-about-block li { font-size: 14px; line-height: 1.7; color: #333; }

/* 移动端适配 */
@media (max-width: 640px) {
  .rp-topbar-nav { display: none; }
  .rp-topbar-inner { gap: 8px; }
  .rp-hero h1 { font-size: 22px; }
  .rp-top-row, .rp-grid, .rp-tiers { grid-template-columns: 1fr; }
  .rp-section { padding: 18px 12px; }
}

/* ===== 门户首页（彭山条路） ===== */
.topnav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.topnav-link {
  padding: 7px 14px; border-radius: 999px; font-size: 15px; font-weight: 600;
  color: #fff; opacity: .92; white-space: nowrap; transition: background .15s, opacity .15s;
}
.topnav-link:hover { background: rgba(255,255,255,.18); opacity: 1; }
.topnav-link.active { background: rgba(255,255,255,.26); opacity: 1; }

.portal-hero {
  max-width: 1100px; margin: 0 auto; padding: 56px 20px 28px; text-align: center;
}
.portal-title {
  font-size: 46px; font-weight: 900; letter-spacing: 2px; line-height: 1.15;
  background: linear-gradient(135deg, var(--primary) 0%, #f59e0b 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.portal-sub { font-size: 18px; color: var(--text); margin-top: 12px; font-weight: 600; }
.portal-desc { font-size: 14.5px; color: var(--text-2); margin-top: 8px; }

.portal-sections {
  max-width: 1100px; margin: 0 auto; padding: 20px 20px 48px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
.portal-card {
  display: block; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.portal-card:hover { transform: translateY(-3px); box-shadow: 0 6px 22px rgba(249,115,22,.18); border-color: var(--primary); }
.portal-card-ico { font-size: 38px; }
.portal-card-title { font-size: 22px; font-weight: 800; margin-top: 8px; }
.portal-card-desc { font-size: 14px; color: var(--text-2); margin-top: 8px; line-height: 1.6; min-height: 44px; }
.portal-card-go { margin-top: 14px; font-size: 15px; font-weight: 700; color: var(--primary-dark); }

@media (max-width: 640px) {
  .topnav-link { padding: 6px 11px; font-size: 14px; }
  .brand { font-size: 22px; line-height: 28px; }
  .portal-title { font-size: 34px; }
  .portal-hero { padding: 38px 18px 20px; }
  .portal-sections { grid-template-columns: 1fr; gap: 14px; padding: 16px 16px 36px; }
}

/* ===== 顶栏切换按钮 · 移动端适配 ===== */
@media (max-width: 640px) {
  .topbar-tabs { gap: 2px; }
  .topbar-tab { padding: 6px 12px; font-size: 13.5px; }
}

/* ===== 顶部栏目导航 · 移动端：标题占一整行，栏目链接另起一排（便于继续新增独立页） ===== */
@media (max-width: 640px) {
  .topbar-inner { flex-wrap: wrap; column-gap: 8px; row-gap: 8px; }
  .brand { flex: 1 1 100%; }        /* 品牌标题独占一行 */
  .topbar-nav { margin-left: 0; }   /* 栏目链接左对齐，自动换行排列 */
}
