@charset "utf-8";
/* CSS Document */
/* 全局重置 + 废土暗黑风格 主色调：深灰、暗红、暗黄 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft Yahei", sans-serif;
    background-color: #1a1a1a;
    background-image: url(../img/bg.jpg); /* 背景图，放入img文件夹 */
    background-attachment: fixed;
    color: #e0e0e0;
    line-height: 1.8;
    font-size: 16px;
}

/* 页面容器 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(34, 34, 34, 0.9);
    box-shadow: 0 0 15px #8b0000; /* CSS扩展：阴影 */
    border: 1px solid #555;
    margin-top: 20px;
    margin-bottom: 30px;
}

/* 头部标题 */
header h1 {
    text-align: center;
    color: #c92424;
    font-size: 36px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px #000; /* CSS扩展：文字阴影 */
}

/* 导航栏样式 */
nav {
    background-color: #2d2d2d;
    padding: 15px 0;
    text-align: center;
    border-top: 2px solid #8b0000;
    border-bottom: 2px solid #8b0000;
    margin-bottom: 30px;
}

nav a {
    color: #d4b886;
    text-decoration: none;
    font-size: 18px;
    margin: 0 15px;
    padding: 8px 15px;
    transition: all 0.3s ease; /* CSS扩展：过渡动画 */
}

nav a:hover {
    background-color: #8b0000;
    color: #fff;
    border-radius: 4px;
}

/* 内容区块 */
.content {
    padding: 20px;
    margin: 20px 0;
    border: 1px dashed #666;
}

.content h2 {
    color: #d4b886;
    margin: 15px 0;
    border-left: 4px solid #c92424;
    padding-left: 10px;
}

.content h3 {
    color: #ff6666;
    margin: 12px 0;
}

/* 表格样式（怪物/武器参数表，防止错位） */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th, table td {
    border: 1px solid #555;
    padding: 10px;
    text-align: center;
}

table th {
    background-color: #444;
    color: #d4b886;
}

/* 图片样式 CSS扩展：滤镜+缩放 */
.img-box {
    text-align: center;
    margin: 20px 0;
}

.img-box img {
    max-width: 600px;
    filter: grayscale(20%); /* CSS扩展：灰度滤镜 */
    transition: transform 0.4s;
}

.img-box img:hover {
    transform: scale(1.05); /* CSS扩展：悬浮放大 */
}

/* 底部 */
footer {
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 14px;
    border-top: 1px solid #444;
    margin-top: 30px;
}

/* 返回按钮 */
.back-btn {
    display: inline-block;
    margin: 10px 0;
    padding: 6px 12px;
    background-color: #8b0000;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
}
