:root {
  --primary-color: #f94470;
  --secondary-color: #667eea;
  --purple-red-bg: #722F37;
  --gold-color: #FFD700;
  --dark-color: #333333;
  --insider-hit-bg: #ff3333;
  --insider-hit-text: #FFD700;
  --insider-wrong-text: #000000;
  --insider-wrong-bg: rgba(255,255,255,0.3);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  background: var(--purple-red-bg);
  min-height: 100vh;
  color: #333;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.hidden { display: none !important; }
.banner-ad-bar { position: relative; background: #111; border-bottom: 1px solid rgba(255,215,0,.3); }
.banner-ad-link { display: block; line-height: 0; }
.banner-ad-link img { width: 100%; max-height: 90px; object-fit: cover; display: block; }
.banner-ad-close { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: none; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; font-size: 18px; cursor: pointer; z-index: 2; }
.popup-ad-img { width: 100%; max-height: 180px; object-fit: contain; border-radius: 8px; margin-bottom: 10px; }
.zhuge-modal { position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 3200; display: flex; align-items: center; justify-content: center; padding: 12px; }
.zhuge-modal-content { background: #fff; width: 100%; max-width: 520px; max-height: 88vh; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.zhuge-modal-header { background: linear-gradient(135deg, #ffaa00, #ff6600); color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; font-weight: bold; }
.zhuge-modal-close { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }
.zhuge-modal-body { padding: 12px; overflow-y: auto; flex: 1; }
.zhuge-daily-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; margin-bottom: 12px; }
.zhuge-daily-grid .daily-card { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; cursor: pointer; }
.zhuge-daily-grid .daily-card img { width: 100%; height: 100%; object-fit: cover; }
.zhuge-daily-grid .date-overlay { position: absolute; top: 6px; left: 6px; background: rgba(0,0,0,.65); color: #fff; padding: 2px 8px; border-radius: 12px; font-size: 11px; }
.container { max-width: 1200px; margin: 0 auto; padding: 8px; }

/* Marquee */
.announcement-bar {
  background: #000;
  color: #0f0;
  padding: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 8px;
  box-shadow: 0 0 10px rgba(0,255,0,.3);
  border: 1px solid #333;
}
.announcement-content {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  padding-left: 100%;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Logo carousel */
.logo-container { text-align: center; margin-bottom: 12px; padding: 0 4px; position: relative; }
.logo-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  background: var(--gold-color);
  aspect-ratio: 3/1;
}
.logo-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s ease-in-out;
  padding: 10px;
}
.logo-slide.active { opacity: 1; }
.logo-slide img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.logo-dots { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.logo-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: all .3s;
}
.logo-dot.active { background: #fff; transform: scale(1.2); }

/* Period strip */
.period-img-container {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  max-width: none;
  padding: 0;
  overflow: hidden;
}
.period-img { width: 100%; height: auto; display: block; cursor: pointer; }

/* Header & tabs */
.header {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  margin-bottom: 8px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.header-top { margin-bottom: 10px; }
.current-time { font-size: 12px; color: #666; }
.current-time span { color: var(--primary-color); font-weight: bold; }
.lottery-types {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
  width: 100%;
  max-width: 100%;
  touch-action: pan-x;
}
.lottery-types::-webkit-scrollbar { display: none; }
.type-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  min-height: 36px;
  background: #f0f0f0;
  border: none;
  border-radius: 16px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  flex: 0 0 auto;
  white-space: nowrap;
  transition: background .25s, color .25s, box-shadow .25s;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  color: #333;
  position: relative;
  z-index: 1;
}
@media (hover: hover) {
  .type-btn:hover { transform: translateY(-1px); }
}
.type-btn:active { transform: scale(0.98); }
.type-btn.active {
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 3px 8px rgba(249,68,112,.25);
}
@media (max-width: 420px) {
  .type-btn {
    padding: 7px 10px;
    font-size: 13px;
    min-height: 34px;
    border-radius: 14px;
  }
  .lottery-types { gap: 5px; }
}
.lottery-time { text-align: center; font-size: 11px; color: var(--primary-color); font-weight: bold; margin-top: 4px; }

/* Lottery info */
.lottery-info {
  background: #fff;
  border-radius: 10px;
  padding: 4px 16px 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  margin-bottom: 8px;
}
.info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(0,0,0,.1);
}
.period-info { font-size: 15px; font-weight: bold; color: #000; }
.countdown { text-align: center; }
.countdown-title { font-size: 11px; color: var(--dark-color); font-weight: 600; }
.countdown-time { font-size: 16px; font-weight: bold; color: var(--primary-color); }
.numbers-title { font-size: 14px; color: #000; margin-bottom: 3px; text-align: center; }
.numbers-wrapper { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.numbers-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 6px;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 3px;
  scrollbar-width: none;
}
.numbers-row::-webkit-scrollbar { display: none; }
.plus-sign { font-size: 20px; font-weight: bold; color: #000; margin: 0 3px; flex-shrink: 0; align-self: center; }
.ball-wrap { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.number-ball {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.15);
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,.2), inset 0 1px 3px rgba(255,255,255,.3);
}
.number-ball.red { background: radial-gradient(circle at 30% 30%, #ff6666 0%, #cc0000 70%, #990000 100%); }
.number-ball.blue { background: radial-gradient(circle at 30% 30%, #6666ff 0%, #0000cc 70%, #000099 100%); }
.number-ball.green { background: radial-gradient(circle at 30% 30%, #66cc66 0%, #009900 70%, #006600 100%); }
.number-ball.gray { background: radial-gradient(circle at 30% 30%, #ccc 0%, #999 70%, #666 100%); }
.number-ball.special { border: 3px solid var(--gold-color); animation: specialPulse 2s infinite; }
@keyframes specialPulse {
  0% { box-shadow: 0 0 0 0 rgba(255,215,0,.7); }
  70% { box-shadow: 0 0 0 10px rgba(255,215,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,215,0,0); }
}
.ball-inner {
  display: flex; align-items: center; justify-content: center;
  position: relative; left: -8%; top: -8%;
  width: 80%; height: 65%;
  background: #fff; border-radius: 50%;
  color: #000; font-weight: bold; font-size: 18px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.1);
}
.small-ellipse {
  position: absolute; bottom: 7%; right: 7%;
  width: 22%; height: 20%;
  background: #fff; border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
  opacity: .9; pointer-events: none; z-index: 2;
}
.zodiac-info { font-size: 9px; font-weight: 500; margin-top: 2px; text-align: center; color: #000; min-height: 14px; }

/* Extra images */
.lottery-extra-images { margin: 8px 0; display: flex; flex-direction: column; gap: 5px; }
.lottery-extra-img { width: 100%; border-radius: 8px; object-fit: cover; cursor: pointer; }

/* Quick menu */
.quick-menu-container {
  background: var(--purple-red-bg);
  border-radius: 10px;
  padding: 12px;
  margin: 8px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.quick-menu-title { font-size: 14px; font-weight: bold; margin-bottom: 10px; color: #fff; text-align: center; }
.quick-menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 6px; }
.quick-menu-btn {
  padding: 8px 4px;
  border: 1px solid #ddd;
  border-radius: 16px;
  background: var(--gold-color);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #e34234;
  transition: all .2s;
}
.quick-menu-btn:hover, .quick-menu-btn.active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

/* Insider tips section */
.prediction-container {
  background: #fff !important;
  color: #333;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  margin: 8px 0;
}
.insider-tips-container { border-radius: 8px; padding: 4px 0; }
.insider-tips-container .insider-banner { text-align: center; margin-bottom: 12px; }
.insider-tips-container .insider-banner img { max-width: 100%; border-radius: 8px; }
.insider-tips-container .insider-section-img { width: 100%; max-width: 100%; height: auto; display: block; margin-bottom: 4px; background: transparent; }
.insider-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; background: #f8f9fa; border-radius: 6px; overflow: hidden; border: 1px solid rgba(0,0,0,.1); }
.insider-table th {
  padding: 8px 4px;
  font-size: 13px;
  border-bottom: 1px solid rgba(0,0,0,.1);
  background: rgba(255,255,255,.6);
}
.insider-table td {
  padding: 8px 6px;
  font-size: 12px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  vertical-align: middle;
}
.insider-table tr:last-child td { border-bottom: none; }
.insider-table td.content-cell { line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.insider-table td.content-cell .sep { color: inherit; opacity: .85; }
.insider-table.highlight-table { background: rgba(255,215,0,.12); transition: background .4s; }
.highlight-match {
  background-color: var(--insider-hit-bg, #ff3333) !important;
  color: var(--insider-hit-text, #FFD700) !important;
  border-radius: 4px;
  padding: 1px 5px;
  font-weight: bold;
  display: inline;
  white-space: nowrap;
  text-shadow: 0 0 5px rgba(255,215,0,.3);
}
.correct-gold {
  background-color: var(--insider-hit-bg, #ff3333) !important;
  color: var(--insider-hit-text, #FFD700) !important;
  text-shadow: 0 0 5px rgba(255,215,0,.3);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
}
.wrong-black {
  color: var(--insider-wrong-text, #000) !important;
  background: var(--insider-wrong-bg, rgba(255,255,255,.3));
  border-radius: 3px;
  padding: 2px 5px;
  font-weight: bold;
}
@keyframes insiderHitPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(255,215,0,0); transform: scale(1); }
  50% { box-shadow: 0 0 12px rgba(255,215,0,.65); transform: scale(1.04); }
}
@keyframes insiderMatchGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); box-shadow: 0 0 8px rgba(255,51,51,.45); }
}
@keyframes insiderMissShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-3px); }
  40% { transform: translateX(3px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}
@keyframes insiderRowFlash {
  0% { background-color: rgba(255,215,0,.28); }
  100% { background-color: transparent; }
}
.correct-gold.result-fx.hit-fx {
  animation: insiderHitPulse 1.6s ease-in-out infinite;
}
.highlight-match.match-fx {
  animation: insiderMatchGlow 2s ease-in-out infinite;
}
.wrong-black.result-fx.miss-fx {
  animation: insiderMissShake .55s ease-in-out 2;
}
.insider-row-hit {
  animation: insiderRowFlash 1.2s ease-out 1;
}
.insider-row-miss td.content-cell {
  opacity: .92;
}
.insider-empty { text-align: center; padding: 20px; color: #FFD700; }

/* History */
.history-container {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  margin-bottom: 8px;
}
.history-top-img { width: 100%; display: block; margin: 8px 0; height: auto; cursor: pointer; }
.history-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--gold-color);
  background: linear-gradient(135deg, #667eea, #764ba2);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0,0,0,.1);
  border-radius: 6px;
  margin: 8px 0;
}
.toggle-history-btn {
  background: #667eea;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 13px;
}
.history-scroll { overflow-x: auto; }
.history-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.history-table th {
  background: #f8f9fa;
  padding: 8px;
  text-align: left;
  font-weight: 600;
  color: #666;
  border-bottom: 2px solid #f0f0f0;
  white-space: nowrap;
}
.history-table td { padding: 8px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.history-table tr:hover { background: #f9fafb; }
.history-numbers { display: flex; align-items: center; flex-wrap: nowrap; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.history-numbers::-webkit-scrollbar { display: none; }
.history-number-ball {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: bold; color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,.2);
  flex-shrink: 0;
}
.history-number-ball.red { background: #ff3333; }
.history-number-ball.blue { background: #3333ff; }
.history-number-ball.green { background: #00cc00; }
.history-number-ball.gray { background: #999; }
.history-number-ball.special { border: 2px solid #ff9900; width: 28px; height: 28px; }
.history-more { text-align: center; padding: 12px; }
.history-more a { color: var(--primary-color); font-weight: bold; font-size: 14px; }
.section-banner { width: 100vw; margin-left: calc(-50vw + 50%); max-width: none; display: block; object-fit: cover; margin: 8px 0; }

/* Zhuge button */
.zhuge-section { text-align: center; margin: 15px 0; }
.zhuge-btn {
  background: linear-gradient(45deg, #ffaa00, #ff6600);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  padding: 12px 20px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 0 15px #ffaa00;
  animation: glow 1.5s infinite alternate;
  transition: transform .3s;
}
.zhuge-btn:hover { transform: scale(1.05); }
@keyframes glow {
  from { box-shadow: 0 0 10px #ffaa00, 0 0 20px #ff6600; }
  to { box-shadow: 0 0 20px #ffaa00, 0 0 40px #ff4500; }
}

/* Daily prediction cards */
.daily-card {
  position: relative;
  margin: 15px auto;
  padding: 0 12px;
  cursor: pointer;
}
.daily-card img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  display: block;
}
.date-overlay {
  position: absolute;
  top: 10px; left: 22px;
  background: rgba(0,0,0,.6);
  color: #fff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  pointer-events: none;
  z-index: 10;
}
.full-width-img {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  max-width: none;
  display: block;
  object-fit: cover;
  margin: 8px 0;
  cursor: pointer;
}

/* Recommend */
.recommend-container {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  margin: 8px 0;
}
.recommend-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #333;
  text-align: center;
}
.recommend-list { display: flex; flex-direction: column; gap: 8px; }
.recommend-item {
  padding: 12px 10px;
  border-radius: 25px;
  background: #f8f9fa;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,.05);
  border: 1px solid #eee;
  border-left: 5px solid var(--secondary-color);
  font-size: 15px;
  transition: all .2s;
}
.recommend-item:hover { transform: scale(1.01); box-shadow: 0 4px 8px rgba(0,0,0,.1); }

/* Insider table */
.prediction-container {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  margin-bottom: 8px;
}
.prediction-title {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 12px;
  color: #333;
  text-align: center;
}
.insider-table { width: 100%; border-collapse: collapse; background: #f8f9fa; border-radius: 6px; overflow: hidden; border: 1px solid rgba(0,0,0,.1); }
.insider-table th {
  background: #f0f0f0;
  color: #000;
  padding: 10px 6px;
  font-size: 13px;
  text-align: center;
  border-bottom: 1px solid #ddd;
  font-weight: 600;
}
.insider-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #ddd;
  color: #000;
  font-size: 13px;
  text-align: center;
  line-height: 1.5;
}
.insider-table tr:last-child td { border-bottom: none; }

/* Footer gallery & material */
.footer-gallery { text-align: center; margin: 15px 0; }
.gallery-btn {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #b30000;
  border: none;
  border-radius: 30px;
  padding: 12px 30px;
  font-size: 18px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(255,215,0,.6);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all .3s;
}
.gallery-btn img { width: 24px; height: 24px; }
.material-container {
  background: var(--purple-red-bg);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  margin: 8px 0;
}
.material-title { font-size: 15px; font-weight: bold; margin-bottom: 12px; color: #fff; text-align: center; }
.material-image { width: 100%; max-width: 600px; height: auto; border-radius: 6px; margin: 0 auto 12px; display: block; box-shadow: 0 3px 8px rgba(0,0,0,.1); cursor: pointer; }
.material-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; padding: 8px 0; }
.material-link {
  background: linear-gradient(135deg, #FF1493, #8B008B);
  color: #fff; padding: 10px 12px; border-radius: 6px; text-decoration: none;
  font-size: 13px; font-weight: 500; text-align: center; cursor: pointer; border: none;
  box-shadow: 0 2px 5px rgba(255,20,147,.3); transition: transform .2s;
}
.material-link:hover { transform: translateY(-2px); }
.gallery-container { margin: 10px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; padding: 0 8px; }
.gallery-item { border-radius: 8px; overflow: hidden; box-shadow: 0 3px 8px rgba(0,0,0,.2); cursor: pointer; background: rgba(255,255,255,.1); }
.gallery-item img { width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover; }
.material-modal { position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 3100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.material-modal-content { background: #fff; width: 100%; max-width: 520px; max-height: 85vh; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.material-modal-header { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.material-modal-title { font-weight: bold; font-size: 17px; }
.material-modal-close { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; }
.material-modal-body { padding: 16px; overflow-y: auto; flex: 1; }
.material-modal-body pre { white-space: pre-wrap; word-break: break-word; font-family: inherit; font-size: 14px; line-height: 1.7; margin: 0; }

.copyright { text-align: center; color: rgba(255,255,255,.85); padding: 15px 0; margin-top: 12px; font-size: 13px; border-top: 1px solid rgba(255,255,255,.2); }

/* Modals */
.recommend-modal {
  position: fixed; inset: 0;
  z-index: 3000;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10%;
  overflow: auto;
}
.recommend-modal-content {
  background: #fff;
  width: 90%;
  max-width: 450px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,.3);
  overflow: hidden;
  animation: modalSlideIn .3s ease;
}
@keyframes modalSlideIn {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.recommend-modal-header {
  background: linear-gradient(135deg, #667eea, #764ba2);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}
.recommend-modal-title { font-weight: bold; font-size: 18px; }
.recommend-modal-close { font-size: 28px; background: none; border: none; color: #fff; line-height: 1; }
.recommend-modal-body { padding: 20px; max-height: 70vh; overflow-y: auto; }
.modal-img { width: 100%; height: auto; border-radius: 8px; margin-bottom: 15px; }
#modalRecommendText { font-size: 16px; line-height: 1.6; word-break: break-word; background: #f8f9fa; padding: 12px; border-radius: 8px; margin-bottom: 15px; }
.modal-actions { display: flex; gap: 10px; }
.btn-copy, .btn-back {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
}
.btn-copy { background: #667eea; color: #fff; }
.btn-back { background: #ffc107; color: #333; }

.popup-mask {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.popup-box { width: 90%; max-width: 360px; background: #fff; border-radius: 8px; overflow: hidden; }
.popup-header {
  background: var(--primary-color);
  color: var(--gold-color);
  padding: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: bold;
}
.popup-close { background: none; border: none; color: inherit; font-size: 20px; }
.popup-body { padding: 16px; font-size: 14px; line-height: 1.6; }
.popup-footer { padding: 0 16px 16px; text-align: center; }
.popup-ok {
  background: var(--secondary-color);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 10px 24px;
  font-size: 14px;
}

.loading-mask {
  position: fixed; inset: 0;
  background: rgba(255,255,255,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
  font-size: 14px;
  color: #999;
}

/* Records page */
.records-page { min-height: 100vh; padding-bottom: 20px; }
.records-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 100;
}
.records-topbar a { color: var(--gold-color); }
.records-wrap {
  background: #fff;
  margin: 8px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  overflow: hidden;
}
.load-more { text-align: center; padding: 16px; color: var(--primary-color); font-size: 14px; cursor: pointer; font-weight: bold; }
.empty { text-align: center; padding: 40px; color: #999; }

@media (max-width: 480px) {
  .number-ball { width: 44px; height: 44px; }
  .ball-inner { font-size: 16px; }
  .gallery-btn { font-size: 15px; padding: 10px 20px; }
}
