/* ============================================================
   鲜市超市 · 样式表
   风格：简洁现代 / 白底 / 清新绿主色 / 大圆角 / 柔和阴影
   ============================================================ */

:root {
  --green:        #12A65C;
  --green-dark:   #0B8049;
  --green-light:  #E8F8EF;
  --orange:       #FF6B35;
  --ink:          #14181F;
  --ink-2:        #454C58;
  --ink-3:        #7A8494;
  --ink-4:        #A8B0BC;
  --line:         #ECEEF2;
  --bg:           #F7F8FA;
  --white:        #FFFFFF;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --sh-sm: 0 1px 2px rgba(20,24,31,.05), 0 2px 8px rgba(20,24,31,.04);
  --sh-md: 0 2px 8px rgba(20,24,31,.06), 0 8px 24px rgba(20,24,31,.07);
  --sh-lg: 0 8px 24px rgba(20,24,31,.08), 0 24px 64px rgba(20,24,31,.12);

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

/* ============================ 顶部导航 ============================ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 0 24px; height: 68px;
  display: flex; align-items: center; gap: 28px;
}

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.logo-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--green), #1BC46E);
  color: #fff; font-size: 19px; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 3px 10px rgba(18,166,92,.32);
}

.logo-text {
  font-size: 17px; font-weight: 700; letter-spacing: -.2px;
  display: flex; flex-direction: column; line-height: 1.15;
}
.logo-text em {
  font-style: normal; font-size: 9px; font-weight: 600;
  color: var(--ink-4); letter-spacing: 1.4px;
}

/* 搜索框 */
.search-box {
  flex: 1; max-width: 520px;
  display: flex; align-items: center;
  background: var(--bg);
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 0 6px 0 18px;
  height: 42px;
  transition: all .22s var(--ease);
}
.search-box:focus-within {
  background: #fff;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(18,166,92,.1);
}
.search-box input {
  flex: 1; border: none; background: none; outline: none; font-size: 14px;
}
.search-box input::placeholder { color: var(--ink-4); }
.search-box button {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-3); transition: all .2s;
}
.search-box button:hover { background: var(--green-light); color: var(--green); }

/* 右侧操作 */
.header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.h-action {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  transition: all .2s var(--ease); position: relative;
}
.h-action:hover { background: var(--bg); color: var(--ink); }
.h-action.cart-btn { background: var(--green-light); color: var(--green-dark); }
.h-action.cart-btn:hover { background: #DCF3E7; }

.badge {
  position: absolute; top: 2px; right: 4px;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--orange); color: #fff;
  font-size: 10.5px; font-weight: 700; font-style: normal;
  border-radius: 999px; display: grid; place-items: center;
  border: 2px solid #fff;
  animation: pop .3s var(--ease);
}
@keyframes pop { 0%{transform:scale(.4)} 60%{transform:scale(1.18)} 100%{transform:scale(1)} }

/* ============================ 主容器 ============================ */
#app { max-width: 1240px; margin: 0 auto; padding: 24px 24px 80px; }

.view { display: none; animation: fadeUp .34s var(--ease); }
.view.active { display: block; }
@keyframes fadeUp { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:none} }

