/**
 * =====================================================
 * 响应式布局 - 电脑端和手机端完全不同的布局
 * =====================================================
 */

/* ================================================
 * 桌面端布局 (大屏幕: >= 992px)
 * ================================================
 */
@media (min-width: 992px) {
    
    /* 导航栏 */
    .main-menu {
        padding: 20px 0;
        background: transparent;
        transition: all 0.3s ease;
    }
    
    .main-menu.minified {
        padding: 10px 0;
        background: rgba(58, 77, 91, 0.95);
    }
    
    /* Hero区域 */
    #slider {
        height: 700px !important;
    }
    
    /* 服务卡片 */
    .services .service-item {
        padding: 40px 30px;
        margin: 20px 10px;
        border-radius: 12px;
        transition: all 0.3s ease;
    }
    
    .services .service-item:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }
    
    /* 关于我们 */
    .about-section .col-md-6 {
        padding: 40px;
    }
    
    /* 作品集 */
    .portfolio-items .item {
        padding: 15px;
    }
    
    /* 联系表单 */
    .contact-form-card {
        padding: 40px;
        margin: 20px;
    }
    
    /* 页脚 */
    footer {
        padding: 60px 0;
    }
}

/* ================================================
 * 平板端布局 (中等屏幕: 768px - 991px)
 * ================================================
 */
@media (max-width: 991px) {
    
    /* 导航栏 */
    .main-menu {
        padding: 15px 0;
    }
    
    .navbar-header {
        float: none;
    }
    
    /* Hero区域 */
    #slider {
        height: 500px !important;
    }
    
    /* 服务卡片 */
    .services .service-item {
        padding: 30px 20px;
        margin: 15px 5px;
    }
    
    /* 关于我们 */
    .about-section .col-md-6 {
        padding: 20px;
    }
    
    /* 联系表单 */
    .contact-form-card {
        padding: 30px;
        margin: 15px;
    }
    
    /* 页脚 */
    footer {
        padding: 40px 0;
    }
}

/* ================================================
 * 手机端布局 (小屏幕: <= 767px)
 * ================================================
 */
