/* ==========================================
   安迈检测网站优化 CSS - 2026-05-15
   覆盖：图片懒加载修复、CTA按钮、SEO、动画效果
   ========================================== */

/* === 1. 图片懒加载修复 - 替代img_loading === */
img[data-original] {
    opacity: 1 !important;
    min-height: 50px;
    background: #f5f5f5;
    transition: opacity 0.3s ease;
}

/* === 2. 顶部电话号码醒目化 === */
.phone {
    color: #ff6600 !important;
    font-weight: bold !important;
    font-size: 15px !important;
    letter-spacing: 1px;
}
.phone::before {
    content: "☎ ";
}

/* === 3. CTA 浮动按钮组 === */
.am-cta-group {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.am-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: bold;
}
.am-cta-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.am-cta-phone {
    background: linear-gradient(135deg, #ff6600, #ff8833);
    animation: am-pulse 2s infinite;
}
.am-cta-consult {
    background: linear-gradient(135deg, #0066cc, #3399ff);
}
.am-cta-wechat {
    background: linear-gradient(135deg, #07c160, #2dc770);
}
.am-cta-top {
    background: linear-gradient(135deg, #666, #999);
}
@keyframes am-pulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(255,102,0,0.4); }
    50% { box-shadow: 0 4px 25px rgba(255,102,0,0.7); }
}

/* === 4. 首屏Hero CTA横幅 === */
.am-hero-cta {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    padding: 20px 0;
    text-align: center;
    color: #fff;
}
.am-hero-cta h3 {
    font-size: 22px;
    margin: 0 0 10px 0;
    color: #fff;
    font-weight: bold;
}
.am-hero-cta p {
    font-size: 14px;
    margin: 0 0 15px 0;
    color: rgba(255,255,255,0.9);
}
.am-hero-cta-btn {
    display: inline-block;
    padding: 12px 40px;
    background: linear-gradient(135deg, #ff6600, #ff8833);
    color: #fff !important;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,102,0,0.4);
}
.am-hero-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,102,0,0.6);
}

/* === 5. 数据统计展示区 === */
.am-stats-bar {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 30px 0;
    border-top: 3px solid #0066cc;
    border-bottom: 3px solid #0066cc;
}
.am-stats-bar .warp {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}
.am-stat-item {
    text-align: center;
    padding: 10px 20px;
}
.am-stat-num {
    font-size: 36px;
    font-weight: bold;
    color: #0066cc;
    line-height: 1.2;
}
.am-stat-num span {
    font-size: 16px;
    color: #666;
}
.am-stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* === 6. 信任背书栏 === */
.am-trust-bar {
    background: #fff;
    padding: 15px 0;
    border-bottom: 2px solid #eee;
}
.am-trust-bar .warp {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.am-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
}
.am-trust-icon {
    font-size: 24px;
    color: #0066cc;
}

/* === 7. 滚动动画效果 === */
.am-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}
.am-animate.am-visible {
    opacity: 1;
    transform: translateY(0);
}

/* === 8. 服务卡片hover效果增强 === */
.xn_c_index_51_li {
    transition: all 0.3s ease;
}
.xn_c_index_51_li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.index_cnt_m_pro_item {
    transition: all 0.3s ease;
}
.index_cnt_m_pro_item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* === 9. 按钮统一风格 === */
.index_cnt_m_pro_itemore {
    background: #0066cc !important;
    color: #fff !important;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
    padding: 8px 0;
}
.index_cnt_m_pro_itemore:hover {
    background: #0052a3 !important;
}

/* === 10. 导航栏优化 === */
.xn_n_14_wrap_menu1 a {
    transition: color 0.2s ease;
}
.xn_n_14_wrap_menu1:hover a {
    color: #ff6600 !important;
}

/* === 11. 页脚优化 === */
.foot_copy {
    background: #1a1a2e !important;
}
.foot {
    background: #16213e !important;
}
.xn_f_5_wraptop {
    background: #0066cc !important;
}
.online_but input[type="submit"] {
    background: #0066cc !important;
    color: #fff !important;
    border: none;
    padding: 8px 30px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}
.online_but input[type="submit"]:hover {
    background: #0052a3 !important;
}

/* === 12. 留言表单优化 === */
.xn_f_5_wrap input[type="text"],
.xn_f_5_wrap textarea {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    transition: border-color 0.3s;
    width: 100%;
    box-sizing: border-box;
}
.xn_f_5_wrap input[type="text"]:focus,
.xn_f_5_wrap textarea:focus {
    border-color: #0066cc;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,102,204,0.2);
}

/* === 13. 响应式优化 === */
@media screen and (max-width: 1200px) {
    .am-cta-group {
        right: 10px;
    }
    .am-cta-btn {
        width: 46px;
        height: 46px;
        font-size: 12px;
    }
}
