/* 企服通 · app-prototype.html 视觉主题（第一批：首页、搜索、底部导航） */
:root {
  --tpl-blue: #2e63f6;
  --tpl-ink: #141b2d;
  --tpl-text: #3e4759;
  --tpl-sub: #8a94a6;
  --tpl-bg: #f4f6fb;
  --tpl-line: #edf1f7;
}

/* ---------- 首页 ---------- */
.tpl-home {
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
  background: var(--tpl-bg);
}

.tpl-hero {
  position: relative;
  overflow: hidden;
  padding: calc(24px + env(safe-area-inset-top)) 20px 70px;
  border-radius: 0 0 32px 32px;
  color: #fff;
  background: linear-gradient(160deg, #0e1f52 0%, #1b3e9b 45%, #2e63f6 100%);
}

.tpl-hero::before {
  content: "";
  position: absolute;
  right: -70px;
  top: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 170, 255, 0.35) 0%, rgba(120, 170, 255, 0) 70%);
  pointer-events: none;
}

.tpl-hero::after {
  content: "";
  position: absolute;
  left: -50px;
  bottom: -120px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 140, 255, 0.22) 0%, rgba(90, 140, 255, 0) 70%);
  pointer-events: none;
}

.tpl-hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.tpl-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.tpl-brand-tag {
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.tpl-brand-sub {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12.5px;
  letter-spacing: 0.4px;
}

.tpl-bell {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  transition: transform 0.15s ease;
}

.tpl-bell:active {
  transform: scale(0.92);
}

.tpl-bell .icon {
  width: 19px;
  height: 19px;
}

.tpl-bell .bell-count {
  position: absolute;
  top: -3px;
  right: -3px;
  border-color: #1b3e9b;
}

.tpl-slogan {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  color: #fff;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.42;
  letter-spacing: 0.5px;
}

.tpl-slogan em {
  color: #9dc1ff;
  font-style: normal;
}

.tpl-search {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 0 8px 0 15px;
  border-radius: 15px;
  color: var(--tpl-sub);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 26px rgba(7, 20, 60, 0.22);
}

.tpl-search > .icon {
  width: 17px;
  height: 17px;
  color: #8a94a6;
}

.tpl-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--tpl-ink);
  background: transparent;
  font-size: 13px;
}

.tpl-search input::placeholder {
  color: #8a94a6;
}

.tpl-search input::-webkit-search-cancel-button {
  display: none;
}

.tpl-search button {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex: none;
  border: 0;
  border-radius: 50%;
  color: var(--tpl-blue);
  background: #eaf0ff;
}

.tpl-search button .icon {
  width: 15px;
  height: 15px;
}

.tpl-stats {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  margin: -46px 16px 0;
  padding: 16px 8px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 30, 70, 0.12);
}

.tpl-stats div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.tpl-stats b {
  max-width: 100%;
  overflow: hidden;
  color: var(--tpl-ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.tpl-stats span {
  color: var(--tpl-sub);
  font-size: 10.5px;
}

.tpl-stats i {
  width: 1px;
  height: 28px;
  flex: none;
  background: #eef1f7;
}

.tpl-sheet {
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(28, 42, 80, 0.08);
}

.tpl-tools {
  margin: 12px 16px 0;
  padding: 16px 14px;
}

.tpl-tools-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tpl-tools-title {
  color: var(--tpl-ink);
  font-size: 15px;
  font-weight: 800;
}

.tpl-link {
  color: #a0a8b7;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.tpl-tool-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-top: 15px;
}

.tpl-tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
  color: #4a5468;
  background: transparent;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
}

.tpl-tool span:last-child {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tpl-tool-ic {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  transition: transform 0.15s ease;
}

.tpl-tool:active .tpl-tool-ic {
  transform: scale(0.92);
}

.tpl-tool-ic .icon {
  width: 22px;
  height: 22px;
}

.t-blue {
  color: #2e63f6;
  background: #eaf0ff;
}

.t-teal {
  color: #0ea5a4;
  background: #e4f6f4;
}

.t-purple {
  color: #7c3aed;
  background: #f0eaff;
}

.t-amber {
  color: #f59e0b;
  background: #fdf1df;
}

.t-green {
  color: #10b981;
  background: #e5f7ef;
}

.tpl-biz {
  position: relative;
  display: block;
  margin: 12px 16px 0;
  padding: 16px 16px 15px;
  overflow: hidden;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #0b1736 0%, #1e3fa8 58%, #2e63f6 100%);
  box-shadow: 0 12px 26px rgba(20, 35, 90, 0.2);
}

.tpl-biz::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -50px;
  width: 150px;
  height: 150px;
  border: 20px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.tpl-biz-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
}

.tpl-biz-badge {
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: #bbd3ff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.tpl-biz-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #8fe3c0;
  font-size: 9px;
}

.tpl-biz-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34d399;
}

