/* 加入我們页面移动端适配 */

/* 响应式断点设计 */
@media screen and (max-width: 1400px) {
    /* .hero-section {
        height: 120px;
        min-height: 120px;
    } */

    .hero-section .hero-bg-image {
        object-position: bottom;
    }
    
    /* 通用容器适配 */
    .container {
        padding: 0 20px;
    }
    
    /* 分銷商区域适配 */
    .franchise-section {
        padding: 60px 0;
        min-height: auto;
    }
    
    /* 标题区域适配 */
    .section-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 20px;
    }
    
    .franchise-subtitle {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .section-header p {
        font-size: 16px;
    }
    
    /* 表单容器适配 */
    .franchise-form {
        gap: 6px !important;
    }

    .franchise-form-container {
        width: 90%;
        max-width: 700px;
        padding: 32px;
    }
    
    /* 表单项适配 */
    .form-group {
        width: 50%;
        padding: 0 16px;
        margin-bottom: 4px !important;
    }
    
    .form-label {
        font-size: 15px;
        margin-bottom: 0 !important;
    }
    
    .form-input {
        font-size: 15px;
        padding: 14px 16px;
    }
    
    /* 按钮适配 */
    .submit-btn,
    .reset-btn {
        font-size: 15px;
        padding: 14px 28px;
    }

    .form-actions {
        margin-top: 20px !important;
        margin-bottom: 0 !important;
    }

    .form-actions .layui-input-block {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    .form-input {
        padding: 8px 16px !important;
        font-size: 14px !important;
    }

    .franchise-form-container {
        margin-bottom: 12px !important;
    }
}

@media screen and (max-width: 1200px) {
    /* 分銷商区域适配 */
    .franchise-section {
        padding: 50px 0;
    }
    
    /* 标题区域适配 */
    .section-title {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 18px;
    }
    
    .franchise-subtitle {
        font-size: 17px;
        margin-bottom: 6px;
    }
    
    .section-header p {
        font-size: 15px;
    }
    
    /* 表单容器适配 */
    .franchise-form-container {
        width: 95%;
        max-width: 600px;
        padding: 28px;
    }
    
    /* 表单项适配 */
    .form-group {
        width: 50%;
        padding: 0 12px;
    }
    
    .form-label {
        font-size: 15px;
    }
    
    .form-input {
        font-size: 15px;
        padding: 12px 14px;
    }
    
    .submit-btn,
    .reset-btn {
        font-size: 15px;
        padding: 12px 24px;
    }
}

@media screen and (max-width: 768px) {
    /* 通用容器适配 */
    .container {
        padding: 0 15px;
    }
    
    /* 分銷商区域适配 */
    .franchise-section {
        padding: 40px 0;
    }
    
    /* 标题区域适配 */
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 1.8rem;
        line-height: 1.4;
        margin-bottom: 16px;
    }
    
    .franchise-subtitle {
        font-size: 16px;
        margin-bottom: 4px;
    }
    
    .section-header p {
        font-size: 14px;
    }
    
    /* 表单容器适配 */
    .franchise-form-container {
        width: 100%;
        padding: 24px 20px;
        margin: 0;
    }
    
    /* 表单项适配 - 移动端单列布局 */
    .form-group {
        width: 100%;
        padding: 0;
    }
    
    .form-label {
        font-size: 14px;
    }
    
    .form-input {
        font-size: 14px;
        padding: 12px 16px;
        border-radius: 6px;
    }
    
    .submit-btn,
    .reset-btn {
        width: 100%;
        font-size: 14px;
        padding: 14px 20px;
        justify-content: center;
    }
    
    /* 移动端卡片点击效果 */
    .franchise-form-container:active {
        transform: scale(0.99);
        transition: transform 0.1s ease;
    }
}

@media screen and (max-width: 480px) {
    /* 通用容器适配 */
    .container {
        padding: 0 12px;
    }
    
    /* 分銷商区域适配 */
    .franchise-section {
        padding: 30px 0;
    }
    
    /* 标题区域适配 */
    .section-header {
        margin-bottom: 32px;
    }
    
    .section-title {
        font-size: 1.6rem;
        line-height: 1.4;
        margin-bottom: 14px;
    }
    
    .franchise-subtitle {
        font-size: 15px;
        margin-bottom: 4px;
    }
    
    .section-header p {
        font-size: 14px;
    }
    
    /* 表单容器适配 */
    .franchise-form-container {
        padding: 20px 16px;
        border-radius: 8px;
    }
    
    .form-label {
        font-size: 14px;
    }
    
    .form-input {
        font-size: 14px;
        padding: 12px 14px;
        border-radius: 6px;
    }
    
    .submit-btn,
    .reset-btn {
        font-size: 14px;
        padding: 12px 18px;
    }
}

