/* ========================================================
   NOTICE & LUCKY GLOBE — 奶昔金主题 V5.0 COMPLETE
   包含：跑马灯 · 3D Globe · 通知列表 · Boosts · Achievements · 弹窗
   ======================================================== */

/* ── 页面容器 ─────────────────────────────────────────── */
#noticePage {
  background: var(--bg-base) !important;
  color: var(--text-primary);
}

/* ── LUCKY FIRST SCREEN ─────────────────────────────── */
.lucky-first-screen {
  display: block;
  position: relative;
  overflow: visible;
  padding: 60px 0 10px 0;
  background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-surface) 100%);
}

/* ── MARQUEE 跑马灯 ─────────────────────────────────── */
.notice-nav { display: none; }
.sticky-marquee {
  background: var(--bg-base-glass, rgba(253, 250, 244, 0.92));
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 10px 0;
  border-bottom: 1px solid rgba(184, 134, 11, 0.25);
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 11000;
  overflow: hidden;
}
.marquee-content {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: marquee-flux var(--marquee-duration, 35s) linear infinite;
  will-change: transform;
}
.marquee-content span {
  display: inline-block;
  padding-right: 50px;
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
}

/* ── HERO TEXT ──────────────────────────────────────── */
.lucky-hero-text {
  text-align: center;
  margin: 0;
  padding: 0 20px 12px;
  z-index: 10;
}
.lucky-main-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--gold);
  margin: 0; padding: 0;
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.lucky-main-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 6px 0 0 0;
}

/* ── GLOBE CONTAINER ────────────────────────────────── */
.lucky-globe-container {
  display: block;
  position: relative;
  height: 340px;
  margin: 10px auto;
  z-index: 5;
  text-align: center;
}

/* ── 3D GLOBE WRAP (需要 perspective) ───────────────── */
.lucky-globe-wrap {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  position: relative;
  z-index: 10;
  margin: 0 auto;
  perspective: 2000px;        /* 极深景深，奢侈品级空间感 */
}

/* ── 3D GLOBE ───────────────────────────────────────── */
.lucky-globe {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
  animation: breatheOrbit 15s ease-in-out infinite;
  transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 呼吸式椭圆轨道动画 */
@keyframes breatheOrbit {
  0%   { transform: rotateY(0deg)   rotateX(8deg)  scale(1);    }
  25%  { transform: rotateY(90deg)  rotateX(14deg) scale(1.04); }
  50%  { transform: rotateY(180deg) rotateX(8deg)  scale(1.01); }
  75%  { transform: rotateY(270deg) rotateX(14deg) scale(1.04); }
  100% { transform: rotateY(360deg) rotateX(8deg)  scale(1);    }
}

/* 抽奖加速旋转 */
.lucky-globe.spinning {
  animation: hyperSpin 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes hyperSpin {
  0%   { transform: rotateY(0deg)    rotateX(8deg)  scale(1);    }
  50%  { transform: rotateY(720deg)  rotateX(15deg) scale(1.1);  }
  100% { transform: rotateY(1440deg) rotateX(8deg)  scale(1);    }
}

/* ── 球环 ────────────────────────────────────────────── */
.sphere-ring {
  position: absolute; top: 50%; left: 50%;
  width: 300px; height: 300px;
  margin: -150px 0 0 -150px;
  border-radius: 50%;
  border: 1px solid rgba(184, 134, 11, 0.25);
  box-shadow: 0 0 30px rgba(184,134,11,0.08), inset 0 0 30px rgba(184,134,11,0.04);
  pointer-events: none;
  animation: ringPulse 3s ease-in-out infinite;
  z-index: 1;
}
@keyframes ringPulse {
  0%,100% { opacity: 0.5; transform: scale(1); }
  50%     { opacity: 1;   transform: scale(1.04); }
}

/* ── GLOBE 光晕 ─────────────────────────────────────── */
.globe-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(184,134,11,0.20) 0%, transparent 75%);
  transform: translate(-50%, -50%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  animation: auraBreathe 4s ease-in-out infinite alternate;
}
@keyframes auraBreathe {
  from { opacity: 0.4; transform: translate(-50%,-50%) scale(0.9); }
  to   { opacity: 1;   transform: translate(-50%,-50%) scale(1.1); }
}

/* ── 每张卡片（球上的小圆） ──────────────────────────── */
.lucky-card {
  position: absolute;
  width: 70px;
  height: 70px;
  margin: -35px 0 0 -35px;
  top: 50%;
  left: 50%;
  transform-style: preserve-3d;
  border-radius: 50%;
  backface-visibility: hidden;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  z-index: 2;
  will-change: transform;
}

/* 卡片正面 - 奶昔金玻璃效果 */
.lucky-card .card-face {
  position: absolute; inset: 0;
  border-radius: 50%;
  backface-visibility: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg-card, rgba(255,252,240,0.92)), var(--bg-surface, rgba(240,224,192,0.85)));
  border: 1.5px solid rgba(184,134,11,0.50);
  box-shadow: 0 4px 16px rgba(184,134,11,0.15), inset 0 0 12px rgba(184,134,11,0.08);
  backdrop-filter: blur(4px);
  overflow: hidden;
}