.tpl-biz-title {
  position: relative;
  z-index: 1;
  margin-top: 9px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

.tpl-biz-sub {
  position: relative;
  z-index: 1;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 10px;
}

.tpl-biz-chips {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
  padding-right: 72px;
}

.tpl-biz-chips span {
  padding: 4px 8px;
  border-radius: 999px;
  color: #dce8ff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 9px;
}

.tpl-biz-go {
  position: absolute;
  right: 14px;
  bottom: 13px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 10.5px;
  font-weight: 700;
}

.tpl-ai-banner {
  position: relative;
  display: block;
  margin: 14px 16px 0;
  padding: 18px;
  overflow: hidden;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(120deg, #16266b 0%, #2e63f6 60%, #5b8dff 100%);
  box-shadow: 0 14px 34px rgba(22, 38, 107, 0.22);
}

.tpl-ai-banner::before {
  content: "";
  position: absolute;
  right: -46px;
  top: -46px;
  width: 170px;
  height: 170px;
  border: 24px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.tpl-ai-banner::after {
  content: "";
  position: absolute;
  right: 36px;
  bottom: -70px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 180, 255, 0.28), transparent 70%);
  pointer-events: none;
}

.tpl-ai-tag {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

.tpl-ai-title {
  position: relative;
  z-index: 1;
  max-width: 280px;
  margin-top: 10px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
}

.tpl-ai-sub {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11.5px;
}

.tpl-ai-btn {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 14px;
  padding: 9px 18px;
  border-radius: 999px;
  color: #1e3a8a;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  font-size: 12px;
  font-weight: 700;
}

.tpl-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 20px 16px 10px;
  color: var(--tpl-ink);
  font-size: 16px;
  font-weight: 800;
}

.tpl-section-head small {
  margin-left: 4px;
  color: var(--tpl-sub);
  font-size: 11px;
  font-weight: 500;
}

.tpl-hscroll {
  display: flex;
  gap: 10px;
  padding: 0 16px 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tpl-hscroll::-webkit-scrollbar {
  display: none;
}

.tpl-res-card,
.tpl-need-card,
.tpl-result {
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(20, 27, 45, 0.03);
}

.tpl-res-card {
  width: 248px;
  flex: none;
  display: block;
  padding: 14px;
}

.tpl-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.tpl-card-time {
  flex: none;
  color: #a9b1bf;
  font-size: 10.5px;
}

.tpl-card-title {
  color: var(--tpl-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.42;
}

.tpl-card-desc {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 6px;
  color: var(--tpl-sub);
  font-size: 11.5px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tpl-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f3f5fa;
}

.tpl-price {
  color: var(--tpl-blue);
  font-size: 15px;
  font-weight: 800;
}

.tpl-loc {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  color: #a9b1bf;
  font-size: 11px;
  white-space: nowrap;
}

.tpl-loc .icon {
  width: 12px;
  height: 12px;
}

.tpl-card-list {
  padding: 0 14px 20px;
}

.tpl-need-card {
  padding: 14px;
  margin-bottom: 10px;
}

.tpl-need-main {
  display: block;
}

.tpl-need-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 11px;
}

.tpl-budget {
  color: var(--tpl-ink);
  font-size: 12.5px;
  font-weight: 800;
}

.tpl-mini-btn {
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--tpl-blue);
  font-size: 12px;
  font-weight: 700;
}

.tpl-empty-card {
  width: 248px;
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-height: 118px;
  padding: 18px;
  border-radius: 16px;
  color: var(--tpl-ink);
  background: #fff;
  box-shadow: 0 2px 10px rgba(20, 27, 45, 0.03);
  font-size: 12px;
}

.tpl-empty-card span {
  color: var(--tpl-blue);
  font-size: 11px;
  font-weight: 700;
}

.tpl-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 10px 16px 24px;
  padding: 12px 10px;
  border-radius: 14px;
  color: #9aa3b2;
  background: #fff;
  font-size: 10.5px;
}

.tpl-guarantee span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tpl-guarantee .icon {
  width: 13px;
  height: 13px;
  color: #10b981;
}

.tpl-footer {
  padding: 0 16px 10px;
  color: #b3bac7;
  font-size: 10px;
  line-height: 1.9;
  text-align: center;
}

.tpl-footer .sep {
  margin: 0 5px;
  opacity: 0.6;
}

/* ---------- 搜索页 ---------- */
.tpl-search-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--tpl-bg);
}

.tpl-search-head {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(14px + env(safe-area-inset-top)) 16px 12px;
  border-bottom: 1px solid rgba(237, 241, 247, 0.9);
  background: rgba(244, 246, 251, 0.96);
  backdrop-filter: blur(14px);
}

.tpl-search-back {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid var(--tpl-line);
  border-radius: 50%;
  color: var(--tpl-ink);
  background: #fff;
}

.tpl-search-back .icon {
  width: 18px;
  height: 18px;
}

.tpl-search.tpl-search-inline {
  height: 44px;
  margin-top: 0;
  box-shadow: 0 6px 18px rgba(20, 35, 90, 0.08);
}

.tpl-search-body {
  padding: 14px 16px calc(42px + env(safe-area-inset-bottom));
}

.tpl-search-summary {
  padding: 2px 2px 0;
  color: var(--tpl-sub);
  font-size: 11.5px;
}

.tpl-search-section {
  margin-top: 18px;
}

.tpl-search-section .tpl-section-head {
  margin: 0 2px 10px;
  font-size: 15px;
}

.tpl-result {
  display: block;
  padding: 14px;
  margin-bottom: 10px;
}

.tpl-result strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--tpl-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tpl-result p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 5px;
  color: var(--tpl-sub);
  font-size: 11.5px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tpl-result-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid #f3f5fa;
}

