/* ================= 基础 ================= */
/* 2026-10-08 视觉统一：分站（H5）向小程序主站看齐 ——
   原分站是橙色主色 + 深蓝头部 + 列表式，与主站的蓝紫渐变 + 卡片横滑完全两套皮肤，
   同一个品牌两种视觉，用户会以为是两个 App。
   主站基准（miniprogram/app.wxss 的 :root）：
     --primary #5B6CFF · --primary-2 #8B5CF6 · --accent #FF6A00 · --accent-2 #FF3D7F
   所以这里把 primary 改成蓝紫，**橙色退到 accent**（用于「立即租」按钮，与主站一致）。 */
:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #1a1d29;
  --text2: #6b7280;
  --text3: #9ca3af;
  --line: #eceef4;
  /* 主色：蓝紫（与小程序 --primary / --primary-2 同值） */
  --primary: #5b6cff;
  --primary-2: #8b5cf6;
  --primary-dark: #4453e8;
  --primary-soft: #eef0ff;
  /* 强调：橙红（保留原分站的橙，用于「立即租」等按钮 —— 主站也是这个橙） */
  --accent: #ff6a00;
  --accent-2: #ff3d7f;
  --accent-soft: #fff3e8;
  --success: #00b42a;
  --success-soft: #e8ffea;
  --warning: #ff7d00;
  --warning-soft: #fff7e8;
  --danger: #f53f3f;
  --danger-soft: #ffece8;
  --dark: #0f172a;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(31, 41, 55, .06);
  --shadow-lg: 0 8px 28px rgba(31, 41, 55, .12);
  --tab-h: 56px;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; }

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 40px rgba(15, 23, 42, 0.06);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 15px; color: var(--text); }

