html,
body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  background: #53181f;
  color: #f7dc86;
  font-family: "Noto Serif SC", "Songti SC", "STSong", serif;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: radial-gradient(circle at 50% 30%, #9f2024, #451018);
}

button,
input,
textarea,
select {
  font: inherit;
}

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

button {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  border-radius: 0;
  color: inherit;
}

.text-gold,
.text-gold\/80,
.text-gold\/70,
.text-gold\/65,
.text-gold\/60,
.text-gold\/55,
.text-gold\/50,
.text-gold\/35 {
  color: #d4af37;
}

.text-gold-bright,
.text-gold-bright\/95,
.text-gold-bright\/90 {
  color: #ffd966;
}

.bg-black\/30 {
  background-color: rgba(0, 0, 0, 0.3);
}

.bg-black\/40 {
  background-color: rgba(0, 0, 0, 0.4);
}

.bg-gold\/15 {
  background-color: rgba(212, 175, 55, 0.15);
}

.border-gold\/70,
.border-gold\/50,
.border-gold\/40,
.border-gold\/30,
.border-gold\/25,
.border-gold\/20 {
  border-color: rgba(212, 175, 55, 0.45);
}

.brush {
  font-family: "ZCOOL KuaiLe", "Ma Shan Zheng", "KaiTi", "STKaiti", serif;
  letter-spacing: 0.05em;
}

.zt-glow {
  background: radial-gradient(circle at 50% 40%, rgba(185, 28, 28, 0.35), transparent 65%);
}

