/* ============================================================
   顾客预订 H5（移动优先）
   - 大面积勾选卡片，适合手指点击
   - 底部留出 iPhone Home 条安全区
   ============================================================ */

:root {
  --customer-red: #c62828;
  --customer-red-dark: #a51f1f;
  --customer-bg: #f7f4ef;
  --customer-line: #e7e0d7;
  --customer-muted: #7b746b;
}

body.customer-page {
  margin: 0;
  background: var(--customer-bg);
  color: #2c2824;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  font-size: 15px;
}

.customer-header {
  background: #fff;
  border-bottom: 1px solid var(--customer-line);
  padding: 10px 0;
  padding-top: max(10px, env(safe-area-inset-top));
}

.customer-header-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.customer-logo {
  height: 40px;
  width: auto;
  display: block;
}

.customer-brand {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.customer-sub {
  color: var(--customer-muted);
  font-size: 12px;
  line-height: 1.3;
}

.customer-main {
  max-width: 820px;
  padding-top: 16px;
  padding-bottom: calc(26px + env(safe-area-inset-bottom));
}

.customer-hero {
  text-align: center;
  padding: 6px 0 14px;
}

.customer-hero h1 {
  margin: 0 0 4px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
}

.customer-hero p {
  margin: 0;
  color: var(--customer-muted);
  font-size: 13px;
}

.customer-card {
  background: #fff;
  border: 1px solid var(--customer-line);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(44, 40, 36, 0.04);
}

.customer-card h2 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
}

.customer-card .form-label {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #4c463f;
}

.customer-card .form-control,
.customer-card .form-select {
  min-height: 46px;
  border-color: #d9d1c7;
  border-radius: 10px;
}

.customer-card textarea.form-control {
  min-height: 88px;
  resize: vertical;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.section-head h2 {
  margin: 0;
}

.section-head span {
  color: var(--customer-muted);
  font-size: 12px;
}

.order-choice {
  display: block;
  width: 100%;
  min-height: 60px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--customer-line);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.order-choice.selected {
  border-color: var(--customer-red);
  background: #fff7f7;
  box-shadow: 0 0 0 1px rgba(198, 40, 40, 0.12);
}

/* 点击这一行切换勾选；数量和加购控件在 label 外，避免误触 */
.choice-main {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  cursor: pointer;
}

.order-check {
  width: 24px !important;
  height: 24px !important;
  margin: 0 !important;
  flex: 0 0 auto;
  accent-color: var(--customer-red);
}

.choice-info {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

.choice-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

/* 顾客端单品图片；未上传时显示占位块 */
.product-thumb {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 10px;
  object-fit: cover;
  background: #f3efea;
}

.product-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0a79d;
  font-size: 12px;
  font-weight: 600;
}

.choice-desc {
  margin-top: 2px;
  color: var(--customer-muted);
  font-size: 11.5px;
  line-height: 1.45;
  word-break: break-word;
}

.choice-price {
  flex: 0 0 auto;
  color: var(--customer-red);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

/* 数量 / 加购控件：勾选后显示 */
.choice-controls,
.addon-qty-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--customer-line);
}

.qty-label {
  color: var(--customer-muted);
  font-size: 12px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #d9d1c7;
  border-radius: 8px;
  background: #fff;
  color: #2c2824;
  font-size: 18px;
  line-height: 1;
  touch-action: manipulation;
}

.qty-btn:active {
  background: #f3efea;
}

.qty-input {
  width: 46px;
  height: 34px;
  padding: 0 2px;
  border: 1px solid #d9d1c7;
  border-radius: 8px;
  background: #fff;
  color: #2c2824;
  font-size: 16px;
  text-align: center;
}

.addon-box {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--customer-line);
}

.addon-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4c463f;
  font-size: 12.5px;
  line-height: 1.4;
  cursor: pointer;
}

.addon-check {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  flex: 0 0 auto;
  accent-color: var(--customer-red);
}

.addon-price {
  color: var(--customer-red);
  font-weight: 700;
}

