/* ============================================
   安心道道路救援 - 公共样式 (头部/尾部)
   ============================================ */

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    background: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    vertical-align: middle;
    border: 0;
}

/* 容器 - 最大宽度1450px */
.anxin-container {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ============================================
   顶部信息栏
   ============================================ */
.anxin-topbar {
    background: #0a2540;
    color: #a0aec0;
    font-size: 13px;
    height: 36px;
    line-height: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.anxin-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.anxin-topbar-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

.anxin-topbar-left span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.anxin-topbar-left i {
    color: #f59e0b;
    font-size: 12px;
}

.anxin-topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.anxin-topbar-right a:hover {
    color: #f59e0b;
}

.anxin-topbar-right .anxin-city-select {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.anxin-topbar-right .anxin-city-select:hover {
    color: #f59e0b;
}

/* ============================================
   主导航头部
   ============================================ */
.anxin-header {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.anxin-header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.anxin-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 88px;
}

/* Logo */
.anxin-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.anxin-logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.anxin-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.anxin-logo-title {
    font-size: 24px;
    font-weight: 800;
    color: #0a2540;
    letter-spacing: 2px;
    line-height: 1;
}

.anxin-logo-subtitle {
    font-size: 12px;
    color: #718096;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.anxin-logo-city {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 15px;
    padding: 5px 14px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 50px;
    font-size: 13px;
    color: #1e40af;
    font-weight: 600;
    border: 1px solid #dbeafe;
}

.anxin-logo-city i {
    font-size: 11px;
    color: #f59e0b;
}

/* 导航菜单 */
.anxin-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.anxin-nav-item {
    position: relative;
}

.anxin-nav-link {
    display: block;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #2d3748;
    position: relative;
    transition: all 0.3s ease;
}

.anxin-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1e40af, #3b82f6);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.anxin-nav-link:hover,
.anxin-nav-link.active {
    color: #1e40af;
}

.anxin-nav-link:hover::after,
.anxin-nav-link.active::after {
    width: 60%;
}

/* 下拉菜单 */
.anxin-nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 12px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.anxin-nav-item:hover .anxin-nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.anxin-dropdown-item {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: #4a5568;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.anxin-dropdown-item:hover {
    background: #f0f7ff;
    color: #1e40af;
    padding-left: 25px;
}

/* 头部右侧操作区 */
.anxin-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.anxin-header-phone {
    display: flex;
    align-items: center;
    gap: 10px;
}

.anxin-phone-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    animation: anxin-pulse 2s infinite;
}

@keyframes anxin-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(245, 158, 11, 0);
    }
}

.anxin-phone-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.anxin-phone-label {
    font-size: 12px;
    color: #718096;
}

.anxin-phone-number {
    font-size: 20px;
    font-weight: 800;
    color: #0a2540;
    letter-spacing: 1px;
}

.anxin-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.anxin-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}

/* 移动端菜单按钮 */
.anxin-mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: #f0f4f8;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #0a2540;
    font-size: 20px;
}

/* ============================================
   移动端菜单
   ============================================ */
.anxin-mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    overflow-y: auto;
    transition: left 0.4s ease;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.1);
}

.anxin-mobile-menu.active {
    left: 0;
}

.anxin-mobile-menu-header {
    padding: 25px 20px;
    background: linear-gradient(135deg, #0a2540 0%, #1e40af 100%);
    color: #fff;
}

.anxin-mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
}

.anxin-mobile-nav {
    padding: 15px 0;
}

.anxin-mobile-nav-item {
    border-bottom: 1px solid #f0f0f0;
}

.anxin-mobile-nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-size: 15px;
    color: #2d3748;
    font-weight: 500;
}

.anxin-mobile-nav-link:hover {
    color: #1e40af;
    background: #f8fafc;
}

.anxin-mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.anxin-mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   页脚
   ============================================ */
.anxin-footer {
    background: #0a2540;
    color: #a0aec0;
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

.anxin-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1e40af, #f59e0b, #3b82f6);
}

.anxin-footer-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
    gap: 50px;
    padding-bottom: 50px;
}

.anxin-footer-col h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.anxin-footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: #f59e0b;
    border-radius: 2px;
}

/* 品牌介绍列 */
.anxin-footer-brand {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.anxin-footer-brand-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
}

.anxin-footer-brand-text {
    display: flex;
    flex-direction: column;
}

.anxin-footer-brand-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.anxin-footer-brand-sub {
    font-size: 11px;
    color: #718096;
    letter-spacing: 2px;
}

.anxin-footer-desc {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #8896a7;
}

.anxin-footer-social {
    display: flex;
    gap: 12px;
}

.anxin-footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    font-size: 16px;
    transition: all 0.3s ease;
}

.anxin-footer-social a:hover {
    background: #f59e0b;
    color: #fff;
    transform: translateY(-3px);
}

