/* ============================================
   福利方舟 - 礼盒惊喜风主题样式
   CSS前缀: fl-
   配色: 庆典红 #D32F2F / 璀璨金 #FFD700 / 纯白 #FFFFFF / 深黑 #212121 / 阳光黄 #FBC02D
   字体: Merriweather (标题) / Roboto (正文)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700;900&family=Roboto:wght@300;400;500;700&display=swap');

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #212121;
    background: #1a0000;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: #FBC02D;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FFD700;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    color: #FFD700;
    line-height: 1.3;
}

/* === Navigation === */
#fl-header {
    background: #D32F2F;
    padding: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.fl-nav-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}

.fl-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fl-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FFD700, #FBC02D);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(255,215,0,0.4);
}

.fl-logo-text {
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    color: #FFD700;
    font-weight: 700;
}

.fl-nav-links {
    display: flex;
    list-style: none;
    gap: 0;
}

.fl-nav-links li a {
    display: block;
    padding: 10px 16px;
    color: #FFD700;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.fl-nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #FFD700;
    transition: width 0.3s ease;
}

.fl-nav-links li a:hover::after {
    width: 70%;
}

.fl-nav-links li a:hover {
    color: #FFFFFF;
}

/* Hamburger Menu */
.fl-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.fl-hamburger span {
    width: 28px;
    height: 3px;
    background: #FFD700;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Menu */
.fl-mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #8B6914, #5C4400);
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    padding: 60px 20px 20px;
    box-shadow: -5px 0 30px rgba(0,0,0,0.5);
}

.fl-mobile-menu.fl-active {
    right: 0;
}

.fl-mobile-menu a {
    display: block;
    padding: 14px 20px;
    color: #FFD700;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,215,0,0.2);
}

.fl-mobile-menu a:hover {
    background: rgba(255,215,0,0.1);
    color: #FFFFFF;
}

.fl-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    color: #FFD700;
    cursor: pointer;
    background: none;
    border: none;
}

.fl-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
    display: none;
}

.fl-overlay.fl-active {
    display: block;
}

/* === Hero Banner === */
#fl-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.fl-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.fl-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(26,0,0,0.4) 0%, rgba(26,0,0,0.7) 100%);
    z-index: 2;
}

.fl-hero-content {
    position: relative;
    z-index: 3;
    padding: 40px 20px;
}

.fl-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.fl-hero-content p {
    font-size: 1.3rem;
    color: #FFFFFF;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.fl-countdown {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.fl-countdown-item {
    background: rgba(211,47,47,0.8);
    border: 2px solid #FFD700;
    border-radius: 10px;
    padding: 12px 18px;
    min-width: 70px;
    text-align: center;
}

.fl-countdown-item .fl-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #FFD700;
    font-family: 'Merriweather', serif;
}

.fl-countdown-item .fl-label {
    font-size: 0.75rem;
    color: #FFFFFF;
    text-transform: uppercase;
}

/* === Buttons === */
.fl-btn {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, #D32F2F, #B71C1C);
    color: #FFD700;
    border: 2px solid #FFD700;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(211,47,47,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
}

.fl-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(211,47,47,0.6), 0 0 20px rgba(255,215,0,0.3);
    color: #FFFFFF;
}

.fl-btn:active {
    transform: scale(0.97);
}

/* === Sections === */
.fl-section {
    padding: 80px 20px;
    max-width: 1440px;
    margin: 0 auto;
}

.fl-section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 15px;
    position: relative;
}

.fl-section-subtitle {
    text-align: center;
    color: #CCCCCC;
    font-size: 1.1rem;
    margin-bottom: 50px;
}

/* === Cards === */
.fl-card {
    background: linear-gradient(145deg, #2a0a0a, #1a0000);
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.fl-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #FBC02D, #FFD700);
}

.fl-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255,215,0,0.15), 0 0 30px rgba(255,215,0,0.1);
    border-color: rgba(255,215,0,0.5);
}

