:root {
    --primary: #f5c542;
    --bg-dark: #1a1a2e;
    --bg-glass: rgba(26, 26, 46, 0.7);
    --text-main: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden;
}

/* ========================================
   固定导航栏
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 56px;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(245, 197, 66, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.nav-logo {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary);
    letter-spacing: 2px;
    position: absolute;
    left: 40px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 48px;
    margin-left: auto;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* ========================================
   滚动容器与 Section
   ======================================== */
.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.section {
    position: relative;
    width: 100%;
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.splash-bg, .lottery-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.splash-bg img, .lottery-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   Section 1: 首页 (Splash)
   ======================================== */
.splash-section {
    background: #000;
}

.splash-bg img {
    filter: blur(4px) brightness(0.6);
    transform: scale(1.05);
}

.splash-content {
    position: relative;
    text-align: center;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.splash-title {
    font-size: 5rem;
    margin-bottom: 16px;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(245, 197, 66, 0.4),
        0 0 40px rgba(245, 197, 66, 0.2);
    animation: fadeInDown 1.2s ease-out;
    line-height: 1.2;
}

.splash-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 4px;
    animation: fadeInUp 1.2s ease-out 0.3s backwards;
}

.scroll-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    animation: bounce 2s infinite;
}

.splash-section {
    background: #000;
    position: relative;
}

.scroll-hint p {
    font-size: 0.75rem;
    margin-bottom: 6px;
    letter-spacing: 2px;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

/* ========================================
   Section 2: 老虎机 (Lottery)
   ======================================== */
.lottery-section {
    padding-top: 0;
}

.lottery-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.role-selector {
    position: absolute;
    top: 32%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid rgba(245, 197, 66, 0.2);
}

.role-btn {
    padding: 5px 14px;
    font-size: 0.8rem;
    background: transparent;
    border: 1px solid rgba(245, 197, 66, 0.4);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.role-btn:hover {
    background: rgba(245, 197, 66, 0.15);
}

.role-btn.active {
    background: rgba(245, 197, 66, 0.3);
    border-color: var(--primary);
    color: var(--primary);
}

.slot-single {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    height: 240px;
    cursor: pointer;
}

.slot-single.spinning img {
    animation: twitch 0.1s infinite;
}

@keyframes twitch {
    0% { transform: translate(1px, 1px); }
    50% { transform: translate(-1px, -1px); }
    100% { transform: translate(1px, -1px); }
}

.slot-display {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slot-display img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: 
        brightness(0.5)
        drop-shadow(0 0 5px rgba(245, 197, 66, 0.2));
    transition: filter 0.3s ease;
}

.slot-single:hover .slot-display img {
    filter: 
        brightness(1)
        drop-shadow(0 0 20px rgba(245, 197, 66, 0.6))
        drop-shadow(0 0 40px rgba(245, 197, 66, 0.3));
}

.hero-name {
    position: absolute;
    top: 250px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary);
    text-shadow: 
        0 0 10px rgba(245, 197, 66, 0.8),
        0 0 20px rgba(245, 197, 66, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.8);
    text-align: center;
    letter-spacing: 3px;
    white-space: nowrap;
    width: max-content;
}

/* ========================================
   弹窗 (Modal)
   ======================================== */
.modal {
    border: none;
    background: transparent;
    padding: 0;
    max-width: 500px;
    width: 90%;
    margin: auto;
}

.modal::backdrop {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
}

.modal-box {
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-header {
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    font-size: 1.1rem;
    color: var(--primary);
}

.close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--text-main);
}

.modal-body {
    padding: 24px;
    max-height: 400px;
    overflow-y: auto;
}

.history-list {
    list-style: none;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 12px;
    animation: fadeInRight 0.4s ease-out backwards;
}

.history-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.history-info .name {
    font-weight: bold;
    display: block;
    color: #ffffff;
}

.history-info .time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.about-content p {
    margin-bottom: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   动画
   ======================================== */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

/* ========================================
   移动端适配
   ======================================== */
@media (max-width: 768px) {
    .splash-title { font-size: 3rem; }
    .nav-menu { gap: 16px; }
    .nav-logo { font-size: 1rem; }
    .slot-single { width: 300px; height: 200px; }
    .slot-display img { width: 130px; height: 130px; }
    .hero-name { font-size: 1.2rem; }
    .role-selector { top: 30%; }
}