/* 快速链接 */
.anxin-footer-links li {
    margin-bottom: 12px;
}

.anxin-footer-links a {
    font-size: 13px;
    color: #8896a7;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.anxin-footer-links a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    color: #f59e0b;
    opacity: 0;
    transition: all 0.3s ease;
}

.anxin-footer-links a:hover {
    color: #f59e0b;
    padding-left: 5px;
}

.anxin-footer-links a:hover::before {
    opacity: 1;
}

/* 联系方式 */
.anxin-footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.6;
}

.anxin-footer-contact i {
    color: #f59e0b;
    font-size: 16px;
    margin-top: 3px;
    flex-shrink: 0;
}

.anxin-footer-contact .anxin-contact-phone {
    font-size: 18px;
    font-weight: 700;
    color: #f59e0b;
    margin-top: 2px;
}

/* 底部版权 */
.anxin-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px 0;
    font-size: 13px;
    color: #64748b;
}

.anxin-footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.anxin-footer-bottom-links {
    display: flex;
    gap: 25px;
}

.anxin-footer-bottom-links a:hover {
    color: #f59e0b;
}

/* ============================================
   回到顶部
   ============================================ */
.anxin-back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(30, 64, 175, 0.4);
}

.anxin-back-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.anxin-back-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.5);
}

/* ============================================
   响应式 - 平板
   ============================================ */
@media (max-width: 1200px) {
    .anxin-container {
        padding: 0 20px;
    }

    .anxin-header-inner {
        height: 76px;
    }

    .anxin-nav {
        display: none;
    }

    .anxin-mobile-toggle {
        display: flex;
    }

    .anxin-header-phone .anxin-phone-text {
        display: none;
    }

    .anxin-footer-main {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 40px;
    }

    .anxin-footer-col:first-child {
        grid-column: 1 / -1;
    }
}

/* ============================================
   响应式 - 手机
   ============================================ */
@media (max-width: 768px) {
    .anxin-container {
        padding: 0 15px;
    }

    .anxin-topbar {
        display: none;
    }

    .anxin-header-inner {
        height: 68px;
    }

    .anxin-logo-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .anxin-logo-title {
        font-size: 19px;
    }

    .anxin-logo-subtitle {
        font-size: 10px;
    }

    .anxin-logo-city {
        margin-left: 8px;
        padding: 3px 10px;
        font-size: 11px;
    }

    .anxin-header-right {
        gap: 12px;
    }

    .anxin-btn-primary {
        padding: 10px 18px;
        font-size: 13px;
    }

    .anxin-phone-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .anxin-footer {
        padding-top: 50px;
    }

    .anxin-footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        padding-bottom: 30px;
    }

    .anxin-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .anxin-footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .anxin-back-top {
        width: 42px;
        height: 42px;
        bottom: 20px;
        right: 20px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .anxin-footer-main {
        grid-template-columns: 1fr;
    }

    .anxin-btn-primary span {
        display: none;
    }

    .anxin-btn-primary {
        padding: 10px 14px;
    }
}

/* ============================================
   右侧浮动客服（微信 / 电话 / 邮箱 / 回到顶部）
   ============================================ */
.anxin-float-service {
    position: fixed;
    right: 25px;
    bottom: 120px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.anxin-float-item {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e40af;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.anxin-float-item:hover {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.35);
}

/* 微信悬停显示绿色 */
.anxin-float-wechat:hover {
    background: linear-gradient(135deg, #07c160 0%, #06ad56 100%);
    box-shadow: 0 8px 20px rgba(7, 193, 96, 0.35);
}

/* 悬停弹出气泡 */
.anxin-float-popup {
    position: absolute;
    right: 62px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    padding: 14px 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
    pointer-events: none;
}

.anxin-float-popup::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #fff;
}

.anxin-float-item:hover .anxin-float-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* 微信二维码气泡 */
.anxin-float-wechat .anxin-float-popup {
    padding: 12px;
}

.anxin-float-qrcode {
    display: block;
    width: 150px;
    height: 150px;
    border-radius: 8px;
}

.anxin-float-wechat .anxin-float-popup-text {
    margin-top: 8px;
}

.anxin-float-popup-label {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 4px;
}

.anxin-float-popup-text {
    font-size: 15px;
    font-weight: 700;
    color: #0a2540;
}

/* 浮动客服内的回到顶部（滚动后显示） */
.anxin-float-top {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    pointer-events: none;
}

.anxin-float-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

@media (max-width: 768px) {
    .anxin-float-service {
        right: 15px;
        bottom: 90px;
    }

    .anxin-float-item {
        width: 42px;
        height: 42px;
        font-size: 17px;
    }

    .anxin-float-qrcode {
        width: 120px;
        height: 120px;
    }

    .anxin-float-popup {
        right: 52px;
    }
}
