:root {
  --sky: #8fd8ff;
  --sky2: #fff4c8;
  --card: #fffdf8;
  --ink: #3a2414;
  --muted: #8a6a4a;
  --fill: #fff8e8;
  --orange: #ff8a2a;
  --orange-dark: #ee6f10;
  --pink: #ff6b9d;
  --blue: #1677ff;
  --radius: 18px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: linear-gradient(180deg, var(--sky) 0%, #c8eeff 42%, var(--sky2) 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar { width: 0; height: 0; }

body { overflow-x: hidden; }

a, img, button, input, textarea {
  -webkit-tap-highlight-color: transparent;
}

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

.cloud {
  position: absolute;
  background: #fff;
  border-radius: 40px;
  opacity: .85;
}
.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 50%;
}
.cloud-1 { width: 90px; height: 28px; top: 36px; left: -18px; }
.cloud-1::before { width: 36px; height: 36px; top: -18px; left: 14px; }
.cloud-1::after { width: 48px; height: 48px; top: -26px; left: 38px; }
.cloud-2 { width: 120px; height: 34px; top: 70px; right: -30px; }
.cloud-2::before { width: 46px; height: 46px; top: -22px; left: 18px; }
.cloud-2::after { width: 58px; height: 58px; top: -30px; left: 48px; }
.cloud-3 { width: 70px; height: 22px; top: 140px; left: 16%; }
.cloud-3::before { width: 28px; height: 28px; top: -14px; left: 10px; }
.cloud-3::after { width: 36px; height: 36px; top: -18px; left: 28px; }

.star {
  position: absolute;
  color: #fff36a;
  font-size: 16px;
  line-height: 1;
  text-shadow: 0 1px 0 #f3c94a;
}
.star-1 { top: 22px; right: 18%; }
.star-2 { top: 62px; left: 12%; font-size: 12px; }
.star-3 { top: 118px; right: 10%; font-size: 13px; }

.wrap {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  margin: 0 auto;
  padding: calc(var(--safe-top) + 28px) 16px calc(var(--safe-bottom) + 28px);
}

.main-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.head {
  text-align: center;
  margin: 0 0 14px;
}

.head h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 #fff36a;
}

.head p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.card {
  background: var(--card);
  border: 3px solid #3a2414;
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 6px 0 #3a2414;
}

.field { margin-bottom: 10px; }

.field input,
.field .layui-input,
.field .layui-input:hover,
.field .layui-input:focus {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 2px solid #3a2414 !important;
  border-radius: 12px !important;
  background: var(--fill) !important;
  box-shadow: none !important;
  font-size: 16px;
  color: var(--ink);
}

.field input:focus {
  background: #fff !important;
  box-shadow: 3px 3px 0 #ffd24a !important;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 2px 14px;
}

.slider-row input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 8px;
  background: linear-gradient(90deg, #ffd24a, #ff8a2a);
  border-radius: 8px;
  outline: none;
  border: 2px solid #3a2414;
}

.slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #3a2414;
  box-shadow: 0 2px 0 #ff8a2a;
  cursor: pointer;
}

