/* =====================================================================
   SHALLOWDOWN v2 — Apple Store 风格设计系统
   移动优先（微信内置浏览器）· 桌面自适应
   ===================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-soft: #fafafc;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --blue-soft: #e8f2fd;
  --red: #e30000;
  --green: #1a8a3a;
  --amber: #b8860b;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .04), 0 4px 14px rgba(0, 0, 0, .05);
  --shadow: 0 4px 24px rgba(0, 0, 0, .08);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, .13);
  --nav-h: 48px;
  --tab-h: 56px;
  --ease: cubic-bezier(.25, .1, .25, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
}

img { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.sec { padding: 56px 0; }
.sec-alt { background: var(--bg-alt); }
.sec-dark { background: #000; color: #f5f5f7; }
.center { text-align: center; }
.mt0 { margin-top: 0 } .mb0 { margin-bottom: 0 }
.hide-sm { display: none; }

/* ============================ 排版 ============================ */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.022em; margin: 0 0 .5em; }
.hero-title {
  font-size: clamp(34px, 8.6vw, 72px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.03em;
  margin: 0 0 14px;
}
.sec-title {
  font-size: clamp(24px, 5vw, 40px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.025em;
  margin: 0 0 10px;
}
.sec-sub { color: var(--ink-2); font-size: clamp(15px, 3.4vw, 19px); margin: 0 auto; max-width: 640px; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 12px;
}
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.strong { font-weight: 600; }
.sec-dark .muted, .sec-dark .sec-sub { color: #a1a1a6; }

/* ============================ 导航 ============================ */
.nav {
  position: sticky; top: 0; z-index: 900;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .07);
}
.nav-in { max-width: 1040px; margin: 0 auto; height: 100%; padding: 0 18px; display: flex; align-items: center; gap: 22px; }
.nav-logo { display: flex; align-items: center; gap: 8px; flex: none; }
.nav-logo img { height: 17px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav-links a {
  color: var(--ink); font-size: 13px; opacity: .86; text-decoration: none; white-space: nowrap;
  transition: opacity .2s var(--ease);
}
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav-links a.on { opacity: 1; font-weight: 600; }
.nav-acts { display: flex; align-items: center; gap: 6px; margin-left: 6px; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-width: 36px; height: 34px; padding: 0 10px; border-radius: 980px; border: 0; background: transparent;
  color: var(--ink); font-size: 13px; cursor: pointer; text-decoration: none; transition: background .2s var(--ease);
}
.icon-btn:hover { background: rgba(0, 0, 0, .05); text-decoration: none; }
.cart-dot {
  position: absolute; top: 1px; right: 1px; min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--blue); color: #fff; border-radius: 980px; font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.burger { display: none; }

/* 移动抽屉 */
.drawer-mask {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 950;
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
.drawer-mask.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 78%; max-width: 320px; z-index: 960;
  background: #fff; transform: translateX(100%); transition: transform .34s var(--ease);
  padding: 22px 22px calc(22px + env(safe-area-inset-bottom, 0px)); overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.drawer.open { transform: translateX(0); }
.drawer a { display: block; padding: 13px 0; color: var(--ink); font-size: 16px; border-bottom: 1px solid var(--line-soft); text-decoration: none; }
.drawer .dv { height: 1px; background: var(--line); margin: 12px 0; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.drawer-head img { height: 16px; }

/* ============================ 底部 Tab（小程序感） ============================ */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 880;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid rgba(0, 0, 0, .08);
  display: flex;
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--ink-3); font-size: 10px; text-decoration: none; position: relative; transition: color .2s var(--ease);
}
.tabbar a.on { color: var(--blue); }
.tabbar svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabbar .tab-dot {
  position: absolute; top: 6px; left: 50%; margin-left: 4px; min-width: 15px; height: 15px; padding: 0 4px;
  background: var(--red); color: #fff; border-radius: 980px; font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ============================ 按钮 ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 22px; border-radius: 980px; border: 1px solid transparent;
  font-size: 15px; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), transform .12s var(--ease), border-color .2s var(--ease);
}
.btn:active { transform: scale(.975); }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-ghost:hover { background: var(--blue-soft); }
.btn-quiet { background: var(--bg-alt); color: var(--ink); }
.btn-quiet:hover { background: #ebebef; }
.btn-danger { background: #fff; color: var(--red); border-color: var(--line); }
.btn-danger:hover { background: #fff2f2; border-color: var(--red); }
.btn-sm { padding: 7px 15px; font-size: 13px; }
.btn-lg { padding: 14px 30px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============================ 卡片 ============================ */
.card {
  background: #fff; border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line-soft);
}
.card-flat { background: var(--bg-alt); border: 0; box-shadow: none; }
.card + .card { margin-top: 14px; }
.card-dark { background: #1d1d1f; color: #f5f5f7; border-color: #2c2c2e; }
.panel { background: #fff; border-radius: var(--radius); padding: 20px; border: 1px solid var(--line-soft); }

/* ============================ HERO ============================ */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 68px 0 56px;
  background: linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 100%);
}
.hero::after {
  content: ""; position: absolute; left: 50%; top: -40%; width: 120%; height: 90%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 113, 227, .10), transparent 62%);
  pointer-events: none;
}
.hero-in { position: relative; z-index: 1; }
.hero-logo { height: 30px; margin: 0 auto 24px; opacity: .92; }
.hero p.lead { font-size: clamp(16px, 3.9vw, 21px); color: var(--ink-2); max-width: 560px; margin: 0 auto 26px; }
.hero .btn-row { justify-content: center; }
.hero-note { margin-top: 18px; font-size: 12px; color: var(--ink-3); }

.hero-art {
  margin: 40px auto 0; max-width: 900px; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); background: #111;
}
.hero-art img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* ============================ 品类 ============================ */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat-card {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden;
  padding: 20px 18px; min-height: 116px;
  background: #fff; border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm);
  text-decoration: none; color: var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.cat-card .cn { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.cat-card .ce { font-size: 10px; letter-spacing: .1em; color: var(--ink-3); text-transform: uppercase; margin-top: 2px; }
.cat-card .cd { font-size: 12px; color: var(--ink-2); margin-top: 10px; line-height: 1.45; }
.cat-card .cn-badge {
  position: absolute; right: 14px; bottom: 12px; font-size: 11px; color: var(--ink-3);
}

/* ============================ 产品 ============================ */
.p-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.p-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.p-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.p-media { position: relative; aspect-ratio: 1/1; background: var(--bg-alt); overflow: hidden; }
.p-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.p-card:hover .p-media img { transform: scale(1.045); }
.p-body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.p-cat { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.p-name { font-size: 15px; font-weight: 600; line-height: 1.32; letter-spacing: -.02em; }
.p-meta { font-size: 12px; color: var(--ink-2); }
.p-price { margin-top: auto; padding-top: 6px; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.p-price .cur { font-size: 12px; font-weight: 500; margin-right: 1px; }
.p-price .was { font-size: 12px; color: var(--ink-3); text-decoration: line-through; font-weight: 400; margin-left: 6px; }
.p-badge {
  position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 980px;
  font-size: 10px; font-weight: 600; background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--ink);
}
.p-badge.hot { background: var(--blue); color: #fff; }
.p-badge.ws { background: var(--ink); color: #fff; }

/* 筛选条 */
.filters { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 6px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 16px; border-radius: 980px; background: var(--bg-alt);
  font-size: 13px; color: var(--ink); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: all .2s var(--ease);
}
.chip:hover { background: #ebebef; text-decoration: none; }
.chip.on { background: var(--ink); color: #fff; }

.searchbar { display: flex; gap: 8px; margin: 12px 0; }
.searchbar input {
  flex: 1; padding: 11px 16px; border-radius: 980px; border: 1px solid var(--line);
  font-size: 15px; font-family: inherit; background: var(--bg-alt);
}
.searchbar input:focus { outline: none; border-color: var(--blue); background: #fff; }

/* ============================ 商品详情 ============================ */
.pd-gallery { border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.pd-gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.pd-thumbs img {
  width: 62px; height: 62px; border-radius: 10px; object-fit: cover; cursor: pointer;
  border: 2px solid transparent; transition: border-color .2s var(--ease);
}
.pd-thumbs img.on { border-color: var(--blue); }
.pd-price { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 4px; }
.pd-price .now { font-size: 32px; font-weight: 700; letter-spacing: -.03em; }
.pd-price .now .cur { font-size: 18px; font-weight: 600; }
.pd-price .was { color: var(--ink-3); text-decoration: line-through; font-size: 15px; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 18px; }
.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px; border-radius: 980px;
  background: var(--bg-alt); font-size: 12px; color: var(--ink-2);
}
.tag.blue { background: var(--blue-soft); color: #0058b0; }
.tag.dark { background: var(--ink); color: #fff; }
.tag.gold { background: #fdf3d8; color: #8a6d1a; }
.tag.green { background: #e6f6ea; color: var(--green); }
.tag.red { background: #fdeaea; color: var(--red); }
.spec-list { list-style: none; padding: 0; margin: 0; }
.spec-list li { padding: 11px 0; border-bottom: 1px solid var(--line-soft); display: flex; gap: 14px; font-size: 14px; }
.spec-list li:last-child { border-bottom: 0; }
.spec-list .k { flex: none; width: 84px; color: var(--ink-2); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 980px; overflow: hidden; }
.qty button {
  width: 38px; height: 38px; border: 0; background: #fff; font-size: 18px; color: var(--ink);
  cursor: pointer; line-height: 1;
}
.qty button:hover { background: var(--bg-alt); }
.qty input {
  width: 46px; height: 38px; border: 0; text-align: center; font-size: 15px; font-family: inherit;
  background: #fff; border-left: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft);
}
.qty input:focus { outline: none; }

/* 价格档位表 */
.tier-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tier-table th, .tier-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.tier-table th { color: var(--ink-2); font-weight: 500; font-size: 12px; }
.tier-table td:last-child, .tier-table th:last-child { text-align: right; }
.tier-table tr.on { background: var(--blue-soft); }
.tier-table tr.on td { font-weight: 600; }

/* ============================ 实拍墙 ============================ */
.gal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gal-item {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt);
  box-shadow: var(--shadow-sm); aspect-ratio: 4/5;
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; }
.gal-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .74)); color: #fff;
}
.gal-cap .n { font-size: 13px; font-weight: 600; }
.gal-cap .c { font-size: 11px; opacity: .88; margin-top: 1px; }
.gal-marq { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.gal-marq .gal-item { flex: none; width: 66%; scroll-snap-align: start; }

/* ============================ 表单 ============================ */
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.field input[type=text], .field input[type=password], .field input[type=tel],
.field input[type=number], .field input[type=search], .field select, .field textarea {
  width: 100%; padding: 12px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit; background: #fff; color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 113, 227, .14);
}
.field textarea { min-height: 92px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--ink-3); margin-top: 5px; }
.field-req label::after { content: " *"; color: var(--red); }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }

/* 上传框 */
.upload {
  border: 1.5px dashed var(--line); border-radius: var(--radius-sm); padding: 22px 16px;
  text-align: center; background: var(--bg-soft); cursor: pointer; position: relative;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.upload:hover { border-color: var(--blue); background: var(--blue-soft); }
.upload input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.upload .u-ico { font-size: 22px; }
.upload .u-t { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.upload img.prev { max-height: 130px; margin: 10px auto 0; border-radius: 8px; }

/* ============================ 会员 ============================ */
.member-head {
  background: linear-gradient(135deg, #1d1d1f 0%, #3a3a3c 100%);
  color: #f5f5f7; border-radius: var(--radius); padding: 24px 20px; position: relative; overflow: hidden;
}
.member-head::after {
  content: ""; position: absolute; right: -30px; top: -40px; width: 170px; height: 170px;
  border-radius: 50%; background: radial-gradient(circle, rgba(0, 113, 227, .38), transparent 70%);
}
.member-top { display: flex; align-items: center; gap: 13px; position: relative; z-index: 1; }
.avatar {
  width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .14);
  display: flex; align-items: center; justify-content: center; font-size: 21px; font-weight: 600;
  color: #fff; flex: none; border: 1px solid rgba(255, 255, 255, .18);
}
.member-name { font-size: 18px; font-weight: 600; }
.lv-badge {
  display: inline-block; padding: 2px 10px; border-radius: 980px; font-size: 11px; font-weight: 600;
  background: rgba(255, 255, 255, .16); color: #fff; margin-top: 4px;
}
.lv-badge.gold { background: #c9a227; color: #23180a; }
.lv-badge.black { background: #fff; color: #1d1d1f; }
.lv-badge.silver { background: #dedee3; color: #3a3a3c; }

.pts-box { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; position: relative; z-index: 1; }
.pts-cell { background: rgba(255, 255, 255, .1); border-radius: var(--radius-sm); padding: 13px 15px; }
.pts-cell .v { font-size: 25px; font-weight: 700; letter-spacing: -.03em; }
.pts-cell .l { font-size: 11px; color: #a1a1a6; margin-top: 2px; }

.lv-track { display: flex; gap: 6px; margin-top: 16px; }
.lv-seg { flex: 1; height: 5px; border-radius: 980px; background: rgba(255, 255, 255, .16); }
.lv-seg.on { background: var(--blue); }

/* 积分流水 */
.log-item { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.log-item:last-child { border-bottom: 0; }
.log-item .r { flex: 1; font-size: 14px; }
.log-item .t { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.log-item .d { font-size: 16px; font-weight: 600; flex: none; }
.log-item .d.plus { color: var(--red); }
.log-item .d.minus { color: var(--green); }

/* ============================ 表格（后台） ============================ */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
table.tbl th, table.tbl td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.tbl th { font-weight: 500; color: var(--ink-2); font-size: 12px; white-space: nowrap; background: var(--bg-soft); }
table.tbl tr:hover td { background: #fcfcfd; }
table.tbl td.act { white-space: nowrap; }
.thumb-sm { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; background: var(--bg-alt); }
.thumb-lg { width: 100%; max-width: 190px; border-radius: 10px; object-fit: cover; }

/* ============================ 状态标签 ============================ */
.st { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 980px; font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.st-pending { background: #fff6e5; color: #9a6b00; }
.st-approved, .st-done { background: #e6f6ea; color: var(--green); }
.st-rejected, .st-cancelled { background: #fdeaea; color: var(--red); }
.st-shipped { background: var(--blue-soft); color: #0058b0; }
.st-normal { background: var(--bg-alt); color: var(--ink-2); }

/* ============================ 提示 ============================ */
.flash-wrap { position: fixed; top: calc(var(--nav-h) + 10px); left: 50%; transform: translateX(-50%); z-index: 1200; width: calc(100% - 32px); max-width: 460px; pointer-events: none; }
.flash {
  padding: 13px 17px; border-radius: var(--radius-sm); margin-bottom: 9px; font-size: 14px;
  box-shadow: var(--shadow-lg); background: #fff; border-left: 3px solid var(--blue);
  animation: slideDown .35s var(--ease);
}
.flash.ok { border-left-color: var(--green); }
.flash.err { border-left-color: var(--red); }
.flash.warn { border-left-color: #d68f00; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tab-h) + 20px); transform: translate(-50%, 14px);
  background: rgba(29, 29, 31, .94); color: #fff; padding: 11px 20px; border-radius: 980px;
  font-size: 13.5px; z-index: 1300; opacity: 0; pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 积分券条 */
.coupon {
  background: linear-gradient(100deg, #fdf6e3 0%, #fff8ea 100%);
  border: 1px solid #f0e0b8; border-radius: var(--radius-sm); padding: 13px 16px;
  font-size: 13px; color: #7a5c14; display: flex; gap: 10px; align-items: center;
}
.coupon .b { font-size: 19px; }

/* 空状态 */
.empty { text-align: center; padding: 54px 20px; color: var(--ink-2); }
.empty .e-ico { font-size: 42px; margin-bottom: 14px; opacity: .55; }
.empty .e-t { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }

/* 结算行 */
.sum-row { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; font-size: 14px; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.sum-row.total .v { color: var(--red); }
.sum-row .v { font-weight: 600; }

.cart-item { display: flex; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.cart-item img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; background: var(--bg-alt); flex: none; }
.cart-item .ci-main { flex: 1; min-width: 0; }
.cart-item .ci-n { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.cart-item .ci-m { font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.cart-item .ci-b { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; gap: 8px; }
.cart-item .ci-p { font-size: 15px; font-weight: 600; }

/* step 指示 */
.steps { display: flex; gap: 6px; margin: 16px 0; }
.step { flex: 1; text-align: center; font-size: 11px; color: var(--ink-3); }
.step .bar { height: 3px; border-radius: 980px; background: var(--line-soft); margin-bottom: 7px; }
.step.on { color: var(--blue); font-weight: 600; }
.step.on .bar { background: var(--blue); }

/* ============================ 后台布局 ============================ */
.adm { display: flex; min-height: 100vh; }
.adm-side {
  width: 224px; flex: none; background: #1d1d1f; color: #f5f5f7;
  padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.adm-brand { display: flex; align-items: center; gap: 9px; padding: 6px 8px 20px; }
.adm-brand img { height: 15px; filter: brightness(0) invert(1); }
.adm-side .g { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #6e6e73; padding: 14px 10px 6px; }
.adm-side a {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 9px;
  color: #c7c7cc; font-size: 13.5px; text-decoration: none; margin-bottom: 1px;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.adm-side a:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.adm-side a.on { background: var(--blue); color: #fff; }
.adm-side a .badge {
  margin-left: auto; background: var(--red); color: #fff; font-size: 10px; font-weight: 700;
  min-width: 17px; height: 17px; padding: 0 5px; border-radius: 980px;
  display: flex; align-items: center; justify-content: center;
}
.adm-main { flex: 1; min-width: 0; background: var(--bg-alt); padding: 26px; }
.adm-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.adm-head h1 { font-size: 24px; margin: 0; letter-spacing: -.025em; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.stat { background: #fff; border-radius: var(--radius-sm); padding: 17px; border: 1px solid var(--line-soft); }
.stat .v { font-size: 27px; font-weight: 700; letter-spacing: -.03em; }
.stat .l { font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.stat.hl { background: var(--ink); color: #fff; border-color: var(--ink); }
.stat.hl .l { color: #a1a1a6; }

/* ============================ 页脚 ============================ */
.footer { background: var(--bg-alt); padding: 40px 0 calc(28px); margin-top: 30px; border-top: 1px solid var(--line-soft); }
.footer .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 26px; }
.footer h5 { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 10px; font-weight: 600; }
.footer a { display: block; color: var(--ink-2); font-size: 13px; padding: 4px 0; text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: none; }
.footer .cp { font-size: 12px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 18px; line-height: 1.7; }

/* ============================ 响应式：平板/桌面 ============================ */
@media (min-width: 620px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .p-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .gal-grid { grid-template-columns: repeat(3, 1fr); }
  .grid2 { grid-template-columns: 1fr 1fr; }
  .footer .cols { grid-template-columns: repeat(4, 1fr); }
  .gal-marq .gal-item { width: 31%; }
  .sec { padding: 76px 0; }
  .hero { padding: 96px 0 84px; }
}
@media (min-width: 900px) {
  .p-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-art img { aspect-ratio: 21/9; }
}
@media (max-width: 619px) {
  .nav-links { display: none; }
  .burger { display: inline-flex; }
  .hide-sm { display: block; }
  .dd { display: block; }
  .adm { display: block; }
  .adm-side {
    position: static; width: auto; height: auto; display: flex; flex-wrap: wrap; gap: 4px;
    padding: 12px; border-radius: 0 0 var(--radius) var(--radius);
  }
  .adm-brand { width: 100%; padding-bottom: 10px; }
  .adm-side .g { display: none; }
  .adm-side a { font-size: 12.5px; padding: 7px 11px; }
  .adm-main { padding: 16px; }
  .pd-sticky {
    position: sticky; bottom: calc(var(--tab-h) + 6px); background: #fff; z-index: 60;
    margin: 14px -20px 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line-soft); display: flex; gap: 10px; align-items: center;
  }
}
@media (min-width: 620px) { .pd-sticky { margin-top: 20px; } }

/* ---- 授权门店卡片（官网展示，仅审核通过的一级代理商） ---- */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.store-card { background: var(--card, #fff); border: 1px solid var(--line-soft, rgba(0,0,0,.06)); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.store-img { aspect-ratio: 16 / 9; background: var(--bg-alt, #f5f5f7); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.store-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-ph { font-size: 34px; opacity: .45; }
.store-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.store-body .strong { font-size: 15px; }
@media (max-width: 560px) { .store-grid { grid-template-columns: 1fr; } }

/* ===== 花纹款式选择 ===== */
.pat-box{border:1px solid var(--line-soft);border-radius:16px;padding:14px;margin-bottom:14px;background:rgba(0,0,0,.015)}
.pat-hd{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.pat-opts{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.pat-opt{display:flex;align-items:center;gap:8px;border:2px solid var(--line-soft);border-radius:12px;
  padding:10px 12px;cursor:pointer;transition:.18s;background:#fff}
.pat-opt:has(input:checked){border-color:var(--ink);background:rgba(0,0,0,.035)}
.pat-opt input{accent-color:var(--ink)}
.pat-nm{font-size:14px;font-weight:600;flex:1}
.pat-fee{font-size:11px;color:var(--ink-2);white-space:nowrap}
@media(max-width:520px){.pat-opts{grid-template-columns:1fr}}
