/* ========== 全局通用样式重置 & 基础工具类 ========== */
/* 清除默认列表样式 */
ul,
.van-cbp-tmtimeline {
  list-style: none;
  padding-left: 0;
}

/* 引用块通用样式 */
blockquote {
  margin: 20px 0;
  border-radius: 10px;
  padding: 30px 40px;
  color: #666;
  background-color: #f8f8f8;
  line-height: 1.5em;
  position: relative;
  font-style: normal;
  font-size: 15px;
  letter-spacing: 0.5px;
}
blockquote:before {
  position: absolute;
  top: 20px;
  left: 20px;
  display: block;
  width: 16px;
  height: 14px;
  background: url(../../images/admin/page/qq_group_sy.png) no-repeat;
  content: '';
}
blockquote:after {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: block;
  width: 16px;
  height: 14px;
  background: url(../../images/admin/page/qq_group_sy.png) -16px 0 no-repeat;
  content: '';
}
blockquote p {
  margin: 12px 0;
  color: #666;
  font-size: 15px;
}
blockquote p:last-of-type {
  margin-bottom: 0;
}
blockquote cite {
  font-style: normal;
  color: #aaa;
}
blockquote footer {
  margin-top: 10px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #666;
}
blockquote footer::before {
  content: "— ";
}
/* 相邻引用块间距 */
* + blockquote {
  margin-top: 20px;
}

/* 工具类：定位、文本对齐、边框、响应式 */
[class*='yfx-inline'] {
  display: inline-block;
  position: relative;
  max-width: 100%;
  vertical-align: middle;
  color: rgba(255, 255, 255, 0.7);
  -webkit-backface-visibility: hidden;
}
.yfx-inline-clip {
  overflow: hidden;
}
/* 保持宽高比/响应式宽高 */
.yfx-preserve-width,
.yfx-preserve-width canvas,
.yfx-preserve-width img,
.yfx-preserve-width svg,
.yfx-preserve-width video {
  max-width: none;
}
.yfx-responsive-width,
.yfx-responsive-height {
  box-sizing: border-box;
}
.yfx-responsive-width {
  max-width: 100% !important;
  height: auto;
}
.yfx-responsive-height {
  max-height: 100%;
  width: auto;
  max-width: none;
}
/* 边框样式 */
.yfx-border-circle {
  border-radius: 50%;
}
.yfx-border-pill {
  border-radius: 500px;
}
.yfx-border-rounded {
  border-radius: 5px;
}
.yfx-inline-clip[class*='yfx-border-'] {
  -webkit-transform: translateZ(0); /* 修复webkit边框圆角溢出 */
}
.yfx-overflow-hidden {
  overflow: hidden;
}
.yfx-flex-middle {
  align-items: center;
}

/* 定位工具类 */
.yfx-position-relative {
  position: relative !important;
}
.yfx-position-absolute {
  position: absolute !important;
}
.yfx-position-fixed {
  position: fixed !important;
}
.yfx-position-z-index {
  z-index: 1;
}
/* 文本对齐（统一以768px为断点） */
.yfx-text-center {
  text-align: center !important;
}
.yfx-text-justify {
  text-align: justify !important;
}
/* PC端（>768px）文本对齐 */
@media (min-width: 768px) {
  .yfx-text-left\@pc { text-align: left !important; }
  .yfx-text-right\@pc { text-align: right !important; }
  .yfx-text-center\@pc { text-align: center !important; }
}

/* 居中定位工具类 */
[class*='yfx-position-center'] {
  position: absolute !important;
  max-width: 100%;
}
.yfx-position-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: 100%;
  box-sizing: border-box;
}
[class*='yfx-position-center-left'],
[class*='yfx-position-center-right'] {
  top: 50%;
  transform: translateY(-50%);
}
.yfx-position-center-left { left: 0; }
.yfx-position-center-right { right: 0; }
.yfx-position-center-left-out {
  right: 100%;
  width: max-content;
}
.yfx-position-center-right-out {
  left: 100%;
  width: max-content;
}

/* 容器样式（PC端统一断点） */
.yfx-container,
.yfx-content {
  box-sizing: content-box;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 15px;
}
.yfx-container {
  margin-top: 30px !important;
}
/* PC端（>768px）容器内边距 */
@media (min-width: 768px) {
  .yfx-container {
    padding-left: 30px;
    padding-right: 30px;
  }
}
/* 大屏PC端（>960px）容器内边距 */
@media (min-width: 960px) {
  .yfx-container {
    padding-left: 40px;
    padding-right: 40px;
  }
}
/* 清除容器浮动 */
.yfx-container::before,
.yfx-container::after {
  content: "";
  display: table;
}
.yfx-container::after {
  clear: both;
}
/* 容器最后一个子元素清除下外边距 */
.yfx-container > :last-child {
  margin-bottom: 0;
}
/* 嵌套容器清除内边距 */
.yfx-container .yfx-container {
  padding-left: 0;
  padding-right: 0;
}

