/**
 * CTA区域通用样式
 * 用于 template-parts/cta-section.php 组件
 * 遵循 DESIGN_SYSTEM.md 设计规范
 * 
 * @package MTO Moving
 * @since 1.0.0
 */

/* ==========================================================================
   CTA区域基础样式
   ========================================================================== */

.cta-section,
.services-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #2c5f8d 0%, #4a90c5 100%);
    color: #ffffff;
}

.cta-section .container,
.services-cta .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.cta-content {
    text-align: center;
}

/* ==========================================================================
   CTA标题和副标题
   ========================================================================== */

.cta-title {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 20px;
    color: #ecf0f1;
    margin-bottom: 48px;
    line-height: 1.5;
}

/* ==========================================================================
   CTA操作按钮区域
   ========================================================================== */

.cta-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

/* 首页CTA - 显示微信二维码 */
.cta-section .cta-actions {
    gap: 48px;
}

/* 服务页CTA - 只显示按钮，横向排列 */
.services-cta .cta-actions {
    gap: 16px;
    margin-bottom: 0;
}

/* ==========================================================================
   微信二维码区域
   ========================================================================== */

.cta-wechat {
    text-align: center;
}

.cta-qrcode {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 12px;
    display: block;
}

.cta-qr-label {
    font-size: 16px;
    color: #ecf0f1;
    font-weight: 500;
    margin: 0;
}

/* 服务页隐藏微信二维码 */
.services-cta .cta-wechat {
    display: none;
}

/* ==========================================================================
   CTA信息徽章
   ========================================================================== */

.cta-info {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.cta-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #ffffff;
}

.cta-info-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* 服务页隐藏信息徽章 */
.services-cta .cta-info {
    display: none;
}

/* ==========================================================================
   CTA按钮样式
   ========================================================================== */

.cta-section .btn,
.services-cta .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Noto Sans SC', sans-serif;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* .btn-primary 样式已移至全局 css/style.css，此处无需重复定义 */

.cta-section .btn-secondary,
.services-cta .btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.cta-section .btn-secondary:hover,
.services-cta .btn-secondary:hover {
    background: #ffffff;
    color: #2c5f8d;
    text-decoration: none;
}

.cta-section .btn-lg,
.services-cta .btn-lg {
    padding: 16px 40px;
    font-size: 20px;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   响应式设计 - 平板 (< 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
    .cta-section,
    .services-cta {
        padding: 64px 0;
    }
    
    .cta-title {
        font-size: 36px;
    }
    
    .cta-subtitle {
        font-size: 18px;
        margin-bottom: 40px;
    }
    
    .cta-actions {
        gap: 32px;
    }
    
    .cta-info {
        gap: 32px;
    }
}

/* ==========================================================================
   响应式设计 - 移动端 (< 768px)
   ========================================================================== */

@media (max-width: 768px) {
    .cta-section,
    .services-cta {
        padding: 48px 0;
    }
    
    .cta-title {
        font-size: 28px;
    }
    
    .cta-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }
    
    .cta-actions {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 32px;
    }
    
    .services-cta .cta-actions {
        gap: 12px;
        margin-bottom: 0;
    }
    
    .cta-section .btn,
    .services-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .cta-qrcode {
        width: 160px;
        height: 160px;
    }
    
    .cta-info {
        flex-direction: column;
        gap: 16px;
    }
}

/* ==========================================================================
   响应式设计 - 小屏手机 (< 480px)
   ========================================================================== */

@media (max-width: 480px) {
    .cta-title {
        font-size: 24px;
    }
    
    .cta-subtitle {
        font-size: 15px;
    }
    
    .cta-section .btn-lg,
    .services-cta .btn-lg {
        padding: 14px 24px;
        font-size: 18px;
    }
}

/* ==========================================================================
   打印样式
   ========================================================================== */

@media print {
    .cta-section,
    .services-cta {
        display: none;
    }
}

