body {
    line-height: 1.6;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
    text-align: center;
}

.btn-primary {
    background: var(--gradient);
    color: #000;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 209, 178, 0.3);
}

.btn-primary:after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.btn-primary:hover:after {
    left: 100%;
}

.btn-outline {
    border: 2px solid rgba(0, 209, 178, 0);
    color: rgba(0, 209, 178, 0);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(0, 209, 178, 0);
    color: rgba(0, 209, 178, 0);
    box-shadow: rgba(0, 209, 178, 0);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 20px;
}

.contact-page {
    min-height: 100vh;
    padding: 8rem 0 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    height: 100%;
    max-height: 85vh;
}

.contact-title {
    font-size: 2.8rem;
    font-weight: 800;
    background: #151515;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: var(--light-gray);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.info-cards {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid #adacac;
    transition: all 0.3s ease;
    cursor: pointer;
}

.info-card:hover {
    border-color: var(--primary);
    transform: translateX(10px);
}

.info-icon {
    font-size: 2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 209, 178, 0.15), rgba(106, 90, 205, 0.15));
    border-radius: 12px;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #151515;
    margin-bottom: 0.3rem;
}

.info-content p {
    font-size: 0.9rem;
    color: var(--light-gray);
    margin: 0;
}

.contact-form-wrapper {
    background: rgba(231, 241, 255);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    height: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    height: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--light);
}

.required {
    color: #ff6b6b;
    margin-left: 0.3rem;
}

.form-input,
.form-textarea,
.form-select {
    padding: 0.9rem 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #151515;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
}

/* 错误状态 - 红色边框 */
.form-input.error,
.form-textarea.error,
.form-select.error {
    border-color: #ff4d4f;
    box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #777;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--primary);
}

.form-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300D1B2' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.form-select:focus {
    border-color: var(--primary);
    background-color: rgba(0, 209, 178, 0.02);
}

.form-select option {
    background: #fff;
    color: var(--dark);
    padding: 0.8rem;
}

.form-textarea {
    resize: none;
    min-height: 80px;
    max-height: 80px;
    flex-shrink: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.submit-btn {
    margin-top: auto;
    padding: 1.1rem 2rem;
    background: var(--gradient);
    border: none;
    border-radius: 30px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.submit-btn:hover {
    transform: translateY(-3px);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-arrow {
    transform: translateX(5px);
}

@media (max-width: 1024px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        max-height: none;
    }

    .contact-page {
        height: auto;
        min-height: 100vh;
        padding: 6rem 0 3rem;
        overflow-y: auto;
    }

    .contact-title {
        font-size: 2.2rem;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 2rem;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .contact-page {
        padding: 5rem 1rem 2rem;
    }

    .contact-title {
        font-size: 1.8rem;
    }

    .contact-subtitle {
        font-size: 0.95rem;
    }

    .info-card {
        padding: 0.9rem;
    }

    .info-icon {
        width: 45px;
        height: 45px;
        font-size: 1.6rem;
    }

    .info-content h4 {
        font-size: 0.9rem;
    }

    .info-content p {
        font-size: 0.85rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .form-input,
    .form-textarea,
    .form-select {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .submit-btn {
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }
}

@media (min-width: 1025px) and (max-width: 1440px) {
    .contact-container {
        gap: 3rem;
    }

    .contact-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 1921px) {
    .contact-container {
        max-height: 90vh;
        gap: 5rem;
    }

    .contact-title {
        font-size: 3.2rem;
    }

    .contact-form-wrapper {
        padding: 3rem;
    }
}
