/* 联系我们区样式 */
.contact-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 8rem 1rem 10rem;
    background: linear-gradient(to bottom, 
        #6B46C1 0%,      /* 顶部深紫色 */
        #8B5CF6 20%,     /* 浅紫色 */
        #A78BFA 40%,     /* 更浅的紫色 */
        #C4B5FD 50%,     /* 浅紫色过渡 */
        #93C5FD 60%,    /* 中间一点蓝色 */
        #A78BFA 70%,    /* 回到紫色 */
        #8B5CF6 85%,     /* 紫色 */
        #7C3AED 100%    /* 底部深紫色 */
    );
    overflow: hidden;
}

.contact-star-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.contact-container {
    max-width: 80rem;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.contact-header-mascot {
    position: absolute;
    right: 0;
    top: 0;
    transform: translateX(-1rem) translateY(-1rem);
    display: none;
    z-index: 20;
}

@media (min-width: 768px) {
    .contact-header-mascot {
        display: block;
    }
}

.contact-header-mascot img {
    width: 12rem;
    height: 12rem;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    animation: bounce-slow 3s infinite;
}

@media (min-width: 1024px) {
    .contact-header-mascot img {
        width: 14rem;
        height: 14rem;
    }
}

.contact-header-mascot-mobile {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .contact-header-mascot-mobile {
        display: none;
    }
}

.contact-header-mascot-mobile img {
    width: 10rem;
    height: 10rem;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.contact-title {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.025em;
}

@media (min-width: 768px) {
    .contact-title {
        font-size: 2.5rem;
    }
}

.contact-subtitle {
    font-size: 1.125rem;
    color: rgba(219, 234, 254, 1);
    font-weight: 500;
}

@media (min-width: 768px) {
    .contact-subtitle {
        font-size: 1.25rem;
    }
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s;
    position: relative;
    overflow: visible;
}

.contact-card:hover {
    transform: scale(1.05);
}

.contact-card-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: #DBEAFE;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563EB;
    flex-shrink: 0;
}

.contact-card-icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.contact-card-content h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1E3A8A;
    margin-bottom: 0.25rem;
}

.contact-card-content p {
    color: #2563EB;
    font-weight: 500;
}

.contact-card-mascot {
    position: absolute;
    right: 0;
    bottom: 0;
    transform: translateY(0.5rem) translateX(0.5rem);
}

.contact-card-mascot img {
    width: 7rem;
    height: 7rem;
    object-fit: contain;
}

.contact-form {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    display: none;
}

@media (min-width: 768px) {
    .contact-form {
        display: block;
    }
}

.contact-form-mobile {
    display: block;
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .contact-form-mobile {
        display: none;
    }
}

.contact-form-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1E3A8A;
    margin-bottom: 1.5rem;
}

.contact-form-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-form-input {
    width: 100%;
    background: #DBEAFE;
    border: none;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: #1E3A8A;
    outline: none;
    transition: all 0.3s;
}

.contact-form-input::placeholder {
    color: #93C5FD;
}

.contact-form-input:focus {
    ring: 2px;
    ring-color: #60A5FA;
}

.contact-form-row {
    display: flex;
    gap: 1rem;
}

.contact-form-submit {
    background: #A78BFA;
    color: white;
    font-weight: bold;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form-submit:hover {
    background: #8B5CF6;
}

.contact-form-submit-full {
    width: 100%;
}

.contact-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .contact-right {
        height: 100%;
    }
}

.contact-map-card {
    background: white;
    padding: 0.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    min-height: 24rem;
    width: 100%;
}

@media (min-width: 768px) {
    .contact-map-card {
        flex: 1;
        height: auto;
        min-height: 25rem;
    }
}

.contact-map-bg {
    position: absolute;
    inset: 0.5rem;
    border-radius: 1rem;
    background: #E0F2FE;
    overflow: hidden;
}

.contact-map-pin {
    position: absolute;
    top: 33.333%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FACC15;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    animation: bounce 2s infinite;
}

.contact-map-pin svg {
    width: 3.75rem;
    height: 3.75rem;
    fill: #FACC15;
}

.contact-map-address {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    z-index: 10;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.contact-map-address h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1E3A8A;
    margin-bottom: 0.25rem;
}

.contact-map-address p {
    color: #1E40AF;
    font-weight: 500;
    font-size: 1.125rem;
}

.contact-map-address .contact-map-address-sub {
    color: #93C5FD;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.contact-map-mascot {
    position: absolute;
    top: 25%;
    right: 0;
    transform: translateX(0.5rem);
    z-index: 20;
}

.contact-map-mascot img {
    width: 10rem;
    height: 10rem;
    object-fit: contain;
}

@media (min-width: 768px) {
    .contact-map-mascot img {
        width: 13rem;
        height: 13rem;
    }
}

.contact-bottom-mascot {
    position: absolute;
    bottom: -2.5rem;
    right: -2.5rem;
    transform: rotate(-12deg);
    pointer-events: none;
    display: none;
}

@media (min-width: 768px) {
    .contact-bottom-mascot {
        display: block;
    }
}

.contact-bottom-mascot img {
    width: 16rem;
    height: 16rem;
    object-fit: contain;
}

.contact-bottom-mascot-mobile {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .contact-bottom-mascot-mobile {
        display: none;
    }
}

.contact-bottom-mascot-mobile img {
    width: 10rem;
    height: 10rem;
    object-fit: contain;
}

.contact-bottom-text {
    margin-top: 2rem;
    text-align: right;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    display: none;
}

@media (min-width: 768px) {
    .contact-bottom-text {
        display: block;
        padding-right: 10rem;
    }
}

.contact-bottom-text p {
    margin-bottom: 0.25rem;
}

@keyframes bounce {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-10px);
    }
}

@keyframes bounce-slow {
    0%, 100% {
        transform: translateX(-1rem) translateY(-1rem) translateY(0);
    }
    50% {
        transform: translateX(-1rem) translateY(-1rem) translateY(-10px);
    }
}