/* 高光层 */
.lucky-card .card-face::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--bg-card-glass, rgba(255,255,255,0.35)) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.lucky-card:hover {
  transform: translateZ(40px) scale(1.2) !important;
  box-shadow: 0 0 40px rgba(184,134,11,0.50);
  z-index: 100;
}

/* 旋转时卡片脉冲 */
.lucky-globe.spinning .lucky-card {
  animation: cardPulse 0.8s infinite alternate;
}
@keyframes cardPulse {
  from { transform: scale(1) translateZ(0); }
  to   { transform: scale(1.06) translateZ(10px); }
}

/* 卡片内部元素 */
.lucky-card-name { font-size: 13px; font-weight: 700; color: var(--gold); line-height: 1.2; }
.lucky-card-earn { font-size: 13px; color: var(--green); font-weight: 700; margin-top: 2px; }
.lucky-card-vip {
  position: absolute;
  top: -4px; right: -4px;
  font-size: 8px; padding: 1px 5px;
  border-radius: 8px; font-weight: 700;
  background: var(--gold); color: var(--text-white, #fff);
  box-shadow: 0 2px 5px rgba(184,134,11,0.4);
}
.lucky-gift-thumb {
  width: 32px; height: 24px;
  object-fit: cover; margin-top: 2px;
  filter: drop-shadow(0 0 4px rgba(184,134,11,0.4));
}

/* ── CTA ROW ────────────────────────────────────────── */
.lucky-cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
}
.spin-btn-large {
  width: 72%; height: 52px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  border: none;
  color: var(--text-white, #fff);
  border-radius: 28px;
  font-size: 16px; font-weight: 700;
  box-shadow: 0 8px 24px rgba(184,134,11,0.30);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.spin-btn-large:hover { box-shadow: 0 12px 30px rgba(184,134,11,0.45); }
.spin-btn-large:active { transform: scale(0.97); }

.lucky-mini-rules {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

/* ── LUCKY TICKER ───────────────────────────────────── */
.lucky-ticker-wrap { display: flex; justify-content: center; align-items: center; margin-bottom: 0; }
.lucky-ticker {
  background: transparent;
  border: none;
  border-top: 1px solid rgba(184,134,11,0.10);
  padding: 12px 20px 0;
  max-width: none; width: 100%;
  height: auto; display: block;
}
.lucky-ticker-item {
  font-size: 13px;
  color: var(--gold);
  opacity: 0.85;
  white-space: normal;
  display: block;
  animation: tickerAnim 0.8s ease-out;
}
@keyframes tickerAnim {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 0.85; transform: translateY(0); }
}

/* ── NOTICE HERO WRAP ───────────────────────────────── */
.notice-hero-wrap {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

/* ── NOTIFICATION LIST ──────────────────────────────── */
.notice-list-section {
  background: var(--bg-surface);
  padding: 40px 20px;
  border-top: 1px solid var(--border);
}
.notice-list-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
  margin-bottom: 20px;
}
.notice-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.notice-card {
  position: relative;
  background: var(--bg-card-glass, rgba(255,255,255,0.85));
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all 0.3s cubic-bezier(0.19,1,0.22,1);
  box-shadow: 0 2px 10px rgba(184,134,11,0.05);
  backdrop-filter: blur(8px);
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}
.notice-card:nth-child(1) { animation-delay: 0.15s; }
.notice-card:nth-child(2) { animation-delay: 0.30s; }
.notice-card:nth-child(3) { animation-delay: 0.45s; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.notice-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold);
  box-shadow: 0 8px 24px rgba(184,134,11,0.12);
}
.notice-card.unread {
  border-color: var(--border-gold);
  background: var(--bg-card, rgba(255,252,240,0.92));
}
.notice-card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--border-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: var(--gold-bg);
  flex-shrink: 0;
}
.notice-card-content { flex: 1; min-width: 0; }
.notice-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 8px;
}
.notice-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Playfair Display', serif;
}
.notice-card-time {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.notice-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}
.notice-unread-dot {
  position: absolute;
  top: 12px; right: 12px;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid #fff;
  animation: unreadPulse 2s infinite;
}
@keyframes unreadPulse {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.2); box-shadow: 0 0 6px rgba(160,48,48,0.5); }
}