.fl-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.fl-card-body {
    padding: 20px;
}

.fl-card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #FFD700;
}

.fl-card-text {
    color: #CCCCCC;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* === Grid Layouts === */
.fl-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.fl-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.fl-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    align-items: center;
}

/* === Horizontal Scroll === */
.fl-scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.fl-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.fl-scroll-container::-webkit-scrollbar-track {
    background: rgba(255,215,0,0.1);
    border-radius: 3px;
}

.fl-scroll-container::-webkit-scrollbar-thumb {
    background: #FFD700;
    border-radius: 3px;
}

.fl-scroll-card {
    min-width: 300px;
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* === Lucky Wheel Section === */
.fl-wheel-section {
    text-align: center;
}

.fl-wheel-img {
    max-width: 400px;
    margin: 0 auto 30px;
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(255,215,0,0.3);
    animation: fl-glow 3s ease-in-out infinite alternate;
}

@keyframes fl-glow {
    from { box-shadow: 0 0 40px rgba(255,215,0,0.2); }
    to { box-shadow: 0 0 80px rgba(255,215,0,0.5); }
}

/* === Leaderboard === */
.fl-leaderboard {
    background: linear-gradient(145deg, #2a0a0a, #1a0000);
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 12px;
    padding: 30px;
}

.fl-leaderboard-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,215,0,0.1);
}

.fl-leaderboard-item:last-child {
    border-bottom: none;
}

.fl-rank {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-right: 15px;
    background: rgba(255,215,0,0.1);
    color: #FFD700;
    border: 1px solid rgba(255,215,0,0.3);
}

.fl-rank-1 { background: #FFD700; color: #1a0000; }
.fl-rank-2 { background: #C0C0C0; color: #1a0000; }
.fl-rank-3 { background: #CD7F32; color: #1a0000; }

.fl-leaderboard-name {
    flex: 1;
    color: #FFFFFF;
    font-weight: 500;
}

.fl-leaderboard-score {
    color: #FFD700;
    font-weight: 700;
}

/* === Announcements === */
.fl-announcement-list {
    list-style: none;
}

.fl-announcement-item {
    padding: 18px 20px;
    border-left: 4px solid #FFD700;
    background: linear-gradient(90deg, rgba(255,215,0,0.05), transparent);
    margin-bottom: 12px;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
}

.fl-announcement-item:hover {
    background: linear-gradient(90deg, rgba(255,215,0,0.1), transparent);
    padding-left: 25px;
}

.fl-announcement-date {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 5px;
}

.fl-announcement-title {
    color: #FFFFFF;
    font-weight: 500;
}

/* === Footer === */
#fl-footer {
    background: #0d0000;
    border-top: 2px solid rgba(255,215,0,0.2);
    padding: 60px 20px 30px;
}

.fl-footer-container {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.fl-footer-col h4 {
    font-size: 1.1rem;
    color: #FFD700;
    margin-bottom: 20px;
    font-family: 'Merriweather', serif;
}

.fl-footer-col ul {
    list-style: none;
}

.fl-footer-col ul li {
    margin-bottom: 10px;
}

.fl-footer-col ul li a {
    color: #CCCCCC;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.fl-footer-col ul li a:hover {
    color: #FFD700;
}

.fl-footer-bottom {
    max-width: 1440px;
    margin: 40px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255,215,0,0.1);
    text-align: center;
}

.fl-footer-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.fl-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,215,0,0.05);
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 6px;
    color: #CCCCCC;
    font-size: 0.85rem;
}

.fl-badge-icon {
    color: #FFD700;
}

.fl-copyright {
    color: #999;
    font-size: 0.85rem;
    margin-top: 15px;
}

