﻿/* ============================================================
 * hyzs 模板（红金风格）独立样式
 * 作用域全部以 .hyzs-root 起头，避免污染其他模板/页面
 * ============================================================ */

/* 基础重置（仅作用于 hyzs） */
.hyzs-root,
.hyzs-root * { box-sizing: border-box; }

.hyzs-root {
  min-height: 100vh;
  background: #8f0d14;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  /* 内部所有 em 单位都基于该 font-size，与外层 html 的 rem 适配脚本解耦 */
  font-size: 16px;
  line-height: 1.5;
  /* 桌面端居中显示一份手机宽度容器，避免在 PC 上拉满全屏看起来过大/留白 */
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 0 32px rgba(0,0,0,0.45);
  overflow-x: hidden;
}
@media (max-width: 520px) {
  .hyzs-root {
    max-width: 100%;
    box-shadow: none;
  }
}
/* 让浏览器整体背景也是深红，避免 .hyzs-root 居中限宽后两侧露白 */
html:has(.hyzs-root), body:has(.hyzs-root) { background: #4a070b; }
.hyzs-root img { max-width: 100%; display: block; }
.hyzs-root button { font: inherit; cursor: pointer; }

/* ---------- 顶部跑马灯 ---------- */
.hyzs-marquee-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: hyzs-marquee-scroll 22s linear infinite;
}
.marquee-text {
  flex: none;
  padding: 0.65em 2em;
  white-space: nowrap;
  color: rgba(255, 246, 224, 0.92);
  font-size: 0.82em;
}
@keyframes hyzs-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Hero 区 ---------- */
.hyzs-hero { position: relative; overflow: hidden; }
.hyzs-hero-bg { position: absolute; inset: 0; }
.hyzs-hero-bg img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.85;
}
.hyzs-hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(31,4,6,0.25), rgba(129,12,19,0.72), rgba(143,13,20,0.98)),
    radial-gradient(circle at top right, rgba(255,209,107,0.28), transparent 28%);
}
.hyzs-hero-inner { position: relative; z-index: 10; padding: 2em 1.25em 5em; }
.hyzs-eyebrow {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(243,204,115,0.45);
  border-radius: 999px;
  background: rgba(110,13,18,0.7);
  padding: 0.25em 1em;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.28em;
  color: #f9d675;
  box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}
.hyzs-title {
  margin-top: 1.25em;
  font-size: 2.8em; font-weight: 900;
  line-height: 1; letter-spacing: 0.18em;
  color: #ffd049;
  text-shadow: 0 6px 20px rgba(0,0,0,0.45);
}
.hyzs-subtitle {
  margin-top: 1.25em;
  max-width: 27em;
  font-size: 0.875em; line-height: 1.75;
  color: #fff3d1;
}

/* ---------- 主体（在 hero 上拉负边距） ---------- */
.hyzs-main {
  position: relative; z-index: 10;
  margin-top: -3em;
  padding: 0 1em 3em;
}
.hyzs-section { display: grid; gap: 1.5em; }

