/* ==================== 基础重置与全局样式 ==================== */
html, body {
  width: 100%;
  margin: 0;
  padding: 0;
  min-width: 1264px;
  font: 16px/28px 'Microsoft YaHei', Arial, Helvetica, sans-serif; /* 正文字体大小调整为16px */
  color: #f0e6d2; /* 微黄色文字 */
  background: #2b2a2a;
}

/* ==================== 核心布局结构 ==================== */
.main {
  width: 940px;
  margin: 0 auto;
}

/* ==================== 头部与导航 ==================== */
header {
   padding: 17px 0px;  
}
.logo {
  font-size: 40px;
  color: #ffffff; /* Logo 颜色保持为白色 */
  padding: 10px 20px;
  background: url('../images/logo.avif') center/cover no-repeat;
  border: 2px solid transparent;
  border-radius: 5px;
  transition: border-color 0.3s;
}

.logo:hover {
  border-color: #ffffff; /* 鼠标悬停时的边框颜色 */
}

nav {
  width: 940px;
  margin: 0 auto;
  padding: 5px 0 11px;
}

nav .menu {
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0;
}

nav .menu li {
  list-style: none;
  margin: 0 28px;
}

nav .menu li a {
  color: #ffffff; /* 导航链接颜色保持为白色 */
  font-size: 22px;
  text-transform: uppercase;
}

nav .menu li a:hover,
nav .menu li a.current {
  color: #7def53; /* 鼠标悬停和当前页面的导航链接颜色 */
}

/* ==================== 主要内容区域 ==================== */
#content {
  width: 960px;
  margin: 0 auto;
  padding-bottom: 55px;
}

.container {
  display: flex;
  margin-top: 30px;
  align-items: center;
  justify-content: center;
  width: 100%;    
}

.topTitle {
  margin-top: 30px;
  font-size: 45px;
  text-align: center;
}

.smallText {
  font-size: 16px;
  line-height: 30px;
}

ul {
    margin: 0;
    padding: 0;
    list-style-type: none; /* 添加这行代码 */
    list-style-image: none;
}

ul.list-1 li {
    padding: 0px 0 0px 12px;
    line-height: 24px;
}

ul.list-1 li a {
    font-size: 16px; /* 链接字体大小调整为16px */
    color: #a09a8b; /* 柔和的灰色 */
    line-height: 24px;
}

ul.list-1 li a:hover {
    color: #7def53; /* 鼠标悬停时的链接颜色 */
}

ul.list-2 li {
    padding: 0 0 6px 15px;
    line-height: 28px; /* 调整行距 */
}

ul.list-2 li a {
    font-size: 16px; /* 链接字体大小调整为16px */
    color: #a09a8b; /* 柔和的灰色 */
}

ul.list-2 li a:hover {
    color: #7def53; /* 鼠标悬停时的链接颜色 */
}

ul.list-3 {
  list-style-type: square; /* 启用方块项目符号 */
  padding-left: 20px;
}

ul.list-3 li {
  padding: 0 0 6px 15px; /* 为每个列表项添加内边距 */
  line-height: 24px; /* 设置行高 */
}

ul.list-3 li a {
  font-size: 16px; /* 链接字体大小 */
  color: #fffffe; /* 链接颜色 */
  line-height: 24px; /* 链接行高 */
  cursor: pointer;
}

ul.list-3 li a:hover {
  color: #c9ceb4; /* 鼠标悬停时的链接颜色 */
}

ul.list-3 li::marker {
  font-size: 1.5em; /* 增大方块的大小 */
}

.list-item-style {
  color: #dcdcdc; /* 更柔和的文字颜色 */
  font-size: 15px;
  background: linear-gradient(to right, rgba(173, 216, 230, 0.1), rgba(173, 216, 230, 0.3)); /* 更柔和的渐变背景 */
  padding: 1px 15px !important; /* 增加内边距 */
  margin-bottom: 15px; /* 增加间距 */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); /* 添加文字阴影 */
  border: 1px solid rgba(255, 255, 255, 0.3); /* 添加边框 */
}

/* ==================== 通用组件样式 ==================== */
a {
  color: #fffffe; /* 链接颜色为微黄色 */
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #7def53; /* 鼠标悬停时的链接颜色 */
}

a:visited {
  color: #fffffe; /* 已访问链接颜色 */
}

