/* 美化合作咨询表单和联系方式区域 */

/* 联系我们区域整体样式 */
.xhs-contact-section {
    background: linear-gradient(135deg, #fff1f3 0%, #fff5f7 40%, rgba(255, 255, 255, 0.97) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.xhs-contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 85% 15%, rgba(255, 45, 85, 0.07) 0%, rgba(255, 45, 85, 0) 50%),
        radial-gradient(circle at 15% 85%, rgba(255, 45, 85, 0.07) 0%, rgba(255, 45, 85, 0) 50%);
    z-index: 1;
}

/* 背景动态元素 */
.xhs-contact-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 45, 85, 0.03) 0%, rgba(255, 45, 85, 0) 70%);
    border-radius: 50%;
    opacity: 0.7;
    z-index: 0;
    animation: rotateContactBg 25s infinite linear;
}

@keyframes rotateContactBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 浮动光效 */
.xhs-contact-section .light-effect {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 45, 85, 0.03) 0%, rgba(255, 45, 85, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.xhs-contact-section .light-effect:nth-child(1) {
    top: -200px;
    right: -100px;
    opacity: 0.6;
    animation: float-contact-light 20s infinite ease-in-out;
}

.xhs-contact-section .light-effect:nth-child(2) {
    bottom: -200px;
    left: -100px;
    opacity: 0.4;
    animation: float-contact-light 15s infinite ease-in-out reverse;
}

@keyframes float-contact-light {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, 50px); }
}

.xhs-contact-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
}

/* 联系信息部分 */
.xhs-contact-info {
    flex: 1;
    min-width: 300px;
    padding: 60px 50px;
    background: linear-gradient(145deg, #fe2c55 0%, #ff7eb3 100%);
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 圆形装饰 */
.xhs-contact-info::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    top: -150px;
    right: -150px;
    z-index: 0;
}

.xhs-contact-info::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    bottom: -100px;
    left: -100px;
    z-index: 0;
}

.xhs-left-align {
    text-align: left !important;
    position: relative;
    z-index: 1;
}

.xhs-section-subtitle {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 15px;
    border-radius: 20px;
}

.xhs-section-title {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    position: relative;
    letter-spacing: -0.5px;
}

.xhs-highlight {
    position: relative;
}

.xhs-highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: -1;
    border-radius: 4px;
}

.xhs-section-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* 联系方式列表 */
.xhs-contact-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
    position: relative;
    z-index: 1;
}

.xhs-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.xhs-contact-item:hover {
    transform: translateX(5px);
}

.xhs-contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.xhs-contact-item:hover .xhs-contact-icon {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.xhs-icon-phone::before,
.xhs-icon-email::before,
.xhs-icon-location::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 20px;
    color: white;
}

.xhs-icon-phone::before {
    content: '\f095'; /* 电话图标 */
}

.xhs-icon-email::before {
    content: '\f0e0'; /* 邮件图标 */
}

.xhs-icon-location::before {
    content: '\f3c5'; /* 地址图标 */
}

.xhs-contact-text {
    flex-grow: 1;
}

.xhs-contact-text strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.xhs-contact-text p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin: 0;
}

/* 社交媒体图标 */
.xhs-social-media {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.xhs-social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.xhs-social-link:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.xhs-icon-wechat::before,
.xhs-icon-weibo::before,
.xhs-icon-linkedin::before {
    font-family: "Font Awesome 5 Brands";
    font-size: 18px;
}

.xhs-icon-wechat::before {
    content: '\f1d7'; /* 微信图标 */
}

.xhs-icon-weibo::before {
    content: '\f18a'; /* 微博图标 */
}

.xhs-icon-linkedin::before {
    content: '\f0e1'; /* 领英图标 */
}

/* 美化联系表单 */
.xhs-contact-form {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 60px 50px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.xhs-contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(254, 44, 85, 0.03) 0%, rgba(254, 44, 85, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.xhs-form-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.xhs-form-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #fe2c55, #ff7eb3);
    border-radius: 3px;
}

.xhs-form-title {
    font-size: 26px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.xhs-form-subtitle {
    font-size: 15px;
    color: #666;
}

.xhs-form-group {
    margin-bottom: 25px;
    position: relative;
}

.xhs-form-input,
.xhs-form-select,
.xhs-form-textarea {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    font-size: 15px;
    color: #333;
    transition: all 0.3s;
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.xhs-form-input:focus,
.xhs-form-select:focus,
.xhs-form-textarea:focus {
    border-color: #fe2c55;
    box-shadow: 0 5px 15px rgba(254, 44, 85, 0.1);
    outline: none;
    background-color: white;
    transform: translateY(-2px);
}

.xhs-form-input::placeholder,
.xhs-form-textarea::placeholder {
    color: #999;
}

.xhs-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8.825L1.763 4.5 3 3.25 6 6.3 9 3.25l1.237 1.25L6 8.825z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 45px;
}

.xhs-form-textarea {
    resize: vertical;
    min-height: 130px;
}

.xhs-btn {
    display: inline-block;
    padding: 15px 28px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.xhs-btn-primary {
    background: linear-gradient(90deg, #fe2c55, #ff7eb3);
    color: white;
    position: relative;
    overflow: hidden;
}

.xhs-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    transition: all 0.6s ease;
}

.xhs-btn-primary:hover {
    background: linear-gradient(90deg, #e6254c, #ff6ea7);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(254, 44, 85, 0.3);
}

.xhs-btn-primary:hover::before {
    left: 100%;
}

.xhs-btn-block {
    width: 100%;
    padding: 16px;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .xhs-contact-content {
        flex-direction: column;
    }
    
    .xhs-contact-info {
        padding-right: 0;
        margin-bottom: 40px;
        width: 100%;
    }
    
    .xhs-contact-form {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .xhs-contact-section {
        padding: 60px 0;
    }
    
    .xhs-contact-form {
        padding: 30px 20px;
    }
    
    .xhs-form-title {
        font-size: 22px;
    }
    
    .xhs-section-title {
        font-size: 28px;
    }
}

/* 添加微信二维码弹窗效果 */
.xhs-wechat-qr {
    position: relative;
}

.xhs-wechat-qr::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background-image: url('/assets/images/yimhuikfu.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    transform-origin: bottom center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.xhs-wechat-qr:hover::after {
    transform: translateX(-50%) scale(1);
    opacity: 1;
} 