/* 联系我们页面样式 - AI风格 */

/* 页面标题区 */
.page-header {
    background: var(--gradient-hero);
    padding: 120px 0 80px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.page-subtitle {
    font-size: 20px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* 联系区域 */
.contact-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* 表单样式 */
.contact-form-wrapper .card {
    padding: 40px;
}

.form-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--light-text);
}

.form-subtitle {
    color: #666;
    margin-bottom: 32px;
    font-size: 15px;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form .form-group {
    margin-bottom: 24px;
}

.contact-form .form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--light-text);
}

.contact-form .form-label i {
    color: var(--primary-color);
    width: 16px;
}

.required {
    color: #ea4335;
}

.contact-form .form-control {
    padding: 14px 16px;
    border: 2px solid var(--light-border);
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
}

.contact-form .form-control:focus {
    border-color: #764ba2;
    box-shadow: 0 0 0 4px rgba(118, 75, 162, 0.1);
    outline: none;
}

.contact-form select.form-control {
    cursor: pointer;
    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='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* 提交按钮 - 紫色主题 */
.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 17px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(118, 75, 162, 0.35);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* 联系信息区域 */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-wrapper .card {
    padding: 32px;
}

.info-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--light-text);
    padding-bottom: 16px;
    border-bottom: 2px solid var(--light-border);
}

/* 信息列表 */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.info-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    color: white;
    font-size: 18px;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 15px;
    color: var(--light-text);
    font-weight: 500;
}

.info-value.link {
    color: #764ba2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-value.link:hover {
    color: #667eea;
    text-decoration: underline;
}

/* 社交媒体卡片 */
.social-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 80px;
}

.social-link i {
    font-size: 28px;
    margin-bottom: 4px;
}

.social-link span {
    font-size: 13px;
    font-weight: 500;
}

.social-link.wechat {
    background: #e8f5e9;
    color: #07c160;
}

.social-link.wechat:hover {
    background: #07c160;
    color: white;
    transform: translateY(-3px);
}

.social-link.douyin {
    background: #fce4ec;
    color: #e91e63;
}

.social-link.douyin:hover {
    background: #e91e63;
    color: white;
    transform: translateY(-3px);
}

.social-link.weibo {
    background: #ffebee;
    color: #e6162d;
}

.social-link.weibo:hover {
    background: #e6162d;
    color: white;
    transform: translateY(-3px);
}

/* 快速联系卡片 */
.quick-contact-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.quick-contact-card .info-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.quick-desc {
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.6;
}

.quick-contact-card .btn-primary {
    background: white;
    color: #764ba2;
    border: none;
}

.quick-contact-card .btn-primary:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 地图区域 */
.map-section {
    padding: 0 0 80px;
    background: var(--light-bg);
}

.map-card {
    padding: 0;
    overflow: hidden;
}

.map-title {
    padding: 24px 32px;
    font-size: 20px;
    font-weight: 600;
    color: var(--light-text);
    border-bottom: 1px solid var(--light-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.map-title i {
    color: #764ba2;
}

.map-container {
    position: relative;
    width: 100%;
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-fallback {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--light-hover);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    text-align: center;
    color: #888;
}

.map-placeholder i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #764ba2;
}

.map-address {
    margin-top: 8px;
    font-size: 14px;
}

/* 服务承诺区域 */
.commitment-section {
    padding: 80px 0;
    background: white;
}

.commitment-section .section-header {
    margin-bottom: 60px;
}

.commitment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.commitment-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--radius-lg);
    background: var(--light-bg);
    transition: all 0.3s ease;
}

.commitment-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.commitment-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.commitment-icon i {
    color: white;
    font-size: 28px;
}

.commitment-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--light-text);
}

.commitment-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 成功提示模态框 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay .modal-content {
    background: white;
    padding: 48px;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 420px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-xl);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.modal-icon.success {
    background: #e8f5e9;
}

.modal-icon i {
    font-size: 40px;
}

.modal-icon.success i {
    color: #4caf50;
}

.modal-overlay .modal-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--light-text);
}

.modal-message {
    color: #666;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* 表单验证样式 */
.form-control.error {
    border-color: #ea4335;
    box-shadow: 0 0 0 4px rgba(234, 67, 53, 0.1);
}

.error-message {
    color: #ea4335;
    font-size: 13px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.error-message::before {
    content: '⚠';
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info-wrapper {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .contact-info-wrapper .card {
        flex: 1;
        min-width: 280px;
    }
    
    .commitment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }
    
    .contact-section {
        padding: 40px 0;
    }
    
    .contact-form-wrapper .card {
        padding: 24px;
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-title {
        font-size: 24px;
    }
    
    .contact-info-wrapper {
        flex-direction: column;
    }
    
    .contact-info-wrapper .card {
        min-width: auto;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .map-container {
        height: 300px;
    }
    
    .commitment-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .commitment-card {
        padding: 30px 20px;
    }
    
    .modal-overlay .modal-content {
        padding: 32px 24px;
    }
}

/* 加载动画 */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-submit.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}