/* ================= 通用 ================= */
.page { padding-bottom: calc(var(--tab-h) + 24px + env(safe-area-inset-bottom)); min-height: 100vh; }
.page--sub { background: var(--bg); }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.pad { padding: 14px 16px; }
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.gap6 { gap: 6px; } .gap8 { gap: 8px; } .gap12 { gap: 12px; }
.grow { flex: 1; min-width: 0; }
.center { justify-content: center; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.muted { color: var(--text2); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.bold { font-weight: 600; }

/* ================= 顶部 ================= */
/* 2026-10-08 对齐主站：深蓝头部 → 蓝紫渐变 + 底部渐隐融到背景，
   搜索框改成主站那种「玻璃白底圆角条」（原来是深色半透明，和主站完全不像）。 */
.header {
  position: sticky; top: 0; z-index: 60;
  background:
    radial-gradient(90% 55% at 88% 100%, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 62%),
    linear-gradient(180deg, #6673f0 0%, #8f7bea 55%, #b28ce6 100%);
  color: #fff;
  padding: calc(env(safe-area-inset-top) + 12px) 16px 18px;
}
.header__top { display: flex; align-items: center; gap: 10px; }
.header__loc { display: flex; align-items: center; gap: 4px; font-size: 13px; opacity: .9; }
.header__title { font-size: 20px; font-weight: 800; letter-spacing: .5px; }

.search {
  margin-top: 14px; display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .95);
  border-radius: 999px; padding: 9px 16px;
  color: #9ca3af; font-size: 13px;
  box-shadow: 0 8px 24px rgba(91, 108, 255, .18);
}
.search input {
  flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 14px;
}
/* 主站里 placeholder 是浅灰、深色文字；原来沿用了深色头部的半透明白字 */
.search input::placeholder { color: #9ca3af; }

/* 导航头（子页面） */
.navbar {
  position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 8px; background: #fff; border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.navbar__back { width: 36px; height: 36px; display: grid; place-items: center; font-size: 20px; }
.navbar__title { font-size: 16px; font-weight: 600; }

/* ================= 金刚区（品牌） ================= */
.brands {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 4px;
  background: var(--card); padding: 16px 8px; border-radius: 0 0 18px 18px;
  box-shadow: var(--shadow);
}
.brand-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.brand-item__icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  font-size: 24px; color: #fff; box-shadow: 0 4px 10px rgba(15, 23, 42, .12);
}
.brand-item__logo {
  width: 46px; height: 46px; border-radius: 14px; object-fit: cover; display: block;
  box-shadow: 0 4px 10px rgba(15, 23, 42, .12);
  background: #fff;
}
.brand-item__name { font-size: 12px; color: var(--text); font-weight: 500; }
.brand-item__count { font-size: 10px; color: var(--text3); margin-top: -4px; }
.brand-item.is-active .brand-item__icon,
.brand-item.is-active .brand-item__logo { outline: 2px solid var(--dark); outline-offset: 2px; }

/* ================= 板块标题 ================= */
.section { padding: 16px 16px 8px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.section__title { font-size: 16px; font-weight: 700; }
.section__more { font-size: 12px; color: var(--text3); }

/* 横向滚动的品类 chip */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 6px 14px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); font-size: 13px; color: var(--text2);
}
/* 2026-10-08：选中态从深蓝 --dark 改成主色渐变，与主站的品类筛选观感一致 */
.chip.is-active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  border-color: transparent; color: #fff; font-weight: 500;
}

/* ================= 设备卡片 ================= */
.dev-list { padding: 0 16px; display: flex; flex-direction: column; gap: 12px; }
.dev-card {
  display: flex; gap: 12px; background: var(--card); border-radius: var(--radius);
  padding: 12px; box-shadow: var(--shadow); align-items: stretch;
}
.dev-card__cover {
  width: 92px; height: 92px; border-radius: 12px; flex: 0 0 92px;
  display: grid; place-items: center; font-size: 40px; position: relative; overflow: hidden;
}
.dev-card__cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.28), rgba(255,255,255,0) 55%);
}
.dev-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dev-card__name { font-size: 15px; font-weight: 600; }
.dev-card__brand { font-size: 11px; color: var(--text3); }
.dev-card__hl {
  font-size: 12px; color: var(--text2); margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.dev-card__tags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.tag {
  font-size: 10px; padding: 2px 6px; border-radius: 4px; background: #f2f3f7; color: var(--text2);
}
/* 2026-10-08 对齐主站标签色：
   主站 .tag--hot 是橙（#FFF0E6/#EA580C）、.tag--new 是紫（#EDE9FE/#7C3AED）、
   .tag--free 是绿（#ECFDF5/#059669）。分站原来热门=蓝紫（因为 primary 就是蓝），
   视觉上与主站的橙完全不同。这里全部按主站取值。 */
.tag--hot { background: #fff0e6; color: #ea580c; }
.tag--deposit, .tag--free { background: #ecfdf5; color: #059669; }
.tag--stock { background: #f2f3f7; color: var(--text3); }
.tag--out { background: #fee2e2; color: #dc2626; }
.tag--new { background: #ede9fe; color: #7c3aed; }
.tag--consign { background: #eef2ff; color: #4f46e5; }   /* 机主托管（2026-10-07） */
.dev-card__foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; }
/* 价格：主站是**橙红强调色**，不是主色的蓝紫 —— 主站 .price 用 --accent。
   这里原来用 var(--primary)（当时 primary 就是橙红，视觉上恰好对），
   primary 改成蓝紫后必须显式切到 accent，否则价格会变成蓝紫、与主站不一致。 */
.price { color: var(--accent); font-weight: 800; }
.price__num { font-size: 19px; }
.price__unit { font-size: 11px; font-weight: 500; }
.price__dep { font-size: 11px; color: var(--text3); font-weight: 400; margin-left: 6px; }
.btn-rent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 999px;
  /* 阴影色跟随 accent，否则 primary 改色后这里会留着一圈不协调的橙色 */
  box-shadow: 0 3px 8px rgba(255, 106, 0, .28);
}
.btn-rent:disabled { background: #e5e6eb; color: var(--text3); box-shadow: none; }

/* ================= 空态 / 加载 ================= */
.empty { text-align: center; padding: 60px 20px; color: var(--text3); }
.empty__icon { font-size: 48px; margin-bottom: 12px; opacity: .5; }
.loading { text-align: center; padding: 40px; color: var(--text3); font-size: 13px; }
.spinner {
  width: 22px; height: 22px; border: 2.5px solid var(--line); border-top-color: var(--primary);
  border-radius: 50%; animation: spin .7s linear infinite; margin: 0 auto 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ================= 设备详情 ================= */
.detail-hero {
  position: relative; height: 260px; overflow: hidden;
  background: linear-gradient(135deg, var(--text3), var(--dark));
}
.detail-hero__track {
  display: flex; height: 100%; transition: transform .35s ease;
  will-change: transform;
}
.detail-hero__slide {
  flex: 0 0 100%; height: 100%; position: relative;
  display: grid; place-items: center; color: #fff;
}
.detail-hero__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-hero__slide--fallback { font-size: 92px; }
.detail-hero__badge {
  position: absolute; left: 16px; bottom: 14px; z-index: 4;
  background: rgba(0,0,0,.35); backdrop-filter: blur(6px); color: #fff;
  font-size: 11px; padding: 4px 10px; border-radius: 999px;
}
.detail-hero__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 32px; height: 32px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.4); color: #fff; font-size: 18px;
  display: grid; place-items: center; cursor: pointer;
  backdrop-filter: blur(6px);
}
.detail-hero__nav--prev { left: 12px; }
.detail-hero__nav--next { right: 12px; }
.detail-hero__dots {
  position: absolute; bottom: 12px; right: 16px; z-index: 4;
  display: flex; gap: 6px;
}
.detail-hero__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.45); cursor: pointer;
  transition: width .25s, background .25s;
}
.detail-hero__dot.is-active { background: #fff; width: 18px; border-radius: 4px; }
.detail-hero__count {
  position: absolute; right: 14px; top: 14px; z-index: 4;
  background: rgba(0,0,0,.35); color: #fff; font-size: 11px;
  padding: 4px 8px; border-radius: 999px;
}
.detail-body { padding: 0 16px; margin-top: -18px; position: relative; z-index: 3; }
.detail-title { font-size: 20px; font-weight: 700; }
.detail-model { font-size: 12px; color: var(--text3); margin-top: 2px; }
.detail-price { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.detail-price__was { font-size: 12px; color: var(--text3); text-decoration: line-through; }

.spec-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.spec-item {
  background: #f7f8fa; border-radius: 10px; padding: 8px 10px; font-size: 12px; color: var(--text2);
  display: flex; gap: 6px; align-items: flex-start;
}
.acc-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.acc-item {
  background: #f7f8fa; border-radius: 8px; padding: 5px 10px; font-size: 12px; color: var(--text2);
}

/* 租期选择 */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.plan {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 4px; text-align: center;
  background: #fff; position: relative; transition: .15s;
}
.plan.is-active { border-color: var(--primary); background: var(--primary-soft); }
.plan__days { font-size: 16px; font-weight: 700; }
.plan__price { font-size: 11px; color: var(--text2); margin-top: 2px; }
.plan__tag {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 9px; padding: 1px 6px; border-radius: 999px;
  white-space: nowrap;
}
.plan-custom { margin-top: 10px; display: flex; align-items: center; gap: 10px; }
.plan-custom input {
  width: 90px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 10px;
  outline: none; text-align: center; background: #fff;
}
.plan-custom input:focus { border-color: var(--primary); }

/* 费用明细 */
.fee-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13px; }
.fee-row + .fee-row { border-top: 1px dashed var(--line); }
.fee-row__label { color: var(--text2); }
.fee-row--total { border-top: 1px solid var(--line) !important; padding-top: 12px; margin-top: 4px; }
.fee-row--total .fee-row__value { color: var(--primary); font-size: 18px; font-weight: 700; }
.fee-save { color: var(--success); }

/* ================= 底部操作条 ================= */
.actionbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
  max-width: 480px; margin: 0 auto; background: #fff;
  border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, .06);
}
.actionbar__info { flex: 1; min-width: 0; }
.actionbar__price { color: var(--primary); font-size: 20px; font-weight: 700; }
.actionbar__sub { font-size: 11px; color: var(--text2); margin-top: -2px; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff; font-size: 15px; font-weight: 600; padding: 12px 26px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(255, 106, 0, .3);
}
.btn-primary:disabled { background: #dcdfe6; color: #fff; box-shadow: none; }
.btn-primary--wide { width: 100%; }
.btn-ghost {
  border: 1.5px solid var(--line); color: var(--text2); font-size: 14px; font-weight: 500;
  padding: 11px 20px; border-radius: 999px; background: #fff;
}

/* ================= 表单 ================= */
.form { padding: 0 16px; }
.field {
  display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line);
}
.field:last-child { border-bottom: none; }
.field__label { width: 76px; flex: 0 0 76px; font-size: 14px; color: var(--text); }
.field input, .field select, .field textarea {
  flex: 1; border: none; outline: none; background: none; font-size: 15px; width: 100%;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5L6 8.5L10 4.5' stroke='%239ca3af' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") right center no-repeat;
}
.field textarea { resize: none; height: 60px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--text3); }
.field__err { color: var(--danger); font-size: 11px; margin-top: 2px; }
.field.is-error { border-bottom-color: var(--danger); }

.agree { display: flex; gap: 8px; align-items: flex-start; padding: 14px 16px; font-size: 12px; color: var(--text2); }
.agree input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--primary); }
.agree a { color: var(--primary); text-decoration: none; }