.tpl-result-foot .tpl-price {
  font-size: 13px;
}

.tpl-search-empty {
  padding: 46px 10px 20px;
  text-align: center;
}

.tpl-search-empty-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 18px;
  color: var(--tpl-blue);
  background: #eaf0ff;
}

.tpl-search-empty-icon .icon {
  width: 27px;
  height: 27px;
}

.tpl-search-empty h2 {
  color: var(--tpl-ink);
  font-size: 18px;
  font-weight: 800;
}

.tpl-search-empty p {
  max-width: 300px;
  margin: 8px auto 0;
  color: var(--tpl-sub);
  font-size: 12px;
  line-height: 1.65;
}

.tpl-hot-title {
  margin-top: 24px;
  color: var(--tpl-ink);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.tpl-hot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tpl-hot-chip {
  padding: 7px 13px;
  border: 1px solid #e8ecf4;
  border-radius: 999px;
  color: #5b6475;
  background: #fff;
  font-size: 11.5px;
}

.tpl-search-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
}

.tpl-search-links a {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--tpl-blue);
  font-size: 12px;
  font-weight: 700;
}

.tpl-search-links .icon {
  width: 14px;
  height: 14px;
}

/* ---------- 需求 / 资源列表页 ---------- */
.tpl-list-page {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
  background: var(--tpl-bg);
}

.tpl-list-head {
  background:
    radial-gradient(360px 160px at 100% 0%, rgba(46, 99, 246, 0.08), transparent 70%),
    var(--tpl-bg);
}

.tpl-main-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: calc(24px + env(safe-area-inset-top)) 18px 0;
}

.tpl-main-head h1 {
  color: var(--tpl-ink);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.tpl-main-head p {
  margin-top: 6px;
  color: var(--tpl-sub);
  font-size: 11.5px;
  line-height: 1.5;
}

.tpl-post-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: none;
  height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #2e63f6, #2452d4);
  box-shadow: 0 6px 14px rgba(46, 99, 246, 0.25);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.tpl-post-btn .icon {
  width: 15px;
  height: 15px;
}

.tpl-search.tpl-search-list {
  width: auto;
  height: 44px;
  margin: 15px 16px 0;
  box-shadow: 0 4px 16px rgba(20, 35, 90, 0.06);
}

.tpl-search-list button {
  width: 30px;
  height: 30px;
}

.tpl-loc-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 16px 0;
  padding: 6px 7px 6px 11px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(20, 27, 45, 0.04);
}

.tpl-loc-bar > .region-pair {
  width: auto;
  flex: 1;
  gap: 0;
  overflow: hidden;
}

.tpl-loc-bar .region-select {
  height: 30px;
  padding: 0 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  min-width: 0;
}

.tpl-loc-bar .region-select .icon {
  flex: none;
  width: 13px;
  height: 13px;
  margin-right: 2px;
  color: var(--tpl-blue);
}

.tpl-loc-bar .region-select select {
  width: auto;
  max-width: 74px;
  padding-right: 2px;
  color: var(--tpl-ink);
  font-size: 12px;
  font-weight: 700;
}

.tpl-loc-bar .region-select select:disabled {
  color: #b6bfce;
}

.tpl-sort-switch {
  display: flex;
  align-items: center;
  flex: none;
  gap: 0;
  padding: 3px;
  border-radius: 999px;
  background: #f2f5fb;
}

.tpl-sort-switch .sort-tab {
  padding: 6px 10px;
  border-radius: 999px;
  color: #7c8698;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.tpl-sort-switch .sort-tab.is-active {
  color: var(--tpl-blue);
  background: #fff;
  box-shadow: 0 2px 8px rgba(20, 27, 45, 0.08);
}

.tpl-sort-switch .sort-tab.is-active::after {
  display: none;
}

.tpl-chips {
  display: flex;
  gap: 8px;
  padding: 14px 16px 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.tpl-chips::-webkit-scrollbar {
  display: none;
}

.tpl-chips .chip {
  height: 33px;
  padding: 0 14px;
  border: 1px solid #e8ecf4;
  border-radius: 999px;
  color: #5b6475;
  background: #fff;
  font-size: 12px;
  font-weight: 500;
}

.tpl-chips .chip:not(.chip-cat).is-active {
  border-color: var(--tpl-blue);
  color: #fff;
  background: var(--tpl-blue);
  box-shadow: 0 6px 14px rgba(46, 99, 246, 0.22);
}

.tpl-chips-sub {
  justify-content: flex-start;
  padding-top: 10px;
  padding-bottom: 0;
}

.tpl-chips-sub .chip {
  height: 30px;
  padding: 0 12px;
  font-size: 11.5px;
}

.tpl-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 16px 0;
}

.tpl-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 12px 4px 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--tpl-ink);
  background: #fff;
  box-shadow: 0 2px 10px rgba(20, 27, 45, 0.03);
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tpl-cat:active {
  transform: scale(0.96);
}

.tpl-cat.is-active {
  box-shadow: inset 0 0 0 1.5px var(--tpl-blue), 0 8px 18px rgba(46, 99, 246, 0.1);
}

.tpl-cat-ic {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--tone);
  background: var(--tone-soft);
  font-size: 14px;
  font-weight: 800;
}