/* ── BOOSTS & REWARDS ───────────────────────────────── */
.boosts-section {
  padding: 48px 20px !important;
  background: var(--bg-base) !important;
  border-top: 1px solid var(--border) !important;
}
.boosts-title {
  text-align: center;
  color: var(--text-primary);
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.boosts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 400px) {
  .boosts-grid { grid-template-columns: repeat(3, 1fr); }
}
.boost-card {
  background: var(--bg-card-glass, rgba(255,255,255,0.82));
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(184,134,11,0.05);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.boost-card:hover {
  border-color: var(--border-gold);
  box-shadow: 0 6px 20px rgba(184,134,11,0.12);
  transform: translateY(-2px);
}
.boost-title {
  font-size: 14px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.boost-val { font-size: 13px; color: var(--gold); font-weight: 600; margin-bottom: 4px; }
.boost-note { font-size: 13px; color: var(--text-muted); font-style: italic; }

/* ── ACHIEVEMENTS ───────────────────────────────────── */
.achieve-section {
  padding: 48px 20px 100px;
  background: var(--bg-surface);
  text-align: center;
  border-top: 1px solid var(--border);
}
.achieve-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.achieve-card {
  background: var(--bg-card-glass, rgba(255,255,255,0.82));
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 20px 12px;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(184,134,11,0.05);
  transition: border-color 0.2s, transform 0.2s;
}
.achieve-card:hover { border-color: var(--border-gold); transform: translateY(-2px); }
.achieve-icon { font-size: 28px; margin-bottom: 10px; }
.achieve-val {
  font-size: 22px; font-weight: 800;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  margin-bottom: 4px;
}
.achieve-lbl {
  font-size: 13px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* ── LUCKY WIN MODAL ────────────────────────────────── */
.lucky-win-content {
  text-align: center;
  padding: 12px 15px 20px;
  max-height: 85vh;
  overflow-y: auto;
}
.lucky-win-star-img {
  max-width: 120px;
  height: auto;
  margin: 0 auto 10px;
  display: block;
  animation: starPulse 1.5s ease-in-out infinite;
}
@keyframes starPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.1)} }
.lucky-win-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700;
  color: var(--gold); margin-bottom: 4px;
}
.lucky-win-sub { font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; }
.lucky-win-desc { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* 获奖结果卡 - 奶昔金版 */
.lucky-card-result {
  position: relative;
  width: 180px; height: 160px;
  margin: 14px auto;
  background: linear-gradient(135deg, var(--bg-card, rgba(255,252,240,0.98)) 0%, var(--bg-surface, rgba(240,224,192,0.95)) 100%);
  border: 2px solid var(--gold);
  box-shadow: 0 8px 32px rgba(184,134,11,0.25), inset 0 0 20px rgba(184,134,11,0.08);
  border-radius: 16px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 12px;
  z-index: 10;
}

/* 弹窗中的卡片元素（覆盖 globe 内的版本） */
.lucky-card-result .lucky-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 8px;
  font-family: 'Playfair Display', serif;
}
.lucky-card-result .lucky-card-vip {
  position: absolute;
  top: 0; right: 0;
  font-size: 13px; padding: 3px 10px;
  border-radius: 0 14px 0 14px;
  font-weight: 700;
  background: var(--gold); color: var(--text-white, #fff);
  box-shadow: 2px 2px 8px rgba(184,134,11,0.4);
}
.lucky-card-prize-img {
  width: 80px; height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(184,134,11,0.4));
}
.lucky-card-amount {
  font-size: 28px; font-weight: 900;
  color: var(--gold);
  margin: 8px 0;
  font-family: 'Playfair Display', serif;
  text-shadow: 0 0 12px rgba(184,134,11,0.3);
}

/* ── BUY LUCKY MODAL ────────────────────────────────── */
.buy-lucky-card {
  background: var(--bg-card, rgba(255,252,240,0.98));
  border: 2px solid var(--border-gold);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(184,134,11,0.15);
}
.buy-lucky-icon { font-size: 48px; margin-bottom: 12px; }
.buy-lucky-price {
  font-size: 24px; font-weight: 800;
  color: var(--gold); margin: 8px 0;
  font-family: 'Playfair Display', serif;
}
.buy-lucky-input { margin-top: 14px; }
.buy-lucky-input label {
  display: block; font-size: 13px;
  color: var(--text-muted); margin-bottom: 5px;
  text-transform: uppercase;
}

/* ── SCROLL HINT ────────────────────────────────────── */
.scroll-hint {
  height: 50px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0.6; cursor: pointer;
}
.scroll-arrow { font-size: 18px; color: var(--gold); animation: bounceDown 1.5s infinite; }

/* ── ANIMATIONS ─────────────────────────────────────── */
@keyframes marquee-flux {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}
