/* 恢复站公共布局修正：覆盖旧模板中浮动、标签不闭合造成的错位。 */
.header {
  height: 200px;
  min-height: 200px;
}

.header > .wrap {
  height: 200px;
  overflow: visible;
}

.header .top1 {
  display: flex;
  align-items: flex-start;
  height: 104px;
  min-height: 104px;
}

.header .top1 .logo {
  box-sizing: border-box;
  display: block;
  flex: 0 0 98px;
  float: none;
}

.header .wrap .top1 .nav {
  box-sizing: border-box;
  flex: 1 1 auto;
  float: none;
  width: auto;
  padding: 35px 0 18px 24px;
}

.header .wrap .top1 .nav > ul {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: auto;
}

.header .wrap .top1 .nav > ul > li {
  box-sizing: border-box;
  flex: 1 1 0;
  float: none;
  min-width: 0;
  margin: 0;
  padding: 0 5px;
  text-align: center;
}

.header .wrap .top1 .nav > ul > li > a {
  display: block;
  width: 100%;
}

.header .wrap .top1 .nav > ul > li > a > p,
.header .wrap .top1 .nav > ul > li > a > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header .wrap .top1 .nav > ul > li > a > p {
  font-size: 15px;
}

.header .wrap .top1 .nav > ul > li > a > span {
  margin-top: -5px;
  font-size: 11px;
}

.header .site-search {
  display: block;
  height: 96px;
}

.header .wrap .top2 {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  clear: both;
  height: 40px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(8, 18, 48, 0.12);
}

.header .wrap .top2 > img {
  box-sizing: border-box;
  flex: 0 0 58px;
  display: block;
  width: 58px;
  height: 40px;
  padding: 0;
}

.header .wrap .top2 .btn {
  box-sizing: border-box;
  flex: 1 1 auto;
  float: none;
  width: auto;
  min-width: 0;
  height: 40px;
  margin: 0;
  padding: 0 14px 0 8px;
  border: 0;
  border-radius: 0;
  outline: 0;
  font-size: 15px;
  color: #555;
  background: #fff;
}

.header .wrap .top2 .btn::placeholder {
  color: #9a9da5;
  opacity: 1;
}

.header .wrap .top2 .stn {
  appearance: none;
  box-sizing: border-box;
  flex: 0 0 93px;
  display: block;
  float: none;
  width: 93px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background-color: #134fe6;
  background-image: url(../images/go_search.png);
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}

.header .wrap .top2:focus-within {
  box-shadow: 0 0 0 2px rgba(67, 115, 255, 0.35);
}

.header .wrap .top2 .stn:hover {
  filter: brightness(0.96);
}

.header .top3 {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  clear: both;
  height: 56px;
  padding: 10px 7px 12px 0;
  position: static;
}

.header .top3 .search,
.header .wrap .top3 .run {
  float: none;
}

.header .top3 .search > ul {
  display: flex;
  align-items: center;
}

.header .top3 .search > ul > li {
  float: none;
  margin: 0 42px 0 0;
  white-space: nowrap;
}

.header .top3 .search > ul > li input {
  margin-right: 5px;
  vertical-align: middle;
}

.header .top3 .run {
  position: static;
  display: flex;
  align-items: center;
  max-width: 520px;
  min-width: 0;
}

.header .top3 .run > img {
  flex: 0 0 16px;
}

.header .top3 .run > p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 首页双卡片：统一四周留白与标题、图片、正文的垂直节奏。 */
#home .breif2 {
  height: 260px;
}

#home .breif2 > ul {
  display: flex;
  gap: 20px;
  width: 100%;
  height: 100%;
}

#home .breif2 > ul > li {
  box-sizing: border-box;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  float: none;
  width: auto;
  height: 260px;
  padding: 18px;
}

#home .breif2 > ul > li.person {
  margin-left: 0;
}

#home .breif2 > ul > li > strong {
  box-sizing: border-box;
  display: flex;
  flex: 0 0 28px;
  align-items: center;
  width: 100%;
  height: 28px;
  margin: 0 0 12px;
  padding-left: 28px;
  position: relative;
  left: 0;
  color: #172243;
  line-height: 28px;
}