.tpl-cat-name {
  max-width: 100%;
  overflow: hidden;
  color: var(--tpl-ink);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tpl-list-body {
  padding: 2px 16px calc(28px + env(safe-area-inset-bottom));
}

.tpl-list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 2px 10px;
  color: #8a94a6;
  font-size: 10.5px;
}

.tpl-list-meta strong {
  color: var(--tpl-ink);
  font-weight: 800;
}

.tpl-list-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tpl-listing-card {
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(20, 27, 45, 0.03);
  transition: transform 0.15s ease;
}

.tpl-listing-card:active {
  transform: scale(0.99);
}

.tpl-listing-card .tpl-card-top {
  margin-bottom: 0;
}

.tpl-listing-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.tpl-listing-main {
  display: block;
  margin-top: 9px;
}

.tpl-listing-main .tpl-card-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14.5px;
  line-height: 1.46;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tpl-listing-main .tpl-card-desc {
  margin-top: 6px;
}

.tpl-listing-tags-meta {
  gap: 6px;
  margin-top: 10px;
}

.tpl-listing-tags-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  border-radius: 6px;
  color: #5b6475;
  background: #f4f6fa;
  font-size: 10.5px;
  line-height: 1.2;
}

.tpl-listing-tags-meta .icon {
  width: 11px;
  height: 11px;
  color: #98a2b3;
}

.tpl-listing-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid #f3f5fa;
}

.tpl-listing-price {
  min-width: 0;
}

.tpl-listing-price small {
  display: block;
  margin-bottom: 2px;
  color: #a9b1bf;
  font-size: 9px;
}

.tpl-listing-price strong {
  display: block;
  overflow: hidden;
  max-width: 210px;
  color: var(--tpl-ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tpl-listing-price.is-resource strong {
  color: var(--tpl-blue);
}

.tpl-listing-foot .tpl-mini-btn {
  flex: none;
  box-shadow: 0 5px 12px rgba(46, 99, 246, 0.2);
}

.tpl-list-body .list-end {
  padding: 20px 0 8px;
}

.tpl-list-body .load-more {
  margin-top: 14px;
}

/* ---------- 我的 ---------- */
.tpl-me-page,
.tpl-guest-me {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--tpl-bg);
}

.tpl-me-page .me-hero {
  margin: calc(14px + env(safe-area-inset-top)) 14px 0;
  padding: 18px 18px 16px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% -8%, rgba(255, 255, 255, 0.22), transparent 38%),
    linear-gradient(140deg, #1e3a8a 0%, #2e63f6 55%, #5b8dff 100%);
  box-shadow: 0 14px 30px rgba(46, 99, 246, 0.25);
}

.tpl-me-page .me-hero::after {
  right: -52px;
  top: -54px;
  width: 160px;
  height: 160px;
  border: 20px solid rgba(255, 255, 255, 0.08);
}

.tpl-me-page .me-top {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: block;
}

.tpl-me-page .me-top > div {
  display: none;
}

.tpl-me-page .me-top .hero-icon-btn {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
}

.tpl-me-page .me-avatar-row {
  margin-top: 0;
  padding-right: 42px;
}

.tpl-me-page .me-avatar {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 21px;
  box-shadow: none;
}

.tpl-me-page .me-name {
  flex-wrap: wrap;
  gap: 6px;
  font-size: 16px;
  line-height: 1.35;
}

.tpl-me-page .me-phone {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11.5px;
}

.tpl-me-page .me-tags {
  margin-top: 8px;
}

.tpl-me-page .me-tag {
  padding: 2px 7px;
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.12);
  font-size: 9.5px;
}

.tpl-me-page .me-stats {
  margin-top: 18px;
  padding: 14px 4px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.tpl-me-page .me-stat + .me-stat::before {
  display: none;
}

.tpl-me-page .me-stat strong {
  font-size: 17px;
}

.tpl-me-page .me-stat span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 10.5px;
}

.tpl-me-page .me-body {
  margin-top: 12px;
  padding: 0 14px calc(96px + env(safe-area-inset-bottom));
}

.tpl-me-page .member-card {
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 92% -30%, rgba(140, 170, 255, 0.22), transparent 44%),
    linear-gradient(120deg, #111a33 0%, #263a70 60%, #4557a0 100%);
  box-shadow: 0 8px 20px rgba(17, 26, 51, 0.15);
}

.tpl-me-page .member-card::after {
  display: none;
}