/* ================= 免押检测 ================= */
.credit-page { min-height: 100vh; background: #fff; padding: 60px 24px; text-align: center; }
.credit-radar {
  width: 190px; height: 190px; margin: 0 auto 30px; position: relative; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,106,0,.08) 0%, rgba(255,106,0,0) 70%);
}
.credit-radar::before, .credit-radar::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(255, 106, 0, .25); animation: radar 2s ease-out infinite;
}
.credit-radar::after { animation-delay: 1s; }
@keyframes radar {
  0% { transform: scale(.35); opacity: .9; }
  100% { transform: scale(1); opacity: 0; }
}
.credit-radar__core {
  position: absolute; inset: 0; display: grid; place-items: center; font-size: 60px;
}
.credit-title { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.credit-sub { color: var(--text2); font-size: 13px; margin-bottom: 26px; }
.credit-steps { text-align: left; max-width: 260px; margin: 0 auto; }
.credit-step {
  display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 13px; color: var(--text3);
  transition: .3s;
}
.credit-step__dot {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line);
  display: grid; place-items: center; font-size: 10px; color: #fff; flex: 0 0 18px;
}
.credit-step.is-done { color: var(--text); }
.credit-step.is-done .credit-step__dot { background: var(--success); border-color: var(--success); }
.credit-step.is-active { color: var(--primary); font-weight: 500; }
.credit-step.is-active .credit-step__dot { border-color: var(--primary); background: var(--primary); }