#home .breif2 > ul > li > strong > a {
  color: inherit;
}

#home .breif2 > ul > li > strong::before {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

#home .breif2 > ul > li.club > img,
#home .breif2 > ul > li.person > ul {
  flex: 0 0 100px;
  width: 100%;
  height: 100px;
}

#home .breif2 > ul > li.club > img {
  display: block;
  object-fit: cover;
}

#home .breif2 > ul > li.person > ul {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  overflow: hidden;
}

#home .breif2 > ul > li.person > ul > li {
  flex: 0 0 auto;
  float: none;
}

#home .breif2 > ul > li > p {
  box-sizing: border-box;
  display: -webkit-box;
  flex: 0 0 72px;
  clear: none;
  width: 100%;
  height: 72px;
  margin: 12px 0 0;
  padding: 0;
  overflow: hidden;
  color: #5b6270;
  line-height: 18px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

#home .breif2 > ul > li > p > a {
  color: inherit;
}

#home .breif2 > ul > li > p > span {
  color: #252b3a;
  font-weight: 600;
  line-height: inherit;
}

/* 首页奇货可居：标题、商品和箭头共用同一条水平中轴。 */
#home .bag_index .bag_index_tit {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 50px;
  padding: 0 24px;
}

#home .bag_index .bag_index_tit > span,
#home .bag_index .bag_index_tit > a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  height: 24px;
  position: relative;
  left: auto;
}

#home .bag_index .bag_index_tit > span {
  padding-left: 27px;
}

#home .bag_index .bag_index_tit > a {
  padding-left: 24px;
}

#home .bag_index .bag_index_tit > span::before,
#home .bag_index .bag_index_tit > a::before {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

#home .bag_index .slidebox1 .bd .tempWrap {
  margin-right: auto;
  margin-left: auto;
}

#home .bag_index .slidebox1 .prev {
  left: 26px;
}

#home .bag_index .slidebox1 .next {
  right: 26px;
}

.contact-feature-page {
  box-sizing: border-box;
  padding-bottom: 24px;
}

.contact-feature-page .tit_laugh {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  width: 100%;
  height: 48px;
  margin-top: 0;
  padding: 0 20px;
  border-bottom: 1px solid #ededed;
}

