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

html, body {
    height: 100%;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background-color: #f5f5f5;
    color: #333;
    display: flex;
    flex-direction: column;
}

/* 页面主体撑满剩余空间，确保页脚在底部 */
.page-wrap {
    flex: 1 0 auto;
}

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

img {
    display: block;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

/* ===== 顶部导航 ===== */
.header {
    background-color: #1a1a2e;
    color: #fff;
    padding: 0;
}

.header-top {
    background-color: #111124;
    height: 36px;
    line-height: 36px;
    font-size: 12px;
    color: #aaa;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top a {
    color: #aaa;
    margin-left: 16px;
}

.header-top a:hover {
    color: #fff;
}

.header-main {
    height: 80px;
    display: flex;
    align-items: center;
}

.header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    width: 160px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo a {
    display: block;
    width: 100%;
    height: 100%;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 搜索框 */
.search-box {
    display: flex;
    align-items: center;
    width: 480px;
}

.search-box input {
    width: 400px;
    height: 40px;
    padding: 0 16px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    outline: none;
    background-color: #fff;
    color: #333;
}

.search-box button {
    width: 80px;
    height: 40px;
    background-color: #e94560;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    font-size: 14px;
    cursor: pointer;
}

.search-box button:hover {
    background-color: #c73652;
}

/* 右侧图标 */
.header-icons {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-icons a {
    color: #fff;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.header-icons a img {
    width: 24px;
    height: 24px;
}

.header-icons a:hover {
    color: #e94560;
}

/* ===== 导航菜单 ===== */
.nav {
    background-color: #0f3460;
}

.nav ul {
    display: flex;
    height: 44px;
    align-items: center;
}

.nav ul li a {
    color: #fff;
    font-size: 14px;
    padding: 0 20px;
    line-height: 44px;
    display: block;
}

.nav ul li a:hover,
.nav ul li a.active {
    background-color: #e94560;
}

/* ===== 页脚 ===== */
.footer {
    background-color: #1a1a2e;
    color: #aaa;
    margin-top: 40px;
    flex-shrink: 0;
}

.footer-main {
    padding: 40px 0 20px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-col {
    flex: 1;
}

.footer-col h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #e94560;
}

.footer-col p,
.footer-col ul li {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.8;
}

.footer-col ul li a {
    color: #aaa;
}

.footer-col ul li a:hover {
    color: #e94560;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 16px 0;
    text-align: center;
    font-size: 12px;
    color: #666;
}