/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基础样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 页眉样式 - 优化设计 */
.navbar {
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(90deg, #ffffff 0%, #f8fff8 100%);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.7rem;
    font-weight: bold;
    color: #2e7d32;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 6px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #2e7d32;
    transition: width 0.3s, left 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
}

.nav-links a:hover {
    color: #2e7d32;
}

.download-btn {
    background-color: #2e7d32;
    color: white !important;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.3s;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-btn:hover {
    background-color: #1b5e20;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 125, 50, 0.4);
}

/* 英雄区域样式 */
.hero {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 80px 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(90deg, #2e7d32, #4caf50, #66bb6a, #81c784);
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-content h1 {
    font-size: 3.5rem;
    color: #2e7d32;
    margin-bottom: 10px;
}

.hero-content h2 {
    font-size: 1.8rem;
    color: #388e3c;
    margin-bottom: 20px;
    font-weight: 400;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #444;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.primary-btn {
    background-color: #2e7d32;
    color: white;
}

.primary-btn:hover {
    background-color: #1b5e20;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.secondary-btn {
    background-color: transparent;
    color: #2e7d32;
    border: 2px solid #2e7d32;
}

.secondary-btn:hover {
    background-color: #2e7d32;
    color: white;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

/* 标题区域的应用图标样式 */
.title-with-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.title-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: fadeInLogo 0.8s ease-out forwards;
}

@keyframes fadeInLogo {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.title-logo:hover {
    transform: scale(1.05) rotate(5deg);
    transition: transform 0.3s ease;
}

/* 截图堆叠容器 */
.screenshot-stack {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeInScreenshots 0.8s ease-out 0.5s forwards;
}

@keyframes fadeInScreenshots {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 截图项样式 */
.screenshot-item {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    user-select: none;
    /* 移除gap和padding，因为不再有标签 */
    width: 170px;
    height: 340px;
    justify-content: center;
}

.screenshot-img {
    /* 减小截图比例，确保能看到顶部 */
    width: 200px;
    height: 430px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.screenshot-label {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* 选中状态 - 前台 */
.screenshot-item.active {
    z-index: 100;
    transform: scale(1);
    opacity: 1;
}

.screenshot-item.active .screenshot-img {
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.35);
    transform: scale(1.08);
}

.screenshot-item.active .screenshot-label {
    opacity: 1;
    transform: translateY(0);
}

/* 未选中状态 - 背景 */
.screenshot-item:not(.active) {
    opacity: 0.3;
    transform: scale(0.9);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 悬停效果 - 明显的视觉反馈 */
.screenshot-item:hover {
    opacity: 0.8;
    transform: scale(0.95);
    z-index: 50;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.screenshot-item:hover .screenshot-label {
    opacity: 1;
}

/* 功能区域样式 */
.features {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fff8 100%);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2e7d32;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #4caf50;
    margin: 10px auto 0;
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4caf50, #8fbc8f);
}

.feature-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: #2e7d32;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.15);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.25);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 关于区域样式 */
.about {
    background-color: #f1f8e9;
    padding: 80px 0;
}

.about .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin-bottom: 40px;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #444;
}

.about-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #2e7d32;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
}

/* 下载区域样式 */
.download {
    padding: 80px 0;
    text-align: center;
}

.download p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #444;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 下载下拉框样式 */
.download-dropdown {
    position: relative;
    display: inline-block;
    margin-top: 20px;
}

/* Hero区域的下拉框特殊样式 */
.hero-dropdown {
    margin-top: 0;
}

.download-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background-color: #2e7d32;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.download-dropdown-btn:hover {
    background-color: #1b5e20;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.download-dropdown-btn i {
    font-size: 1.2rem;
}

.download-dropdown-btn .fa-chevron-down {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

/* 下拉内容样式 */
.download-dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    min-width: 280px;
    z-index: 1000;
    animation: dropdownFadeIn 0.3s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* 下拉项样式 */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item i {
    font-size: 1.5rem;
    color: #2e7d32;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e8f5e9;
    flex-shrink: 0;
}

.dropdown-item div {
    text-align: left;
}

.dropdown-item span {
    display: block;
    font-weight: 500;
    margin-bottom: 2px;
}

.dropdown-item small {
    color: #666;
    font-size: 0.85rem;
    display: block;
}

.dropdown-item:hover {
    background-color: rgba(46, 125, 50, 0.1);
}

/* 旧的下载选项样式（保留以防需要回退） */
.download-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.download-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #333;
    transition: transform 0.3s, box-shadow 0.3s;
    min-width: 200px;
}

/* 支持区域样式 */
.support {
    background-color: #e8f5e9;
    padding: 80px 0;
    text-align: center;
}

.support p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #444;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.bmc-container {
    display: inline-block;
}

.bmc-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background-color: #ffdd00;
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s;
}

.bmc-btn:hover {
    background-color: #ffc107;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 221, 0, 0.3);
}

.bmc-btn i {
    font-size: 1.2rem;
}

/* 页脚样式 */
.footer {
    background-color: #2e7d32;
    color: white;
    padding: 40px 0;
}

.footer .container {
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.github-link {
    padding: 8px 16px;
    color: #333;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.github-link:hover {
    color: #2563eb;
}

.footer-links a:hover {
    color: white;
}

.footer-links i {
    font-size: 1.2rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-copyright a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.footer-copyright a:hover {
    color: white;
}

.icp-info {
    margin-top: 5px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

/* 响应式设计 */


/* 768px以下屏幕的响应式设计 */
@media (max-width: 768px) {
    /* 导航栏响应式调整 */
    .navbar .container {
        padding: 15px;
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        gap: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* 英雄区域响应式调整 */
    .hero {
        padding: 60px 0;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* 标题区域图标响应式调整 */
    .title-with-logo {
        justify-content: center;
        gap: 10px;
    }
    
    .title-logo {
        width: 50px;
        height: 50px;
    }
    
    /* 英雄图片区域响应式调整 */
    .hero-image {
        height: 380px; /* 进一步减小高度，不再需要为标签预留空间 */
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible;
        padding: 0;
    }
    
    /* 截图堆叠容器 - 移动设备优化 */
    .screenshot-stack {
        position: relative;
        height: 340px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* 截图响应式调整 */
    .screenshot-item {
        transition: transform 0.4s ease, opacity 0.4s ease, z-index 0s;
        /* 移动设备上更简化的过渡效果 - 匹配非响应式样式 */
        width: 170px;
        height: 340px;
        justify-content: center;
        display: flex;
        align-items: center;
    }
    
    .screenshot-img {
        width: 170px;
        height: 340px; /* 调整高度，使其更接近图片实际比例 */
        object-fit: contain;
        object-position: top center; /* 将图片向上对齐，通常界面顶部更重要 */
        background-color: #f8f9fa; /* 使用与页面背景相似的颜色，减少空白视觉影响 */
        border-radius: 20px; /* 稍微减小圆角以适应移动设备 */
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2); /* 调整阴影以适应移动设备 */
    }
    
    /* 已移除截图标签，相关样式保留但禁用 */
    .screenshot-label {
        display: none;
    }
    
    /* 截图交互样式调整 */
    .screenshot-item.active {
        z-index: 100;
        transform: scale(1);
        opacity: 1;
    }
    
    .screenshot-item.active .screenshot-img {
        transform: scale(1.03); /* 稍微减小缩放比例，确保完整显示 */
        box-shadow: 0 20px 35px rgba(0, 0, 0, 0.3); /* 增强活跃状态的阴影 */
    }
    
    /* 简化移动设备上的截图排列 */
    .screenshot-item:not(.active) {
        opacity: 0.25;
        /* 移动设备上的位置将由JavaScript控制 */
    }
    
    /* 移动设备上的触摸反馈优化 */
    .screenshot-item:active {
        transform: scale(0.97);
        transition: transform 0.1s ease;
    }
    
    /* 为移动设备添加导航指示器 */
    .screenshot-indicators {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
    }
    
    .indicator-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.4);
        transition: all 0.3s ease;
    }
    
    .indicator-dot.active {
        background-color: white;
        width: 24px;
        border-radius: 4px;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .about-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }
    
    /* 平板端功能卡片样式优化 */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .feature-card {
        padding: 25px;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content h2 {
        font-size: 1.2rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .feature-card {
        padding: 20px;
    }

    .download-option {
        min-width: 150px;
        padding: 15px;
    }
    
    /* 移动端功能卡片样式优化 */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
}