/* ============================================================
 * 标易通 · 移动端（小程序风格）
 * ============================================================ */
body { background: #E9ECF2; }

.app {
  position: relative;
  max-width: 460px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(16,24,40,.04), 0 24px 60px rgba(16,24,40,.10);
  overflow-x: hidden;
}
.view { min-height: 100vh; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
.view.no-tab { padding-bottom: 0; }
/* 展示悬浮客服时，为按钮预留滚动余量，避免遮挡末尾内容 */
.view.has-fab { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }

/* ---------- 顶部容器 ---------- */
.hero {
  position: relative;
  padding: 18px 16px 54px;
  background: linear-gradient(150deg, #1B2E6E 0%, #2A4FD7 52%, #3C6BE8 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; width: 240px; height: 240px; border-radius: 50%;
  right: -90px; top: -110px; background: rgba(255,255,255,.10);
}
.hero::after {
  content: ''; position: absolute; width: 150px; height: 150px; border-radius: 50%;
  left: -60px; bottom: -70px; background: rgba(255,255,255,.07);
}
.hero-row { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand-logo {
  width: 30px; height: 30px; border-radius: 9px; background: #fff;
  display: grid; place-items: center; color: var(--primary); font-weight: 800; font-size: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: .5px; }
.brand-sub { font-size: 10.5px; opacity: .72; letter-spacing: 2px; margin-top: -3px; }
.hero-slogan { position: relative; z-index: 2; margin-top: 22px; }
.hero-slogan h1 { font-size: 23px; font-weight: 700; letter-spacing: 1px; line-height: 1.35; }
.hero-slogan p { margin: 6px 0 0; font-size: 12.5px; opacity: .82; letter-spacing: .5px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 12px;
  height: 24px; padding: 0 10px; border-radius: 20px;
  background: rgba(255,255,255,.16); font-size: 11.5px; backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.18);
}
.search-box {
  position: relative; z-index: 3; margin-top: 16px;
  display: flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 14px; border-radius: 12px;
  background: #fff; box-shadow: 0 8px 20px rgba(12,24,64,.18);
}
.search-box input {
  flex: 1; border: none; outline: none; background: transparent; font-size: 13.5px; color: var(--ink);
}
.search-box input::placeholder { color: var(--ink-4); }
.search-box .sbtn {
  font-size: 12.5px; color: var(--primary); font-weight: 600; padding-left: 8px;
  border-left: 1px solid var(--line); height: 18px; display: flex; align-items: center;
}

/* ---------- 数据条 ---------- */
.stat-strip {
  position: relative; z-index: 4; margin: -38px 16px 0;
  display: flex; background: #fff; border-radius: 14px; padding: 14px 0;
  box-shadow: var(--sh-md);
}
.stat-strip > div { flex: 1; text-align: center; position: relative; }
.stat-strip > div + div::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--line);
}
.stat-num { font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -.3px; }
.stat-num em { font-style: normal; font-size: 11px; color: var(--ink-3); font-weight: 500; margin-left: 1px; }
.stat-label { font-size: 11px; color: var(--ink-3); margin-top: 2px; }

/* ---------- 通用板块 ---------- */
.sec { margin-top: 18px; padding: 0 16px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.sec-title { font-size: 15.5px; font-weight: 700; letter-spacing: .2px; display: flex; align-items: center; gap: 6px; }
.sec-title::before {
  content: ''; width: 3px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, var(--primary), #5B84F5);
}
.sec-more { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 2px; }

/* 类目宫格 */
.cat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 4px;
  background: #fff; border-radius: 14px; padding: 14px 8px; box-shadow: var(--sh);
}
.cat-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0; }
.cat-ico {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: #fff; letter-spacing: -.5px;
}
.cat-name { font-size: 11px; color: var(--ink-2); }
.cat-item:active .cat-ico { transform: scale(.94); }

