:root { --accent-color: #66e4ee; --neon-blue: #66e4ee; --neon-purple: #a78bfa; --dark-bg: #0b101b; color-scheme: dark; }
[hidden] { display: none !important; }
.music-launch { position: fixed; left: max(12px,env(safe-area-inset-left)); bottom: max(12px,env(safe-area-inset-bottom)); min-height: 44px; padding: 10px 16px; border: 1px solid #344258; background: #162033; color: #bcd8e5; border-radius: 14px; z-index: 80; cursor: pointer; }
html { min-height: 100%; height: auto !important; scroll-padding-top: 100px; }
body { height: auto !important; min-height: 100vh; min-height: 100dvh; overflow-x: clip !important; overflow-y: auto !important; background-color: #0b101b; }
body.dialog-open { overflow: hidden !important; }
.modal-content { position: relative; left: auto; top: auto; }
.modal-body { overflow: visible; max-height: none; padding: 16px 0 0; }
.close-modal, .close-qq-modal { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: #fff; }
body, button, input, textarea { font-family: 'Microsoft YaHei', system-ui, sans-serif; }
img { max-width: 100%; height: auto; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button, .cta-button, .download-btn, .nav-links a { touch-action: manipulation; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #66e4ee; outline-offset: 5px; }
button:disabled { opacity: .6; cursor: wait; }
.navbar { position: sticky; top: 0; width: 100%; min-height: 76px; padding: 16px max(24px, calc((100vw - 1240px) / 2)); gap: 24px; z-index: 100; background: rgba(11,16,27,.96); border-bottom: 1px solid rgba(148,163,184,.18); }
.navbar .logo { font-size: clamp(17px, 2vw, 23px); line-height: 1.4; letter-spacing: .03em; text-shadow: none; white-space: normal; }
.nav-links { gap: 20px; }
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; white-space: nowrap; }
.menu-toggle { border: 1px solid rgba(148,163,184,.24); background: transparent; color: inherit; border-radius: 12px; min-width: 44px; min-height: 44px; padding: 10px; flex-shrink: 0; }
.menu-toggle span { margin: 3px 0; }
.hero { height: auto; min-height: calc(100dvh - 130px); padding: 68px 24px; overflow: hidden; }
.hero-content { width: min(100%, 960px); max-width: 960px; margin: auto; padding: clamp(24px,5vw,64px); border: 1px solid rgba(148,163,184,.18); border-radius: 28px; background: linear-gradient(135deg,rgba(24,34,53,.94),rgba(12,18,32,.92)); box-shadow: 0 28px 90px rgba(0,0,0,.3); backdrop-filter: blur(12px); }
.hero h1 { font-size: clamp(32px,5.5vw,64px); line-height: 1.25; letter-spacing: -.03em; text-wrap: balance; text-shadow: none; margin-bottom: 22px; }
.hero p { font-size: clamp(15px,2vw,19px); line-height: 1.9; color: #b5c3d8; text-wrap: balance; }
.hero-subgrid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 24px 0; }
.hero-pill { padding: 8px 14px; border-radius: 30px; background: rgba(102,228,238,.06); border: 1px solid rgba(102,228,238,.2); color: #c2dfe7; font-size: 13px; }
.button-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.cta-button { min-height: 50px; padding: 14px 26px; border-radius: 12px; font-size: 16px; line-height: 1.4; letter-spacing: .02em; }
.main-content, body > .content { width: min(100%, 1200px); max-width: 1200px; margin: 0 auto; padding: 48px 24px 96px; min-height: calc(100dvh - 150px); height: auto; }
.page-header { margin: 0 auto 32px; }
.page-header h1, .content > h1 { font-size: clamp(27px,4vw,42px); line-height: 1.4; }
.downloads-container { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.download-card { width: auto; min-width: 0; margin: 0; border-radius: 20px; padding: 28px; }
.download-btn { min-height: 48px; white-space: normal; }
.card-description { line-height: 1.85; }
.requirements-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.reward-container { width: min(100%, 620px); max-width: 620px; margin: 0 auto; padding: clamp(24px,4vw,42px); border-radius: 24px; }
.reward-container { display: block; text-align: center; }
.id-input-area { width: 100%; margin: 20px auto 0; }
.error-message { height: auto; min-height: 24px; line-height: 1.6; margin-top: 8px; }
.error-message:empty { min-height: 0; margin: 0; }
.participant-count { margin-top: 16px; }
.code-area, #reward-code-container { width: 100%; }
.game-id-input { width: 100%; min-height: 52px; font-size: 16px; border-radius: 12px; }
.verify-btn, .copy-btn, .submit-btn, .toggle-form-btn { min-height: 48px; border-radius: 12px; }
.id-note, .participant-count, .reward-description { line-height: 1.8; }
.code { font-size: clamp(16px,3.7vw,24px); overflow-wrap: anywhere; user-select: all; line-height: 1.7; }
.gift-tooltip { max-width: min(340px,calc(100vw - 56px)); max-height: 50dvh; overflow: auto; font-size: 14px; text-align: left; }
.gift-tooltip.show { left: 50%; transform: translateX(-50%); }
.gift-details { margin: 18px 0; padding: 16px 20px; border: 1px solid rgba(148,163,184,.18); border-radius: 14px; background: rgba(102,228,238,.04); text-align: left; }
.gift-details summary { cursor: pointer; min-height: 30px; font-size: 14px; color: #bcd8e5; }
.gift-details ul { margin: 12px 0 0; padding-left: 20px; line-height: 1.9; color: #b5c3d8; }
.gift-title { font-size: 25px; line-height: 1.5; margin: 16px 0 8px; }
.claim-instructions { font-size: 14px; line-height: 1.8; color: #b5c3d8; margin-top: 20px; }
.announcement-card, .message-card { overflow-wrap: anywhere; }
.announcement-content { line-height: 1.9; }
.message-content { white-space: pre-wrap; overflow-wrap: anywhere; }
.pagination-item { min-height: 44px; min-width: 44px; border: 1px solid #29384e; color: #d5e0ef; background: #111a2b; cursor: pointer; }
.announcement-content img { max-width: 100%; }
.announcement-content pre, .announcement-content table { max-width: 100%; overflow-x: auto; display: block; }
.modal-content, .qq-modal-content { max-width: min(620px,calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; border-radius: 20px; }
.modal-body input, .modal-body textarea { font-size: 16px; }
.footer { position: static; width: 100%; padding: 18px 24px max(24px,env(safe-area-inset-bottom)); min-height: 58px; line-height: 1.7; }
.footer p { font-size: 12px; color: #8494ad; }
.loader { display: none !important; }
.rain-container, .cloud-effect, .floating-images, .electric-border { pointer-events: none; }
.netease-mini-player { z-index: 80 !important; }
.site-toast { position: fixed; bottom: max(28px,env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 14px 22px; border: 1px solid #344258; background: #162033; color: #fff; border-radius: 14px; z-index: 3000; font-size: 14px; line-height: 1.6; box-shadow: 0 10px 40px #0006; }
@media (max-width: 1000px) {
  .navbar { padding: 12px 20px; gap: 14px; }
  .nav-links { gap: 12px; }
  .navbar .logo { font-size: 18px; }
}
@media (max-width: 800px) {
  .navbar { min-height: 70px; padding: max(12px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left)); }
  .navbar .logo { max-width: calc(100% - 64px); font-size: 17px; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; align-items: center; }
  .nav-links { display: none; position: absolute; inset: 100% 12px auto; width: auto; height: auto; max-height: calc(100dvh - 90px); overflow-y: auto; padding: 10px; background: #111a2b; border: 1px solid #29384e; border-radius: 16px; box-shadow: 0 18px 40px #0006; transform: none; opacity: 1; visibility: visible; }
  .nav-links.active { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  .nav-links a { display: flex; justify-content: center; padding: 12px; margin: 0; border-radius: 10px; }
  .nav-links a.active { background: rgba(102,228,238,.1); }
  .hero { min-height: calc(100dvh - 130px); padding: 32px 16px 48px; }
  .hero-content { padding: 32px 20px; border-radius: 22px; }
  .hero h1 { font-size: clamp(30px,7.5vw,48px); }
  .hero p { font-size: 15px; }
  .button-group { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 10px; }
  .button-group > :first-child { grid-column: 1 / -1; }
  .cta-button { width: 100%; min-width: 0; margin: 0; padding: 14px 10px; font-size: 15px; }
  .main-content, body > .content { padding: 32px 16px 96px; min-height: calc(100dvh - 128px); }
  .downloads-container, .requirements-grid { grid-template-columns: 1fr; gap: 16px; }
  .download-card { padding: 26px 22px; }
  .system-requirements { padding: 24px 20px; }
  .reward-container { padding: 28px 20px; }
  .gift-image { margin-bottom: 12px; }
  .verify-btn, .copy-btn { width: 100%; }
  .rain-container, .cloud-effect, .floating-images, .electric-border { display: none; }
  .netease-mini-player { bottom: max(10px,env(safe-area-inset-bottom)) !important; max-width: calc(100vw - 20px); }
  .netease-mini-player.expanded { max-height: 65dvh; overflow-y: auto; }
  .modal-content { padding: 22px 18px; }
  .message-board, .announcement-card { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rain-container, .cloud-effect, .floating-images, .electric-border { display: none; }
}
