/* ==================================================================
   福先堂点单端 —— 黑金简约庄重风格（iPad 触屏适配）
   ================================================================== */
:root {
  --bg: #101010;
  --bg2: #171614;
  --card: #1d1b18;
  --card2: #242118;
  --gold: #c9a45c;
  --gold-bright: #e6c887;
  --gold-dim: #8a744d;
  --text: #ece5d8;
  --text-dim: #9a938a;
  --line: #35312a;
  --red: #c05b52;
  --radius: 12px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Heiti SC", sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-touch-callout: none;
  user-select: none;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; outline: none; }

/* ---------------- 顶部 ---------------- */
.topbar {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: linear-gradient(180deg, #16130d 0%, #121110 100%);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; flex-direction: column; gap: 4px; }
.brand-mark {
  font-family: "STKaiti", "KaiTi", "STSong", serif;
  font-size: 34px;
  letter-spacing: 8px;
  color: var(--gold);
  font-weight: 700;
}
.brand-sub { font-size: 13px; color: var(--text-dim); letter-spacing: 3px; }
.topbar-right {
  font-size: 15px; color: var(--gold-dim); letter-spacing: 6px;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 22px 8px 28px;
}

/* ---------------- 分类标签 ---------------- */
.catbar {
  display: flex;
  gap: 12px;
  padding: 16px 28px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.catbar::-webkit-scrollbar { display: none; }
.cat-tab {
  flex: none;
  min-height: 52px;
  padding: 0 30px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text-dim);
  font-size: 17px;
  letter-spacing: 2px;
  transition: all .15s;
}
.cat-tab.active {
  background: linear-gradient(180deg, #d8b46c, #b3904d);
  color: #1b1509;
  border-color: #d8b46c;
  font-weight: 700;
}

/* ---------------- 商品网格 ---------------- */
.goods-wrap { position: fixed; top: 87px; bottom: 108px; left: 0; right: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.goods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
  padding: 22px 28px 30px;
}
.empty-tip { text-align: center; color: var(--text-dim); padding: 80px 0; font-size: 16px; letter-spacing: 2px; }

.goods-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .15s;
}
.goods-card:active { border-color: var(--gold-dim); }

/* 缩略图片位 */
.gc-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 50% 42%, #262218 0%, #191713 70%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.gc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gc-thumb .thumb-empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: #4d4738;
}
.thumb-empty .empty-mark {
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 40px; color: #514a38; letter-spacing: 4px;
}
.thumb-empty .empty-txt { font-size: 12px; letter-spacing: 3px; }

/* 详情 i 图标（角标） */
.gc-info {
  position: absolute; right: 10px; top: 10px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(12, 10, 7, .72);
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-size: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.gc-info:active { background: rgba(201, 164, 92, .35); }
.gc-imgcount {
  position: absolute; left: 10px; bottom: 10px;
  font-size: 12px; color: #d8cba8;
  background: rgba(12,10,7,.66);
  border-radius: 6px; padding: 3px 8px; letter-spacing: 1px;
  display: none;
}

.gc-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.gc-name {
  font-size: 17px;
  line-height: 1.45;
  min-height: 50px;
  color: var(--text);
  letter-spacing: 1px;
}
.gc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.gc-price { color: var(--gold-bright); font-size: 22px; font-weight: 700; }
.gc-price .yen { font-size: 14px; margin-right: 2px; }
.gc-price .unit { font-size: 13px; color: var(--text-dim); font-weight: 400; margin-left: 4px; }
.gc-price.negotiable { font-size: 18px; }

/* 加号按钮（原有加入购物车逻辑） */
.gc-add {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(180deg, #d8b46c, #b3904d);
  color: #1b1509;
  font-size: 30px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,.45);
}
.gc-add:active { transform: scale(.92); }
.gc-add.disabled {
  background: #2c2922;
  color: #615a48;
  box-shadow: none;
}

/* ---------------- 底部操作栏 ---------------- */
.bottombar {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: calc(108px + var(--safe-b));
  padding: 14px 28px calc(14px + var(--safe-b));
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(180deg, #14120e 0%, #0e0d0b 100%);
  border-top: 1px solid var(--line);
  z-index: 30;
}
.btn-cart {
  position: relative;
  min-width: 128px;
  height: 64px;
  border-radius: var(--radius);
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-size: 19px;
  letter-spacing: 4px;
}
.cart-badge {
  position: absolute; right: -8px; top: -8px;
  min-width: 34px; height: 34px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 8px;
  border: 2px solid #14120e;
}
.sum-area { flex: 1; display: flex; flex-direction: column; align-items: center; }
.sum-label { font-size: 13px; color: var(--text-dim); letter-spacing: 4px; }
.sum-price { font-size: 30px; color: var(--gold-bright); font-weight: 700; margin-top: 2px; }
.btn-sign {
  min-width: 220px;
  height: 64px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #d8b46c, #b3904d);
  color: #1b1509;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 4px;
}
.btn-sign:active { transform: scale(.97); }

/* ---------------- 通用按钮 ---------------- */
.btn {
  height: 56px;
  padding: 0 34px;
  border-radius: 10px;
  font-size: 18px;
  letter-spacing: 3px;
}
.btn-gold {
  background: linear-gradient(180deg, #d8b46c, #b3904d);
  color: #1b1509;
  font-weight: 700;
}
.btn-gold:active { transform: scale(.97); }
.btn-gold:disabled { background: #2c2922; color: #615a48; }
.btn-ghost {
  border: 1px solid var(--gold-dim);
  color: var(--gold);
}
.btn-ghost:active { background: rgba(201,164,92,.12); }
.btn-big { height: 64px; font-size: 20px; min-width: 220px; }

/* ---------------- 遮罩/弹窗通用 ---------------- */
.mask {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .68);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
}
.mask.show { display: flex; animation: fadeIn .18s ease; }
.mask-bottom { align-items: flex-end; }
.mask-full { z-index: 120; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-close {
  position: absolute; right: 14px; top: 14px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(20, 17, 12, .85);
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 20px;
  z-index: 5;
}
.modal-close:active { color: var(--gold); border-color: var(--gold-dim); }

/* ---------------- 商品详情弹窗 ---------------- */
.detail-modal {
  position: relative;
  width: min(1020px, 92vw);
  max-height: 88vh;
  background: linear-gradient(180deg, #201c14 0%, #171511 100%);
  border: 1px solid var(--gold-dim);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  animation: popIn .2s ease;
}
@keyframes popIn { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.dm-body { display: flex; width: 100%; }

.dm-left { flex: 0 0 46%; min-width: 0; background: #12100c; border-right: 1px solid var(--line); display: flex; }
.dm-right { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 30px 34px 24px; }

/* 轮播 */
.carousel { position: relative; width: 100%; display: flex; align-items: center; }
.carousel-viewport { width: 100%; overflow: hidden; }
.carousel-track { display: flex; transition: transform .28s ease; }
.carousel-track .slide { flex: 0 0 100%; aspect-ratio: 1 / 1; }
.carousel-track .slide img { width: 100%; height: 100%; object-fit: contain; display: block; background: #12100c; }
.carousel-track .slide .noimg {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: #4d4738;
}
.noimg .empty-mark { font-family: "STKaiti", "KaiTi", serif; font-size: 64px; color: #514a38; letter-spacing: 6px; }
.noimg .empty-txt { font-size: 14px; letter-spacing: 4px; }

.car-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(14, 12, 8, .75);
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-size: 30px; line-height: 1;
  z-index: 3;
}
.car-prev { left: 12px; }
.car-next { right: 12px; }
.car-arrow:active { background: rgba(201,164,92,.3); }
.car-dots {
  position: absolute; left: 0; right: 0; bottom: 14px;
  display: flex; justify-content: center; gap: 10px; z-index: 3;
}
.car-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(201,164,92,.32);
}
.car-dot.active { background: var(--gold); }

/* 详情文字 */
.dm-name {
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 28px;
  color: var(--gold-bright);
  letter-spacing: 2px;
  line-height: 1.4;
  padding-right: 50px;
}
.dm-price-row { margin-top: 14px; display: flex; align-items: baseline; gap: 6px; }
.dm-price { font-size: 34px; font-weight: 700; color: var(--gold-bright); }
.dm-price .yen { font-size: 18px; }
.dm-unit { font-size: 15px; color: var(--text-dim); }
.dm-spec {
  margin-top: 12px;
  font-size: 15px;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  letter-spacing: 1px;
  line-height: 1.6;
}
.dm-desc-title {
  margin-top: 18px;
  font-size: 14px;
  color: var(--gold-dim);
  letter-spacing: 4px;
  display: flex; align-items: center; gap: 10px;
}
.dm-desc-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* 富文本简介（可滚动，支持分段换行） */
.dm-desc {
  flex: 1;
  margin-top: 12px;
  margin-bottom: 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-size: 16.5px;
  line-height: 1.95;
  color: #cfc7b8;
  letter-spacing: .5px;
  padding-right: 8px;
  -webkit-mask-image: linear-gradient(#000 92%, transparent);
  user-select: text;
  -webkit-user-select: text;
}
.dm-desc p { margin-bottom: 12px; }
.dm-desc strong { color: var(--gold-bright); font-weight: 700; }

.dm-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* 详情弹窗窄屏堆叠（仅手机；iPad 始终保持电脑版左右分栏） */
@media (max-aspect-ratio: 4/3) and (max-width: 720px) {
  .dm-body { flex-direction: column; overflow-y: auto; max-height: 86vh; }
  .dm-left { flex: none; border-right: none; border-bottom: 1px solid var(--line); }
  .carousel-track .slide { aspect-ratio: 16 / 9; }
  .dm-right { padding: 22px 24px 20px; }
  .dm-desc { max-height: 34vh; }
}

/* ---------------- 购物明细抽屉 ---------------- */
.cart-drawer {
  width: min(760px, 100%);
  max-height: 78vh;
  background: #171511;
  border: 1px solid var(--gold-dim);
  border-bottom: none;
  border-radius: 18px 18px 0 0;
  display: flex;
  flex-direction: column;
  animation: slideUp .22s ease;
}
@keyframes slideUp { from { transform: translateY(60px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
  font-size: 19px;
  letter-spacing: 3px;
  color: var(--gold);
}
.btn-text { color: var(--red); font-size: 15px; letter-spacing: 2px; padding: 8px 10px; }
.cart-list { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 8px 26px; }
.cart-empty { text-align: center; color: var(--text-dim); padding: 44px 0; font-size: 15px; letter-spacing: 2px; }

.cart-item {
  display: flex; align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #262218;
  gap: 14px;
}
.ci-info { flex: 1; min-width: 0; }
.ci-name { font-size: 17px; letter-spacing: 1px; }
.ci-price { font-size: 14px; color: var(--text-dim); margin-top: 4px; }
.ci-price b { color: var(--gold-bright); font-size: 16px; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button {
  width: 48px; height: 48px;
  border-radius: 10px;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-size: 22px;
}
.stepper button:active { background: rgba(201,164,92,.15); }
.stepper .qty {
  min-width: 52px; text-align: center;
  font-size: 20px; font-weight: 700; color: var(--text);
}
.ci-del { width: 46px; height: 46px; color: var(--text-dim); font-size: 17px; }
.ci-del:active { color: var(--red); }

.drawer-foot {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 26px calc(18px + var(--safe-b));
  border-top: 1px solid var(--line);
}
.drawer-sum { flex: 1; font-size: 16px; color: var(--text-dim); letter-spacing: 2px; }
.drawer-sum em { font-style: normal; font-size: 28px; font-weight: 700; color: var(--gold-bright); }

/* ---------------- 签字页 ---------------- */
.sign-page {
  width: 100%; height: 100%;
  background: var(--bg);
  display: flex; flex-direction: column;
  animation: fadeIn .18s ease;
}
.sign-head {
  height: 84px;
  display: flex; align-items: center;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: #14120e;
  gap: 14px;
}
.btn-back {
  height: 52px; padding: 0 22px;
  border: 1px solid var(--line); border-radius: 10px;
  color: var(--text-dim); font-size: 16px; letter-spacing: 1px;
}
.sign-title {
  flex: 1; text-align: center;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 24px; color: var(--gold); letter-spacing: 6px;
}
.sign-head-space { width: 110px; }

.sign-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 22px 28px; }
.sign-cols { display: flex; gap: 20px; align-items: flex-start; }
.sign-left { flex: 1.15; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.sign-right { flex: 1; min-width: 0; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.panel-title {
  font-size: 15px; color: var(--gold-dim); letter-spacing: 4px;
  margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
}
.panel-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.sign-items { max-height: 30vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.si-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0; border-bottom: 1px dashed #2b2820;
  font-size: 16px;
}
.si-row .si-name { letter-spacing: 1px; }
.si-row .si-name small { color: var(--text-dim); margin-left: 8px; }
.si-row .si-amount { color: var(--gold-bright); font-weight: 700; }
.sign-total {
  text-align: right; padding-top: 14px;
  font-size: 16px; color: var(--text-dim); letter-spacing: 2px;
}
.sign-total em { font-style: normal; font-size: 30px; font-weight: 700; color: var(--gold-bright); margin-left: 8px; }

.form-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.form-row:last-child { margin-bottom: 0; }
.form-row label { width: 60px; font-size: 15px; color: var(--text-dim); letter-spacing: 2px; }
.form-row input {
  flex: 1; height: 52px;
  background: #12100c;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 16px;
  color: var(--text);
  font-size: 17px; letter-spacing: 1px;
}
.form-row input:focus { border-color: var(--gold-dim); }

.sign-note { font-size: 13.5px; color: var(--text-dim); letter-spacing: 1px; line-height: 1.8; padding: 0 4px; }

.sign-panel { display: flex; flex-direction: column; }
.canvas-wrap {
  position: relative;
  border: 1px dashed var(--gold-dim);
  border-radius: 10px;
  background: #f4efe3;
  overflow: hidden;
}
#signCanvas { display: block; width: 100%; touch-action: none; }
.canvas-hint {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #b9ac8d;
  font-size: 17px; letter-spacing: 6px;
  pointer-events: none;
  font-family: "STKaiti", "KaiTi", serif;
}
.canvas-tools { display: flex; justify-content: flex-end; margin-top: 14px; }

.sign-foot {
  padding: 16px 28px calc(16px + var(--safe-b));
  border-top: 1px solid var(--line);
  background: #14120e;
  display: flex; justify-content: center;
}

/* 签字页窄屏堆叠（仅手机；iPad 始终保持电脑版左右分栏） */
@media (max-aspect-ratio: 4/3) and (max-width: 720px) {
  .sign-cols { flex-direction: column; }
}

/* ---------------- 提交成功页 ---------------- */
.done-page {
  width: min(560px, 90vw);
  background: linear-gradient(180deg, #201c14, #171511);
  border: 1px solid var(--gold-dim);
  border-radius: 18px;
  padding: 48px 40px 38px;
  text-align: center;
  animation: popIn .22s ease;
}
.done-icon {
  width: 92px; height: 92px; margin: 0 auto 22px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-size: 46px;
  display: flex; align-items: center; justify-content: center;
}
.done-title {
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 28px; color: var(--gold-bright); letter-spacing: 6px;
}
.done-sub { margin-top: 12px; color: var(--text-dim); font-size: 17px; letter-spacing: 2px; }
.done-sub em { font-style: normal; color: var(--text); font-weight: 700; letter-spacing: 1px; }
.done-actions { display: flex; gap: 16px; justify-content: center; margin-top: 34px; }

/* ---------------- 轻提示 ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 140px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(28, 24, 16, .95);
  border: 1px solid var(--gold-dim);
  color: var(--gold-bright);
  font-size: 16px; letter-spacing: 2px;
  padding: 16px 30px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: all .2s;
  z-index: 999;
  max-width: 80vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- 打印样式（白底黑字，A4） ---------------- */
#printArea { display: none; }

@media print {
  body * { visibility: hidden !important; }
  #printArea, #printArea * { visibility: visible !important; }
  #printArea {
    display: block !important;
    position: absolute; left: 0; top: 0;
    width: 100%;
    background: #fff !important;
    color: #111 !important;
    font-family: "STSong", "SimSun", serif;
  }
  .print-sheet { width: 190mm; margin: 0 auto; padding: 10mm 0; color: #111; }
  .print-brand {
    text-align: center; font-family: "STKaiti", "KaiTi", serif;
    font-size: 26px; font-weight: 700; letter-spacing: 10px; color: #111;
  }
  .print-sub { text-align: center; font-size: 12px; letter-spacing: 4px; color: #444; margin-top: 4px; }
  .print-title {
    text-align: center; font-size: 17px; letter-spacing: 8px;
    margin: 14px 0 6px; padding-bottom: 8px; border-bottom: 2px solid #111;
  }
  .print-meta { display: flex; justify-content: space-between; font-size: 12.5px; color: #333; padding: 8px 2px; }
  .print-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
  .print-table th, .print-table td {
    border: 1px solid #333; padding: 8px 10px;
    font-size: 13px; text-align: center; color: #111;
  }
  .print-table th { background: #efeadf; letter-spacing: 2px; }
  .print-table td.t-left { text-align: left; }
  .print-total {
    text-align: right; font-size: 14px; margin-top: 10px; letter-spacing: 1px;
  }
  .print-total b { font-size: 18px; }
  .print-sign-area {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-top: 26px;
  }
  .print-sign-box { text-align: center; }
  .print-sign-box img { height: 84px; max-width: 60mm; object-fit: contain; }
  .print-sign-line { border-top: 1px solid #333; margin-top: 6px; padding-top: 6px; font-size: 12.5px; color: #333; letter-spacing: 2px; }
  .print-foot {
    margin-top: 26px; border-top: 1px dashed #999; padding-top: 10px;
    font-size: 11.5px; color: #555; line-height: 1.8; letter-spacing: 1px;
  }
}

/* ==================================================================
   商品详情弹窗 · 演示视频区（黑金庄重 · iPad 触屏）
   ================================================================== */
.dm-left { flex-direction: column; overflow-y: auto; }

.dm-videos {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 18px;
  border-top: 1px solid var(--line);
  background: #0e0d0b;
}
.dm-videos-title {
  color: var(--gold, #c9a45c);
  font-size: 15px;
  letter-spacing: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dm-videos-title .dv-mark {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid #8a744d;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; color: #e6c887;
  background: rgba(201,164,92,.08);
}
.dm-videos-title .dv-count {
  color: #9a938a; font-size: 12.5px; letter-spacing: 1px;
}
.dm-video-chips {
  display: flex; gap: 8px; overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}
.dm-video-chips::-webkit-scrollbar { height: 4px; }
.dm-video-chips::-webkit-scrollbar-thumb { background: #35312a; border-radius: 2px; }
.dv-chip {
  flex: none;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 20px;
  border: 1px solid #35312a;
  background: #191713;
  color: #9a938a;
  font-size: 13.5px;
  letter-spacing: 1px;
}
.dv-chip.active {
  border-color: #c9a45c;
  color: #e6c887;
  background: rgba(201,164,92,.12);
}
#dmVideo {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  border: 1px solid #35312a;
  display: block;
}
/* iPad Safari 全屏按钮与控制条放大适配手指 */
#dmVideo::-webkit-media-controls-enclosure { border-radius: 10px; }

/* ==================================================================
   桌面级丝滑优化（iPad 布局与电脑版一致 + 触控手感优化）
   ================================================================== */

/* 1. 点击零延迟：去除双击缩放等待 */
button, .cat-tab, .goods-card, .gc-add, .gc-info, .dv-chip,
.stepper button, .car-arrow, .modal-close, .btn-text, .ci-del, input {
  touch-action: manipulation;
}

/* 2. 滚动丝滑：弹性惯性滚动 + 防滚动穿透（弹窗内滚动不带动底层） */
html, body { overscroll-behavior: none; }
.goods-wrap, .catbar, .dm-desc, .dm-left, .cart-list,
.sign-body, .sign-items, .dm-video-chips {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* 3. 按压反馈顺滑（缩放/变色带过渡，不再生硬跳变） */
button, .cat-tab, .goods-card, .gc-add, .btn, .car-arrow, .dv-chip,
.stepper button, .modal-close, .btn-cart, .btn-sign {
  transition: transform .12s ease, border-color .15s ease,
              background-color .15s ease, filter .15s ease;
}
.goods-card:active { transform: scale(.985); border-color: var(--gold-dim); }

/* 4. 电脑版同款悬停效果（鼠标走 PC、iPad 按压同感受） */
@media (hover: hover) and (pointer: fine) {
  .goods-card { cursor: pointer; }
  .goods-card:hover {
    border-color: var(--gold-dim);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  }
  .cat-tab:hover { border-color: var(--gold-dim); color: var(--text); }
  .btn-gold:hover, .gc-add:hover, .btn-sign:hover { filter: brightness(1.07); }
  .btn-ghost:hover, .btn-cart:hover { background: rgba(201, 164, 92, .1); }
  .car-arrow:hover, .gc-info:hover { background: rgba(201, 164, 92, .3); }
  .modal-close:hover { color: var(--gold); border-color: var(--gold-dim); }
  .dv-chip:hover { border-color: var(--gold-dim); color: var(--text); }
  .ci-del:hover { color: var(--red); }
  .btn-back:hover { border-color: var(--gold-dim); color: var(--text); }
}

/* 5. 动画 GPU 加速：弹窗、轮播、抽屉全部丝滑不掉帧 */
.detail-modal, .cart-drawer, .done-page, .sign-page, .carousel-track {
  will-change: transform, opacity;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