/* ============================ Hero ============================ */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(118deg, #0E8F51 0%, #16B367 48%, #3FCE86 100%);
  border-radius: var(--r-xl);
  padding: 52px 56px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; color: #fff;
  margin-bottom: 40px;
  box-shadow: 0 12px 40px rgba(16,160,90,.22);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.18), transparent 42%),
    radial-gradient(circle at 12% 88%, rgba(255,255,255,.1), transparent 38%);
}
.hero-text { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600;
  letter-spacing: .4px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.26);
  padding: 5px 13px; border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 38px; line-height: 1.28; font-weight: 800;
  letter-spacing: -.8px; margin-bottom: 12px;
}
.hero h1 b { color: #FFE082; }
.hero p { font-size: 14.5px; opacity: .88; margin-bottom: 26px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px 26px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  transition: all .22s var(--ease); white-space: nowrap;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 4px 14px rgba(18,166,92,.3); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(18,166,92,.36); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: #fff; color: var(--green-dark); box-shadow: var(--sh-sm); }
.btn-ghost:hover { box-shadow: var(--sh-md); transform: translateY(-1px); }
.hero .btn-primary { background: #fff; color: var(--green-dark); }
.hero .btn-primary:hover { background: #F4FBF7; }
.hero .btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.4); box-shadow: none; }
.hero .btn-ghost:hover { background: rgba(255,255,255,.24); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* Hero 浮动水果 */
.hero-visual {
  position: relative; width: 260px; height: 200px; flex-shrink: 0; z-index: 1;
}
.hv-item {
  position: absolute; font-size: 62px;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.18));
  animation: float 4.2s ease-in-out infinite;
  animation-delay: var(--d);
}
.hv-item:nth-child(1) { top: 0;    left: 10px;  }
.hv-item:nth-child(2) { top: 46px; left: 150px; font-size: 54px; }
.hv-item:nth-child(3) { top: 120px;left: 40px;  font-size: 50px; }
.hv-item:nth-child(4) { top: 96px; left: 168px; font-size: 44px; }
@keyframes float {
  0%,100% { transform: translateY(0) rotate(-3deg); }
  50%     { transform: translateY(-16px) rotate(4deg); }
}

/* ============================ 区块标题 ============================ */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 20px; flex-wrap: wrap;
}
.section-head h2 { font-size: 22px; font-weight: 750; letter-spacing: -.4px; }
.section-head p { font-size: 13px; color: var(--ink-3); margin-top: 2px; }

/* ============================ 分类 ============================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px; margin-bottom: 44px;
}
.cat-card {
  background: #fff; border-radius: var(--r-lg);
  padding: 22px 18px; text-align: center;
  border: 1.5px solid var(--line);
  transition: all .24s var(--ease); cursor: pointer;
}
.cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: var(--sh-md);
}
.cat-card.active { border-color: var(--green); background: var(--green-light); }
.cat-ico { font-size: 32px; margin-bottom: 8px; line-height: 1; }
.cat-name { font-size: 14.5px; font-weight: 650; margin-bottom: 2px; }
.cat-desc { font-size: 11.5px; color: var(--ink-4); }

/* ============================ 排序 & 筛选 ============================ */
.sort-tabs {
  display: flex; gap: 4px;
  background: #fff; padding: 4px;
  border-radius: 999px; border: 1px solid var(--line);
}
.sort-tab {
  padding: 7px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 550; color: var(--ink-3);
  transition: all .2s var(--ease);
}
.sort-tab:hover { color: var(--ink); }
.sort-tab.active { background: var(--ink); color: #fff; }

.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-2);
  transition: all .2s var(--ease);
}
.chip.active { background: var(--green-light); border-color: var(--green); color: var(--green-dark); font-weight: 600; }
.chip:hover { border-color: var(--ink-4); }