/* === Particles Canvas === */
#fl-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* === Page Content Sections === */
.fl-page-hero {
    padding: 100px 20px 60px;
    text-align: center;
    background: linear-gradient(180deg, #2a0a0a, #1a0000);
    position: relative;
}

.fl-page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.fl-page-hero p {
    color: #CCCCCC;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* === Calendar (Checkin Page) === */
.fl-calendar {
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(145deg, #2a0a0a, #1a0000);
    border: 1px solid rgba(255,215,0,0.2);
    border-radius: 16px;
    padding: 30px;
}

.fl-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.fl-calendar-title {
    font-size: 1.4rem;
    color: #FFD700;
}

.fl-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.fl-calendar-day-label {
    text-align: center;
    color: #999;
    font-size: 0.85rem;
    padding: 8px 0;
}

.fl-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #CCCCCC;
    background: rgba(255,255,255,0.03);
    cursor: pointer;
    transition: all 0.3s ease;
}

.fl-calendar-day.fl-checked {
    background: rgba(255,215,0,0.15);
    color: #FFD700;
    border: 1px solid rgba(255,215,0,0.4);
}

.fl-calendar-day.fl-today {
    background: #D32F2F;
    color: #FFFFFF;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(211,47,47,0.5);
}

.fl-calendar-day.fl-empty {
    background: transparent;
    cursor: default;
}

.fl-checkin-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.fl-stat-item {
    text-align: center;
}

.fl-stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: #FFD700;
    font-family: 'Merriweather', serif;
}

.fl-stat-label {
    color: #999;
    font-size: 0.85rem;
}

/* === Video Cards === */
.fl-video-card {
    background: linear-gradient(145deg, #2a0a0a, #1a0000);
    border: 1px solid rgba(255,215,0,0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.fl-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255,215,0,0.12);
    border-color: rgba(255,215,0,0.4);
}

.fl-video-thumb {
    position: relative;
    overflow: hidden;
}

.fl-video-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.fl-video-card:hover .fl-video-thumb img {
    transform: scale(1.05);
}

.fl-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(211,47,47,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fl-video-card:hover .fl-video-play {
    opacity: 1;
}

.fl-video-play::after {
    content: '';
    border-style: solid;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent #FFD700;
    margin-left: 3px;
}

.fl-video-info {
    padding: 15px;
}

.fl-video-title {
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fl-video-meta {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 0.8rem;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .fl-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    .fl-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .fl-nav-links {
        display: none;
    }
    .fl-hamburger {
        display: flex;
    }
    .fl-hero-content h1 {
        font-size: 2rem;
    }
    .fl-hero-content p {
        font-size: 1rem;
    }
    .fl-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .fl-grid-3 {
        grid-template-columns: 1fr;
    }
    .fl-grid-2 {
        grid-template-columns: 1fr;
    }
    .fl-footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .fl-section {
        padding: 50px 15px;
    }
    .fl-section-title {
        font-size: 1.7rem;
    }
}

@media (max-width: 360px) {
    .fl-hero-content h1 {
        font-size: 1.6rem;
    }
    .fl-countdown {
        gap: 8px;
    }
    .fl-countdown-item {
        padding: 8px 12px;
        min-width: 55px;
    }
    .fl-countdown-item .fl-num {
        font-size: 1.5rem;
    }
    .fl-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* === Utility === */
.fl-text-center { text-align: center; }
.fl-mt-20 { margin-top: 20px; }
.fl-mt-40 { margin-top: 40px; }
.fl-mb-20 { margin-bottom: 20px; }
.fl-mb-40 { margin-bottom: 40px; }

/* === Checkin Success Modal === */
.fl-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.fl-modal.fl-active {
    display: flex;
}

.fl-modal-content {
    background: linear-gradient(145deg, #2a0a0a, #1a0000);
    border: 2px solid #FFD700;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: fl-modal-in 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes fl-modal-in {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.fl-modal-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.fl-modal-title {
    font-size: 1.5rem;
    color: #FFD700;
    margin-bottom: 10px;
}

.fl-modal-text {
    color: #CCCCCC;
    margin-bottom: 25px;
}