.addon-qty-control {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 0;
}

/* hidden 属性优先于 display:flex，避免未勾选时数量控件露出 */
.order-choice [hidden] {
  display: none !important;
}

.order-summary {
  position: static;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--customer-muted);
  font-size: 14px;
}

.summary-row.total {
  margin: 10px 0 14px;
  color: #2c2824;
  font-size: 16px;
}

.summary-row.total strong {
  color: var(--customer-red);
  font-size: 26px;
  line-height: 1.2;
}

.btn-brand {
  min-height: 50px;
  border-color: var(--customer-red);
  background: var(--customer-red);
  color: #fff;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
}

.btn-brand:hover,
.btn-brand:active {
  border-color: var(--customer-red-dark);
  background: var(--customer-red-dark);
  color: #fff;
}

.customer-hint {
  margin: 10px 0 0;
  text-align: center;
  color: var(--customer-muted);
  font-size: 12px;
}

.customer-footer {
  padding: 10px 16px calc(18px + env(safe-area-inset-bottom));
  text-align: center;
  color: #9a938a;
  font-size: 11px;
}

.customer-success {
  max-width: 560px;
  margin: 26px auto;
  padding: 34px 20px;
  text-align: center;
}

.success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #eaf7ef;
  color: #15803d;
  font-size: 32px;
  font-weight: 700;
}

.customer-success h1 {
  margin: 0 0 6px;
  font-size: 24px;
}

.customer-success .order-no {
  margin: 14px 0;
  color: var(--customer-muted);
  font-size: 15px;
}

.customer-success .order-no strong {
  color: var(--customer-red);
  font-size: 28px;
}

.customer-success .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--customer-line);
  font-size: 14px;
}

.customer-success .detail-row:last-of-type {
  border-bottom: 0;
}

@media (max-width: 575.98px) {
  .customer-main {
    padding-left: 12px;
    padding-right: 12px;
  }

  .customer-hero h1 {
    font-size: 23px;
  }

  .customer-card {
    padding: 14px;
    border-radius: 14px;
  }

  .customer-logo {
    height: 34px;
  }

  .customer-brand {
    font-size: 15px;
  }
}

/* ============================================================
   2027 丁未羊年 · 新春主题
   红金年味 + 米白卡片，保证表单仍然清楚好读
   ============================================================ */
:root {
  --customer-red: #9f1d1d;
  --customer-red-dark: #791313;
  --customer-bg: #5b1010;
  --customer-line: #e4d2ad;
  --customer-muted: #7c6a50;
  --festive-red: #7b1717;
  --festive-red-deep: #430a0a;
  --festive-gold: #e8c16d;
  --festive-gold-deep: #c69537;
  --festive-cream: #fff9ec;
  --festive-ink: #392416;
}

body.customer-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 218, 133, 0.2), transparent 28%),
    radial-gradient(circle at 96% 18%, rgba(255, 218, 133, 0.12), transparent 30%),
    linear-gradient(180deg, #7d1a1a 0%, #5b1010 46%, #3c0808 100%);
  background-attachment: fixed;
  color: var(--festive-ink);
  position: relative;
}

body.customer-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    radial-gradient(circle, rgba(255, 225, 158, 0.28) 1.3px, transparent 1.6px),
    linear-gradient(135deg, transparent 46%, rgba(255, 225, 158, 0.055) 47%, transparent 49%);
  background-size: 38px 38px, 28px 28px;
}

body.customer-page::after {
  content: "";
  position: fixed;
  inset: 9px;
  z-index: 0;
  border: 1px solid rgba(232, 193, 109, 0.24);
  border-radius: 18px;
  pointer-events: none;
}

