/* 联系我们页面样式 */
/* 关于我们页面样式 */
body {
    background-color: #ebebebe8 !important;
    /* 使用!important提高优先级 */
}

/* 顶部banner区域 */
.contact-top-banner {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
}


/* 主体内容区域 */
main {
    width: 90%;
    margin: -50px auto 0 auto;
    position: relative;
    z-index: 10;
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

/*--------------------  页面导航  --------------------*/
.page-nav {
    background: #fff;
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 80px;
}

.nav-link {
    color: #999;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #9163CC;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% + 20px);
    /* 比文字宽度多20px */
    height: 5px;
    background: #9163CC;
}

/*--------------------  联系我们主要内容  --------------------*/
.contact-main {
    padding: 50px 60px;
}

.contact-content {
    padding-top: 30px;
}

/* 页面标题 */
.page-title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 3rem);
    font-weight: 600;
    margin: 30px auto;
    color: #9163CC;
}

h1 {
    margin: 0;
    text-align: center;
}

.title-line {
    font-size: 24px;
    margin: 0 20px;
    text-align: center;
}

/* 联系我们表单样式 */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
}

/* 红色星号样式 */
.required {
    color: #e74c3c;
    margin-right: 4px;
}

.form-group input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background-color: #f8f9fa;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #9163CC;
    box-shadow: 0 0 0 3px rgba(145, 99, 204, 0.1);
    background-color: #fff;
}

.form-group input::placeholder {
    color: #999;
}

/* Textarea样式 - 现代化设计 */
.form-group textarea {
    width: 100%;
    min-height: 140px;
    padding: 18px 20px;
    border: 2px solid #e8ecf0;
    border-radius: 12px;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    resize: vertical;
    line-height: 1.6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-group textarea:focus {
    outline: none;
    border-color: #9163CC;
    box-shadow: 0 0 0 4px rgba(145, 99, 204, 0.15), 0 4px 12px rgba(145, 99, 204, 0.1);
    background: #ffffff;
    transform: translateY(-1px);
}

.form-group textarea::placeholder {
    color: #8b95a1;
    font-style: normal;
    opacity: 0.8;
}

/* 其他描述区域特殊样式 */
.other-description-group {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border: 2px solid #e8e8ff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(145, 99, 204, 0.08);
    opacity: 0;
    transform: translateY(-15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.other-description-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #9163CC, #B084E6, #9163CC);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.other-description-group label {
    color: #9163CC;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.other-description-group label::before {
    content: '✍️';
    font-size: 18px;
}

/* 字符计数器样式 */
.char-counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(145, 99, 204, 0.05);
    border-radius: 8px;
    font-size: 13px;
    color: #6b7280;
}

.char-counter::before {
    content: '📝';
    margin-right: 6px;
}

.char-counter #char-count {
    font-weight: 700;
    color: #9163CC;
    font-size: 14px;
}

/* 字符计数进度条 */
.char-progress {
    width: 60px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.char-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #9163CC, #B084E6);
    border-radius: 2px;
    width: var(--progress, 0%);
    transition: width 0.3s ease;
}

/* 应用场景选择区域 */
.form-section {
    margin-bottom: 40px;
}

.section-label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 20px;
}

/* 移除自动添加的星号，保留HTML中的红色星号 */

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    appearance: none;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-item input[type="checkbox"]:checked {
    background-color: #9163CC;
    border-color: #9163CC;
}

.checkbox-item input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-item label {
    font-size: 16px;
    color: #333;
    cursor: pointer;
    user-select: none;
}

/* 提交按钮 */
.form-submit {
    text-align: center;
    margin-top: 40px;
}

.submit-btn {
    background: linear-gradient(135deg, #9163CC 0%, #B084E6 100%);
    color: white;
    border: none;
    padding: 15px 60px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(145, 99, 204, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(145, 99, 204, 0.4);
}


@media (max-width:768px) {
    .form-row {
        flex-direction: column;
    }

    .checkbox-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin: 0 20px;
    }

    .contact-content {
        padding-top: 0;
    }
}

@media (max-width:480px) {
    .contact-main {
        padding: 20px 20px;
    }

    .checkbox-grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 9px;
        margin: 0 20px;
    }

    .contact-content {
        padding-top: 0;
    }
}

/*--------------------  咨询我们样式  --------------------*/
.contact-section {
    background: linear-gradient(135deg, #8C68C7 0%, #fbf9ff 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 60px;
    padding: 0 50px;
    display: flex;
    align-items: center;
    margin: 3vh 0 0 0;
}

.contact-us-content {
    /* background-color: aqua; */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.contact-title {
    color: white;
    font-size: 1rem;
    margin: 0;
    font-weight: normal;
}

.contact-btn {
    background: linear-gradient(135deg, #9163CC 0%, #B084E6 100%);
    color: white;
    text-decoration: none;
    padding: 8px 30px;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(145, 99, 204, 0.3);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(145, 99, 204, 0.4);
}

.bottom-image-section {
    margin: 0 0 30px 0;
}

.bottom-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/*--------------------  咨询我们样式  响应式优化  --------------------*/
@media (max-width: 768px) {
    .contact-section {
        display: flex;
        height: auto;
        padding: 20px 15px;
        /* 增加左右内边距 */
        margin: 1vh 0 0 0;
        /* 减少上下间距 */
    }

    .contact-us-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        max-width: 100%;
    }

    .contact-title {
        font-size: 16px;
        line-height: 1.4;
        margin: 0;
    }

    .contact-btn {
        font-size: 14px;
        padding: 6px 20px;
        text-decoration: none;
    }
}