.contact-hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
    text-align: center;
    background-color: #E0F0F8;
}

.contact-hero canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-text {
    position: relative;
    z-index: 2;
    border-radius: 12px;
    color: black;
}
.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 0.8rem;
}

.hero-text p {
    font-size: 1.2rem;
}
.hero-image {
    position: absolute;
    bottom: -7px;
    left: 0;
    z-index: 2;
}

.scroll-btn {
    margin-top: 2rem;
    padding: 0.8rem 2rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.15);
    color: black;
    border: 1px solid black;
    border-radius: 40px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.scroll-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* 主体 */
.contact-section {
    background: #f6f8fa;
    padding: 4rem 2rem;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* 左侧联系方式 */
.contact-info {
    flex: 1 1 350px;
}

.contact-info h2 {
    margin-bottom: 1rem;
    color: #003366;
}

.contact-info a {
    color: #0077cc;
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contact-info .location {
    margin-bottom: 1.5rem;
}

.contact-info .location h4 {
    margin: 0.2rem 0;
    color: #005288;
}

/* 右侧表单 */
.contact-form {
    flex: 1 1 450px;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.contact-title {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-form h2 {
    margin: 0;
    margin-bottom: 1.5rem;
    color: #004080;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 0.8rem 0.8rem 2.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: transparent;
    font-size: 0.9rem;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    font-size: 0.01rem;
    color: #aaa;
}

.form-group label {
    position: absolute;
    top: 10px;
    left: 1.8rem;
    background: #fff;
    padding: 0 4px;
    font-size: 0.9rem;
    color: #777;
    transition: 0.2s;
    pointer-events: none;
}

/* 图标样式 */
.form-group i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1rem;
    transition: 0.2s ease;
}

/* 输入聚焦 或 有文字时：图标隐藏 + label 浮动 */
.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label {
    top: -10px;
    left: 8px;
    font-size: 0.8rem;
    color: #004080;
}

.form-group textarea {
    width: 100%;
    padding: 0.8rem 0.8rem 0.8rem 2.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: transparent;
    font-size: 1rem;
    outline: none;
}

.form-group.textarea-group i {
    top: 1rem;
    transform: none;
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
    top: -10px;
    left: 8px;
    font-size: 0.8rem;
    color: #004080;
}

/* 表单按钮 */
.form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

button.clear {
    background: #ccc;
    color: #333;
}

button.submit {
    background: #0077cc;
    color: white;
}

button {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

button:hover {
    opacity: 0.9;
}

.contact-note {
    background-color: #f0f4f8;
    padding: 1rem 1.5rem;
    border-left: 4px solid #004080;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #004080;
    margin-top: 4.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.contact-note em {
    font-style: italic;
    font-size: 20px;
    font-weight: 500;
    display: block;
    line-height: 1.6;
}