/* ================= 校园淘 · 设计系统 =================
   设计语言：学院派 · 深青 + 纸白 + 细线
   - 主色：#0f766e（青绿，取自校徽常见色系）
   - 强调：#f59e0b（琥珀，仅用于价格）
   - 底色：#f8f7f4（米白纸感，不是纯白灰）
   - 结构：直角 + 细边框，不用大圆角和重阴影
   - 排版：标题用衬线感重的字重，正文轻盈
   ==================================================== */

:root {
  /* 色板 */
  --ink:        #16211f;   /* 主文字，近黑带绿 */
  --ink-2:      #3d4f4b;   /* 次级文字 */
  --ink-3:      #7a8b87;   /* 辅助文字 */
  --ink-4:      #a8b5b1;   /* 占位 */
  --paper:      #f8f7f4;   /* 页面底 */
  --card:       #ffffff;
  --line:       #e3e6e2;   /* 细线 */
  --line-2:     #d0d6d2;
  --brand:      #0f766e;   /* 青绿主色 */
  --brand-d:    #0a5a54;
  --brand-l:    #e6f2f0;   /* 主色淡底 */
  --amber:      #b45309;   /* 价格色（深琥珀，不刺眼） */
  --amber-l:    #fef3e2;
  --red:        #b91c1c;
  --green:      #15803d;

  /* 尺寸 */
  --r:          4px;       /* 小圆角，克制 */
  --r-lg:       8px;
  --pad:        18px;
  --maxw:       1180px;
  --topbar-h:   60px;

  --shadow-1:   0 1px 2px rgba(22, 33, 31, .04);
  --shadow-2:   0 2px 8px rgba(22, 33, 31, .07);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.65 -apple-system, BlinkMacSystemFont, "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 16px; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.2px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ================= 顶栏 ================= */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 247, 244, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 22px;
  padding: 0 var(--pad); height: var(--topbar-h);
}
.brand { display: flex; align-items: center; gap: 9px; cursor: pointer; flex: none; }
.brand-mark {
  width: 30px; height: 30px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 800;
  border-radius: 3px;
  letter-spacing: -.5px;
}
.brand-name { font-size: 17px; font-weight: 800; letter-spacing: -.4px; color: var(--ink); }
.brand-sub {
  font-size: 10.5px; color: var(--ink-3);
  letter-spacing: 1.6px; text-transform: uppercase;
  margin-left: 2px; padding-left: 9px;
  border-left: 1px solid var(--line-2);
}

.searchbox {
  flex: 1; max-width: 460px;
  display: flex; align-items: center;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  height: 36px;
  padding-left: 12px;
  transition: border-color .15s;
}
.searchbox:focus-within { border-color: var(--brand); }
.s-ico { color: var(--ink-4); flex: none; }
.searchbox input {
  flex: 1; min-width: 0; border: 0; outline: none;
  background: transparent; padding: 0 10px;
  font-size: 14px; color: var(--ink);
}
.searchbox input::placeholder { color: var(--ink-4); }
.searchbox button {
  flex: none; height: 100%; padding: 0 16px;
  background: var(--brand); color: #fff;
  font-size: 13.5px; font-weight: 600;
  border-radius: 0 2px 2px 0;
  transition: background .15s;
}
.searchbox button:hover { background: var(--brand-d); }

.topnav { display: flex; gap: 0; flex: none; margin-left: auto; }
.topnav a {
  position: relative;
  padding: 8px 14px; font-size: 14px; font-weight: 500;
  color: var(--ink-2);
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.topnav a:hover { color: var(--brand); }
.topnav a.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 700; }
.dot {
  position: absolute; top: 4px; right: 6px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
}

/* 分类条 —— 做成索引式，不是胶囊 */
.cats {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; gap: 0; overflow-x: auto;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex: none;
  padding: 11px 15px;
  font-size: 13.5px; font-weight: 500;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.cat:hover { color: var(--ink); }
.cat.on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 700; }

/* ================= 主体 ================= */
main { min-height: calc(100vh - 200px); }
.sect { padding: 26px 0 40px; }