/* 图标字体 */
.iconfont {
  font-family: "iconfont" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.icon-credit-level:before { content: "\e757"; }
.icon-vip:before { content: "\e7ac"; }

/* ========== QQ群联盟核心样式（移动端默认，PC端覆盖） ========== */
/* 背景容器 */
.yfx-qqqun-bg {
  background-color: #fff;
  margin-top: 20px;
}
/* 群列表网格 */
.yfx-grid-medium {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding-left: 5px; /* 统一列表内边距 */
}
/* 群卡片项（移动端默认：100%宽度） */
.yfx-medium-item {
  margin: 10px 0;
  height: 200px;
  flex-basis: auto;
  width: 100%;
  padding: 0 15px;
  position: relative;
  text-align: center;
  border: 1px solid #eee;
  transition: all 0.3s ease; /* 优化过渡曲线 */
}
/* PC端（>768px）群卡片：20%宽度 + 间距 */
@media (min-width: 768px) {
  .yfx-medium-item {
    width: 20%;
    margin: 20px;
    padding: 0;
  }
}
.yfx-medium-item:hover {
  cursor: pointer;
  transform: translateY(-5px); /* 简化上移动画写法 */
  box-shadow: 0 6px 12px rgba(0,0,0,0.08); /* 增加hover阴影提升质感 */
}
/* 群头像 */
.yfx-medium-item img {
  display: inline-block;
  overflow: hidden;
  width: 50px;
  height: 50px;
  vertical-align: -18px;
  border-radius: 50%;
  object-fit: cover; /* 防止图片变形 */
}
/* 群名称 */
.name {
  display: inline-block;
  overflow: hidden;
  width: 100%;
  height: 31px;
  vertical-align: -11px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px; /* 替换非标准单位pc为px（1pc=16px） */
  line-height: 31px;
}
/* QQ号 */
.qqNumber {
  color: #9d9d9d;
  font-size: 12px; /* 替换非标准单位pt为px（9pt≈12px） */
  display: inline-block;
}
.qqNumber em {
  display: inline-block;
  margin-left: 11px;
  border: 1px solid #6287e3;
  color: #6287e3;
  font-size: 12px;
  line-height: 12px;
  font-style: normal;
  padding: 1px 8px;
  border-radius: 2px;
}
/* 加群按钮 */
.yfx-medium-item a {
  display: inline-block;
  margin-top: 13px;
  border-radius: 3px;
  padding: 5px 45px;
  color: #fff;
  font-weight: 400;
  font-size: 15px;
  background: linear-gradient(90deg, #006eff, #13adff);
  box-shadow: 0 5px 10px 0 rgba(16, 110, 253, 0.3);
  outline: 0;
  text-decoration: none; /* 清除链接下划线 */
  transition: box-shadow 0.3s ease; /* 按钮阴影过渡 */
}
.yfx-medium-item a:hover {
  box-shadow: 0 6px 16px 0 rgba(16, 110, 253, 0.4); /* 按钮hover增强阴影 */
}

/* QQ群标题 */
.qqqunbiaoti {
  color: #f40;
}

/* ========== 单页背景样式（统一768px断点） ========== */
.yfx-page-bg {
  -webkit-filter: unset;
  filter: unset;
  padding: 0 !important;
}
.yfx-page-bg h3 {
  color: #fff;
  font-size: 28px;
  letter-spacing: 1px;
}
.yfx-page-bg .yfx-overlay-primary {
  background: rgba(34, 34, 34, 0);
}
/* 移动端（≤768px）单页背景图片高度 */
.yfx-page-bg img {
  height: 160px !important;
}
/* PC端（>768px）恢复图片默认高度 */
@media (min-width: 768px) {
  .yfx-page-bg img {
    height: auto !important;
  }
}

/* ========== 公告组件样式 ========== */
.van-gonggao-li {
  background-color: #fff;
  padding: 20px;
  margin: 20px 0;
  border-radius: 16px;
  transition: background-color 0.3s ease; /* 暗黑模式过渡 */
}
.van-gonggao-title {
  font-weight: 700;
  font-size: 20px;
}
.van-gonggao-about {
  margin: 16px 0;
  font-size: 12px;
  color: #999;
}
.van-gonggao-Btn {
  display: inline-block;
  border-radius: 50px;
  height: 24px;
  font-size: 12px;
  color: #ffffff;
  position: relative;
  padding: 0 10px 0 26px; /* 优化padding写法 */
  line-height: 24px;
  background: linear-gradient(90deg, #006eff, #13adff);
  margin-right: 7px;
  text-decoration: none; /* 清除链接下划线 */
}
.van-gonggao-Btn i {
  display: block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  border-radius: 50%;
  position: absolute;
  left: 1px;
  top: 2px;
  overflow: hidden;
  background: #ff8100;
  color: #fff;
  font-size: 12px;
  font-style: normal; /* 清除i标签默认斜体 */
}
.van-gonggao-entry-content {
  color: #4c4c4c;
  font-size: 15px;
  letter-spacing: 0.5px;
  line-height: 2;
}

/* ========== 暗黑模式样式 ========== */
.night .yfx-qqqun-bg,
[data-bs-theme="dark"] .van-gonggao-li {
  background-color: #151617;
}
.night .yfx-qqqun .yfx-qqqun-lb {
  border: 1px solid #111111;
}
[data-bs-theme="dark"] .van-gonggao-entry-content blockquote {
  background-color: #232323 !important;
}
/* 暗黑模式补充：群卡片边框、文字颜色 */
[data-bs-theme="dark"] .yfx-medium-item {
  border-color: #2c2c2c;
}
[data-bs-theme="dark"] .name {
  color: #e5e5e5;
}
[data-bs-theme="dark"] .qqNumber {
  color: #888;
}

/* ========== 页面内容通用样式 ========== */
.site-content {
  padding-bottom: 30px;
  padding-top: 0 !important;
}