/* ============================ 商品卡片 ============================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 18px;
}

.p-card {
  background: #fff; border-radius: var(--r-lg);
  overflow: hidden; border: 1px solid var(--line);
  transition: all .26s var(--ease);
  display: flex; flex-direction: column;
}
.p-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: transparent; }

.p-thumb {
  position: relative; aspect-ratio: 1 / .82;
  display: grid; place-items: center;
  font-size: 62px; overflow: hidden;
  transition: transform .4s var(--ease);
}
.p-card:hover .p-thumb { transform: scale(1.04); }
.p-thumb span { transition: transform .4s var(--ease); }
.p-card:hover .p-thumb span { transform: scale(1.08) rotate(-4deg); }

.p-tag {
  position: absolute; top: 10px; left: 10px;
  background: rgba(20,24,31,.82); color: #fff;
  backdrop-filter: blur(6px);
  font-size: 10.5px; font-weight: 600;
  padding: 4px 9px; border-radius: 999px;
  letter-spacing: .2px;
}
.p-off {
  position: absolute; top: 10px; right: 10px;
  background: var(--orange); color: #fff;
  font-size: 10.5px; font-weight: 700;
  padding: 4px 8px; border-radius: 8px;
}

.p-body { padding: 14px 15px 15px; display: flex; flex-direction: column; flex: 1; }
.p-name {
  font-size: 14px; font-weight: 650; line-height: 1.42;
  color: var(--ink); margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 40px;
}
.p-spec { font-size: 11.5px; color: var(--ink-4); margin-bottom: 8px; }

.p-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 11.5px; color: var(--ink-4); }
.p-rating { display: flex; align-items: center; gap: 3px; color: #F5A623; font-weight: 600; }
.p-sales { color: var(--ink-4); }

.p-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; }
.p-price { display: flex; align-items: baseline; gap: 6px; }
.p-price b { font-size: 20px; font-weight: 800; color: var(--orange); letter-spacing: -.5px; }
.p-price b i { font-size: 12.5px; font-weight: 700; font-style: normal; margin-right: 1px; }
.p-price del { font-size: 11.5px; color: var(--ink-4); }

.p-add {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: grid; place-items: center;
  transition: all .2s var(--ease); flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(18,166,92,.3);
}
.p-add:hover { background: var(--green-dark); transform: scale(1.1) rotate(90deg); }
.p-add:active { transform: scale(.94); }

/* ============================ 空状态 ============================ */
.empty { text-align: center; padding: 72px 20px; }
.empty-icon { font-size: 48px; margin-bottom: 14px; opacity: .5; }
.empty p { color: var(--ink-3); margin-bottom: 20px; font-size: 14px; }

/* ============================ 页面标题 ============================ */
.page-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; gap: 16px;
}
.page-head h2 { font-size: 24px; font-weight: 750; letter-spacing: -.5px; }

.link-btn { font-size: 13px; color: var(--ink-3); transition: color .2s; font-weight: 500; }
.link-btn:hover { color: var(--green); }

/* ============================ 购物车 ============================ */
.cart-layout { display: grid; grid-template-columns: 1fr 330px; gap: 22px; align-items: start; }

.cart-list { background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; }

