﻿/* Download.css - 下载页面专用样式 */
:root {
    --primary-color: #532ad3;
    --primary-light: #7c5fe6;
    --primary-dark: #3a1fa0;
    --text-dark: #333333;
    --text-light: #666666;
    --background-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(83, 42, 211, 0.1);
    --transition: all 0.3s ease;
    --overlay-dark: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
}

/* Hero区域 - 高度为原来的一半 */
.download-hero {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 10vh; /* 改为原来的10vh（原来是20vh） */
    min-height: 90px; /* 减小最小高度 */
    overflow: hidden;
    margin-top: 0; /* 紧贴导航栏 */
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

    .hero-content h1 {
        font-size: 2.2rem; /* 稍微减小字号 */
        font-weight: 700;
        margin-bottom: 10px; /* 减小间距 */
        color: var(--white);
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .hero-content .download-subtitle {
        font-size: 1.1rem; /* 稍微减小字号 */
        font-weight: 300;
        opacity: 0.9;
        line-height: 1.5; /* 调整行高 */
        color: rgba(255, 255, 255, 0.9);
    }

/* 下载容器 */
.download-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px; /* 减少顶部padding */
}

.page-title {
    text-align: center;
    margin-top: 5px; /* 减小间距 */
    margin-bottom: 30px; /* 减小间距 */
    color: white;
    font-size: 2rem;
    font-weight: 700;
}

.download-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

/* 左侧面板：产品图片和下载区域 */
.left-panel {
    flex: 1;
    min-width: 300px;
    background-color: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(83, 42, 211, 0.1);
}

    .left-panel:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(83, 42, 211, 0.15);
    }

.app-image {
    text-align: center;
    margin-bottom: 30px;
}

    .app-image img {
        max-width: 100%;
        border-radius: 10px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        transition: var(--transition);
        border: 2px solid rgba(83, 42, 211, 0.1);
    }

        .app-image img:hover {
            transform: scale(1.02);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
        }

.download-section {
    text-align: center;
    margin-top: auto;
}

/* 统一的CTA按钮样式 */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
    box-shadow: 0 6px 20px rgba(83, 42, 211, 0.2);
    white-space: nowrap;
}

    .cta-button:hover {
        background: var(--primary-dark);
        border-color: var(--primary-dark);
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(83, 42, 211, 0.3);
        color: var(--white);
        text-decoration: none;
    }

    .cta-button:disabled,
    .cta-button[disabled] {
        background: var(--text-light);
        border-color: var(--text-light);
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

    .cta-button i {
        font-size: 1.2rem;
    }

.download-info {
    margin-top: 30px;
    text-align: left;
    border-top: 1px solid rgba(83, 42, 211, 0.1);
    padding-top: 20px;
}

.info-item {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-label {
    font-weight: 600;
    min-width: 100px;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.info-value {
    flex: 1;
    color: var(--text-dark);
    font-weight: 500;
}

/* 右侧面板：产品介绍 */
.right-panel {
    flex: 1;
    min-width: 300px;
    background-color: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(83, 42, 211, 0.1);
}

    .right-panel h2 {
        color: var(--primary-color);
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid rgba(83, 42, 211, 0.1);
    }

    .right-panel h3 {
        color: var(--primary-color);
        font-size: 1.5rem;
        font-weight: 600;
        margin: 25px 0 15px 0;
    }

    .right-panel p {
        color: var(--text-light);
        line-height: 1.7;
        margin-bottom: 20px;
        font-size: 1.05rem;
    }

.features {
    margin: 25px 0;
    padding-left: 0;
}

    .features li {
        margin-bottom: 15px;
        list-style-type: none;
        padding-left: 35px;
        position: relative;
        color: var(--text-dark);
        line-height: 1.6;
        font-size: 1.05rem;
    }

        .features li:before {
            content: "✓";
            color: var(--primary-color);
            font-weight: bold;
            font-size: 1.2rem;
            position: absolute;
            left: 0;
            top: 0;
            width: 25px;
            height: 25px;
            background: rgba(83, 42, 211, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

/* 模态对话框 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    width: 550px;
    max-width: 90vw;
    max-height: 80vh;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--primary-color);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(83, 42, 211, 0.1);
    padding-bottom: 15px;
}

    .modal-header h3 {
        margin: 0;
        color: var(--primary-color);
        font-size: 1.5rem;
        font-weight: 700;
    }

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

    .modal-close:hover {
        background: rgba(83, 42, 211, 0.1);
        color: var(--primary-dark);
    }

.modal-content {
    max-height: 300px;
    overflow-y: auto;
    margin: 20px 0;
    padding: 20px;
    border: 1px solid rgba(83, 42, 211, 0.1);
    background: var(--background-light);
    border-radius: 8px;
    line-height: 1.7;
}

    .modal-content p {
        margin: 0 0 15px 0;
        color: var(--text-dark);
    }

    .modal-content a {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 500;
        transition: var(--transition);
    }

        .modal-content a:hover {
            color: var(--primary-dark);
            text-decoration: underline;
        }

.modal-footer {
    text-align: right;
    padding-top: 20px;
    border-top: 2px solid rgba(83, 42, 211, 0.1);
}

.modal-confirm-btn {
    padding: 12px 30px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(83, 42, 211, 0.2);
}

    .modal-confirm-btn:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(83, 42, 211, 0.3);
    }

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 - 调整hero高度 */
@media (max-width: 992px) {
    .download-hero {
        height: 12vh; /* 减小高度 */
        min-height: 80px; /* 减小最小高度 */
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content .download-subtitle {
        font-size: 1rem;
    }

    .download-container {
        padding: 25px 20px;
    }

    .page-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
}

@media (max-width: 768px) {
    .download-hero {
        height: 10vh; /* 减小高度 */
        min-height: 70px; /* 减小最小高度 */
        background-attachment: scroll !important;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }

    .hero-content .download-subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .download-content {
        flex-direction: column;
        gap: 30px;
    }

    .left-panel, .right-panel {
        min-width: 100%;
        padding: 25px;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        max-width: 100%;
    }

    .modal-container {
        padding: 20px;
    }

    .modal-header h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .download-hero {
        height: 12vh; /* 小屏幕上稍微高点 */
        min-height: 60px; /* 减小最小高度 */
    }

    .hero-content h1 {
        font-size: 1.3rem;
    }

    .page-title {
        font-size: 1.5rem;
        margin-top: 0;
        margin-bottom: 20px;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .info-label {
        min-width: auto;
        margin-bottom: 5px;
    }

    .modal-content {
        padding: 15px;
        max-height: 250px;
    }

    /* 在小屏幕上进一步减小hero文字大小 */
    @media (max-height: 600px) {
        .download-hero {
            height: 15vh; /* 在矮屏幕上增加一点高度 */
        }

        .hero-content h1 {
            font-size: 1.2rem;
        }

        .hero-content .download-subtitle {
            font-size: 0.8rem;
        }
    }
}

/* 特别针对横屏模式的调整 */
@media (orientation: landscape) and (max-height: 500px) {
    .download-hero {
        height: 15vh; /* 横屏模式下增加一点高度 */
        min-height: 60px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}
