/* NOVA AEROSPACE - 移动端优化样式 */

/* 基础重置 - 移动端优化 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 12px;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* 加载屏幕 - 移动端优化 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease;
    padding: 1rem;
}

.loading-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.5rem, 8vw, 2.5rem);
    font-weight: 900;
    letter-spacing: clamp(4px, 2vw, 8px);
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #fff 0%, #ff6b00 50%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logo-glow 3s ease-in-out infinite;
    text-align: center;
}

.loading-bar {
    width: min(300px, 80vw);
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1px;
    overflow: hidden;
}

/* Hero区域 - 移动端优化 */
.hero {
    position: relative;
    min-height: 100vh;
    height: auto;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.2) brightness(0.8) saturate(1.1);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 5vw, 2rem);
    text-align: center;
}

/* Logo容器 - 移动端优化 */
.logo-container {
    margin-bottom: clamp(1.5rem, 5vw, 3rem);
    animation: fadeInUp 1s ease-out;
    width: 100%;
}

.main-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 15vw, 8rem);
    font-weight: 900;
    letter-spacing: clamp(4px, 2vw, 15px);
    background: linear-gradient(90deg, #fff 0%, #ff6b00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    line-height: 1.1;
    word-break: break-word;
}

.tagline {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(0.8rem, 3vw, 1.5rem);
    letter-spacing: clamp(2px, 1vw, 8px);
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

/* 任务声明 - 移动端优化 */
.mission-statement {
    margin-bottom: clamp(2rem, 6vw, 4rem);
    animation: fadeInUp 1s ease-out 0.3s both;
    width: 100%;
    padding: 0 1rem;
}

.mission-text {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.2rem, 5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: clamp(2px, 1vw, 4px);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.2;
}

.mission-subtext {
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    letter-spacing: clamp(1px, 0.5vw, 2px);
    line-height: 1.4;
}

/* 中心按钮 - 移动端优化 */
.cta-container {
    margin-bottom: clamp(2rem, 6vw, 4rem);
    animation: fadeInUp 1s ease-out 0.6s both;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.launch-button {
    position: relative;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    padding: clamp(1rem, 3vw, 1.5rem) clamp(1.5rem, 5vw, 3rem);
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    font-weight: 700;
    letter-spacing: clamp(1px, 1vw, 3px);
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    margin-bottom: 1.5rem;
    min-width: min(400px, 90vw);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

.launch-button:hover,
.launch-button:active {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ff6b00;
    transform: translateY(-3px);
    box-shadow: 
        0 10px 30px rgba(255, 107, 0, 0.3),
        0 0 50px rgba(255, 107, 0, 0.2);
}

.button-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 2vw, 1rem);
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.launch-button i {
    font-size: clamp(1rem, 4vw, 1.5rem);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.button-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* 按钮组 - 移动端优化 */
.button-group {
    display: flex;
    gap: clamp(0.5rem, 2vw, 1rem);
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 600px;
}

.secondary-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: clamp(0.6rem, 2vw, 0.8rem) clamp(1rem, 3vw, 1.5rem);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: clamp(0.3rem, 1vw, 0.5rem);
    min-height: 44px;
    min-width: 120px;
    touch-action: manipulation;
    flex: 1;
    justify-content: center;
}

.secondary-button:hover,
.secondary-button:active {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ff6b00;
    transform: translateY(-2px);
}

.secondary-button i {
    font-size: clamp(0.9rem, 3vw, 1rem);
    flex-shrink: 0;
}

/* 统计数据 - 移动端优化 */
.stats-container {
    display: flex;
    gap: clamp(1rem, 4vw, 4rem);
    margin-top: 1.5rem;
    animation: fadeInUp 1s ease-out 0.9s both;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.5rem, 6vw, 3rem);
    font-weight: 700;
    background: linear-gradient(90deg, #fff 0%, #ff6b00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.stat-label {
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    letter-spacing: clamp(1px, 0.5vw, 2px);
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    line-height: 1.3;
}

/* 滚动指示器 - 移动端优化 */
.scroll-indicator {
    position: absolute;
    bottom: clamp(1.5rem, 5vw, 3rem);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    animation: fadeIn 1s ease-out 1.2s both;
}

.scroll-line {
    width: 1px;
    height: clamp(40px, 10vh, 60px);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8) 0%, transparent 100%);
}

.scroll-text {
    font-size: clamp(0.6rem, 2vw, 0.8rem);
    letter-spacing: clamp(2px, 1vw, 3px);
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

/* 任务区域 - 移动端优化 */
.mission-section {
    padding: clamp(3rem, 8vw, 8rem) clamp(1rem, 3vw, 2rem);
    background: #0a0a0a;
    display: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 6vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: clamp(2rem, 5vw, 4rem);
    background: linear-gradient(90deg, #fff 0%, #ff6b00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: clamp(2px, 1vw, 4px);
    line-height: 1.2;
    padding: 0 1rem;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(1rem, 3vw, 2rem);
}

.mission-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: clamp(1.5rem, 4vw, 2rem);
    transition: all 0.3s ease;
    height: 100%;
}

/* 面板系统 - 移动端优化 */
.status-panel,
.api-panel,
.database-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: min(600px, 95vw);
    max-height: min(600px, 80vh);
    background: rgba(10, 10, 10, 0.98);
    border: 1px solid rgba(255, 107, 0, 0.3);
    border-radius: 12px;
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.panel-content {
    padding: clamp(1rem, 3vw, 1.5rem);
    max-height: calc(80vh - 80px);
    overflow-y: auto;
}

.api-test-buttons,
.db-operations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
    gap: clamp(0.5rem, 2vw, 1rem);
    margin-bottom: 1.5rem;
}

.api-test-btn,
.db-btn {
    background: rgba(255, 107, 0, 0.1);
    border: 1px solid rgba(255, 107, 0, 0.3);
    border-radius: 6px;
    padding: clamp(0.6rem, 2vw, 0.8rem);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    touch-action: manipulation;
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .launch-button:hover,
    .secondary-button:hover,
    .api-test-btn:hover,
    .db-btn:hover {
        transform: none;
    }
    
    .launch-button:active,
    .secondary-button:active,
    .api-test-btn:active,
    .db-btn:active {
        transform: translateY(-2px);
    }
}

/* 横屏模式优化 */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-content {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .main-logo {
        font-size: clamp(2rem, 8vw, 4rem);
    }
    
    .mission-text {
        font-size: clamp(1rem, 4vw, 1.8rem);
    }
    
    .stats-container {
        gap: 1rem;
