/* 加入我们页面样式 */

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.joinus-section {
    padding: 6rem 0 5rem;
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    min-height: calc(100vh - 200px);
    position: relative;
    z-index: 1;
}

.joinus-intro {
    text-align: center;
    color: var(--text-on-dark-light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.joinus-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.joinus-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background-color: var(--bg-card);
    border: 1px solid rgba(0, 200, 83, 0.2);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.info-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 200, 83, 0.1);
}

.info-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-list h4 {
    font-size: 1.2rem;
    color: var(--text-on-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-list p {
    color: var(--text-on-dark-light);
    line-height: 1.7;
    font-size: 1rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-item p {
    color: var(--text-on-dark-light);
    font-size: 1rem;
}

.contact-qrcode {
    margin-top: 0.5rem;
}

.qrcode-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 1rem;
}

.qrcode-img {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    border: 2px solid rgba(0, 200, 83, 0.3);
    padding: 8px;
    background-color: var(--white);
    box-shadow: var(--shadow), var(--shadow-glow);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease;
    opacity: 0;
}

.qrcode-img.loaded {
    opacity: 1;
}

.qrcode-img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg), 0 0 25px rgba(0, 200, 83, 0.4);
    border-color: rgba(0, 200, 83, 0.5);
}

.joinus-form {
    background-color: var(--bg-card);
    border: 1px solid rgba(0, 200, 83, 0.2);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.joinus-form h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-intro {
    color: var(--text-on-dark-light);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: var(--text-on-dark);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.required-mark {
    color: #ef4444;
    font-weight: bold;
    margin-left: 2px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(0, 200, 83, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--bg-card-light);
    color: var(--text-on-dark);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-on-dark-light);
    opacity: 0.7;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input.error:focus,
.form-group textarea.error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.error-message {
    display: none;
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    line-height: 1.4;
}

.file-label {
    display: block;
    color: var(--text-on-dark);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.file-label span {
    display: block;
    margin-bottom: 0.5rem;
}

.file-label input[type="file"] {
    width: 100%;
    padding: 0.8rem;
    border: 2px dashed rgba(0, 200, 83, 0.3);
    border-radius: 8px;
    background-color: var(--bg-card-light);
    color: var(--text-on-dark);
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 0.9rem;
}

.file-label input[type="file"]:hover {
    border-color: rgba(0, 200, 83, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.1);
}

.file-label input[type="file"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.2);
}

.joinus-form .btn {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .joinus-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .qrcode-container {
        justify-content: center;
    }

    .qrcode-img {
        width: 160px;
        height: 160px;
    }

    .info-card,
    .joinus-form {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .joinus-section {
        padding: 5rem 0 3rem;
    }

    .joinus-intro {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .info-card,
    .joinus-form {
        padding: 1.5rem;
    }

    .info-card h3,
    .joinus-form h3 {
        font-size: 1.5rem;
    }

    .qrcode-img {
        width: 140px;
        height: 140px;
    }
}