/* 下载页专用样式 */

/* 下载英雄区域 */
.download-hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #1a73e8 0%, #0d62d9 100%);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.download-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.download-hero .hero-title {
    font-size: 3.2rem;
    margin-bottom: 20px;
}

.download-hero .hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 500px;
}

.version-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.version-badge {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.version-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.version-number {
    font-weight: 600;
    font-size: 1.1rem;
}

.release-date {
    font-size: 0.9rem;
    opacity: 0.8;
}

.download-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.download-stats .stat {
    text-align: left;
}

.download-stats .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.download-stats .stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.download-cta {
    margin-bottom: 40px;
}

.download-cta .btn-large {
    padding: 18px 40px;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.cta-note {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.floating-devices {
    position: relative;
    height: 500px;
}

.device {
    position: absolute;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.device.laptop {
    top: 50px;
    left: 0;
    animation: float-laptop 6s infinite;
    z-index: 3;
}

.device.phone {
    top: 200px;
    right: 50px;
    animation: float-phone 5s infinite;
    z-index: 2;
}

.device.tablet {
    bottom: 50px;
    right: 0;
    animation: float-tablet 7s infinite;
    z-index: 1;
}

@keyframes float-laptop {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(-3deg); }
}

@keyframes float-phone {
    0%, 100% { transform: translateY(0) rotate(5deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

@keyframes float-tablet {
    0%, 100% { transform: translateY(0) rotate(3deg); }
    50% { transform: translateY(-25px) rotate(1deg); }
}

/* 系统要求滑块 */
.requirements-slider {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.requirements-slider .slider-controls {
    position: absolute;
    top: 50%;
    left: -70px;
    right: -70px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 10;
}

.requirement-card {
    flex: 0 0 20%;
    padding: 40px 30px;
    background-color: white;
    border-radius: 16px;
    margin: 0 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid transparent;
}

.requirement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #1a73e8;
}

.requirement-card[data-os="windows"]:hover {
    border-color: #0078D4;
}

.requirement-card[data-os="mac"]:hover {
    border-color: #000000;
}

.requirement-card[data-os="linux"]:hover {
    border-color: #FCC624;
}

.requirement-card[data-os="android"]:hover {
    border-color: #3DDC84;
}

.requirement-card[data-os="ios"]:hover {
    border-color: #000000;
}

.os-icon {
    margin-bottom: 25px;
    color: #1a73e8;
}

.requirement-card[data-os="windows"] .os-icon {
    color: #0078D4;
}

.requirement-card[data-os="mac"] .os-icon {
    color: #000000;
}

.requirement-card[data-os="linux"] .os-icon {
    color: #FCC624;
}

.requirement-card[data-os="android"] .os-icon {
    color: #3DDC84;
}

.requirement-card[data-os="ios"] .os-icon {
    color: #000000;
}

.os-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #202124;
    text-align: center;
}

.requirement-list {
    width: 100%;
    margin-bottom: 30px;
}

.requirement-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.requirement-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.requirement-title {
    font-weight: 500;
    color: #5f6368;
    font-size: 0.9rem;
    flex: 1;
}

.requirement-value {
    color: #202124;
    font-size: 0.9rem;
    text-align: right;
    flex: 1.5;
}

.architecture {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.arch-badge {
    background-color: #f0f2f5;
    color: #5f6368;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 下载选项网格 */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

.download-card {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.download-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #1a73e8;
}

.card-header {
    padding: 30px 30px 20px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.os-icon.large {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.download-card .os-name {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.os-version {
    color: #5f6368;
    font-size: 1rem;
}

.card-body {
    padding: 30px;
    flex-grow: 1;
}

.download-info {
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-label {
    color: #5f6368;
    font-weight: 500;
}

.info-value {
    color: #202124;
    font-weight: 600;
}

.download-actions {
    text-align: center;
}

.download-btn {
    background-color: #1a73e8;
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 20px;
}

.download-btn:hover {
    background-color: #0d62d9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 115, 232, 0.3);
}

.alternative-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.alt-download-btn {
    background-color: #f0f2f5;
    color: #5f6368;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 100px;
}

.alt-download-btn:hover {
    background-color: #e8eaed;
    color: #202124;
}

.card-footer {
    padding: 20px 30px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.install-guide-link {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.install-guide-link:hover {
    color: #0d62d9;
    text-decoration: underline;
}

/* 移动设备下载卡片 */
.mobile-download .card-header {
    padding-bottom: 10px;
}

.mobile-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.mobile-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mobile-icon svg {
    margin-bottom: 0;
}

.mobile-icon span {
    font-size: 0.9rem;
    color: #5f6368;
}

.download-actions.mobile {
    display: flex;
    gap: 15px;
}

.store-btn {
    flex: 1;
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.store-btn.android {
    background-color: #3DDC84;
    color: white;
}

.store-btn.android:hover {
    background-color: #34c976;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(61, 220, 132, 0.3);
}

.store-btn.ios {
    background-color: #000000;
    color: white;
}

.store-btn.ios:hover {
    background-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* 安装指南手风琴 */
.guide-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.guide-item {
    background-color: white;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.guide-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.guide-header {
    width: 100%;
    padding: 25px 30px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: #202124;
    transition: background-color 0.3s ease;
}

.guide-header:hover {
    background-color: #f8f9fa;
}

.guide-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.guide-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.guide-item.active .guide-toggle {
    transform: rotate(45deg);
}

.guide-content {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.guide-item.active .guide-content {
    padding: 0 30px 30px;
    max-height: 2000px;
}

.guide-steps {
    margin-bottom: 30px;
}

.step {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: #1a73e8;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.step-content h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #202124;
}

.step-content p {
    color: #5f6368;
    line-height: 1.6;
}

.step-content code {
    background-color: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #1a73e8;
    display: inline-block;
    margin-top: 8px;
}

.guide-tips {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #34a853;
}

.guide-tips h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #202124;
}

.guide-tips ul {
    list-style-type: none;
    padding-left: 0;
}

.guide-tips li {
    padding: 5px 0;
    color: #5f6368;
    position: relative;
    padding-left: 20px;
}

.guide-tips li:before {
    content: "💡";
    position: absolute;
    left: 0;
    top: 5px;
}

/* 移动设备安装指南 */
.mobile-guide-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.mobile-guide h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #202124;
    text-align: center;
}

.mobile-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-step {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.mobile-step-number {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background-color: #1a73e8;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.mobile-guide.android .mobile-step-number {
    background-color: #3DDC84;
}

.mobile-guide.ios .mobile-step-number {
    background-color: #000000;
}

.mobile-step p {
    color: #5f6368;
    line-height: 1.5;
    padding-top: 5px;
}

.mobile-guide-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* 常见问题 */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto 50px;
}

.faq-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: #202124;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.faq-item.active .faq-answer {
    padding: 0 25px 20px;
    max-height: 500px;
}

.faq-answer p {
    color: #5f6368;
    line-height: 1.6;
}

.faq-cta {
    text-align: center;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-cta a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

.faq-cta a:hover {
    text-decoration: underline;
}

/* 下载进度模拟 */
.progress-simulator {
    background-color: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.progress-header h3 {
    font-size: 1.5rem;
    color: #202124;
}

.file-size {
    color: #5f6368;
    font-size: 0.9rem;
}

.progress-container {
    margin-bottom: 30px;
}

.progress-bar {
    height: 12px;
    background-color: #f0f2f5;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1a73e8, #34a853);
    border-radius: 6px;
    width: 0%;
    transition: width 0.5s ease;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    color: #5f6368;
    font-size: 0.9rem;
}

.progress-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.progress-info .info-item {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 15px;
}

.progress-info .info-label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: #5f6368;
}

.progress-info .info-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: #202124;
}

.progress-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.progress-actions .btn-secondary,
.progress-actions .btn-primary {
    padding: 15px 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-tips {
    background-color: #f1f8ff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #1a73e8;
}

.progress-tips h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #202124;
}

.progress-tips ul {
    list-style-type: none;
    padding-left: 0;
}

.progress-tips li {
    padding: 5px 0;
    color: #5f6368;
    position: relative;
    padding-left: 25px;
}

.progress-tips li:before {
    content: "✓";
    color: #34a853;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 5px;
}

/* 下载模态框 */
.download-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.download-modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #5f6368;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: #f0f2f5;
    color: #202124;
}

.modal-header {
    padding: 40px 40px 20px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #202124;
}

.modal-header p {
    color: #5f6368;
}

.modal-body {
    padding: 30px 40px;
}

.download-details {
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-label {
    color: #5f6368;
    font-weight: 500;
}

.detail-value {
    color: #202124;
    font-weight: 600;
}

.modal-progress {
    margin-bottom: 30px;
}

.progress-text {
    text-align: center;
    margin-bottom: 15px;
    color: #5f6368;
    font-size: 0.9rem;
}

.modal-tips {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.modal-tips h4 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #202124;
}

.modal-tips ol {
    padding-left: 20px;
    margin: 0;
}

.modal-tips li {
    padding: 5px 0;
    color: #5f6368;
}

.modal-footer {
    padding: 20px 40px 40px;
    display: flex;
    gap: 15px;
    border-top: 1px solid #f0f0f0;
}

.modal-footer button {
    flex: 1;
    padding: 15px;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .download-hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-image {
        order: -1;
        height: 400px;
    }
    
    .floating-devices {
        height: 400px;
    }
    
    .device.laptop {
        left: 10%;
        width: 300px;
    }
    
    .device.phone {
        right: 10%;
        width: 120px;
    }
    
    .device.tablet {
        right: 5%;
        width: 160px;
    }
}

@media (max-width: 992px) {
    .requirements-slider .slider-controls {
        left: -40px;
        right: -40px;
    }
    
    .requirement-card {
        flex: 0 0 33.333%;
    }
    
    .mobile-guide-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .download-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .download-stats {
        flex-direction: column;
        gap: 25px;
    }
    
    .requirements-slider .slider-controls {
        position: static;
        transform: none;
        justify-content: center;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .requirement-card {
        flex: 0 0 50%;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .progress-actions {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .download-hero .hero-title {
        font-size: 2rem;
    }
    
    .version-info {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .requirement-card {
        flex: 0 0 100%;
    }
    
    .alternative-options {
        flex-direction: column;
    }
    
    .alt-download-btn {
        min-width: auto;
    }
    
    .download-actions.mobile {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
}