/* 全局样式重置 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 焦点样式 */
button:focus,
a:focus {
    outline: 2px solid #12b7f5;
    outline-offset: 2px;
}

/* 移除点击高亮 */
* {
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    /* 优化过渡效果，包含所有可能变化的属性 */
    transition: all 0.3s ease-in-out;
}

/* 滚动时导航栏样式 - 新增类，替代内联样式修改 */
.navbar.navbar-scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
}

.logo span {
    font-size: 20px;
    font-weight: bold;
    color: #12b7f5;
}

/* 导航链接美化 */
.navbar-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

/* 导航链接悬停效果 */
.navbar-links a:hover:not(.btn) {
    color: #12b7f5;
    background-color: rgba(18, 183, 245, 0.08);
}

/* 导航链接下划线动画效果 */
.navbar-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #12b7f5;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-links a:hover::after {
    width: 60%;
}

/* 导航中的立即下载按钮特殊样式 */
.navbar-links a.btn-secondary {
    background-color: transparent;
    color: #12b7f5;
    border: 1px solid #12b7f5;
    padding: 8px 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.navbar-links a.btn-secondary:hover {
    background-color: #12b7f5;
    color: white;
}

/* 滚动时导航链接的样式优化 */
.navbar.navbar-scrolled .navbar-links a {
    font-size: 15px;
    padding: 6px 10px;
}

nav a:hover {
    color: #12b7f5;
}

/* 按钮样式 */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #1941c4;
    color: white;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(18, 183, 245, 0.3);
    border: none;
    gap: 8px;
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-primary:hover {
    background-color: #0ba5db;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(18, 183, 245, 0.4);
}

.btn-secondary {
    display: inline-block;
    background-color: #fff;
    color: #12b7f5;
    border: 2px solid #12b7f5;
    padding: 10px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s;
    margin-left: 15px;
}

.btn-secondary:active {
    transform: translateY(1px);
}

.btn-secondary:hover {
    background-color: #12b7f5;
    color: white;
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(135deg, #12b7f5 0%, #0ba5db 100%);
    color: white;
    padding: 80px 0;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.download-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img,
.hero-image video {
    max-width: 100%;
    height: auto;
    animation: float 6s ease-in-out infinite;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

/* 视频加载和错误状态处理 */
.hero-image video {
    background-color: rgba(0, 0, 0, 0.1);
    min-height: 300px;
    width: 100%;
    border: none;
    outline: none;
}

/* 确保视频在各种屏幕尺寸下的响应式表现 */
@media (max-width: 768px) {
    .hero-image video {
        min-height: 200px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }
}

@media (max-width: 480px) {
    .hero-image video {
        min-height: 150px;
        border-radius: 8px;
    }
}

/* 功能特点部分样式 */
.features {
    padding: 80px 0;
    background-color: white;
}

.features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #e9ecef;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* 产品优势部分样式 */
.advantages {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.advantages h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.advantage-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.advantage-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #12b7f5;
}

.advantage-card p {
    color: #666;
    line-height: 1.6;
}

/* 下载部分样式 */
.download-section {
    padding: 80px 0;
    background-color: white;
    text-align: center;
}

.download-section h2 {
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.download-option {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    transition: all 0.3s;
    border: 1px solid #e9ecef;
}

.download-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.download-option img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.download-option h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.download-option .btn-primary {
    margin-top: 20px;
}

/* 网页版部分样式 */
.web-version {
    padding: 80px 0;
    background-color: #f0f9ff;
    text-align: center;
}

.web-version h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #333;
}

.web-version p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #666;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 常见问题部分样式 */
.faq {
    padding: 80px 0;
    background-color: white;
}

.faq h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
}

.faq-items {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background-color: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
    font-weight: 500;
}

.faq-question:hover {
    background-color: #e9ecef;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: white;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-answer p {
    color: #666;
    line-height: 1.6;
}

/* 资源链接区域样式 */
.resources {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.resources h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #333;
    position: relative;
}

.resources h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #12b7f5;
    border-radius: 2px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.resource-item {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.resource-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: #12b7f5;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
}

.resource-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(18, 183, 245, 0.1);
}

.resource-item:hover::before {
    transform: scaleY(1);
}

.resource-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
    transition: color 0.3s ease;
}

.resource-item:hover h3 {
    color: #12b7f5;
}

.resource-item h3 a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    position: relative;
}

.resource-item h3 a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #12b7f5;
    transition: width 0.3s ease;
}

.resource-item:hover h3 a::after {
    width: 100%;
}

.resource-item p {
    color: #666;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.resource-item:hover p {
    color: #444;
}

/* 页脚样式 */
.footer {
    background-color: #333;
    color: white;
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #12b7f5;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #888;
    font-size: 14px;
}

/* 回到顶部按钮样式 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #12b7f5;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(18, 183, 245, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #0ba5db;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(18, 183, 245, 0.4);
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* 动画效果 */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}

/* 统一响应式设计 - 优化媒体查询顺序 */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-secondary {
        margin-left: 0;
        margin-top: 15px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .features h2,
    .advantages h2,
    .download-section h2,
    .web-version h2,
    .faq h2 {
        font-size: 28px;
    }
    
    .features-grid, .advantages-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .features-grid, .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}