/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 字体图标样式 - 使用Font Awesome图标库 */
/* 图标来源：https://fontawesome.com/ */

/* 基础图标样式 */
.fas, .fab {
    font-size: 24px;
    vertical-align: middle;
    display: inline-block;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
}

/* 按钮图标样式 */
.btn i {
    margin-right: 8px;
    font-size: 28px;
}

/* 功能卡片图标样式 */
.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(103, 58, 183, 0.1);
    margin-bottom: 20px;
}

.feature-icon i {
    font-size: 32px;
    color: #ffffff;
}

/* 轮播箭头图标样式 */
.carousel-btn i {
    font-size: 24px;
    color: #fff;
}

/* 基础样式 */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    overflow-x: hidden;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    /* 添加圆角效果 */
    object-fit: cover;
    /* 确保图片填充容器 */
    transition: transform 0.3s ease;
    /* 添加过渡效果 */
}

.logo-image:hover {
    transform: scale(1.05);
    /* 鼠标悬停时轻微放大 */
}

/* 底部logo样式 */
.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo .logo-image {
    width: 50px;
    height: 50px;
    /* 底部logo稍大 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .logo-image {
        width: 60px;
        height: 60px;
    }
    
    .footer-logo .logo-image {
        width: 45px;
        height: 45px;
    }
}

.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #3498db;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: #333;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 120px 0 80px;
    margin-top: 70px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 500px;
}

/* 下载按钮样式 */
.download-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #667eea;
    color: #fff;
}

.btn-primary:hover {
    background-color: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background-color: #fff;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background-color: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.2);
}

.btn-large {
    padding: 20px 40px;
    font-size: 18px;
}

