/* 全局样式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* 网页容器样式 */
.web {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 导航栏样式 */
#nav {
    background-color: #333;
}

#nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

#nav li {
    margin: 0 10px;
}

#nav a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    transition: background-color 0.3s;
}

#nav a:hover {
    background-color: #555;
}

#nav a.active {
    background-color: #007BFF;
}

/* 主体内容样式 */
.main {
    padding: 20px;
}

.title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.ibox1 ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.item-container {
    width: 280px;
    margin: 10px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.item-container:hover {
    transform: translateY(-5px);
}

.attack-image {
    width: 80%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.item-container h1 {
    font-size: 18px;
    margin-bottom: 5px;
}

.item-container p {
    font-size: 14px;
    color: #666;
}

/* 去掉文章链接的下划线 */
.item-container a {
    text-decoration: none;
    color: inherit;
}

.item-container a:hover {
    text-decoration: underline;
    color: #007BFF;
}

/* 页脚样式 */
.foot {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
}

