/* 添加到文件顶部的全局样式 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

.footer {
    flex-shrink: 0;
}

/* 基础样式设置 */
:root {
    --primary-color: #2AABEE;
    --text-color: #333;
    --bg-color: #fff;
    --container-width: 1200px;
}

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

body {
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    color: var(--text-color);
}

/* 顶部导航 */
.top-nav {
    background: #fff;
    border-bottom: 1px solid #e7e8ea;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.nav-logo {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-separator {
    color: #c4c9cc;
    font-size: 11px;
    padding: 0 2px;
}

.nav-item {
    padding: 14px 12px;
    text-decoration: none;
    color: #707579;
    font-size: 13px;
    position: relative;
    transition: color 0.2s ease;
}

.nav-item:hover {
    color: var(--primary-color);
}

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

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

/* 隐藏滚动条但保持功能 */
.top-nav::-webkit-scrollbar {
    display: none;
}

.top-nav {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 主要内容区域 */
.main-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 40px 20px;
}

/* Logo 区域 */
.hero {
    text-align: center;
    padding: 60px 0;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.hero-subtitle {
    font-size: 20px;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 平台下载链接样式 */
.platform-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 16px;
    margin-top: 15px;
    gap: 8px;
}

.platform-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* 移除之前的下载按钮样式 */
.download-button {
    display: none;
}

/* 新闻部分 */
.news-section {
    margin: 60px 0;
}

.section-title {
    font-size: 24px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 20px;
}

.news-content {
    flex: 1;
}

.news-item h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.6;
}

.news-item time {
    display: block;
    font-size: 13px;
    color: #999;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .news-item {
        padding: 15px;
    }

    .news-item h3 {
        font-size: 15px;
    }
}

/* Logo 动画样式 */
.logo-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
}

.logo-circle {
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plane-icon {
    width: 75%;
    height: 75%;
    fill: #fff;
    transform: rotate(23deg);
    animation: flyIn 1s ease-out;
}

@keyframes flyIn {
    0% {
        transform: translate(-200%, -200%) rotate(-20deg);
        opacity: 0;
    }
    60% {
        transform: translate(10%, 10%) rotate(15deg);
    }
    100% {
        transform: translate(0, 0) rotate(23deg);
        opacity: 1;
    }
}

/* 移除之前的 logo 样式 */
.hero .logo {
    /* 删除这个选择器 */
}

/* 视频预览样式 */
.app-preview {
    max-width: 280px;
    margin: 20px auto;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
    min-height: 200px;
}

/* 电脑版预览样式 */
.desktop-preview {
    max-width: 400px;  /* 更宽的预览窗口 */
}

.preview-video {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
    background: #f5f5f5;
}

.preview-video.loaded {
    opacity: 1;
}

/* 桌面端鼠标悬停时播放 */
@media (hover: hover) {
    .preview-video {
        /* 默认暂停 */
        pause: true;
    }
    
    .app-preview:hover .preview-video {
        play: true;
    }
}

/* 移动端自动播放 */
@media (max-width: 768px) {
    .preview-video {
        autoplay: true;
    }
}

/* 特性部分样式 */
.features {
    margin: 80px auto;
    max-width: var(--container-width);
    padding: 0 20px;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.feature-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .feature-list {
        gap: 30px;
    }
    
    .feature-icon {
        max-width: 320px;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .feature-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-container {
        height: 44px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .features {
        margin: 40px auto;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .feature-icon {
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-item {
        padding: 12px 8px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .feature-icon {
        max-width: 240px;
    }
}

/* 页脚样式 */
.footer {
    margin-top: 40px;  /* 减小顶部间距 */
    padding: 20px 0;   /* 减小内边距 */
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 20px;  /* 减小链接之间的间距 */
}

.footer-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 13px;   /* 稍微减小字体 */
    font-weight: 500;
    letter-spacing: 0.5px;
}

.footer-link:hover {
    text-decoration: underline;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .footer {
        margin-top: 30px;
        padding: 15px 0;
    }

    .footer-nav {
        gap: 15px;
    }
} 