/* ============ 旧书云 移动端样式 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  background: #dfe3ea;
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; outline: none; }
a { text-decoration: none; color: inherit; }

/* ---------- 手机外壳 ---------- */
.phone {
  width: 392px; height: 860px;
  background: #101418; border-radius: 44px; padding: 12px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35), inset 0 0 0 2px #2a2f36;
  position: relative;
}
.phone::before { /* 听筒 */
  content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 26px; background: #101418; border-radius: 14px; z-index: 50;
}
.screen {
  width: 100%; height: 100%;
  background: #f5f6f8; border-radius: 34px;
  overflow: hidden; position: relative;
}

/* ---------- 页面框架 ---------- */
.page { height: 100%; display: flex; flex-direction: column; position: relative; }
.page-body { flex: 1; overflow-y: auto; padding: 12px 12px 84px; }
.page-body::-webkit-scrollbar { display: none; }

/* 顶部标题栏 */
.topbar {
  background: #fff; padding: 34px 14px 10px;
  position: relative; z-index: 5;
}
.brand { text-align: center; font-size: 19px; font-weight: 700; color: #1c1e22; }
.topbar-tools { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.cat-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #333; }
.cat-btn span { font-size: 11px; }
.search-box {
  flex: 1; display: flex; align-items: center; gap: 6px;
  background: #f2f3f5; border-radius: 18px; padding: 7px 12px;
}
.search-box input { flex: 1; border: none; background: transparent; font-size: 13px; color: #333; }
.search-box input::placeholder { color: #b3b8c0; }
.scan-ico { color: #9aa0a6; display: flex; }

/* 子页面标题栏 */
.subbar {
  background: #fff; text-align: center; padding: 34px 14px 12px;
  border-bottom: 1px solid #f0f1f3; position: relative; z-index: 5;
}
.subbar-title { font-size: 17px; font-weight: 600; color: #1c1e22; }

/* ---------- 卡片 ---------- */
.card {
  background: #fff; border-radius: 14px; padding: 14px;
  margin-bottom: 12px; box-shadow: 0 1px 4px rgba(30,40,60,.05);
}
.card-title { font-size: 15px; font-weight: 700; color: #1c1e22; margin-bottom: 12px; }
.list-foot { text-align: center; color: #b3b8c0; font-size: 12px; padding: 8px 0 16px; }

/* ---------- Banner ---------- */
.banner-wrap { position: relative; margin-bottom: 12px; }
.banner-track { display: flex; transition: transform .45s ease; }
.banner {
  min-width: 100%; height: 148px; border-radius: 14px;
  position: relative; overflow: hidden; display: flex; align-items: flex-end;
}
.banner1 { background: linear-gradient(180deg, #8ec9f7 0%, #c9e8fb 55%, #bfe8a8 78%, #8fd48a 100%); }
.banner2 { background: linear-gradient(180deg, #b9ecd9 0%, #8fd8b8 60%, #6cc79c 100%); }
.banner-text { padding: 14px 16px 16px; position: relative; z-index: 3; width: 62%; }
.banner-title { font-size: 19px; font-weight: 800; letter-spacing: 1px; }
.bt1 { color: #14708f; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.bt2 { color: #0b6e4f; }
.banner-sub { font-size: 12px; margin-top: 5px; color: #2c6e5e; opacity: .85; }
.bt-green { color: #0b6e4f !important; }

/* Banner 插画风装饰 */
.banner-art { position: absolute; inset: 0; }
.art-sun { position: absolute; top: 16px; right: 22px; width: 34px; height: 34px; border-radius: 50%; background: #ffd76e; box-shadow: 0 0 0 7px rgba(255,215,110,.35); }
.art-cloud { position: absolute; background: #fff; border-radius: 20px; opacity: .95; }
.art-cloud::before, .art-cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.c1 { top: 26px; left: 18px; width: 46px; height: 14px; }
.c1::before { width: 18px; height: 18px; top: -8px; left: 8px; }
.c1::after { width: 14px; height: 14px; top: -6px; left: 24px; }
.c2 { top: 46px; right: 70px; width: 34px; height: 11px; opacity: .8; }
.c2::before { width: 13px; height: 13px; top: -6px; left: 6px; }
.art-balloon { position: absolute; width: 22px; height: 27px; border-radius: 50% 50% 50% 50%/55% 55% 45% 45%; }
.b1 { top: 14px; right: 84px; background: #ff8fa3; }
.b1::after { content: ""; position: absolute; bottom: -22px; left: 9px; width: 1.5px; height: 22px; background: #7a6b5d; }
.b2 { top: 34px; right: 120px; background: #6fb7ff; }
.b2::after { content: ""; position: absolute; bottom: -16px; left: 9px; width: 1.5px; height: 16px; background: #7a6b5d; }
.art-girl { position: absolute; bottom: 26px; left: 44%; width: 44px; height: 52px; }
.art-girl::before { content: ""; position: absolute; top: 0; left: 10px; width: 24px; height: 24px; border-radius: 50%; background: #3d2c23; }
.art-girl::after { content: ""; position: absolute; top: 20px; left: 4px; width: 36px; height: 32px; border-radius: 14px 14px 8px 8px; background: #ff9db4; }
.art-bookpile { position: absolute; bottom: 18px; right: 18px; width: 74px; height: 44px; }
.art-bookpile::before, .art-bookpile::after { content: ""; position: absolute; border-radius: 3px; }
.art-bookpile::before { bottom: 0; left: 0; width: 64px; height: 13px; background: #6aa9e8; }
.art-bookpile::after { bottom: 13px; left: 6px; width: 56px; height: 12px; background: #f2b134; box-shadow: -24px 13px 0 #8fd48a, 14px 25px 0 #e56b9f; }

/* 山水插画风 */
.art-green { position: absolute; inset: 0; }
.art-mountain { position: absolute; bottom: 0; border-radius: 50% 50% 0 0; }
.m1 { left: -30px; bottom: 0; width: 180px; height: 78px; background: #4f9d77; opacity: .85; }
.m2 { right: -40px; bottom: 0; width: 200px; height: 96px; background: #3d8a63; }
.art-book2 { position: absolute; bottom: 30px; left: 26px; width: 52px; height: 38px; background: #f7f3e8; border-radius: 4px 10px 10px 4px; box-shadow: inset -10px 0 0 #e2b74a, 6px 8px 14px rgba(0,0,0,.12); transform: rotate(-6deg); }
.art-book2::before { content: ""; position: absolute; left: 8px; top: 8px; right: 14px; height: 3px; background: #c9c2ae; box-shadow: 0 7px 0 #c9c2ae, 0 14px 0 #c9c2ae; }
.art-leaf { position: absolute; width: 16px; height: 26px; border-radius: 50% 50% 50% 50%/60% 60% 40% 40%; background: #2f7d55; }
.l1 { bottom: 34px; right: 40px; transform: rotate(28deg); }
.l2 { bottom: 50px; right: 64px; transform: rotate(-18deg); background: #3c9168; }

.banner-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.banner-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.65); transition: all .3s; }
.banner-dots i.on { width: 16px; background: #fff; }

/* ---------- 书籍封面 ---------- */
.book-cover {
  width: 76px; height: 104px; border-radius: 6px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; font-weight: 700; letter-spacing: 2px;
  text-shadow: 0 1px 3px rgba(0,0,0,.25);
  box-shadow: 2px 3px 8px rgba(30,40,60,.18), inset 0 0 0 1px rgba(255,255,255,.25);
  position: relative; overflow: hidden;
}
.book-cover::after { content: ""; position: absolute; left: 5px; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.35); }

/* 畅销：横向卡片 */
.h-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.h-scroll::-webkit-scrollbar { display: none; }
.bs-card { min-width: 96px; width: 96px; }
.bs-card .book-cover { width: 96px; height: 132px; font-size: 16px; }
.bs-name { font-size: 12px; line-height: 1.35; margin-top: 8px; color: #1c1e22; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bs-author { font-size: 10px; color: #9aa0a6; margin: 3px 0 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-price { display: flex; align-items: baseline; gap: 4px; }
.free-ship { background: #ff4d4f; color: #fff; font-size: 10px; padding: 1px 5px; border-radius: 3px; flex-shrink: 0; }
.price-now { color: #ff4d4f; font-size: 14px; font-weight: 700; }
.price-old { color: #b3b8c0; font-size: 10px; text-decoration: line-through; }

/* 特价：纵向列表 */
.sp-row { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f3f4f6; }
.sp-row:last-child { border-bottom: none; padding-bottom: 2px; }
.sp-row .book-cover { width: 56px; height: 76px; font-size: 11px; }
.sp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.sp-title { font-size: 12.5px; color: #1c1e22; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.sp-meta { font-size: 10px; color: #9aa0a6; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-price { display: flex; align-items: baseline; gap: 5px; margin-top: 4px; }

/* ---------- 卖书页 ---------- */
.sell-hero {
  background: linear-gradient(135deg, #35c97c 0%, #22b573 55%, #159a5c 100%);
  padding: 40px 16px 22px; position: relative; overflow: hidden;
  min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-brand { color: rgba(255,255,255,.85); font-size: 12px; letter-spacing: 4px; }
.hero-title { color: #fff; font-size: 30px; font-weight: 800; margin: 6px 0 12px; letter-spacing: 2px; }
.hero-tags { display: flex; gap: 8px; }
.hero-tag { background: rgba(255,255,255,.22); color: #fff; font-size: 11px; padding: 3px 10px; border-radius: 20px; border: 1px solid rgba(255,255,255,.4); }
.hero-sun { position: absolute; top: 46px; right: 26px; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.16); }
.hero-book { position: absolute; top: 52px; right: 70px; width: 96px; height: 64px; }
.hero-book-cover {
  position: absolute; left: 0; bottom: 0; width: 88px; height: 60px; border-radius: 4px 8px 8px 4px;
  background: #eaf7ee; box-shadow: inset -12px 0 0 #bfe8cd, 4px 6px 14px rgba(0,0,0,.18);
}
.hero-book-cover::before { content: "旧书云"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #22b573; font-size: 13px; font-weight: 700; }
.hero-book-cover::after { content: "¥"; position: absolute; left: 12px; top: 10px; color: #ff9f43; font-size: 16px; font-weight: 800; }
.hero-coin { position: absolute; width: 15px; height: 15px; border-radius: 50%; background: #ffd76e; box-shadow: inset 0 -2px 0 #e8b84a, 0 1px 3px rgba(0,0,0,.2); }
.hero-coin::after { content: "¥"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 800; color: #b8860b; }
.c1 { left: -6px; bottom: 4px; }
.c2 { left: 6px; bottom: 20px; }
.c3 { left: -2px; bottom: 34px; }
.c4 { right: -4px; bottom: 8px; }
.c5 { right: 4px; bottom: 24px; }

.sell-tabs { display: flex; gap: 22px; padding-bottom: 12px; border-bottom: 1px solid #f3f4f6; }
.sell-tab { font-size: 14px; color: #666; padding-bottom: 10px; margin-bottom: -1px; }
.sell-tab.active { color: #22b573; font-weight: 700; border-bottom: 2px solid #22b573; }

.flow-steps { display: flex; align-items: flex-start; justify-content: space-between; padding: 16px 4px 6px; }
.flow-step { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 52px; }
.flow-ico { width: 40px; height: 40px; border-radius: 50%; background: #f1f3f5; display: flex; align-items: center; justify-content: center; }
.flow-name { font-size: 11px; color: #666; }
.flow-arrow { color: #d4d8de; font-size: 10px; margin-top: 14px; letter-spacing: -1px; }

.qa-entry { display: flex; align-items: center; justify-content: space-between; padding: 13px 2px 2px; font-size: 13px; color: #333; }
.qa-arrow { color: #c3c8cf; font-size: 18px; }

.rc-row { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f3f4f6; align-items: center; }
.rc-row:last-child { border-bottom: none; padding-bottom: 2px; }
.rc-row .book-cover { width: 52px; height: 70px; font-size: 10px; }
.rc-main { flex: 1; min-width: 0; }
.rc-title { font-size: 12.5px; color: #1c1e22; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.rc-meta { font-size: 10px; color: #9aa0a6; margin-top: 3px; }
.rc-price { color: #22b573; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.rc-price small { font-size: 10px; font-weight: 400; }

.sell-actions {
  position: absolute; left: 12px; right: 12px; bottom: 74px; z-index: 20;
  display: flex; gap: 12px; padding: 4px 0 8px;
}
.btn-outline {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  background: #e7f7ee; color: #1a9e5c; font-size: 15px; font-weight: 600;
  padding: 13px 0; border-radius: 24px;
}
.btn-primary {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  background: #159a5c; color: #fff; font-size: 15px; font-weight: 600;
  padding: 13px 0; border-radius: 24px; box-shadow: 0 4px 12px rgba(21,154,92,.35);
}

.float-service {
  position: absolute; right: 14px; bottom: 158px; z-index: 20;
  background: #22b573; border-radius: 26px; padding: 8px 12px 8px 9px;
  display: flex; align-items: center; gap: 6px;
  box-shadow: 0 6px 16px rgba(21,154,92,.4);
}
.float-service span { color: #fff; font-size: 11px; white-space: nowrap; }

.empty-tip { text-align: center; color: #9aa0a6; font-size: 12px; padding: 26px 0; }

/* ---------- 客服页 ---------- */
.contact-card { display: flex; align-items: center; gap: 12px; padding: 15px 14px; }
.contact-ico { width: 42px; height: 42px; border-radius: 50%; background: #e7f7ee; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-main { flex: 1; min-width: 0; }
.contact-name { font-size: 14px; font-weight: 600; color: #1c1e22; }
.contact-sub { font-size: 11px; color: #9aa0a6; margin-top: 3px; }
.contact-arrow { color: #c3c8cf; font-size: 18px; }
.contact-rows { padding: 4px 0; }
.contact-row { display: flex; align-items: baseline; padding: 11px 0; font-size: 13px; }
.contact-row span { color: #333; flex-shrink: 0; }
.contact-row b { color: #1c1e22; font-weight: 500; }
.contact-row + .contact-row { border-top: 1px solid #f3f4f6; }
.faq-item { padding: 11px 0; border-bottom: 1px solid #f3f4f6; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: 13px; color: #1c1e22; font-weight: 500; display: flex; gap: 6px; }
.faq-q::before { content: "Q"; color: #22b573; font-weight: 700; }
.faq-a { font-size: 12px; color: #7a808a; margin-top: 5px; line-height: 1.6; display: flex; gap: 6px; }
.faq-a::before { content: "A"; color: #22b573; font-weight: 700; flex-shrink: 0; }

/* ---------- 购物车 ---------- */
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: #fff; border-bottom: 1px solid #f0f1f3;
  position: relative; z-index: 5;
}
.cart-head span { font-size: 13px; color: #333; }
.cart-head b { color: #ff4d4f; font-weight: 700; margin: 0 2px; }
.manage-btn { border: 1px solid #e3e6ea; color: #333; font-size: 12px; border-radius: 14px; padding: 4px 14px; }

.cart-item { display: flex; gap: 10px; background: #fff; border-radius: 12px; padding: 12px; margin-bottom: 10px; align-items: center; box-shadow: 0 1px 4px rgba(30,40,60,.05); }
.ci-check { width: 18px; height: 18px; accent-color: #22b573; flex-shrink: 0; }
.cart-item .book-cover { width: 56px; height: 76px; font-size: 10px; }
.ci-main { flex: 1; min-width: 0; }
.ci-title { font-size: 12.5px; color: #1c1e22; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ci-meta { font-size: 10px; color: #9aa0a6; margin-top: 3px; }
.ci-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.ci-price { color: #ff4d4f; font-size: 14px; font-weight: 700; }
.ci-qty { display: flex; align-items: center; gap: 10px; }
.qty-btn { width: 24px; height: 24px; border-radius: 50%; border: 1px solid #dcdfe4; color: #555; font-size: 15px; display: flex; align-items: center; justify-content: center; background: #fff; }
.qty-num { font-size: 13px; color: #333; min-width: 20px; text-align: center; }
.ci-del { color: #b3b8c0; font-size: 12px; padding: 4px 6px; }

.cart-empty { text-align: center; padding: 60px 0 30px; }
.cart-empty svg { opacity: .5; }
.cart-empty p { color: #9aa0a6; font-size: 13px; margin-top: 12px; }
.cart-empty button { margin-top: 16px; background: #22b573; color: #fff; font-size: 13px; padding: 9px 26px; border-radius: 20px; }

.cart-footer {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 10;
  background: #fff; border-top: 1px solid #f0f1f3;
  display: flex; align-items: center; gap: 10px; padding: 10px 14px 26px;
}
.check-all { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #333; }
.check-all input { width: 16px; height: 16px; accent-color: #22b573; }
.cart-total { flex: 1; text-align: right; font-size: 12px; color: #333; }
.cart-total em { color: #ff4d4f; font-size: 17px; font-weight: 800; font-style: normal; }
.settle-btn { background: #ff4d4f; color: #fff; font-size: 14px; font-weight: 600; padding: 10px 26px; border-radius: 22px; box-shadow: 0 4px 10px rgba(255,77,79,.3); }

/* ---------- 我的 ---------- */
.mine-profile {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, #35c97c, #159a5c);
  border-radius: 14px; padding: 18px 16px; margin-bottom: 12px; color: #fff;
}
.mine-avatar { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; border: 2px solid rgba(255,255,255,.5); }
.mine-info { flex: 1; }
.mine-name { font-size: 16px; font-weight: 700; }
.mine-sub { font-size: 11px; opacity: .85; margin-top: 4px; }
.mine-badge { font-size: 10px; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.45); padding: 3px 9px; border-radius: 12px; }
.mine-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.mine-cell { background: #fff; border-radius: 12px; padding: 14px 6px; text-align: center; box-shadow: 0 1px 4px rgba(30,40,60,.05); }
.mine-cell b { display: block; font-size: 17px; color: #22b573; font-weight: 800; }
.mine-cell span { font-size: 11px; color: #7a808a; }
.order-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f3f4f6; }
.order-row:last-child { border-bottom: none; }
.order-row .book-cover { width: 40px; height: 54px; font-size: 9px; }
.order-info { flex: 1; min-width: 0; }
.order-title { font-size: 12px; color: #1c1e22; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.order-no { font-size: 10px; color: #9aa0a6; margin-top: 3px; }
.order-amount { color: #ff4d4f; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.order-status { font-size: 10px; color: #22b573; background: #e7f7ee; padding: 2px 7px; border-radius: 10px; flex-shrink: 0; }
.rc-order-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f3f4f6; }
.rc-order-row:last-child { border-bottom: none; }
.rc-order-info { flex: 1; min-width: 0; }
.rc-order-title { font-size: 12px; color: #1c1e22; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.rc-order-no { font-size: 10px; color: #9aa0a6; margin-top: 3px; }
.rc-order-amount { color: #22b573; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.rc-step-bar { display: flex; gap: 4px; margin-top: 6px; }
.rc-step-bar i { flex: 1; height: 4px; border-radius: 2px; background: #eef0f3; }
.rc-step-bar i.on { background: #22b573; }

/* ---------- 分类弹层 ---------- */
.cat-mask {
  position: absolute; inset: 0; background: rgba(20,24,30,.45); z-index: 40;
  display: flex; align-items: flex-start; justify-content: center; padding-top: 90px;
}
.cat-grid { background: #fff; border-radius: 14px; padding: 16px; width: 86%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.cat-cell { text-align: center; padding: 10px 4px; font-size: 12px; color: #333; border-radius: 8px; }
.cat-cell:active { background: #f2f3f5; }

/* ---------- 搜索结果 ---------- */
.search-result { position: absolute; inset: 0; background: #f5f6f8; z-index: 30; display: flex; flex-direction: column; }
.sr-head { display: flex; align-items: center; justify-content: space-between; padding: 36px 14px 12px; background: #fff; }
.sr-head span { font-size: 13px; color: #333; }
.sr-close { color: #22b573; font-size: 14px; }
#srList { flex: 1; overflow-y: auto; padding: 12px; }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 62px; z-index: 30;
  background: #fff; border-top: 1px solid #f0f1f3;
  display: flex; padding-bottom: 6px;
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #9aa0a6; position: relative; }
.tab span { font-size: 10px; }
.tab.active { color: #22b573; }
.tab-badge {
  position: absolute; top: 4px; left: calc(50% + 8px); min-width: 16px; height: 16px;
  background: #ff4d4f; color: #fff; font-size: 10px; font-style: normal;
  border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: absolute; inset: 0; background: rgba(20,24,30,.5); z-index: 60;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 320px; padding: 18px 16px 16px; max-height: 86%; overflow-y: auto; }
.modal h3 { font-size: 16px; text-align: center; color: #1c1e22; margin-bottom: 14px; }
.modal .m-close { position: absolute; }
.modal-row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.modal-row label { font-size: 13px; color: #333; width: 62px; flex-shrink: 0; }
.modal-row input, .modal-row select {
  flex: 1; border: 1px solid #e3e6ea; border-radius: 8px; padding: 9px 10px; font-size: 13px; color: #333; background: #fafbfc;
}
.modal-price { background: #e7f7ee; border-radius: 10px; padding: 12px; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.modal-price .mp-book { font-size: 12.5px; color: #1c1e22; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.modal-price .mp-amount { color: #22b573; font-size: 19px; font-weight: 800; }
.modal-btn { width: 100%; background: #22b573; color: #fff; font-size: 14px; font-weight: 600; padding: 11px 0; border-radius: 22px; margin-top: 2px; }
.modal-btn.ghost { background: #f2f3f5; color: #666; }
.modal-tip { font-size: 11px; color: #9aa0a6; text-align: center; margin-top: 10px; line-height: 1.6; }
.isbn-sugg { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.isbn-sugg span { font-size: 11px; color: #22b573; background: #e7f7ee; padding: 3px 8px; border-radius: 10px; }
