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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    overflow-x: hidden;
}

a {
    color: #FFFFFF;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    padding: 60px 20px 20px;
    color: white;
}

.app-icon {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 28px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: float 3s ease-in-out infinite;
    overflow: hidden;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

h1 {
    font-size: 36px;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease-out;
}

.tagline {
    font-size: 24px;
    opacity: 0.95;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Download Buttons */
.download-section {
    text-align: center;
    padding: 20px 20px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.download-btn {
    padding: 18px 40px;
    font-size: 18px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 600;
}

.download-btn.primary {
    background: white;
    color: #667eea;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.download-btn.primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.download-btn.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.download-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

.version-info {
    color: white;
    opacity: 0.8;
    margin-top: 20px;
}

/* Features Section */
.features {
    background: white;
    border-radius: 30px;
    padding: 30px 20px;
    margin: 20px 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 30px;
    color: #667eea;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-item:hover {
    transform: translateY(-10px);
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #667eea;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

/* Screenshots Section */
.screenshots {
    margin-top: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.screenshots h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: white;
}

/* 幻灯片容器 */
.slideshow-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* 16:9 宽高比 */
.slideshow-container::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 = 9/16 = 0.5625 */
}

/* 幻灯片 */
.screenshot-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

.screenshot-slide.active {
    opacity: 1;
}

.screenshot-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 前后切换按钮 */
.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    border: none;
    font-size: 24px;
    padding: 16px 20px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 10;
    font-weight: bold;
}

.slide-btn:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.slide-btn.prev {
    left: 20px;
}

.slide-btn.next {
    right: 20px;
}

/* 指示器 */
.slide-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: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.indicator.active {
    background: white;
    width: 32px;
    border-radius: 6px;
}

/* SHA256 Section */
.sha256-section {
    background: white;
    border-radius: 30px;
    padding: 40px 30px;
    margin: 30px 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.sha256-section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 15px;
    color: #667eea;
}

.sha256-desc {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.sha256-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
}

.sha256-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

.sha256-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.sha256-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 15px;
}

.sha256-filename {
    font-weight: 600;
    color: #333;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.sha256-filename::before {
    content: "📦";
    font-size: 18px;
}

.sha256-hash {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #495057;
    background: white;
    padding: 12px;
    border-radius: 8px;
    word-break: break-all;
    border: 1px solid #dee2e6;
}

.sha256-copy-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.sha256-copy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.sha256-copy-btn:active {
    transform: scale(0.95);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    color: white;
    opacity: 0.8;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.stat-label {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }

    .tagline {
        font-size: 18px;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .download-btn {
        width: 100%;
        max-width: 300px;
    }

    .features {
        padding: 40px 20px;
    }

    .stats {
        gap: 30px;
    }

    .slideshow-container {
        max-width: 100%;
    }

    .slide-btn {
        padding: 12px 16px;
        font-size: 20px;
    }

    .slide-btn.prev {
        left: 10px;
    }

    .slide-btn.next {
        right: 10px;
    }

    .slide-indicators {
        bottom: 10px;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .indicator.active {
        width: 24px;
    }

    /* 下载模态框响应式 */
    .modal-content, .download-modal {
        max-width: 95%;
        padding: 30px 20px;
    }

    .modal-content h3 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .download-option {
        padding: 20px;
    }

    .option-header {
        font-size: 18px;
        justify-content: center;
    }

    .baidu-logo {
        width: 28px;
        height: 28px;
    }

    /* 百度网盘区域响应式 - 改为垂直布局 */
    .baidu-section {
        flex-direction: column;
        gap: 20px;
    }

    .baidu-left {
        text-align: center;
    }

    .option-desc, .baidu-code {
        text-align: center;
    }

    /* 本站下载按钮响应式 - 改为垂直布局 */
    .local-download-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .full-btn, .lite-btn {
        max-width: 100%;
    }

    .download-option-btn {
        font-size: 15px;
        padding: 12px 24px;
    }

    .divider {
        margin: 20px 0;
    }

    /* SHA256 响应式 */
    .sha256-section {
        padding: 30px 20px;
    }

    .sha256-section h2 {
        font-size: 24px;
    }

    .sha256-grid {
        grid-template-columns: 1fr;
    }

    .sha256-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .sha256-filename {
        font-size: 14px;
    }

    .sha256-hash {
        font-size: 11px;
        padding: 10px;
    }

    .sha256-copy-btn {
        font-size: 12px;
        padding: 5px 12px;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    text-align: center;
    animation: scaleIn 0.3s ease-out;
    position: relative;
}

.download-modal {
    max-width: 800px;
    width: 90%;
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content h3 {
    color: #667eea;
    margin-bottom: 30px;
    font-size: 28px;
}

.modal-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.close-modal {
    padding: 12px 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.close-modal:hover {
    background: #5568d3;
}

/* 关闭按钮 X */
.close-modal-x {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 36px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal-x:hover {
    background: #f5f5f5;
    color: #333;
    transform: rotate(90deg);
}

/* 下载选项区域 */
.download-option {
    margin: 20px 0;
    padding: 25px;
    border-radius: 15px;
    background: #f8f9fa;
}

.baidu-section {
    background: linear-gradient(135deg, #e8f0fe 0%, #f0f4ff 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.baidu-left {
    flex: 1;
    text-align: left;
}

.baidu-right {
    display: flex;
    align-items: center;
}

.local-section {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
}

.option-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.baidu-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.option-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
    text-align: left;
}

.baidu-code {
    color: #667eea;
    font-weight: 600;
    font-size: 16px;
    margin-top: 5px;
    margin-bottom: 0;
    text-align: left;
}

/* 下载按钮 */
.download-option-btn {
    padding: 14px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 280px;
}

.baidu-btn {
    background: linear-gradient(135deg, #2468f2 0%, #1a56db 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(36, 104, 242, 0.3);
    min-width: 200px;
    white-space: nowrap;
}

.baidu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(36, 104, 242, 0.4);
}

.local-download-buttons {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.full-btn, .lite-btn {
    flex: 1;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.full-btn {
    background: linear-gradient(135deg, #667eea 0%, #c48aff 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.full-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.lite-btn {
    border: 2px solid;
    background: linear-gradient(135deg, #7587ff 0%, #b495ff 100%);
    color: #FFF;
    box-shadow: 0 4px 15px rgba(168, 179, 255, 0.3);
}

.lite-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 179, 255, 0.4);
}

/* 按钮文字样式 */
.btn-main-text {
    font-size: 16px;
    font-weight: 600;
}

.btn-sub-text {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.85;
}

.btn-size-text {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.75;
}

/* 分割线 */
.divider {
    margin: 30px 0;
    position: relative;
    text-align: center;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
}

.divider span {
    position: relative;
    background: white;
    padding: 0 20px;
    color: #999;
    font-size: 14px;
    font-weight: 500;
}
