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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #eef2f3; /* 背景色 */
    color: #333;
}

header {
    background-color: #ff6f20; /* 主色调 */
    padding: 15px 0;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff; /* 链接颜色 */
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ffe0b2; /* 悬停效果 */
}

main {
    padding: 10px;
    max-width: 1200px;
    margin: 65px auto 20px; /* 增加顶部间距 */
    background-color: #ffffff; /* 内容背景色 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.question h1 {
    font-size: 2rem;
    color: #57524f; /* 标题颜色 */
    margin-bottom: 10px;
    margin-left: 5px;
}
.question h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #ff6f20; /* 主题颜色 */
    padding-bottom: 5px;
    counter-increment: question-counter; /* 递增计数器 */
}

.question h2::before {
    content: counter(question-counter) ". "; /* 显示编号 */
    font-weight: bold; /* 可以选择加粗编号 */
    margin-right: 10px; /* 编号与标题之间的间距 */
}

.question .date {
    font-size: 0.9rem;
    color: #888;
}

.question-content {
    font-size: 1.1rem;
    margin: 20px 0;
    color: #555;
}

.best-answer {
    background-color: #f0f9f0; /* 浅绿色背景，呼应左侧边框色 */
    padding: 20px; /* 增加内边距 */
    margin-top: 25px;
    border-left: 5px solid #66c767;
    border-radius: 8px; /* 稍大圆角 */
    box-shadow: 0 2px 8px rgba(102, 199, 103, 0.1); /* 轻微同色系阴影，增强融合感 */
}

.best-answer h2 {
    color: #52a853; /* 稍深的绿色，更沉稳 */
    margin-bottom: 15px;
    font-size: 1.6rem;
    border-bottom: none; /* 去掉底部边框，避免重复 */
}

.best-answer h3 {
    color: #52a853;
    margin: 20px 0 12px; /* 调整间距 */
    font-size: 1.3rem;
}

.best-answer p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 15px; /* 段落间增加间距 */
}

.best-answer img {
    margin: 20px auto; /* 增加间距 */
    display: block;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.12); /* 增强图片阴影，提升立体感 */
    transition: transform 0.3s ease; /* 增加轻微缩放过渡 */
}

.best-answer img:hover {
    transform: scale(1.01); /* hover时轻微放大，增强交互感 */
}

.best-answer ul {
    list-style: none;
    padding: 0;
    margin: 15px 0; /* 增加上下间距 */
}

.best-answer ul li {
    font-size: 1rem;
    margin-bottom: 12px; /* 增加列表项间距 */
    color: #555;
    line-height: 1.8;
    position: relative;
    padding-left: 28px; /* 增加左侧空间 */
}

.best-answer ul li::before {
    content: "• ";
    color: #ff6f20;
    font-size: 1.6rem;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-55%); /* 微调垂直居中 */
}

.best-answer ul ul {
    margin-left: 10px; /* 增加子列表缩进 */
}

.best-answer ol li::marker {
    content: none;
}

.pagination {
    margin-top: 30px;
    display: flex;
    border-top: 1px solid #e0e0e0;
    padding-top: 10px;
    flex-direction: column;
}

.pagination a {
    color: #57524f; /* 主色调 */
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.pagination a:hover {
    color: #333; /* 悬停颜色 */
}

.related {
    margin-top: 40px;
}

.related h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #ff6f20; /* 主题颜色 */
    padding-bottom: 5px;
}

.related ul {
    display: flex;
    flex-wrap: wrap; /* 允许换行 */
    justify-content: space-between; /* 水平间隔 */
    padding: 0;
    list-style: none;
    counter-reset: item; /* 初始化计数器 */
}

.related ul li {
    width: calc(50% - 10px); /* 每个列表项占据50%宽度，减去间隔 */
    margin-bottom: 10px; /* 列表项底部间距 */
    position: relative; /* 使伪元素绝对定位相对于 li */
    padding-left: 35px; /* 给左侧留出空间以放置编号 */
}

.related ul li::before {
    content: counter(item); /* 使用计数器生成编号 */
    counter-increment: item; /* 每个 li 的计数器加一 */
    position: absolute; /* 绝对定位 */
    left: 1px; /* 调整位置 */
    top: 50%; /* 垂直居中 */
    transform: translateY(-50%); /* 调整为居中 */
    background-color: #ff6f20; /* 圆角框背景色 */
    color: white; /* 编号颜色 */
    border-radius: 50%; /* 圆角效果 */
    width: 25px; /* 圆角框宽度 */
    height: 25px; /* 圆角框高度 */
    display: flex; /* 使用 flexbox 来居中内容 */
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    font-weight: bold; /* 加粗 */
}

.related ul li a {
    display: block; /* 让链接块级化 */
    text-decoration: none; /* 移除默认下划线 */
    color: #555;
    font-size: 1.1rem;
    transition: color 0.3s;
    border-bottom: 1px dashed #ff6f20; /* 添加下横虚线 */
    padding-bottom: 2px; /* 给下边距留出空间 */
}

.related ul li a:hover {
    color: #ff6f20; /* 悬停效果 */
    border-bottom: 1px dashed #333; /* 悬停时改变虚线颜色 */
}
footer {
    background-color: #333; /* 深色背景 */
    color: #fff;
    text-align: center;
    padding: 15px;
    margin-top: 40px;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    nav ul li {
        margin: 10px 0;
    }
    .pagination {
        flex-direction: column;
        align-items: flex-start;
    }
    .pagination a {
        margin: 10px 0;
    }
    .best-answer {
        padding: 15px;
    }
    .related h2 {
        font-size: 1.5rem;
    }
    .related ul li {
        width: 100%; /* 移动设备上单排 */
    }
}

.th_header {
    height: 60px;
    line-height: 60px;
    background-color: #ffffff; /* 顶部背景色 */
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

.th_header_inner {
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.th-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.th-menu>li {
    margin: 0 15px;
}

.th-menu > li > a {
    font-size: 17px;
    color: #635f5f; /* 菜单链接颜色 */
    transition: background-color 0.4s ease-out, color 0.4s ease-out; /* 添加过渡效果 */
    text-decoration: none;
    padding: 10px 10px; /* 添加内边距以增加点击区域 */
    border-radius: 5px; /* 圆角效果 */
}

.th-menu>li>a:hover {
    color: #fff;
    background-color: #ff6f20; /* 悬停背景 */
}

.wap_click {
    display: none;
    font-size: 25px;
    padding: 10px;
    cursor: pointer;
}

@media screen and (max-width: 850px) {
    .wap_click {
        display: block;
    }
    .th-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 200px;
        height: 100%;
        background: rgba(242, 246, 249, .98);
        flex-direction: column;
        padding-top: 20px;
        box-shadow: 10px 0 15px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
    }

    .th-menu.thact {
        left: 0;
    }
}
