* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font: 12px/1.5 'Microsoft YaHei', '宋体', Hiragino Sans GB, STHeiti, sans-serif;
}

:root {
  /* 750 稿填 7.5；出 375 稿就改成 3.75。换算值永远是「设计稿 px ÷ 100」 */
  --design-w: 7.5;
}

/* 原子类 */
.one-line {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.two-line {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.wrap {
  width: 1200px;
  margin: 0 auto;
}
.mobile {
  display: none;
}
.page-header {
  padding: 13px 0;
  background: #fff;
}

.page-header .logo {
  display: block;
  width: 176px;
  height: 68px;
}

.banner-img {
  width: 100%;
}

.sec-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.sec-head .head-icon {
  width: 110px;
  height: 88px;
}

.sec-head .head-title {
  margin: 0;
  font-size: 38px;
  font-weight: 700;
  line-height: 57px;
  color: #05040a;
}

.sec-head .head-title em {
  font-style: normal;
  color: #055be2;
  position: relative;
  z-index: 1;
}
.sec-head .head-title em::before {
  content: '';
  position: absolute;
  left: -12px;
  bottom: -10px;
  width: 132px;
  height: 20px;
  background: url(../img/icon2.png) no-repeat center;
  z-index: -1;
}

.sec-head .head-title span {
  position: relative;
  z-index: 2;
}

.sec-head .head-title i {
  font-style: normal;
  color: #ff5a44;
}

.sec-sub {
  margin: 0;
  font-size: 24px;
  line-height: 35px;
  text-align: center;
  color: #636b84;
}

.sec-sub b {
  font-size: 32px;
  color: #ff5a44;
}

.sec-sub s {
  font-size: 16px;
  text-decoration: none;
  color: #ff7462;
}

/* ============================ 福利1 ============================ */

.sec-deposit {
  padding: 38px 0 80px;
  background: #fff;
}

.sec-deposit .sec-head .head-title {
  font-size: 37px;
}

.sec-deposit .sec-sub {
  margin-top: 4px;
}

.table-wrap {
  position: relative;
  z-index: 0;
  margin-top: 32px;
}

.deposit-table {
  padding: 20px 51px 19px;
  background: linear-gradient(135deg, #feeeda 0%, #feeeda 100%);
  border: 3px solid #fff;
  border-radius: 18px;
  box-shadow: 6.6px 12.4px 13px rgba(26, 153, 252, 0.11);
}

.table-wrap .table-deco {
  position: absolute;
  top: -91px;
  right: -54px;
  width: 220px;
  height: 151px;
  z-index: -1;
}

.deposit-table .table-head,
.deposit-table .table-row {
  display: grid;
  grid-template-columns: 260px 380px 1fr;
  align-items: center;
}

.deposit-table .table-head {
  height: 40px;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  color: #70778d;
}

.deposit-table .table-row {
  height: 85px;
  margin-top: 18px;
  background: #fff;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 500;
  color: #1b1b1b;
}

.deposit-table .table-row:first-of-type {
  margin-top: 0;
}

.deposit-table .price {
  text-align: center;
  color: #1d8aff;
}

.deposit-table .price b,
.deposit-table .gain b {
  font-size: 28px;
  font-weight: 700;
}

.deposit-table .price i {
  font-style: normal;
  color: #1b1b1b;
}

.deposit-table .gain {
  text-align: center;
  color: #2c2c2c;
}

.deposit-table .gain b {
  color: #ff5a44;
}

.deposit-table .gain s {
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  color: #ff7462;
}

.deposit-table .scope {
  text-align: center;
  color: #2c2c2c;
}

.table-note {
  margin: 17px 0 0;
  font-size: 20px;
  text-align: center;
  color: #636b84;
}

/* ---- 叠加赠礼 ---- */
.gift-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}
.gift-head h3 {
  position: relative;
  z-index: 0;
  margin: 0;
  font-size: 25px;
  font-weight: 700;
  color: #1b1b1b;
}

.gift-head h3 em {
  font-style: normal;
  text-decoration: underline;
  color: #ff5a44;
}

.gift-head h3 .lead-text {
  position: relative;
}

.gift-head h3 .lead-text::before {
  content: '';
  position: absolute;
  left: -12px;
  bottom: -5px;
  width: 112px;
  height: 18px;
  background: url(../img/icon2.png) no-repeat center;
  background-size: 100% 100%;
  z-index: -1;
}

.gift-head .gift-icon {
  width: 65px;
  height: 67px;
}

.gift-list {
  display: flex;
  gap: 28px;
}

.gift-item {
  position: relative;
  width: 379px;
  height: 166px;
  padding: 20px 0 0 25px;
  border: 3px solid #fff;
  border-radius: 18px;
  box-shadow: 6.6px 12.4px 13px rgba(26, 153, 252, 0.11);
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

.gift-item--blue {
  background-image: url(../img/itemBg1.png);
}
.gift-item--purple {
   background-image: url(../img/itemBg2.png);
}
.gift-item--orange {
   background-image: url(../img/itemBg3.png);
}

.gift-item .gift-badge {
  position: absolute;
  top: 2px;
  right: 0;
}

.gift-item h4 {
  margin: 0;
  font-size: 27px;
  font-weight: 700;
  line-height: 40px;
  color: #1d8aff;
  margin-bottom: 20px;
}

.gift-item h4 span {
  color: #ff5a44;
}

.gift-item p {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  color: #1b1b1b;
}

/* ---- 扫码联系编辑老师 ---- */
.contact-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 51px;
  height: 128px;
  background: url(../img/contactBg.png) no-repeat center;
}

.contact-bar .contact-gift {
  width: 111px;
  height: 111px;
}

.contact-bar .contact-text {
  margin: 0 80px 0 0;
  font-size: 25px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: 1px;
  color: #fff;
}

.contact-bar .contact-text em {
  font-style: normal;
  color: #ffff00;
}

.contact-bar .contact-code {
  width: 103px;
  height: 103px;
  background: #fff;
  border-radius: 5px;
}

/* ============================ 福利2 ============================ */

.sec-quality {
  padding: 48px 0 110px;
  background: #e0f2ff url("../img/bg.png") no-repeat top center;
  background-size: cover;
}

.sec-quality .sec-sub {
  margin-top: 4px;
}

.block-title {
  margin: 0 0 20px;
  font-size: 27px;
  font-weight: 400;
  line-height: 30px;
  color: #060201;
}

/* 优质期刊推荐 */
.quality-wall {
  display: flex;
  justify-content: space-between;
  padding: 27px 26px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 6.6px 12.4px 13px rgba(26, 153, 252, 0.11);
}

.quality-wall .wall-item {
  width: 166px;
  height: 186px;
  object-fit: cover;
}

.sec-quality .quality-block {
  margin-top: 33px;
}

/* ============================ 福利3 ============================ */

.sec-live {
  padding: 147px 0 154px;
  background: linear-gradient(360deg, rgba(211, 237, 255, 0.5) 0%, #fff 100%);
}

.sec-live .sec-head .head-title {
  font-size: 40px;
}

.sec-live .sec-sub {
  margin-top: 6px;
}

/* 直播间专属福利条 */
.ad-bar {
  width: 100%;
  margin-top: 4px;
}

/* 直播列表 */
.live-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 41px;
}

.live-item {
  display: flex;
  gap: 50px;
  padding: 30px 30px 20px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.live-item .live-main {
  flex: 1;
  min-width: 0;
}

.live-item .live-tags {
  display: flex;
  gap: 19px;
}

.live-item .tag {
  height: 36px;
  padding: 0 20px;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 18px;
  font-weight: 500;
  line-height: 34px;
  letter-spacing: 1px;
}

.live-item .tag--theme {
  background: #ffeddf;
  color: #d58a5a;
}

.live-item .tag--theme2 {
  background: #f1edf9;
  color: #8d6ece;
}

.live-item .tag--time {
  background: #558ef7;
  color: #fff;
}

.live-item .live-title {
  margin: 13px 0 0;
  font-size: 26px;
  font-weight: 400;
  line-height: 40px;
  color: #222d35;
}

.live-item .live-desc {
  margin: 13px 0 0;
  font-size: 17px;
  line-height: 28px;
  color: #4f6c8e;
}

.live-item .live-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 115px;
  flex: 0 0 115px;
}

.live-item .live-code {
  width: 115px;
  height: 111px;
  border-radius: 5px;
}

.live-item .live-link {
  font-size: 18px;
  color: #0071eb;
  text-decoration: underline;
}

.live-more {
  margin: 41px 0 0;
  font-size: 23px;
  text-align: center;
  color: #1b1b1b;
}

/* ============================ 专项征稿推荐模块 ============================ */

.special-module {
  margin-top: 32px;
}

.special-module .special-wrap {
  width: 1200px;
  margin: 0 auto;
}

/* ---- 标题 ---- */
.special-module .special-title {
  margin: 0 0 20px;
  font-size: 27px;
  font-weight: 400;
  line-height: 30px;
  color: #060201;
}

.special-module .special-list {
  display: grid;
  grid-template-columns: repeat(2, 585px);
  gap: 25px 30px;
}

.special-module .special-card {
  display: flex;
  gap: 30px;
  width: 585px;
  height: 228px;
  padding: 16px 34px 16px 30px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.special-module .card-body {
  display: flex;
  flex-direction: column;
  width: 375px;
  flex: 0 0 375px;
}

.special-module .card-tag {
  color: #0087e8;
  font-size: 12px;
  line-height: 20px;
}

.special-module .card-name {
  margin-top: 2px;
  color: #060201;
  font-size: 18px;
  line-height: 20px;
  word-break: break-word;
}

/* 信息区：整行 + 两列混排，列间距 15、行间距 11 */
.special-module .card-meta {
  display: flex;
  flex-wrap: wrap;
  column-gap: 15px;
  row-gap: 11px;
  margin-top: 25px;
  color: #060201;
  font-size: 14px;
  line-height: 20px;
}

.special-module .meta-item {
  display: flex;
  flex: 0 0 180px;
  min-width: 0;
}

.special-module .meta-item--full {
  flex-basis: 100% !important;
}

.special-module .meta-label {
  flex: 0 0 auto;
  margin-right: 5px;
}

.special-module .meta-value {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.special-module .meta-date {
  color: #ff7d1a;
}

/* 封面 */
.special-module .card-cover {
  width: 116px;
  height: 154px;
  flex: 0 0 116px;
}

.special-module .card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.special-module .special-more {
  display: block;
  width: 338px;
  height: 79px;
  margin: 50px auto 0;
  background: #fe8030;
  border-radius: 10px;
  color: #fff;
  font-size: 25px;
  letter-spacing: 1px;
  line-height: 79px;
  text-align: center;
  text-decoration: none;
}

/* ================= 中间屏：769~1200px，版心收缩 + 放不下就换行 ================= */

@media (min-width: 769px) and (max-width: 1199.98px) {
  /* 版心跟随屏幕，两侧留 15px 避免贴边（PC 1200 版心不受影响） */
  .wrap {
    width: auto;
    max-width: 1200px;
    padding: 0 15px;
  }

  /* 定金表：列宽改弹性，769 附近不溢出；红包图收回容器内 */
  .deposit-table {
    padding: 16px 24px;
  }

  .deposit-table .table-head,
  .deposit-table .table-row {
    grid-template-columns: minmax(140px, 1fr) minmax(180px, 1.4fr) 1.6fr;
  }

  .table-wrap .table-deco {
    right: 0;
  }

  /* 叠加赠礼：三张放不下就换行居中 */
  .gift-list {
    flex-wrap: wrap;
    justify-content: center;
  }

  .gift-item {
    flex: 1 1 340px;
    max-width: 379px;
  }

  /* 期刊墙：换行居中 */
  .quality-wall {
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px 27px;
  }

  /* 专项征稿：容器收回弹性，卡片一/两列自适应 */
  .special-module .special-wrap {
    width: auto;
  }

  .special-module .special-list {
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  }

  .special-module .special-card {
    width: 100%;
  }

  .special-module .card-body {
    flex: 1 1 0;
    min-width: 0;
  }

  /* 卡片变窄时，半宽信息项跟着收缩，不换行撑破高度 */
  .special-module .meta-item {
    flex: 1 1 0;
  }
}

/* ================= 移动端：≤768px（750 设计稿，1rem = 100 设计稿像素） ================= */

@media (max-width: 768px) {
  .pc {
    display: none;
  }
  .mobile {
    display: block;
  }
  .wrap {
    width: auto;
    padding: 0 0.26rem;
    box-sizing: border-box;
  }

  /* 只在小屏改 root 字号，PC 的 px 完全不受影响；max 兜底：窄于 375px 的设备不再缩小，字号保持 375 档 */
  html {
    font-size: max(50px, calc(100vw / var(--design-w)));
  }

  .page-header .logo {
    width: 1.76rem;
    height: 0.68rem;
    margin-left: 0.15rem;
  }

  /* ---- 区块标题：图标 + 标题横排，标题可换两行 ---- */
  .sec-head {
    justify-content: flex-start;
    gap: 0.12rem;
  }

  .sec-head .head-icon {
    width: 0.78rem;
    height: 0.7rem;
    flex: 0 0 0.78rem;
  }

  .sec-head .head-title,
  .sec-deposit .sec-head .head-title,
  .sec-live .sec-head .head-title {
    font-size: 0.32rem;
    line-height: 0.4rem;
    text-align: left;
  }
  .sec-head .head-title em::before {
    width: 1.25rem;
    height: 0.2rem;
    background-size: 100% 100%;
    bottom: 0;
    left: 0;
  }

  .sec-sub {
    font-size: 0.25rem;
    line-height: 0.34rem;
    text-align: left;
  }

  /* 移动端红色数字与正文同字号 */
  .sec-sub b {
    font-size: 0.25rem;
  }

  .sec-sub s {
    font-size: 0.25rem;
  }

  /* ================= 福利1 ================= */
  .sec-deposit {
    padding: 0.38rem 0 0.77rem;
  }

  .sec-deposit .sec-sub {
    margin-top: 0.04rem;
  }

  /* 定金表：保留三列 */
  .table-wrap {
    margin-top: 0.32rem;
  }
  .table-note {
    font-size: 0.22rem;
    margin-top: 0.22rem;
  }

  .deposit-table {
    padding: 0.2rem 0.15rem 0.19rem;
    border-width: 0.03rem;
    border-radius: 0.18rem;
  }

  .deposit-table .table-head,
  .deposit-table .table-row {
    grid-template-columns: 2rem 2.4rem 1fr;
  }
  .deposit-table .table-row span {
    padding: 0 0.08rem;
  }

  .deposit-table .table-head {
    height: 0.4rem;
    font-size: 0.24rem;
  }

  .deposit-table .table-row {
    height: auto;
    min-height: 0.9rem;
    margin-top: 0.18rem;
    font-size: 0.24rem;
  }

  .deposit-table .price b,
  .deposit-table .gain b {
    font-size: 0.32rem;
  }

  .deposit-table .gain s {
    font-size: 0.24rem;
  }

  .deposit-table .table-note {
    margin-top: 0.17rem;
    font-size: 0.22rem;
    color: #979797;
  }

  /* 叠加赠礼 */
  .gift-head {
    margin-top: 0.36rem;
    gap: 0.05rem;
  }

  .gift-head .gift-icon {
    width: 0.45rem;
    height: 0.45rem;
  }

  .gift-head h3 {
    font-size: 0.32rem;
    line-height: 0.48rem;
  }
  .gift-head h3 .lead-text::before {
    width: 1.12rem;
    height: 0.18rem;
    bottom: 0;
    left: 0;
  }

  .gift-list {
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.3rem;
  }

  .gift-item {
    width: 100%;
    height: auto;
    min-height: 1.56rem;
    padding: 0.25rem 0.9rem 0.25rem 0.28rem;
    border-width: 0.03rem;
    border-radius: 0.18rem;
  }

  .gift-item--blue {
    background-image: url(../img/itemBg1-h5.png);
  }
  .gift-item--purple {
    background-image: url(../img/itemBg2-h5.png);
  }
  .gift-item--orange {
    background-image: url(../img/itemBg3-h5.png);
  }

  .gift-item .gift-badge {
    top: 0.08rem;
    right: 0.05rem;
    width: 0.81rem;
    height: 0.48rem;
  }

  .gift-item h4 {
    font-size: 0.32rem;
    line-height: 0.48rem;
    margin-bottom: 0.15rem;
  }

  .gift-item p {
    font-size: 0.24rem;
    line-height: 0.33rem;
  }

  /* 联系编辑老师：保持横排 */
  .contact-bar {
    gap: 0.13rem;
    height: auto;
    margin-top: 0.62rem;
    padding: 0.1rem 0.15rem;
    border-radius: 0.1rem;
    overflow: hidden;
    background-size: cover;
  }

  .contact-bar .contact-gift {
    width: 1.2rem;
    height: 1.2rem;
    flex: 0 0 1.2rem;
  }

  .contact-bar .contact-text {
    margin: 0 0.3rem 0 0;
    font-size: 0.25rem;
    line-height: 0.4rem;
    text-align: left;
  }

  .contact-bar .contact-code {
    width: 1.13rem;
    height: 1.13rem;
  }

  /* ================= 福利2 ================= */
  .sec-quality {
    padding: 0.48rem 0 0.7rem;
    background-image: url("../img/bg-h5.png");
  }

  .sec-quality .sec-sub {
    margin-top: 0.26rem;
  }

  .block-title {
    font-size: 0.26rem;
    line-height: 0.28rem;
  }

  /* 期刊封面墙：六个一行改三个一行 */
  .quality-wall {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.22rem 0.44rem;
    padding: 0.2rem 0.3rem;
    border-radius: 0.18rem;
  }

  .quality-wall .wall-item {
    width: 100%;
    height: auto;
    aspect-ratio: 184 / 233;
  }

  .sec-quality .quality-block {
    margin-top: 0.32rem;
  }

  /* ================= 福利3 ================= */
  .sec-live {
    padding: 0.5rem 0 0.8rem;
  }
  .sec-live .sec-sub {
    margin-top: 0.35rem;
  }
  .ad-bar {
    margin-top: 0.2rem;
  }

  .live-list {
    gap: 0.3rem;
    margin-top: 0.3rem;
  }

  /* 直播卡片：二维码移到下方，与链接横排 */
  .live-item {
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.3rem 0.3rem 0.25rem;
    border-radius: 0.15rem;
  }

  .live-item .live-tags {
    gap: 0.13rem;
  }

  .live-item .tag {
    height: 0.46rem;
    padding: 0 0.15rem;
    font-size: 0.24rem;
    line-height: 0.44rem;
  }

  .live-item .live-title {
    margin-top: 0.24rem;
    font-size: 0.26rem;
    line-height: 0.4rem;
  }

  .live-item .live-desc {
    margin-top: 0.2rem;
    font-size: 0.24rem;
    line-height: 0.35rem;
  }

  /* 分隔线 + 左对齐的二维码行 */
  .live-item .live-side {
    flex: 1;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-end;
    width: 100%;
    gap: 0.16rem;
    padding-top: 0.25rem;
    border-top: 0.03rem solid rgba(209, 209, 209, 0.55);
  }

  .live-item .live-code {
    width: 1.45rem;
    height: 1.45rem;
  }

  .live-item .live-link {
    font-size: 0.24rem;
  }

  .live-more {
    margin-top: 0.26rem;
    font-size: 0.26rem;
  }

  /* ================= 专项征稿推荐模块：单列，卡片保持左右结构 ================= */
  .special-module {
    margin-top: 0.32rem;
  }

  .special-module .special-wrap {
    width: auto;
    padding: 0;
  }

  .special-module .special-title {
    margin-bottom: 0.2rem;
    font-size: 0.26rem;
    line-height: 0.28rem;
  }

  .special-module .special-list {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .special-module .special-card {
    gap: 0.2rem;
    width: 100%;
    height: auto;
    padding: 0.2rem 0.2rem 0.25rem;
    border-radius: 0.1rem;
  }

  .special-module .card-body {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
  }

  .special-module .card-tag {
    font-size: 0.2rem;
    line-height: 0.2rem;
  }

  .special-module .card-name {
    margin-top: 0.14rem;
    font-size: 0.26rem;
    line-height: 0.3rem;
  }

  .special-module .card-meta {
    column-gap: 0;
    row-gap: 0.09rem;
    margin-top: 0.15rem;
    font-size: 0.22rem;
    line-height: 0.28rem;
  }

  .special-module .meta-item {
    flex: 0 0 50%;
    padding-right: 0.1rem;
  }

  .special-module .card-cover {
    width: 1.5rem;
    flex: 0 0 1.5rem;
    height: auto;
    aspect-ratio: 150 / 199;
  }


  .special-module .special-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.12rem;
    margin-top: 0.58rem;
    padding: 0.1rem 0.15rem;
    background: url(../img/contactBg.png) no-repeat center;
    background-size: cover;
    border-radius: 0.18rem;
  }

  .special-module .special-contact .contact-gift {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 1.05rem;
  }

  .special-module .special-contact-text {
    margin: 0 0.3rem 0 0;
    font-size: 0.25rem;
    font-weight: 700;
    line-height: 0.4rem;
    letter-spacing: 1px;
    color: #fff;
  }

  .special-module .special-contact-text em {
    font-style: normal;
    color: #ffff00;
  }

  .special-module .special-contact-code {
    width: 1.04rem;
    height: 1.04rem;
    background: #fff;
    border-radius: 0.05rem;
  }

  .special-module .special-more {
    width: 3.21rem;
    height: 0.79rem;
    margin-top: 0.65rem;
    border-radius: 0.1rem;
    font-size: 0.28rem;
    line-height: 0.79rem;
  }
}