.tpl-me-page .member-icon {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 11px;
  color: #3a2a06;
  background: linear-gradient(135deg, #f6d98a, #d9a93a);
  box-shadow: 0 4px 10px rgba(217, 169, 58, 0.24);
}

.tpl-me-page .member-card.is-active .member-icon {
  color: #064e3b;
  background: linear-gradient(135deg, #c7f9dd, #6ee7b7);
  box-shadow: 0 4px 10px rgba(110, 231, 183, 0.18);
}

.tpl-me-page .member-icon .icon {
  width: 18px;
  height: 18px;
}

.tpl-me-page .member-copy strong {
  color: #fff;
  font-size: 12.5px;
  line-height: 1.35;
}

.tpl-me-page .member-copy span {
  overflow: hidden;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tpl-me-page .member-btn {
  height: auto;
  padding: 5px 8px;
  border-color: rgba(246, 217, 138, 0.22);
  color: #f6d98a;
  background: rgba(246, 217, 138, 0.1);
  font-size: 9.5px;
  white-space: nowrap;
}

.tpl-me-page .me-section-label {
  margin: 20px 3px 8px;
}

.tpl-me-page .menu-group {
  margin-top: 12px;
  border-color: #eef1f7;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(20, 27, 45, 0.03);
}

.tpl-me-page .menu-row {
  min-height: 52px;
  padding: 9px 14px;
}

.tpl-me-page .menu-label {
  font-size: 13px;
}

.tpl-me-page .logout-btn {
  border-color: #e8ecf4;
  border-radius: 14px;
  background: #fff;
}

.tpl-guest-me .guest-hero {
  margin: calc(14px + env(safe-area-inset-top)) 14px 0;
  padding: 22px 18px 24px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% -8%, rgba(255, 255, 255, 0.22), transparent 38%),
    linear-gradient(140deg, #1e3a8a 0%, #2e63f6 55%, #5b8dff 100%);
  box-shadow: 0 14px 30px rgba(46, 99, 246, 0.25);
}

.tpl-guest-me .guest-hero::after {
  right: -56px;
  top: 36px;
  width: 180px;
  height: 180px;
  border: 20px solid rgba(255, 255, 255, 0.08);
}

.tpl-guest-me .guest-hero .eyebrow {
  color: #ffe1a2;
  font-size: 9.5px;
}

.tpl-guest-me .guest-hero h1 {
  margin-top: 11px;
  font-size: 23px;
}

.tpl-guest-me .guest-hero p {
  font-size: 11.5px;
}

.tpl-guest-me .guest-login {
  height: 44px;
  margin-top: 18px;
  border-radius: 14px;
  font-size: 13px;
}

.tpl-guest-me .guest-body {
  margin-top: 12px;
  padding: 0 14px;
}

.tpl-guest-me .guest-card {
  padding: 17px;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(20, 27, 45, 0.03);
}

.tpl-guest-me .guest-value {
  border-radius: 12px;
}

.tpl-guest-me .guest-links {
  margin-top: 13px;
  padding: 0 14px calc(96px + env(safe-area-inset-bottom));
}

.tpl-guest-me .guest-links .menu-group {
  margin-top: 0;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(20, 27, 45, 0.03);
}

/* ---------- 底部导航 ---------- */
.bottom-nav {
  grid-template-columns: repeat(4, 1fr);
  padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
  border-top: 1px solid #eef1f7;
  box-shadow: 0 -6px 18px rgba(20, 27, 45, 0.04);
}

.nav-item {
  min-height: 48px;
  gap: 3px;
  color: #9aa3b2;
  font-size: 10px;
  font-weight: 600;
}

.nav-item .icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.7;
}

.nav-item.is-active {
  color: var(--tpl-blue);
  font-weight: 600;
}

.nav-item.is-active::after {
  display: none;
}

/* ---------- 第二批：详情、表单与全部子页面 ---------- */
.subhead {
  min-height: calc(52px + env(safe-area-inset-top));
  padding: calc(7px + env(safe-area-inset-top)) 16px 7px;
  border-bottom: 1px solid rgba(237, 241, 247, 0.9);
  background: rgba(244, 246, 251, 0.94);
  backdrop-filter: blur(14px);
}

.subhead h1 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.subhead .icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--tpl-line);
  border-radius: 50%;
  color: var(--tpl-ink);
  background: #fff;
  box-shadow: 0 3px 10px rgba(20, 27, 45, 0.04);
}

.subhead .icon-btn .icon {
  width: 17px;
  height: 17px;
}

.subhead .subhead-side {
  width: 36px;
  height: 36px;
}

/* 通用按钮与标签 */
.btn-primary {
  border-radius: 12px;
  background: linear-gradient(135deg, #2e63f6, #2452d4);
  box-shadow: 0 7px 16px rgba(46, 99, 246, 0.22);
}

.btn-soft {
  border-color: transparent;
  border-radius: 12px;
  color: var(--tpl-blue);
  background: #eaf0ff;
}

.btn-ghost {
  border-radius: 12px;
  color: #5b6475;
  background: #f2f5fb;
}

.mini-btn {
  height: 30px;
  padding: 0 12px;
  border-color: #e6ebf4;
  border-radius: 999px;
  color: #5b6475;
  background: #fff;
  font-size: 10.5px;
  font-weight: 700;
}

.mini-btn.primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #2e63f6, #2452d4);
  box-shadow: 0 5px 12px rgba(46, 99, 246, 0.2);
}

.mini-btn.danger {
  border-color: #f6dfe2;
  color: #b33a4a;
  background: #fff6f7;
}

.list-meta {
  color: var(--tpl-sub);
  font-size: 10.5px;
}

.list-meta strong {
  color: var(--tpl-ink);
  font-weight: 800;
}

.stack {
  gap: 10px;
}

.manage-card,
.saved-card,
.inquiry-card,
.order-card,
.conversation-card,
.report-item,
.commission-item,
.member-order-card,
.form-card,
.detail-card,
.publisher-card,
.order-checkout-card,
.contract-card {
  border-color: transparent;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(20, 27, 45, 0.03);
}

/* 详情页 */
.tpl-detail-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--tpl-bg);
}

.tpl-detail-main {
  padding: 12px 16px calc(108px + env(safe-area-inset-bottom));
}

