/* ===== Download 页面特有样式 - 蓝色主题 ===== */

.navbar a:hover,
.navbar a.active {
    color: #4facfe;
    border-bottom-color: #4facfe;
}

header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* ===== 平台分区标题 ===== */
.section-title {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #4facfe;
}

/* ===== 平台卡片 ===== */
.platform-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.platform-card {
    flex: 1 1 calc(50% - 8px);
    min-width: 300px;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.platform-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.platform-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.platform-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f4ff;
    border-radius: 12px;
    font-size: 24px;
    margin-right: 16px;
    flex-shrink: 0;
}

.platform-info {
    flex: 1;
    min-width: 0;
}

.platform-name {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.platform-desc {
    font-size: 0.9em;
    color: #888;
}

/* ===== 下载链接行 ===== */
.download-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.download-link-row {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 8px 12px;
    gap: 8px;
}

.download-link-label {
    font-size: 0.85em;
    font-weight: 600;
    color: #4facfe;
    white-space: nowrap;
    margin-right: 4px;
    flex-shrink: 0;
}

.download-link-text {
    flex: 1;
    min-width: 0;
    font-size: 0.85em;
    font-family: 'Courier New', Courier, monospace;
    color: #555;
    word-break: break-all;
    line-height: 1.4;
}

.download-link-text a {
    color: #4facfe;
    text-decoration: none;
}

.download-link-text a:hover {
    text-decoration: underline;
}

/* ===== 按钮样式 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.85em;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, transform 0.1s;
    flex-shrink: 0;
    min-width: 60px;
    line-height: 1.4;
}

.btn:active { transform: scale(0.95); }

.btn-copy {
    background: #e8f4ff;
    color: #4facfe;
}

.btn-copy:hover {
    background: #dceefd;
}

.btn-open {
    background: #4facfe;
    color: #fff;
}

.btn-open:hover {
    background: #3d9ae8;
}

.btn-download {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
    padding: 8px 16px;
    font-weight: 500;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    margin-top: 12px;
}

.btn-download:hover {
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}

/* ===== 扫码区域 ===== */
.qr-section {
    margin-top: 16px;
    text-align: center;
}

.qr-section-label {
    font-size: 0.9em;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}

.qr-code-box {
    display: inline-block;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
}

.qr-code-box img {
    width: 140px;
    height: 140px;
    display: block;
}

.qr-code-text {
    font-size: 0.85em;
    color: #999;
    margin-top: 8px;
}

/* ===== Toast 提示 ===== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9em;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
}

.cta a {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.cta a:hover {
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4);
}

/* ===== 响应式 ===== */
@media (max-width: 700px) {
    .platform-card {
        flex: 1 1 100%;
        min-width: 0;
    }

    header h1 {
        font-size: 1.6em;
    }

    .navbar a {
        padding: 14px 10px;
        font-size: 0.85em;
    }

    .download-link-row {
        flex-wrap: wrap;
    }

    .download-link-text {
        width: 100%;
        order: -1;
        margin-bottom: 4px;
    }
}
