/* 下载页面特定样式 */

/* 下载主横幅区域 */
.download-hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.download-hero-content {
    max-width: 700px;
}

.download-title {
    font-size: 3rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.download-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 25px;
}

.version-badge {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.badge {
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.badge.latest {
    background-color: #34a853;
    color: white;
}

.badge.secure {
    background-color: #4285f4;
    color: white;
}

.badge.free {
    background-color: #fbbc05;
    color: #333;
}

.download-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    display: flex;
    align-items: center;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    font-size: 2rem;
    margin-right: 15px;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4285f4;
    line-height: 1;
}

.stat-text {
    color: #666;
    font-size: 0.9rem;
}

.download-hero-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    max-width: 45%;
}

.download-hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* 主下载区域 */
.main-download-section {
    padding: 80px 0;
    background-color: white;
}

.download-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.platform-card {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}

.platform-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.windows-card:hover {
    border-color: #00a4ef;
}

.mac-card:hover {
    border-color: #999;
}

.linux-card:hover {
    border-color: #fbbc05;
}

.platform-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e9ecef;
}

.platform-icon {
    margin-bottom: 15px;
}

.platform-name {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.platform-version {
    color: #666;
    font-size: 0.9rem;
}

.platform-details {
    margin-bottom: 25px;
}

.platform-features {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.platform-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.platform-features .check {
    color: #34a853;
    font-weight: bold;
    margin-right: 10px;
}

.file-info {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.file-info p {
    margin-bottom: 5px;
}

.download-actions {
    text-align: center;
}

.download-btn-platform {
    background-color: #4285f4;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    margin-bottom: 15px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-btn-platform:hover {
    background-color: #3367d6;
}

.btn-icon {
    font-size: 1.3rem;
    margin-right: 10px;
}

.additional-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.link-secondary {
    color: #4285f4;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.link-secondary:hover {
    text-decoration: underline;
}

/* 移动设备下载区域 */
.mobile-platforms {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.mobile-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.mobile-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.mobile-header img {
    margin-right: 10px;
}

.mobile-header h3 {
    font-size: 1.5rem;
}

.mobile-card p {
    color: #666;
    margin-bottom: 20px;
}

.download-btn-mobile {
    background-color: #34a853;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

.download-btn-mobile:hover {
    background-color: #2d9249;
}

/* 下载进度模拟 */
.download-progress-container {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.progress-bar {
    height: 30px;
    background-color: #e9ecef;
    border-radius: 15px;
    margin: 20px 0;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4285f4, #34a853);
    border-radius: 15px;
    width: 0%;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.progress-fill:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg, 
        rgba(255, 255, 255, 0.2) 25%, 
        transparent 25%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0.2) 75%, 
        transparent 75%, 
        transparent
    );
    z-index: 1;
    background-size: 50px 50px;
    animation: move 2s linear infinite;
}

@keyframes move {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #666;
}

.progress-details {
    text-align: left;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.progress-details p {
    margin-bottom: 10px;
}

.security-status.safe {
    color: #34a853;
    font-weight: 500;
}

/* 下载完成提示 */
.download-complete {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 40px 30px;
    margin-top: 40px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.complete-icon {
    font-size: 4rem;
    color: #34a853;
    margin-bottom: 20px;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }
    70% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.complete-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

/* 版本信息区域 */
.version-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.version-tabs {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    margin-bottom: 50px;
}

.tab-headers {
    display: flex;
    overflow-x: auto;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.tab-header {
    padding: 20px 25px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    position: relative;
}

.tab-header.active {
    background-color: white;
    color: #4285f4;
}

.tab-header.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #4285f4;
}

.tab-header:hover:not(.active) {
    background-color: rgba(66, 133, 244, 0.1);
}

.tab-contents {
    padding: 30px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

.version-info {
    max-width: 800px;
}

.version-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.version-header h3 {
    font-size: 1.8rem;
    margin-right: 15px;
}

.version-tag {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.version-tag.recommended {
    background-color: #34a853;
    color: white;
}

.version-tag.testing {
    background-color: #fbbc05;
    color: #333;
}

.version-tag.developer {
    background-color: #4285f4;
    color: white;
}

.version-tag.experimental {
    background-color: #ea4335;
    color: white;
}

.version-tag.enterprise {
    background-color: #333;
    color: white;
}

.version-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 10px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-weight: 500;
    margin-bottom: 5px;
    color: #666;
}

.detail-value {
    font-size: 1.1rem;
}

.version-features {
    margin-top: 25px;
}

.version-features h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.version-features ul {
    list-style-type: none;
    padding-left: 0;
}

.version-features li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.version-features li:before {
    content: "•";
    color: #4285f4;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

/* 版本对比表格 */
.version-comparison {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.version-comparison h3 {
    margin-bottom: 25px;
    font-size: 1.8rem;
    text-align: center;
}

.comparison-table {
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    background-color: #4285f4;
    color: white;
    padding: 15px;
    text-align: left;
}

.comparison-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.comparison-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.comparison-table tr:hover {
    background-color: rgba(66, 133, 244, 0.1);
}

/* 安装指南区域 */
.installation-section {
    padding: 80px 0;
    background-color: white;
}

.installation-steps {
    max-width: 900px;
    margin: 0 auto 60px;
}

.step-container {
    position: relative;
    padding-left: 50px;
}

.step-container:before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e9ecef;
}

.step-item {
    position: relative;
    margin-bottom: 50px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.step-item.active {
    opacity: 1;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-number {
    position: absolute;
    left: -50px;
    top: 0;
    width: 50px;
    height: 50px;
    background-color: #4285f4;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    z-index: 1;
}

.step-content {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.step-tip {
    margin-top: 20px;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    border-left: 4px solid #34a853;
}

.step-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}

.step-nav-btn {
    background-color: #4285f4;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.step-nav-btn:hover {
    background-color: #3367d6;
}

.step-nav-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.step-indicators {
    display: flex;
    gap: 15px;
    margin: 0 30px;
}

.step-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s;
}

.step-indicator.active {
    background-color: #4285f4;
}

/* 安装注意事项 */
.installation-notes {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.installation-notes h3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.8rem;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.note-item {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.note-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.note-item h4 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.note-item p {
    color: #666;
    font-size: 0.95rem;
}

/* 常见问题区域 */
.troubleshooting-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.troubleshooting-accordion {
    max-width: 900px;
    margin: 0 auto 40px;
}

.accordion-item {
    background-color: white;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.accordion-header {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.accordion-header h3 {
    font-size: 1.2rem;
    margin: 0;
}

.accordion-toggle {
    font-size: 1.5rem;
    color: #4285f4;
    transition: transform 0.3s;
}

.accordion-item.active .accordion-toggle {
    transform: rotate(45deg);
}

.accordion-content {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
}

.accordion-item.active .accordion-content {
    padding: 0 30px 30px;
    max-height: 1000px;
}

.accordion-content p {
    margin-bottom: 15px;
}

.accordion-content ol,
.accordion-content ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.accordion-content li {
    margin-bottom: 10px;
}

.troubleshooting-contact {
    background-color: white;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.troubleshooting-contact h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.troubleshooting-contact a {
    color: #4285f4;
    text-decoration: none;
    font-weight: 500;
}

.troubleshooting-contact a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .download-hero-image {
        position: relative;
        top: auto;
        transform: none;
        max-width: 100%;
        margin-top: 40px;
    }
    
    .download-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .download-title {
        font-size: 2.5rem;
    }
    
    .download-platforms {
        grid-template-columns: 1fr;
    }
    
    .step-container {
        padding-left: 40px;
    }
    
    .step-container:before {
        left: 19px;
    }
    
    .step-number {
        left: -40px;
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    .tab-headers {
        flex-wrap: wrap;
    }
    
    .tab-header {
        flex: 1 0 auto;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .download-title {
        font-size: 2rem;
    }
    
    .version-badge {
        flex-wrap: wrap;
    }
    
    .download-stats {
        grid-template-columns: 1fr;
    }
    
    .complete-actions {
        flex-direction: column;
    }
    
    .step-navigation {
        flex-direction: column;
        gap: 20px;
    }
    
    .step-indicators {
        margin: 10px 0;
    }
}