/* Survival Project - 现代简约 + 中心像素文字 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Press+Start+2P&display=swap');

:root {
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --pixel-gold: #ffd700;
    --pixel-amber: #ffb000;
    --pixel-yellow: #fff200;
    --pixel-pink: #ff69b4;
    --pixel-green: #00ff41;
    --pixel-blue: #00bfff;
    --dark: #0f172a;
    --darker: #020617;
    --light: #f8fafc;
    --gray: #64748b;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 35px 60px -12px rgba(0, 0, 0, 0.3);
    --pixel-shadow: 2px 2px 0px rgba(255, 210, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    background: #000000;
    color: var(--light);
    overflow-x: hidden;
    min-height: 100vh;
}

/* 导航栏 - 高级现代设计 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.875rem 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 60px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    color: #ffffff;
    font-size: 1.375rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    z-index: 1001;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
}

.navbar-brand span {
    font-family: 'Press Start 2P', monospace;
    font-size: 1rem;
    background: linear-gradient(135deg, #ffd700 0%, #ff6b6b 50%, #4ecdc4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.5),
        2px 2px 0px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    animation: gameGlow 2s ease-in-out infinite alternate;
    image-rendering: pixelated;
    -webkit-font-smoothing: none;
    font-smooth: never;
    position: relative;
}

@keyframes gameGlow {
    0% { 
        filter: brightness(1);
        text-shadow: 
            0 0 10px rgba(255, 215, 0, 0.5),
            2px 2px 0px rgba(0, 0, 0, 0.3);
    }
    100% { 
        filter: brightness(1.2);
        text-shadow: 
            0 0 15px rgba(255, 215, 0, 0.8),
            0 0 25px rgba(255, 107, 107, 0.4),
            2px 2px 0px rgba(0, 0, 0, 0.3);
    }
}

.navbar-brand:hover {
    transform: translateY(-1px);
    color: rgba(255, 255, 255, 0.95);
}

.navbar-brand img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar-brand img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 高级汉堡菜单按钮设计 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.mobile-menu-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.mobile-menu-toggle:hover::before {
    opacity: 1;
}

.mobile-menu-toggle:active {
    transform: scale(0.98);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.9));
    border-radius: 1px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
    position: relative;
    margin: 2px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.mobile-menu-toggle.active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: rotate(180deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
    background: linear-gradient(90deg, #ff6b6b, #ee5a52);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    background: linear-gradient(90deg, #ff6b6b, #ee5a52);
}

/* 高级导航菜单容器 */
.navbar-menu {
    display: flex;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.navbar-nav li {
    margin: 0;
    position: relative;
}

.navbar-nav a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    padding: 0.75rem 0.5rem;
    display: block;
    letter-spacing: -0.01em;
}

.navbar-nav a:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.navbar-nav a.active {
    color: #ffffff;
}

.navbar-nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(-50%);
    border-radius: 1px;
}

.navbar-nav a:hover::before,
.navbar-nav a.active::before {
    width: calc(100% - 1rem);
}

/* 主要内容区域 */
.main-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 0 2rem;
}



/* Logo容器 - 双Logo并排 */
.logo-container {
    position: relative;
    margin-bottom: 3rem;
    margin-top: 2rem;
    animation: gentleFloat 4s ease-in-out infinite;
}

.dual-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px; /* 两个logo之间的间隔 */
}

