/* 全局样式 - 移动端基础优化 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* 去除移动端点击高亮 */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
    color: #333;
    line-height: 1.6;
    font-size: 16px; /* 基础字体大小 */
}

/* 导航栏样式 - 移动端优化 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 12px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
}

.navbar-brand {
    font-size: 1.2rem; /* 移动端缩小品牌字体 */
    font-weight: bold;
    color: #e63946 !important;
}

/* 移动端菜单展开后样式 */
.navbar-collapse {
    margin-top: 15px;
}

.nav-link {
    color: #333 !important;
    font-size: 1rem;
    margin: 5px 0; /* 移动端增加上下间距，方便点击 */
    padding: 8px 0;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #e63946 !important;
}

.phone-btn {
    background-color: #e63946;
    color: #fff !important;
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: bold;
    display: inline-block; /* 确保按钮样式正常 */
    margin-top: 10px; /* 移动端菜单展开后按钮间距 */
    text-align: center;
    width: 100%; /* 移动端按钮全屏宽，方便点击 */
}

.phone-btn:hover {
    background-color: #d62828;
}

/* 头部横幅样式 - 移动端优化 */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../img/bg-hero.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 120px 0 80px; /* 适配导航栏高度，增加顶部内边距 */
    text-align: center;
    margin-top: 60px; /* 避免被固定导航栏遮挡 */
}

.hero h1 {
    font-size: 1.8rem; /* 移动端缩小标题字体 */
    margin-bottom: 15px;
    line-height: 1.4; /* 优化行高 */
    padding: 0 10px; /* 左右内边距，避免文字贴边 */
}

.hero p {
    font-size: 1rem; /* 移动端缩小描述字体 */
    margin-bottom: 25px;
    padding: 0 10px;
    line-height: 1.5;
}

.service-btn {
    background-color: #e63946;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.3s;
    width: 80%; /* 移动端按钮宽度80%，方便点击 */
    max-width: 300px;
}

.service-btn:hover {
    background-color: #d62828;
    color: #fff;
}

/* 核心优势样式 - 移动端优化 */
.advantages {
    padding: 50px 0;
    background-color: #f9f9f9;
}

.advantage-card {
    background-color: #fff;
    padding: 25px 15px; /* 移动端减少内边距 */
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    text-align: center;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.advantage-card:hover {
    transform: translateY(-5px);
}

.advantage-card i {
    font-size: 2rem; /* 移动端缩小图标 */
    color: #e63946;
    margin-bottom: 15px;
}

.advantage-card h3 {
    font-size: 1.2rem; /* 移动端缩小标题 */
    margin-bottom: 10px;
}

.advantage-card p {
    font-size: 0.9rem; /* 移动端缩小描述 */
    line-height: 1.5;
}

/* 服务项目样式 - 移动端优化 */
.services {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px; /* 移动端减少间距 */
}

.section-title h2 {
    font-size: 1.6rem; /* 移动端缩小标题 */
    color: #333;
    margin-bottom: 10px;
}

.section-title p {
    color: #666;
    font-size: 0.95rem; /* 移动端缩小描述 */
    padding: 0 10px;
}

.service-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    height: 180px; /* 移动端缩小图片高度 */
    object-fit: cover;
}

.service-card .card-body {
    padding: 20px 15px; /* 移动端减少内边距 */
}

.service-card h5 {
    font-size: 1.1rem; /* 移动端缩小标题 */
    font-weight: bold;
    margin-bottom: 8px;
}

.service-card p {
    font-size: 0.9rem; /* 移动端缩小描述 */
    line-height: 1.5;
}

/* 小程序样式 - 移动端优化 */
.mini-program {
    padding: 50px 0;
    background-color: #f0f8fb;
    text-align: center;
}

.mini-program img {
    width: 180px; /* 移动端缩小小程序码 */
    height: 180px;
    margin: 15px auto;
    border: 5px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mini-program p {
    font-size: 0.95rem;
    padding: 0 10px;
}

/* 联系我们样式 - 移动端优化 */
.contact {
    padding: 50px 0;
    background-color: #333;
    color: #fff;
}

.contact-info {
    margin-bottom: 20px;
    padding: 0 10px;
}

.contact-info h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #e63946;
}

.contact-info p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 页脚样式 - 移动端优化 */
footer {
    background-color: #222;
    color: #999;
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem; /* 移动端缩小字体 */
}

footer p {
    margin-bottom: 5px;
    padding: 0 10px;
}

/* 响应式断点精细优化 */
/* 大屏手机 (≥576px) */
@media (min-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    .service-btn {
        width: auto;
    }
    .phone-btn {
        width: auto;
        margin-top: 0;
    }
}

/* 平板 (≥768px) */
@media (min-width: 768px) {
    .navbar-brand {
        font-size: 1.5rem;
    }
    .hero {
        padding: 100px 0;
        margin-top: 0;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.2rem;
    }
    .advantages, .services, .mini-program, .contact {
        padding: 80px 0;
    }
    .section-title {
        margin-bottom: 60px;
    }
    .section-title h2 {
        font-size: 2rem;
    }
    .advantage-card {
        padding: 30px;
    }
    .advantage-card i {
        font-size: 2.5rem;
    }
    .service-card img {
        height: 200px;
    }
}

/* 桌面端 (≥992px) */
@media (min-width: 992px) {
    .nav-link {
        margin: 0 10px;
        padding: 0;
    }
}

/* 小屏手机 (<375px) 极致适配 */
@media (max-width: 375px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    .service-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .mini-program img {
        width: 160px;
        height: 160px;
    }
}