/* 
 * 云南震序律师事务所网站 - 联系我们页面响应式样式
 */

/* 移动端样式 (从 contact.html 迁移) */
@media screen and (max-width: 768px) {
    /* 统一标题样式 */
    .title-area {
        text-align: center !important;
        margin-bottom: 30px !important;
        margin-top: 20px !important;
    }
    .contact-page .title-area h2 {
        font-size: 12px !important;
        margin-bottom: 5px !important;
        font-weight: bold !important;
        letter-spacing: 1px !important;
    }
    .title-area p {
        font-size: 16px !important;
        margin: 0 !important;
        letter-spacing: 1px !important;
    }

    /* 自定义换行 */
    .wrap-mobile {
        display: block !important;
    }

    /* 顶部banner适配 */
    .contact-banner {
        height: 500px !important; /* 恢复固定高度，但使用一个更小的值 */
        /* padding-bottom: 60px !important; */ /* 移除底部内边距 */
        margin-top: 0px !important;
        position: relative !important;
    }

    .contact-banner .banner-text {
        text-align: center !important;
        padding: 30px 15px 15px !important; /* 调整内边距 */
        position: relative !important;
        z-index: 2 !important;
        width: 100% !important;
        left: 0 !important;
    }
    .contact-banner .chinese-text {
        margin-bottom: 15px !important; /* 增加与英文的间距 */
        text-align: center !important;
        width: 100% !important;
    }
    .contact-banner .chinese-text h1 {
        color: #F4AD03 !important; 
        font-size: 36px !important; /* 调整 H1 大小 */
        margin-bottom: 10px !important; /* 调整间距 */
        padding: 0 !important;
    }
    /* Corrected h2 style - mobile */
    .contact-banner .chinese-text h2 {
        color: #ffffff !important;
        font-size: 16px !important; /* 调整 h2 大小 */
        line-height: 1.6 !important; 
        text-shadow: 1px 1px 4px rgba(0,0,0,0.7) !important;
        font-weight: normal !important;
        text-align: center !important;
        margin-bottom: 0 !important; /* 移除或调整负外边距 */
        /* margin-top: -20px !important; */ /* 移除负外边距 */
    }
    
    /* 不再需要单独的h3样式，如果不需要可以移除 */
    /* .contact-banner .chinese-text h3 { ... } */
    
    /* Corrected p style - mobile ({sort:subname}) */
    .contact-banner .chinese-text > p { 
        color: #ffffff !important;
        font-size: 18px !important; /* 调整大小 */
        line-height: 1.5 !important; 
        margin-top: 10px !important; /* 确保与上方标题有间距 */
        margin-bottom: 20px !important; /* 确保与下方内容有间距 */
        padding: 0 !important; /* 移除之前的 padding-top */
        text-shadow: 1px 1px 4px rgba(0,0,0,0.7) !important; 
        font-weight: normal !important; 
        text-align: center !important;
    }
    
    .contact-banner .english-text {
        margin-top: 15px !important; /* 增加与上方中文的间距 */
        padding: 0 15px; /* 增加左右内边距 */
    }
    .contact-banner .english-text p {
        font-size: 14px !important; /* 调整英文大小 */
        line-height: 1.6 !important;
    }
    

    /* Mobile break rule */
    /* .mobile-break { ... } */ /* 如果不需要可以移除 */
    
    /* 联系信息区域适配 */
    .contact-info-section {
        padding: 40px 0 !important;
    }
    .contact-info-section .container {
        padding: 0 15px !important;
        width: 100% !important;
    }
    .contact-info-block {
        margin-bottom: 40px !important;
    }
    .contact-card {
        padding: 25px !important;
        height: auto !important;
        margin-bottom: 20px !important;
    }
    .contact-card h3 {
        font-size: 24px !important;
        margin-bottom: 20px !important;
        width: 100% !important;
        text-align: center !important;
    }
    .contact-card p {
        font-size: 14px !important;
        margin-bottom: 20px !important;
        width: 100% !important;
        text-align: left !important;
    }


    .map-container {
        height: 250px !important;
    }
    
    /* 咨询留言区域适配 */
    .message-form {
        padding: 25px !important;
    }
    .message-form p {
        font-size: 14px !important;
        margin-bottom: 30px !important;
        text-align: center !important;
    }
    .contact-form .form-group {
        margin-bottom: 15px !important;
    }
    .contact-form input,
    .contact-form textarea {
        padding: 10px !important;
        font-size: 14px !important;
    }
    .contact-form button {
        padding: 10px 30px !important;
        font-size: 14px !important;
    }
    
    /* 向下箭头位置调整 */
    .scroll-down {
        bottom: 30px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    .pc-title {
        display: none !important;
    }
    .mobile-title {
        display: block !important;
    }
    .mobile-only {
        display: block !important;
    }

    /* Styles moved from page/contact.css @media block */
    .contact-page {
        padding-bottom: 50px;
    }
    .contact-info-item {
        padding: 20px;
        margin-bottom: 20px;
    }
    .contact-info-icon {
        width: 50px;
        height: 50px;
        margin-right: 15px;
    }
    .contact-info-icon i {
        font-size: 20px;
    }
    .contact-info-content h3 {
        font-size: 18px;
    }
    .contact-form-container {
        padding: 25px; /* Note: .message-form already has padding, this might be redundant or specific */
    }
    .contact-form h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    /* End of moved styles */
}

/* PC 端/其他样式 (从 contact.html 迁移) */
@media screen and (min-width: 769px) {
    .pc-title {
        display: block !important;
    }
    .mobile-title {
        display: none !important;
    }
    .mobile-only {
        display: none !important;
    }
}

/* Keyframes and base styles moved from page/contact.css */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.scroll-down {
    transition: opacity 0.3s ease;
}
