/* ================================
   页脚模态框样式优化
   ================================ */

/* 页脚模态框基础样式 */
.footer-modal {
    z-index: 1001;
}

.footer-modal .modal-content {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.footer-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.footer-modal .modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.footer-modal .modal-body {
    line-height: 1.6;
}

/* 页脚模态框中的联系卡片样式优化 */
.footer-modal .contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.footer-modal .contact-card img {
    width: 200px !important;
    height: 200px !important;
    max-width: 200px !important;
    max-height: 200px !important;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    object-fit: contain;
}

.footer-modal .contact-meta {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    width: 100%;
    max-width: 300px;
}

.footer-modal .contact-meta p {
    margin: 8px 0;
    color: #555;
}

.footer-modal .contact-meta strong {
    color: #333;
}

/* 移动端页脚模态框优化 */
@media (max-width: 768px) {
    .footer-modal .modal-content {
        width: 95%;
        max-width: none;
        margin: 10px auto;
        padding: 20px;
        max-height: 85vh;
    }

    .footer-modal .contact-card img {
        width: 160px !important;
        height: 160px !important;
        max-width: 160px !important;
        max-height: 160px !important;
    }

    .footer-modal .contact-meta {
        padding: 15px;
        max-width: 280px;
    }

    .footer-modal .modal-header h3 {
        font-size: 18px;
    }
}

/* 页脚模态框加载状态 */
.footer-modal .footer-loading {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-modal .footer-loading::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #6b5dc6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 确保页脚模态框中的图片不会超出容器 */
.footer-modal img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 特别针对二维码图片的约束 */
.footer-modal img[src*="wechat-qr"] {
    width: 200px !important;
    height: 200px !important;
    max-width: 200px !important;
    max-height: 200px !important;
    min-width: 160px !important;
    min-height: 160px !important;
}

/* 页脚模态框中的段落样式 */
.footer-modal p {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 12px;
}

.footer-modal h2 {
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}
@media (max-width: 1200px) {
    .options-row--secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .main-content {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .main-content > .options-container {
        order: 1;
    }

    .main-content > #processing-stack,
    .main-content > .processing-stack {
        order: 2;
    }

    .options-container {
        gap: 12px;
        margin: 12px auto 18px;
        width: 100%;
        padding: 0 14px;
    }

    .options-row {
        flex-direction: column;
        gap: 12px;
    }

    .options-row--secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-caption-mobile {
        display: none;
    }

    .card-caption-mobile.card-caption-mobile--visible {
        display: block;
        font-size: 12px;
        font-weight: 600;
        color: #475569;
        margin-bottom: 4px;
    }

    .option-card .card-header {
        gap: 6px;
    }

    .option-card .card-header i {
        display: none;
    }

    .processing-mode-options,
    .language-options,
    .feature-options {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
    }

    .processing-mode-option .option-content {
        align-items: center;
        text-align: center;
    }

    .platform-scroll-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        max-height: 260px;
        overflow-y: auto;
        padding-right: 4px;
    }

    .platform-scroll-row .platform-option {
        flex: initial;
    }

    .platform-scroll-row .platform-option label {
        min-width: auto;
        width: 100%;
    }

    .processing-stack {
        width: 100%;
        padding: 0 12px;
        margin-top: 8px;
    }
}
