/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 悬浮拨打按钮 */
.floating-call {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e74c3c;
    color: #fff;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    -webkit-animation: pulse 2s infinite;
}

.floating-btn:hover {
    background-color: #c0392b;
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

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

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

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

/* 头部样式 */
.rescue-header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    width: 80px;
    height: auto;
}

.hotline {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
}

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

/* 英雄区域 */
.hero-section {
    background: linear-gradient(135deg, #0066cc 0%, #0088ff 100%);
    color: #fff;
    padding: 80px 0;
    position: relative;
    text-align: center;
}

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

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

.hero-text {
    max-width: 800px;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 28px;
    color: #ffd700;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-desc {
    font-size: 18px;
    margin-bottom: 30px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.fast-arrival {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    padding: 20px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 50px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

.arrival-time {
    display: block;
    font-size: 24px;
    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: 18px;
    font-weight: bold;
    color: #ffd700;
    animation: blink 1s ease-in-out infinite alternate;
    -webkit-animation: blink 1s ease-in-out infinite alternate;
}

.urgency-text i {
    margin-right: 10px;
    font-size: 20px;
}

/* 优势列表样式 */
.benefits-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    background-color: rgba(255,255,255,0.1);
    padding: 10px 20px;
    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;
}

/* 闪烁动画 */
@keyframes blink {
    from {
        opacity: 0.8;
        transform: scale(1);
    }
    to {
        opacity: 1;
        transform: scale(1.05);
    }
}

@-webkit-keyframes blink {
    from {
        opacity: 0.8;
        -webkit-transform: scale(1);
    }
    to {
        opacity: 1;
        -webkit-transform: scale(1.05);
    }
}

.hero-call-btn {
    display: inline-block;
    background-color: #e74c3c;
    color: #fff;
    padding: 25px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 24px;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(231,76,60,0.4);
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite, shake 0.5s ease-in-out 0s 2;
    -webkit-animation: pulse 2s infinite, shake 0.5s ease-in-out 0s 2;
    border: 3px solid rgba(255,255,255,0.3);
}

.hero-call-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

.hero-call-btn:hover::before {
    left: 100%;
}

.hero-call-btn:hover {
    background-color: #c0392b;
    transform: scale(1.08);
    -webkit-transform: scale(1.08);
    box-shadow: 0 12px 35px rgba(231,76,60,0.6);
    border-color: rgba(255,255,255,0.6);
}

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

/* 电话号码样式 */
.phone-number {
    display: block;
    font-size: 28px;
    font-weight: bold;
    margin-top: 8px;
    letter-spacing: 2px;
    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.05);
        opacity: 0.9;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

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

/* 动画效果 */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(231,76,60,0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(231,76,60,0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(231,76,60,0.4);
    }
}

@-webkit-keyframes pulse {
    0% {
        -webkit-transform: scale(1);
        box-shadow: 0 8px 25px rgba(231,76,60,0.4);
    }
    50% {
        -webkit-transform: scale(1.05);
        box-shadow: 0 12px 35px rgba(231,76,60,0.6);
    }
    100% {
        -webkit-transform: scale(1);
        box-shadow: 0 8px 25px rgba(231,76,60,0.4);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

@-webkit-keyframes shake {
    0%, 100% {
        -webkit-transform: translateX(0);
    }
    25% {
        -webkit-transform: translateX(-5px);
    }
    75% {
        -webkit-transform: translateX(5px);
    }
}

/* 服务项目 */
.services-section {
    padding: 80px 0;
    background-color: #f9f9f9;
    position: relative;
    z-index: 3;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    color: #0066cc;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-item {
    background-color: #fff;
    padding: 40px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid #0066cc;
}

.service-item:hover {
    transform: translateY(-10px);
    -webkit-transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

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

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

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

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

.service-item h3 {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.service-item p {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

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

.call-btn:hover {
    background-color: #c0392b;
    transform: scale(1.05);
    -webkit-transform: scale(1.05);
}

/* 优势特点 */
.advantages-section {
    padding: 80px 0;
    background-color: #fff;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.advantage-card {
    text-align: center;
    padding: 30px 20px;
    background-color: #f9f9f9;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
    -webkit-transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

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

.advantage-card h3 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.advantage-card p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* 底部拨打区域 */
.bottom-call-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.call-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.call-info {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 250px;
}

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

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

.call-text h3 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.call-text p {
    font-size: 16px;
    color: #666;
}

.call-btn-large {
    display: inline-block;
    background-color: #e74c3c;
    color: #fff;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    white-space: nowrap;
}

.call-btn-large:hover {
    background-color: #c0392b;
    transform: scale(1.05);
    -webkit-transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

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

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

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

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

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

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

/* 响应式设计 */
@media (max-width: 768px) {
    /* 优化动画效果 */
    .hero-call-btn {
        animation: pulse 3s infinite;
        -webkit-animation: pulse 3s infinite;
        /* 移除移动端的抖动动画，减少性能消耗 */
        animation-name: pulse;
        -webkit-animation-name: pulse;
        padding: 20px 30px;
        font-size: 20px;
    }
    
    .urgency-text {
        font-size: 16px;
        animation: blink 1.5s ease-in-out infinite alternate;
        -webkit-animation: blink 1.5s ease-in-out infinite alternate;
    }
    
    /* 优化布局 */
    .hero-text h1 {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 22px;
        
    }
    
    .hero-desc {
        font-size: 16px;
    }
    
    .fast-arrival {
        flex-direction: column;
        padding: 15px;
    }
    
    .arrival-text {
        text-align: center;
    }
    
    .arrival-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* 优势列表垂直排列 */
    .benefits-list {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .benefit-item {
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .call-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .call-info {
        justify-content: center;
    }
    
    .call-btn-large {
        width: 100%;
        font-size: 20px;
    }
    
    .header-content {
        justify-content: center;
    }
    
    .hotline {
        margin-top: 15px;
        font-size: 16px;
    }
    
    .floating-btn {
        font-size: 16px;
        padding: 12px 20px;
    }
    
    .floating-btn i {
        font-size: 20px;
    }
    
    /* 电话号码样式适配 */
    .phone-number {
        font-size: 22px;
        letter-spacing: 1px;
    }
}

/* 移动端性能优化 */
@media (max-width: 480px) {
    /* 简化动画效果，减少性能消耗 */
    .hero-call-btn {
        animation: pulse 4s infinite;
        -webkit-animation: pulse 4s infinite;
        box-shadow: 0 5px 15px rgba(231,76,60,0.3);
    }
    
    .hero-call-btn::before {
        /* 在小屏幕上移除光效动画，减少性能消耗 */
        display: none;
    }
    
    /* 服务图标简化 */
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 36px;
    }
    
    /* 减少悬停效果 */
    .service-item:hover {
        transform: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    }
    
    .hero-call-btn:hover {
        transform: none;
        box-shadow: 0 8px 25px rgba(231,76,60,0.4);
    }
}

