/* Contact Page Styles */

.contact-hero {
    padding: 140px 24px 60px;
    text-align: center;
    position: relative;
}

.contact-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 100% 80% at 50% 0%, rgba(99, 102, 241, 0.15), transparent);
}

.contact-hero-container {
    position: relative;
    z-index: 1;
}

.contact-hero h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 16px;
}

.contact-hero p {
    font-size: 18px;
    color: var(--text-secondary);
}

/* Contact Main */
.contact-main {
    background: var(--bg-card);
}

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

/* Form Section */
.contact-form-section {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
}

.form-header {
    margin-bottom: 32px;
}

.form-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

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

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

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

.form-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-input,
.form-textarea {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 15px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

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

.form-submit {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 10px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    margin-top: 10px;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

/* Info Section */
.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
}

.info-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    gap: 14px;
}

.info-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.info-content p {
    font-size: 15px;
    margin-bottom: 4px;
}

.info-note {
    font-size: 12px;
    color: var(--text-muted);
}

/* Quick Contact */
.quick-contact {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
}

.quick-contact h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.quick-btns {
    display: flex;
    gap: 12px;
}

.quick-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-btn.mail {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.quick-btn.chat {
    background: var(--success);
    color: white;
}

.quick-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Working Hours */
.working-hours {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
}

.working-hours h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 10px 14px;
    background: var(--bg-card);
    border-radius: 8px;
}

.hours-item span:first-child {
    color: var(--text-secondary);
}

.hours-item span:last-child {
    color: var(--text-primary);
    font-weight: 600;
}

/* FAQ */
.faq-section {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.03), transparent);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.faq-icon {
    font-size: 24px;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

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

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* Success Modal */
.success-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.success-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 48px;
    text-align: center;
    max-width: 400px;
}

.success-icon {
    width: 70px;
    height: 70px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    margin: 0 auto 24px;
}

.success-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.success-content p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 24px;
}

/* 线性图标尺寸 */
.info-icon {
    color: #fff;
}

.info-icon .ico {
    width: 22px;
    height: 22px;
}

.quick-btn .ico {
    width: 18px;
    height: 18px;
}

.success-icon .ico {
    width: 34px;
    height: 34px;
    stroke-width: 2.4;
}

/* Responsive */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info-section {
        order: -1;
    }
}

@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 32px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .quick-btns {
        flex-direction: column;
    }

    .contact-form-section,
    .info-card,
    .quick-contact,
    .working-hours {
        padding: 24px;
    }
}