.cart-item {
  display: grid;
  grid-template-columns: 24px 92px 1fr auto;
  gap: 16px; align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.cart-item:last-child { border-bottom: none; }
.cart-item:hover { background: #FBFCFD; }

.ck {
  width: 20px; height: 20px; border-radius: 6px;
  border: 2px solid var(--ink-4); background: #fff;
  display: grid; place-items: center; cursor: pointer;
  transition: all .18s var(--ease); flex-shrink: 0;
}
.ck:hover { border-color: var(--green); }
.ck.on { background: var(--green); border-color: var(--green); }
.ck.on::after {
  content: ''; width: 5px; height: 9px;
  border: 2px solid #fff; border-top: 0; border-left: 0;
  transform: rotate(43deg) translate(-1px,-1px);
}

.ci-thumb {
  width: 92px; height: 92px; border-radius: var(--r-md);
  display: grid; place-items: center; font-size: 40px;
}

.ci-info { min-width: 0; }
.ci-name { font-size: 14.5px; font-weight: 650; margin-bottom: 3px; }
.ci-spec { font-size: 12px; color: var(--ink-4); margin-bottom: 10px; }
.ci-price { font-size: 16px; font-weight: 800; color: var(--orange); }
.ci-price i { font-size: 12px; font-style: normal; }

.ci-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.stepper {
  display: flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden; background: #fff;
}
.stepper button {
  width: 30px; height: 30px; display: grid; place-items: center;
  font-size: 16px; color: var(--ink-2); transition: all .18s;
}
.stepper button:hover { background: var(--bg); color: var(--green); }
.stepper button:disabled { color: var(--ink-4); cursor: not-allowed; background: none; }
.stepper span { min-width: 34px; text-align: center; font-size: 13.5px; font-weight: 650; }

.ci-del { font-size: 12px; color: var(--ink-4); transition: color .2s; }
.ci-del:hover { color: #E5484D; }

/* 结算侧栏 */
.cart-side { position: sticky; top: 92px; }
.panel {
  background: #fff; border-radius: var(--r-lg);
  border: 1px solid var(--line); padding: 20px;
  margin-bottom: 18px;
}
.panel:last-child { margin-bottom: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel-head h3 { font-size: 15.5px; font-weight: 700; }

.summary h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.sum-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13.5px; color: var(--ink-2); margin-bottom: 11px;
}
.sum-row b { font-weight: 650; color: var(--ink); }
.sum-row.discount b { color: var(--orange); }
.sum-total {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-top: 15px; margin: 6px 0 18px;
  border-top: 1px dashed var(--line);
  font-size: 14px; font-weight: 600;
}
.sum-total b { font-size: 25px; font-weight: 800; color: var(--orange); letter-spacing: -.6px; }
.sum-tip { font-size: 11.5px; color: var(--ink-4); text-align: center; margin-top: 12px; line-height: 1.5; }

/* ============================ 结算页 ============================ */
.checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; }
.checkout-side { position: sticky; top: 92px; }

.address-box { font-size: 13.5px; line-height: 1.7; }
.addr-main { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.addr-name { font-weight: 700; font-size: 15px; }
.addr-phone { color: var(--ink-2); }
.addr-detail { color: var(--ink-3); font-size: 13px; }
.addr-empty { color: var(--ink-4); padding: 8px 0; }

.ck-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.ck-item:last-child { border-bottom: none; }
.ck-item .ci-thumb { width: 58px; height: 58px; font-size: 26px; border-radius: 10px; }
.ck-item-info { flex: 1; min-width: 0; }
.ck-item-info strong { display: block; font-size: 13.5px; font-weight: 600; }
.ck-item-info span { font-size: 11.5px; color: var(--ink-4); }
.ck-item-qty { font-size: 12.5px; color: var(--ink-3); }
.ck-item-price { font-size: 14px; font-weight: 700; min-width: 76px; text-align: right; }

.delivery-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.delivery-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--r-md);
  border: 1.5px solid var(--line); cursor: pointer;
  transition: all .2s var(--ease);
}
.delivery-opt:hover { border-color: var(--ink-4); }
.delivery-opt.active { border-color: var(--green); background: var(--green-light); }
.delivery-opt input { accent-color: var(--green); width: 16px; height: 16px; }
.delivery-opt div { flex: 1; }
.delivery-opt strong { display: block; font-size: 13.5px; font-weight: 650; }
.delivery-opt span { font-size: 12px; color: var(--ink-3); }
.delivery-opt em { font-style: normal; font-size: 13px; font-weight: 650; color: var(--green-dark); }

.remark {
  width: 100%; min-height: 76px; resize: vertical;
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  padding: 12px 14px; font-size: 13.5px; outline: none;
  transition: all .2s;
}
.remark:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(18,166,92,.08); }

/* ============================ 订单列表 ============================ */
.order-card {
  background: #fff; border-radius: var(--r-lg);
  border: 1px solid var(--line); margin-bottom: 16px;
  overflow: hidden;
}
.order-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; background: #FBFCFD;
  border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3);
  flex-wrap: wrap; gap: 8px;
}
.order-no { font-weight: 600; color: var(--ink-2); }
.order-status { font-weight: 700; font-size: 12.5px; }
.order-status.paid { color: var(--green); }
.order-status.pending_payment { color: var(--orange); }

.order-body { padding: 16px 20px; }
.order-thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.order-thumb {
  width: 54px; height: 54px; border-radius: 10px;
  display: grid; place-items: center; font-size: 24px;
}
.order-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px dashed var(--line);
  font-size: 13px; color: var(--ink-3); flex-wrap: wrap; gap: 10px;
}
.order-foot b { font-size: 18px; font-weight: 800; color: var(--ink); }
.order-foot b i { font-size: 12px; font-style: normal; }