/* ---------- 商标卡片 ---------- */
.tm-list { display: flex; flex-direction: column; gap: 10px; }
.tm-card {
  position: relative; display: flex; gap: 12px; padding: 12px;
  background: #fff; border-radius: 14px; box-shadow: var(--sh);
  transition: transform .16s ease, box-shadow .16s ease;
}
.tm-card:active { transform: scale(.985); }
.tm-thumb {
  position: relative; flex: 0 0 86px; width: 86px; height: 86px; border-radius: 11px;
  display: grid; place-items: center; overflow: hidden; padding: 6px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.tm-thumb span {
  color: #fff; font-weight: 700; text-align: center; line-height: 1.2;
  font-size: 17px; letter-spacing: 1px; text-shadow: 0 1px 3px rgba(0,0,0,.18);
  word-break: break-all;
}
.tm-thumb span.long { font-size: 13px; letter-spacing: 0; }
.tm-thumb.has-img { padding: 0; background: #fff !important; }
.tm-thumb .tm-logo { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.tm-thumb .cls-tag {
  position: absolute; left: 5px; top: 5px; font-size: 9px; color: #fff;
  background: rgba(0,0,0,.24); border-radius: 4px; padding: 1px 4px; letter-spacing: 0;
  font-weight: 500;
}
.tm-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tm-name {
  font-size: 15px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 6px;
  padding-right: 26px;
}
.tm-meta { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.tm-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); display: inline-block; }
.tm-tags { display: flex; gap: 5px; margin-top: 7px; flex-wrap: wrap; }
.tm-tags .pill { height: 19px; font-size: 10.5px; padding: 0 6px; }
.tm-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; padding-top: 8px; }
.price { color: var(--red); font-weight: 700; font-size: 17px; letter-spacing: -.3px; line-height: 1; }
.price i { font-style: normal; font-size: 11.5px; margin-right: 1px; font-weight: 600; }
.price small { font-size: 10.5px; color: var(--ink-3); font-weight: 400; margin-left: 4px; }
.tm-count { font-size: 10.5px; color: var(--ink-4); display: flex; align-items: center; gap: 3px; }

.fav-btn {
  position: absolute; right: 10px; top: 10px; width: 26px; height: 26px;
  display: grid; place-items: center; color: var(--ink-4); border-radius: 50%;
}
.fav-btn.on { color: var(--red); }

.sold-mask {
  position: absolute; inset: 0; border-radius: 14px; background: rgba(255,255,255,.62);
  display: grid; place-items: center; pointer-events: none;
}
.sold-mask b {
  transform: rotate(-8deg); border: 2px solid #98A2B3; color: #667085;
  padding: 2px 10px; border-radius: 6px; font-size: 13px; letter-spacing: 3px; opacity: .9;
}

/* ---------- 顶部导航（内页） ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; height: 46px; padding: 0 8px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav.transparent { background: transparent; border: none; position: absolute; left: 0; right: 0; }
.nav.transparent .nav-title, .nav.transparent .nav-btn { color: #fff; }
.nav-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); }
.nav-btn:active { background: rgba(0,0,0,.06); }
.nav-title { flex: 1; text-align: center; font-size: 15.5px; font-weight: 600; }
.nav-right { width: 34px; }

/* ---------- 筛选栏 ---------- */
.filter-bar {
  position: sticky; top: 0; z-index: 15; background: #fff;
  padding: 9px 12px; display: flex; gap: 8px; align-items: center;
  border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; height: 28px; padding: 0 12px; border-radius: 14px;
  background: var(--bg); color: var(--ink-2); font-size: 12.5px;
  display: inline-flex; align-items: center; gap: 3px; white-space: nowrap;
}
.chip.on { background: var(--primary); color: #fff; font-weight: 500; }
.chip.on-soft { background: var(--primary-50); color: var(--primary); font-weight: 500; }

.sort-bar {
  display: flex; align-items: center; gap: 18px; padding: 10px 16px;
  background: #fff; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2);
}
.sort-bar span { display: flex; align-items: center; gap: 3px; }
.sort-bar span.on { color: var(--primary); font-weight: 600; }

/* ---------- 详情 ---------- */
.detail-cover {
  position: relative; height: 250px; display: grid; place-items: center;
  overflow: hidden;
}
.detail-cover .mark {
  color: #fff; font-size: 34px; font-weight: 700; letter-spacing: 4px;
  text-shadow: 0 4px 18px rgba(0,0,0,.22); text-align: center; padding: 0 30px;
}
.detail-cover .mark.long { font-size: 25px; letter-spacing: 2px; }
.detail-cover .reg {
  position: absolute; bottom: 74px; left: 0; right: 0; text-align: center;
  font-size: 11.5px; color: rgba(255,255,255,.72); letter-spacing: 1px;
}
.detail-cover .badges { position: absolute; bottom: 38px; left: 16px; display: flex; gap: 6px; }
.detail-cover .badges .pill { background: rgba(255,255,255,.92); color: var(--primary); font-size: 11px; }
.cover-plate {
  width: 132px; height: 132px; border-radius: 18px; background: #fff;
  padding: 10px; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
}
.cover-plate img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.detail-cover.has-img { padding-bottom: 34px; }
.detail-cover.has-img .reg { display: none; }

.d-card {
  margin: -18px 12px 0; position: relative; z-index: 2;
  background: #fff; border-radius: 16px; padding: 16px; box-shadow: var(--sh-md);
}
.d-price-row { display: flex; align-items: flex-end; justify-content: space-between; }
.d-price { color: var(--red); font-weight: 700; font-size: 26px; line-height: 1; letter-spacing: -.5px; }
.d-price i { font-style: normal; font-size: 14px; font-weight: 600; margin-right: 2px; }
.d-price-x { font-size: 11.5px; color: var(--ink-3); }
.d-name { font-size: 19px; font-weight: 700; margin-top: 12px; letter-spacing: .3px; }
.d-sub { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.d-assure { display: flex; gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.d-assure div { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--ink-2); }

.d-sec { margin: 12px; background: #fff; border-radius: 16px; padding: 16px; box-shadow: var(--sh); }
.d-sec h3 { font-size: 14.5px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.d-sec h3::before { content: ''; width: 3px; height: 13px; background: var(--primary); border-radius: 2px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; }
.info-grid > div { min-width: 0; }
.info-grid label { font-size: 11px; color: var(--ink-3); display: block; }
.info-grid p { margin: 2px 0 0; font-size: 13px; font-weight: 500; color: var(--ink); word-break: break-all; }
.scope-cnt { font-style: normal; font-weight: 400; font-size: 10.5px; color: var(--ink-3); margin-left: 6px; }
.scope-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.scope-list span {
  font-size: 11.5px; line-height: 1.35; color: var(--ink-2);
  background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 4px 8px;
}
.d-intro { font-size: 13px; color: var(--ink-2); line-height: 1.85; }
.flow { display: flex; gap: 4px; }
.flow > div { flex: 1; text-align: center; position: relative; }
.flow .dot {
  width: 24px; height: 24px; margin: 0 auto 6px; border-radius: 50%;
  background: var(--primary-50); color: var(--primary); font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
}
.flow .ln { position: absolute; top: 11px; left: 60%; right: -40%; height: 1px; background: var(--line-2); }
.flow p { font-size: 10.5px; color: var(--ink-2); margin: 0; }

.d-bar {
  position: fixed; bottom: 0; left: 0; right: 0; margin: 0 auto; max-width: 460px;
  display: flex; align-items: center; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); z-index: 30;
}
.d-bar .ico-btn { width: 46px; text-align: center; color: var(--ink-2); font-size: 10px; }
.d-bar .ico-btn svg { display: block; margin: 0 auto 2px; }
.d-bar .ico-btn.on { color: var(--red); }
.d-bar .buy {
  flex: 1; height: 44px; border-radius: 22px; font-size: 15px; font-weight: 600;
  background: linear-gradient(135deg, #2A4FD7, #4B72F0); color: #fff;
  box-shadow: 0 6px 18px rgba(42,79,215,.32);
}
.d-bar .buy:disabled { background: #C8CDD9; box-shadow: none; }

/* ---------- 表单页 ---------- */
.form-sec { margin: 12px; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--sh); }
.form-row {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.form-row:last-child { border-bottom: none; }
.form-row > label { flex: 0 0 64px; color: var(--ink-2); font-size: 13px; }
.form-row input, .form-row textarea {
  flex: 1; border: none; outline: none; background: transparent; font-size: 13.5px; min-width: 0;
}
.form-row textarea { resize: none; height: 22px; padding-top: 1px; }
.form-row .unit { color: var(--ink-3); font-size: 12px; }

.summary { display: flex; gap: 12px; padding: 16px; }
.summary .tm-thumb { width: 64px; height: 64px; flex-basis: 64px; }
.summary .tm-thumb span { font-size: 14px; }
.fee-row { display: flex; justify-content: space-between; padding: 9px 16px; font-size: 13px; color: var(--ink-2); }
.fee-row.total { border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 13px; color: var(--ink); font-weight: 600; }
.fee-row.total b { color: var(--red); font-size: 17px; }

/* ---------- 订单 ---------- */
.order-card { background: #fff; border-radius: 14px; padding: 14px; box-shadow: var(--sh); }
.order-top { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--ink-3); }
.order-top .st { font-weight: 600; font-size: 12.5px; }
.order-body { display: flex; gap: 11px; margin-top: 11px; padding-top: 11px; border-top: 1px dashed var(--line); }
.order-body .tm-thumb { width: 62px; height: 62px; flex-basis: 62px; }
.order-body .tm-thumb span { font-size: 13px; padding: 0 2px; }
.order-body .tm-thumb span.long { font-size: 11px; letter-spacing: 0; }
.order-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }

/* ---------- 我的 ---------- */
.me-head {
  padding: 22px 18px 60px;
  background: linear-gradient(150deg, #1B2E6E, #2A4FD7 60%, #4A6FE8);
  color: #fff; position: relative; overflow: hidden;
}
.me-head::after {
  content: ''; position: absolute; width: 200px; height: 200px; border-radius: 50%;
  right: -70px; top: -80px; background: rgba(255,255,255,.09);
}
.me-user { display: flex; align-items: center; gap: 13px; position: relative; z-index: 2; }
.avatar {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--primary); font-size: 19px; font-weight: 700;
  box-shadow: 0 6px 16px rgba(0,0,0,.15); flex: 0 0 54px;
}
.me-name { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.me-badge {
  font-size: 10px; height: 17px; padding: 0 6px; border-radius: 4px; display: inline-flex; align-items: center;
  background: linear-gradient(135deg, #F7DFA6, #D9A93F); color: #6B4A08; font-weight: 700; letter-spacing: .3px;
}
.me-phone { font-size: 12px; opacity: .78; margin-top: 3px; }
.me-stats {
  position: relative; z-index: 2; display: flex; margin: 20px 12px 0; margin-top: -40px;
  background: #fff; border-radius: 14px; padding: 15px 0; box-shadow: var(--sh-md);
}
.me-stats > a { flex: 1; text-align: center; position: relative; color: var(--ink); }
.me-stats > a + a::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: var(--line); }
.me-stats b { display: block; font-size: 17px; font-weight: 700; }
.me-stats span { font-size: 11px; color: var(--ink-3); }

.menu { margin: 12px; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--sh); }
.menu-item {
  display: flex; align-items: center; gap: 11px; padding: 14px 15px;
  border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink);
}
.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: #FAFBFC; }
.menu-item .mi { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); }
.menu-item .arrow { margin-left: auto; color: var(--ink-4); display: flex; }
.menu-item .val { margin-left: auto; font-size: 12.5px; color: var(--ink-3); }

/* ---------- 登录 ---------- */
.login-wrap { padding: 56px 26px 30px; min-height: 100vh; background: #fff; }
.login-logo {
  width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(140deg, #2A4FD7, #4E76F2); color: #fff; font-size: 27px; font-weight: 800;
  box-shadow: 0 12px 28px rgba(42,79,215,.3);
}
.login-title { font-size: 24px; font-weight: 700; margin-top: 22px; letter-spacing: .5px; }
.login-sub { font-size: 13px; color: var(--ink-3); margin-top: 8px; }
.login-form { margin-top: 24px; }
.lf-item {
  display: flex; align-items: center; gap: 10px; height: 52px;
  border-bottom: 1px solid var(--line-2); margin-bottom: 6px;
}
.lf-item.focus { border-color: var(--primary); }
.lf-item input { flex: 1; border: none; outline: none; font-size: 15.5px; background: transparent; }
.lf-item input::placeholder { color: var(--ink-4); font-size: 14px; }
.lf-code {
  font-size: 12.5px; color: var(--primary); font-weight: 600; white-space: nowrap;
  padding-left: 12px; border-left: 1px solid var(--line);
}
.lf-code.off { color: var(--ink-4); font-weight: 400; }
.agree { display: flex; align-items: flex-start; gap: 8px; margin-top: 18px; font-size: 11.5px; color: var(--ink-3); }
.agree em { font-style: normal; color: var(--primary); }
.cbox {
  width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--line-2);
  flex: 0 0 14px; margin-top: 2px; display: grid; place-items: center;
}
.cbox.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.login-btn {
  width: 100%; height: 48px; border-radius: 24px; margin-top: 24px;
  background: linear-gradient(135deg, #2A4FD7, #4B72F0); color: #fff;
  font-size: 16px; font-weight: 600; box-shadow: 0 8px 22px rgba(42,79,215,.28);
}
.login-tip { text-align: center; font-size: 11.5px; color: var(--ink-4); margin-top: 22px; line-height: 1.8; }

/* ---------- Tabbar ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  max-width: 460px; margin: 0 auto;
  display: flex; padding: 7px 0 calc(6px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.tabbar.hide { display: none; }
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--ink-4); font-size: 10px; position: relative; padding: 2px 0;
}
.tab.on { color: var(--primary); font-weight: 600; }
.tab .dot-badge {
  position: absolute; top: -1px; right: 50%; margin-right: -16px;
  min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: var(--red);
  color: #fff; font-size: 9.5px; display: grid; place-items: center; font-weight: 600;
}

/* ---------- 商标求购 ---------- */
.dm-box { background: #fff; border-radius: 16px; padding: 13px; box-shadow: var(--sh); }
.dm-hd {
  display: flex; align-items: center; gap: 11px; padding: 12px 13px; border-radius: 13px;
  background: linear-gradient(120deg, #EEF2FE, #F7F9FF);
}
.dm-hd-ico {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 11px; color: #fff;
  display: grid; place-items: center;
  background: linear-gradient(138deg, #2A4FD7, #4B72F0); box-shadow: 0 5px 12px rgba(42,79,215,.28);
}
.dm-hd-txt { flex: 1; min-width: 0; }
.dm-hd-txt b { display: block; font-size: 13.5px; font-weight: 600; }
.dm-hd-txt span { display: block; font-size: 11px; color: var(--ink-3); margin-top: 3px; line-height: 1.5; }
.dm-list { margin-top: 4px; }
.dm-row { display: flex; align-items: center; gap: 10px; padding: 11px 1px; border-bottom: 1px dashed var(--line); }
.dm-row:last-child { border-bottom: none; padding-bottom: 3px; }
.dm-cls {
  width: 44px; flex: 0 0 44px; height: 36px; border-radius: 10px;
  background: var(--primary-50); color: var(--primary);
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.dm-main { flex: 1; min-width: 0; }
.dm-kw {
  font-size: 12.5px; font-weight: 600; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.dm-meta { font-size: 10.5px; color: var(--ink-3); margin-top: 4px; }
.dm-cta {
  width: 100%; height: 44px; margin-top: 12px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, #2A4FD7, #4B72F0);
  box-shadow: 0 6px 16px rgba(42,79,215,.26);
}
.dm-foot { margin: 9px 0 0; text-align: center; font-size: 10.5px; color: var(--ink-4); }

/* 求购表单 */
.dm-form-wrap { position: relative; }
.dm-form-wrap::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 24px;
  background: linear-gradient(rgba(255,255,255,0), #fff 78%); pointer-events: none;
}
.dm-form { max-height: 56vh; overflow-y: auto; padding: 0 18px; -webkit-overflow-scrolling: touch; }
.dm-field { padding: 10px 0; border-bottom: 1px solid var(--line); }
.dm-field:last-of-type { border-bottom: none; }
.dm-field > label {
  display: flex; align-items: center; gap: 3px;
  font-size: 11.5px; color: var(--ink-3); margin-bottom: 6px;
}
.dm-field > label i { color: var(--red); font-style: normal; font-size: 12px; }
.dm-field input, .dm-field textarea, .dm-field select {
  width: 100%; border: none; outline: none; background: transparent;
  font-size: 13.5px; color: var(--ink); font-family: inherit;
}
.dm-field select {
  appearance: none; -webkit-appearance: none; padding-right: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239AA4B8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center;
}
.dm-field textarea { resize: none; height: 42px; line-height: 1.6; }
.dm-code { display: flex; align-items: center; gap: 10px; }
.dm-send {
  flex: 0 0 auto; padding-left: 11px; border-left: 1px solid var(--line-2);
  font-size: 12px; font-weight: 600; color: var(--primary);
}
.dm-send.off { color: var(--ink-4); font-weight: 400; }
.dm-tip { font-size: 10.5px; color: var(--ink-4); line-height: 1.6; padding: 10px 18px 0; }

/* ---------- 首页公告条 ---------- */
.notice-bar {
  display: flex; align-items: center; gap: 8px; margin: 12px 16px 0;
  background: linear-gradient(96deg, #FFFBEF, #FFFDF8);
  border: 1px solid #F6E2BC; border-radius: 11px;
  padding: 9px 12px; font-size: 11.5px; color: #8A5A12;
}
.notice-bar svg { flex: 0 0 14px; color: #C1763B; }
.notice-bar span {
  flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- 悬浮客服 ---------- */
.fab-service {
  position: fixed; left: 50%; bottom: calc(74px + env(safe-area-inset-bottom));
  margin-left: min(168px, calc(50vw - 62px));
  z-index: 35; width: 50px; padding: 7px 0 6px; border-radius: 15px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: rgba(255,255,255,.98); backdrop-filter: blur(10px);
  border: 1px solid rgba(16,24,40,.06);
  box-shadow: 0 8px 22px rgba(16,24,40,.16), 0 1px 3px rgba(16,24,40,.06);
  color: var(--primary); font-size: 9.5px; font-weight: 600; letter-spacing: .6px;
  opacity: 0; pointer-events: none; transform: translateY(8px) scale(.82);
  transition: opacity .22s ease, transform .28s cubic-bezier(.32,.72,0,1);
}
.fab-service.show { opacity: 1; pointer-events: auto; transform: none; }
.fab-service.over-bar { bottom: calc(80px + env(safe-area-inset-bottom)); }
.fab-service .fab-ico {
  position: relative; width: 34px; height: 34px; border-radius: 12px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(138deg, #2A4FD7, #4B72F0);
  box-shadow: 0 5px 13px rgba(42,79,215,.34);
}
.fab-service .fab-live {
  position: absolute; top: -2px; right: -2px; width: 9px; height: 9px; border-radius: 50%;
  background: #2FB344; box-shadow: 0 0 0 2px #fff;
}
.fab-service .fab-pulse {
  position: absolute; inset: -1px; border-radius: 13px;
  box-shadow: 0 0 0 1.5px rgba(42,79,215,.30);
  animation: fabPulse 2.8s ease-out infinite; pointer-events: none;
}
@keyframes fabPulse {
  0% { box-shadow: 0 0 0 1px rgba(42,79,215,.34); opacity: .9; }
  70% { box-shadow: 0 0 0 11px rgba(42,79,215,0); opacity: 0; }
  100% { box-shadow: 0 0 0 11px rgba(42,79,215,0); opacity: 0; }
}

/* ---------- 客服弹层 ---------- */
.svc-card {
  display: flex; align-items: center; gap: 11px; margin: 8px 16px 4px;
  padding: 13px 14px; border-radius: 14px; background: var(--bg);
}
.svc-av {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 13px; color: #fff;
  display: grid; place-items: center; font-size: 16px; font-weight: 700;
  background: linear-gradient(138deg, #2A4FD7, #4B72F0); box-shadow: 0 5px 12px rgba(42,79,215,.28);
}
.svc-info { flex: 1; min-width: 0; }
.svc-info b { display: block; font-size: 13.5px; font-weight: 600; }
.svc-info span { display: block; font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.svc-on {
  display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px;
  border-radius: 10px; background: #E8F6EC; color: #1F8A43; font-size: 10.5px; font-weight: 600;
}
.svc-on i { width: 5px; height: 5px; border-radius: 50%; background: #2FB344; }
.svc-acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; padding: 12px 16px 6px; }
.svc-act {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 13px 6px 12px; border-radius: 13px; background: var(--bg);
}
.svc-act b { font-size: 12.5px; font-weight: 600; }
.svc-act span { font-size: 10px; color: var(--ink-3); line-height: 1.4; }
.svc-ico {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(138deg, #2A4FD7, #4B72F0); box-shadow: 0 5px 12px rgba(42,79,215,.24);
}
.svc-ico.green { background: linear-gradient(138deg, #2E9E6B, #3FBF83); box-shadow: 0 5px 12px rgba(46,158,107,.24); }
.svc-ico.gold { background: linear-gradient(138deg, #C1902F, #DDB25A); box-shadow: 0 5px 12px rgba(193,144,47,.24); }
.svc-note {
  margin: 8px 16px 0; padding: 10px 12px; border-radius: 10px;
  background: #FFFBF2; border: 1px solid #F6E7C9; font-size: 11px; color: #8A5A12; line-height: 1.7;
}

/* ---------- 弹层 ---------- */
.sheet-mask {
  position: fixed; inset: 0; z-index: 60; background: rgba(12,17,29,.42);
  opacity: 0; pointer-events: none; transition: opacity .22s ease;
}
.sheet-mask.show { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; bottom: 0; left: 0; right: 0; margin: 0 auto; max-width: 460px; z-index: 61;
  background: #fff; border-radius: 20px 20px 0 0; padding: 6px 0 calc(14px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .28s cubic-bezier(.32,.72,0,1);
}
.sheet.show { transform: translateY(0); }
.sheet-head { text-align: center; padding: 14px 16px 8px; position: relative; }
.sheet-head h4 { font-size: 15px; font-weight: 600; }
.sheet-head .close { position: absolute; right: 12px; top: 10px; color: var(--ink-3); width: 30px; height: 30px; display: grid; place-items: center; }
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 14px 10px 20px; }
.share-item { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-2); }
.share-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; }

.toast {
  position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(.96);
  background: rgba(17,24,39,.9); color: #fff; font-size: 13px; padding: 10px 18px;
  border-radius: 10px; z-index: 200; opacity: 0; pointer-events: none;
  transition: all .2s ease; max-width: 74%; text-align: center; line-height: 1.5;
  backdrop-filter: blur(6px);
}
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* 海报 */
.poster-modal {
  position: fixed; inset: 0; z-index: 80; display: none; flex-direction: column;
  align-items: center; justify-content: center;
  background: rgba(12,17,29,.62); padding: 24px;
}
.poster-modal.show { display: flex; }
.poster {
  width: 100%; max-width: 300px; background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.poster-cover { height: 168px; display: grid; place-items: center; position: relative; }
.poster-cover b { color: #fff; font-size: 27px; letter-spacing: 3px; text-shadow: 0 3px 12px rgba(0,0,0,.25); }
.poster-body { padding: 14px 16px 16px; }
.poster-body h4 { font-size: 15px; }
.poster-body .p-price { color: var(--red); font-size: 20px; font-weight: 700; margin-top: 6px; }
.poster-qr {
  display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.qr {
  width: 56px; height: 56px; flex: 0 0 56px; border-radius: 6px; overflow: hidden;
  background: #fff; box-shadow: inset 0 0 0 1px #E4E7EC; padding: 3px;
}
.qr svg { width: 100%; height: 100%; display: block; shape-rendering: crispEdges; }

.poster-close-hint {
  margin-top: 18px; font-size: 11.5px; color: #fff; background: rgba(0,0,0,.42);
  padding: 6px 14px; border-radius: 20px; backdrop-filter: blur(4px);
}
.poster-qr p { margin: 0; font-size: 11px; color: var(--ink-3); line-height: 1.6; }

/* 价格筛选 sheet */
.price-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; padding: 8px 16px 18px; }
.price-opt { height: 40px; border-radius: 10px; background: var(--bg); font-size: 12.5px; color: var(--ink-2); }
.price-opt.on { background: var(--primary-50); color: var(--primary); font-weight: 600; box-shadow: inset 0 0 0 1px var(--primary); }

/* 类目选择 */
.cls-sheet { max-height: 76vh; display: flex; flex-direction: column; }
.cls-grid {
  overflow-y: auto; padding: 6px 12px 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.cls-cell {
  height: 40px; border-radius: 9px; background: var(--bg); font-size: 11.5px; color: var(--ink-2);
  display: flex; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 0 4px;
}
.cls-cell b { color: var(--ink-3); font-size: 10px; font-weight: 600; }
.cls-cell.on { background: var(--primary); color: #fff; }
.cls-cell.on b { color: rgba(255,255,255,.8); }

/* ---------- 头像 ---------- */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.av-emoji { font-size: 26px; background: #fff; }
.av-preview { width: 52px; height: 52px; flex: 0 0 52px; font-size: 18px; }

/* ---------- 我的：编辑入口 ---------- */
.me-edit {
  display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto;
  height: 24px; padding: 0 9px; border-radius: 12px;
  background: rgba(255,255,255,.18); color: #fff; font-size: 11px;
}

/* ---------- 个人资料 ---------- */
.pf-hero {
  background: linear-gradient(150deg, #2E56E0 0%, #1E3AA8 100%);
  padding: 22px 18px 26px; color: #fff; text-align: center;
}
.pf-av-wrap { position: relative; width: 78px; height: 78px; margin: 0 auto 12px; }
.pf-avatar {
  width: 78px; height: 78px; flex: 0 0 78px; font-size: 26px;
  box-shadow: 0 8px 22px rgba(0,0,0,.24), 0 0 0 3px rgba(255,255,255,.22);
}
.pf-av-cam {
  position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; color: var(--primary); display: grid; place-items: center;
  box-shadow: 0 3px 8px rgba(0,0,0,.18);
}
.pf-name { font-size: 18px; font-weight: 700; letter-spacing: .3px; }
.pf-sub { font-size: 12px; opacity: .78; margin-top: 4px; }
.pf-av-btn {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 14px;
  height: 30px; padding: 0 14px; border-radius: 15px; font-size: 12px;
  background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.24);
}

.pf-card {
  margin: 12px; background: #fff; border-radius: 14px; box-shadow: var(--sh); overflow: hidden;
}
.pf-card-head { padding: 14px 16px 6px; }
.pf-card-head b { font-size: 13.5px; }
.pf-card-head span { display: block; font-size: 11px; color: var(--ink-4); margin-top: 2px; }
.pf-field {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px;
  border-top: 1px solid var(--line);
}
.pf-field:first-of-type { border-top: none; }
.pf-field > span { width: 72px; flex: 0 0 72px; font-size: 12.5px; color: var(--ink-2); }
.pf-field input {
  flex: 1; min-width: 0; border: none; outline: none; font-size: 13.5px;
  font-family: var(--font); color: var(--ink); background: transparent; text-align: right;
}
.pf-field input::placeholder { color: var(--ink-4); }
.pf-field.ro { align-items: center; }
.pf-field.ro b { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.pf-field.ro em { font-size: 10.5px; color: var(--ink-4); font-style: normal; margin-left: 8px; }
.pf-ro { margin-left: auto; text-align: right; }
.pf-ro b { margin-left: 0; display: block; }
.pf-ro em { display: block; margin-left: 0; }
.pf-save { margin: 6px 16px 16px; width: calc(100% - 32px); }
.pf-row {
  display: flex; align-items: center; gap: 11px; padding: 13px 16px; border-top: 1px solid var(--line);
}
.pf-card .pf-row:first-of-type { border-top: none; }
.pf-row-ico {
  width: 32px; height: 32px; flex: 0 0 32px; border-radius: 10px;
  background: var(--primary-50); color: var(--primary); display: grid; place-items: center;
}
.pf-row-txt { flex: 1; min-width: 0; }
.pf-row-txt b { display: block; font-size: 13px; font-weight: 600; }
.pf-row-txt span { display: block; font-size: 11px; color: var(--ink-4); margin-top: 1px; }
.pf-row-act { font-size: 12px; color: var(--primary); font-weight: 600; }
.pf-tip {
  display: flex; gap: 7px; align-items: flex-start; padding: 4px 20px 22px;
  font-size: 11px; color: var(--ink-4); line-height: 1.65;
}
.pf-tip svg { flex: 0 0 13px; margin-top: 2px; }

/* ---------- 头像选择 ---------- */
.av-cur { display: flex; align-items: center; gap: 12px; padding: 4px 18px 12px; }
.av-cur b { display: block; font-size: 13.5px; }
.av-cur span { display: block; font-size: 11px; color: var(--ink-4); margin-top: 1px; }
.av-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 0 18px 4px;
}
.av-item {
  aspect-ratio: 1; border-radius: 12px; background: var(--bg);
  display: grid; place-items: center; font-size: 21px; line-height: 1;
  box-shadow: inset 0 0 0 1px var(--line);
}
.av-item.on { background: var(--primary-50); box-shadow: inset 0 0 0 1.5px var(--primary); }
.av-acts { display: flex; gap: 9px; padding: 14px 18px 4px; }
.av-up, .av-clear {
  flex: 1; height: 38px; border-radius: 10px; font-size: 12.5px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.av-up { background: var(--primary); color: #fff; font-weight: 600; }
.av-clear { background: var(--bg); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.av-tip { padding: 10px 18px 16px; font-size: 10.5px; color: var(--ink-4); line-height: 1.6; }

/* ---------- 密码弹层 ---------- */
.pwd-rule { padding: 10px 20px 0; font-size: 10.5px; color: var(--ink-4); line-height: 1.6; }
.pwd-switch { display: block; margin-top: 6px; font-size: 12px; color: var(--primary); }
.pwd-foot { display: flex; gap: 10px; padding: 14px 18px 16px; }

/* ---------- 登录方式切换 ---------- */
.lg-tabs {
  display: flex; gap: 24px; padding: 0; margin: 18px 0 0;
}
.lg-tab {
  font-size: 13px; color: var(--ink-4); padding-bottom: 6px; position: relative;
}
.lg-tab.on { color: var(--ink); font-weight: 700; }
.lg-tab.on::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 18px; height: 3px; border-radius: 2px; background: var(--primary);
}
.lf-eye { width: 30px; flex: 0 0 30px; display: grid; place-items: center; color: var(--ink-4); }

/* ---------- 页脚备案信息 ---------- */
.site-foot {
  margin-top: 18px; padding: 20px 20px 18px; text-align: center;
  border-top: 1px solid var(--line); background: rgba(255,255,255,.6);
}
.site-foot.compact { margin-top: 8px; padding: 14px 20px 12px; background: transparent; border-top: none; }
.sf-brand { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.sf-logo {
  width: 18px; height: 18px; border-radius: 5px; background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.sf-name { font-size: 12px; font-weight: 600; color: var(--ink-2); letter-spacing: .3px; }
.site-foot p { margin: 0; line-height: 1.75; font-size: 10.5px; color: var(--ink-4); }
.sf-co { color: var(--ink-3); }
.sf-rec a { color: inherit; text-decoration: none; }
.sf-rec i, .sf-meta i {
  display: inline-block; width: 1px; height: 8px; background: var(--line-2);
  margin: 0 7px; vertical-align: middle;
}
.sf-copy { margin-top: 2px !important; font-size: 10px !important; }
.site-foot.compact .sf-brand { margin-bottom: 6px; }


@media (max-width: 460px) {
  .app { box-shadow: none; }
}
