/* ===== zhichenzhuanzhu_xingshi.css - 专著出版形式 ===== */

/* ===== 电脑端（≥1024px）===== */
.zhichenzhuanzhu-xingshi {
  padding: 48px 5%;
  background: #fdfbf7;
  border: none;
  margin: 0;
}

.xs-title {
  text-align: center;
  color: #333;
  font-size: 45px;
  margin-bottom: 10px;
  font-weight: bolder;
  font-family: Source Han Sans CN;
}

.xs-red {
  color: #b8363a;
}

.xs-desc {
  text-align: center;
  color: #666;
  font-size: 18px;
  margin-bottom: 36px;
}

.xs-grid {
  display: flex;
  justify-content: center;
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.xs-card {
  flex: 0 0 300px;
  text-align: center;
  padding: 36px 24px 20px;
  background: #fdfbf7;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.xs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(184,54,58,0.12);
}

.xs-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #b8363a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.xs-icon-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.xs-card h4 {
  color: #b8363a;
  font-size: 22px;
  margin-bottom: 12px;
  font-weight: bolder;
  font-family: Source Han Sans CN;
}

.xs-card p {
  color: #666;
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.xs-btn {
  display: inline-block;
  padding: 10px 24px;
  background: #b8363a;
  color: #fff;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s;
  margin-top: auto;
  margin-bottom: 16px;
}

.xs-btn:hover {
  background: #a02d31;
}

/* ===== 折叠屏展开态（600~1023px）===== */
@media (min-width: 600px) and (max-width: 1023px) {
  .zhichenzhuanzhu-xingshi {
    padding: 36px 5%;
  }
  .xs-title {
    font-size: 38px;
  }
  .xs-desc {
    font-size: 17px;
    margin-bottom: 28px;
  }
  .xs-grid {
    gap: 16px;
  }
  .xs-card {
    flex: 0 0 180px;
    padding: 28px 16px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .xs-icon-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
  }
  .xs-icon-img {
    width: 36px;
    height: 36px;
  }
  .xs-card h4 {
    font-size: 20px;
  }
  .xs-card p {
    font-size: 14px;
  }
  .xs-btn {
    font-size: 10px;
    padding: 8px 18px;
  }
}

/* ===== xs-card-body（通用）===== */
.xs-card-body {
  /* 桌面端继承 flex column + center，无需额外样式 */
}

/* ===== 手机端（≤599px）===== */
@media (max-width: 599px) {
  .zhichenzhuanzhu-xingshi {
    padding: 32px 12px;
  }
  .xs-title {
    font-size: 28px;
    margin-bottom: 6px;
  }
  .xs-desc {
    font-size: 16px;
    margin-bottom: 16px;
  }
  .xs-grid {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .xs-card {
    flex: none;
    width: 92%;
    max-width: 400px;
    padding: 10px 12px;
    flex-direction: row;
    align-items: center;
    text-align: left;
  }
  .xs-card-body {
    flex: 1;
    min-width: 0;
    padding-right: 8px;
  }
  .xs-icon-wrap {
    width: 42px;
    height: 42px;
    margin: 0 10px 0 0;
    flex-shrink: 0;
  }
  .xs-icon-img {
    width: 26px;
    height: 26px;
  }
  .xs-card h4 {
    font-size: 18px;
    margin-bottom: 2px;
    text-align: left;
  }
  .xs-card p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 0;
    text-align: left;
  }
  .xs-btn {
    flex-shrink: 0;
    margin: 0;
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 14px;
    white-space: nowrap;
  }
}
