/* ===== 增强样式 v2.0：Hover动效 + 搜索下拉 + SLA区块 + 地图 ===== */

/* ===== SLA 承诺区块 ===== */
.sla-section {
    background: linear-gradient(135deg, #0f2027, #1a2332, #203a43);
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}
.sla-section::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(26,111,214,.15), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(74,158,255,.1), transparent 50%);
}
.sla-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 2;
}
.sla-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all .4s;
}
.sla-card:hover {
    background: rgba(255,255,255,.1);
    transform: translateY(-8px);
    border-color: rgba(74,158,255,.5);
    box-shadow: 0 20px 40px rgba(0,0,0,.3);
}
.sla-number {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #4a9eff, #7ec8e3);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 12px;
}
.sla-card h4 {
    color: #fff;
    font-size: 17px;
    margin-bottom: 8px;
}
.sla-card p {
    color: rgba(255,255,255,.6);
    font-size: 13px;
    line-height: 1.6;
}

/* ===== 服务卡片 Hover 动效 ===== */
.service-card {
    transition: all .4s cubic-bezier(.4,0,.2,1);
    border: 1px solid transparent;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(26,111,214,.15);
    border-color: rgba(26,111,214,.2);
}
.service-card:hover .service-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
}
.service-icon {
    transition: all .4s;
}
.card-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
    align-self: center;
    white-space: nowrap;
    transition: gap .3s, color .25s;
}
.card-link > i {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    transition: transform .3s;
}
.card-link:hover { gap: 12px; color: var(--primary-dark); }
.card-link:hover > i { transform: translateX(4px); }

/* ===== 案例卡片 ===== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.case-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    cursor: pointer;
    transition: all .4s;
}
.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,.12);
}
.case-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.case-tag {
    position: absolute;
    top: 14px; left: 14px;
    background: rgba(26,111,214,.9);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.case-info { padding: 20px; }
.case-info h4 { font-size: 17px; color: var(--dark); margin-bottom: 8px; }
.case-info p { font-size: 14px; color: var(--gray); line-height: 1.6; }

/* ===== 优势数字动画 ===== */
.adv-num {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 10px;
    transition: transform .3s;
}
.advantage-item:hover .adv-num { transform: scale(1.1); }

/* ===== 流程步骤 ===== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.process-step {
    text-align: center;
    padding: 30px 20px;
    position: relative;
}
.process-num {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 8px 25px rgba(26,111,214,.3);
}
.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 55px; left: 60%;
    width: 80%; height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
}

/* ===== CTA 区块 ===== */
.cta-section {
    background: linear-gradient(135deg, #1a6fd6, #2c5364);
    padding: 70px 0;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60'><line x1='0' y1='0' x2='60' y2='0' stroke='rgba(255,255,255,.05)'/><line x1='0' y1='0' x2='0' y2='60' stroke='rgba(255,255,255,.05)'/></svg>");
}
.cta-section .container { position: relative; z-index: 2; }
.cta-section h2 { font-size: 32px; margin-bottom: 12px; }
.cta-section p { font-size: 16px; opacity: .85; margin-bottom: 28px; }

/* ===== 搜索结果下拉 ===== */
.search-results {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0; right: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    max-height: 400px;
    overflow-y: auto;
    z-index: 100;
    text-align: left;
    border: 1px solid rgba(0,0,0,.06);
}
.search-results.active { display: block; animation: fadeInUp .25s ease; }
.search-results .sr-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all .2s;
    color: #333;
}
.search-results .sr-item:hover { background: rgba(26,111,214,.06); padding-left: 26px; }
.search-results .sr-item i { color: var(--primary); width: 20px; font-size: 14px; }
.search-results .sr-cat {
    margin-left: auto; font-size: 11px; color: var(--primary);
    background: rgba(26,111,214,.1); padding: 3px 10px; border-radius: 10px;
}
.search-results .sr-empty { padding: 30px; text-align: center; color: var(--gray); font-size: 14px; }

/* ===== 热门搜索标签 ===== */
.search-hot-tags {
    margin-top: 16px;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    justify-content: center;
}
.search-hot-tags span { color: rgba(255,255,255,.6); font-size: 13px; }
.search-hot-tags a {
    display: inline-block;
    padding: 5px 16px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 18px;
    color: rgba(255,255,255,.75);
    font-size: 12px;
    cursor: pointer;
    transition: all .3s;
}
.search-hot-tags a:hover { background: rgba(255,255,255,.2); color: #fff; }

/* ===== 地图区域 ===== */
.map-box {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,.1);
}
.map-loading {
    position: absolute; inset: 0; z-index: 5;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
    color: var(--primary);
    transition: opacity .5s;
}
.map-loading.hide { opacity: 0; pointer-events: none; }
.map-loading i { font-size: 40px; margin-bottom: 12px; }
.map-embed { width: 100%; height: 100%; border: 0; }