.tpl-detail-cover {
  position: relative;
  overflow: hidden;
  padding: 20px 18px 23px;
  border-radius: 22px;
  color: #fff;
  box-shadow: 0 14px 30px rgba(15, 30, 70, 0.2);
}

.tpl-detail-cover.is-demand {
  background:
    radial-gradient(circle at 94% -8%, rgba(119, 207, 255, 0.3), transparent 40%),
    linear-gradient(135deg, #071e3d 0%, #1e4fd8 62%, #38bdf8 100%);
}

.tpl-detail-cover.is-resource {
  background:
    radial-gradient(circle at 94% -8%, rgba(144, 184, 255, 0.32), transparent 40%),
    linear-gradient(135deg, #0e1f52 0%, #2e63f6 60%, #6fa2ff 100%);
}

.tpl-detail-cover::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -76px;
  width: 190px;
  height: 190px;
  border: 22px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.tpl-cover-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tpl-cover-pill,
.tpl-cover-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.tpl-cover-pill {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

.tpl-cover-status {
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.22);
}

.tpl-cover-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.tpl-cover-status.is-closed {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.14);
}

.tpl-detail-cover h1 {
  position: relative;
  z-index: 1;
  max-width: 330px;
  margin-top: 15px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.46;
  letter-spacing: 0.2px;
  word-break: break-word;
}

.tpl-cover-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 11px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 10.5px;
}

.tpl-cover-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.tpl-cover-meta .icon {
  width: 12px;
  height: 12px;
}

.tpl-detail-price {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -24px 12px 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 30, 70, 0.08);
}

.tpl-detail-price small {
  display: block;
  color: var(--tpl-sub);
  font-size: 9.5px;
}

.tpl-detail-price strong {
  display: block;
  overflow: hidden;
  max-width: 230px;
  margin-top: 3px;
  color: var(--tpl-blue);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tpl-price-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex: none;
  color: #a9b1bf;
  font-size: 9.5px;
}

.tpl-price-stats span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.tpl-price-stats .icon {
  width: 12px;
  height: 12px;
}

.tpl-detail-block {
  margin-top: 12px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(20, 27, 45, 0.03);
}

.tpl-block-title {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--tpl-ink);
  font-size: 14px;
  font-weight: 800;
}

.tpl-block-title::before {
  content: "";
  width: 3px;
  height: 13px;
  border-radius: 999px;
  background: var(--tpl-blue);
}

.tpl-detail-desc {
  margin-top: 10px;
  color: #5b6475;
  font-size: 12.5px;
  line-height: 1.8;
  word-break: break-word;
}

.tpl-detail-block .info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.tpl-detail-block .info-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 11px;
  background: #f6f8fc;
}

.tpl-detail-block .info-row span {
  color: var(--tpl-sub);
  font-size: 9.5px;
}

.tpl-detail-block .info-row strong {
  color: var(--tpl-ink);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
  word-break: break-word;
}

.tpl-publisher-row {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 12px;
}

.tpl-publisher-row .avatar {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(145deg, #2e63f6, #1e3a8a);
  font-size: 16px;
}

.tpl-publisher-row .publisher-name {
  flex-wrap: wrap;
  gap: 5px;
  color: var(--tpl-ink);
  font-size: 12.5px;
}

.tpl-publisher-row .publisher-sub {
  color: var(--tpl-sub);
}

.tpl-safe-strip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  color: #3e7a62;
  background: #f0f9f3;
  font-size: 10px;
  line-height: 1.65;
}

.tpl-safe-strip .icon {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 1px;
  color: #10b981;
}

.tpl-report-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 0 2px;
  color: var(--tpl-sub);
  font-size: 10.5px;
}

.tpl-detail-bar {
  gap: 8px;
  padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(237, 241, 247, 0.9);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -8px 24px rgba(16, 35, 90, 0.06);
}

.tpl-detail-bar .fav-btn {
  width: 50px;
  color: #8a94a6;
}

.tpl-detail-bar .fav-btn.is-active {
  color: #f5a623;
}

.tpl-detail-bar .fav-btn .icon {
  width: 21px;
  height: 21px;
}

.tpl-detail-bar .btn-primary,
.tpl-detail-bar .btn-soft {
  min-height: 45px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 700;
}

.tpl-action-main {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.tpl-action-second {
  flex: none;
  min-width: 74px;
  padding: 0 15px;
}

.tpl-action-main .icon,
.tpl-action-second .icon {
  width: 17px;
  height: 17px;
}

/* 表单页 */
.form-hero {
  padding: 22px 20px 24px;
  border-radius: 0 0 26px 26px;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 255, 255, 0.18), transparent 35%),
    linear-gradient(150deg, #0e1f52, #1b3e9b 55%, #2e63f6);
}

.form-hero h1 {
  font-size: 22px;
}

.form-hero p {
  color: rgba(255, 255, 255, 0.7);
}

.form-body {
  padding: 14px 16px calc(30px + env(safe-area-inset-bottom));
}

.form-card {
  padding: 18px 16px;
}

.field-label {
  color: var(--tpl-ink);
  font-size: 12px;
}

.field input,
.field select,
.field textarea {
  border-color: transparent;
  border-radius: 12px;
  background: #f6f8fc;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--tpl-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(46, 99, 246, 0.1);
}

.form-submit {
  border-radius: 13px;
}

.form-note,
.field-help {
  color: #9aa3b2;
}

