/* ===== 基础重置与变量 ===== */
:root {
    --primary: #FFC107;
    --primary-dark: #F59E0B;
    --accent: #4FC3F7;
    --accent-dark: #0288D1;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --card-bg: rgba(0, 0, 0, 0.25);
    --card-border: rgba(255, 255, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

/* ===== 全屏背景图 ===== */
.bg-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('image_optimized.jpg') center center / cover no-repeat;
    z-index: 0;
}

/* ===== 暗色遮罩层 ===== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.1) 30%,
        rgba(0, 0, 0, 0.4) 60%,
        rgba(0, 0, 0, 0.85) 100%
    );
    z-index: 1;
}

/* ===== 粒子动画背景 ===== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: float-up linear infinite;
    opacity: 0;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

/* ===== 主内容区域 ===== */
.main-content {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px 100px;
}

/* ===== 徽章 ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--primary);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    margin-bottom: 16px;
    animation: fadeInDown 0.8s ease-out;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.6); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 主标题 ===== */
.main-title {
    text-align: center;
    margin-bottom: 12px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.title-line {
    display: block;
    font-family: 'Fredoka One', 'Poppins', sans-serif;
    line-height: 1;
}

.line-1 {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary) 0%, #FFE082 50%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 6px;
    text-shadow: none;
}

.line-2 {
    font-size: 64px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent) 0%, #E0F7FA 50%, var(--accent-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 8px;
    margin-top: -2px;
}

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

/* ===== 副标题 ===== */
.subtitle {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
    animation: fadeInUp 1s ease-out 0.4s both;
    font-weight: 300;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ===== 装饰分割线 ===== */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    animation: fadeInUp 1s ease-out 0.45s both;
}

.divider-line {
    display: block;
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,193,7,0.6), transparent);
}

.divider-icon {
    color: var(--primary);
    font-size: 12px;
    animation: spin-slow 6s linear infinite;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== 页脚 ===== */
.footer {
    position: fixed;
    bottom: 16px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 3;
}

.footer p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
}

.footer a {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

/* ===== 响应式 ===== */
@media (max-width: 360px) {
    .line-1 { font-size: 40px; }
    .line-2 { font-size: 52px; }
    .main-content { padding: 0 16px 90px; }
}

@media (min-height: 750px) {
    .main-content { padding-bottom: 120px; }
}

@media (min-height: 850px) {
    .main-content { padding-bottom: 140px; }
    .main-title { margin-bottom: 16px; }
    .subtitle { margin-bottom: 20px; }
}