.logo-glow {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.logo-glow:hover {
    transform: translateY(-4px);
}

/* 右边logo向上偏移 */
.logo-right {
    transform: translateY(-8px);
}

.logo-right:hover {
    transform: translateY(-12px);
}

.logo-glow img {
    width: 320px;
    height: 320px;
    transition: all 0.3s ease;
    filter: brightness(1.1) contrast(1.1);
}

.logo-glow:hover img {
    transform: scale(1.02);
    filter: brightness(1.2) contrast(1.2);
}

/* 左边logo - 金色系 */
.logo-left img {
    filter: 
        drop-shadow(0 0 10px rgba(255, 215, 0, 0.8))
        drop-shadow(0 0 20px rgba(255, 165, 0, 0.6))
        drop-shadow(0 0 30px rgba(255, 140, 0, 0.4))
        brightness(1.1) 
        contrast(1.1);
}

.logo-left:hover img {
    filter: 
        drop-shadow(0 0 15px rgba(255, 215, 0, 1.0))
        drop-shadow(0 0 30px rgba(255, 165, 0, 0.8))
        drop-shadow(0 0 45px rgba(255, 140, 0, 0.6))
        brightness(1.2) 
        contrast(1.2);
}

/* 右边logo - 白蓝色系 */
.logo-right img {
    filter: 
        drop-shadow(0 0 10px rgba(255, 255, 255, 0.8))
        drop-shadow(0 0 20px rgba(173, 216, 230, 0.6))
        drop-shadow(0 0 30px rgba(135, 206, 235, 0.4))
        brightness(1.1) 
        contrast(1.1);
}

.logo-right:hover img {
    filter: 
        drop-shadow(0 0 15px rgba(255, 255, 255, 1.0))
        drop-shadow(0 0 30px rgba(173, 216, 230, 0.8))
        drop-shadow(0 0 45px rgba(135, 206, 235, 0.6))
        brightness(1.2) 
        contrast(1.2);
}



@keyframes gentleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

/* 像素标题 - 粉色主体，绿蓝边缘 */
.pixel-title {
    font-family: 'Press Start 2P', monospace;
    font-size: clamp(32px, 8vw, 56px);
    background: linear-gradient(135deg, #ffd700 0%, #ff6b6b 50%, #4ecdc4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 2rem;
    text-shadow: 
        0 0 15px rgba(255, 215, 0, 0.6),
        3px 3px 0px rgba(0, 0, 0, 0.4);
    animation: titleGlow 2s ease-in-out infinite alternate;
    position: relative;
    image-rendering: pixelated;
    -webkit-font-smoothing: none;
    font-smooth: never;
}

@keyframes titleGlow {
    0% { 
        filter: brightness(1);
        text-shadow: 
            0 0 15px rgba(255, 215, 0, 0.6),
            3px 3px 0px rgba(0, 0, 0, 0.4);
    }
    100% { 
        filter: brightness(1.2);
        text-shadow: 
            0 0 25px rgba(255, 215, 0, 0.8),
            0 0 35px rgba(255, 107, 107, 0.5),
            3px 3px 0px rgba(0, 0, 0, 0.4);
    }
}

/* 副标题 - 现代风格 */
.subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--gray);
    font-weight: 400;
    letter-spacing: 1px;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* 现代按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    margin: 0.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* 快速操作按钮区域 */
.quick-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* 页脚 - 现代简约 */
.footer {
    background: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-signature {
    margin: 2rem 0;
}

.footer-signature img {
    max-width: 200px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-signature img:hover {
    opacity: 1;
}

.footer-copyright {
    color: var(--gray);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright-with-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.copyright-with-icon img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.copyright-text {
    text-align: left;
}

/* 页脚品牌 - 保留给其他页面使用 */
.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-brand img {
    width: 50px;
    height: 50px;
    border-radius: 10px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--light);
}

/* 高级响应式移动端导航设计 */
@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(32px) saturate(200%);
    }
    
    .navbar-container {
        padding: 0 1.25rem;
    }
    
    /* 显示汉堡菜单按钮 */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* 高级移动端导航菜单 */
    .navbar-menu {
        position: fixed;
        top: 76px;
        left: 1rem;
        right: 1rem;
        width: calc(100% - 2rem);
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(40px) saturate(200%);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 20px;
        transform: translateY(-20px) scale(0.95);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 999;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        box-shadow: 
            0 20px 25px -5px rgba(0, 0, 0, 0.1),
            0 10px 10px -5px rgba(0, 0, 0, 0.04),
            0 0 0 1px rgba(255, 255, 255, 0.05);
    }
    
    .navbar-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        border-radius: 20px 20px 0 0;
    }
    
    .navbar-menu.active {
        transform: translateY(0) scale(1);
        opacity: 1;
        visibility: visible;
    }
    
    .navbar-nav {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1.5rem 1.25rem;
        max-width: none;
        margin: 0;
    }
    
    .navbar-nav li {
        border-bottom: none;
        margin-bottom: 0.5rem;
    }
    
    .navbar-nav li:last-child {
        margin-bottom: 0;
    }
    
    .navbar-nav a {
        color: rgba(255, 255, 255, 0.85);
        font-size: 1rem;
        font-weight: 500;
        padding: 1rem 1.25rem;
        border-radius: 12px;
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.06);
        font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
        letter-spacing: -0.01em;
        position: relative;
        overflow: hidden;
    }
    
    .navbar-nav a::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transition: left 0.5s ease;
    }
    
    .navbar-nav a:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.15);
        transform: translateX(4px) scale(1.02);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav a:hover::after {
        left: 100%;
    }
    
    .navbar-nav a.active {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.2);
        box-shadow: 
            0 4px 15px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    
    .navbar-nav a::before {
        display: none;
    }
    
    .dual-logo-wrapper {
        gap: 15px; /* 小屏幕上减小间隔 */
    }
    
    .logo-glow img {
        width: 320px;
        height: 320px;
    }
    
    .pixel-title {
        font-size: 24px;
        letter-spacing: 1.5px;
        animation: none;
        text-shadow: none;
        word-spacing: 0.2em;
    }
    
    .navbar-brand span {
        animation: none;
        text-shadow: none;
        font-size: 0.9rem;
    }
}

