a {
  text-decoration: none;
}

* {
  padding: 0;
  margin: 0;
  font-family: '微软雅黑';
}

ul,
li {
  list-style: none;
}

html,
body {
  background-color: #f9f9f9;
  zoom: 1!important;
}
:root {
  --home-bg:#f6f8fb;
  --home-card:#fff;
  --home-text:#20252b;
  --home-muted:#707780;
  --home-line:#edf0f3;
  --home-primary:#3d8bfd;
  --home-primary-soft:#eef6ff;
  --home-radius:14px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--home-bg);color:var(--home-text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;-webkit-text-size-adjust:100%}
a{text-decoration:none;color:inherit}
.home-wrap{max-width:1120px;margin:0 auto;padding:0 14px 36px}
.home-header{padding:12px 0 8px}
.home-header-inner{min-height:52px;display:flex;align-items:center;justify-content:space-between}
.brand{display:flex;align-items:center;gap:9px;font-weight:700;font-size:18px}
.brand img{width:42px;height:42px;object-fit:contain}
.top-nav{display:flex;gap:14px;color:#59616a;font-size:13px;white-space:nowrap}
.hero{background:linear-gradient(135deg,#edf7ff 0%,#f8fbff 58%,#fff 100%);border:1px solid #e3effc;border-radius:18px;padding:22px 18px;margin-bottom:12px}
.hero-kicker{font-size:13px;color:var(--home-primary);font-weight:600;margin-bottom:7px}
.hero h1{font-size:26px;line-height:1.3;margin:0 0 8px;font-weight:750;letter-spacing:-.3px}
.hero p{font-size:14px;line-height:1.7;color:#5d6670;margin:0 0 16px}
.hero-tags{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:17px}
.hero-tags span{font-size:12px;color:#4f687f;background:rgba(255,255,255,.8);border:1px solid #e4edf5;border-radius:999px;padding:5px 9px}
.primary-btn{display:flex;align-items:center;justify-content:center;min-height:44px;background:var(--home-primary);color:#fff;border-radius:10px;font-size:15px;font-weight:700;box-shadow:0 5px 14px rgba(61,139,253,.18)}
.section{margin-top:12px;background:var(--home-card);border-radius:var(--home-radius);padding:16px}
.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.section-title{font-size:18px;font-weight:750;margin:0}
.section-more{font-size:12px;color:var(--home-primary)}
.chooser{background:#fff;border:1px solid var(--home-line);border-radius:12px;padding:14px}
.chooser-title{font-size:15px;font-weight:700;margin-bottom:5px}
.chooser-desc{font-size:12px;color:var(--home-muted);line-height:1.6;margin-bottom:11px}
.chooser-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.chooser-item{padding:10px 9px;border:1px solid #e9edf1;border-radius:10px;background:#fbfcfd;font-size:13px;font-weight:600}
.chooser-item small{display:block;color:#8a929a;font-weight:400;font-size:11px;margin-top:3px}
.hot-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.hot-card{display:flex;align-items:center;min-height:52px;border:1px solid var(--home-line);border-radius:11px;padding:9px 10px;background:#fff;font-size:13px;font-weight:650}
.hot-card .dot{width:7px;height:7px;border-radius:50%;background:var(--home-primary);margin-right:8px;flex:0 0 auto}
.all-tests{padding:0;background:transparent;margin-top:12px}
#typechange{margin:0 0 10px}
#testList{background:#fff;border-radius:var(--home-radius);overflow:hidden}
#testList:empty{min-height:20px}
.article-list{background:#fff;border-radius:var(--home-radius);overflow:hidden}
#moveArticleMC{display:grid;grid-template-columns:1fr 1fr;padding:0!important}
#moveArticleMC > *{border-bottom:1px solid var(--home-line);padding:10px 10px}
#moveArticleMC > *:last-child{border-bottom:0}
.trust{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.trust-item{background:#f8fafc;border:1px solid var(--home-line);border-radius:10px;padding:12px 10px}
.trust-item strong{display:block;font-size:13px;margin-bottom:4px}
.trust-item span{font-size:11px;color:var(--home-muted);line-height:1.5}
.bottom-note{font-size:11px;color:#8b9299;line-height:1.7;text-align:center;padding:18px 10px 4px}
.imgEwm{margin-top:14px;text-align:center}
.imgEwm img{max-width:75%;height:auto;border-radius:10px;
  margin: auto;}
#pc{display:block!important}
#ad{display:block;margin-top:12px}
@media (min-width:960px){
  .home-wrap{padding:0 20px 50px}
  .hero{padding:30px 34px}
  .hero h1{font-size:32px}
  .chooser-grid{grid-template-columns:repeat(4,1fr)}
  .hot-grid{grid-template-columns:repeat(4,1fr)}
  .trust{grid-template-columns:repeat(4,1fr)}
  .top-nav{font-size:14px}
}
@media (max-width:480px){
  .home-wrap{padding-left:10px;padding-right:10px}
  .top-nav a:nth-child(n+4){display:none}
  .hero h1{font-size:24px}
  .section{padding:14px}
}

/*全部测试区域*/
.tabBack{
  background-color: white;
  padding: 5px;
}
.tab_xg_one{
  width: 100%;
  overflow: auto;
  border-bottom: 1px dashed #b7b6b6;
}
.tab_xg_two{
  float: left; width: 15%; padding: 6px 0px;font-size: 32px;font-weight: bold;
  height:100px;line-height: 100px;
  color:#c1bbbb;text-align: center;
}
.tab_xg_two>img{
  width: 105px; height: 85px; border-radius: 5px;
}
.tab_xg_3{
  float: right; width: 85%; padding: 6px 0px;
}
.tab_xg_4{
  float: left; width: 100%;
}
.tab_xg_5{
  width: 100%;
}
.tab_xg_6{
  float: left; width: 50%;
}
.tab_xg_7{
  float: right; width: 50%;
}
.tab_xg_8{
  width: 120px;
  height: 40px;
  background: #66ADFF;
  border-radius: 4px;
  text-align: center;
}
.tabfont5 {
  font-family: Alibaba PuHuiTi 2.0;
  font-weight: normal;
  font-size: 14px;
  color: #FEFEFE;
  line-height: 35px;
}
.tabFrontMf{
  display: flex;
  align-items: center;
}
.rightMf{
  width: 50px;
  height: 30px;
  padding-left: 20px;
  padding-right: 5px;
}
.tabfont3 {
  font-family: Alibaba PuHuiTi 2.0;
  font-weight: normal;
  font-size: 12px;
  color: #B7B7C1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  /* height: 30px; */
  line-height: 1.5;
  margin-bottom: 10px;
}
.tabfont4 {
  font-family: Alibaba PuHuiTi 2.0;
  font-weight: normal;
  font-size: 12px;
  color: #F28C8C;
  line-height: 31px;
}

.tabfont5 {
  font-family: Alibaba PuHuiTi 2.0;
  font-weight: normal;
  font-size: 14px;
  color: #FEFEFE;
  line-height: 35px;
}

.tabfont6 {
  font-family: Alibaba PuHuiTi 2.0;
  font-weight: normal;
  font-size: 14px;
  color: #5753EA;
}

/*文章区域*/
.listbanner {
  background: linear-gradient(134deg, #40A6F4 0%, #7C73FC 100%);
  box-shadow: 0px 4px 8px rgba(221, 221, 221, 0.1);
}

.listbanner2 {
  box-shadow: 0px 4px 8px rgba(221, 221, 221, 0.1);
}

.width-1 {
  width: 23%;
}

.width-2 {
  width: 14.3%;
}

.width-3 {
  width: 44.7%;
}

.width-4 {
  width: 25%;
}

.listbox {
  background: #F1F8FF;
  margin-bottom: 20px;
  padding-left: 24px;
  padding-right: 24px;
  border-radius: 12px;
}

.listbox2 {
  background: #F1F8FF;
  margin-bottom: 20px;
  padding-left: 24px;
  padding-right: 24px;
  border-radius: 12px;
}

.listbox3 {
  background: #F1F8FF;
}

.listbox3 p {
  overflow: hidden;
  word-break: keep-all;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 15px;
}

.wordlistbtn {
  width: 240px;
  height: 60px;
  background: #F1F8FF;
  border-radius: 12px;
  font-size: 1.25rem;
  font-family: Source Han Sans CN;
  font-weight: 400;
  line-height: 3.75rem;
  color: #4097F4;
  text-align: center;
  font-weight: 600;
}

@media (max-width: 500px) {
  .listbox {
    background: #F1F8FF;
    padding-top: 12px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 0px;
    border-radius: 8px;
  }

  .listbox2 {
    background: #F1F8FF;
    padding-top: 12px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 0px;
    border-radius: 8px;
  }

  .listbox3 p {
    width: 300px;
  }

  .width-1 {
    width: 20%;
  }

  .width-2 {
    width: 30%;
  }

  .width-3 {
    width: 100%;
  }

  .width-4 {
    width: 40%;
  }

  .wordlistbtn {
    width: 150px;
    height: 40px;
    background: #F1F8FF;
    border-radius: 8px;
    font-size: 1rem;
    font-family: Source Han Sans CN;
    font-weight: 400;
    line-height: 2.5rem;
    color: #4097F4;
    text-align: center;
    font-weight: 600;
  }

}

@media (min-width: 500px) {
  .width-5 {
    width: 30%;
  }

  .width-6 {
    width: 30%;
  }

  .width-7 {
    width: 40%;
    padding-left: 102px;
  }
}

.searchbox {
  max-width: 1200px;
  height: 52px;
  background: #fff;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  cursor: pointer;
}

.searchin {
  width: 35%;
  display: flex;
  align-items: center;
  margin-left: 25%;
}

.searchin img {
  display: block;
  height: 30px;
  cursor: pointer;
}

.searchin input {
  border: none;
  outline: none;
  width: 100%;
  margin-left: 14px;
  font-size: 20px;
}

.typechange {
  display: flex;
  align-items: center;
  margin-top: 30px;
  margin-bottom: 24px;
}

.typeitem {
  width: 149px;
  height: 52px;
  background: #fff;
  font-size: 20px;
  font-family: Source Han Sans CN;
  font-weight: 400;
  line-height: 22px;
  color: #333333;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.typeitem.active {
  background: #4097F4;
  color: #fff;
  position: relative;
}

.typeitem.active::before {
  content: '';
  width: 0;
  height: 0;
  /* border: 10px 20px solid; */
  border-top: 10px solid;
  border-left: 15px solid;
  border-right: 15px solid;
  border-color: #4097F4 transparent transparent transparent;
  display: block;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
}

@media (max-width: 1200px) {
  .typeitem {
    font-size: 14px;
  }
}
/* 2. 热门文章：条状卡片平滑浮起与变色效果 */
#result .listbox3 {
  background: #ffffff !important;
  border: 1px solid #f0f0f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  position: relative;
  overflow: hidden;
}

/* 悬停时：卡片向上微调、阴影加深、左侧绿条变宽、文字变绿 */
#result .listbox3:hover {
  transform: translateY(-3px);
  border-color: #56d547;
  box-shadow: 0 10px 20px rgba(86, 213, 71, 0.08);
}

#result .listbox3:hover p {
  color: #56d547 !important;
}

/* 文章左侧的小方块动画 */
#result .listbox3 i {
  transition: all 0.3s ease;
}
#result .listbox3:hover i {
  transform: scaleY(1.2);
  background-color: #56d547 !important;
}
#moveArticle{
  padding-top: 10px;
}


/* =========================
   心理测试列表
   ========================= */

.test-list-wrap {
  width: 100%;
  box-sizing: border-box;
}

/* 分类导航 */
.test-tabs-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 4px 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.test-tabs-wrap::-webkit-scrollbar {
  display: none;
}

.test-tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  min-width: 100%;
  padding: 8px 4px 12px;
  box-sizing: border-box;
}

.test-tab {
  position: relative;
  flex: 0 0 auto;
  padding: 8px 0 10px;
  color: #666;
  font-size: 16px;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s ease;
}

.test-tab.active {
  color: #333;
  font-weight: 600;
}

.test-tab.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 30px;
  height: 4px;
  border-radius: 4px;
  background: #F3A842;
  transform: translateX(-50%);
}

/* 测试列表背景 */
.test-list-content {
  margin-top: 12px;
}

/* 测试卡片 */
.test-card {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
  border: 1px solid #f0f0f0;
  transition: transform .15s ease, box-shadow .15s ease;
}

.test-card:active {
  transform: scale(.99);
}

/* 序号 */
.test-number {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  line-height: 32px;
  margin-right: 12px;
  border-radius: 50%;
  background: #f5f7fa;
  color: #888;
  font-size: 14px;
  text-align: center;
  box-sizing: border-box;
}

/* 卡片主体 */
.test-info {
  flex: 1;
  min-width: 0;
}

/* 标题 */
.test-title {
  margin: 0 0 7px;
  color: #222;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

/* 简介 */
.test-desc {
  margin: 0;
  color: #888;
  font-size: 14px;
  line-height: 1.65;

  /* 手机端限制简介高度 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* 底部信息 */
.test-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.test-count {
  color: #999;
  font-size: 13px;
  line-height: 1.5;
}

/* 免费测试标签 */
.test-free {
  flex: 0 0 auto;
  padding: 10px 40px;
  border-radius: 10px;
  background: #fff7e8;
  color: #e79524;
  font-size: 16px;
  line-height: 1.4;
  white-space: nowrap;
}

/* 平板及以上 */
@media (min-width: 768px) {
  .test-tabs {
    gap: 32px;
  }

  .test-tab {
    font-size: 17px;
  }

  .test-card {
    padding: 18px 20px;
  }

  .test-title {
    font-size: 18px;
  }

  .test-desc {
    font-size: 15px;
    -webkit-line-clamp: 2;
  }
}

/* 小屏手机 */
@media (max-width: 375px) {
  .test-tabs {
    gap: 20px;
  }

  .test-tab {
    font-size: 15px;
  }

  .test-card {
    padding: 14px;
  }

  .test-number {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    margin-right: 10px;
  }

  .test-title {
    font-size: 16px;
  }

  .test-desc {
    font-size: 13px;
  }

  .test-free {
    padding: 4px 9px;
    font-size: 12px;
  }
}

/*底部区域*/
.FooterBar{
  background-color: #2f2f2f;
  text-align: center;
  padding: 10px 25px;
  color: #5a6268;
  /*color: white;*/
  font-size: 14px;
}
.FooterBar>a{
  color: #5a6268;
  /*color: white;*/

}
.ArticleSummary{
  width: 96%;
  margin: auto;
  padding: 10px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  background-color: #F1F8FF;
  border-radius: 10px;
  margin-bottom: 15px;
}