.festive-decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.festive-lantern {
  position: absolute;
  top: 142px;
  width: 36px;
  height: 48px;
  border-radius: 50% 50% 44% 44%;
  background: radial-gradient(circle at 50% 35%, #ffe0a0 0 7%, #c92b2b 8% 64%, #8d1515 65%);
  border: 1px solid rgba(255, 215, 132, 0.55);
  box-shadow: 0 0 22px rgba(255, 190, 82, 0.3), inset 0 0 12px rgba(100, 8, 8, 0.35);
}

.festive-lantern::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 8px;
  width: 19px;
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(180deg, #f7dc9b, #c9963b);
}

.festive-lantern::after {
  content: "";
  position: absolute;
  bottom: -13px;
  left: 17px;
  width: 1px;
  height: 13px;
  background: #e5bf67;
  box-shadow: 0 3px 0 1px #c12626, 0 6px 0 1px #c12626;
}

.lantern-left {
  left: max(24px, calc(50% - 585px));
}

.lantern-right {
  right: max(24px, calc(50% - 585px));
}

.festive-goat {
  position: absolute;
  right: -36px;
  top: 178px;
  color: rgba(255, 218, 143, 0.075);
  font-family: "STKaiti", "KaiTi", "Kaiti SC", serif;
  font-size: 270px;
  line-height: 1;
  transform: rotate(-8deg);
  user-select: none;
}

.customer-header {
  position: relative;
  z-index: 3;
  padding: 0 0 12px;
  padding-top: env(safe-area-inset-top);
  background: linear-gradient(180deg, rgba(123, 23, 23, 0.98), rgba(88, 13, 13, 0.98));
  border-bottom: 2px solid var(--festive-gold);
  box-shadow: 0 8px 24px rgba(20, 0, 0, 0.3);
}

.festive-ribbon {
  padding: 8px 12px 7px;
  border-bottom: 1px solid rgba(232, 193, 109, 0.24);
  background: rgba(0, 0, 0, 0.12);
  color: #f1d79f;
  font-size: 11px;
  letter-spacing: 2px;
  text-align: center;
}

.festive-ribbon span {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 7px;
  border: 1px solid rgba(232, 193, 109, 0.55);
  border-radius: 4px;
  color: #ffe9b4;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

.customer-header-inner {
  padding-top: 10px;
  align-items: center;
}

.customer-logo {
  height: 42px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #fff9ed;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.customer-brand {
  color: #fff3d1;
  font-size: 18px;
  letter-spacing: 1px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.customer-sub {
  margin-top: 2px;
  color: #e8c16d;
  font-size: 12px;
  letter-spacing: 1px;
}

.customer-main {
  position: relative;
  z-index: 2;
}

.customer-hero {
  padding: 24px 8px 20px;
  color: #fff3d1;
}

.festive-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  padding: 5px 12px 5px 6px;
  border: 1px solid rgba(232, 193, 109, 0.52);
  border-radius: 999px;
  background: rgba(68, 8, 8, 0.28);
  color: #ffe6ac;
  font-size: 11px;
  letter-spacing: 1.5px;
}

.lamb-mark {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f7d987, #d5a33f);
  color: #791313;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 15px;
  font-weight: 700;
}

.customer-hero h1 {
  margin: 0 0 8px;
  color: #ffe8b3;
  font-family: "STKaiti", "KaiTi", "Kaiti SC", serif;
  font-size: 31px;
  font-weight: 700;
  letter-spacing: 5px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.18), 0 0 24px rgba(255, 198, 80, 0.16);
}

.customer-hero p {
  color: #e6c88f;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.customer-card {
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: linear-gradient(145deg, #fffdf6, #fff7e5);
  border: 1px solid rgba(198, 149, 55, 0.46);
  box-shadow: 0 16px 34px rgba(30, 0, 0, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.customer-card::after {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: 0;
  border: 1px solid rgba(198, 149, 55, 0.1);
  border-radius: 10px;
  pointer-events: none;
}

.customer-card > * {
  position: relative;
  z-index: 1;
}

.customer-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5d1b13;
  font-family: "STKaiti", "KaiTi", "Kaiti SC", serif;
  font-size: 18px;
  letter-spacing: 1px;
}

.customer-card h2::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, #d7aa4e, #941919);
}

.customer-card .form-label {
  color: #704b2e;
  font-weight: 600;
}

.customer-card .form-control,
.customer-card .form-select {
  border-color: #ddc9a8;
  background: #fffdf7;
  color: #3b2a1b;
}

.customer-card .form-control:focus,
.customer-card .form-select:focus {
  border-color: #c69537;
  box-shadow: 0 0 0 0.2rem rgba(198, 149, 55, 0.18);
}

.customer-card .form-control::placeholder {
  color: #b3a18b;
}

.section-head span {
  color: #8a6b45;
}

.order-choice {
  background: rgba(255, 252, 243, 0.92);
  border-color: #e1d0b1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.order-choice.selected {
  border-color: #c69537;
  background: #fff6dd;
  box-shadow: 0 0 0 1px rgba(198, 149, 55, 0.22), 0 7px 16px rgba(123, 23, 23, 0.08);
}

.order-check,
.addon-check {
  accent-color: #a51f1f;
}

.choice-name {
  color: #3f2a18;
}

.choice-desc {
  color: #8a755c;
}

.choice-price {
  color: #a51f1f;
}

.product-thumb {
  border: 1px solid rgba(198, 149, 55, 0.28);
}

.choice-controls,
.addon-box,
.addon-qty-control {
  border-top-color: #e6d7bd;
}

.qty-btn,
.qty-input {
  border-color: #ddc9a8;
  background: #fffdf7;
  color: #432b17;
}

.qty-btn:active {
  background: #f7ebd4;
}

.customer-hint {
  color: #e2c58e;
}

.order-summary {
  background: linear-gradient(135deg, #8e1d1d, #5e1010);
  border-color: #d4a84f;
  box-shadow: 0 18px 38px rgba(25, 0, 0, 0.32), inset 0 0 0 1px rgba(255, 214, 127, 0.14);
}

.order-summary .summary-row {
  color: #ead3a7;
}

.order-summary .summary-row.total {
  color: #fff4d4;
}

.order-summary .summary-row.total strong {
  color: #ffd77a;
}

.order-summary .btn-brand {
  border-color: #c69438;
  background: linear-gradient(180deg, #f5d78d, #d5a33d);
  color: #5d120b;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.order-summary .btn-brand:hover,
.order-summary .btn-brand:active {
  border-color: #b9872c;
  background: linear-gradient(180deg, #ffe3a2, #e3b34b);
  color: #4e0d08;
}

.customer-footer {
  position: relative;
  z-index: 2;
  color: #d9b978;
  letter-spacing: 0.5px;
}

.customer-success {
  background: linear-gradient(145deg, #fffdf6, #fff6e2);
  border: 1px solid rgba(198, 149, 55, 0.45);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(30, 0, 0, 0.24);
}

.success-icon {
  background: #f7e1ad;
  color: #961b1b;
}

.customer-success h1 {
  color: #5d1b13;
  font-family: "STKaiti", "KaiTi", "Kaiti SC", serif;
}

.customer-success .order-no,
.customer-success .detail-row {
  color: #6f5239;
}

.customer-success .order-no strong {
  color: #a51f1f;
}

@media (max-width: 820px) {
  .festive-lantern {
    display: none;
  }

  .festive-goat {
    top: 205px;
    right: -46px;
    font-size: 190px;
  }

  .customer-header {
    padding-bottom: 10px;
  }

  .festive-ribbon {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .customer-logo {
    height: 38px;
    padding: 3px 7px;
  }

  .customer-brand {
    font-size: 16px;
  }

  .customer-hero {
    padding: 20px 4px 16px;
  }

  .customer-hero h1 {
    font-size: 27px;
    letter-spacing: 4px;
  }

  .customer-hero p {
    font-size: 12px;
    line-height: 1.65;
  }
}

.customer-icp {
  display: inline-block;
  margin-top: 5px;
  color: #8f806f;
  font-size: 11px;
  text-decoration: none;
}

.customer-icp:hover {
  color: #a51f1f;
  text-decoration: underline;
}

