/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

:root {
    --primary-color: #0a4b78;
    --secondary-color: #0d61a6;
    --accent-color: #1e88e5;
    --light-color: #f5f7fa;
    --dark-color: #333;
    --gray-color: #666;
    --light-blue: #e3f2fd;
}

body {
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto 0;
}

h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    color: white;
}

/* 导航栏样式 */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}


.nav-links ul {
    display: flex;
    list-style: none;
}

.nav-links ul li {
    margin-left: 30px;
}

.nav-links ul li a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
}
.nav-links ul li a:hover{
	color: var(--primary-color);
}

.nav-links.nav-links ul li a.active {
    color: var(--primary-color);
}

.nav-links ul li a.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    position: absolute;
    bottom: -5px;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 关于我们样式 */
.about {
    padding: 80px 0;
    background: var(--light-color);
}

.about-content {
	margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 a {
	font-size: 1rem;
}

.about-images {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-images img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-images img:hover {
    transform: translateY(-5px);
}

/* 联系我们样式 */
.contact {
    padding: 80px 0;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info ul {
    list-style: none;
    margin-top: 20px;
}

.contact-info ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-info ul li i {
    color: var(--accent-color);
    margin-right: 15px;
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-blue);
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

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

.form-group-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(30, 136, 229, 0.2);
}

/* 页脚样式 */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo,
.footer-links,
.footer-contact {
    flex: 1;
    min-width: 250px;
}

.footer-logo h2 {
    color: white;
    margin-bottom: 15px;
}

.footer-logo h2::after {
    display: none;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links h3,
.footer-contact h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links ul li a:hover {
    color: white;
}

.footer-contact ul {
    list-style: none;
}

.footer-contact ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-contact ul li i {
    margin-right: 15px;
    margin-top: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}
 /* 返回顶部按钮样式 */
        #back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background-color: #3498db;
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
            opacity: 0;
            visibility: hidden;
            z-index: 1000;
            border: none;
        }
        
        #back-to-top.show {
            opacity: 1;
            visibility: visible;
        }
        
        #back-to-top:hover {
            background-color: #2980b9;
            transform: translateY(-5px);
        }
/* 响应式样式 */
@media (max-width: 992px) {
    .hero-content h2 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links ul {
        flex-direction: column;
        text-align: center;
    }

    .nav-links ul li {
        margin: 15px 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .footer-content {
        flex-direction: column;
    }
}

/* 滚动动画 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 表单提交成功消息 */
.form-success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    display: none;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}