/* ---------- 表单卡片 ---------- */
.fortune-card {
  position: relative;
  border: 1px solid rgba(242, 204, 123, 0.45);
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(255, 243, 199, 0.95), rgba(255, 244, 223, 0.98)),
    linear-gradient(180deg, #fffaf0, #fff2d9);
  padding: 1.6em;
  color: #7f1016;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}
.fortune-banner {
  position: absolute;
  left: 1.35em; top: -0.95em;
  display: inline-flex; align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(240, 196, 104, 0.7);
  background: linear-gradient(90deg, #8a0d13, #b2141b);
  padding: 0.42em 0.95em;
  font-size: 0.72em; font-weight: 700; letter-spacing: 0.24em;
  color: #ffd34d;
  box-shadow: 0 10px 25px rgba(114, 11, 15, 0.22);
}
.fortune-card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1em;
}
.fortune-card-eyebrow {
  font-size: 10px; font-weight: 600; letter-spacing: 0.28em;
  color: rgba(141,18,24,0.75);
}
.fortune-card-h2 {
  margin-top: 0.75em;
  font-size: 2em; font-weight: 900;
  line-height: 1.2; color: #7c0d13;
}
.fortune-price {
  min-width: 6em;
  border-radius: 26px;
  background: linear-gradient(180deg, #b41118, #8e0d13);
  padding: 0.9em 1em;
  text-align: center;
  color: #fff7e4;
  box-shadow: 0 16px 28px rgba(123, 15, 18, 0.18);
}
.fortune-price-label {
  font-size: 11px; letter-spacing: 0.2em;
  color: rgba(255,255,255,0.75);
}
.fortune-price-amount {
  margin-top: 0.25em;
  font-size: 2.1em; font-weight: 900; line-height: 1;
}
.fortune-tip-box {
  margin-top: 1.5em;
  border-radius: 24px;
  border: 1px solid rgba(240, 196, 104, 0.45);
  background: #fffdf7;
  padding: 1em 1.1em;
  color: #916646;
  font-size: 0.95em; line-height: 1.8;
  box-shadow: inset 0 0 0 1px rgba(255, 239, 205, 0.9);
}
.fortune-form { margin-top: 1.5em; display: grid; gap: 0.75em; }

.fortune-row {
  display: flex; align-items: center; gap: 1em;
  border-radius: 22px;
  border: 1px solid rgba(227, 201, 160, 0.75);
  background: rgba(255, 255, 255, 0.84);
  padding: 0.95em 1em;
  text-align: left;
  width: 100%;
}
.fortune-row-button { width: 100%; border: 1px solid rgba(227,201,160,0.75); }
.fortune-label {
  width: 4.5em; flex: none;
  color: #8a0d13;
  font-size: 0.96em; font-weight: 800; letter-spacing: 0.08em;
}
.fortune-input {
  flex: 1; min-width: 0;
  border: 0; background: transparent;
  color: #53241e; font-size: 0.95em;
  outline: none;
}
.fortune-input::placeholder { color: #b79b87; }
.fortune-date-text { flex: 1; color: #53241e; font-size: 0.95em; line-height: 1.5; }
.fortune-date-placeholder { color: #b79b87; }

.gender-row { gap: 0.75em; }
.gender-pill {
  border-radius: 999px;
  border: 1px solid rgba(137, 13, 19, 0.28);
  background: rgba(255, 255, 255, 0.95);
  padding: 0.5em 1.15em;
  color: #8a0d13;
  font-size: 0.95em; font-weight: 700;
  transition: all 0.2s ease;
}
.gender-pill-active {
  border-color: transparent;
  background: linear-gradient(90deg, #8a0d13, #b2141b);
  color: #fff6de;
  box-shadow: 0 10px 18px rgba(137, 13, 19, 0.16);
}

.submit-btn,
.pay-btn {
  display: block; width: 100%;
  margin-top: 1.75em;
  border: 0; border-radius: 999px;
  background: linear-gradient(90deg, #16b35d, #21d06d);
  padding: 1em 1.4em;
  color: white;
  font-size: 1.1em; font-weight: 800; letter-spacing: 0.05em;
  box-shadow: 0 18px 32px rgba(22, 179, 93, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.submit-btn:disabled, .pay-btn:disabled { opacity: 0.72; cursor: not-allowed; }
.submit-btn:not(:disabled):active,
.pay-btn:not(:disabled):active { transform: scale(0.985); }

.pay-btn-wx { background: linear-gradient(90deg, #16b35d, #21d06d); }
.pay-btn-ali { background: linear-gradient(90deg, #1296db, #1da1f2); margin-top: 0.85em; box-shadow: 0 18px 32px rgba(18,150,219,0.22); }

.support-note {
  display: block;
  width: min(100%, 18em);
  margin: 0.85em auto 0;
  border: 1px solid rgba(138, 13, 19, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.65em 0.75em;
  color: #7f1016;
  font-size: 0.82em; font-weight: 700;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.support-note:active { transform: scale(0.985); }

/* ---------- 信息卡片 ---------- */
.info-cards { display: grid; gap: 1em; }
.info-card {
  border-radius: 28px;
  border: 1px solid rgba(242,204,123,0.35);
  background: #fff4df;
  padding: 1em;
  color: #7f1016;
  box-shadow: 0 14px 40px rgba(56,7,10,0.2);
}
.info-card-row { display: flex; gap: 1em; }
.info-card-row.reverse { flex-direction: row-reverse; text-align: right; }
.info-card-img {
  width: 6em; height: 6em; flex: none;
  border-radius: 22px; object-fit: cover;
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}
.info-card-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.info-card-badge {
  display: inline-flex; width: fit-content;
  border-radius: 999px;
  padding: 0.25em 0.75em;
  font-size: 11px; font-weight: 700;
}
.info-card-row.reverse .info-card-badge { margin-left: auto; }
.info-card-badge.b1 { background: #ffe4d0; color: #c05f1a; }
.info-card-badge.b2 { background: #ffe2e3; color: #c04549; }
.info-card-badge.b3 { background: #fff1d0; color: #b88b1d; }
.info-card-title { margin-top: 0.75em; font-size: 1.125em; font-weight: 900; }
.info-card-desc { margin-top: 0.5em; font-size: 0.875em; line-height: 1.6; color: #8f4f30; }

/* ---------- 浮动按钮 ---------- */
.floating-side-actions {
  position: fixed;
  top: 23%;
  right: max(0px, calc(50vw - 240px));
  z-index: 45;
  display: grid;
  overflow: hidden;
  border-radius: 16px 0 0 16px;
  border: 1px solid rgba(255, 211, 77, 0.35);
  border-right: 0;
  background: linear-gradient(180deg, rgba(142, 13, 19, 0.94), rgba(210, 27, 27, 0.94));
  box-shadow: 0 18px 40px rgba(49, 6, 8, 0.32);
}
.floating-side-button {
  display: grid;
  width: 2.45em; min-height: 6.15em;
  place-items: center; gap: 0.25em;
  border: 0;
  border-bottom: 1px solid rgba(255, 238, 191, 0.24);
  background: transparent;
  color: #fff8d8;
  padding: 0.55em 0.35em;
  font-size: 0.8em; font-weight: 900;
  letter-spacing: 0.05em; line-height: 1;
}
.floating-side-button:last-child { border-bottom: 0; }
.floating-side-button-muted { background: rgba(255, 255, 255, 0.08); }
.floating-side-button span:last-child { writing-mode: vertical-rl; text-orientation: upright; }
.side-button-icon { display: grid; width: 1.18em; height: 1.18em; place-items: center; }
.side-button-icon svg { width: 100%; height: 100%; }

.floating-service-button {
  position: fixed;
  right: max(0.85em, calc(50vw - 240px + 0.85em));
  bottom: 1.05em;
  z-index: 45;
  display: grid;
  min-width: 4.5em;
  place-items: center;
  border: 1px solid rgba(255, 211, 77, 0.45);
  border-radius: 22px;
  background: linear-gradient(180deg, #ff7a26, #d21b1b);
  padding: 0.6em 0.72em 0.55em;
  color: #fff8e7;
  font-size: 0.78em; font-weight: 900;
  box-shadow: 0 18px 38px rgba(210, 27, 27, 0.34);
  text-decoration: none;
}
.service-icon {
  display: grid; width: 2em; height: 2em;
  place-items: center;
  margin-bottom: 0.15em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #d21b1b;
}
.service-icon svg { width: 1.35em; height: 1.35em; }
.floating-side-button:active,
.floating-service-button:active { transform: scale(0.96); }

/* ---------- 底部 ---------- */
.hyzs-footer {
  border-top: 1px solid rgba(255,255,255,0.1);
  background: #7a0a10;
  padding: 1.25em 1em;
  text-align: center;
  font-size: 11px; line-height: 1.5;
  color: rgba(247,221,186,0.78);
}
.hyzs-footer p { margin: 0.15em 0; }

/* ---------- 日期选择器 ---------- */
.picker-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(16, 4, 5, 0.62);
  backdrop-filter: blur(2px);
}
.picker-sheet {
  position: fixed;
  bottom: 0; left: 50%;
  z-index: 60;
  width: min(100%, 500px);
  transform: translate(-50%, 100%);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  background: #fffaf0;
  color: #7f1016;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s ease;
}
.picker-sheet.show { transform: translate(-50%, 0); }
.picker-head {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #f1e4ca;
  padding: 1em 1.25em;
}
.picker-head-btn {
  border: 0; background: transparent;
  color: #9d7f62; font-size: 0.875em;
}
.picker-head-confirm { color: #8a0d13; font-weight: 700; }
.picker-tabs { display: flex; gap: 0.5em; }
.picker-calendar-pill {
  border-radius: 999px;
  border: 1px solid rgba(138, 13, 19, 0.12);
  background: #f6efe2;
  padding: 0.45em 0.95em;
  color: #9f7d5e;
  font-size: 0.78em; font-weight: 700;
}
.picker-calendar-pill-active {
  border-color: transparent;
  background: linear-gradient(90deg, #8a0d13, #b2141b);
  color: #fff6de;
}
.picker-body {
  position: relative; display: flex;
  height: 264px;
  background: white;
  padding: 0.75em 0.75em 1em;
}
.picker-highlight {
  pointer-events: none;
  position: absolute;
  left: 0.75em; right: 0.75em;
  top: calc(50% - 22px);
  height: 44px;
  border-top: 1px solid rgba(138, 13, 19, 0.12);
  border-bottom: 1px solid rgba(138, 13, 19, 0.12);
  border-radius: 16px;
  background: rgba(138, 13, 19, 0.04);
}
.picker-column {
  flex: 1; overflow-y: auto;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  text-align: center;
}
.picker-column::-webkit-scrollbar { display: none; }
.picker-spacer { height: 88px; flex: none; }
.picker-item {
  display: flex; height: 44px; width: 100%;
  align-items: center; justify-content: center;
  border: 0; background: transparent;
  color: #b28f72;
  padding: 0 0.35em;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 0.92em; line-height: 1;
  scroll-snap-align: center;
}
.picker-item-active { color: #8a0d13; font-weight: 800; }

/* ---------- 客服弹窗 ---------- */
.support-panel-overlay {
  position: fixed; inset: 0; z-index: 85;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 211, 77, 0.2), transparent 36%),
    rgba(23, 3, 5, 0.72);
  padding: 1.25em;
  backdrop-filter: blur(5px);
}
.support-panel-card {
  position: relative;
  width: min(100%, 420px);
  border: 1px solid rgba(255, 211, 77, 0.68);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(255, 198, 78, 0.22), transparent 36%),
    linear-gradient(180deg, #fffaf0, #fff1d7);
  padding: 1.45em;
  color: #7f1016;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
  animation: hyzs-pop 0.22s ease-out;
}
.support-panel-close {
  position: absolute; top: 0.85em; right: 0.85em;
  width: 2em; height: 2em;
  border: 0; border-radius: 999px;
  background: rgba(138, 13, 19, 0.08);
  color: #8a0d13;
  font-size: 1.35em; line-height: 1;
}
.support-panel-badge {
  display: inline-flex;
  border-radius: 999px;
  background: linear-gradient(90deg, #8a0d13, #d21b1b);
  padding: 0.38em 0.8em;
  color: #fff8d8;
  font-size: 0.76em; font-weight: 900; letter-spacing: 0.14em;
}
.support-panel-title {
  margin-top: 1em;
  color: #7f1016;
  font-size: 1.45em; font-weight: 900;
  line-height: 1.3;
}
.support-panel-desc {
  margin-top: 0.75em;
  color: #8f4f30;
  font-size: 0.94em; line-height: 1.8;
}
.support-contact-box, .support-order-box {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1em;
  margin-top: 0.85em;
  border-radius: 18px;
  border: 1px solid rgba(227, 201, 160, 0.75);
  background: rgba(255, 255, 255, 0.72);
  padding: 0.85em 0.95em;
  color: #8f4f30; font-size: 0.88em;
}
.support-contact-box strong, .support-order-box strong {
  color: #7f1016; font-size: 1em;
}
.support-panel-actions {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.75em;
  margin-top: 1.1em;
}
.support-primary, .support-secondary {
  border-radius: 999px;
  padding: 0.85em 0.8em;
  font-size: 0.95em; font-weight: 900;
  text-align: center; text-decoration: none;
}
.support-primary {
  border: 0;
  background: linear-gradient(90deg, #16b35d, #21d06d);
  color: white;
  box-shadow: 0 14px 28px rgba(22, 179, 93, 0.22);
}
.support-secondary {
  border: 1px solid rgba(138, 13, 19, 0.18);
  background: rgba(255, 255, 255, 0.78);
  color: #8a0d13;
}

/* ---------- 付款页（PayPage_hyzs 专用） ---------- */
.hyzs-pay-card {
  position: relative;
  border-radius: 32px;
  border: 1px solid rgba(242, 204, 123, 0.45);
  background: #fff4df;
  padding: 1.6em;
  color: #7f1016;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}
.hyzs-pay-tag {
  display: inline-flex;
  border: 1px solid #f0c468;
  background: #8a0d13;
  border-radius: 999px;
  padding: 0.25em 1em;
  font-size: 11px; font-weight: 700; letter-spacing: 0.28em;
  color: #ffd34d;
}
.hyzs-pay-h2 {
  margin-top: 1em;
  font-size: 2.05em; font-weight: 900; line-height: 1.2;
  color: #7f1016;
}
.hyzs-pay-desc {
  margin-top: 1em;
  font-size: 0.875em; line-height: 1.75;
  color: #8f4f30;
}
.hyzs-info-box {
  margin-top: 1.5em;
  border-radius: 28px;
  border: 1px solid #f4e2bc;
  background: rgba(255, 255, 255, 0.75);
  padding: 1.25em;
  box-shadow: inset 0 0 0 1px rgba(255, 239, 205, 0.5);
}
.hyzs-info-row { display: flex; justify-content: space-between; gap: 0.5em; padding: 0.35em 0; font-size: 0.92em; color: #8b4b2b; }
.hyzs-info-row strong { color: #7f1016; font-weight: 800; }
.hyzs-order-no-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75em;
  margin-top: 0.5em;
  padding-top: 0.75em;
  border-top: 1px dashed rgba(168,114,54,0.3);
  font-size: 0.85em; color: #8b4b2b;
}
.hyzs-order-no { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #7f1016; font-weight: 800; word-break: break-all; }
.hyzs-copy-btn {
  flex: none;
  border: 1px solid #d8a566;
  background: #fff7e4;
  color: #8a0d13;
  border-radius: 999px;
  padding: 0.35em 0.85em;
  font-size: 0.78em; font-weight: 700;
}
.hyzs-price-card {
  margin-top: 1.5em;
  border-radius: 28px;
  border: 1px solid #f5ddb0;
  background: linear-gradient(180deg, #fffaf0, #fff2d9);
  padding: 1.25em;
}
.hyzs-price-row {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1em;
}
.hyzs-price-label { font-size: 11px; letter-spacing: 0.24em; color: #9e7750; }
.hyzs-price-value { margin-top: 0.5em; font-size: 3em; font-weight: 900; line-height: 1; color: #d21b1b; }
.hyzs-price-side { padding-bottom: 0.25em; text-align: right; font-size: 12px; line-height: 1.5; color: #9e7750; }
.hyzs-countdown {
  margin-top: 1em; padding-top: 0.85em;
  border-top: 1px dashed rgba(158,119,80,0.35);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.85em; color: #9e7750;
}
.hyzs-countdown-time {
  display: inline-flex; align-items: center; gap: 0.25em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800; color: #d21b1b; font-size: 1em;
}
.hyzs-countdown-time span {
  display: inline-block; min-width: 1.6em; text-align: center;
  background: rgba(210,27,27,0.08); border-radius: 6px; padding: 0.1em 0.25em;
}

.hyzs-pay-foot-tip {
  margin-top: 1em;
  text-align: center;
  font-size: 12px; color: #a07a4f;
}

/* 动画 */
@keyframes hyzs-pop {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.hyzs-fade-enter-active, .hyzs-fade-leave-active { transition: opacity 0.2s ease; }
.hyzs-fade-enter-from, .hyzs-fade-leave-to { opacity: 0; }

/* 简易 Toast */
.hyzs-toast {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.78);
  color: #fff;
  padding: 0.7em 1.5em;
  border-radius: 8px;
  font-size: 0.9em;
  z-index: 9999;
  pointer-events: none;
  animation: hyzs-pop 0.18s ease-out;
}