/* ===== 浮动咨询按钮 ===== */
.float-consult {
    position: fixed;
    right: 24px; bottom: 100px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: 14px 20px;
    border-radius: 30px;
    box-shadow: 0 8px 30px rgba(26,111,214,.4);
    cursor: pointer;
    z-index: 999;
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 600;
    transition: all .3s;
    animation: pulse 2s infinite;
}
.float-consult:hover { transform: scale(1.05); box-shadow: 0 12px 40px rgba(26,111,214,.5); }
@keyframes pulse {
    0%, 100% { box-shadow: 0 8px 30px rgba(26,111,214,.4); }
    50% { box-shadow: 0 8px 30px rgba(26,111,214,.7); }
}

/* ===== 回到顶部 ===== */
.back-top {
    position: fixed;
    right: 24px; bottom: 30px;
    width: 46px; height: 46px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 18px;
    cursor: pointer;
    z-index: 999;
    opacity: 0; transform: translateY(20px);
    transition: all .3s;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
}
.back-top.show { opacity: 1; transform: translateY(0); }
.back-top:hover { background: var(--primary); color: #fff; }

/* ===== 页脚 ===== */
.footer {
    background: #0f2027;
    color: rgba(255,255,255,.7);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-logo {
    font-size: 20px; font-weight: 700; color: #fff;
    display: flex; align-items: center; gap: 10px; margin-bottom: 15px;
}
.footer-logo i { color: var(--primary-light); }
.footer-col h4 {
    color: #fff; font-size: 15px; margin-bottom: 18px;
    position: relative; padding-bottom: 10px;
}
.footer-col h4::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 30px; height: 2px; background: var(--primary);
}
.footer-col ul li { margin-bottom: 10px; font-size: 14px; }
.footer-col ul li a { transition: color .25s; }
.footer-col ul li a:hover { color: var(--primary-light); }
.contact-list li { display: flex; align-items: flex-start; gap: 10px; }
.contact-list li i { color: var(--primary-light); margin-top: 3px; flex-shrink: 0; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: #fff; }

/* ===== 新闻弹层 ===== */
.news-modal {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center; justify-content: center;
    padding: 20px;
}
.news-modal.active { display: flex; animation: fadeIn .3s ease; }
.news-modal-content {
    background: #fff; border-radius: 16px;
    max-width: 800px; width: 100%;
    max-height: 85vh; overflow-y: auto;
    position: relative;
    animation: slideUp .4s ease;
}
.news-modal-close {
    position: absolute; top: 16px; right: 16px;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(0,0,0,.05); border: none;
    cursor: pointer; font-size: 16px; color: #666;
    display: flex; align-items: center; justify-content: center;
    transition: all .25s; z-index: 10;
}
.news-modal-close:hover { background: var(--accent); color: #fff; }
.news-modal-cover {
    height: 200px;
    background: linear-gradient(135deg, #1a6fd6, #2c5364);
    display: flex; align-items: center; justify-content: center;
    font-size: 60px; color: #fff;
}
.news-modal-body { padding: 30px 40px 40px; }
.nm-meta {
    display: flex; align-items: center; gap: 15px;
    margin: 15px 0 20px; font-size: 13px; color: var(--gray);
}
.nm-content { font-size: 15px; line-height: 1.8; color: #444; }
.nm-content p { margin-bottom: 15px; }
.nm-content ul { padding-left: 20px; margin-bottom: 15px; }
.nm-content li { margin-bottom: 8px; }
.nm-content strong { color: var(--dark); }

/* ===== 移动端适配 ===== */
@media (max-width: 1024px) {
    .sla-grid, .advantages-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
    .cases-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .banner-content h2 { font-size: 28px; }
    .banner-desc { font-size: 15px; }
    .sla-grid, .advantages-grid, .process-grid, .cases-grid, .services-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .nav { display: none; }
    .header-phone { display: none; }
    .mobile-menu-btn { display: block; }
    .float-consult span { display: none; }
    .process-step:not(:last-child)::after { display: none; }
}