/* 登录页细节 */
.auth-hero {
  border-radius: 0 0 28px 28px;
  background:
    radial-gradient(circle at 88% 3%, rgba(255, 255, 255, 0.2), transparent 32%),
    radial-gradient(circle at 2% 100%, rgba(91, 147, 255, 0.45), transparent 48%),
    linear-gradient(152deg, #0e1f52, #1b3e9b 58%, #2e63f6);
}

.auth-panel {
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(15, 38, 94, 0.14);
}

.auth-panel h2 {
  color: var(--tpl-ink);
}

.code-btn {
  border-color: transparent;
  border-radius: 12px;
  color: var(--tpl-blue);
  background: #eaf0ff;
}

.auth-legal a {
  color: var(--tpl-blue);
}

/* 我的发布 / 收藏 / 咨询 / 订单列表 */
.tabbar {
  gap: 3px;
  margin: 12px 0 2px;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: #edf1f8;
}

.tab {
  min-height: 36px;
  border-radius: 999px;
  color: #7c8698;
  font-size: 12px;
  font-weight: 600;
}

.tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, #2e63f6, #2452d4);
  box-shadow: 0 6px 14px rgba(46, 99, 246, 0.22);
}

.tab em {
  font-size: 9px;
  opacity: 0.75;
}

.subpage-body {
  padding: 4px 16px calc(96px + env(safe-area-inset-bottom));
}

.manage-card h3,
.saved-card h3,
.inquiry-target,
.order-title {
  color: var(--tpl-ink);
}

.manage-summary {
  color: #8a94a6;
}

.manage-meta {
  color: #a9b1bf;
}

.manage-actions,
.saved-foot,
.order-actions,
.inquiry-foot {
  border-top-color: #f3f5fa;
}

.saved-highlight {
  color: var(--tpl-blue);
}

.inquiry-message {
  border-radius: 11px;
  background: #f6f8fc;
}

.inquiry-contact {
  border-color: transparent;
  border-radius: 11px;
  color: var(--tpl-blue);
  background: #eaf0ff;
}

.inquiry-contact .icon {
  color: var(--tpl-blue);
}

.inquiry-contact a {
  color: #2452d4;
}

.order-stats {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(20, 27, 45, 0.03);
}

.order-stat strong {
  color: var(--tpl-blue);
}

.order-stat.is-done strong {
  color: #10b981;
}

.order-party {
  background: #f6f8fc;
}

.order-figure strong {
  color: var(--tpl-blue);
}

.order-detail-hero {
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 94% -8%, rgba(144, 184, 255, 0.3), transparent 40%),
    linear-gradient(135deg, #0e1f52, #2e63f6 68%, #5b8dff);
  box-shadow: 0 14px 30px rgba(15, 30, 70, 0.18);
}

.order-checkout-price {
  border-radius: 12px;
  color: var(--tpl-blue);
  background: #eaf0ff;
}

/* 消息与聊天 */
.messages-hero {
  border: 1px solid #e4ecff;
  border-radius: 17px;
  background:
    radial-gradient(220px 100px at 100% -20%, rgba(46, 99, 246, 0.16), transparent 70%),
    #f3f7ff;
}

.messages-hero-icon {
  color: var(--tpl-blue);
  border-radius: 13px;
}

