/* 基础样式 */
body {
    font-family: 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: #1a5276;
    color: white;
}

.btn-primary:hover {
    background-color: #154360;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1a5276;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #333;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1a5276;
    transition: width 0.3s;
}

.nav-links a:hover:after,
.nav-links a.active:after {
    width: 100%;
}

.nav-links a.active {
    color: #1a5276;
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px;
    transition: all 0.3s ease;
}

/* 页脚 */
.footer {
    background-color: #1a5276;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: white;
}

.footer-section.contact-form h3 {
    color: white;
}

.footer-section.contact-form h3 {
    color: white;
}

.footer-section.about p {
    margin-bottom: 20px;
}

.footer-section.about .contact p {
    margin-bottom: 10px;
}

.footer-section.links ul li {
    margin-bottom: 10px;
}

.footer-section.links ul li a {
    transition: color 0.3s;
}

.footer-section.links ul li a:hover {
    color: #ddd;
}

.footer-section.contact-form .contact-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 4px;
}

.footer-section.contact-form textarea.contact-input {
    height: 100px;
    resize: vertical;
}

.footer-section.contact-form .btn {
    background-color: #ffffff;
    color: #1a5276;
    border: 2px solid #ffffff;
    transition: all 0.3s ease;
}

.footer-section.contact-form .btn:hover {
    background-color: #1a5276;
    color: #ffffff;
    border-color: #ffffff;
}

.footer-section.contact-form .btn {
    background-color: #ffffff;
    color: #1a5276;
    border: 2px solid #ffffff;
    transition: all 0.3s ease;
}

.footer-section.contact-form .btn:hover {
    background-color: #1a5276;
    color: #ffffff;
    border-color: #ffffff;
}

.footer-section.contact-form .btn {
    background-color: #ffffff;
    color: #1a5276;
    border: 2px solid #ffffff;
    transition: all 0.3s ease;
}

.footer-section.contact-form .btn:hover {
    background-color: #1a5276;
    color: #ffffff;
    border-color: #ffffff;
}

.footer-section.contact-form .btn {
    background-color: #ffffff;
    color: #1a5276;
    border: 2px solid #ffffff;
    transition: all 0.3s ease;
}

.footer-section.contact-form .btn:hover {
    background-color: #1a5276;
    color: #ffffff;
    border-color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #333;
}

.modal h2 {
    color: #1a5276;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .navbar .container {
        height: 70px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .navbar {
        position: fixed;
        top: 0;
    }
    
    .burger {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        right: 0;
        top: 70px;
        background-color: rgba(255, 255, 255, 0.95);
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        transform: translateY(-150%);
        -webkit-transform: translateY(-150%);
        transition: transform 0.5s ease;
        -webkit-transition: transform 0.5s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .nav-active {
        transform: translateY(0%);
        -webkit-transform: translateY(0%);
    }
    
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
        -webkit-transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .toggle .line2 {
        opacity: 0;
    }
    
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
        -webkit-transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 90%;
        margin: 20% auto;
    }
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 工具类 */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.py-50 {
    padding-top: 50px;
    padding-bottom: 50px;
}