/* ===== 新增：联系我们页面样式 ===== */

/* 页面标题区 */
.page-header {
    padding: 32px 0 20px;
    background: white;
    border-bottom: 1px solid #eef2f7;
}

.breadcrumb {
    font-size: 0.85rem;
    color: #6b7f99;
    margin-bottom: 12px;
}

.breadcrumb a {
    color: #0071c5;
    text-decoration: none;
}

.breadcrumb i {
    margin: 0 8px;
    font-size: 0.6rem;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0b1e33;
    margin-bottom: 8px;
}

.page-desc {
    color: #4d627a;
    font-size: 1rem;
    max-width: 600px;
}

/* ===== 联系信息卡片（3列） ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 20px 0 40px;
}

.contact-card {
    background: white;
    border-radius: 20px;
    padding: 32px 24px 28px;
    border: 1px solid #eef2f7;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 60, 120, 0.08);
    border-color: #cbd9e9;
}

.contact-card.featured {
    border-color: #ffb81c;
    background: #fffcf0;
}

.contact-icon {
    width: 72px;
    height: 72px;
    background: #e7f0fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #0071c5;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    background: #0071c5;
    color: white;
    transform: scale(1.05);
}

.contact-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0b1e33;
    margin-bottom: 12px;
}

.contact-detail {
    font-size: 0.95rem;
    color: #1f3349;
    margin-bottom: 4px;
    font-weight: 500;
}

.contact-detail i {
    color: #0071c5;
    margin-right: 6px;
    width: 18px;
}

.contact-desc {
    font-size: 0.85rem;
    color: #6b7f99;
    margin: 12px 0 16px;
    line-height: 1.5;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 24px;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0071c5;
    background: #e7f0fa;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.contact-btn:hover {
    background: #0071c5;
    color: white;
}

/* ===== 社交媒体按钮 ===== */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 8px 0 12px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
    color: white;
}

.social-btn i {
    font-size: 0.95rem;
}

.social-btn.bilibili {
    background: #fb7299;
}

.social-btn.bilibili:hover {
    background: #e65c82;
    transform: scale(1.05);
}

.social-btn.douyin {
    background: #000000;
}

.social-btn.douyin:hover {
    background: #1a1a1a;
    transform: scale(1.05);
}

.social-btn.github {
    background: #24292e;
}

.social-btn.github:hover {
    background: #1a1d21;
    transform: scale(1.05);
}

.social-btn.wechat {
    background: #07c160;
}

.social-btn.wechat:hover {
    background: #06ad56;
    transform: scale(1.05);
}

.social-btn.youtube {
    background: #ff0000;
}

.social-btn.youtube:hover {
    background: #e60000;
    transform: scale(1.05);
}

.social-btn.zhihu {
    background: #0084ff;
}

.social-btn.zhihu:hover {
    background: #0077e6;
    transform: scale(1.05);
}

/* ===== 联系表单 ===== */
.contact-form-section {
    margin: 40px 0 50px;
}

.form-wrapper {
    background: white;
    border-radius: 24px;
    padding: 40px 48px;
    border: 1px solid #eef2f7;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.form-header {
    margin-bottom: 32px;
}

.form-header .section-title {
    margin-bottom: 4px;
}

.contact-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group.full-width {
    flex: 0 0 100%;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f3349;
    margin-bottom: 6px;
}

.form-group label i {
    color: #6b7f99;
    margin-right: 6px;
    width: 16px;
}

.required {
    color: #ff6b6b;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #dce3ec;
    font-size: 0.9rem;
    color: #1f3349;
    background: #fafbfc;
    transition: all 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0071c5;
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 113, 197, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7f99' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

/* 复选框 */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #0071c5;
    cursor: pointer;
    flex-shrink: 0;
}

.form-check label {
    font-size: 0.85rem;
    font-weight: 400;
    color: #4d627a;
    cursor: pointer;
    margin-bottom: 0;
}

.form-check label a {
    color: #0071c5;
    text-decoration: none;
}

.form-check label a:hover {
    text-decoration: underline;
}

/* 表单按钮 */
.form-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-top: 8px;
}

.submit-btn {
    padding: 12px 40px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    background: #0071c5;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.submit-btn:hover {
    background: #005a9e;
    transform: scale(1.02);
}

.submit-btn:active {
    transform: scale(0.98);
}

.reset-btn {
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    background: #f0f3f8;
    color: #4d627a;
    border: 1px solid #dce3ec;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.reset-btn:hover {
    background: #e3ecf5;
    color: #1f3349;
}

/* ===== FAQ 常见问题 ===== */
.faq-section {
    margin: 40px 0 60px;
}

.faq-header {
    margin-bottom: 28px;
}

.faq-header .section-title {
    margin-bottom: 4px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.faq-item {
    background: white;
    border-radius: 16px;
    border: 1px solid #eef2f7;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #cbd9e9;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question i:first-child {
    color: #0071c5;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.faq-question h4 {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
    color: #0b1e33;
    margin: 0;
}

.faq-toggle {
    color: #6b7f99;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 20px 16px;
}

.faq-answer p {
    font-size: 0.9rem;
    color: #4d627a;
    line-height: 1.6;
    margin: 0;
}

.faq-answer a {
    color: #0071c5;
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
        gap: 16px;
    }

    .form-wrapper {
        padding: 28px 24px;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-card {
        padding: 24px 16px;
    }

    .social-links {
        gap: 6px;
    }

    .social-btn {
        font-size: 0.7rem;
        padding: 4px 12px;
    }

    .form-wrapper {
        padding: 20px 16px;
    }

    .form-actions {
        flex-direction: column;
    }

    .submit-btn,
    .reset-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .contact-card h3 {
        font-size: 1rem;
    }

    .contact-detail {
        font-size: 0.85rem;
    }

    .faq-question {
        padding: 12px 16px;
    }

    .faq-question h4 {
        font-size: 0.85rem;
    }
}