/* 桌面宽屏版样式（PC 站）。品牌色变量与 h5 版一致，布局按桌面范式重写。
   同时定义 ui.js 复用组件（toast / modal / sheet / empty / loading / price 等）所需的类。 */

:root {
  --brand: #FF6A3D;
  --brand-deep: #E8451F;
  --brand-soft: #FF9A5C;
  --brand-tint: #FFF1EA;
  --teal: #12A594;
  --teal-deep: #0E8074;
  --amber: #F5A524;
  --amber-soft: #FFC861;

  --cream: #FFFBF8;
  --surface: #FFFFFF;
  --variant: #F6F0EC;
  --line: #EFE6E0;

  --ink: #1A1613;
  --ink-2: #4A3F38;
  --muted: #6B5F58;
  --muted-2: #A2968E;

  --red: #E23D3D;
  --green: #12A594;

  --grad-hero: linear-gradient(135deg, #FF9A5C 0%, #FF6A3D 52%, #F5A524 100%);
  --grad-cool: linear-gradient(135deg, #3CC5B4 0%, #0E8074 100%);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;

  --shadow-sm: 0 2px 8px rgba(26, 22, 19, .05);
  --shadow-md: 0 8px 24px rgba(26, 22, 19, .09);
  --shadow-brand: 0 8px 20px rgba(255, 106, 61, .28);

  --pc-max: 1240px;
  --nav-h: 66px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; border: 0; }
button { font: inherit; color: inherit; }
input, textarea { font: inherit; color: inherit; }

/* ===================== 排版 / 通用工具 ===================== */
.pc-wrap { max-width: var(--pc-max); margin: 0 auto; padding: 0 24px; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.gap8 { gap: 8px; }
.mt12 { margin-top: 12px; }
.pad { padding: 0 24px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-narrow { max-width: 820px; margin: 0 auto; }
.pc-page { min-height: 420px; }

.pc-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.pc-page-title { font-size: 23px; font-weight: 800; letter-spacing: -.02em; }
.pc-page-sub { font-size: 13px; color: var(--muted-2); margin-top: 5px; }

.sec { margin-top: 18px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sec-title { font-size: 17px; font-weight: 700; }
.sec-sub { font-size: 12.5px; color: var(--muted-2); }
.sec-more { color: var(--brand-deep); font-size: 12.5px; display: inline-flex; align-items: center; gap: 2px; font-weight: 600; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; box-shadow: var(--shadow-sm); }

.chips-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; height: 32px; padding: 0 14px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-2); font-size: 13px; cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--brand-soft); color: var(--brand-deep); }
.chip.on { background: var(--brand-tint); border-color: var(--brand-soft); color: var(--brand-deep); font-weight: 600; }

/* ===================== 按钮 ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  background: var(--variant); color: var(--ink); font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: .15s; white-space: nowrap; text-decoration: none;
}
.btn:hover { filter: brightness(.97); }
.btn-primary { background: var(--grad-hero); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(255, 106, 61, .34); }
.btn-plain { background: var(--surface); border-color: var(--line); color: var(--ink-2); }
.btn-plain:hover { border-color: var(--brand-soft); color: var(--brand-deep); filter: none; }
.btn-outline { background: transparent; border-color: var(--brand); color: var(--brand-deep); }
.btn-ghost { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { height: 46px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn:disabled, .btn.is-disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); cursor: pointer; flex: none;
}
.icon-btn:hover { background: var(--variant); color: var(--ink); }

/* ===================== 价格 / 标签 ===================== */
.price { color: var(--brand-deep); font-weight: 700; display: inline-flex; align-items: baseline; }
.price .unit { font-size: .72em; font-weight: 600; margin-right: 1px; }
.price .num { font-size: 1.15em; letter-spacing: -.02em; }
.price.price-lg .num { font-size: 1.7em; }
.price-old { color: var(--muted-2); text-decoration: line-through; font-size: 12px; margin-left: 7px; }
.badge {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px;
  background: var(--variant); color: var(--muted); font-size: 11.5px; font-weight: 600;
}
.badge-brand { background: var(--brand-tint); color: var(--brand-deep); }
.badge-teal { background: #E3F6F3; color: var(--teal-deep); }
.badge-red { background: #FDECEC; color: var(--red); }
.tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px;
  background: var(--brand-tint); color: var(--brand-deep); font-size: 11.5px; margin-right: 5px;
}
.tag-teal { background: #E3F6F3; color: var(--teal-deep); }
.status-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.st-PENDING_PAYMENT { background: #FFF1EA; color: #E8451F; }
.st-PENDING_SHIPMENT { background: #FFF6E6; color: #B4761A; }
.st-PENDING_RECEIPT { background: #EAF1FF; color: #3C4BC5; }
.st-COMPLETED { background: #E3F6F3; color: #0E8074; }
.st-CANCELLED, .st-REFUNDED { background: var(--variant); color: var(--muted); }
.stars { color: var(--amber); letter-spacing: 1px; }

/* ===================== 表单 ===================== */
.input {
  width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 10px;
  padding: 0 12px; font-size: 14px; background: var(--surface); color: var(--ink); outline: none;
}
textarea.input { height: auto; padding: 10px 12px; resize: vertical; }
.input:focus { border-color: var(--brand-soft); box-shadow: 0 0 0 3px var(--brand-tint); }
.field { margin-bottom: 16px; }
.field-label { font-size: 12.5px; color: var(--muted); margin-bottom: 7px; font-weight: 600; }
.switch { width: 44px; height: 24px; border-radius: 999px; background: #DED5CF; position: relative; transition: .2s; flex: none; cursor: pointer; }
.switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
.switch.on { background: var(--brand); }
.switch.on::after { transform: translateX(20px); }
.check {
  width: 19px; height: 19px; border-radius: 50%; border: 1.5px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; color: transparent;
  flex: none; cursor: pointer; background: var(--surface);
}
.check.on { background: var(--grad-hero); border-color: transparent; color: #fff; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.stepper button { width: 30px; height: 30px; border: 0; background: transparent; cursor: pointer; font-size: 15px; color: var(--ink-2); }
.stepper button:hover { background: var(--variant); }
.stepper button:disabled { color: var(--line); cursor: not-allowed; }
.stepper span { min-width: 36px; text-align: center; font-size: 13px; font-weight: 600; }

/* ===================== 列表 / 金额行 ===================== */
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.list-row {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border-bottom: 1px solid var(--line); cursor: pointer;
}
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: var(--cream); }
.lr-ico { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.lr-label { flex: 1; font-size: 13.5px; }
.lr-value { color: var(--muted); font-size: 13px; }
.chev { color: var(--muted-2); display: flex; }
.money-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 13.5px; color: var(--muted); }
.money-row .v { color: var(--ink); font-weight: 600; }
.money-row.disc .v { color: var(--red); }
.money-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-size: 15px; color: var(--ink); }
.money-row.total .v { color: var(--brand-deep); font-size: 19px; font-weight: 800; }
.order-line { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.order-line:last-child { border-bottom: 0; }
.order-line img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; background: var(--variant); }
.order-line .n { font-size: 13.5px; font-weight: 600; }
.order-line .s { font-size: 12px; color: var(--muted-2); margin-top: 3px; }
.order-line .r { text-align: right; font-size: 13px; flex: none; }
.cart-line { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; background: var(--variant); }

/* ===================== Toast / Modal / Sheet ===================== */
.toast {
  position: fixed; left: 50%; bottom: 62px; transform: translateX(-50%);
  background: rgba(26, 22, 19, .88); color: #fff; padding: 11px 20px; border-radius: 999px;
  font-size: 13.5px; z-index: 160; box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.toast[hidden] { display: none; }
.modal, .sheet { position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center; }
.modal[hidden], .sheet[hidden] { display: none; }
.modal-mask, .sheet-mask { position: absolute; inset: 0; background: rgba(26, 22, 19, .45); }
.modal-body {
  position: relative; width: min(430px, 92vw); background: var(--surface); border-radius: 18px;
  padding: 24px; text-align: center; box-shadow: var(--shadow-md); animation: pc-pop .18s ease-out;
}
.modal-emoji { font-size: 34px; }
.modal-title { font-size: 17px; font-weight: 700; margin-top: 6px; }
.modal-desc { font-size: 13.5px; color: var(--muted); line-height: 1.75; margin-top: 8px; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-actions .btn { flex: 1; }
@keyframes pc-pop { from { transform: scale(.94); opacity: 0; } }
.sheet-body {
  position: relative; width: min(520px, 92vw); max-height: 78vh; overflow: auto;
  background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-md); padding-bottom: 16px;
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 8px; position: sticky; top: 0; background: var(--surface); }
.sheet-title { font-size: 16px; font-weight: 700; }
.sheet-item { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); cursor: pointer; }
.sheet-item:hover { background: var(--cream); }
.sheet-item.on { background: var(--brand-tint); }

/* ===================== Loading / Empty / Skeleton ===================== */
.loading { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 90px 0; color: var(--muted); font-size: 13.5px; }
.spinner { width: 26px; height: 26px; border: 2.5px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: pc-spin .8s linear infinite; }
@keyframes pc-spin { to { transform: rotate(360deg); } }
.empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 80px 0; text-align: center; }
.empty-ico { width: 64px; height: 64px; border-radius: 20px; background: var(--variant); color: var(--muted-2); display: flex; align-items: center; justify-content: center; }
.empty-title { font-size: 15px; font-weight: 600; margin-top: 6px; }
.empty-desc { font-size: 13px; color: var(--muted-2); }
.empty .btn { margin-top: 12px; }
.sk { background: linear-gradient(90deg, #EFE9E4 25%, #F7F2EE 37%, #EFE9E4 63%); background-size: 400% 100%; animation: pc-shimmer 1.4s infinite; }
@keyframes pc-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.sk-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px; }
.sk-img { height: 150px; border-radius: 12px; margin-bottom: 10px; }
.sk-line { height: 12px; border-radius: 6px; margin-bottom: 8px; }

/* ===================== 商品卡 / 网格 ===================== */
.pc-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pc-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pc-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pc-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.pcard {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; transition: .18s;
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.pcard-img { aspect-ratio: 1; background: var(--variant); overflow: hidden; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: .35s; }
.pcard:hover .pcard-img img { transform: scale(1.05); }
.pcard-body { padding: 12px; }
.pcard-name { font-size: 13.5px; font-weight: 600; line-height: 1.45; height: 39px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pcard-tags { margin-top: 6px; display: flex; gap: 5px; flex-wrap: wrap; }
.pcard-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 9px; }
.pcard-sold { font-size: 11.5px; color: var(--muted-2); }
.prow { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; }
.prow:hover { box-shadow: var(--shadow-sm); }
.prow-img { width: 110px; height: 110px; border-radius: 12px; overflow: hidden; flex: none; background: var(--variant); cursor: pointer; }
.prow-img img { width: 100%; height: 100%; object-fit: cover; }
.prow-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.prow-body .ellipsis { cursor: pointer; }
.prow-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.pc-rank-card { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 26px; padding: 10px 20px; }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.rank-row:last-child { border-bottom: 0; }
.rank-no { width: 24px; height: 24px; border-radius: 8px; background: var(--variant); color: var(--muted); font-size: 12.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.rank-row:nth-child(1) .rank-no { background: var(--grad-hero); color: #fff; }
.rank-row:nth-child(2) .rank-no { background: #FFE3C8; color: #B4761A; }
.rank-row:nth-child(3) .rank-no { background: #FFF1EA; color: var(--brand-deep); }
.rank-img { width: 54px; height: 54px; border-radius: 10px; overflow: hidden; flex: none; background: var(--variant); }
.rank-img img { width: 100%; height: 100%; object-fit: cover; }

/* ===================== 顶部导航（外壳） ===================== */
.pc-topbar { position: sticky; top: 0; z-index: 120; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.pc-nav { display: flex; align-items: center; gap: 20px; height: var(--nav-h); }
.pc-logo { display: flex; align-items: center; gap: 10px; flex: none; }
.pc-logo .mark { width: 34px; height: 34px; border-radius: 11px; background: var(--grad-hero); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800; box-shadow: var(--shadow-brand); }
.pc-logo .txt { font-size: 16px; font-weight: 800; line-height: 1.15; }
.pc-logo .txt em { display: block; font-style: normal; font-size: 11px; color: var(--muted-2); font-weight: 500; letter-spacing: .02em; }
.pc-nav-list { display: flex; align-items: center; gap: 4px; flex: none; }
.pc-nav-item { position: relative; padding: 8px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.pc-nav-item:hover { background: var(--variant); }
.pc-nav-item.on { color: var(--brand-deep); background: var(--brand-tint); }
.pc-nav-badge { position: absolute; top: 0; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--red); color: #fff; font-size: 10.5px; line-height: 17px; text-align: center; font-weight: 700; }
.pc-search { display: flex; align-items: center; gap: 8px; flex: 1; max-width: 420px; height: 40px; padding: 0 6px 0 14px; border-radius: 999px; background: var(--variant); border: 1px solid transparent; }
.pc-search:focus-within { background: var(--surface); border-color: var(--brand-soft); box-shadow: 0 0 0 3px var(--brand-tint); }
.pc-search .ico { color: var(--muted-2); display: flex; flex: none; }
.pc-search input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 13.5px; outline: none; }
.pc-search button { height: 30px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--grad-hero); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; flex: none; }
.pc-user { display: flex; align-items: center; gap: 12px; flex: none; margin-left: auto; }
.pc-user a, .pc-user button { font-size: 13.5px; font-weight: 600; color: var(--ink-2); background: none; border: 0; cursor: pointer; padding: 6px 4px; }
.pc-user a:hover, .pc-user button:hover { color: var(--brand-deep); }
.pc-user a.btn { background: var(--grad-hero); color: #fff; padding: 0 14px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; font-size: 13px; }
.pc-user a.btn:hover { color: #fff; filter: brightness(1.04); }
.pc-user .pc-avatar { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: none; }
.pc-user .pc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pc-main { padding: 26px 0 64px; }
.pc-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 26px 0; color: var(--muted-2); font-size: 12.5px; }
.pc-footer .pc-wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.pc-footer a:hover { color: var(--brand-deep); }
.pc-foot-main { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.pc-foot-brand { font-weight: 700; color: var(--ink-2); }
.pc-foot-icp { width: 100%; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted-2); }
.pc-foot-icp a { color: var(--muted-2); }

/* ===================== 首页 ===================== */
.pc-hero { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(300px, 1fr); gap: 18px; }
/* 不写死宽高比：让轮播图随 .pc-hero 行高拉伸，避免左侧栅格下方留出大块空白 */
.pc-carousel { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--variant); min-height: 340px; }
.pc-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .55s; }
.pc-slide.on { opacity: 1; }
.pc-slide img { width: 100%; height: 100%; object-fit: cover; }
.pc-slide-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 28px; background: linear-gradient(0deg, rgba(20, 12, 8, .68), transparent); color: #fff; }
.pc-slide-cap b { display: block; font-size: 22px; font-weight: 800; }
.pc-slide-cap span { font-size: 13px; opacity: .92; }
.pc-car-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .88); color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.pc-car-prev { left: 14px; }
.pc-car-next { right: 14px; }
.pc-car-prev svg { transform: rotate(180deg); }
.pc-car-dots { position: absolute; bottom: 18px; right: 26px; display: flex; gap: 7px; }
.pc-car-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .55); cursor: pointer; transition: .2s; }
.pc-car-dot.on { width: 22px; border-radius: 999px; background: #fff; }
.pc-hero-side { display: flex; flex-direction: column; gap: 14px; }
.pc-quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; }
.pc-quick a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px; border-radius: 12px; background: var(--cream); color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.pc-quick a:hover { background: var(--brand-tint); color: var(--brand-deep); }
.pc-quick .ico { width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; }
.pc-promo-list { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pc-promo { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-radius: var(--r-md); color: #fff; flex: 1; }
.pc-promo b { font-size: 16px; font-weight: 800; display: block; }
.pc-promo span { font-size: 12px; opacity: .92; }
.pc-promo:hover { filter: brightness(1.03); }
.pc-promo.warm { background: linear-gradient(135deg, #FFB27A, #E8451F); }
.pc-promo.cool { background: linear-gradient(135deg, #3CC5B4, #0E8074); }
.pc-promo.amber { background: linear-gradient(135deg, #FFC861, #F5A524); }
.pc-promo.ink { background: linear-gradient(135deg, #6C7BFF, #3C4BC5); }
.pc-flash { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.pc-flash-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 20px; background: linear-gradient(135deg, #FFF3E9, #FFE7D5); }
.pc-flash-title { display: flex; align-items: center; gap: 7px; font-size: 17px; font-weight: 800; color: var(--brand-deep); }
.pc-flash-clock { font-size: 13px; color: var(--ink-2); font-weight: 700; }
.pc-flash-clock i { font-style: normal; background: var(--ink); color: #fff; border-radius: 5px; padding: 2px 5px; margin: 0 1px; font-size: 12px; }
.pc-flash-body { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; padding: 16px; }
.pc-flash-item { display: block; }
.pc-flash-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--variant); }
.pc-flash-item:hover img { opacity: .92; }
.pc-flash-bar { height: 12px; border-radius: 999px; background: var(--variant); margin-top: 9px; overflow: hidden; }
.pc-flash-bar i { display: block; height: 100%; background: linear-gradient(90deg, #FF9A5C, #E8451F); }

/* ===================== 分类 ===================== */
.pc-cat-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.pc-catside { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px; position: sticky; top: calc(var(--nav-h) + 20px); }
.pc-catside-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.pc-catside-item:hover { background: var(--cream); }
.pc-catside-item.on { background: var(--brand-tint); color: var(--brand-deep); }
.pc-cat-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; border-radius: var(--r-md); color: #fff; margin-bottom: 18px; }
.pc-cat-hero b { font-size: 20px; font-weight: 800; display: block; }
.pc-cat-hero span { font-size: 12.5px; opacity: .92; }
.pc-cat-group { margin-bottom: 18px; }
.pc-cat-group-title { font-size: 14.5px; font-weight: 700; margin-bottom: 12px; }
.pc-cat-leaf-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.pc-cat-leaf { display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 10px; background: var(--variant); color: var(--ink-2); font-size: 13px; text-align: center; }
.pc-cat-leaf:hover { background: var(--brand-tint); color: var(--brand-deep); font-weight: 600; }
.pc-list-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; align-items: start; }
.pc-filterside { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; position: sticky; top: calc(var(--nav-h) + 20px); }
.pc-filter-title { font-size: 12.5px; color: var(--muted-2); font-weight: 800; letter-spacing: .04em; margin-bottom: 10px; }
.pc-filter-item { display: block; padding: 9px 12px; border-radius: 9px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; margin-bottom: 2px; }
.pc-filter-item:hover { background: var(--cream); }
.pc-filter-item.on { background: var(--brand-tint); color: var(--brand-deep); font-weight: 600; }

/* ===================== 商品详情 ===================== */
.pc-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 26px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.pc-gallery-main { border-radius: var(--r-md); overflow: hidden; background: var(--variant); aspect-ratio: 1; }
.pc-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.pc-gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pc-gallery-thumb { width: 66px; height: 66px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: var(--variant); }
.pc-gallery-thumb.on { border-color: var(--brand); }
.pc-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pc-detail-price { padding: 18px 20px; border-radius: var(--r-md); background: linear-gradient(135deg, #FFF3E9, #FFE9DC); }
.pc-detail-name { font-size: 21px; font-weight: 800; line-height: 1.4; margin-top: 16px; }
.pc-detail-sub { font-size: 13px; color: var(--muted); margin-top: 8px; }
.pc-detail-tags { margin-top: 10px; }
.pc-detail-stat { display: flex; gap: 32px; margin-top: 14px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.pc-detail-stat b { color: var(--ink); font-size: 14.5px; margin-left: 4px; }
.spec-opt {
  display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 16px; margin: 0 8px 8px 0;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  font-size: 13px; cursor: pointer; color: var(--ink-2);
}
.spec-opt:hover { border-color: var(--brand-soft); }
.spec-opt.on { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-deep); font-weight: 600; }
.pc-detail-actions { display: flex; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.pc-wish { display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.pc-wish.on { border-color: var(--brand); color: var(--brand-deep); background: var(--brand-tint); }
.pc-detail-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 22px 0 16px; }
.pc-tab { padding: 12px 22px; font-size: 14.5px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.pc-tab:hover { color: var(--ink); }
.pc-tab.on { color: var(--brand-deep); border-color: var(--brand); }
.param-row { display: flex; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.param-row:last-child { border-bottom: 0; }
.param-row > span { width: 150px; flex: none; color: var(--muted-2); }
.review { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review-avatar { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex: none; background: var(--variant); }
.review-avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-name { font-size: 13px; font-weight: 700; }
.review-text { font-size: 13px; color: var(--muted); line-height: 1.7; margin-top: 5px; }
.pc-promise { display: flex; align-items: center; gap: 12px; }

/* ===================== 购物车 ===================== */
.pc-cart-head, .pc-cart-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) 120px 132px 120px 60px; align-items: center; gap: 12px; }
.pc-cart-head { padding: 0 16px 12px; font-size: 12.5px; color: var(--muted-2); font-weight: 800; border-bottom: 1px solid var(--line); }
.pc-cart-head > div:not(:first-child) { text-align: center; }
.pc-cart-row { padding: 16px; border-bottom: 1px solid var(--line); }
.pc-cart-row:last-child { border-bottom: 0; }
.pc-cart-row:hover { background: var(--cream); }
.pc-cart-prod { display: flex; gap: 14px; align-items: center; min-width: 0; }
.pc-cart-prod img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; flex: none; background: var(--variant); }
.pc-cart-price { text-align: center; }
.pc-cart-qty { display: flex; justify-content: center; }
.pc-cart-sub { text-align: center; font-weight: 700; color: var(--brand-deep); }
.pc-cart-del { display: flex; justify-content: center; color: var(--muted-2); }
.cart-spec { display: inline-block; font-size: 11.5px; color: var(--muted); background: var(--variant); border-radius: 6px; padding: 2px 7px; margin-top: 6px; }
.pc-cart-bar { position: sticky; bottom: 0; display: flex; align-items: center; gap: 14px; padding: 14px 20px; margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 -6px 20px rgba(26, 22, 19, .06); }

/* ===================== 结算 / 收银台 ===================== */
.pc-2col { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 20px; align-items: start; }
.pc-side-sticky { position: sticky; top: calc(var(--nav-h) + 20px); }
.checkout-addr { display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.checkout-addr:hover { border-color: var(--brand-soft); }
.addr-line1 { font-size: 14.5px; font-weight: 700; }
.addr-line2 { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.pc-pay-box { max-width: 560px; margin: 0 auto; }

/* ===================== 订单 ===================== */
.order-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.pc-order-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; margin-bottom: 14px; transition: .16s; }
.pc-order-card:hover { border-color: var(--brand-soft); box-shadow: var(--shadow-sm); }
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.order-no { font-size: 12.5px; color: var(--muted-2); }
.order-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; flex-wrap: wrap; }
.pc-order-acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.pc-status-hero { border-radius: var(--r-md); background: var(--grad-hero); color: #fff; padding: 20px 22px; }
.pc-status-hero b { font-size: 18px; font-weight: 800; }
.pc-status-hero span { display: block; font-size: 12.5px; opacity: .92; margin-top: 5px; }

/* ===================== 我的 ===================== */
.pc-profile-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 20px; align-items: start; }
.profile-hero { background: var(--grad-hero); color: #fff; border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-brand); }
.profile-user { display: flex; align-items: center; gap: 14px; }
.profile-avatar { width: 62px; height: 62px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(255, 255, 255, .65); flex: none; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-size: 17px; font-weight: 800; }
.profile-sub { display: flex; align-items: center; gap: 8px; font-size: 12.5px; opacity: .94; margin-top: 6px; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.profile-stats a { background: rgba(255, 255, 255, .18); border-radius: 12px; padding: 12px 8px; text-align: center; color: #fff; }
.profile-stats a:hover { background: rgba(255, 255, 255, .28); }
.profile-stats b { display: block; font-size: 19px; font-weight: 800; }
.profile-stats span { font-size: 11.5px; opacity: .92; }
.quick4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quick4 a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 6px; border-radius: 12px; background: var(--cream); color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.quick4 a:hover { background: var(--brand-tint); color: var(--brand-deep); }

/* ===================== 抽奖 ===================== */
.pc-lot-layout { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 20px; align-items: start; }
.lot-hero { border-radius: var(--r-lg); background: var(--grad-hero); color: #fff; padding: 24px; text-align: center; box-shadow: var(--shadow-brand); }
.lot-points-label { font-size: 12.5px; opacity: .92; }
.lot-points { font-size: 42px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.lot-chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.lot-chip { background: rgba(255, 255, 255, .2); border-radius: 999px; padding: 5px 12px; font-size: 12px; }
.pc-wheel-box { display: flex; flex-direction: column; align-items: center; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); margin-top: 16px; }
.pc-wheel {
  position: relative; width: 230px; height: 230px; border-radius: 50%;
  background: conic-gradient(#FFE0CF 0 45deg, #FFF7F0 45deg 90deg, #FFE0CF 90deg 135deg, #FFF7F0 135deg 180deg, #FFE0CF 180deg 225deg, #FFF7F0 225deg 270deg, #FFE0CF 270deg 315deg, #FFF7F0 315deg 360deg);
  box-shadow: inset 0 0 0 10px var(--surface), var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
}
.pc-wheel.spin { animation: pc-wheel-spin 1.1s cubic-bezier(.2, .9, .25, 1) infinite; }
@keyframes pc-wheel-spin { to { transform: rotate(360deg); } }
.wheel-hub { width: 106px; height: 106px; border-radius: 50%; background: var(--grad-hero); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; box-shadow: var(--shadow-brand); }
.wheel-hub small { font-size: 10.5px; font-weight: 500; opacity: .92; margin-top: 2px; }
.wheel-pin { position: absolute; top: -3px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 15px solid var(--brand-deep); z-index: 2; }
.prize-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.prize-cell { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.prize-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-tint); color: var(--brand-deep); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; flex: none; }
.prize-name { font-size: 13.5px; font-weight: 600; }
.prize-weight { font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }
.rules-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.95; }

/* ===================== 优惠券 ===================== */
.coupon { display: flex; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; position: relative; }
.coupon:hover { box-shadow: var(--shadow-sm); }
.coupon-left { width: 122px; flex: none; background: var(--brand-tint); color: var(--brand-deep); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 16px 8px; }
.coupon-left.expired { background: var(--variant); color: var(--muted-2); }
.coupon-amount { font-size: 26px; font-weight: 800; display: flex; align-items: baseline; }
.coupon-amount .unit { font-size: 14px; margin-right: 1px; }
.coupon-cond { font-size: 11.5px; }
.coupon-body { flex: 1; min-width: 0; padding: 14px 16px; }
.coupon-title { font-size: 15px; font-weight: 700; }
.coupon-scope { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.coupon-exp { font-size: 11.5px; color: var(--muted-2); margin-top: 9px; }
.coupon-act { display: flex; align-items: center; padding-right: 14px; }
.coupon-used { position: absolute; right: 14px; bottom: 10px; font-size: 11px; color: var(--muted-2); }

/* ===================== 登录 ===================== */
.pc-login-wrap { display: grid; grid-template-columns: 1.05fr 1fr; max-width: 960px; margin: 30px auto 50px; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-md); }
.pc-login-art { background: var(--grad-hero); color: #fff; padding: 48px 42px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.pc-login-logo { width: 64px; height: 64px; border-radius: 20px; background: rgba(255, 255, 255, .22); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; }
.pc-login-art h2 { font-size: 26px; font-weight: 800; margin: 10px 0 0; }
.pc-login-art p { font-size: 13.5px; line-height: 1.95; opacity: .94; margin: 0; }
.pc-login-art ul { margin: 4px 0 0; padding-left: 18px; font-size: 13px; line-height: 2; opacity: .94; }
.pc-login-form { padding: 48px 42px; }
.login-field { display: flex; align-items: center; gap: 10px; height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; background: var(--surface); }
.login-field:focus-within { border-color: var(--brand-soft); box-shadow: 0 0 0 3px var(--brand-tint); }
.login-field input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 15px; outline: none; }
.login-field .pre { font-size: 14px; color: var(--muted); font-weight: 700; }
.login-code-btn { border: 0; background: transparent; color: var(--brand-deep); font-size: 13.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.login-code-btn:disabled { color: var(--muted-2); cursor: not-allowed; }
.login-tip { font-size: 12px; color: var(--muted-2); line-height: 1.75; margin-top: 16px; }
.login-title { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.login-desc { font-size: 13px; color: var(--muted); margin-bottom: 22px; }

/* ===================== 协议 / 客服 ===================== */
.policy-text { font-size: 13.5px; line-height: 1.9; margin: 0; color: var(--muted); }
.policy-text:first-child { color: var(--ink-2); }
.policy-text + .policy-text { margin-top: 12px; }

/* ===================== 窄屏降级（仍为桌面布局） ===================== */
@media (max-width: 1180px) {
  .pc-grid-5, .grid2, .pc-flash-body, .pc-cat-leaf-grid { grid-template-columns: repeat(4, 1fr); }
  .pc-grid-4 { grid-template-columns: repeat(3, 1fr); }
  .pc-hero { grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); }
}
@media (max-width: 980px) {
  .pc-grid-5, .grid2, .pc-flash-body { grid-template-columns: repeat(3, 1fr); }
  .pc-2col, .pc-profile-layout, .pc-lot-layout, .pc-detail { grid-template-columns: minmax(0, 1fr); }
  .pc-cat-layout, .pc-list-layout { grid-template-columns: 200px minmax(0, 1fr); }
  .pc-hero { grid-template-columns: minmax(0, 1fr); }
  .pc-login-wrap { grid-template-columns: minmax(0, 1fr); }
  .pc-login-art { padding: 32px; }
  .pc-login-form { padding: 32px; }
  .pc-cart-head, .pc-cart-row { grid-template-columns: 40px minmax(0, 1fr) 100px 120px 100px 50px; }
}