.contact-feature-page .tit_laugh > p {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  float: none;
  height: 48px;
  margin: 0;
  padding-left: 28px;
  position: relative;
  line-height: 48px;
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-feature-page .tit_laugh > p::before {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.contact-feature-page .tit_laugh > p::after {
  top: auto;
  bottom: -1px;
  left: 0;
}

.contact-feature-page .tit_laugh .location {
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  max-width: 520px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-feature-content {
  box-sizing: border-box;
  width: 100%;
  padding: 20px 20px 12px;
  text-align: center;
}

.contact-feature-content .contact-feature-image {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
}

.contact-feature-empty {
  padding: 70px 20px;
  color: #777;
  background: #f7f7f7;
}

/* 联系合作正文已有页面级留白，移除旧富文本重复添加的首行缩进。 */
.contact-copy > p {
  text-indent: 0 !important;
}

/* 文章缺少封面时保持列表卡片结构稳定，避免 alt 文本挤占缩略图区域。 */
.main_laugh .con_laugt_pic .article-thumb-placeholder {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  color: #8b8f99;
  font-size: 12px;
  background: linear-gradient(135deg, #f4f5f7, #e7e9ed);
  border: 1px solid #dde0e5;
}

/* 剧集详情由内容自然撑高；分集存在时再显示轻量分隔带。 */
.main_script1 .bigbox .w650 .main_script1_first {
  display: flex;
  align-items: flex-start;
  width: 650px;
}

.main_script1 .bigbox .w650 .main_script1_pic,
.main_script1 .bigbox .w650 .main_script1_word {
  float: none;
}

.main_script1 .bigbox .main_script1_second {
  height: 8px;
  margin-top: 20px;
  background: #f1f2f4;
}

/* 无轮播图的单集页面直接从剧本标题开始，去掉空白轮播和孤立页码。 */
.main_script2 .bigbox .w650 .script2-con-without-slider {
  margin-top: 22px;
}

.main_script2 .bigbox .w650 .script2_con .script2_con_tit {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 650px;
  height: 42px;
}

.main_script2 .bigbox .w650 .script2_con_tit .script2_con_tit_l {
  flex: 1 1 auto;
  float: none;
  min-width: 0;
}

.main_script2 .bigbox .w650 .script2_con_tit .script2_con_tit_l > p {
  box-sizing: border-box;
  left: 0;
  width: 100%;
  padding-left: 26px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main_script2 .bigbox .w650 .script2_con_tit .script2_con_tit_r {
  flex: 0 0 auto;
  float: none;
}

.main_script2 .bigbox .w650 .script2_con_tit .script2_con_tit_r > ul {
  display: flex;
  align-items: center;
}

.main_script2 .bigbox .w650 .script2_con_tit .script2_con_tit_r > ul > li {
  float: none;
  margin: 0 4px 0 20px;
  white-space: nowrap;
}

/* 词典结果改为稳定的两栏布局，推荐按钮不再绝对偏移覆盖例句。 */
.dictionary-result-page .dictionary-result-card {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  min-height: 360px;
  padding: 22px 18px 36px 0;
  border-bottom: 0;
}

.dictionary-related {
  box-sizing: border-box;
  padding-right: 18px;
  border-right: 1px solid #ededed;
}

.dictionary-related h3 {
  margin: 0 0 12px;
  padding-bottom: 10px;
  color: #333;
  font-size: 16px;
  border-bottom: 1px solid #ededed;
}

.dictionary-related li {
  margin-bottom: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dictionary-related li a {
  color: #5f6470;
}

.dictionary-result-main {
  min-width: 0;
}

.dictionary-result-main > h1 {
  margin: 0 0 14px;
  color: #172243;
  font-size: 22px;
  line-height: 1.4;
}

.dictionary-definition-block {
  box-sizing: border-box;
  margin-bottom: 16px;
  padding: 14px 16px;
  overflow-wrap: anywhere;
  line-height: 1.75;
  background: #f4f5f7;
  border-left: 3px solid #172243;
}

.dictionary-definition-block h2 {
  margin: 0 0 6px;
  color: #172243;
  font-size: 15px;
  line-height: 1.4;
}

.dictionary-recommendation {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-top: 20px;
}

.dictionary-recommendation-image {
  display: block;
  width: 130px;
  height: 130px;
  object-fit: cover;
}

.dictionary-recommendation-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dictionary-recommendation-actions span {
  display: flex;
  align-items: center;
  color: #666;
}

.dictionary-recommendation-actions span img {
  width: 22px;
  height: 22px;
  margin-right: 4px;
}

.dictionary-recommendation-actions button {
  box-sizing: border-box;
  height: 34px;
  padding: 0 16px;
  color: #fff;
  border: 0;
  border-radius: 4px;
  background: #172243;
  cursor: pointer;
}

.dictionary-empty-state {
  box-sizing: border-box;
  padding: 72px 24px;
  color: #777;
  text-align: center;
  background: #f7f8fa;
}

.dictionary-empty-state h1 {
  margin: 0 0 10px;
  color: #172243;
  font-size: 22px;
}

/* 商品主图：不再依赖旧轮播的位移动画，避免只露出图片顶部灰条。 */
.main_store_detail .w650 .store_detail_brief .product-gallery {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 300px;
  height: 286px;
  position: relative;
}

.main_store_detail .w650 .store_detail_brief .product-gallery .ifocus_btn {
  box-sizing: border-box;
  flex: 0 0 48px;
  float: none;
  width: 48px;
  height: auto;
  margin: 0;
  padding: 18px 0;
}

.main_store_detail .w650 .store_detail_brief .product-gallery .ifocus_btn > li {
  box-sizing: border-box;
  width: 48px;
  height: 54px;
  margin: 8px 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e1e1e1;
  cursor: pointer;
}

.main_store_detail .w650 .store_detail_brief .product-gallery .ifocus_btn > li.on {
  background: #fff;
  border-color: #f41b1b;
  box-shadow: 0 0 0 1px #f41b1b;
}

.main_store_detail .w650 .store_detail_brief .product-gallery .ifocus_btn > li > img {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 100%;
  padding: 3px;
  object-fit: contain;
}

.main_store_detail .w650 .store_detail_brief .product-gallery .ifocus_piclist {
  box-sizing: border-box;
  display: flex;
  flex: 0 0 226px;
  float: none;
  align-items: center;
  justify-content: center;
  width: 226px;
  height: 286px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ededed;
}

.main_store_detail .w650 .store_detail_brief .product-gallery .ifocus_piclist > ul {
  width: 100%;
  height: 100%;
  position: static !important;
}

.main_store_detail .w650 .store_detail_brief .product-gallery .ifocus_piclist li {
  box-sizing: border-box;
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 8px;
}

.main_store_detail .w650 .store_detail_brief .product-gallery .ifocus_piclist li.is-active {
  display: flex;
}

.main_store_detail .w650 .store_detail_brief .product-gallery .ifocus_piclist img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.main_store_detail .w650 .store_detail_brief .product-gallery > a.prev,
.main_store_detail .w650 .store_detail_brief .product-gallery > a.next {
  left: 4px;
  z-index: 2;
}

.generic-detail-page {
  box-sizing: border-box;
  padding-bottom: 36px;
}

.generic-detail-page .tit_laugh {
  box-sizing: border-box;
  width: 100%;
  height: 50px;
  margin-top: 0;
  padding-top: 16px;
  border-bottom: 1px solid #ededed;
}

.generic-detail-page .location {
  top: 17px;
  right: 0;
  max-width: 620px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.generic-detail-article {
  box-sizing: border-box;
  width: 760px;
  margin: 28px auto 0;
  padding: 34px 48px 48px;
  color: #333;
  background: #fff;
  border: 1px solid #e8e8e8;
}

.generic-detail-article h1 {
  margin: 0;
  color: #172243;
  font-size: 26px;
  line-height: 1.45;
  text-align: center;
}

.generic-detail-meta {
  margin: 10px 0 26px;
  color: #888;
  text-align: center;
}

.generic-detail-body {
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.9;
}

.generic-detail-body img {
  max-width: 100%;
  height: auto;
}

/* SuperSlide 会把循环轮播的克隆项排到视口之外；旧样式只隐藏 body，
   短内容页仍会出现横向滚动范围。由轮播容器负责裁切更稳妥。 */
.slidebox2,
.slidebox2 .bd {
  overflow: hidden;
}

.down_tit > p {
  box-sizing: border-box;
  width: calc(100% - 22px);
}

/* 首页焦点图分页：隐藏插件生成的数字，改为底部居中的横向圆点。 */
#home .slidebox > .hd {
  top: auto;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

#home .slidebox > .hd > .focusmenu {
  position: static;
  display: flex;
  align-items: center;
  gap: 8px;
}

#home .slidebox > .hd > .focusmenu > li {
  box-sizing: border-box;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  font-size: 0;
  line-height: 12px;
  color: transparent;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

#home .slidebox > .hd > .focusmenu > li.on {
  background: #238ac4;
}

/* Keep the vocabulary-test header independent from the global 200px site header. */
.vocabtest-panel {
  box-sizing: border-box;
  height: 484px;
  margin: 40px 0;
  overflow: hidden;
  border: 1px solid #7e7e7e;
}

.vocabtest-panel .body-area {
  height: 100%;
  min-height: 0;
}

.vocabtest-panel .body-area > .header {
  box-sizing: border-box;
  height: 45px;
  min-height: 45px;
  padding: 0 22px;
  color: #fff;
  line-height: 45px;
  background: #172243;
  box-shadow: none;
}

.vocabtest-panel .current-number {
  top: 10px;
}

.vocabtest-panel .content {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  height: calc(100% - 45px);
  padding: 36px 0;
}

.vocabtest-panel .body-area .content .pull-lefts {
  box-sizing: border-box;
  flex: 0 0 45%;
  width: 45%;
  margin-top: 0;
  padding: 0 30px;
  color: #172243;
  overflow-wrap: anywhere;
  float: none;
}

.vocabtest-panel .body-area .content .pull-right {
  flex: 1 1 auto;
  width: auto;
  margin: 0 5% 0 0;
  float: none;
}

.vocabtest-panel .body-area .content .answer-list .answer {
  box-sizing: border-box;
  min-height: 56px;
  padding: 12px 15px;
  line-height: 2;
}

@media (max-width: 767px) {
  .mobile-article-thumb-placeholder {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    color: #8b8f99;
    font-size: 13px;
    background: linear-gradient(135deg, #f4f5f7, #e7e9ed);
    border: 1px solid #dde0e5;
  }

  .mobile-dictionary-result {
    box-sizing: border-box;
    padding: 16px 12px 28px;
    color: #333;
    background: #fff;
  }

  .mobile-dictionary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e6e7ea;
  }

  .mobile-dictionary-header h1 {
    margin: 0;
    color: #172243;
    font-size: 21px;
  }

  .mobile-dictionary-header a {
    color: #666;
    font-size: 13px;
  }

  .mobile-dictionary-related {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 4px;
    overflow-x: auto;
  }

  .mobile-dictionary-related a {
    flex: 0 0 auto;
    padding: 5px 10px;
    color: #4e5668;
    font-size: 13px;
    background: #f1f2f5;
    border-radius: 14px;
  }

  .mobile-dictionary-card h2 {
    margin: 0 0 14px;
    color: #172243;
    font-size: 22px;
    overflow-wrap: anywhere;
  }

  .mobile-dictionary-card section {
    box-sizing: border-box;
    margin-bottom: 14px;
    padding: 13px 14px;
    overflow-wrap: anywhere;
    line-height: 1.75;
    background: #f4f5f7;
    border-left: 3px solid #172243;
  }

  .mobile-dictionary-card section h3 {
    margin: 0 0 6px;
    color: #172243;
    font-size: 15px;
  }

  .mobile-dictionary-image {
    display: block;
    width: min(46vw, 160px);
    height: auto;
    margin: 18px auto 0;
  }

  .mobile-dictionary-empty {
    padding: 54px 16px;
    color: #777;
    text-align: center;
    background: #f7f8fa;
  }

  .mobile-dictionary-empty h2 {
    margin: 0 0 10px;
    color: #172243;
    font-size: 21px;
  }

  .public-mobile-nav > li > a > p {
    margin: 0;
  }

  .public-mobile-nav > li.change_y > a,
  .public-mobile-nav > li.change_y > a > p {
    color: #cacc16;
  }

  .mobile-contact-feature {
    padding: 16px 12px 24px;
  }

  .mobile-contact-feature h1 {
    margin: 0 0 14px;
    font-size: 20px;
    color: #172243;
  }

  .mobile-contact-feature img {
    display: block;
    width: 100%;
    height: auto;
  }

  .mobile-generic-detail {
    box-sizing: border-box;
    padding: 20px 16px 32px;
    color: #333;
    background: #fff;
  }

  .mobile-generic-detail-type,
  .mobile-generic-detail-meta {
    margin: 0 0 8px;
    color: #777;
    font-size: 13px;
  }

  .mobile-generic-detail h1 {
    margin: 0 0 10px;
    color: #172243;
    font-size: 23px;
    line-height: 1.4;
  }

  .mobile-generic-detail-body {
    overflow-wrap: anywhere;
    font-size: 16px;
    line-height: 1.8;
  }

  .mobile-generic-detail-body img {
    max-width: 100%;
    height: auto;
  }
}
