/* 基础样式重置，确保在各种手机浏览器中表现一致 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: auto;
    min-height: 100vh;
}

/* 容器设置为100%宽度，适合手机屏幕 */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* 悬浮拨打按钮，适合手机操作 */
.floating-call {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e74c3c;
    color: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    animation: pulse 3s infinite;
    -webkit-animation: pulse 3s infinite;
    width: 100%;
    max-width: 200px;
}

.floating-btn:active {
    background-color: #c0392b;
    transform: scale(0.95);
    -webkit-transform: scale(0.95);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.floating-btn i {
    margin-right: 10px;
    font-size: 20px;
}

/* 脉冲动画，适合手机性能 */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }
}

@-webkit-keyframes pulse {
    0% {
        -webkit-transform: scale(1);
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }
    50% {
        -webkit-transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    }
    100% {
        -webkit-transform: scale(1);
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }
}

/* 英雄区域，全屏高度，适合手机显示 */
.hero-section {
    background: linear-gradient(135deg, #0066cc 0%, #0088ff 100%);
    color: #fff;
    padding: 60px 0;
    position: relative;
    text-align: center;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: #f9f9f9;
    border-radius: 50% 50% 0 0 / 20%;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-text {
    margin: 0 auto;
}

.hero-text h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #ffd700;
    margin-bottom: 15px;
    font-weight: 600;
}

.hero-desc {
    font-size: 1rem;
    margin-bottom: 25px;
    color: #f0f0f0;
    line-height: 1.5;
    opacity: 0.9;
}

.fast-arrival {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 25px auto;
    padding: 15px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 50px;
    max-width: 350px;
    flex-direction: column;
}

.arrival-icon {
    width: 50px;
    height: 50px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.arrival-icon i {
    font-size: 24px;
    color: #0066cc;
}

.arrival-text {
    text-align: center;
}

.arrival-time {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #ffd700;
}

.arrival-desc {
    display: block;
    font-size: 14px;
    color: #f0f0f0;
}

/* 紧急文本样式 */
.urgency-text {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    font-size: 16px;
    font-weight: 600;
    color: #ffd700;
    animation: blink 1.5s ease-in-out infinite alternate;
    -webkit-animation: blink 1.5s ease-in-out infinite alternate;
}

.urgency-text i {
    margin-right: 8px;
    font-size: 18px;
}

/* 闪烁动画 */
@keyframes blink {
    from {
        opacity: 0.8;
    }
    to {
        opacity: 1;
    }
}

@-webkit-keyframes blink {
    from {
        opacity: 0.8;
    }
    to {
        opacity: 1;
    }
}

/* 优势列表样式，垂直排列 */
.benefits-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 25px 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    background-color: rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

.benefit-item i {
    margin-right: 8px;
    color: #2ecc71;
    font-size: 16px;
}

/* 主按钮样式，适合手机点击 */
.hero-call-btn {
    display: inline-block;
    background-color: #e74c3c;
    color: #fff;
    padding: 20px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    margin-top: 25px;
    box-shadow: 0 6px 20px rgba(231,76,60,0.4);
    max-width: 100%;
    width: 90%;
    text-align: center;
    position: relative;
    animation: pulse 3s infinite;
    -webkit-animation: pulse 3s infinite;
    border: 2px solid rgba(255,255,255,0.3);
}

.hero-call-btn:active {
    background-color: #c0392b;
    transform: scale(0.98);
    -webkit-transform: scale(0.98);
    box-shadow: 0 8px 25px rgba(231,76,60,0.5);
    border-color: rgba(255,255,255,0.5);
}

.hero-call-btn i {
    font-size: 36px;
    margin-right: 8px;
}

/* 电话号码样式 */
.phone-number {
    display: block;
    font-size: 22px;
    font-weight: bold;
    margin-top: 8px;
    letter-spacing: 1px;
    color: #fff;
    font-family: 'Arial', sans-serif;
    animation: phonePulse 1.5s ease-in-out infinite;
    -webkit-animation: phonePulse 1.5s ease-in-out infinite;
}

/* 电话号码脉冲动画 */
@keyframes phonePulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.03);
        opacity: 0.9;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@-webkit-keyframes phonePulse {
    0% {
        -webkit-transform: scale(1);
        opacity: 1;
    }
    50% {
        -webkit-transform: scale(1.03);
        opacity: 0.9;
    }
    100% {
        -webkit-transform: scale(1);
        opacity: 1;
    }
}

/* 服务项目，垂直排列，适合手机滑动 */
.services-section {
    padding: 50px 0;
    background-color: #f9f9f9;
    position: relative;
    z-index: 3;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 35px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 25px;
}

.service-item {
    background-color: #fff;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-top: 4px solid #0066cc;
}

.service-item:active {
    transform: scale(0.99);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    border: none;
}

.service-icon i {
    font-size: 52px;
    color: #0066cc;
}

/* 补胎换胎服务特殊样式 */
.service-item:nth-child(3) .service-icon {
    background-color: transparent;
    border: 3px solid #0066cc;
    border-radius: 50%;
    width: 90px;
    height: 90px;
}

.service-item:nth-child(3) .service-icon i {
    color: #0066cc;
    font-size: 52px;
}

.service-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.service-item p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.call-btn {
    display: inline-block;
    background-color: #e74c3c;
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.call-btn:active {
    background-color: #c0392b;
    transform: scale(0.97);
}

/* 优势特点，垂直排列 */
.advantages-section {
    padding: 50px 0;
    background-color: #fff;
}

.advantages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 25px;
}

.advantage-card {
    text-align: center;
    padding: 25px 20px;
    background-color: #f9f9f9;
    border-radius: 15px;
}

.advantage-card:active {
    transform: scale(0.99);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.advantage-icon {
    width: 65px;
    height: 65px;
    background-color: #0066cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.advantage-icon i {
    font-size: 32px;
    color: #fff;
}

.advantage-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.advantage-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* 底部拨打区域，垂直排列 */
.bottom-call-section {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.call-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    margin: 0 auto;
}

.call-info {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.call-icon {
    width: 55px;
    height: 55px;
    background-color: #e74c3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.call-icon i {
    font-size: 24px;
    color: #fff;
}

.call-text h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.call-text p {
    font-size: 0.95rem;
    color: #666;
}

.call-btn-large {
    display: inline-block;
    background-color: #e74c3c;
    color: #fff;
    padding: 18px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3rem;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 300px;
}

.call-btn-large:active {
    background-color: #c0392b;
    transform: scale(0.98);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* 页脚 */
.rescue-footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 25px;
}

.footer-logo-img {
    width: 50px;
    height: auto;
}

.footer-hotline h4 {
    font-size: 14px;
    color: #f0f0f0;
    margin-bottom: 5px;
}

.footer-hotline p {
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
}

.footer-copyright {
    font-size: 13px;
    color: #999;
}

/* 针对微信浏览器的特殊样式 */
@supports (-webkit-touch-callout: none) {
    /* 微信浏览器中优化表单元素 */
    input, button, textarea, select {
        -webkit-appearance: none;
        appearance: none;
        border-radius: 0;
    }
    
    /* 微信浏览器中优化滚动条 */
    ::-webkit-scrollbar {
        width: 0px;
        height: 0px;
    }
    
    /* 微信浏览器中优化链接点击 */
    a {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    }
    
    /* 微信浏览器滚动优化 */
    html, body {
        -webkit-overflow-scrolling: touch;
        overflow-scrolling: touch;
        overflow-x: hidden;
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
        position: relative;
    }
    
    /* 防止微信浏览器中页面自动回到顶部 */
    body {
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        will-change: transform;
    }
    
    /* 优化微信浏览器中的滚动性能 */
    * {
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d;
    }
    
    /* 微信浏览器中禁用某些可能导致滚动问题的事件 */
    .hero-section, .services-section, .advantages-section, .bottom-call-section {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

