/* 联系我们页面样式 */

/* 联系信息和表单 */
.contact-section {
    padding: 80px 0;
    background: var(--gray-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* 联系信息 */
.contact-info {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-info h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-content h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-content p {
    color: var(--gray-600);
    line-height: 1.6;
}

.contact-content a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-content a:hover {
    color: var(--primary-color);
}

/* 社交媒体链接 */
.social-links {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-200);
}

.social-links h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.3);
}

/* 联系表单 */
.contact-form-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-form-container h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 600;
}

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

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-label {
    color: var(--gray-700);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-input,
.form-textarea {
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

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

.form-actions {
    text-align: center;
    margin-top: 20px;
}

/* 地图区域 */
.map-section {
    padding: 80px 0;
    background: white;
}

.map-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
}

.map-container {
    background: var(--gray-50);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.map-placeholder {
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-placeholder:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    transform: scale(1.02);
}

.map-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.map-placeholder h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.map-placeholder p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.map-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* 在线客服 */
.chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 20px;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.chat-button:hover {
    transform: scale(1.05);
}

.chat-icon {
    font-size: 1.2rem;
}

.chat-text {
    font-weight: 500;
}

/* 聊天窗口 */
.chat-window {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px;
    height: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-message {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.chat-message.bot .message-avatar {
    background: var(--secondary-color);
    color: white;
}

.chat-message.user .message-avatar {
    background: var(--primary-color);
    color: white;
}

.message-content {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 15px;
    background: var(--gray-100);
    color: var(--gray-700);
    line-height: 1.4;
}

.chat-message.user .message-content {
    background: var(--secondary-color);
    color: white;
}

.chat-input {
    padding: 15px 20px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--gray-300);
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

.chat-input input:focus {
    border-color: var(--secondary-color);
}

.chat-input button {
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.chat-input button:hover {
    background: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-section,
    .map-section {
        padding: 60px 0;
    }
    
    .contact-info,
    .contact-form-container {
        padding: 30px 20px;
    }
    
    .contact-item {
        padding: 15px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .map-placeholder {
        height: 300px;
        padding: 20px;
    }
    
    .map-icon {
        font-size: 3rem;
    }
    
    .map-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .chat-window {
        width: 300px;
        height: 350px;
        right: 10px;
        bottom: 70px;
    }
}

/* 办公环境 */
.office-section {
    padding: 80px 0;
    background: var(--gray-50);
}

.office-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.office-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.office-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.office-image {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.office-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.office-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* 交通指南 */
.transport-section {
    padding: 80px 0;
    background: white;
}

.transport-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.transport-card {
    background: var(--gray-50);
    padding: 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.transport-card:hover {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.transport-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.transport-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.transport-card p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 20px;
}

.transport-card ul {
    list-style: none;
    padding: 0;
}

.transport-card li {
    color: var(--gray-600);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.transport-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

@media (max-width: 480px) {
    .contact-info,
    .contact-form-container {
        padding: 25px 15px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .map-placeholder {
        height: 250px;
    }
    
    .map-placeholder h3 {
        font-size: 1.2rem;
    }
    
    .map-placeholder p {
        font-size: 1rem;
    }
    
    .chat-window {
        width: calc(100vw - 20px);
        right: 10px;
        left: 10px;
    }
    
    .chat-button {
        right: 15px;
        bottom: 15px;
        padding: 12px 16px;
    }
    
    .office-grid,
    .transport-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .office-card,
    .transport-card {
        padding: 25px 20px;
    }
}

/* 验证码样式 */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.captcha-display {
    width: 120px;
    height: 40px;
    background: linear-gradient(135deg, #f0f2f5, #e1e5e9);
    border: 2px solid #d1d5db;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 20px;
    font-weight: bold;
    color: #374151;
    letter-spacing: 2px;
    user-select: none;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

.captcha-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.captcha-refresh {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.captcha-refresh:hover {
    background: var(--secondary-color);
    transform: rotate(180deg);
}

.captcha-input {
    flex: 1;
    max-width: 150px;
}

.captcha-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 5px;
    display: none;
}

.captcha-error.show {
    display: block;
}

/* 表单错误样式 */
.form-input.error,
.form-textarea.error,
.captcha-input.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.field-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 5px;
    display: block;
}

/* 验证码响应式设计 */
@media (max-width: 768px) {
    .captcha-container {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .captcha-display {
        width: 100%;
        height: 50px;
    }
    
    .captcha-refresh {
        width: 100%;
        height: 40px;
    }
    
    .captcha-input {
        max-width: none;
    }
}
