* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

.contact-nav {
    position: relative;
    background: url('../img/service-header.png') no-repeat center center;
    background-size: cover;
    padding: 20px 0;
    z-index: 1000;
}

.contact-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.contact-nav .container {
    position: relative;
    z-index: 1;
}

.contact-nav .navbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    position: relative;
}

.contact-nav .navbar-nav {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
}

.contact-nav .navbar-nav li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    position: relative;
}

.contact-nav .navbar-nav li a:hover {
    color: #ffc107;
}

.contact-nav .navbar-nav li a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #ffc107;
    transition: width 0.3s;
}

.contact-nav .navbar-nav li.active a::after {
    width: 40px;
}

.contact-nav .navbar-nav li.active a {
    color: #ffc107;
}

.contact-nav .navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.contact-nav .navbar-toggle .toggle-bar {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}
.footer {
    position: relative; 
}
.contact-header {
    color: #fff;
    text-align: center;
    position: relative;
    padding: 80px 0 60px;
    z-index: 1;
}

.contact-header h1 {
    font-size: 42px;
    letter-spacing: 6px;
    margin-bottom: 15px;
    padding-left: 20vw;
    text-align: left;
}

.contact-header p {
    font-size: 30px;
    opacity: 0.9;
    color: #fff;
    letter-spacing: 2px;
    padding-left: 30vw;
    text-align: left;
}

.contact-intro {
    padding: 60px 30px 300px 30px;
    background: #fff;
    text-align: center;
}

.contact-intro h2 {
    font-size: 22px;
    color: #999;
    font-weight: 400;
    margin-bottom: 20px;
}

.contact-intro p {
    font-size: 16px;
    color: #888;
    line-height: 1.8;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-box {
    display: grid;
    grid-template-columns: 3fr 4fr;
    gap: 0;
    background: #fff;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 70%;
    margin: -320px auto 30px;
    position: relative;
    z-index: 2;
}

.contact-info-section {
    padding: 50px 40px;
    background: #fff;
    border-right: 1px solid #e8e8e8;
}

.contact-form-section {
    padding: 50px 40px;
    background: #fff;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.section-title .line {
    flex: 1;
    height: 1px;
    background: #003561;
    max-width: 40px;
}

.section-title .line:first-child {
    margin-left: 0;
}

.section-title .line:last-child {
    margin-right: auto;
}

.section-title .title-text {
    font-size: 14px;
    color: #003561;
    font-weight: 800;
    letter-spacing: 2px;
}

.section-subtitle-line {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    margin-bottom: 30px;
}

.section-subtitle-line .line {
    flex: 1;
    height: 1px;
    background: #003561;
    max-width: 40px;
}

.section-subtitle {
    font-size: 14px;
    color: #003561;
    font-weight: 800;
    letter-spacing: 2px;
}

.contact-info-section .section-subtitle {
    margin-bottom: 0;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.contact-list li {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.6;
}

.contact-icon-label {
    color: #555;
    margin-right: 5px;
}

.contact-qr {
    text-align: center;
    padding-top: 20px;
}

.contact-qr img {
    width: 120px;
    height: 120px;
    background: #fff;
    padding: 5px;
    border: 1px solid #eee;
}

.contact-qr p {
    font-size: 12px;
    color: #111;
    margin-top: 1px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #003561;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(0, 53, 97, 0.1);
}

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

.submit-btn {
    background: #003561;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
    margin-top: 10px;
}
.footer-bottom {
    margin-top: 10px;
}
.submit-btn:hover {
    background: #005594;
}

@media (max-width: 992px) {
    .contact-box {
        width: 90%;
        margin: -80px auto 60px;
    }

    .contact-intro {
        padding-bottom: 150px;
    }

    .contact-header h1 {
        font-size: 36px;
        padding-left: 15vw;
    }

    .contact-header p {
        font-size: 22px;
        padding-left: 20vw;
    }
}

@media (max-width: 768px) {
    .contact-nav .navbar {
        flex-wrap: wrap;
    }

    .contact-nav .navbar-toggle {
        display: flex;
    }

    .contact-nav .navbar-nav {
        display: none;
        flex-direction: column;
        width: auto;
        gap: 0;
        background: rgba(0, 53, 97, 0.95);
        padding: 15px 0;
        position: absolute;
        top: calc(100% + 5px);
        right: 10px;
        border-radius: 8px;
        min-width: 150px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        z-index: 1001;
    }

    .contact-nav .navbar-nav.active {
        display: flex;
    }

    .contact-nav .navbar-nav li {
        text-align: center;
        padding: 10px 20px;
    }

    .contact-nav .navbar-nav li a {
        display: block;
        font-size: 16px;
        padding: 5px 0;
    }

    .contact-nav .navbar-toggle.active .toggle-bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .contact-nav .navbar-toggle.active .toggle-bar:nth-child(2) {
        opacity: 0;
    }

    .contact-nav .navbar-toggle.active .toggle-bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .contact-header h1 {
        font-size: 28px;
        letter-spacing: 4px;
        padding-left: 10vw;
        text-align: center;
    }

    .contact-header p {
        font-size: 18px;
        padding-left: 0;
        text-align: center;
    }

    .contact-box {
        grid-template-columns: 1fr;
        gap: 0;
        width: 95%;
        margin: -100px auto 40px;
    }

    .contact-info-section {
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
        padding: 30px 25px;
    }

    .contact-form-section {
        padding: 30px 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .submit-btn {
        max-width: 100%;
    }

    .contact-intro {
        padding-bottom: 120px;
    }

    .contact-intro h2 {
        font-size: 18px;
    }

    .contact-intro p {
        font-size: 14px;
    }

    .section-title {
        justify-content: center;
    }

    .section-subtitle-line {
        justify-content: center;
    }

    .contact-qr img {
        width: 100px;
        height: 100px;
    }
}
