



/* ===== 联系我们页面专用样式 ===== */

/* 顶部背景图区域 - 使用网络图片 */
.contact-banner {
    position: relative;
    height: 75vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* 隐藏视频元素，只显示背景图 */
.contact-banner video {
    display: none;
}

/* 联系我们页面横幅内容 */
.contact-banner .banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 5;
    width: 100%;
}

.contact-banner .banner-title {
    font-size: 4em;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.contact-banner .banner-subtitle {
    font-size: 1.8em;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

/* 联系我们页面导航栏初始样式 - 与首页相同，透明背景，白色按钮和logo */
.contact-banner .nav-bar {
    background-color: transparent;
    box-shadow: none;
}

.contact-banner .menu-button {
    color: white;
}

.contact-banner .logo-white {
    display: block;
}

.contact-banner .logo-black {
    display: none;
}

/* 联系我们页面导航栏滚动样式 - 与首页相同 */
.contact-banner .nav-bar.scrolled {
    position: fixed;
    background-color: white;
    align-items: center;
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-banner .nav-bar.scrolled .menu-button {
    color: black;
}

.contact-banner .nav-bar.scrolled .logo-white {
    display: none;
}

.contact-banner .nav-bar.scrolled .logo-black {
    display: block;
}

/* 联系我们内容容器 */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
    background-color: transparent;
}

/* 通用部分标题 */
.section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #4CAF50;
}

/* 第一部分：联系方式 */
.contact-info-section {
    margin-bottom: 100px;
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-location {
    text-align: center;
    max-width: 600px;
    width: 100%;
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.location-title {
    font-size: 2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-detail {
    margin-bottom: 30px;
    padding: 0;
    border: none;
    background-color: transparent;
}

.contact-detail:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 8px;
    font-weight: 300;
    opacity: 0.9;
}

.detail-value {
    font-size: 1.5em;
    color: #333;
    font-weight: normal;
    line-height: 1.4;
}

/* 第二部分：联系表单 */
.contact-form-section {
    background-color: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.form-description {
    font-size: 1.2em;
    color: #666;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 300;
    opacity: 0.9;
    line-height: 1.6;
}

/* 表单样式 */
.contact-form {
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.form-group {
    margin-bottom: 30px;
    background-color: transparent;
    border: none;
    padding: 0;
}

.form-label {
    display: block;
    font-size: 1.1em;
    color: #333;
    margin-bottom: 10px;
    font-weight: 500;
}

.form-label::after {
    content: '*';
    color: #f44336;
    margin-left: 3px;
}

.form-select,
.form-input,
.form-textarea {
    width: 100%;
    padding: 15px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.form-select:focus,
.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

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

/* 表单错误信息 */
.form-error {
    color: #f44336;
    font-size: 0.9em;
    margin-top: 5px;
    min-height: 20px;
}

/* 提交按钮 */
.form-submit {
    text-align: center;
    margin-top: 40px;
}

.submit-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    min-width: 180px;
}

.submit-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

/* 表单消息 */
.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-banner {
        height: 60vh;
    }

    .contact-banner .banner-title {
        font-size: 2.5em;
        margin-bottom: 15px;
    }

    .contact-banner .banner-subtitle {
        font-size: 1.2em;
    }

    .contact-container {
        padding: 60px 15px;
    }

    .section-title {
        font-size: 2em;
        margin-bottom: 40px;
    }

    .location-title {
        font-size: 1.6em;
        margin-bottom: 30px;
    }

    .contact-detail {
        margin-bottom: 25px;
    }

    .detail-label {
        font-size: 1.1em;
    }

    .detail-value {
        font-size: 1.3em;
    }

    .form-description {
        font-size: 1.1em;
        margin-bottom: 40px;
    }

    .form-group {
        margin-bottom: 25px;
    }

    .form-label {
        font-size: 1em;
    }

    .form-select,
    .form-input,
    .form-textarea {
        padding: 12px;
        font-size: 0.95em;
    }

    .submit-btn {
        padding: 12px 30px;
        font-size: 1em;
        min-width: 150px;
    }
}

@media (max-width: 480px) {
    .contact-banner {
        height: 50vh;
    }

    .contact-banner .banner-title {
        font-size: 2em;
    }

    .contact-banner .banner-subtitle {
        font-size: 1em;
    }

    .contact-container {
        padding: 50px 10px;
    }

    .section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .location-title {
        font-size: 1.4em;
        margin-bottom: 25px;
    }

    .contact-detail {
        margin-bottom: 20px;
    }

    .detail-label {
        font-size: 1em;
    }

    .detail-value {
        font-size: 1.2em;
    }

    .form-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-select,
    .form-input,
    .form-textarea {
        padding: 10px;
    }

    .submit-btn {
        padding: 10px 25px;
        font-size: 0.95em;
        min-width: 140px;
    }
}