/* 响应式设计 */

/* 移动端优化 */
@media (max-width: 768px) {
    /* 导航栏优化 */
    .navbar-brand h1 {
        font-size: 1.1rem;
    }
    
    .navbar-brand p {
        font-size: 0.75rem;
    }
    
    /* 搜索框优化 */
    #search-input {
        width: 150px !important;
    }
    
    /* 主内容区域优化 */
    #main-content {
        padding-top: 70px;
    }
    
    /* Hero区域优化 */
    .hero-bg {
        background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* 按钮优化 */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* 侧边栏优化 */
    #sidebar {
        margin-bottom: 1rem;
    }
    
    .sticky-top {
        position: static;
    }
    
    /* 卡片布局优化 */
    .service-card {
        margin-bottom: 1rem;
    }
    
    /* 文本大小优化 */
    .h1, .h2, .h3, .h4, .h5, .h6 {
        line-height: 1.2;
    }
    
    .display-1, .display-2, .display-3, .display-4 {
        font-size: calc(1.425rem + 2.1vw);
    }
    
    /* 间距优化 */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    /* 网格布局优化 */
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .col-md-6, .col-lg-4, .col-xl-3 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* 隐藏大屏元素 */
    .d-none.d-lg-block {
        display: none !important;
    }
    
    /* 显示移动端元素 */
    .d-md-none {
        display: block !important;
    }
    /* 移动端导航栏优化 */
    .navbar-collapse {
        margin-top: 1rem;
    }
    
    /* 移动端搜索框优化 */
    #search-input {
        width: 100% !important;
        margin-bottom: 1rem;
    }
    
    /* 移动端信任指标位置调整 */
    .trust-indicators {
        bottom: 0% !important;
    }
    
    /* 移动端主标题字体大小调整 */
    .hero-content h1 {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }
    
    /* 移动端副标题字体大小调整 */
    .hero-content .lead {
        font-size: 1.1rem !important;
        line-height: 1.4;
    }
    
    /* 移动端按钮大小调整 */
    .hero-content .btn {
        font-size: 1rem !important;
        padding: 0.75rem 1.5rem !important;
    }
}

/* 平板端优化 */
@media (min-width: 769px) and (max-width: 1024px) {
    /* 容器宽度优化 */
    .container {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* 侧边栏宽度优化 */
    #sidebar {
        width: 250px;
    }
    
    /* 主内容区域优化 */
    #content-area {
        width: calc(100% - 250px);
    }
    
    /* 网格布局优化 */
    .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-xl-3 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* 大屏优化 */
@media (min-width: 1025px) {
    /* 容器最大宽度 */
    .container {
        max-width: 1200px;
    }
    
    /* 侧边栏固定 */
    .sticky-top {
        position: sticky;
        top: 100px;
    }
    
    /* 网格布局优化 */
    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .col-xl-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* 超小屏幕优化 */
@media (max-width: 576px) {
    /* 导航栏品牌优化 */
    .navbar-brand {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .navbar-brand img {
        margin-bottom: 0.5rem;
    }
    
    /* 搜索框隐藏 */
    #search-input {
        display: none;
    }
    
    /* 按钮组优化 */
    .btn-group .btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* 文本大小优化 */
    .h2 {
        font-size: 1.5rem;
    }
    
    .h3 {
        font-size: 1.25rem;
    }
    
    .h4 {
        font-size: 1.1rem;
    }
    
    .h5 {
        font-size: 1rem;
    }
    
    /* 间距优化 */
    .py-4 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1rem !important;
    }
    
    /* 卡片内边距优化 */
    .card-body {
        padding: 1rem;
    }
    
    /* 图标大小优化 */
    .fs-4 {
        font-size: 1.5rem !important;
    }
    
    .fs-5 {
        font-size: 1.25rem !important;
    }
    /* 超小屏幕优化 */
    .hero-content h1 {
        font-size: 2rem !important;
    }
    
    .hero-content .lead {
        font-size: 1rem !important;
    }
    
    /* 信任指标在小屏幕上垂直排列 */
    .trust-indicators .col-6 {
        width: 100% !important;
        margin-bottom: 1rem;
    }
    
    /* 服务卡片在小屏幕上的间距调整 */
    .service-card {
        margin-bottom: 1rem;
    }
}

/* 打印样式优化 */
@media print {
    /* 隐藏不需要打印的元素 */
    .navbar,
    .sidebar,
    .btn,
    .footer {
        display: none !important;
    }
    
    /* 优化打印布局 */
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    /* 优化文本颜色 */
    body {
        color: #000 !important;
        background: #fff !important;
    }
    
    /* 优化链接显示 */
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
    
    /* 优化图片显示 */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
}