/* 全局重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Microsoft YaHei", sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: #333;
}
a:hover {
  color: #ff6600;
}
img {
  border: none;
  max-width: 100%;
}
.clearfix::after {
  content: "";
  display: block;
  clear: both;
}
.container {
  width: 1200px;
  margin: 0 auto;
}

/* 顶部导航 */
.top-bar {
  background: #2b2b2b;
  color: #fff;
  height: 36px;
  line-height: 36px;
  font-size: 14px;
}
.top-left {
  float: left;
}
.top-left a {
  color: #eee;
  margin-right: 10px;
}
.top-left span {
  color: #666;
}
.top-right {
  float: right;
  color: #d8d7d6;
  line-height: 36px;
}

/* 头部 */
.header {
  background: #fff;
  padding: 15px 0;
}
.logo {
  float: left;
}
.search-box {
  float: right;
  margin-top: 10px;
}
.search-box form {
  display: flex;
  width: 380px;
}
.search-box input[type="text"] {
  flex: 1;
  height: 36px;
  padding: 0 10px;
  border: 2px solid #ff6600;
  outline: none;
}
.search-box button {
  width: 80px;
  height: 36px;
  background: #ff6600;
  color: #fff;
  border: none;
  cursor: pointer;
}
.hot-search {
  margin-top: 5px;
  font-size: 12px;
}
.hot-search a {
  margin-right: 8px;
  color: #666;
}

/* 主导航 */
.nav {
  background: #ff6600;
}
.nav ul li {
  float: left;
}
.nav ul li a {
  display: block;
  padding: 0 20px;
  height: 45px;
  line-height: 45px;
  color: #fff;
  font-size: 16px;
}
.nav ul li a:hover,
.nav ul li.active a {
  background: #e55a00;
}

/* 面包屑 */
.breadcrumb {
  height: 40px;
  line-height: 40px;
  font-size: 14px;
  color: #666;
}
.breadcrumb a {
  color: #666;
}

/* 主体布局 */
.main {
  margin-bottom: 20px;
}
.main-left {
  width: 860px;
  float: left;
}
.main-right {
  width: 320px;
  float: right;
}

/* 文章内容 */
.article {
  background: #fff;
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 15px;
}
.article h1 {
  font-size: 24px;
  text-align: center;
  margin-bottom: 15px;
  color: #222;
}
.article-info {
  text-align: center;
  color: #999;
  font-size: 14px;
  margin-bottom: 20px;
}
.article-info span {
  margin: 0 10px;
}
.article-content {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
}
.article-content p {
  margin-bottom: 18px;
  text-indent: 2em;
}
.article-content img {
  display: block;
  margin: 10px auto;
  border-radius: 4px;
}

/* 标签整体样式 */
.article-tags {
    margin: 25px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* 单个带链接标签样式（彩色版） */
.article-tags a {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

/* 不同标签不同颜色 */
.article-tags a:nth-child(1) { background: #ff6b6b; }
.article-tags a:nth-child(2) { background: #4ecdc4; }
.article-tags a:nth-child(3) { background: #45b7d1; }
.article-tags a:nth-child(4) { background: #96ceb4; }
.article-tags a:nth-child(5) { background: #feca57; color: #333; }
.article-tags a:nth-child(6) { background: #a8e6cf; color: #333; }
.article-tags a:nth-child(7) { background: #dfe6e9; color: #333; }
.article-tags a:nth-child(8) { background: #bb8fce; }

/* 鼠标悬浮效果（统一加深） */
.article-tags a:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* 上下篇 */
.page-nav {
  background: #fff;
  padding: 15px 20px;
  border-radius: 4px;
  font-size: 14px;
}
.page-nav p {
  width: 50%;
  float: left;
}




/* 相关攻略 */
.related {
  background: #fff;
  padding: 15px;
  border-radius: 4px;
  margin-top: 15px;
}
.related h3 {
  font-size: 18px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ff6600;
  color: #ff6600;
}
.related ul li {
  width: 50%;
  float: left;
  padding: 8px 0;
  font-size: 15px;
  border-bottom: 1px dashed #eee;
}
.related ul li:nth-child(odd) {
  border-right: 1px dashed #eee;
  padding-right: 10px;
}
.related ul li:nth-child(even) {
  padding-left: 10px;
}
.related ul li a:hover {
  color: #ff6600;
  text-decoration: underline;
}

/* 侧边栏 */
.side-box {
  background: #fff;
  border-radius: 4px;
  margin-bottom: 15px;
  overflow: hidden;
}
.side-tab {
  display: flex;
  background: #f8f8f8;
  border-bottom: 2px solid #ff6600;
}
.side-tab span {
  flex: 1;
  text-align: center;
  height: 40px;
  line-height: 40px;
  cursor: pointer;
  font-size: 15px;
}
.side-tab span.cur {
  background: #ff6600;
  color: #fff;
}
.side-list {
  padding: 10px;
}
.side-list ul li {
  height: 34px;
  line-height: 34px;
  border-bottom: 1px dashed #eee;
  font-size: 14px;
}
.side-list ul li i {
  display: inline-block;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  background: #ff6600;
  color: #fff;
  font-style: normal;
  font-size: 12px;
  margin-right: 8px;
  border-radius: 2px;
}

/* 底部 */
.footer {
  background: #2b2b2b;
  color: #999;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
}
.footer p {
  margin-bottom: 10px;
}
.footer .notice {
  color: #666;
}
.footer a {
  color: #999;
}