/* ============================ 成功页 ============================ */
.success-wrap { max-width: 460px; margin: 40px auto; text-align: center; }
.success-icon { color: var(--green); margin-bottom: 22px; animation: popIn .5s var(--ease); }
@keyframes popIn { 0%{transform:scale(.5);opacity:0} 60%{transform:scale(1.1)} 100%{transform:scale(1);opacity:1} }
.success-wrap h2 { font-size: 26px; font-weight: 800; margin-bottom: 8px; letter-spacing: -.5px; }
.success-sub { color: var(--ink-3); font-size: 14px; margin-bottom: 28px; }
.success-card {
  background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line);
  padding: 20px 24px; text-align: left; margin-bottom: 28px;
}
.sc-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 7px 0; }
.sc-row span { color: var(--ink-3); }
.sc-row b { font-weight: 650; }
.sc-row.total { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 14px; }
.sc-row.total b { color: var(--orange); font-size: 20px; font-weight: 800; }
.success-btns { display: flex; gap: 12px; justify-content: center; }

/* ============================ 弹层 ============================ */
.modal { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 24px; }
.modal-mask {
  position: absolute; inset: 0;
  background: rgba(16,20,26,.44);
  backdrop-filter: blur(6px);
  animation: fadeIn .22s ease;
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

.modal-panel {
  position: relative; background: #fff;
  border-radius: var(--r-xl); box-shadow: var(--sh-lg);
  animation: modalIn .32s var(--ease);
  max-height: 88vh; overflow-y: auto;
}
@keyframes modalIn { from{opacity:0;transform:translateY(20px) scale(.97)} to{opacity:1;transform:none} }

.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-head h3 { font-size: 17px; font-weight: 700; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-size: 15px;
  color: var(--ink-3); transition: all .2s;
}
.icon-btn:hover { background: var(--bg); color: var(--ink); }

/* 商品详情弹层 */
.modal-detail { width: 100%; max-width: 760px; overflow: hidden; }
.detail-grid { display: grid; grid-template-columns: 320px 1fr; }
.detail-visual {
  display: grid; place-items: center; font-size: 110px;
  min-height: 320px;
}
.detail-info { padding: 32px 32px 28px; display: flex; flex-direction: column; }
.detail-tag {
  display: inline-block; align-self: flex-start;
  background: var(--green-light); color: var(--green-dark);
  font-size: 11.5px; font-weight: 650;
  padding: 4px 11px; border-radius: 999px; margin-bottom: 12px;
}
.detail-info h2 { font-size: 21px; font-weight: 750; line-height: 1.35; margin-bottom: 6px; letter-spacing: -.3px; }
.detail-spec { font-size: 13px; color: var(--ink-3); margin-bottom: 16px; }
.detail-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.detail-price b { font-size: 32px; font-weight: 800; color: var(--orange); letter-spacing: -1px; }
.detail-price b i { font-size: 17px; font-style: normal; }
.detail-price del { font-size: 14px; color: var(--ink-4); }
.detail-price .save { font-size: 12px; background: #FFEEE8; color: var(--orange); padding: 3px 9px; border-radius: 6px; font-weight: 650; }
.detail-desc { font-size: 13.5px; color: var(--ink-2); line-height: 1.85; margin-bottom: 20px; }
.detail-rows { display: flex; gap: 24px; margin-bottom: 24px; font-size: 12.5px; color: var(--ink-3); flex-wrap: wrap; }
.detail-rows b { color: var(--ink); font-weight: 650; }
.detail-buy { display: flex; gap: 12px; align-items: center; margin-top: auto; }
.detail-buy .stepper { border-radius: 999px; }

/* 地址表单 */
.modal-addr { width: 100%; max-width: 480px; padding: 28px 30px 30px; }
.addr-form label { display: block; margin-bottom: 16px; }
.addr-form label > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.addr-form input, .addr-form select {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-md);
  outline: none; transition: all .2s; background: #fff;
}
.addr-form input:focus, .addr-form select:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(18,166,92,.08); }
.region-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.checkbox-line { display: flex !important; align-items: center; gap: 8px; }
.checkbox-line input { width: 16px !important; height: 16px !important; accent-color: var(--green); }
.checkbox-line span { margin: 0 !important; font-weight: 500 !important; color: var(--ink-2) !important; }

