:root {
  color-scheme: light;
  --ink: #4a260d;
  --paper: #efce9b;
  --panel: #fff5d9;
  --red: #df0000;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: #1f1e19;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  text-size-adjust: 100%;
}
button, textarea { font: inherit; }
button { border: 0; }
button:focus-visible, textarea:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }

.page-shell { height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.complaint-bar {
  width: 100%; height: 25px; padding: 0 10px; flex: 0 0 25px;
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border-bottom: 1px solid #f0f0f0; color: #333;
  font-size: 15px; line-height: 20px;
}
.complaint-button {
  height: 22px; padding: 0 10px; border: 1px solid #000; border-radius: 5px;
  background: #fff; color: #333; cursor: pointer; line-height: 20px;
}
.marketing-scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.marketing-scroll::-webkit-scrollbar, .payment-scroll::-webkit-scrollbar { display: none; }
.marketing-page {
  width: 1280px; max-width: 100%; min-height: 100%; margin: 0 auto;
  padding-bottom: 90px; overflow: hidden; background: var(--paper);
}
.hero-section { position: relative; height: 326px; overflow: hidden; }
.hero-image { display: block; width: 100%; height: 100%; object-fit: fill; }
.hero-marker {
  position: absolute; width: 32px; height: 97px; object-fit: fill;
  animation: marker-float 3s linear infinite; will-change: transform;
}
.marker-0 { top: 60px; left: 60px; animation-delay: 0s; }
.marker-1 { top: 120px; left: 12px; animation-delay: .6s; }
.marker-2 { top: 190px; left: 60px; animation-delay: .8s; }
.marker-3 { top: 60px; left: 270px; animation-delay: .1s; }
.marker-4 { top: 120px; left: 330px; animation-delay: 1s; }
.marker-5 { top: 190px; left: 270px; animation-delay: .5s; }
.report-sections { position: relative; margin-top: -20px; }
.report-image { display: block; width: 100%; height: auto; vertical-align: top; }
.page-disclaimer { margin: 0; padding: 12px 15px; color: #876b4b; font-size: 11px; line-height: 1.6; text-align: center; }
.fixed-footer {
  position: fixed; right: 0; bottom: 0; left: 0; z-index: 10; width: 1280px; max-width: 100%;
  margin: 0 auto; padding: 12px 21px; background: rgba(0, 0, 0, .7);
}
.report-button {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; height: 50px; padding: 0; background: transparent; cursor: pointer;
  animation: button-breath 1s ease-in-out infinite; will-change: transform;
}
.report-button img { position: absolute; width: 100%; height: 100%; object-fit: fill; }
.report-button span { position: relative; color: #fff; font-size: 21px; font-weight: 700; line-height: 1.2; }

.dialog-layer { position: fixed; inset: 0; z-index: 99; display: flex; align-items: center; justify-content: center; }
.dialog-mask { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; background: rgba(0, 0, 0, .8); cursor: default; }
.payment-panel, .feedback-panel { position: relative; width: 345px; max-width: calc(100% - 30px); border-radius: 15px; overflow: hidden; background: var(--panel); }
.payment-scroll { max-height: calc(100vh - 40px); overflow-y: auto; overscroll-behavior: contain; }
.close-button { position: absolute; top: 0; right: 0; z-index: 2; width: 44px; height: 44px; padding: 0; background: transparent; color: #583212; font-size: 28px; line-height: 1; cursor: pointer; }
.payment-content { padding: 24px 15px 14px; }
.report-title { position: relative; display: flex; align-items: center; justify-content: center; width: 260px; max-width: 100%; height: 56px; margin: 0 auto; }
.report-title img { position: absolute; width: 100%; height: 100%; object-fit: fill; }
.report-title h2 { position: relative; margin: 0; color: #882005; font-size: 18px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.report-tags { display: block; width: 100%; height: auto; margin: 12px auto 8px; }
.report-description { margin: 0; color: #63330b; font-size: 13px; line-height: 1.45; text-align: justify; }
.report-description span { color: #d90000; font-weight: 600; }
.price-section { display: flex; align-items: center; justify-content: space-between; margin: 14px 0; padding: 14px 10px; border-top: 1px solid #ddb47f; border-bottom: 1px solid #ddb47f; }
.current-price { display: flex; align-items: center; color: var(--red); font-weight: 700; line-height: 1.5; white-space: nowrap; }
.current-price small { margin-right: 6px; padding: 1px 6px; border-radius: 4px; background: #fde8e8; font-size: 11px; font-weight: 400; line-height: 1.7; }
.current-price strong { font-size: 20px; }
.original-price { margin-top: 9px; color: #432b17; font-size: 12px; text-decoration: line-through; }
.discount-applied { display: inline-block; margin-top: 6px; padding: 2px 7px; border-radius: 4px; background: #fde8e8; color: #df0000; font-size: 11px; line-height: 1.5; }
.countdown-details { flex-shrink: 0; text-align: center; font-size: 12px; line-height: 1.5; }
.countdown-details strong { display: block; margin-top: 11px; color: var(--red); font-size: 15px; font-variant-numeric: tabular-nums; line-height: 1.3; }
.pay-button { display: flex; align-items: center; justify-content: center; min-height: 40px; width: calc(100% - 14px); margin: 0 7px; padding: 4px 6px; border-radius: 24px; background: #09bb07; color: #fff; font-size: 20px; font-weight: 700; line-height: 1.3; cursor: pointer; }
.pay-button.is-loading { opacity: .7; pointer-events: none; }
.payment-notice { margin: 11px 0 0; color: #917953; font-size: 10px; line-height: 1.5; text-align: center; }

.feedback-panel { padding: 27px 20px 20px; color: #63330b; }
.feedback-panel h2 { margin: 0 0 8px; color: #882005; font-size: 20px; text-align: center; }
.feedback-panel p { margin: 0 0 14px; font-size: 13px; line-height: 1.5; text-align: center; }
.feedback-options { display: grid; gap: 8px; }
.feedback-option { padding: 9px 10px; border: 1px solid #dcb57e; border-radius: 7px; background: #fffaf0; color: #63330b; text-align: left; cursor: pointer; }
.feedback-option.is-selected { border-color: #d90000; background: #fde8e8; color: #b00000; }
.feedback-panel textarea { display: block; width: 100%; margin: 12px 0; padding: 9px; border: 1px solid #dcb57e; border-radius: 7px; resize: vertical; background: #fffdf7; color: #63330b; font-size: 13px; }
.feedback-submit { width: 100%; padding: 10px; border-radius: 22px; background: #b33113; color: #fff; font-weight: 700; cursor: pointer; }
.feedback-status { min-height: 20px; margin: 10px 0 0 !important; color: #16803c; }
.toast { position: fixed; left: 50%; bottom: 86px; z-index: 120; transform: translate(-50%, 12px); padding: 9px 14px; border-radius: 6px; background: rgba(0, 0, 0, .8); color: #fff; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
body.modal-open { overflow: hidden; }
[hidden] { display: none !important; }

.red-packet-layer { position: fixed; inset: 0; z-index: 199; display: flex; align-items: center; justify-content: center; }
.red-packet-mask { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; background: rgba(24, 8, 3, .72); cursor: default; }
.red-packet-panel { position: relative; width: 300px; max-width: calc(100% - 40px); animation: red-packet-drop .5s cubic-bezier(.25, .46, .45, .94); }
.red-packet-panel > img { display: block; width: 100%; height: auto; }
.red-packet-panel h2 { position: absolute; top: 8.2%; right: 0; left: 0; margin: 0; transform: translateY(-50%); color: #a8431c; font-size: 17px; font-weight: 700; line-height: 1; text-align: center; }
.red-packet-amount { position: absolute; top: 19.5%; right: 0; left: 0; display: flex; align-items: baseline; justify-content: center; transform: translateY(-50%); }
.red-packet-amount strong { color: #e60012; font-size: 54px; line-height: 1; }
.red-packet-amount span { margin-left: 4px; color: #e60012; font-size: 22px; font-weight: 700; }
.red-packet-panel p { position: absolute; top: 30%; right: 0; left: 0; margin: 0; transform: translateY(-50%); color: #b06a35; font-size: 12px; line-height: 1; text-align: center; }
.red-packet-panel button:not(.red-packet-mask) { position: absolute; right: 22%; bottom: 14%; left: 22%; z-index: 2; min-height: 44px; border-radius: 22px; background: linear-gradient(#fdf3d0, #f6e3ae 52%, #eed193); box-shadow: 0 3px 7px rgba(120,40,0,.28), inset 0 1px 2px rgba(255,255,255,.8); color: #8a4a16; font-size: 17px; font-weight: 700; }
.red-packet-panel button:not(.red-packet-mask):disabled { opacity: .6; cursor: wait; }
.red-packet-panel button:not(.red-packet-mask):focus-visible { outline: 3px solid #762b19; outline-offset: 3px; }
@keyframes red-packet-drop { 0% { transform: translateY(60%) scale(.8); opacity: 0; } 60% { transform: translateY(-4%) scale(1.02); opacity: 1; } 100% { transform: translateY(0) scale(1); } }

@keyframes marker-float { 0%, 100% { transform: translateY(0); } 25% { transform: translateY(-10%); } 50% { transform: translateY(0); } 75% { transform: translateY(10%); } }
@keyframes button-breath { 0%, 100% { transform: scale(.96); } 50% { transform: scale(1.03); } }
@media (max-width: 600px) {
  .hero-section { height: 326px; }
  .report-button span { font-size: 18px; }
  .payment-panel, .feedback-panel { max-width: calc(100% - 24px); }
  .price-section { padding-inline: 6px; }
  .current-price strong { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-marker, .report-button, .red-packet-panel { animation: none; }
}
