/* =========================================
   Section 3: CTA & Footer (向下滚动正常露出)
   ========================================= */
.cta-section {
    width: 100%; padding: 160px 20px; background: #FFFFFF; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; z-index: 20; border-top: 1px solid #EEE;
}
.cta-section h2 { font-size: 64px; font-weight: 900; color: var(--text-main); letter-spacing: -2px; margin-bottom: 24px; }
.cta-section p { font-size: 20px; color: var(--text-gray); max-width: 600px; line-height: 1.6; margin-bottom: 48px; }
.cta-buttons { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.btn-primary { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 40px; font-size: 16px; font-weight: 500; color: #ffffff; background-color: var(--accent-orange); border-radius: 8px; text-decoration: none; transition: all 0.2s ease; box-shadow: none; border: none; cursor: pointer; font-family: inherit; }
.btn-primary:hover { background-color: #D65503; transform: translateY(-2px); box-shadow: none; }
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 40px; font-size: 16px; font-weight: 500; color: var(--text-main); background-color: #F4F4F2; border-radius: 8px; text-decoration: none; transition: all 0.2s ease; border: 1px solid #EAEAEA; cursor: pointer; font-family: inherit; }
.btn-secondary:hover { background-color: #EBEBEB; transform: translateY(-2px); }

.site-footer {
    width: 100%; padding: 40px 10vw; background: #FAFAFA; border-top: 1px solid #EEE; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; font-size: 14px; color: #888; z-index: 20; position: relative;
}
.footer-logo { font-family: 'Sen', sans-serif; font-weight: 800; font-size: 20px; color: #2A2421; letter-spacing: -0.5px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: #888; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-orange); }

/* =========================================
   Modal (Iframe 弹窗)
   ========================================= */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    z-index: 9999; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s ease; padding: 4vh 4vw;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content {
    width: 100%; max-width: 1400px; height: 100%; background: #FFF; border-radius: 16px; overflow: hidden; position: relative;
    transform: translateY(20px) scale(0.98); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 40px 80px rgba(0,0,0,0.4); display: flex; flex-direction: column;
}
.modal-overlay.active .modal-content { transform: translateY(0) scale(1); }
.modal-header { height: 48px; background: #F9F9F8; border-bottom: 1px solid #EEE; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; }
.modal-title { font-size: 13px; font-family: 'Space Mono', monospace; color: #666; }
.modal-close { width: 32px; height: 32px; border-radius: 50%; background: #EEE; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; font-size: 18px; color: #333; }
.modal-close:hover { background: #E0E0E0; }
.modal-body { flex: 1; width: 100%; background: #FFF; }
.modal-body iframe { width: 100%; height: 100%; border: none; display: block; }

/* ========== Tablet ========== */
@media (max-width: 1024px) and (min-width: 769px) {
    .cta-section { padding: 120px 20px; }
    .cta-section h2 { font-size: 48px; }
    .cta-section p { font-size: 18px; }
    .modal-overlay { padding: 3vh 3vw; }
}

/* ========== Mobile ========== */
@media (max-width: 768px) {
    .cta-section { padding: 80px 20px; }
    .cta-section h2 { font-size: 32px; letter-spacing: -1px; margin-bottom: 16px; }
    .cta-section p { font-size: 16px; margin-bottom: 32px; }
    .btn-primary, .btn-secondary { height: 44px; padding: 0 28px; font-size: 14px; width: 100%; }
    .cta-buttons { flex-direction: column; width: 100%; max-width: 320px; }
    .site-footer { padding: 24px 5vw; flex-direction: column; align-items: center; text-align: center; font-size: 12px; }
    .footer-logo { font-size: 18px; display: flex; justify-content: center; }
    .modal-overlay { padding: 2vh 2vw; }
    .modal-content { border-radius: 10px; }
    .modal-header { height: 40px; padding: 0 10px; }
    .modal-title { font-size: 11px; }
}