/* 移动端触摸和滚动优化 */
@media screen and (max-width: 1024px) {
    /* 触摸区域优化 */
    .submit-btn,
    .reset-btn {
        min-height: 44px;
        touch-action: manipulation;
        cursor: pointer;
    }
    
    /* 滚动优化 */
    .franchise-section {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* 防止水平滚动 */
    .container,
    .franchise-form-container {
        overflow-x: hidden;
    }
}

/* 移动端动画优化 */
@media screen and (max-width: 768px) {
    /* 减少动画以提高性能 */
    .philosophy-bg-decoration {
        display: none;
    }
    
    .franchise-form-container:hover {
        transform: none;
        transition: none;
    }
    
    /* 保留必要的动画 */
    .franchise-form-container:active {
        transform: scale(0.99);
        transition: transform 0.1s ease;
    }
}

/* 移动端背景装饰优化 */
@media screen and (max-width: 768px) {
    /* 简化背景装饰以提高性能 */
    .philosophy-bg-decoration .decoration-circle,
    .philosophy-bg-decoration .decoration-line {
        display: none;
    }
}

/* 移动端字体大小优化 - 确保最小14px */
@media screen and (max-width: 480px) {
    /* 确保最小可读字体大小为14px */
    .section-title {
        font-size: max(18px, 1.6rem);
        line-height: 1.4;
    }
    
    .franchise-subtitle {
        font-size: max(14px, 0.9rem);
        line-height: 1.5;
    }
    
    .section-header p {
        font-size: max(14px, 0.875rem);
        line-height: 1.5;
    }
    
    .form-label {
        font-size: max(14px, 0.875rem);
        line-height: 1.4;
    }
    
    .form-input {
        font-size: max(14px, 0.875rem);
        line-height: 1.5;
    }
    
    .submit-btn,
    .reset-btn {
        font-size: max(14px, 0.875rem);
        line-height: 1.4;
    }
}

/* 移动端间距优化 */
@media screen and (max-width: 768px) {
    /* 减少不必要的间距 */
    .franchise-section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
}

@media screen and (max-width: 480px) {
    /* 进一步减少间距 */
    .franchise-section {
        padding: 30px 0;
    }
    
    .section-header {
        margin-bottom: 32px;
    }
}

/* 移动端表单验证优化 */
@media screen and (max-width: 768px) {
    /* Layui表单验证消息适配 */
    .layui-form-item .layui-form-mid {
        font-size: 12px;
        color: #ff5722;
        margin-top: 4px;
        line-height: 1.4;
    }
    
    /* 必填标识优化 */
    .required {
        font-size: 14px;
        font-weight: 700;
    }
}

/* 移动端按钮图标优化 */
@media screen and (max-width: 768px) {
    .submit-btn .btn-icon,
    .reset-btn .btn-icon {
        width: 16px;
        height: 16px;
    }
    
    .btn-text {
        font-size: 14px;
        margin-left: 6px;
    }
}

/* 移动端圆角优化 */
@media screen and (max-width: 768px) {
    .franchise-form-container {
        border-radius: 12px;
    }
    
    .form-input {
        border-radius: 6px;
    }
    
    .submit-btn,
    .reset-btn {
        border-radius: 6px;
    }
}

/* 移动端阴影优化 */
@media screen and (max-width: 768px) {
    .franchise-form-container {
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }
    
    .submit-btn {
        box-shadow: 0 2px 6px rgba(240, 130, 52, 0.2);
    }
    
    .reset-btn {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
}

/* 移动端焦点状态优化 */
@media screen and (max-width: 768px) {
    .form-input:focus {
        border-color: rgba(240, 130, 52, 0.5) !important;
        box-shadow: 0 0 0 2px rgba(240, 130, 52, 0.1) !important;
    }
    
    .submit-btn:focus,
    .reset-btn:focus {
        outline: 2px solid rgba(240, 130, 52, 0.3);
        outline-offset: 2px;
    }
}

/* 移动端占位符优化 */
@media screen and (max-width: 768px) {
    .form-input::placeholder {
        font-size: 14px;
        color: #9ca3af;
        opacity: 0.8;
    }
}

/* 移动端必填字段标识优化 */
@media screen and (max-width: 768px) {
    .form-label .required {
        font-size: 14px;
        margin-left: 2px;
    }
}