/* 全局样式重置与变量定义 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "思源黑体", "Inter", sans-serif;
}

:root {
    --primary-color: #073a7c;
    --primary-light: #E8F3FF;
    --primary-gradient: linear-gradient(135deg, #073a7c 0%, #0E48D9 100%);
    --gray-1: #F5F7FA;
    --gray-2: #E5E6EB;
    --gray-3: #86909C;
    --gray-4: #4E5969;
    --white: #FFFFFF;
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-circle: 50%;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

/* 通用样式 */
.container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 clamp(20px, 3vw, 40px);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: clamp(40px, 5vh, 45px);
    padding: 0 clamp(15px, 2vw, 25px);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: clamp(14px, 1.5vw, 16px);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    white-space: nowrap;
}

.primary-btn {
    background: var(--primary-gradient);
    color: var(--white);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.secondary-btn {
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--gray-1);
    transform: translateY(-2px);
}

.admin-btn {
    min-width: clamp(70px, 8vw, 80px);
    background: var(--primary-gradient);
    color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: clamp(40px, 8vh, 80px);
    position: relative;
}

.section-title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: bold;
    color: var(--gray-4);
    margin-bottom: clamp(10px, 1.5vw, 15px);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(40px, 5vw, 60px);
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 3px;
}

.section-desc {
    font-size: clamp(14px, 1.8vw, 18px);
    color: var(--gray-3);
    max-width: min(800px, 90vw);
    margin: 0 auto;
    line-height: 1.6;
    padding: 0 clamp(15px, 2vw, 20px);
}

/* 顶部导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 999;
    background-color: var(--white);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 clamp(15px, 2vw, 20px);
    max-width: 100%;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: clamp(6px, 1vw, 8px);
    text-decoration: none;
    height: 100%;
    margin-left: 5%;
}

.logo img {
    width: clamp(50px, 6vw, 70px);
    height: auto;
    object-fit: contain;
}

.logo-text {
    font-size: clamp(20px, 2.8vw, 28px);
    font-weight: bold;
    color: var(--primary-color);
}

.nav {
    flex: 1;
    display: flex;
    margin-left: 30%;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: clamp(10px, 1.5vw, 15px);
}

.nav-link {
    font-size: clamp(16px, 1.8vw, 20px);
    color: var(--gray-3);
    text-decoration: none;
    padding: 0 clamp(3px, 0.5vw, 5px) clamp(3px, 0.5vw, 5px);
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-item.active .nav-link {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.blue {
    color: var(--primary-color)
}

.btn-group {
    display: flex;
    gap: clamp(10px, 1.5vw, 15px);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: clamp(20px, 3vw, 24px);
    color: var(--primary-color);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hamburger.active {
    transform: rotate(90deg);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: clamp(60px, 8vh, 80px);
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow);
    z-index: 998;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-nav.show {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav-list {
    list-style: none;
    padding: clamp(15px, 3vh, 20px) 0;
}

.mobile-nav-item {
    padding: clamp(8px, 1.5vh, 10px) clamp(15px, 3vw, 20px);
    border-bottom: 1px solid var(--gray-2);
}

.mobile-nav-link {
    display: block;
    font-size: clamp(14px, 1.8vw, 16px);
    color: var(--gray-4);
    text-decoration: none;
    padding: clamp(8px, 1.5vh, 10px) 0;
}

.mobile-nav-link.blue {
    color: var(--primary-color);
}

/* 移动端按钮样式 - 新添加 */
.mobile-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-top: 5px;
    transition: all 0.3s ease;
}

.mobile-primary-btn {
    background: var(--primary-gradient);
    color: var(--white);
}

