/* ==========================================================================
   卡叶联盟 1:1 复刻移动端号卡商城样式 (Mobile-First 1:1 KaYe LianMeng Storefront)
   ========================================================================== */

:root {
  --ky-blue: #1989fa;
  --ky-blue-light: #4facfe;
  --ky-el-blue: #409eff;
  --ky-red: #ee0a24;
  --ky-orange: #ff6b35;
  --ky-green: #52c41a;
  --ky-bg: #f5f7fa;
  --ky-card: #ffffff;
  --ky-text: #323233;
  --ky-text-2: #646566;
  --ky-text-3: #969799;
  --ky-border: #f0f0f0;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: #e9edf3;
  color: var(--ky-text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* 手机端全屏贴合，电脑端居中手机视口展示 */
.app-shell {
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--ky-bg);
  position: relative;
  padding-bottom: calc(74px + var(--safe-bottom));
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.08);
}

@media (max-width: 500px) {
  html, body {
    background-color: var(--ky-bg);
  }
  .app-shell {
    max-width: 100%;
    box-shadow: none;
  }
}

/* 隐藏管理栏（仅 ?admin=1 可见） */
.admin-bar {
  background: #1e293b;
  color: #f8fafc;
  padding: 10px 12px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.admin-bar-btns {
  display: flex;
  gap: 6px;
}
.admin-btn {
  background: var(--ky-blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.admin-btn.secondary {
  background: #475569;
}

/* 顶部【汤姆聊卡】专属个人IP Banner 与悬浮店铺卡片 */
.top-banner {
  position: relative;
  background: linear-gradient(135deg, #0d235e 0%, #165ced 52%, #ff4b2b 100%);
  height: 172px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 18px 26px;
}
.banner-deco-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.banner-deco-circle.c1 {
  width: 180px;
  height: 180px;
  top: -60px;
  right: -40px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 70%);
}
.banner-deco-circle.c2 {
  width: 130px;
  height: 130px;
  bottom: -30px;
  left: -30px;
  background: radial-gradient(circle, rgba(79, 172, 254, 0.3) 0%, rgba(79, 172, 254, 0) 70%);
}
.banner-sim-watermark {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 112px;
  height: 112px;
  pointer-events: none;
  transform: rotate(10deg);
}
.banner-inner {
  position: relative;
  z-index: 2;
  color: #fff;
}
.douyin-creator-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.douyin-creator-pill svg {
  color: #fe2c55;
  filter: drop-shadow(-1px -1px 0 #25f4ee);
}
.banner-headline {
  margin: 0;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
}
.banner-subline {
  margin: 5px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}
.top-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34px;
  background: linear-gradient(180deg, rgba(245, 247, 250, 0) 0%, #f5f7fa 100%);
}

.store-card {
  position: relative;
  z-index: 3;
  margin: -30px 12px 0;
  background: #fff;
  border-radius: 12px;
  padding: 14px 14px 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.store-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ky-border);
}
.store-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.store-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid #1989fa;
  box-shadow: 0 2px 6px rgba(25, 137, 250, 0.22);
}
.avatar-v-badge {
  position: absolute;
  right: -2px;
  bottom: -1px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fe2c55, #ff6b35);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #fff;
}
.store-info {
  flex: 1;
  min-width: 0;
}
.store-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.store-name {
  font-size: 16.5px;
  font-weight: 900;
  color: #222;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.auth-badge {
  background: linear-gradient(90deg, #1989fa, #4facfe);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}
.auth-badge.douyin-badge {
  background: linear-gradient(90deg, #111827, #334155);
  border: 1px solid rgba(37, 244, 238, 0.45);
}
.store-tag {
  font-size: 11.5px;
  color: var(--ky-blue);
  margin: 3px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.store-count-pill {
  background: #f0f7ff;
  color: var(--ky-blue);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 14px;
  flex-shrink: 0;
}

/* 4宫格快捷入口 (1:1 HomeView3) */
.quick-nav {
  display: flex;
  margin-top: 12px;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  user-select: none;
}
.nav-item:active {
  opacity: 0.72;
}
.nav-circle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}
.nav-c1 { background: linear-gradient(135deg, #ffd166, #ffb347); }
.nav-c2 { background: linear-gradient(135deg, #ff9a9e, #ff6a88); }
.nav-c3 { background: linear-gradient(135deg, #4facfe, #00c6ff); }
.nav-c4 { background: linear-gradient(135deg, #ff9966, #ff5e62); }

.hot-flag {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #ff4d4f;
  color: #fff;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 7px;
  font-weight: 700;
  line-height: 1.3;
}
.nav-title {
  margin: 6px 0 2px;
  font-size: 12.5px;
  font-weight: 700;
  color: #333;
}
.nav-sub {
  margin: 0;
  font-size: 10.5px;
  color: #999;
}

/* 黄底公告提示条 (1:1 HomeView3 .warning-bar) */
.warning-bar {
  margin: 10px 12px;
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 8px;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
  color: #d48806;
  font-weight: 600;
}
.warning-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}
.warning-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.warning-action {
  color: var(--ky-blue);
  font-size: 11.5px;
  font-weight: 700;
  flex-shrink: 0;
  cursor: pointer;
}

/* 吸顶筛选区：运营商 Tabs + 搜索栏 + 热门标签 */
.sticky-filter-wrap {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ky-bg);
  padding-top: 2px;
  padding-bottom: 6px;
}

.operator-tabs {
  margin: 0 12px;
  background: #fff;
  border-radius: 12px 12px 0 0;
  padding: 10px 4px 4px;
  border-bottom: 1px solid #f5f6f8;
}
.operator-tabs-inner {
  display: flex;
}
.op-item {
  flex: 1;
  text-align: center;
  cursor: pointer;
  padding-bottom: 4px;
  user-select: none;
  position: relative;
}
.op-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.op-top img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.op-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: #333;
}
.op-sub {
  margin: 3px auto 0;
  font-size: 10px;
  color: #999;
  display: inline-block;
  padding: 1px 6px;
  border-radius: 8px;
  line-height: 1.3;
}
.op-item.active .op-title {
  color: var(--ky-blue);
}
.op-item.active .op-sub {
  background: var(--ky-blue);
  color: #fff;
  font-weight: 600;
}

/* 搜索与筛选栏 (1:1 HomeView3 .search-row) */
.search-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 12px;
  padding: 8px 10px;
  background: #fff;
}
.city-pill-btn {
  display: flex;
  align-items: center;
  gap: 3px;
  background: #fff5f5;
  border: 1px solid #ffd6d6;
  color: #e54d42;
  border-radius: 16px;
  padding: 0 9px;
  height: 32px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  max-width: 112px;
}
.city-pill-btn.selected {
  background: #e8f3ff;
  border-color: #91caff;
  color: var(--ky-blue);
}
.city-pill-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-input {
  flex: 1;
  display: flex;
  align-items: center;
  background: #f5f7fa;
  border-radius: 18px;
  padding: 0 10px;
  height: 32px;
  gap: 5px;
  min-width: 0;
}
.search-input input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  font-size: 12.5px;
  color: #333;
}
.search-input input::placeholder {
  color: #999;
}
.clear-input-btn {
  background: #ccc;
  color: #fff;
  border: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  font-size: 11px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12.5px;
  color: #555;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  padding: 4px 4px;
  user-select: none;
}
.action-btn.active {
  color: var(--ky-blue);
  font-weight: 700;
}
.action-btn-clear {
  color: var(--ky-red);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

/* 热门快捷标签栏 (1:1 HomeView .hot-search) */
.hot-tags-bar {
  margin: 0 12px;
  padding: 2px 10px 10px;
  background: #fff;
  border-radius: 0 0 12px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
.hot-tags-bar::-webkit-scrollbar {
  display: none;
}
.hot-chip {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 11.5px;
  font-weight: 600;
  color: #409eff;
  background: #ecf5ff;
  border: 1px solid #d9ecff;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
}
.hot-chip.active {
  background: var(--ky-blue);
  border-color: var(--ky-blue);
  color: #fff;
}

/* 结果统计提示栏 */
.result-summary-bar {
  margin: 6px 14px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #888;
}
.sort-pills {
  display: flex;
  gap: 10px;
}
.sort-item {
  cursor: pointer;
  color: #777;
  font-weight: 600;
}
.sort-item.active {
  color: var(--ky-blue);
  font-weight: 700;
}

/* 产品卡片列表 (1:1 卡叶联盟 HomeView + HomeView3 融合无佣金版) */
.product-list {
  margin: 8px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-card {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  gap: 11px;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.035);
  transition: transform 0.12s ease;
  overflow: hidden;
}
.product-card:active {
  transform: scale(0.992);
}

/* 右上角爆款胶囊角标 */
.hot-corner {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(90deg, #ff6b35, #ff3b30);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 0 12px 0 9px;
  line-height: 1.35;
  z-index: 2;
  pointer-events: none;
  box-shadow: -1px 1px 4px rgba(255, 59, 48, 0.22);
}

/* 左侧 100x100 官方方形封面 */
.card-left {
  flex-shrink: 0;
  width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.card-image {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f7fa;
  position: relative;
  border: 1px solid #f0f2f5;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ship-scope-badge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(25, 137, 250, 0.88);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  padding: 2px 0;
}
.ship-scope-badge.prov {
  background: rgba(255, 107, 53, 0.9);
}

.code-label {
  font-size: 10.5px;
  color: #8c939d;
  font-weight: 600;
}

/* 封面加载失败时的运营商渐变兜底卡面 */
.fallback-cover {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 6px;
  text-align: center;
}
.fb-联通 { background: linear-gradient(135deg, #e60027, #ff5f57); }
.fb-移动 { background: linear-gradient(135deg, #0085d0, #00b894); }
.fb-电信 { background: linear-gradient(135deg, #1658ba, #3b82f6); }
.fb-广电 { background: linear-gradient(135deg, #2b4c7e, #567ebb); }
.fallback-cover .fb-op { font-size: 11px; opacity: 0.9; font-weight: 700; }
.fallback-cover .fb-gb { font-size: 22px; font-weight: 900; line-height: 1.15; margin: 2px 0; }
.fallback-cover .fb-rent { font-size: 11px; background: rgba(255,255,255,0.22); border-radius: 8px; padding: 1px 6px; }

/* 右侧产品核心信息 */
.card-right {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}
.title-row {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  padding-right: 32px;
}
.provider-mark {
  width: 19px;
  height: 19px;
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 1px;
}
.p-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #222;
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 卖点标签行 (1:1 HomeView3 .p-tags) */
.p-tags {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.p-tag {
  font-size: 10px;
  padding: 1.5px 5px;
  border-radius: 3px;
  font-weight: 700;
  line-height: 1.3;
}
.p-tag.orange {
  background: #fff5f0;
  color: #ff6b35;
  border: 1px solid #ffd2bf;
}
.p-tag.green {
  background: #f0fff0;
  color: #389e0d;
  border: 1px solid #b7eb8f;
}
.p-tag.blue {
  background: #ecf5ff;
  color: #1989fa;
  border: 1px solid #b3d8ff;
}

/* 1:1 卡叶联盟三栏流量通话参数格 (通用流量 | 定向流量 | 通话时长) */
.metrics-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafd;
  border-radius: 7px;
  padding: 5px 8px;
  margin-top: 7px;
}
.metric-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.metric-val {
  font-size: 13px;
  font-weight: 800;
  color: #2c3e50;
  line-height: 1.2;
}
.metric-lbl {
  font-size: 10px;
  color: #8c939d;
  margin-top: 2px;
}
.metric-sep {
  color: #dcdfe6;
  font-size: 11px;
  user-select: none;
}

/* 卡片底栏：左侧月租&归属地双行对齐 + 右侧【详情】【立即办理】 */
.p-bottom {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.price-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
}
.price-main {
  color: var(--ky-red);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
}
.price-area {
  font-size: 10.5px;
  color: #8c939d;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.card-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.btn-detail {
  background: #e9f0fe;
  color: #165ced;
  border: 1px solid #d4e3fc;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.btn-order {
  background: linear-gradient(90deg, #1989fa, #4facfe);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 5.5px 13px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(25, 137, 250, 0.28);
}

/* 空状态 */
.empty-state {
  background: #fff;
  margin: 16px 12px;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  color: #999;
}
.empty-state p {
  margin: 10px 0 16px;
  font-size: 13.5px;
}

/* 底部固定导航栏 (1:1 HomeView3 .bottom-tabbar) */
.bottom-tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: #fff;
  display: flex;
  height: calc(56px + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  border-top: 1px solid #eceef2;
  z-index: 90;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}
.tabbar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #8c939d;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.tabbar-item.active {
  color: var(--ky-blue);
}

/* 通用遮罩与底部抽屉弹窗 (Vant Popup 1:1 体验) */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.18s ease;
}
.modal-mask.show {
  display: flex;
}
.modal-mask.center-modal {
  align-items: center;
  padding: 16px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-panel {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 16px 16px 0 0;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.sheet-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #222;
}
.close-x {
  background: #f2f3f5;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 16px;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================= 产品详情全屏抽屉 (1:1 AboutView 复刻) ================= */
.detail-sheet {
  height: 92vh;
  max-height: 92vh;
  background: #f5f7fa;
}
.detail-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 24px;
}
.detail-hero {
  padding: 16px;
  color: #fff;
  display: flex;
  gap: 12px;
  align-items: center;
}
.hero-联通 { background: linear-gradient(135deg, #b91c2c, #e63946); }
.hero-移动 { background: linear-gradient(135deg, #0f766e, #0284c7); }
.hero-电信 { background: linear-gradient(135deg, #1658ba, #2563eb); }
.hero-广电 { background: linear-gradient(135deg, #284b7a, #3b6998); }

.detail-hero-img {
  width: 84px;
  height: 84px;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.5);
}
.detail-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-hero-info {
  flex: 1;
  min-width: 0;
}
.detail-code-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.22);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 5px;
}
.detail-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.35;
}

.detail-card {
  background: #fff;
  margin: 10px 12px;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.03);
}
.detail-card-title {
  margin: 0 0 10px;
  font-size: 14.5px;
  font-weight: 800;
  color: #222;
  display: flex;
  align-items: center;
  gap: 6px;
}
.detail-card-title::before {
  content: "";
  width: 3.5px;
  height: 14px;
  background: var(--ky-blue);
  border-radius: 2px;
}

.detail-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  text-align: center;
}
.dm-box {
  background: #f7f9fc;
  border-radius: 8px;
  padding: 9px 4px;
}
.dm-val {
  font-size: 14.5px;
  font-weight: 900;
  color: var(--ky-blue);
}
.dm-box.rent .dm-val {
  color: var(--ky-red);
}
.dm-lbl {
  font-size: 11px;
  color: #888;
  margin-top: 3px;
}

.spec-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.spec-row {
  display: flex;
  font-size: 13px;
  line-height: 1.45;
  border-bottom: 1px dashed #f0f0f0;
  padding-bottom: 7px;
}
.spec-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.spec-k {
  width: 86px;
  flex-shrink: 0;
  color: #888;
  font-weight: 600;
}
.spec-v {
  flex: 1;
  color: #222;
  font-weight: 600;
  word-break: break-word;
}
.spec-v.warn {
  color: #d9534f;
}
.spec-v.highlight {
  color: var(--ky-blue);
}

.remark-box {
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12.5px;
  color: #8c5800;
  line-height: 1.55;
  white-space: pre-line;
  word-break: break-all;
}

.desc-poster-wrap img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.detail-footer-bar {
  background: #fff;
  border-top: 1px solid #ebedf0;
  padding: 9px 12px calc(9px + var(--safe-bottom));
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.df-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #555;
  font-size: 11px;
  font-weight: 600;
  padding: 0 8px;
  cursor: pointer;
  gap: 2px;
}
.df-primary-btn {
  flex: 1;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff6034, #ee0a24);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(238, 10, 36, 0.28);
}

/* ================= 省市双栏选择器 (1:1 HomeView3 .city-picker) ================= */
.picker-body {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  height: 56vh;
  min-height: 300px;
}
.picker-col {
  flex: 1;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 6px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.picker-opt {
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 13.5px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 3px;
  color: #333;
}
.picker-opt.active {
  background: var(--ky-el-blue);
  color: #fff;
  font-weight: 700;
}
.picker-footer {
  padding: 10px 14px calc(10px + var(--safe-bottom));
  border-top: 1px solid #f0f0f0;
  display: flex;
  gap: 10px;
}
.btn-full {
  flex: 1;
  height: 40px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
}
.btn-outline {
  background: #f5f7fa;
  color: #555;
  border: 1px solid #dcdfe6;
}
.btn-solid-blue {
  background: var(--ky-blue);
  color: #fff;
}

/* ================= 高级筛选抽屉 (1:1 HomeView3 .filter-content) ================= */
.filter-scroll {
  padding: 6px 16px 16px;
  overflow-y: auto;
  max-height: 68vh;
}
.filter-sec {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.filter-sec:last-child {
  border-bottom: none;
}
.filter-sec-title {
  font-size: 14px;
  font-weight: 800;
  color: #333;
  margin-bottom: 10px;
}
.filter-tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.f-tag {
  padding: 6px 13px;
  background: #f5f5f5;
  border-radius: 5px;
  font-size: 12.5px;
  color: #555;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}
.f-tag.active {
  background: var(--ky-blue);
  color: #fff;
}
.f-input {
  width: 100%;
  height: 36px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 13px;
  background: #f7f8fa;
  outline: none;
}

/* ================= 一证通查 / 订单查询 / 分享弹窗 ================= */
.dialog-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  max-height: 84vh;
  display: flex;
  flex-direction: column;
}
.dialog-body {
  padding: 14px 16px 18px;
  overflow-y: auto;
}
.tool-box {
  background: #f7f9fc;
  border: 1px solid #edf2f7;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
}
.tool-box h4 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #222;
}
.provider-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.prov-mini-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
}
.prov-mini-card span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #333;
}
.prov-mini-card a, .tool-link-btn {
  display: inline-block;
  background: var(--ky-blue);
  color: #fff;
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

/* Toast 轻提示 */
.toast {
  position: fixed;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.toast.show {
  opacity: 1;
}

/* ================= 右侧悬浮在线客服按钮 & 抖音客服弹窗 ================= */
.floating-cs-btn {
  position: fixed;
  right: max(12px, calc(50% - 228px));
  bottom: calc(72px + var(--safe-bottom));
  z-index: 95;
  background: linear-gradient(135deg, #165ced, #1989fa);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 8px 13px 8px 11px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(22, 92, 237, 0.35);
  transition: transform 0.15s ease;
}
.floating-cs-btn:active {
  transform: scale(0.95);
}
.cs-online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #52c41a;
  box-shadow: 0 0 0 2px rgba(82, 196, 26, 0.35);
  flex-shrink: 0;
}
.tabbar-item.cs-tab-highlight {
  color: #165ced;
}
.df-icon-btn.cs-df-btn {
  color: #165ced;
}

.cs-dialog-card {
  max-width: 356px;
}
.cs-hero-header {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 58%, #fe2c55 100%);
  color: #fff;
  padding: 20px 16px 16px;
  text-align: center;
}
.cs-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.cs-avatar-box {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 8px;
}
.cs-avatar-box img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.cs-live-badge {
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  background: #10b981;
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1.5px solid #fff;
}
.cs-title {
  margin: 6px 0 3px;
  font-size: 16.5px;
  font-weight: 900;
}
.cs-subtitle {
  margin: 0;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.88);
}

.cs-account-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f4f8ff;
  border: 1px solid #d6e6ff;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.cs-acc-label {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-bottom: 2px;
}
.cs-acc-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
}
.cs-acc-name {
  font-size: 16px;
  font-weight: 900;
  color: #111827;
}
.cs-mini-copy-btn {
  background: #1989fa;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.cs-qr-wrap {
  text-align: center;
  margin-bottom: 12px;
}
.cs-qr-inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 158px;
  height: 158px;
  padding: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.cs-qr-inner img#csDouyinQrImg {
  width: 100%;
  height: 100%;
  display: block;
}
.cs-qr-center-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}
.cs-qr-tip {
  margin: 6px 0 0;
  font-size: 11px;
  color: #64748b;
}

.cs-action-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cs-btn-douyin {
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #111827 0%, #fe2c55 100%);
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(254, 44, 85, 0.28);
}
.cs-btn-copy-all {
  width: 100%;
  height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