.sect-h {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px; margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.sect-t {
  font-size: 19px; font-weight: 800;
  letter-spacing: -.3px;
  display: flex; align-items: baseline; gap: 9px;
}
.sect-t small {
  font-size: 12.5px; font-weight: 500;
  color: var(--ink-3); letter-spacing: 0;
}
.sect-s { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }

/* ================= 商品网格 =================
   改成规整网格，不是瀑布流
   ========================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.item {
  background: var(--card);
  cursor: pointer;
  transition: background .15s;
  position: relative;
  display: flex; flex-direction: column;
}
.item:hover { background: #fbfbf9; }
.item:hover .item-img img { transform: scale(1.02); }

.item-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f0f0ed;
}
.item-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s cubic-bezier(.2,.7,.3,1);
}
.item-img .sold-out {
  position: absolute; inset: 0;
  background: rgba(248, 247, 244, .82);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
  color: var(--ink-3); letter-spacing: 3px;
}

.item-body {
  padding: 11px 12px 13px;
  display: flex; flex-direction: column; gap: 6px;
  flex: 1;
}
.item-title {
  font-size: 13.5px; line-height: 1.5;
  font-weight: 500; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word;
  min-height: 2.9em;
}
.item-price {
  display: flex; align-items: baseline; gap: 6px;
  margin-top: auto;
}
.item-price b {
  color: var(--amber); font-size: 17px; font-weight: 800;
  letter-spacing: -.4px;
  font-variant-numeric: tabular-nums;
}
.item-price b i { font-size: 11.5px; font-style: normal; margin-right: 1px; font-weight: 600; }
.item-price s { color: var(--ink-4); font-size: 11.5px; }

.item-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  font-size: 11.5px; color: var(--ink-3);
  padding-top: 7px;
  border-top: 1px solid #f2f2ef;
}
.item-seller {
  display: flex; align-items: center; gap: 5px;
  min-width: 0; overflow: hidden;
}
.item-seller .av {
  width: 16px; height: 16px; border-radius: 2px;
  background: var(--brand-l); color: var(--brand);
  display: grid; place-items: center;
  font-size: 9px; font-weight: 800; flex: none;
}
.item-seller .nm {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.item-want { flex: none; font-variant-numeric: tabular-nums; }

/* ================= 详情页 ================= */
.detail { background: var(--card); }
@media (min-width: 860px) {
  .detail {
    max-width: var(--maxw); margin: 24px auto;
    border: 1px solid var(--line);
  }
}
.d-top { display: grid; grid-template-columns: 1fr; }
@media (min-width: 860px) {
  .d-top { grid-template-columns: 1.05fr 1fr; }
}

.d-gallery { background: #f0f0ed; position: relative; }
.d-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.d-info { padding: 26px 28px 30px; display: flex; flex-direction: column; }
@media (max-width: 859px) { .d-info { padding: 18px 18px 24px; } }

.d-eyebrow {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink-4); font-weight: 600;
  margin-bottom: 10px;
}
.d-title {
  font-size: 22px; line-height: 1.4; font-weight: 800;
  letter-spacing: -.4px;
  margin-bottom: 16px;
  word-break: break-word;
}
.d-price-row {
  display: flex; align-items: baseline; gap: 12px;
  padding: 14px 0 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.d-price-row b {
  color: var(--amber); font-size: 32px; font-weight: 800;
  letter-spacing: -1.2px; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.d-price-row b i { font-size: 17px; font-style: normal; margin-right: 2px; font-weight: 600; }
.d-price-row s { color: var(--ink-4); font-size: 13px; }
.d-price-row .views {
  margin-left: auto; font-size: 12px; color: var(--ink-3);
}

.d-attrs {
  display: grid; grid-template-columns: auto 1fr;
  gap: 8px 16px;
  font-size: 13.5px;
  margin-bottom: 18px;
}
.d-attrs dt { color: var(--ink-3); }
.d-attrs dd { margin: 0; color: var(--ink); font-weight: 500; }

.d-desc {
  font-size: 14px; line-height: 1.85;
  color: var(--ink-2);
  white-space: pre-wrap; word-break: break-word;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.d-seller {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  margin-top: auto;
}
.d-seller .av {
  width: 40px; height: 40px; border-radius: 3px; flex: none;
  background: var(--brand-l); color: var(--brand);
  display: grid; place-items: center;
  font-size: 16px; font-weight: 800;
}
.d-seller .info { flex: 1; min-width: 0; }
.d-seller .nm { font-size: 14.5px; font-weight: 700; }
.d-seller .bio {
  font-size: 12.5px; color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.d-seller .arrow { color: var(--ink-4); flex: none; }

/* 底部操作条 */
.d-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 11px var(--pad) calc(11px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 11px;
  max-width: var(--maxw); margin: 0 auto;
}
.d-bar .act {
  flex: none; min-width: 56px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 10.5px; color: var(--ink-3);
  padding: 2px 6px;
}
.d-bar .act svg { color: var(--ink-2); }
.d-bar .act.on { color: var(--red); }
.d-bar .act.on svg { color: var(--red); fill: var(--red); }
.d-bar .primary {
  flex: 1; height: 44px;
  background: var(--brand); color: #fff;
  font-size: 15px; font-weight: 700;
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: background .15s;
  letter-spacing: .3px;
}
.d-bar .primary:hover { background: var(--brand-d); }
.d-bar .primary:disabled { background: #e5e7e4; color: var(--ink-4); cursor: not-allowed; }

/* TA 的其他闲置 */
.d-more { padding: 22px 28px 28px; border-top: 1px solid var(--line); }
@media (max-width: 859px) { .d-more { padding: 18px; } }
.d-more h4 {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink-4); font-weight: 700;
  margin-bottom: 14px;
}
.d-more-row { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; }
.d-more-row::-webkit-scrollbar { display: none; }
.d-more-item { flex: none; width: 104px; cursor: pointer; }
.d-more-item img {
  width: 104px; height: 78px; object-fit: cover;
  background: #f0f0ed;
  border: 1px solid var(--line);
}
.d-more-item .p {
  font-size: 13px; font-weight: 800; color: var(--amber);
  margin-top: 6px; font-variant-numeric: tabular-nums;
}
.d-more-item .t {
  font-size: 11.5px; color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ================= 按钮 ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 20px;
  background: var(--brand); color: #fff;
  font-size: 14px; font-weight: 600;
  border-radius: 3px;
  transition: background .15s, opacity .15s;
  letter-spacing: .2px;
}
.btn:hover { background: var(--brand-d); }
.btn:active { opacity: .88; }
.btn.outline {
  background: transparent; color: var(--ink-2);
  border: 1px solid var(--line-2);
}
.btn.outline:hover { background: #fff; border-color: var(--ink-4); }
.btn.plain {
  background: transparent; color: var(--ink-2);
  padding: 0 12px;
}
.btn.plain:hover { color: var(--brand); background: transparent; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.sm { height: 32px; padding: 0 14px; font-size: 12.5px; }
.btn.lg { height: 46px; font-size: 15px; }

/* ================= 空状态 ================= */
.empty {
  text-align: center;
  padding: 64px 24px;
  color: var(--ink-3);
  font-size: 14px; line-height: 1.9;
  background: var(--card);
  border: 1px solid var(--line);
}
.empty .ico { font-size: 38px; margin-bottom: 14px; opacity: .35; }
.empty .hint { font-size: 12.5px; color: var(--ink-4); margin-top: 8px; }

/* ================= 表单 ================= */
.form-box {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 30px;
}
@media (min-width: 760px) { .form-box { max-width: 620px; margin: 24px auto; } }
@media (max-width: 759px) { .form-box { padding: 20px 16px; border: 0; } }

.f-row { margin-bottom: 20px; }
.f-row label {
  display: block;
  font-size: 12px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.f-row label .req { color: var(--red); margin-left: 2px; }
.f-row input[type=text],
.f-row input[type=tel],
.f-row input[type=number],
.f-row input[type=password],
.f-row textarea,
.f-row select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  outline: none;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.f-row input:focus,
.f-row textarea:focus,
.f-row select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-l);
}
.f-row textarea { min-height: 110px; resize: vertical; line-height: 1.75; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 560px) { .f-grid { grid-template-columns: 1fr; gap: 0; } }
.f-hint { font-size: 12px; color: var(--ink-4); margin-top: 7px; }

/* 成色选择 —— 做成下划线式 */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-btn {
  padding: 8px 15px;
  border: 1px solid var(--line-2);
  background: #fff;
  font-size: 13px; color: var(--ink-2);
  border-radius: 3px;
  transition: all .15s;
}
.chip-btn:hover { border-color: var(--ink-4); }
.chip-btn.on {
  border-color: var(--brand);
  background: var(--brand-l);
  color: var(--brand);
  font-weight: 700;
}

/* ================= 失物招领 ================= */
.lf-bar {
  display: flex; align-items: center; gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.lf-tab {
  padding: 11px 18px;
  font-size: 14px; font-weight: 500;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.lf-tab:hover { color: var(--ink); }
.lf-tab.on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 700; }

.lf-search {
  margin-left: auto;
  display: flex; align-items: center; gap: 0;
}
.lf-search input {
  width: 200px;
  padding: 7px 12px;
  border: 1px solid var(--line-2);
  border-right: 0;
  border-radius: 3px 0 0 3px;
  outline: none;
  font-size: 13.5px;
  background: #fff;
}
.lf-search input:focus { border-color: var(--brand); }
.lf-search button {
  height: 34px; padding: 0 14px;
  background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 600;
  border-radius: 0 3px 3px 0;
}
@media (max-width: 640px) {
  .lf-bar { flex-wrap: wrap; }
  .lf-search { margin-left: 0; width: 100%; margin-top: 10px; }
  .lf-search input { flex: 1; width: auto; }
}

.lf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.lf-card {
  background: var(--card);
  padding: 18px 20px;
  transition: background .15s;
}
.lf-card:hover { background: #fbfbf9; }

/* 带图片的卡片：左图右文 */
.lf-card.has-img {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.lf-img {
  flex: none;
  width: 88px; height: 88px;
  border-radius: 4px;
  overflow: hidden;
  background: #f0f0ed;
  border: 1px solid var(--line);
}
.lf-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.lf-main { flex: 1; min-width: 0; }
.lf-top {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 9px;
}
.lf-kind {
  flex: none;
  font-size: 10.5px; font-weight: 800;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 2px;
}
.lf-kind.lost { background: #fdeaea; color: var(--red); }
.lf-kind.found { background: #e7f6ec; color: var(--green); }
.lf-t {
  font-size: 15px; font-weight: 700; line-height: 1.45;
  flex: 1; word-break: break-word;
  letter-spacing: -.2px;
}
.lf-d {
  font-size: 13.5px; color: var(--ink-2); line-height: 1.7;
  margin-bottom: 11px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.lf-m {
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 12px; color: var(--ink-3);
  padding-top: 10px;
  border-top: 1px solid #f2f2ef;
}
.lf-m span { display: inline-flex; align-items: center; gap: 4px; }

/* ================= 消息 ================= */
.chat-list { border: 1px solid var(--line); background: var(--card); }
.chat-row {
  display: flex; align-items: center; gap: 13px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background .13s;
}
.chat-row:last-child { border-bottom: 0; }
.chat-row:hover { background: #fbfbf9; }
.chat-row .av {
  width: 40px; height: 40px; border-radius: 3px; flex: none;
  background: var(--brand-l); color: var(--brand);
  display: grid; place-items: center;
  font-size: 15px; font-weight: 800;
}
.chat-row .mid { flex: 1; min-width: 0; }
.chat-row .nm { font-size: 14.5px; font-weight: 700; margin-bottom: 2px; }
.chat-row .last {
  font-size: 13px; color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chat-row .meta { flex: none; font-size: 11.5px; color: var(--ink-4); }

/* 聊天窗 */
.chat-win {
  background: var(--card);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  height: calc(100vh - 230px);
  min-height: 400px;
}
.chat-head {
  flex: none;
  display: flex; align-items: center; gap: 11px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}
.chat-head .back {
  font-size: 20px; color: var(--ink-2); flex: none; width: 26px;
  line-height: 1;
}
.chat-head .nm { font-size: 15px; font-weight: 700; flex: 1; }

/* 实时接收状态点 */
.live-dot {
  flex: none;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .6);
  animation: livePulse 2s ease-out infinite;
  transition: background .2s, box-shadow .2s;
}
.live-dot.off {
  background: var(--ink-4);
  box-shadow: none;
  animation: none;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55) }
  70%  { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0) }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0) }
}

/* 新消息提示 */
.new-tip {
  position: absolute;
  left: 50%; bottom: 78px;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 118, 110, .35);
  z-index: 5;
  animation: tipIn .22s cubic-bezier(.2,.8,.3,1);
  white-space: nowrap;
}
@keyframes tipIn {
  from { opacity: 0; transform: translateX(-50%) translateY(8px) }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) }
}
.chat-win { position: relative; }

/* 未读徽章 */
.unread-badge {
  display: inline-grid;
  place-items: center;
  min-width: 17px; height: 17px;
  padding: 0 5px;
  margin-left: 7px;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  font-style: normal;
  vertical-align: middle;
  line-height: 1;
}

/* 顶栏未读数（数字形态） */
.dot.num {
  width: auto;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 8px;
  font-size: 9.5px;
  font-weight: 800;
  color: #fff;
  display: grid;
  place-items: center;
  line-height: 1;
  top: 1px;
  right: 1px;
}
.chat-msgs {
  flex: 1; overflow-y: auto;
  padding: 20px 18px;
  display: flex; flex-direction: column; gap: 11px;
  background: var(--paper);
}
.bub {
  max-width: 72%;
  padding: 9px 14px;
  border-radius: 3px;
  font-size: 14px; line-height: 1.65;
  word-break: break-word; white-space: pre-wrap;
}
.bub.them {
  background: #fff; border: 1px solid var(--line);
  align-self: flex-start;
}
.bub.me {
  background: var(--brand); color: #fff;
  align-self: flex-end;
}
/* 发送中（未确认）状态 */
.bub.pending {
  opacity: .62;
  position: relative;
}
.bub.pending::after {
  content: '';
  display: inline-block;
  width: 9px; height: 9px;
  margin-left: 7px;
  border: 1.5px solid rgba(255, 255, 255, .55);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  vertical-align: -1px;
}
@keyframes spin { to { transform: rotate(360deg) } }
.bub-time {
  align-self: center;
  font-size: 11px; color: var(--ink-4);
  letter-spacing: .5px;
}
.chat-input {
  flex: none;
  display: flex; gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.chat-input input {
  flex: 1; min-width: 0;
  padding: 10px 13px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  outline: none;
  background: var(--paper);
  font-size: 15px;
}
.chat-input input:focus { border-color: var(--brand); background: #fff; }
.chat-input button {
  flex: none; width: 44px; height: 42px;
  background: var(--brand); color: #fff;
  border-radius: 3px;
  display: grid; place-items: center;
}

/* ================= 我的 ================= */
.me-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 24px;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 18px;
}
.me-av {
  width: 56px; height: 56px; border-radius: 3px; flex: none;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-size: 22px; font-weight: 800;
}
.me-info { flex: 1; min-width: 0; }
.me-nm { font-size: 19px; font-weight: 800; letter-spacing: -.3px; margin-bottom: 3px; }
.me-bio { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.me-stats { display: flex; gap: 26px; margin-top: 12px; }
.me-stat b {
  display: block; font-size: 17px; font-weight: 800;
  line-height: 1.2; font-variant-numeric: tabular-nums;
}
.me-stat span { font-size: 11.5px; color: var(--ink-3); }

.me-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.me-tab {
  padding: 11px 18px;
  font-size: 14px; font-weight: 500;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.me-tab:hover { color: var(--ink); }
.me-tab.on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 700; }

/* 我的商品行 */
.mine-list { border: 1px solid var(--line); background: var(--card); }
.mine-row {
  display: flex; gap: 14px; align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.mine-row:last-child { border-bottom: 0; }
.mine-row img {
  width: 68px; height: 52px; object-fit: cover;
  background: #f0f0ed; flex: none;
  border: 1px solid var(--line);
}
.mine-row .mid { flex: 1; min-width: 0; }
.mine-row .t {
  font-size: 14px; font-weight: 600; line-height: 1.4;
  margin-bottom: 5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mine-row .p {
  font-size: 15px; font-weight: 800; color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.mine-row .st {
  font-size: 11.5px; color: var(--ink-3); margin-left: 8px;
  font-weight: 500;
}
.mine-row .acts { display: flex; gap: 7px; flex: none; }

/* ================= Toast / Sheet ================= */
.toast {
  position: fixed; left: 50%; top: 76px;
  transform: translate(-50%, -12px);
  background: var(--ink); color: #fff;
  padding: 10px 20px;
  border-radius: 3px;
  font-size: 13.5px;
  z-index: 300;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
  max-width: calc(100vw - 40px);
  text-align: center;
  letter-spacing: .2px;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.sheet-wrap {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(22, 33, 31, .5);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fade .16s;
}
.sheet-wrap[hidden] { display: none !important; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }

.sheet {
  background: var(--card);
  width: 100%; max-width: 420px;
  padding: 28px;
  border: 1px solid var(--line);
  max-height: 88vh; overflow-y: auto;
  animation: rise .2s cubic-bezier(.2,.7,.3,1);
}
@keyframes rise {
  from { transform: translateY(14px); opacity: .7 }
  to { transform: none; opacity: 1 }
}
.sheet h3 {
  font-size: 19px; margin-bottom: 22px;
  letter-spacing: -.3px;
}
.sheet-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.sheet-tabs button {
  flex: 1;
  padding: 10px 0;
  font-size: 14px; font-weight: 500;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.sheet-tabs button.on {
  color: var(--ink); border-bottom-color: var(--ink); font-weight: 700;
}

/* ================= AI 助手按钮（胶囊 + 常驻文字）================= */
.ai-fab {
  position: fixed; right: 24px; bottom: 26px; z-index: 60;
  display: flex; align-items: center; gap: 11px;
  height: 58px;
  padding: 0 20px 0 12px;
  border-radius: 29px;
  background: linear-gradient(135deg, #14b8a6 0%, #0f766e 55%, #0d5c56 100%);
  color: #fff;
  box-shadow:
    0 6px 20px rgba(15, 118, 110, .42),
    0 2px 6px rgba(15, 118, 110, .28),
    inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: transform .22s cubic-bezier(.34,1.56,.64,1),
              box-shadow .22s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  overflow: visible;
}
.ai-fab:hover {
  transform: translateY(-3px);
  box-shadow:
    0 12px 30px rgba(15, 118, 110, .5),
    0 3px 8px rgba(15, 118, 110, .3),
    inset 0 1px 0 rgba(255, 255, 255, .26);
}
.ai-fab:active { transform: scale(.97); }

/* 外圈脉冲 */
.ai-fab::before {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 33px;
  border: 1.5px solid rgba(20, 184, 166, .5);
  animation: fabRing 2.8s cubic-bezier(.4,0,.6,1) infinite;
  pointer-events: none;
}
@keyframes fabRing {
  0%   { transform: scale(.96); opacity: .85 }
  70%  { transform: scale(1.06); opacity: 0 }
  100% { transform: scale(1.06); opacity: 0 }
}

/* 图标区 */
.ai-fab-ico {
  position: relative;
  width: 38px; height: 38px; flex: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}
.ai-fab-ico svg { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .15)); }

/* AI 角标 */
.ai-fab-badge {
  position: absolute;
  top: -3px; right: -4px;
  min-width: 19px; height: 19px;
  padding: 0 4px;
  border-radius: 10px;
  background: #fbbf24;
  color: #422006;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .3px;
  display: grid; place-items: center;
  border: 2px solid #0f766e;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}

/* 文字区（常驻可见） */
.ai-fab-label {
  display: flex; flex-direction: column;
  line-height: 1.25;
  text-align: left;
  white-space: nowrap;
}
.ai-fab-label b {
  font-size: 13.5px; font-weight: 700;
  letter-spacing: .2px;
}
.ai-fab-label i {
  font-size: 10.5px;
  font-style: normal;
  opacity: .78;
  margin-top: 1px;
  letter-spacing: .2px;
}

/* 面板打开时隐藏 */
.ai-fab.hide { display: none; }

/* 滚动时收缩成圆形，减少遮挡 */
.ai-fab.compact {
  padding: 0 9px;
  gap: 0;
  background: linear-gradient(135deg, #14b8a6 0%, #0f766e 55%, #0d5c56 100%);
}
.ai-fab.compact .ai-fab-label {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  margin-left: -9px;
}
.ai-fab-label {
  transition: max-width .28s cubic-bezier(.4,0,.2,1),
              opacity .2s ease,
              margin-left .28s cubic-bezier(.4,0,.2,1);
  max-width: 130px;
  overflow: hidden;
}
.ai-fab.compact::before { border-radius: 50%; }

/* 面板关闭按钮 */
.ai-x {
  width: 32px; height: 32px; min-width: 32px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 20px; line-height: 1;
  display: grid; place-items: center;
  border-radius: 4px;
  transition: background .16s, transform .16s;
  -webkit-tap-highlight-color: transparent;
}
.ai-x:hover {
  background: rgba(255, 255, 255, .24);
  transform: rotate(90deg);
}
.ai-x:active { transform: rotate(90deg) scale(.9); }

.ai-panel {
  position: fixed; z-index: 70;
  right: 24px; bottom: 92px;
  width: min(382px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 130px));
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  display: none; flex-direction: column;
  overflow: hidden;
  box-shadow:
    0 20px 48px rgba(22, 33, 31, .2),
    0 4px 12px rgba(22, 33, 31, .1);
}
.ai-panel.open {
  display: flex;
  animation: aiIn .26s cubic-bezier(.22,1,.36,1);
}
@keyframes aiIn {
  from { opacity: 0; transform: translateY(12px) scale(.97) }
  to   { opacity: 1; transform: none }
}

.ai-head {
  flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 16px;
  background: linear-gradient(135deg, #14b8a6 0%, #0f766e 60%, #0d5c56 100%);
  color: #fff;
  position: relative;
}
.ai-head::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(255,255,255,.18), transparent 60%);
  pointer-events: none;
}
.ai-h-l { display: flex; align-items: center; gap: 11px; position: relative; z-index: 1; }
.ai-h-l b {
  display: block; font-size: 14.5px; font-weight: 700;
  line-height: 1.3; letter-spacing: .2px;
}
.ai-h-l i {
  display: block; font-size: 11px;
  opacity: .7; font-style: normal; line-height: 1.35;
  margin-top: 1px;
}
.ai-live {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: #6ee7b7;
  box-shadow: 0 0 0 0 rgba(110, 231, 183, .7);
  animation: livePulse 2.2s ease-out infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(110, 231, 183, .7) }
  70%  { box-shadow: 0 0 0 7px rgba(110, 231, 183, 0) }
  100% { box-shadow: 0 0 0 0 rgba(110, 231, 183, 0) }
}
.ai-x {
  width: 30px; height: 30px; min-width: 30px;
  background: rgba(255, 255, 255, .12); color: #fff;
  font-size: 19px; line-height: 1;
  display: grid; place-items: center;
  border-radius: 2px;
  transition: background .15s;
}
.ai-x:hover { background: rgba(255, 255, 255, .24); }

.ai-body {
  flex: 1; overflow-y: auto;
  padding: 16px;
  display: flex; flex-direction: column; gap: 11px;
  background: var(--paper);
  -webkit-overflow-scrolling: touch;
}
.ai-msg { display: flex; max-width: 92%; min-width: 0; }
.ai-msg.bot { align-self: flex-start; }
.ai-msg.user { align-self: flex-end; }
.ai-bubble {
  padding: 10px 13px;
  border-radius: 3px;
  font-size: 14px; line-height: 1.7;
  white-space: pre-wrap; word-break: break-word;
  min-width: 0; max-width: 100%; overflow-wrap: anywhere;
}
.ai-msg.bot .ai-bubble {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}
.ai-msg.user .ai-bubble {
  background: var(--brand); color: #fff;
}

.ai-quick { display: flex; flex-direction: column; gap: 8px; }
.ai-quick button {
  text-align: left;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--ink-2);
  transition: all .16s ease;
  position: relative;
  padding-left: 30px;
}
.ai-quick button::before {
  content: '';
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--line-2);
  transition: background .16s;
}
.ai-quick button:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-l);
  transform: translateX(2px);
}
.ai-quick button:hover::before { background: var(--brand); }

.ai-typing {
  display: flex; gap: 5px;
  padding: 13px 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  width: fit-content;
}
.ai-typing span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink-4);
  animation: bounce 1.3s infinite;
}
.ai-typing span:nth-child(2) { animation-delay: .18s }
.ai-typing span:nth-child(3) { animation-delay: .36s }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .4 }
  30% { transform: translateY(-4px); opacity: 1 }
}

.ai-err {
  background: #fdeaea;
  color: var(--red);
  font-size: 12.5px;
  padding: 9px 12px;
  border-radius: 3px;
  border: 1px solid #f8d0d0;
}
.ai-cards { display: flex; flex-direction: column; gap: 7px; margin-top: 7px; }
.ai-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 11px 13px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  border-radius: 3px;
}
.ai-card:hover { border-color: var(--brand); background: var(--brand-l); }
.ai-card-h {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 5px;
}
.ai-card-h b {
  font-size: 13px; font-weight: 700;
  flex: 1; min-width: 0; word-break: break-word;
}
.ai-card-m {
  font-size: 11.5px; color: var(--ink-3);
  display: flex; flex-wrap: wrap; gap: 10px;
}
.tag {
  font-size: 10px; font-weight: 800;
  padding: 2px 6px;
  letter-spacing: 1px; text-transform: uppercase;
  flex: none; border-radius: 2px;
}
.tag.lost { background: #fdeaea; color: var(--red); }
.tag.found { background: #e7f6ec; color: var(--green); }

.ai-form {
  flex: none;
  display: flex; gap: 9px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.ai-input {
  flex: 1; min-width: 0;
  padding: 11px 15px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  outline: none;
  background: var(--paper);
  font-size: 16px;
  transition: all .16s ease;
}
.ai-input:focus {
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .1);
}
.ai-send {
  flex: none; width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #14b8a6, #0f766e);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(15, 118, 110, .3);
  transition: transform .16s, box-shadow .16s, opacity .16s;
}
.ai-send:hover:not(:disabled) {
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(15, 118, 110, .4);
}
.ai-send:active:not(:disabled) { transform: scale(.94); }
.ai-send:disabled { opacity: .38; box-shadow: none; }

/* ================= 图片上传 ================= */
.uploader {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}
.up-add {
  aspect-ratio: 1 / 1;
  border: 1.5px dashed var(--line-2);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink-3);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  font-size: 12px;
  transition: border-color .16s, background .16s, color .16s;
  cursor: pointer;
}
.up-add:hover {
  border-color: var(--brand);
  background: var(--brand-l);
  color: var(--brand);
}
.up-add:active { transform: scale(.97); }

.up-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: #f0f0ed;
  border: 1px solid var(--line);
}
.up-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.up-cover {
  position: absolute;
  left: 0; top: 0;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-bottom-right-radius: 4px;
  letter-spacing: .3px;
}
.up-del {
  position: absolute;
  right: 3px; top: 3px;
  width: 21px; height: 21px;
  border-radius: 50%;
  background: rgba(22, 33, 31, .62);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  display: grid; place-items: center;
  transition: background .15s, transform .15s;
}
.up-del:hover { background: var(--red); transform: scale(1.1); }

/* 上传中遮罩 */
.up-item.uploading .up-mask {
  position: absolute; inset: 0;
  background: rgba(22, 33, 31, .45);
  display: grid; place-items: center;
}
.up-item.uploading .up-mask span {
  width: 22px; height: 22px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ================= 详情页图集 ================= */
.gal-main {
  position: relative;
  background: #f0f0ed;
}
.gal-main img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: opacity .18s ease;
}
.gal-empty {
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  color: var(--ink-4);
  font-size: 13px;
  background: #f0f0ed;
}

.gal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(22, 33, 31, .18);
  transition: background .15s, transform .15s;
  opacity: 0;
}
.gal-main:hover .gal-nav { opacity: 1; }
.gal-nav:hover { background: #fff; }
.gal-nav.prev { left: 12px; }
.gal-nav.next { right: 12px; }
.gal-nav:active { transform: translateY(-50%) scale(.9); }

.gal-idx {
  position: absolute;
  right: 12px; bottom: 12px;
  background: rgba(22, 33, 31, .6);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: .4px;
  font-variant-numeric: tabular-nums;
}

.gal-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 0 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.gal-thumbs::-webkit-scrollbar { display: none; }
.gal-thumb {
  flex: none;
  width: 58px; height: 58px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: #f0f0ed;
  transition: border-color .15s, transform .15s;
}
.gal-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.gal-thumb.on {
  border-color: var(--brand);
}
.gal-thumb:hover { transform: translateY(-2px); }

/* 移动端：导航按钮常显（无 hover） */
@media (max-width: 859px) {
  .gal-nav { opacity: .92; width: 34px; height: 34px; font-size: 20px; }
  .gal-thumb { width: 52px; height: 52px; }
  .uploader { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
}

/* ================= 页脚 ================= */
.foot {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  margin-top: 40px;
}
.foot-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--pad);
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  font-size: 12px; color: var(--ink-4);
  letter-spacing: .3px;
}