.mobile-admin-btn {
    background-color: var(--gray-1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

/* 页面主要内容区域 */
.main-content {
    /* margin-top: 80px; */
    /* 为固定导航栏留出空间 */
    padding: 40px 0;
}

/* 表单部分样式 */
.contact-form-section {
    background: linear-gradient(135deg, #f8fbff 0%, #f0f7ff 100%);
    padding: clamp(40px, 8vh, 60px) 0;
    margin-bottom: 60px;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: clamp(30px, 5vw, 50px);
    box-shadow: var(--shadow);
}

.form-header {
    text-align: center;
    margin-bottom: clamp(25px, 4vh, 35px);
}

.form-title {
    font-size: clamp(24px, 3vw, 32px);
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.form-subtitle {
    font-size: clamp(14px, 1.8vw, 18px);
    color: var(--gray-3);
    margin-bottom: 0;
}

/* 表单元素样式 */
.contact-form {
    width: 100%;
}

.form-group {
    margin-bottom: clamp(16px, 2.5vh, 20px);
}

.form-row {
    display: flex;
    gap: clamp(15px, 2vw, 20px);
    margin-bottom: clamp(16px, 2.5vh, 20px);
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    color: var(--gray-4);
    font-size: 14px;
    font-weight: 500;
}

.form-label.required::after {
    content: "*";
    color: #ff4d4f;
    margin-left: 3px;
}

.form-control {
    width: 100%;
    padding: clamp(12px, 2vh, 14px) clamp(12px, 2vw, 16px);
    border: 1px solid var(--gray-2);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(7, 58, 124, 0.1);
}

.form-control::placeholder {
    color: var(--gray-3);
    opacity: 0.7;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234E5969' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: var(--gray-3);
    margin-top: 4px;
}

/* 表单验证样式 */
.form-control.error {
    border-color: #ff4d4f;
}

.error-message {
    color: #ff4d4f;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.error-message.show {
    display: block;
}

/* 成功提示样式 */
.success-message {
    display: none;
    background-color: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #52c41a;
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    text-align: center;
}

.success-message.show {
    display: block;
}

.success-message i {
    margin-right: 8px;
}

/* 表单操作区 */
.form-actions {
    margin-top: clamp(25px, 4vh, 35px);
    text-align: center;
}

.submit-btn {
    min-width: 180px;
    height: clamp(45px, 6vh, 50px);
    font-size: clamp(16px, 2vw, 18px);
    font-weight: 500;
    gap: 8px;
}

.submit-btn i {
    font-size: 16px;
}

/* 表单底部提示 */
.form-footer {
    margin-top: clamp(20px, 3vh, 25px);
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid var(--gray-2);
}

.form-tip {
    font-size: 13px;
    color: var(--gray-3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.form-tip i {
    color: var(--primary-color);
}

/* 其他页面内容区域 */
.section {
    padding: clamp(40px, 8vh, 60px) 0;
}

/* 底部信息区 */
.footer {
    background-color: #2D3039;
    color: #B0B3B8;
    padding: 20px 0;
    font-size: 12px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.copyright-text {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
}

.police-icon {
    height: 16px;
    vertical-align: middle;
}

.footer-link {
    color: #B0B3B8;
    text-decoration: none;
}

.footer-link:hover {
    color: #409EFF;
}

.map-links {
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header .container {
        padding: 0 15px;
    }

    .btn-group {
        gap: 10px;
    }

    .btn {
        padding: 0 15px;
        font-size: 14px;
    }

    .hamburger {
        display: block;
    }

    .nav {
        display: none;
    }

    .btn-group {
        display: none;
    }

    .main-content {
        margin-top: 60px;
        padding: 20px 0;
    }

    .contact-form-section {
        padding: 30px 0;
        margin-bottom: 30px;
    }

    .form-container {
        padding: 20px;
        margin: 0 15px;
    }

    .form-row {
        flex-direction: column;
        gap: 16px;
    }

    .submit-btn {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .logo {
        margin-left: 0;
    }

    .logo-text {
        font-size: 20px;
    }

    .form-container {
        padding: 15px;
        margin: 0 10px;
    }

    .form-title {
        font-size: 22px;
    }
}