/* 支付弹层 */
.modal-pay { width: 100%; max-width: 380px; padding: 30px; text-align: center; }
.modal-pay h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.pay-amount { font-size: 34px; font-weight: 800; color: var(--orange); letter-spacing: -1px; margin-bottom: 26px; }
.pay-channels { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.pay-ch {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: var(--r-md);
  border: 1.5px solid var(--line); font-size: 14px; font-weight: 600;
  transition: all .2s var(--ease);
}
.pay-ch:hover { border-color: var(--green); background: var(--green-light); }
.pay-ico {
  width: 30px; height: 30px; border-radius: 8px; color: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
}
.pay-loading { padding: 20px 0; }
.spinner {
  width: 34px; height: 34px; margin: 0 auto 12px;
  border: 3px solid var(--line); border-top-color: var(--green);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pay-loading p { font-size: 13px; color: var(--ink-3); }
.pay-cancel { margin-top: 6px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%);
  background: rgba(20,24,31,.92); color: #fff;
  padding: 12px 22px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; z-index: 900;
  box-shadow: var(--sh-lg);
  animation: toastIn .3s var(--ease);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}
@keyframes toastIn { from{opacity:0;transform:translate(-50%,14px)} to{opacity:1;transform:translate(-50%,0)} }

/* 骨架屏 */
.skel { background: linear-gradient(90deg,#F1F3F6 25%,#E7EAEF 37%,#F1F3F6 63%); background-size: 400% 100%; animation: shimmer 1.3s infinite; border-radius: var(--r-md); }
@keyframes shimmer { 0%{background-position:100% 0} 100%{background-position:-100% 0} }
.skel-card { height: 320px; border-radius: var(--r-lg); }

/* ============================ 分页 ============================ */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-top: 36px; flex-wrap: wrap;
}
.pg {
  min-width: 36px; height: 36px; padding: 0 10px;
  border-radius: 10px; background: #fff;
  border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  display: grid; place-items: center;
  transition: all .2s var(--ease);
}
.pg:hover:not(:disabled) { border-color: var(--green); color: var(--green); }
.pg:disabled { color: var(--ink-4); cursor: not-allowed; background: #FAFBFC; }
.pg.active { background: var(--green); border-color: var(--green); color: #fff; }
.pg-dots { color: var(--ink-4); font-size: 13px; padding: 0 2px; }
.pg-total { font-size: 12.5px; color: var(--ink-4); margin-left: 10px; }

/* ============================ 响应式 ============================ */
@media (max-width: 980px) {
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-side, .checkout-side { position: static; }
  .hero { padding: 40px 32px; }
  .hero h1 { font-size: 30px; }
  .hero-visual { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-visual { min-height: 200px; font-size: 80px; }
}

@media (max-width: 680px) {
  .header-inner { padding: 0 16px; gap: 12px; height: 60px; }
  .logo-text em { display: none; }
  .logo-text { font-size: 15px; }
  .h-action span { display: none; }
  .h-action { padding: 9px 10px; }
  #app { padding: 16px 16px 60px; }
  .hero { padding: 32px 24px; border-radius: var(--r-lg); margin-bottom: 28px; }
  .hero h1 { font-size: 25px; }
  .hero p { font-size: 13px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .p-thumb { font-size: 44px; }
  .p-body { padding: 11px 12px 12px; }
  .p-name { font-size: 13px; min-height: 36px; }
  .p-price b { font-size: 17px; }
  .p-add { width: 32px; height: 32px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cat-card { padding: 16px 8px; }
  .cat-ico { font-size: 26px; }
  .cat-name { font-size: 12.5px; }
  .cat-desc { display: none; }
  .cart-item { grid-template-columns: 20px 68px 1fr; gap: 12px; padding: 14px; }
  .ci-thumb { width: 68px; height: 68px; font-size: 30px; }
  .ci-right { grid-column: 2 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .section-head h2 { font-size: 19px; }
  .page-head h2 { font-size: 20px; }
  .modal { padding: 12px; }
  .modal-addr { padding: 22px; }
  .region-row { grid-template-columns: 1fr; }
  .detail-info { padding: 22px; }
  .success-btns { flex-direction: column; }
}