.btn-icon {
    width: 24px;
    height: 24px;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-label {
    font-size: 12px;
    opacity: 0.8;
}

.btn-platform {
    font-size: 18px;
    font-weight: 700;
}

.compatibility {
    font-size: 14px;
    opacity: 0.8;
    text-align: center;
}

/* 英雄图片样式 */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-mockup {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* 通用区块标题样式 */
.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* 功能特点区域样式 */
.features {
    padding: 80px 0;
    background-color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background-color: #f8f9fa;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon svg {
    width: 40px;
    height: 40px;
    color: #fff;
}

.feature-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.feature-description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* 应用截图区域样式 */
.screenshots {
    padding: 80px 0;
    background-color: #f5f7fa;
}

/* 轮播组件样式 */
.carousel-container {
    position: relative;
    width: 100%;
    /* 移除max-width限制，允许完整显示轮播内容 */
    margin: 0 auto;
    overflow: hidden;
    /* 移除border-radius，避免裁剪问题 */
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

/* 修改轮播项，允许部分显示 */
.carousel-item {
    flex: 0 0 auto;
    /* 改为auto，允许部分显示 */
    width: 100%;
    /* 默认占满宽度 */
    padding: 10px;
    /* 减少轮播项内边距为原来的一半 */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 响应式调整轮播项宽度，允许部分显示 */
@media (min-width: 768px) {
    .carousel-item {
        width: 50%;
        /* 平板版显示一半宽度 */
        padding: 15px;
    }
}

@media (min-width: 1200px) {
    .carousel-item {
        width: 33.333%;
        /* PC版显示三分之一宽度 */
        padding: 20px;
    }
}

/* 重新设计screenshot-item，参照全面屏手机与屏幕的比例 */
.screenshot-item {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    width: 100%;
    /* 间距调整为原来的一半 */
    padding: 2%;
    /* 内边距为容器宽度的2%，模拟手机边框 */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.screenshot-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* 重新设计图片样式，确保正确比例和显示效果 */
.screenshot-image {
    width: 100%;
    height: auto;
    /* 保持现代手机比例 */
    aspect-ratio: 9 / 19.5;
    /* 使用object-fit: cover确保图片填充容器，同时保持比例 */
    object-fit: cover;
    border-radius: 12px;
    /* 模拟手机屏幕圆角 */
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
    /* 添加屏幕边框效果 */
    display: block;
    /* 确保正确的块级元素行为 */
}

/* 移除不必要的样式覆盖 */
.screenshot-item::before {
    display: none;
}

.screenshot-item .screenshot-image {
    position: relative;
    width: 100%;
    height: auto;
    /* 移除最大高度限制，使用aspect-ratio控制 */
    max-height: none;
    /* 确保图片填充容器 */
    object-fit: cover;
}

/* PC版调整 */
@media (min-width: 1200px) {
    .screenshot-item {
        max-width: 320px;
        /* 限制容器最大宽度，确保PC版显示合适大小 */
        padding: 7.5px;
        /* 固定内边距减半，模拟真实手机边框宽度 */
    }
}

/* 平板版调整 */
@media (min-width: 768px) and (max-width: 1199px) {
    .screenshot-item {
        max-width: 280px;
        padding: 6px;
        /* 间距减半 */
    }
}

/* 移动版调整 */
@media (max-width: 767px) {
    .screenshot-item {
        max-width: 250px;
        padding: 5px;
        /* 移动版间距减半 */
    }
    
    .carousel-item {
        padding: 5px;
        /* 减少移动版轮播项的内边距为原来的一半 */
    }
}

/* 轮播按钮样式 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    color: #333;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.carousel-btn:hover {
    background-color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
}

.carousel-btn-prev {
    left: 20px;
}

.carousel-btn-next {
    right: 20px;
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
}

/* 轮播指示器样式 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: #fff;
    transform: scale(1.2);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* 下载区域样式 */
.download {
    padding: 80px 0;
    background-color: #fff;
    text-align: center;
}

.download-description {
    font-size: 20px;
    color: #666;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 支持区域样式 */
.support {
    padding: 80px 0;
    background-color: #f5f7fa;
}

.support-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.support-card {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.support-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.support-title {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.support-description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-link {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.btn-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #667eea;
    transition: width 0.3s ease;
}

.btn-link:hover::after {
    width: 100%;
}

/* 页脚样式 */
.footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #95a5a6;
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 15px;
}

.footer-link {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
    font-size: 14px;
}

/* 底部导航栏样式 */
/* 底部主容器样式 */
.footer-main {
    display: flex;
    justify-content: space-between;
    /* 确保logo在左，导航在右 */
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
    /* 添加间距 */
}

.footer-nav {
    background-color: transparent;
    /* 移除背景色 */
    padding: 20px 0;
    /* 调整内边距 */
    border-radius: 0;
    /* 移除圆角 */
    margin-bottom: 0;
    /* 移除底部外边距 */
    flex: none;
    /* 不占用剩余空间 */
}

.footer-nav-list {
    display: flex;
    justify-content: flex-end;
    /* 导航链接靠右显示 */
    align-items: center;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.footer-nav-item {
    margin: 0;
}

.footer-nav-link {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    padding: 10px 0;
    display: inline-block;
    position: relative;
}

.footer-nav-link:hover {
    color: #3498db;
}

/* 添加下划线效果，与顶部导航一致 */
.footer-nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3498db;
    transition: width 0.3s ease;
}

.footer-nav-link:hover::after {
    width: 100%;
}

/* 移动端响应式设计 */
@media (max-width: 768px) {
    /* 移动端上下排列 */
    .footer-main {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    /* 移动端导航居中 */
    .footer-nav-list {
        justify-content: center;
    }
    
    /* 移动端导航内边距调整 */
    .footer-nav {
        padding: 15px 20px;
    }
}

/* 小屏移动端响应式 */
@media (max-width: 480px) {
    .footer-nav-list {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-nav-link {
        padding: 5px 0;
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    /* 导航栏响应式 */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .nav-link {
        font-size: 24px;
        font-weight: 600;
        color: #333;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* 英雄区域响应式 */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-text h2 {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-description {
        font-size: 16px;
        margin-left: auto;
        margin-right: auto;
    }

    .download-buttons {
        justify-content: center;
    }

    /* 页脚响应式 */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    /* 调整间距和字体大小 */
    .hero {
        padding: 100px 0 60px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .features,
    .screenshots,
    .download,
    .support {
        padding: 60px 0;
    }

    .features-grid,
    .screenshots-grid,
    .support-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* 下载按钮响应式 */
.download-buttons {
    flex-direction: column;
    align-items: center;
}

.btn {
    width: 100%;
    justify-content: center;
    max-width: 300px;
}

/* 调整下载按钮在桌面端的布局 */
@media (min-width: 769px) {
    .download-buttons {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .btn {
        width: auto;
        max-width: 250px;
    }
}

@media (min-width: 1200px) {
    .download-buttons {
        justify-content: space-between;
        max-width: 1000px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .btn-text {
        align-items: center;
    }
}

@media (max-width: 480px) {
    /* 移动端优化 */
    .hero-text h2 {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section-title {
        font-size: 24px;
    }

    .btn-large {
        padding: 15px 30px;
        font-size: 16px;
    }

    .btn-platform {
        font-size: 16px;
    }
}

/* 平滑滚动效果 */
html {
    scroll-behavior: smooth;
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero,
.features,
.screenshots,
.download,
.support {
    animation: fadeIn 0.8s ease forwards;
}

/* 卡片悬停效果增强 */
.feature-card,
.screenshot-item,
.support-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 渐变背景动画 */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero {
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}