@media (max-width: 767px) {
    
    /* ============ 全局重置 ============ */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* ============ 导航栏 - 手机端专用 ============ */
    .main-menu {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        padding: 10px 0;
        background: rgba(58, 77, 91, 0.98) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-brand {
        width: 60px;
        height: 40px;
        background-size: contain;
        background-repeat: no-repeat;
    }
    
    .navbar-toggle {
        border-color: rgba(255, 255, 255, 0.3);
        margin-right: 0;
    }
    
    .navbar-toggle .icon-bar {
        background-color: #fff;
    }
    
    .navbar-collapse {
        background: rgba(58, 77, 91, 0.99);
        margin-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav li a {
        color: #fff !important;
        padding: 12px 20px;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav li a:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    /* ============ Hero区域 - 手机端专用 ============ */
    #slider {
        height: 400px !important;
        margin-top: 60px !important;
    }
    
    .slider-pro {
        border-radius: 0 !important;
    }
    
    /* 轮播图图层居中 */
    .slider-pro .sp-layer {
        text-align: center !important;
        left: 0 !important;
        right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .slider-pro h1.sp-layer {
        font-size: 32px !important;
        top: 40% !important;
        transform: translateY(-50%);
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .slider-pro p.sp-layer {
        font-size: 16px !important;
        top: 55% !important;
        transform: translateY(-50%);
        width: 100% !important;
        max-width: 100% !important;
        color: rgba(255, 255, 255, 0.9) !important;
    }
    
    /* ============ 服务区域 - 手机端专用布局 ============ */
    .services {
        padding: 40px 0 !important;
    }
    
    .services .section-header h2 {
        font-size: 28px !important;
        margin-bottom: 30px;
    }
    
    .services .service-item {
        background: #fff;
        padding: 25px;
        margin: 15px 0 !important;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        text-align: center;
        border: none !important;
        float: none !important;
        width: 100% !important;
    }
    
    .services .service-item .icon {
        width: 60px;
        height: 60px;
        line-height: 60px;
        margin: 0 auto 15px;
        font-size: 28px;
        background: linear-gradient(135deg, #3a4d5b, #2d3d48);
        color: #fff;
        border-radius: 50%;
    }
    
    .services .service-item h4 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .services .service-item p {
        font-size: 14px;
        line-height: 1.6;
        color: #666;
    }
    
    /* ============ 关于我们 - 手机端专用布局 ============ */
    .about-section {
        padding: 40px 0 !important;
        text-align: center;
    }
    
    .about-section .section-header h2 {
        font-size: 28px !important;
    }
    
    .about-section .section-header p {
        font-size: 14px;
        line-height: 1.8;
        color: #666;
        padding: 0 10px;
    }
    
    .about-section .custom-sec-img {
        margin-bottom: 30px;
        float: none !important;
        width: 100% !important;
    }
    
    .about-section .custom-sec-img img {
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    }
    
    .about-section .about-content {
        float: none !important;
        width: 100% !important;
        padding: 20px;
    }
    
    .about-section .about-content h3 {
        font-size: 22px;
        margin-bottom: 20px;
        color: #3a4d5b;
    }
    
    .about-section .about-content p {
        font-size: 14px;
        line-height: 1.8;
        color: #666;
        margin-bottom: 15px;
    }
    
    /* ============ 作品集 - 手机端专用布局 ============ */
    .portfolio-section {
        padding: 40px 0 !important;
    }
    
    .portfolio-section .section-header h2 {
        font-size: 28px !important;
    }
    
    #portfolio-filter {
        margin-bottom: 25px;
    }
    
    #portfolio-filter ul {
        text-align: center;
        padding: 0;
    }
    
    #portfolio-filter ul li {
        display: inline-block;
        margin: 5px;
    }
    
    #portfolio-filter ul li a {
        padding: 8px 16px;
        font-size: 13px;
        background: #f5f6f8;
        border-radius: 20px;
        color: #666;
        border: none;
        transition: all 0.3s ease;
    }
    
    #portfolio-filter ul li a.selected,
    #portfolio-filter ul li a:hover {
        background: #3a4d5b;
        color: #fff;
    }
    
    .portfolio-items .item {
        float: none !important;
        width: 100% !important;
        padding: 0 !important;
        margin-bottom: 15px;
    }
    
    .portfolio-items .item img {
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    /* ============ 团队成员 - 手机端专用布局 ============ */
    .team-section {
        padding: 40px 0 !important;
        background: #f8f9fa;
    }
    
    .team-section .section-header h2 {
        font-size: 28px !important;
    }
    
    #teams .item {
        margin-bottom: 20px;
        text-align: center;
    }
    
    #teams .item .team-img {
        margin-bottom: 15px;
    }
    
    #teams .item .team-img img {
        border-radius: 50%;
        width: 120px;
        height: 120px;
        object-fit: cover;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    #teams .item h4 {
        font-size: 18px;
        margin-bottom: 5px;
    }
    
    #teams .item p {
        font-size: 13px;
        color: #666;
    }
    
    /* ============ 客户评价 - 手机端专用布局 ============ */
    .testimonials-section {
        padding: 40px 0 !important;
    }
    
    .testimonials-section .section-header h2 {
        font-size: 28px !important;
    }
    
    .testimonial-item {
        padding: 25px;
        text-align: center;
    }
    
    .testimonial-item p {
        font-size: 14px;
        line-height: 1.8;
        color: #666;
        font-style: italic;
    }
    
    .testimonial-item .client-info {
        margin-top: 20px;
    }
    
    .testimonial-item .client-info img {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        margin-bottom: 10px;
    }
    
    /* ============ 联系我们 - 手机端专用布局 ============ */
    .contact-section {
        padding: 40px 0 !important;
    }
    
    .contact-section .section-header h2 {
        font-size: 28px !important;
    }
    
    .contact-info {
        margin-bottom: 30px;
    }
    
    .contact-info .info-item {
        text-align: center;
        margin-bottom: 20px;
        padding: 20px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    }
    
    .contact-info .info-item i {
        font-size: 24px;
        color: #3a4d5b;
        margin-bottom: 10px;
    }
    
    .contact-info .info-item h4 {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .contact-info .info-item p {
        font-size: 14px;
        color: #666;
    }
    
    /* 联系表单 - 手机端专用 */
    .contact-form-card {
        padding: 30px 20px !important;
        margin: 0 !important;
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }
    
    .contact-form-card h3 {
        font-size: 20px;
        margin-bottom: 20px;
        text-align: center;
        color: #3a4d5b;
    }
    
    .contact-form-card .form-control {
        height: 45px;
        padding: 12px 15px;
        font-size: 14px;
        border-radius: 8px;
        border: 1px solid #e0e0e0;
        margin-bottom: 15px;
    }
    
    .contact-form-card textarea.form-control {
        height: 100px;
        resize: none;
    }
    
    .contact-form-card .btn-primary {
        width: 100%;
        padding: 14px;
        font-size: 16px;
        background: linear-gradient(135deg, #3a4d5b, #2d3d48);
        border: none;
        border-radius: 8px;
        color: #fff;
        transition: all 0.3s ease;
    }
    
    .contact-form-card .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(58, 77, 91, 0.4);
    }
    
    /* ============ 页脚 - 手机端专用布局 ============ */
    footer {
        padding: 40px 0 20px !important;
        background: #2d3d48;
    }
    
    footer .footer-content {
        text-align: center;
        margin-bottom: 30px;
    }
    
    footer .footer-content h4 {
        font-size: 18px;
        margin-bottom: 15px;
        color: #fff;
    }
    
    footer .footer-content p {
        font-size: 13px;
        color: #999;
        line-height: 1.6;
    }
    
    footer .footer-content ul {
        padding: 0;
    }
    
    footer .footer-content ul li {
        margin-bottom: 8px;
    }
    
    footer .footer-content ul li a {
        color: #999;
        font-size: 14px;
        transition: color 0.3s ease;
    }
    
    footer .footer-content ul li a:hover {
        color: #fff;
    }
    
    footer .footer-copyright {
        text-align: center;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        color: #666;
        font-size: 12px;
    }
    
    /* ============ 滚动按钮 - 手机端专用 ============ */
    #scrollUp {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        line-height: 45px;
        background: #3a4d5b;
        color: #fff;
        border-radius: 50%;
        box-shadow: 0 4px 15px rgba(58, 77, 91, 0.4);
        font-size: 18px;
    }
    
    /* ============ 通用调整 ============ */
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    h3 {
        font-size: 20px;
    }
    
    p {
        font-size: 14px;
        line-height: 1.7;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-header h2 {
        font-size: 28px !important;
    }
    
    .section-header p {
        font-size: 14px;
        line-height: 1.7;
    }
    
    /* 隐藏手机端不需要的元素 */
    .hidden-mobile {
        display: none !important;
    }
    
    /* 自定义间距 */
    .mobile-mt-20 {
        margin-top: 20px;
    }
    
    .mobile-mb-20 {
        margin-bottom: 20px;
    }
    
    .mobile-p-20 {
        padding: 20px;
    }
}

/* ================================================
 * 小屏手机布局 (超小屏幕: <= 480px)
 * ================================================
 */
@media (max-width: 480px) {
    
    /* Hero区域 */
    #slider {
        height: 350px !important;
    }
    
    /* 服务卡片 */
    .services .service-item {
        padding: 20px;
    }
    
    .services .service-item .icon {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 24px;
    }
    
    /* 联系表单 */
    .contact-form-card {
        padding: 25px 15px !important;
    }
    
    /* 按钮样式 */
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    /* 段落文字 */
    p {
        font-size: 13px;
    }
    
    /* 页脚版权 */
    footer .footer-copyright p {
        font-size: 11px;
    }
}

/* ================================================
 * 竖屏手机布局 (超小屏幕: <= 320px)
 * ================================================
 */
@media (max-width: 320px) {
    
    /* Hero区域 */
    #slider {
        height: 300px !important;
    }
    
    /* 服务卡片 */
    .services .service-item {
        padding: 15px;
    }
    
    /* 联系表单 */
    .contact-form-card {
        padding: 20px 10px !important;
    }
    
    /* 标题 */
    h2 {
        font-size: 22px;
    }
    
    .section-header h2 {
        font-size: 24px !important;
    }
}