
body {
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}
.header {
    background-color: #8b0000;
    color: white;
    padding: 20px 0;
    margin-bottom: 30px;
}
.term-container {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 30px;
}
.term-title {
    background-color: #f0f0f0;
    padding: 10px 15px;
    border-left: 4px solid #8b0000;
    margin-bottom: 15px;
    font-weight: bold;
}
.term-content {
    padding: 0 15px 15px;
}
.term-example {
    background-color: #f5e8c9;
    border: 1px solid #a97d38;
    padding: 15px;
    border-radius: 5px;
    margin-top: 10px;
    margin-bottom: 15px;
}
.footer {
    background-color: #343a40;
    color: white;
    padding: 20px 0;
    margin-top: 30px;
}
h2 {
    color: #8b0000;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
h3 {
    color: #5a5a5a;
    margin-top: 20px;
    margin-bottom: 15px;
}
.chess-move {
    font-weight: bold;
    color: #8b0000;
}
.top-navigation {
    background-color: #5a0000;
    color: white;
    padding: 10px 0;
}
.nav-link {
    color: rgba(255,255,255,0.8) !important;
}
.nav-link:hover {
    color: white !important;
}
.rule-number {
    display: inline-block;
    min-width: 50px;
    padding: 4px 8px;
    background-color: #8b0000;
    color: white;
    border-radius: 4px;
    margin-right: 10px;
    font-weight: bold;
    text-align: center;
}
/* 二级分类样式 */
.rule-number.level-2 {
    display: inline-block;
    min-width: 40px;
    padding: 3px 7px;
    background-color: #b22222; /* 较浅的红色 */
    color: white;
    border-radius: 4px;
    margin-right: 8px;
    font-weight: bold;
    text-align: center;
    font-size: 0.9em; /* 字体稍小 */
}

/* 三级分类样式 */
.rule-number.level-3 {
    display: inline-block;
    min-width: 30px;
    padding: 2px 6px;
    background-color: #cd5c5c; /* 更浅的红色 */
    color: white;
    border-radius: 4px;
    margin-right: 6px;
    font-weight: normal; /* 字体权重稍弱 */
    text-align: center;
    font-size: 0.8em; /* 字体更小 */
}
.figure-reference {
    font-style: italic;
    color: #666;
}
.chess-pieces {
    font-weight: bold;
}
.chess-red {
    color: #8b0000;
}
.chess-black {
    color: #000;
}
.chess-term {
    font-style: italic;
    color: #5a5a5a;
}

.nav-container {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.header h1, .header h2 {
    color: white;
    border-bottom: 2px solid rgba(255,255,255,0.3);
}

/* 目录链接的独立样式 */
.nav-link-directory {
    background-color: #8b0000 !important;
    color: white !important;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(139, 0, 0, 0.3);
}

.nav-link-directory:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(139, 0, 0, 0.4);
}