/* 添加基础变量 */
:root {
    --primary-blue: #2997ff;
    --secondary-gray: #86868b;
    --text-dark: #1d1d1f;
    --bg-gradient: linear-gradient(135deg, #f5f5f7 0%, #ffffff 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 容器样式优化 */
.contact-container {
    max-width: 1200px;
    margin: -60px auto 60px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

/* 左侧信息样式 */
.contact-left {
    background: linear-gradient(145deg, #1d1d1f, #313132);
    border-radius: 20px;
    padding: 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 24px;
    margin: 0 0 30px;
    font-weight: 600;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 12px;
    transition: var(--transition);
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.info-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.info-text {
    flex: 1;
}

.info-text p {
    margin: 0;
    line-height: 1.5;
}

/* 右侧表单样式 */
.contact-right {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    color: var(--secondary-gray);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e5e5e7;
    border-radius: 12px;
    font-size: 16px;
    transition: var(--transition);
    background: #f5f5f7;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-blue);
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(41, 151, 255, 0.1);
}

/* 保留原有的按钮样式 */
.submit-btn {
    background: #2997ff;  /* 苹果风格的亮蓝色 */
    color: #fff;
    padding: 12px 32px;
    border: none;
    border-radius: 980px;  /* 苹果风格的圆角 */
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.022em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.submit-btn:hover {
    background: #0071e3;  /* 稍深的蓝色 */
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.3);
}

.submit-btn:hover::before {
    opacity: 1;
}

.submit-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.2);
}

.submit-btn:disabled {
    background: #999;
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 加载状态样式优化 */
.btn-loading {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
    position: absolute;
}

.submit-btn.loading {
    background: #0071e3;
    pointer-events: none;
}

.submit-btn.loading .btn-text {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s ease;
}

.submit-btn.loading .btn-loading {
    display: block;
}

/* 优化加载动画 */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 添加成功状态 */
.submit-btn.success {
    background: #28cd41;  /* 苹果风格的绿色 */
    pointer-events: none;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .contact-container {
        margin-top: -40px;
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .contact-left,
    .contact-right {
        padding: 30px;
    }

    .info-item {
        padding: 15px;
    }

    .submit-btn {
        padding: 10px 24px;
        font-size: 16px;
        width: 100%;  /* 在移动端占满宽度 */
    }
}

/* 在现有样式基础上添加 */

.contact-alternative {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.header-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue), #00d1ff);
    border-radius: 14px;
    color: white;
}

.contact-header h3 {
    font-size: 24px;
    margin: 0;
    background: linear-gradient(135deg, #1d1d1f, #313132);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(145deg, #ffffff, #f5f5f7);
    border-radius: 16px;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(41, 151, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(41, 151, 255, 0.2);
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(41, 151, 255, 0.1);
    border-radius: 12px;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.contact-card:hover .card-icon {
    background: var(--primary-blue);
    color: white;
}

.card-content {
    flex: 1;
}

.card-content h4 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.card-content p {
    margin: 0;
    font-size: 15px;
    color: var(--secondary-gray);
}

.service-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(41, 151, 255, 0.05);
    border-radius: 12px;
    margin-top: 20px;
}

.note-icon {
    font-size: 20px;
}

.service-note p {
    margin: 0;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.5;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .contact-alternative {
        padding: 30px 20px;
    }

    .contact-card {
        padding: 20px;
    }
}