/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    color: #333;
    background-color: #f4f4f4;
}

/* 顶部导航栏 */
header {
    background-color: #0052cc;
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 1.5em;
}

header nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
}

header .login-btn {
    background-color: #fff;
    color: #0052cc;
    padding: 5px 10px;
    border-radius: 5px;
}

/* 主要内容区域 */
.container {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 标题 */
.hero {
    text-align: center;
    padding: 40px;
}

.hero h1 {
    font-size: 2.5em;
    color: #0052cc;
}

.hero p {
    font-size: 1.2em;
    color: #666;
    margin-top: 10px;
}

/* 友情链接的左右分布 */
.link-sections {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

/* 每个链接模块样式 */
.link-section {
    width: 48%;
}

.link-section h2 {
    font-size: 1.8em;
    color: #0052cc;
    margin-bottom: 15px;
    text-align: center;
}

.link-item {
    display: flex;
    align-items: center;
    padding: 10px;
    margin: 10px 0;
    background-color: #fff;
    color: #0052cc;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.link-item:hover {
    background-color: #007BFF;
    color: #fff;
    transform: translateY(-5px); /* 鼠标悬浮时产生上浮效果 */
}

.link-item .link-icon {
    width: 30px;
    height: 30px;
    background-color: #ccc;
    margin-right: 10px;
    border-radius: 50%;
}

.link-item:active {
    background-color: #0056b3; /* 点击后的样式 */
    transform: translateY(2px); /* 点击时产生轻微的下沉效果 */
}

/* 页脚 */
footer {
    background-color: #0046b8;
    color: white;
    text-align: center;
    padding: 1rem;
    font-size: 14px;
    position: fixed;       /* 固定位置 */
    left: 0;
    bottom: 0;             /* 固定在页面底部 */
    width: 100%;           /* 宽度占满全屏 */
    z-index: 9999;         /* 确保页脚位于最上层 */
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 10px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 5px 10px;
}

.social-media a {
    color: #fff;
    font-size: 1.5em;
    margin: 0 10px;
}

.service-image {
    width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 10px;
}

/* 响应式设计，保证在小屏幕下正常显示 */
@media (max-width: 768px) {
    .link-sections {
        flex-direction: column;
        align-items: center;
    }

    .link-section {
        width: 100%;
        margin-bottom: 30px;
    }
}