.slider-val {
  min-width: 48px;
  text-align: right;
  font-size: 13px;
  font-weight: 800;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

.btn,
.layui-btn.btn {
  height: 48px;
  line-height: 48px;
  border: 3px solid #3a2414 !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #ffb347 0%, var(--orange) 100%) !important;
  color: #fff !important;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 2px;
  box-shadow: 0 5px 0 #3a2414 !important;
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #3a2414 !important;
}

.meta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.count-line {
  margin: 16px 0 0;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.count-line b {
  color: var(--orange);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.meta a {
  color: #fff;
  text-decoration: none;
  background: var(--pink);
  border: 2px solid #3a2414;
  border-radius: 999px;
  padding: 3px 12px;
  box-shadow: 2px 2px 0 #3a2414;
}

.carousel {
  margin-top: 0;
  height: 150px;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid #3a2414;
  box-shadow: 0 5px 0 #3a2414;
  background: #fff;
}

.carousel .layui-carousel,
.carousel .layui-carousel > *[carousel-item] {
  width: 100% !important;
  height: 100% !important;
  background: transparent;
}

.carousel img,
.carousel a {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ios-footer {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.none { display: none; }
hr { margin: 16px 0; border: 0; border-top: 1px solid #f3d9a4; }
.introduce p { color: var(--muted); }
.tips, .php-info { font-size: 12px; text-align: center; color: var(--muted); }
.gzh h3 { margin: 10px 0; }
.gzh p { margin: 10px 0; color: #666; }
.gzh img, .bottomImg img { max-width: 100%; border-radius: 10px; }
.bottomImg { text-align: center; }

body .demo-class,
body .gg-layer {
  background: linear-gradient(180deg, #8fd8ff 0%, #fff4c8 100%);
  color: #3a2414;
  border-radius: 24px;
  overflow: hidden;
  border: 3px solid #3a2414;
  box-shadow: 0 8px 0 #3a2414;
}
body .demo-class .layui-layer-title,
body .gg-layer .layui-layer-title {
  background: transparent;
  border: 0;
  padding: 16px 16px 4px;
  height: auto;
  line-height: 1.3;
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  color: #3a2414;
  text-shadow: 2px 2px 0 #fff36a;
}
body .demo-class .layui-layer-title h3,
body .gg-layer .layui-layer-title h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}
body .demo-class .layui-layer-content,
body .gg-layer .layui-layer-content {
  position: relative;
  overflow: visible;
}
body .demo-class .layui-layer-btn,
body .gg-layer .layui-layer-btn {
  border: 0;
  padding: 0 16px 16px;
  background: transparent;
  text-align: center;
}
body .demo-class .layui-layer-btn a,
body .gg-layer .layui-layer-btn .layui-layer-btn0 {
  display: inline-block;
  min-width: 120px;
  height: 42px;
  line-height: 36px;
  margin: 0;
  border: 3px solid #3a2414 !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #ffb347 0%, #ff8a2a 100%) !important;
  color: #fff !important;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 4px 0 #3a2414;
}
body .gg-layer .gg-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
body .gg-layer .gg-sky .cloud { opacity: .7; }
body .gg-layer .gg-sky .cloud-1 { top: 8px; left: -10px; transform: scale(.7); }
body .gg-layer .gg-sky .cloud-2 { top: 18px; right: -16px; left: auto; transform: scale(.65); }
body .gg-layer .gg-sky .star-1 { top: 10px; right: 22%; font-size: 14px; }
body .gg-layer .gg-sky .star-2 { top: 28px; left: 18%; font-size: 11px; }
body .gg-layer .gg-body {
  position: relative;
  z-index: 1;
  padding: 8px 16px 4px;
}
body .gg-layer .gg-img {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border: 2px solid #3a2414;
  border-radius: 14px;
  margin-bottom: 10px;
  background: #fff;
}
body .gg-layer .gg-text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
  color: #3a2414;
  word-break: break-word;
  text-align: left;
}
body .gg-layer .gg-link {
  display: block;
  margin-top: 12px;
  text-align: center;
  padding: 10px 0;
  border: 2px solid #3a2414;
  border-radius: 12px;
  background: #ff6b9d;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 2px 2px 0 #3a2414;
}
.layui-layer-dialog { border-radius: 24px; }

.popup-toggle { display: none; }
.popup-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(58,36,20,.45);
  padding: 20px;
}
.popup-toggle:not(:checked) ~ .popup-mask { display: none; }
.popup-overlay { position: absolute; inset: 0; cursor: pointer; }
.popup {
  position: relative;
  width: 100%;
  max-width: 340px;
  border-radius: 22px;
  padding: 22px 18px 18px;
}
.popup-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}
.popup-title {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
}
.popup-title-line {
  width: 34px;
  height: 2px;
  background: rgba(255,255,255,.55);
}
.popup-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.qr {
  position: relative;
  width: 168px;
  height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}
.qr-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.qr-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  z-index: 2;
}
.qr-logo span { font-size: 13px; font-weight: 800; }
.ticket-line {
  display: flex;
  width: calc(100% + 32px);
  margin: 14px 0 12px;
  height: 18px;
}
.ticket-dash { flex: 1; border-top: 2px dashed currentColor; }
.popup-row {
  display: flex;
  width: 100%;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.popup-label { font-weight: 700; color: #1a1a1a; flex-shrink: 0; }
.popup-value { color: #4a4a4a; margin-left: 4px; }
.popup-value.highlight {
  color: #b8860b;
  font-weight: 600;
  background: #fff8dc;
  padding: 1px 8px;
  border-radius: 4px;
}
.claim-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 6px;
  padding: 12px 0;
  border: 0;
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 4px;
  text-decoration: none;
}

@media (min-width: 768px) {
  .wrap {
    width: min(520px, calc(100% - 40px));
    padding-top: 40px;
  }
  .head h1 { font-size: 30px; }
  .carousel { height: 200px; }
  .popup { max-width: 400px; }
}

@media (min-width: 1024px) {
  .wrap {
    width: min(920px, calc(100% - 64px));
    padding: 48px 0 40px;
  }
  .head {
    text-align: left;
    margin-bottom: 20px;
  }
  .head h1 { font-size: 34px; }
  .head p { font-size: 15px; }
  .main-grid:has(.carousel) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
  }
  .card {
    height: 100%;
    padding: 22px;
  }
  .carousel {
    height: 100%;
    min-height: 280px;
    margin-top: 0;
  }
  .count-line {
    margin-top: 22px;
    font-size: 14px;
  }
  .cloud-1 { transform: scale(1.3); }
  .cloud-2 { transform: scale(1.4); }
  .popup { max-width: 420px; }
  .field input,
  .field .layui-input {
    height: 50px;
    font-size: 16px;
  }
}

@media (min-width: 1280px) {
  .wrap { width: min(1040px, calc(100% - 80px)); }
}