a:active {
  color: #fffffe; /* 活动链接颜色 */
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ==================== 页脚样式 ==================== */
footer {
  width: 940px;
  margin: 0 auto;
  padding: 37px 0 40px;
  background: url(../images/line.svg) repeat-x;
  display: flex;
  justify-content: space-between;
}

footer a {
  color: #f0e6d2; /* 页脚链接颜色为微黄色 */
}

.link {color:#f0e6d2; text-decoration:none; }
.link:hover {text-decoration:underline;}

.clr-1 {
  color: #f0e6d2; /* 文字颜色为微黄色 */
}

.clr-2 {
  color: #f0e6d2; /* 文字颜色为微黄色 */
  font-size: 16px; /* 正文字体大小调整为16px */
  line-height: 28px; /* 调整行距 */
  text-indent: 2em; /* 段落首行缩进 */
  margin-bottom: 20px; /* 段落间距 */
}

.box-1 a {
  background: url(../images/marker-2.gif) right 13px no-repeat rgb(38, 56, 116);
  font-size: 26px;
  line-height: 32px;
  color: #f0e6d2; /* 文字颜色为微黄色 */
  letter-spacing: -1px;
  display: block;
  padding: 5px 26px 12px 25px;
}

.box-1 a:hover {
  background-color: #4062c7;/* 鼠标悬停时的背景颜色 */
}

.line {
  background: url(../images/line.png) 0 0 repeat-x;
  height: 5px;
}

.box-2 {
  overflow: hidden;
}

/* ==================== 特殊组件扩展 ==================== */
.list-2 li {
  padding: 0 0 6px 15px;
  line-height: 28px; /* 调整行距 */
}

.list-2 li a {
  color: #a09a8b; /* 柔和的灰色 */
}

.clr-2 {
  color: #e0e0d0; /* 更柔和的文字颜色 */
  font-size: 18px;
  line-height: 28px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3)); /* 渐变背景 */
  padding: 10px; /* 添加内边距 */
}

.button {
  background: #2fa27a;
  color: #f0e6d2 !important; /* 按钮文字颜色为微黄色 */
  padding: 4px 12px 10px;
  border-radius: 4px;
  transition: background 0.3s;
}

.button:hover {
  background: #33844c; /* 鼠标悬停时的按钮背景颜色 */
}

.history-btn {
    margin-top: 0px;
    padding: 2px 6px;
    border: 1px solid #007bff;
    border-radius: 4px;
    background: #fff;
    color: #007bff;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s;
}
.history-btn:hover {
    background: #007bff;
    color: #fff;
}

.sogou-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 14px;
  border:1px solid #a09a8b;
  color:#a09a8b;
  font-size:14px;
  border-radius:999px;
  text-decoration:none;
  transition:.25s;
}
.sogou-badge:hover{
  background:#5e5e5e;
}

/* ==================== 赞赏码样式 ==================== */
.qr-container {
  display: flex;
  flex-direction: column;  /* 改为纵向排列 */
  align-items: flex-start;  /* 左对齐 */
  margin: 30px 0 0 15px;
}

.qr-wrapper {
  background: linear-gradient(135deg, #3a3a3a, #2a2a2a);
  padding: 15px;
  border-radius: 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  display: inline-block;  /* 让容器宽度适应内容 */
}

.qr-wrapper:hover {
  background: linear-gradient(135deg, #4a4a4a, #3a3a3a);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
  transform: scale(1.02);
}

.qr-code {
  display: block;
  background: white;
  width: 300px;
  height: 390;
  border-radius: 12px;
  cursor: pointer;
}

.qr-caption {
  font-size: 18px;
  color: #a09a8b;
  letter-spacing: 1px;
  line-height: 1.6;
  margin: 15px 0 0 0;  /* 上边距，与二维码分开 */
  text-align: center;   /* 居中对齐，也可以改成 left */
}

/* 移动端适配 */
@media (max-width: 768px) {
  .qr-container {
    align-items: center;  /* 手机上居中对齐更好看 */
  }

  .qr-code {
    width: 150px;
  }

  .close-btn {
    top: -50px;
    right: 5px;
    font-size: 35px;
  }

  .modal-img {
    max-width: 70vw;
    max-height: 60vh;
  }
}

/* ==================== 纯 CSS 弹窗 ==================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal:target {
  display: flex;
}

.modal-content {
  position: relative;
}

.modal-img {
  max-width: 40vw;
  max-height: 50vh;
  width: auto;
  height: auto;
  background: white;
  padding: 15px;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  display: block;
  margin: 0 auto;
}

.close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
  line-height: 1;
}

.close-btn:hover {
  color: #7def53;
}

@media (max-width: 768px) {
  .modal-img {
    max-width: 70vw;
    max-height: 60vh;
  }
}
