/**
 * HomeGet 移动端优化CSS
 * 确保网站在手机上能够正常阅读和导航
 */

/* 基础移动端设置 */
@media (max-width: 768px) {
    /* 确保所有内容都能在手机上正常显示 */
    body {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* 容器优化 */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* 导航栏优化 */
    .navbar-brand {
        font-size: 16px;
    }
    
    .navbar-nav > li > a {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    /* 顶部栏优化 */
    .top-bar {
        font-size: 12px;
    }
    
    .top-number p {
        margin: 5px 0;
    }
    
    /* 服务卡片优化 */
    .services-wrap {
        margin-bottom: 20px;
    }
    
    .media.services-wrap {
        padding: 15px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    .media.services-wrap .pull-left {
        margin-right: 15px;
    }
    
    .media-heading {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .media-body p {
        font-size: 13px;
        line-height: 1.4;
    }
    
    /* 图标优化 */
    .icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 20px !important;
    }
    
    .icon-large {
        width: 60px !important;
        height: 60px !important;
        font-size: 20px !important;
    }
    
    /* 联络页面优化 */
    .gmap-area .row {
        margin: 0;
    }
    
    .gmap-area .col-sm-5,
    .gmap-area .col-sm-7 {
        width: 100%;
        padding: 10px;
        margin-bottom: 20px;
    }
    
    .gmap {
        margin-bottom: 20px;
    }
    
    .contact-info-mobile {
        margin-top: 0 !important;
    }
    
    /* 按钮优化 */
    .btn {
        font-size: 14px;
        padding: 10px 20px;
        margin: 5px 0;
        width: 100%;
        max-width: 300px;
    }
    
    .btn-lg {
        font-size: 16px;
        padding: 12px 24px;
    }
    
    /* 地图链接优化 */
    .gmap a {
        display: block;
        margin: 5px 0;
        text-align: center;
    }
    
    /* 地址链接优化 */
    address a {
        word-break: break-all;
        font-size: 13px;
    }
    
    /* 电话链接优化 */
    a[href^="tel:"] {
        font-size: 16px;
        font-weight: bold;
        color: #2196F3 !important;
    }
    
    /* 邮箱链接优化 */
    a[href^="mailto:"] {
        word-break: break-all;
        font-size: 13px;
    }
    
    /* 标题优化 */
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.3;
        margin-bottom: 10px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    h3 {
        font-size: 18px;
    }
    
    h4 {
        font-size: 16px;
    }
    
    /* 段落优化 */
    p {
        margin-bottom: 10px;
    }
    
    .lead {
        font-size: 16px;
        line-height: 1.4;
    }
    
    /* 列表优化 */
    ul, ol {
        padding-left: 20px;
    }
    
    li {
        margin-bottom: 5px;
    }
    
    /* 表格优化 */
    table {
        font-size: 12px;
        width: 100%;
    }
    
    /* 表单优化 */
    .form-control {
        font-size: 16px; /* 防止iOS缩放 */
        padding: 10px;
    }
    
    /* 卡片优化 */
    .card {
        margin-bottom: 15px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    /* 进度条优化 */
    .progress {
        height: 20px;
        margin-bottom: 15px;
    }
    
    .progress-bar {
        font-size: 12px;
        line-height: 20px;
    }
    
    /* 合作伙伴区域优化 */
    .partners ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
        margin: 0;
    }
    
    .partners li {
        margin: 5px;
        list-style: none;
    }
    
    .partners img {
        max-width: 80px;
        height: auto;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    body {
        font-size: 13px;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .navbar-brand {
        font-size: 14px;
    }
    
    .media-heading {
        font-size: 15px;
    }
    
    .media-body p {
        font-size: 12px;
    }
    
    .icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 18px !important;
    }
    
    .btn {
        font-size: 13px;
        padding: 8px 16px;
    }
    
    h2 {
        font-size: 18px;
    }
    
    h3 {
        font-size: 16px;
    }
    
    h4 {
        font-size: 14px;
    }
}

/* 横屏优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .gmap-area .col-sm-5,
    .gmap-area .col-sm-7 {
        width: 50%;
        float: left;
    }
    
    .gmap {
        height: 250px;
    }
    
    .contact-info-mobile {
        height: 250px;
        overflow-y: auto;
    }
}

/* 触摸优化 */
@media (max-width: 768px) {
    /* 增加触摸目标大小 */
    a, button, input, select, textarea {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* 链接悬停效果在移动端禁用 */
    a:hover {
        text-decoration: none;
    }
    
    /* 按钮触摸反馈 */
    .btn:active {
        transform: scale(0.98);
        transition: transform 0.1s;
    }
}

/* 防止水平滚动 */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .container {
        max-width: 100%;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
    
    table {
        max-width: 100%;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }
}

/* 地图链接特殊优化 */
@media (max-width: 768px) {
    .gmap a[href*="maps.google"] {
        background: #2196F3 !important;
        color: white !important;
        padding: 12px 20px !important;
        border-radius: 6px !important;
        text-decoration: none !important;
        display: block !important;
        margin: 8px 0 !important;
        font-size: 14px !important;
        font-weight: bold !important;
        text-align: center !important;
    }
    
    .gmap a[href*="maps.google"]:active {
        background: #1976D2 !important;
        transform: scale(0.98);
    }
}