.conversation-avatar {
  border-radius: 13px;
  background: linear-gradient(145deg, #2e63f6, #1e3a8a);
}

.chat-view .subhead {
  background: rgba(255, 255, 255, 0.96);
}

.chat-peer-bar {
  border-bottom-color: var(--tpl-line);
}

.chat-stream {
  background:
    radial-gradient(400px 240px at 100% 0%, rgba(46, 99, 246, 0.06), transparent 70%),
    var(--tpl-bg);
}

.chat-row.is-mine .chat-bubble {
  background: linear-gradient(135deg, #2e63f6, #2452d4);
  box-shadow: 0 8px 18px rgba(46, 99, 246, 0.22);
}

.chat-composer button {
  background: linear-gradient(135deg, #2e63f6, #2452d4);
  box-shadow: 0 6px 14px rgba(46, 99, 246, 0.24);
}

/* 会员中心 */
.membership-hero {
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at 92% -18%, rgba(140, 170, 255, 0.24), transparent 44%),
    linear-gradient(120deg, #111a33 0%, #263a70 60%, #4557a0 100%);
  box-shadow: 0 14px 30px rgba(17, 26, 51, 0.2);
}

.membership-hero::after {
  border-color: rgba(255, 255, 255, 0.09);
}

.membership-crown {
  border: 0;
  color: #3a2a06;
  background: linear-gradient(135deg, #f6d98a, #d9a93a);
  box-shadow: 0 4px 10px rgba(217, 169, 58, 0.24);
}

.membership-hero-copy small {
  color: rgba(246, 217, 138, 0.62);
}

.membership-hero-copy h1 {
  color: #fff;
}

.membership-hero-copy p {
  color: rgba(255, 255, 255, 0.62);
}

.membership-state {
  border-color: rgba(246, 217, 138, 0.24);
  color: #f6d98a;
  background: rgba(246, 217, 138, 0.1);
}

.membership-quota {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.membership-quota strong {
  color: #f6d98a;
}

.membership-quota span,
.membership-quota-note {
  color: rgba(255, 255, 255, 0.6);
}

.plan-card {
  border: 0;
  border-radius: 17px;
  box-shadow: 0 2px 10px rgba(20, 27, 45, 0.03);
}

.plan-card.is-current {
  box-shadow: inset 0 0 0 1.5px var(--tpl-blue), 0 8px 18px rgba(46, 99, 246, 0.08);
}

.plan-current {
  color: var(--tpl-blue);
  background: #eaf0ff;
}

.plan-price {
  color: var(--tpl-blue);
}

.plan-action {
  border-radius: 12px;
}

.member-order-card {
  border-radius: 16px;
}

/* 企业资料 / 举报 */
.verify-banner {
  border-color: #e4ecff;
  background: #f6f9ff;
}

.review-note {
  border-radius: 14px;
}

.review-note.is-verified {
  border-color: #ccecdc;
  color: #236b4d;
  background: #f2fbf6;
}

.review-note.is-verified .review-note-head .icon,
.review-note.is-verified .review-note-head strong {
  color: #12805c;
}

.review-note.is-verified .review-note-head span {
  color: #6ba98d;
}

.review-note.is-verified p {
  color: #2f6b53;
}

.review-note.is-pending {
  border-color: #ffe4bd;
  color: #8a5a13;
  background: #fffaf0;
}

.review-note.is-pending .review-note-head .icon,
.review-note.is-pending .review-note-head strong {
  color: #b7791f;
}

.review-note.is-pending .review-note-head span {
  color: #c3a06b;
}

.review-note.is-pending p {
  color: #7a5a2d;
}

.report-intro {
  border: 1px solid #e4ecff;
  border-radius: 15px;
  background: #f6f9ff;
}

.report-item {
  border-radius: 16px;
}

.prose {
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(20, 27, 45, 0.03);
}

/* 推广有礼 */
.referral-hero {
  border-radius: 20px;
}

.referral-stat {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(20, 27, 45, 0.03);
}

.referral-stat strong {
  color: var(--tpl-blue);
}

.referral-steps,
.commission-section {
  border-color: transparent;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(20, 27, 45, 0.03);
}

.invite-card {
  border-radius: 18px;
}

.invite-code {
  color: var(--tpl-blue);
}

/* 合同助手 */
.page-head {
  background:
    radial-gradient(360px 160px at 100% 0%, rgba(46, 99, 246, 0.08), transparent 70%),
    var(--tpl-bg);
}

.page-head h1 {
  color: var(--tpl-ink);
  font-size: 23px;
  font-weight: 800;
}

.page-head p {
  color: var(--tpl-sub);
}

.head-action {
  border-radius: 999px;
  background: linear-gradient(135deg, #2e63f6, #2452d4);
  box-shadow: 0 6px 14px rgba(46, 99, 246, 0.25);
}

.contract-hero {
  border-radius: 18px;
  background:
    radial-gradient(circle at 94% 0%, rgba(115, 158, 255, 0.4), transparent 38%),
    linear-gradient(135deg, #0e1f52, #1b3e9b 58%, #2e63f6);
}

.contract-stats {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(20, 27, 45, 0.03);
}

.contract-stat strong {
  color: var(--tpl-blue);
}

.contract-quick {
  border-color: transparent;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(20, 27, 45, 0.03);
}

.contract-quick.is-primary {
  background: linear-gradient(160deg, #f5f8ff, #fff);
}

.searchbar {
  border-color: transparent;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(20, 35, 90, 0.06);
}

.searchbar button {
  border-radius: 10px;
  background: var(--tpl-blue);
}

.contract-template-chip .icon,
.contract-template-chip {
  border-radius: 999px;
}

.contract-card {
  border-radius: 16px;
}

.contract-quick.is-primary .contract-quick-icon {
  background: linear-gradient(135deg, #2e63f6, #2452d4);
}

.contract-hero-icon {
  color: #f6d98a;
}

/* 状态页与通用空态 */
.state-view,
.empty {
  border-radius: 18px;
}

.state-icon {
  border-radius: 16px;
  color: var(--tpl-blue);
  background: #eaf0ff;
}

/* ---------- 小屏适配 ---------- */
@media (max-width: 370px) {
  .tpl-hero {
    padding-right: 16px;
    padding-left: 16px;
  }

  .tpl-brand {
    font-size: 21px;
  }

  .tpl-slogan {
    font-size: 21px;
  }

  .tpl-tool-ic {
    width: 42px;
    height: 42px;
  }

  .tpl-tool {
    font-size: 10px;
  }

  .tpl-res-card,
  .tpl-empty-card {
    width: 232px;
  }

  .tpl-detail-cover h1 {
    font-size: 18.5px;
  }

  .tpl-detail-price {
    margin-right: 8px;
    margin-left: 8px;
    padding: 13px 14px;
  }

  .tpl-detail-price strong {
    max-width: 170px;
    font-size: 19px;
  }

  .tpl-detail-block {
    padding: 14px;
  }

  .tpl-detail-block .info-row {
    padding: 9px 10px;
  }

  .tpl-detail-bar .btn-primary,
  .tpl-detail-bar .btn-soft {
    font-size: 12px;
  }

  .tpl-action-second {
    min-width: 64px;
    padding: 0 11px;
  }

  .subhead {
    padding-right: 12px;
    padding-left: 12px;
  }
}