/* ================= 响应式 ================= */
@media (max-width: 899px) {
  .bar { gap: 14px; }
  .brand-sub { display: none; }
  .searchbox { max-width: none; }
  .topnav a { padding: 8px 10px; font-size: 13.5px; }
}

@media (max-width: 719px) {
  :root { --pad: 14px; --topbar-h: 54px; }
  /* 给悬浮按钮留出空间，避免遮住最后一行商品 */
  body { padding-bottom: 84px; }
  .bar { flex-wrap: wrap; height: auto; padding-top: 9px; padding-bottom: 9px; gap: 9px; }
  .brand { order: 1; }
  .topnav { order: 2; }
  .searchbox { order: 3; flex-basis: 100%; height: 34px; }
  .topnav a { padding: 6px 8px; font-size: 13px; }

  .sect { padding: 18px 0 30px; }
  .sect-h { margin-bottom: 14px; padding-bottom: 10px; }
  .sect-t { font-size: 17px; }

  .grid { grid-template-columns: repeat(2, 1fr); gap: 1px; }
  .item-img { aspect-ratio: 1/1; }
  .item-body { padding: 9px 10px 11px; }
  .item-title { font-size: 13px; min-height: 2.9em; }
  .item-price b { font-size: 15.5px; }

  .d-title { font-size: 19px; }
  .d-price-row b { font-size: 27px; }
  .d-bar .primary { height: 42px; font-size: 14.5px; }

  .lf-grid { grid-template-columns: 1fr; }
  .lf-card { padding: 15px 16px; }

  .me-card { padding: 18px; gap: 14px; }
  .me-av { width: 48px; height: 48px; font-size: 19px; }
  .me-nm { font-size: 17px; }

  .ai-fab {
    right: 14px; bottom: 18px;
    height: 50px;
    padding: 0 16px 0 10px;
    gap: 9px;
    border-radius: 25px;
  }
  .ai-fab-ico { width: 32px; height: 32px; }
  .ai-fab-ico svg { width: 17px; height: 17px; }
  .ai-fab-badge { min-width: 17px; height: 17px; font-size: 8.5px; }
  .ai-fab-label b { font-size: 12.5px; }
  .ai-fab-label i { font-size: 9.5px; }
  .ai-panel {
    right: 10px; left: 10px; bottom: 80px;
    width: auto;
    height: min(74vh, calc(100vh - 110px));
    border-radius: 10px;
  }
  .ai-body { padding: 13px; }
  .ai-msg { max-width: 94%; }
  .ai-quick button { padding: 10px 13px 10px 28px; font-size: 12px; }

  .sheet { padding: 22px 18px; }
  .form-box { padding: 18px 16px; }
  .foot-inner { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 359px) {
  .grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 15px; }
}

/* ================= 动效降级 ================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ================= 骨架屏 ================= */
.skel {
  background: linear-gradient(90deg, #f0f0ed 25%, #f8f7f4 37%, #f0f0ed 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer {
  0% { background-position: 100% 50% }
  100% { background-position: 0 50% }
}

/* ================= 徽章 ================= */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 2px;
}
.badge.verify { background: var(--brand-l); color: var(--brand); }
.badge.hot { background: var(--amber-l); color: var(--amber); }
