/* 客户端下载弹窗样式 (Rule 4.2 & Rule 17) - 百变小樱樱花粉主题 */
.download-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.download-modal.active {
    display: flex;
    opacity: 1;
}

.download-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
}

.download-modal-dialog {
    position: relative;
    background: #ffffff;
    border: 2px solid #fbcfe8;
    border-radius: 24px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(236, 72, 153, 0.3);
    z-index: 10;
    padding: 36px 30px 28px;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.download-modal.active .download-modal-dialog {
    transform: scale(1);
}

.download-modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    background: #fdf2f8;
    border: 1px solid #fbcfe8;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.download-modal-close:hover {
    background: #fce7f3;
    color: #ec4899;
    transform: rotate(90deg);
}

.modal-badge {
    display: inline-block;
    background: #fdf2f8;
    border: 1px solid #fbcfe8;
    color: #be185d;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.modal-title {
    font-size: 1.7rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 8px;
    line-height: 1.3;
}

.modal-subtitle {
    font-size: 0.96rem;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
}

.modal-selected-plan {
    background: #fdf2f8;
    border: 1px dashed #ec4899;
    color: #be185d;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.modal-platform-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.modal-platform-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 2px solid #fbcfe8;
    border-radius: 16px;
    padding: 16px 20px;
    text-decoration: none;
    transition: all 0.25s;
}

.modal-platform-btn:hover {
    border-color: #ec4899;
    background: #fdf2f8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.15);
}

.modal-platform-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.modal-platform-icon {
    width: 46px;
    height: 46px;
    background: #fdf2f8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ec4899;
    flex-shrink: 0;
}

.modal-platform-btn:hover .modal-platform-icon {
    background: #fff;
}

.modal-platform-text h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2px;
}

.modal-platform-text p {
    font-size: 0.82rem;
    color: #64748b;
}

.modal-btn-badge {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 50%, #d946ef 100%);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.modal-steps-guide {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px;
    background: #fdf2f8;
    border: 1px solid #fbcfe8;
    border-radius: 14px;
    margin-bottom: 20px;
    text-align: center;
}

.guide-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ec4899;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.guide-step-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f172a;
    display: block;
}

.modal-footer-link {
    text-align: center;
}

.modal-footer-link a {
    color: #ec4899;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.modal-footer-link a:hover {
    text-decoration: underline;
}

body.modal-open {
    overflow: hidden;
}
