/* contact.css - 联系页面专用样式 */

/* 页面头部 */
.contact-header {
    background: linear-gradient(135deg, #4a148c 0%, #311b92 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.contact-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.contact-header .header-content {
    flex: 1;
}

.contact-header .page-title {
    font-size: 48px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.contact-header .page-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-quote {
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 25px;
    margin-top: 40px;
    border-left: 4px solid #D4AF37;
}

.contact-quote i.fa-quote-left {
    font-size: 24px;
    color: #D4AF37;
    margin-bottom: 15px;
    display: block;
}

.contact-quote p {
    font-size: 16px;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 10px;
}

.quote-author {
    font-size: 14px;
    opacity: 0.8;
    text-align: right;
    display: block;
}

.contact-header .header-illustration {
    flex: 0 0 400px;
    text-align: center;
}

.contact-header .illustration-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
    animation: float 6s ease-in-out infinite;
}

/* 主内容区 */
.contact-main {
    padding: 80px 0;
    background: #f8f9fa;
}

.message-success {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-icon {
    flex: 0 0 60px;
    font-size: 36px;
}

.message-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.message-content p {
    opacity: 0.9;
    margin-bottom: 20px;
}

.btn-message {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(255,255,255,0.2);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-message:hover {
    background: white;
    color: #2E7D32;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

/* 联系信息侧边栏 */
.contact-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.contact-card-header {
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    padding: 25px;
}

.contact-card-header h2 {
    font-size: 22px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-card-body {
    padding: 25px;
}

.contact-method {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.contact-method:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-method:first-child {
    padding-top: 0;
}

.method-icon {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.method-content h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.method-content p {
    color: #666;
    margin-bottom: 5px;
    font-size: 14px;
}

.method-note {
    font-size: 12px;
    color: #999;
    display: block;
}

.quick-links {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.quick-links h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li {
    margin-bottom: 12px;
}

.quick-links li:last-child {
    margin-bottom: 0;
}

.quick-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s;
}

.quick-links a:hover {
    background: #f5f5f5;
    color: #8B4513;
}

.quick-links a i {
    width: 20px;
    text-align: center;
}

.social-contact {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.social-contact h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.social-icon {
    flex: 1;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s;
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.social-icon.wechat {
    background: linear-gradient(135deg, #09BB07, #0EB20A);
}

.social-icon.weibo {
    background: linear-gradient(135deg, #E6162D, #D50C22);
}

.social-icon.qq {
    background: linear-gradient(135deg, #12B7F5, #0A9BD5);
}

.social-icon.zhihu {
    background: linear-gradient(135deg, #0084FF, #0066CC);
}

/* 联系表单主区 */
.contact-form-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.form-header {
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    padding: 25px;
}

.form-header h2 {
    font-size: 24px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-header p {
    opacity: 0.9;
    margin: 0;
}

.contact-form {
    padding: 30px;
}

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

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: #8B4513;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B4513;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #f44336;
}

.form-group.has-error input:focus,
.form-group.has-error select:focus,
.form-group.has-error textarea:focus {
    border-color: #f44336;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

.error-message {
    display: block;
    color: #f44336;
    font-size: 13px;
    margin-top: 5px;
}

.textarea-info {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 13px;
}

.char-count {
    color: #666;
}

.hint {
    color: #999;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-submit, .btn-reset {
    flex: 1;
    padding: 18px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit {
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #6B3410, #8B4513);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

.btn-reset {
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
}

.btn-reset:hover {
    background: #f5f5f5;
    border-color: #8B4513;
    color: #8B4513;
}

/* 响应时间卡片 */
.response-time {
    margin-top: 20px;
}

.response-card {
    background: linear-gradient(135deg, #1a237e, #3949ab);
    color: white;
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.response-icon {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.response-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.response-content p {
    opacity: 0.9;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .contact-header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-header .header-illustration {
        flex: 0 0 auto;
        max-width: 300px;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
    }
    
    .contact-quote {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .contact-header .page-title {
        font-size: 36px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .social-icons {
        flex-wrap: wrap;
    }
    
    .social-icon {
        flex: 0 0 calc(50% - 7.5px);
    }
    
    .response-card {
        flex-direction: column;
        text-align: center;
    }
}