.zt-sound-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.zt-page {
  position: relative;
  z-index: 10;
  box-sizing: border-box;
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.zt-topbar,
.zt-panel-stack,
.zt-button-dock,
.zt-seal-wrap {
  display: flex;
  align-items: center;
}

.zt-topbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.zt-top-spacer {
  width: 38px;
  height: 38px;
}

.zt-date,
.zt-footer {
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
}

.zt-date {
  flex: 1 1 auto;
  min-width: 0;
  letter-spacing: 0.18em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zt-entry-grid,
.zt-checkin-grid {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
}

.zt-entry-grid > *,
.zt-checkin-grid > * {
  width: 50%;
}

.zt-entry-grid > * + *,
.zt-checkin-grid > * + * {
  margin-left: 10px;
}

.zt-entry-grid {
  margin-top: 18px;
}

.zt-entry-card,
.zt-stat-card {
  box-sizing: border-box;
  border-radius: 0.75rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(0, 0, 0, 0.3);
}

.zt-entry-card {
  min-width: 0;
  min-height: 86px;
  padding: 12px 10px;
  text-align: left;
  color: #ffd966;
  overflow: hidden;
}

.zt-entry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.zt-entry-kicker,
.zt-entry-title,
.zt-entry-hint {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zt-entry-kicker {
  font-size: 10px;
  line-height: 1.1;
  letter-spacing: 0.16em;
  color: rgba(212, 175, 55, 0.65);
}

.zt-entry-icon {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
}

.zt-entry-title {
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
  color: #ffd966;
  letter-spacing: 0.05em;
}

.zt-entry-hint {
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.2;
  color: rgba(212, 175, 55, 0.68);
}

.zt-stat-card {
  min-width: 0;
  min-height: 76px;
  padding: 12px 8px;
  text-align: center;
  overflow: hidden;
}

.zt-stat-label {
  min-width: 0;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.18em;
  color: rgba(212, 175, 55, 0.68);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zt-stat-number-row {
  margin-top: 6px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.zt-stat-number-row > * + * {
  margin-left: 4px;
}

.zt-stat-number {
  display: inline-block;
  min-width: 0.7em;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 0.9;
  color: #ffd966;
}

.zt-stat-unit {
  font-size: 10px;
  color: rgba(212, 175, 55, 0.68);
}

.zt-panel-stack {
  width: 100%;
  margin-top: 14px;
  flex-direction: column;
  gap: 14px;
}

.zt-panel-stack > * + * {
  margin-top: 14px;
}

.zt-blessing-wrap {
  width: 100%;
  margin-top: 10px;
}

.zt-blessing {
  position: relative;
  width: 100%;
  height: 36px;
  text-align: center;
  overflow: visible;
}

.zt-blessing-text {
  display: inline-block;
  max-width: 100%;
  color: #ffd966;
  font-size: 22px;
  line-height: 1.6;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 0 14px rgba(212, 175, 55, 0.55), 0 0 24px rgba(220, 38, 38, 0.25);
  letter-spacing: 0.08em;
  animation: zt-blessing-in 0.25s ease-out;
}

@keyframes zt-blessing-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 摇一摇授权按钮 */
.zt-shake-btn {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 175, 55, 0.5);
  background: rgba(0, 0, 0, 0.5);
  color: #ffd966;
  font-size: 18px;
}

/* 财神兽卡片尺寸守护 */
.zt-beast-frame {
  position: relative;
  width: 240px;
  height: 340px;
  max-width: 88vw;
}

/* 涨停黄历 */
.zt-almanac { width: 100%; max-width: 340px; margin: 0 auto; }
.zt-almanac-head {
  padding: 14px 14px 10px;
  text-align: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}
.zt-almanac-title {
  font-size: 22px;
  color: #ffd966;
  letter-spacing: 0.2em;
}
.zt-almanac-date {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: rgba(212, 175, 55, 0.65);
  margin-top: 4px;
}
.zt-yiji {
  display: flex;
  width: 100%;
}
.zt-yiji-col {
  flex: 1 1 50%;
  width: 50%;
  padding: 12px 12px;
  min-width: 0;
}
.zt-yiji-col-right {
  border-left: 1px solid rgba(212, 175, 55, 0.2);
}
.zt-yiji-head {
  display: flex;
  align-items: baseline;
  margin-bottom: 8px;
}
.zt-yiji-head > * + * { margin-left: 6px; }
.zt-yi-char { font-size: 20px; color: #61d889; }
.zt-ji-char { font-size: 20px; color: #e04b4b; }
.zt-yiji-kicker {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(212, 175, 55, 0.5);
}
.zt-yiji-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.zt-yiji-list li {
  font-size: 13px;
  line-height: 1.7;
  color: #ffd966;
}
.zt-yiji-list-muted li {
  color: rgba(212, 175, 55, 0.85);
}
.zt-almanac-rows {
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  padding: 10px 14px;
}
.zt-almanac-row {
  display: flex;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.5;
  padding: 3px 0;
}
.zt-almanac-row + .zt-almanac-row {
  border-top: 1px dashed rgba(212, 175, 55, 0.12);
}
.zt-almanac-row-label {
  flex: 0 0 60px;
  width: 60px;
  color: rgba(212, 175, 55, 0.6);
  letter-spacing: 0.15em;
}
.zt-almanac-row-value {
  flex: 1 1 auto;
  min-width: 0;
  color: rgba(255, 217, 102, 0.92);
  word-break: break-all;
}
.zt-almanac-row-hl {
  color: #ffd966;
  font-weight: 600;
}
.zt-almanac-score {
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  padding: 10px 14px 12px;
}
.zt-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.zt-score-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(212, 175, 55, 0.7);
}
.zt-score-num {
  font-size: 22px;
  color: #ffd966;
}
.zt-score-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.zt-score-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #d99b2b, #ffd966);
  box-shadow: 0 0 8px rgba(255, 217, 102, 0.6);
}

.zt-button-dock {
  width: 100%;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: center;
  margin-top: 18px;
  padding-top: 0;
  min-height: 0;
}

.zt-seal-wrap {
  position: relative;
  flex-direction: column;
  align-items: center;
  user-select: none;
  -webkit-user-select: none;
}

.zt-flash {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  pointer-events: none;
}

.zt-pop-wrap {
  position: absolute;
  left: 50%;
  top: -16px;
  z-index: 30;
  pointer-events: none;
}

.zt-pop-text {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 42px;
  white-space: nowrap;
}

.zt-seal-button {
  position: relative;
  display: block;
  width: 224px;
  height: 224px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.zt-seal-image,
.zt-seal-character {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.zt-seal-image {
  object-fit: contain;
}

.zt-seal-character {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 132px;
  line-height: 1;
  color: #fff2c7;
}

.zt-tap-hint {
  margin-top: 14px;
  padding-left: 0;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.38em;
  color: rgba(212, 175, 55, 0.8);
  text-align: center;
  white-space: nowrap;
}

.zt-footer {
  margin-top: 12px;
  line-height: 1.6;
  font-size: 10px;
  letter-spacing: 0.02em;
  color: rgba(212, 175, 55, 0.35);
}

@media (max-width: 360px) {
  .zt-page {
    padding-left: 12px;
    padding-right: 12px;
  }

  .zt-entry-grid,
  .zt-checkin-grid {
    gap: 8px;
  }

  .zt-entry-card {
    padding-left: 8px;
    padding-right: 8px;
  }

  .zt-entry-title {
    font-size: 13px;
  }

  .zt-seal-button {
    width: 210px;
    height: 210px;
  }

  .zt-seal-character {
    font-size: 120px;
  }

  .zt-blessing-text {
    font-size: 20px;
  }
}