/* 结果页 */
.result-hero { padding: 40px 24px 24px; text-align: center; background: #fff; }
.result-icon { font-size: 62px; line-height: 1; margin-bottom: 14px; }
.result-title { font-size: 20px; font-weight: 700; }
.result-desc { color: var(--text2); font-size: 13px; margin-top: 8px; }
.result-score {
  display: inline-flex; align-items: baseline; gap: 6px; margin-top: 16px;
  background: var(--success-soft); color: var(--success); padding: 8px 18px; border-radius: 999px;
  font-weight: 700;
}
.result-score__num { font-size: 26px; }
.result--reject .result-score { background: var(--danger-soft); color: var(--danger); }
.result--partial .result-score { background: var(--warning-soft); color: var(--warning); }

.tips { margin-top: 18px; text-align: left; background: #f7f8fa; border-radius: 12px; padding: 12px 14px; }
.tips__item { display: flex; gap: 8px; font-size: 12px; color: var(--text2); padding: 3px 0; }

.order-card { padding: 16px; }
.order-no { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.order-no__copy { color: var(--primary); font-size: 12px; }

/* ================= 订单列表 ================= */
.order-item { padding: 14px 16px; }
.order-item + .order-item { border-top: 1px solid var(--line); }
.oi-head { display: flex; justify-content: space-between; align-items: center; }
.oi-no { font-size: 12px; color: var(--text3); }
.status-badge { font-size: 11px; padding: 3px 9px; border-radius: 999px; font-weight: 500; }
.st-created { background: var(--primary-soft); color: var(--primary-dark); }
.st-approved { background: #e8f3ff; color: #1683ff; }
.st-shipping { background: #f0e8ff; color: #7c3aed; }
.st-renting { background: var(--success-soft); color: var(--success); }
/* 「归还申请」（客户已申请、等商家发地址）与「归还中」用**不同底色**：
   这两个状态的待办责任方完全不同（商家 vs 客户），同色会让客服在列表里
   一眼扫不出「哪些单在等我动手」。前者用更暖的橙黄，视觉上更「待办」。 */
.st-return-req { background: #fff1e0; color: #c2410c; }
.st-returning { background: var(--warning-soft); color: var(--warning); }
.st-completed { background: #f2f3f5; color: var(--text2); }
.st-rejected { background: var(--danger-soft); color: var(--danger); }
.st-cancelled { background: #f2f3f5; color: var(--text3); }

.oi-body { display: flex; gap: 12px; margin-top: 10px; }
.oi-cover {
  width: 56px; height: 56px; flex: 0 0 56px; border-radius: 10px; display: grid; place-items: center;
  font-size: 26px; color: #fff;
}
.oi-info { flex: 1; min-width: 0; }
.oi-name { font-size: 14px; font-weight: 600; }
.oi-meta { font-size: 12px; color: var(--text3); margin-top: 2px; }
.oi-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.oi-amount { font-size: 15px; font-weight: 700; }
.oi-actions { display: flex; gap: 8px; }
.btn-mini { font-size: 12px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--text2); }
.btn-mini--primary { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ================= TabBar ================= */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; max-width: 480px; margin: 0 auto;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom)); background: #fff;
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--text3); font-size: 10px; }
.tabbar__item.is-active { color: var(--primary); }
.tabbar__icon { font-size: 21px; line-height: 1; position: relative; display: inline-block; }
/* 未读红点：绝对定位挂在图标右上角，不参与 flex 布局（否则会把图标挤偏） */
.tabbar__badge {
  position: absolute; top: -4px; right: -12px; font-style: normal;
  min-width: 15px; height: 15px; padding: 0 4px; border-radius: 999px;
  background: #ff3d5a; color: #fff; font-size: 9px; line-height: 15px;
  text-align: center; font-weight: 600;
}

/* ================= 站内消息 ================= */
.nt-head { display: flex; align-items: center; gap: 8px; padding: calc(env(safe-area-inset-top) + 14px) 16px 10px; }
.nt-head__t { font-size: 19px; font-weight: 700; color: var(--text); }
.nt-head__badge {
  padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600;
  background: linear-gradient(135deg, #ff6a00, #ff3d7f); color: #fff;
}
.nt-head__act { margin-left: auto; background: none; border: 0; color: var(--primary); font-size: 13px; padding: 4px 2px; }

.nt-list { padding: 4px 12px 20px; display: flex; flex-direction: column; gap: 9px; }
.nt-item {
  position: relative; display: flex; gap: 10px; padding: 14px 13px; border-radius: 14px;
  background: #fff; box-shadow: 0 1px 6px rgba(31,41,55,.05); cursor: pointer;
}
.nt-item.is-unread { background: #fbfcff; box-shadow: 0 3px 12px rgba(91,108,255,.10); }
/* 未读用左侧色条 + 浅底：只靠一个小圆点，翻列表时很容易漏看 */
.nt-item.is-unread::before {
  content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px;
  border-radius: 0 3px 3px 0; background: linear-gradient(180deg, var(--primary), var(--primary-2));
}
.nt-item__icon {
  flex: none; width: 34px; height: 34px; border-radius: 10px; background: #f1f3fa;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.nt-item__body { flex: 1; min-width: 0; }
.nt-item__title { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.4; }
.nt-item__desc { margin-top: 4px; font-size: 12px; color: var(--text3); line-height: 1.5; word-break: break-all; }
.nt-item__meta { margin-top: 7px; display: flex; gap: 10px; font-size: 11px; color: var(--text3); }
.nt-item__link { color: var(--primary); font-weight: 600; }
.nt-item__dot { position: absolute; right: 11px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: #ff3d5a; }

/* ================= 我的 ================= */
.mine-hero {
  background: linear-gradient(135deg, #1b2436 0%, #0f172a 100%); color: #fff;
  padding: calc(env(safe-area-inset-top) + 24px) 20px 40px;
}
.mine-user { display: flex; align-items: center; gap: 10px; }
/* 头像 + 昵称：版式与小程序「我的」页对齐（参照微信「我」页的读法）——
   圆角方形头像 + 右侧上大号昵称 / 下小字副行。深色 hero 上头像必须有半透明描边
   才分得出来，否则头像会「糊」进渐变里（小程序侧同理，只是底色是紫色）。
   ⚠️ 这里的 gap 与小程序侧 `.mine-id` 的 padding-left 是同一处间距（10px ＝ 20rpx）：
   改一边就要改另一边，否则两端看起来不一样紧（2026-09-16 由 14px 收到 10px）。 */
.mine-avatar {
  width: 52px; height: 52px; border-radius: 10px; background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.22);
  display: grid; place-items: center; font-size: 24px;
}
.mine-name { font-size: 18px; font-weight: 600; letter-spacing: .2px; }
.mine-sub { font-size: 12px; opacity: .7; margin-top: 3px; }
.mine-credit {
  margin-top: 20px; background: rgba(255,255,255,.1); border-radius: 14px; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.mine-credit__num { font-size: 26px; font-weight: 700; color: #ffd28a; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: -26px; padding: 0 12px; }
.stat-card { background: #fff; border-radius: 14px; padding: 14px 8px; text-align: center; box-shadow: var(--shadow); }
.stat-card__num { font-size: 22px; font-weight: 700; }
.stat-card__label { font-size: 11px; color: var(--text3); margin-top: 2px; }

.mine-list { padding: 0 12px; margin-top: 12px; }
.mine-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.mine-row + .mine-row { border-top: 1px solid var(--line); }
.mine-row__icon { font-size: 18px; }
.mine-row__arrow { color: var(--text3); }

/* ================= Toast ================= */
.toast {
  position: fixed; top: 40%; left: 50%; transform: translate(-50%, -50%); z-index: 200;
  background: rgba(0,0,0,.78); color: #fff; padding: 12px 20px; border-radius: 10px;
  font-size: 14px; max-width: 80%; text-align: center; animation: fadein .2s;
}
@keyframes fadein { from { opacity: 0; transform: translate(-50%, -46%); } }

/* ================= 公告条 ================= */
.notice {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  background: var(--primary-soft); color: var(--primary-dark); font-size: 12px;
}
.notice__icon { flex: 0 0 auto; }

/* 骨架屏 */
.skeleton { background: linear-gradient(90deg, #f0f1f3 25%, #e6e8eb 37%, #f0f1f3 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ================= 热门推荐横滑 ================= */
.hscroll {
  display: flex; gap: 10px; overflow-x: auto; padding: 0 16px 16px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }
.hot-card {
  flex: 0 0 118px; height: 128px; border-radius: 14px; padding: 12px 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  color: #fff; scroll-snap-align: start; position: relative; overflow: hidden;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .18);
}
.hot-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,.25), rgba(255,255,255,0) 55%);
}
.hot-card__emoji { font-size: 40px; position: relative; z-index: 1; margin-top: 6px; }
.hot-card__name {
  font-size: 12px; font-weight: 600; text-align: center; position: relative; z-index: 1;
  width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hot-card__price { font-size: 15px; font-weight: 700; position: relative; z-index: 1; }
.hot-card__price span { font-size: 10px; font-weight: 500; opacity: .85; }
/* 大图版：产品图铺满卡片，文字压在底部蒙层 */
.hot-card--img { flex: 0 0 170px; height: 224px; padding: 0; }
.hot-card--img::after { display: none; }
.hot-card__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.hot-card__overlay {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 26px 12px 10px;
  background: linear-gradient(180deg, rgba(15,23,42,0) 0%, rgba(15,23,42,.55) 45%, rgba(15,23,42,.85) 100%);
}
.hot-card--img .hot-card__name { font-size: 14px; font-weight: 700; text-align: left; }
.hot-card__model {
  font-size: 10px; opacity: .8; text-align: left; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hot-card--img .hot-card__price { text-align: left; margin-top: 4px; }

/* 列表卡片实物封面：图片铺满圆角容器 */
.dev-card__cover--img { padding: 0; }
.dev-card__cover--img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: inherit;
}

/* 逾期未还（风控） */
.st-overdue { background: var(--danger-soft); color: var(--danger); font-weight: 700; }

/* 质检表单（管理后台抽屉内） */
.qc-input {
  width: 100%; box-sizing: border-box; padding: 9px 12px;
  border: 1px solid var(--line, #e5e7eb); border-radius: 10px;
  font-size: 13px; margin-bottom: 4px;
}