/* 大屏手机优化 (iPhone 14/15 Pro Max 等) */
@media (max-width: 768px) and (min-width: 390px) {
    .pixel-title {
        font-size: 26px;
        letter-spacing: 1.8px;
        word-spacing: 0.25em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .logo-glow img {
        width: 340px;
        height: 340px;
    }
    
    .dual-logo-wrapper {
        gap: 18px;
    }
}

/* iPhone SE 和超小屏幕特别优化 */
@media (max-width: 375px) {
    .dual-logo-wrapper {
        gap: 6px; /* iPhone SE 最小间隔 */
        max-width: 320px; /* 限制最大宽度 */
        margin: 0 auto;
    }
    
    .logo-glow img {
        width: 140px; /* iPhone SE 增大尺寸 */
        height: 140px;
    }
    
    .logo-right {
        transform: translateY(-6px); /* 减小右侧logo偏移 */
    }
    
    .logo-right:hover {
        transform: translateY(-10px);
    }
    
    .pixel-title {
        font-size: 24px;
        letter-spacing: 1px;
        animation: none;
        text-shadow: none;
    }
    
    .navbar-brand span {
        animation: none;
        text-shadow: none;
        font-size: 0.8rem;
    }
    
    .copyright-with-icon {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .copyright-text {
        text-align: center;
    }
    
    .footer-links {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        padding: 0 1rem;
    }
    
    .main-content {
        padding: 0 1rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
        gap: 0.625rem;
    }
    
    .navbar-brand img {
        width: 34px;
        height: 34px;
    }
    
    .navbar-brand span {
        font-size: 0.9rem;
        letter-spacing: 1px;
        text-shadow: none;
    }
    
    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
    }
    
    .hamburger-line {
        width: 18px;
    }
    
    .navbar-menu {
        left: 0.75rem;
        right: 0.75rem;
        width: calc(100% - 1.5rem);
        top: 72px;
        border-radius: 16px;
    }
    
    .navbar-nav {
        padding: 1.25rem 1rem;
        gap: 0.375rem;
    }
    
    .navbar-nav a {
        font-size: 0.9375rem;
        padding: 0.875rem 1rem;
        border-radius: 10px;
    }
    
    /* iPhone SE 双logo布局优化 */
    .dual-logo-wrapper {
        gap: 8px; /* 更小的间隔确保并排显示 */
        justify-content: center;
        align-items: center;
        flex-wrap: nowrap; /* 禁止换行，强制并排 */
    }
    
    .logo-glow img {
        width: 200px; /* 进一步增大logo尺寸 */
        height: 200px;
    }
    
    .pixel-title {
        font-size: 22px;
        letter-spacing: 1px;
        animation: none;
        text-shadow: none;
        word-spacing: 0.15em;
        white-space: nowrap;
    }
    
    .navbar-brand span {
        animation: none;
        text-shadow: none;
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* 页面加载动画 */
.fade-in {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.fade-in-delay-1 { animation-delay: 0.2s; }
.fade-in-delay-2 { animation-delay: 0.4s; }
.fade-in-delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 滚动指示器 */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 9999;
}

.scroll-progress {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.1s ease;
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
} 