/* --- 联系页面特定样式 --- */

/* 联系方式概览区域 */
.contact-overview {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 100%);
    padding-top: 120px; /* 为固定导航栏留出空间 */
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.contact-method {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.contact-method::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-method:hover::before {
    transform: scaleX(1);
}

.contact-method:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(59, 130, 246, 0.3);
}

.method-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #ffffff;
    position: relative;
}

.method-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
    border-radius: 22px;
    z-index: -1;
    opacity: 0.5;
}

.contact-method h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.contact-method p {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 20px;
}

.method-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.method-value {
    color: #3b82f6;
    font-weight: 600;
    font-size: 1.1rem;
}

.method-time {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* 联系表单和地图区域 */
.contact-main {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a2332 0%, #0f1419 100%);
}

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

/* 联系表单样式 */
.contact-form-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
}

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

.form-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.form-header p {
    color: #cbd5e1;
    line-height: 1.6;
}

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

.form-group {
    position: relative;
}

.input-container,
.select-container,
.textarea-container {
    position: relative;
}

.input-container input,
.select-container select,
.textarea-container textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.input-container input:focus,
.select-container select:focus,
.textarea-container textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-container input::placeholder,
.textarea-container textarea::placeholder {
    color: transparent;
}

.input-container label,
.select-container label,
.textarea-container label {
    position: absolute;
    top: 16px;
    left: 20px;
    color: #94a3b8;
    font-size: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-container input:focus + label,
.input-container input:not(:placeholder-shown) + label,
.select-container select:focus + label,
.select-container select:not([value=""]) + label,
.textarea-container textarea:focus + label,
.textarea-container textarea:not(:placeholder-shown) + label {
    top: -12px;
    left: 16px;
    font-size: 0.8rem;
    color: #3b82f6;
    background: #0f1419;
    padding: 0 8px;
}

.input-border,
.select-border,
.textarea-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
}

.input-container input:focus ~ .input-border,
.select-container select:focus ~ .select-border,
.textarea-container textarea:focus ~ .textarea-border {
    width: 100%;
}

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

.submit-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

/* 联系信息样式 */
.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-header {
    text-align: center;
    margin-bottom: 20px;
}

.info-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.info-header p {
    color: #cbd5e1;
    line-height: 1.6;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.info-item:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateX(10px);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ffffff;
    flex-shrink: 0;
}

.info-text h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.info-text p {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 8px;
}

.info-note {
    color: #3b82f6;
    font-size: 0.9rem;
    font-weight: 500;
}

.qr-code-container {
    margin-top: 12px;
}

.qr-code {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #3b82f6;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qr-code:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.qr-code i {
    font-size: 24px;
}

/* 地图容器样式 */
.contact-map {
    margin-top: 20px;
}

.map-container {
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.map-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #cbd5e1;
}

.map-placeholder i {
    font-size: 48px;
    color: #3b82f6;
    margin-bottom: 16px;
}

.map-placeholder h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.map-placeholder p {
    color: #cbd5e1;
    line-height: 1.6;
    max-width: 300px;
}

/* 常见问题区域 */
.faq-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 100%);
}

.faq-grid {
    display: grid;
    gap: 20px;
    margin-top: 50px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.faq-item:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.faq-question {
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(59, 130, 246, 0.1);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.faq-question i {
    color: #3b82f6;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 30px 24px;
    max-height: 200px;
}

.faq-answer p {
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-form-container {
        padding: 30px;
    }
    
    .info-item {
        padding: 20px;
    }
    
    .info-item:hover {
        transform: translateX(0);
    }
}

@media (max-width: 480px) {
    .contact-form-container {
        padding: 20px;
    }
    
    .form-header h2,
    .info-header h2 {
        font-size: 1.5rem;
    }
    
    .input-container input,
    .select-container select,
    .textarea-container textarea {
        padding: 14px 16px;
    }
    
    .input-container label,
    .select-container label,
    .textarea-container label {
        top: 14px;
        left: 16px;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .info-icon {
        align-self: center;
    }
}

/* 动画效果 */
@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 表单输入动画 */
.input-container input:focus,
.select-container select:focus,
.textarea-container textarea:focus {
    animation: inputFocus 0.3s ease;
}

@keyframes inputFocus {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* 联系方法悬停效果 */
.contact-method:hover .method-icon {
    animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 信息项悬停效果 */
.info-item:hover .info-icon {
    animation: iconRotate 0.5s ease;
}

@keyframes iconRotate {
    from {
        transform: rotate(0deg) scale(1);
    }
    to {
        transform: rotate(360deg) scale(1.1);
    }
}

/* 提交按钮加载状态 */
.submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.submit-btn.loading span {
    opacity: 0;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 表单验证样式 */
.input-container.error input,
.select-container.error select,
.textarea-container.error textarea {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.input-container.error label,
.select-container.error label,
.textarea-container.error label {
    color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.error-message i {
    font-size: 12px;
}

/* 成功消息样式 */
.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 16px;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.success-message i {
    font-size: 18px;
}
