* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}

:root {
    --primary-color: #0F3460;
    --secondary-color: #E94560;
    --light-color: #F5F9FF;
    --dark-color: #1A1A2E;
    --gray-color: #666666;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: #333;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 导航栏样式 */
header {
    width: 100%;
    background: var(--primary-color);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}

.logo span {
    color: var(--secondary-color);
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list li a {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-list li a:hover {
    color: var(--secondary-color);
}

/* 页脚样式 */
footer {
    background: var(--dark-color);
    color: #fff;
    padding: 50px 0 20px;
}

.footer-wrap {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.footer-logo h2 span {
    color: var(--secondary-color);
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-nav h4,
.footer-contact h4 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-nav h4::after,
.footer-contact h4::after {
    content: "";
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
    position: absolute;
    bottom: 0;
    left: 0;
}

.footer-nav ul li {
    margin-bottom: 10px;
}

.footer-nav ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-nav ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    line-height: 1.6;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.copyright a {
    color: rgba(255, 255, 255, 0.7);
}

.copyright a:hover {
    color: var(--secondary-color);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .nav-list {
        gap: 15px;
    }

    .nav-list li a {
        font-size: 14px;
    }

    .logo {
        font-size: 18px;
    }

    .footer-wrap {
        grid-template-columns: 1fr;
    }
}
