@charset "utf-8";

.knowledge-page {
  background: #fff;
}

.knowledge-tabs {
  grid-template-columns: repeat(4, 1fr);
}

.knowledge-summary {
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #d7d7d7;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #fffef3 100%);
}

.knowledge-summary h1 {
  margin: 0;
  color: #c60000;
  text-align: center;
  font-size: 24px;
  line-height: 30px;
  font-weight: 900;
}

.knowledge-summary p {
  margin: 6px 0 0;
  color: #222;
  text-align: center;
  font-size: 16px;
  line-height: 24px;
  font-weight: 800;
}

.knowledge-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.knowledge-stat {
  display: grid;
  gap: 2px;
  min-height: 58px;
  padding: 8px;
  border: 1px solid #dfe5df;
  border-radius: 7px;
  background: #fff;
  text-align: center;
}

.knowledge-stat b {
  color: #08792a;
  font-size: 22px;
  line-height: 25px;
  font-weight: 900;
}

.knowledge-stat span {
  color: #333;
  font-size: 14px;
  line-height: 18px;
  font-weight: 800;
}

.knowledge-zodiac-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.knowledge-zodiac-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 64px;
  padding: 8px;
  border: 1px solid #dfe5df;
  border-radius: 7px;
  background: #fbfffc;
}

.knowledge-zodiac-card strong {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(180deg, #09a638 0%, #007719 100%);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.knowledge-zodiac-card span {
  min-width: 0;
  color: #111;
  font-size: 16px;
  line-height: 22px;
  font-weight: 900;
}

.knowledge-group-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.knowledge-group-card {
  border: 1px solid #dfe5df;
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
}

.knowledge-group-card h3 {
  margin: 0;
  padding: 8px 10px;
  border-bottom: 1px solid #e4e4e4;
  color: #c60000;
  text-align: center;
  font-size: 18px;
  line-height: 24px;
  font-weight: 900;
}

.knowledge-group-card p {
  margin: 0;
  padding: 9px 10px;
  color: #111;
  font-size: 16px;
  line-height: 25px;
  font-weight: 900;
  word-break: break-word;
}

.knowledge-table-wrap {
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.knowledge-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.knowledge-table th,
.knowledge-table td {
  border: 1px solid #d0d0d0;
  padding: 7px 5px;
  text-align: center;
  font-size: 15px;
  line-height: 22px;
  font-weight: 900;
}

.knowledge-table th {
  background: #fff8db;
  color: #08792a;
}

.knowledge-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  font-size: 17px;
  line-height: 1;
  font-weight: 900;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .24), inset 0 -3px 0 rgba(0, 0, 0, .14);
}

.knowledge-ball-red {
  background: linear-gradient(180deg, #f41616 0%, #c90000 100%);
}

.knowledge-ball-blue {
  background: linear-gradient(180deg, #0f77db 0%, #0055ad 100%);
}

.knowledge-ball-green {
  background: linear-gradient(180deg, #09a138 0%, #087723 100%);
}

.knowledge-wave-red {
  color: #d00000;
}

.knowledge-wave-blue {
  color: #0757a8;
}

.knowledge-wave-green {
  color: #08792a;
}

.knowledge-wx-jin {
  color: #c69000;
}

.knowledge-wx-mu {
  color: #07882b;
}

.knowledge-wx-shui {
  color: #075ec2;
}

.knowledge-wx-huo {
  color: #d00000;
}

.knowledge-wx-tu {
  color: #915f18;
}

html.is-embedded,
html.is-embedded body {
  min-width: 0;
  background: #fff;
}

html.is-embedded .detail-page {
  max-width: none;
  min-height: 0;
  padding: 0;
  background: #fff;
}

html.is-embedded .detail-header,
html.is-embedded .detail-home-header,
html.is-embedded .detail-strip,
html.is-embedded .detail-ad-stack,
html.is-embedded .detail-ad-banner-inline,
html.is-embedded .detail-footer {
  display: none;
}

html.is-embedded .knowledge-summary,
html.is-embedded .detail-section {
  margin: 0 0 8px;
}

html.is-embedded .knowledge-summary {
  border-radius: 0 0 8px 8px;
}

html.is-embedded .detail-section:last-of-type {
  margin-bottom: 0;
}

@media (max-width: 420px) {
  .knowledge-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .knowledge-summary h1 {
    font-size: 22px;
    line-height: 28px;
  }

  .knowledge-stat-grid,
  .knowledge-zodiac-grid,
  .knowledge-group-grid {
    grid-template-columns: 1fr;
  }

  .knowledge-table th,
  .knowledge-table td {
    padding: 6px 3px;
    font-size: 13px;
    line-height: 20px;
  }

  .knowledge-num {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }
}

.hct-attribute-shell {
  border: 1px solid #d8ccb4;
  background: #e5e5e5;
  overflow: hidden;
}

.hct-attr-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
}

.hct-attr-table + .hct-attr-table {
  margin-top: 6px;
}

.hct-attr-table th,
.hct-attr-table td {
  border: 1px solid #d8ccb4;
}

.hct-attr-table th {
  height: 36px;
  padding: 5px 6px;
  background: #f1f1f1;
  color: #111;
  text-align: center;
  font-size: 18px;
  line-height: 24px;
  font-weight: 900;
}

.hct-attr-table td {
  padding: 6px 5px;
  color: #111;
  text-align: center;
  font-size: 15px;
  line-height: 24px;
  font-weight: 800;
  word-break: break-word;
}

.hct-zodiac-overview > tbody > tr > td {
  padding: 0;
}

.hct-zodiac-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  background: #fff;
  list-style: none;
}

.hct-zodiac-list li {
  min-width: 0;
  min-height: 76px;
  padding: 6px 3px;
  border-right: 1px solid #d8ccb4;
  border-bottom: 1px solid #d8ccb4;
  text-align: center;
}

.hct-zodiac-list li:nth-child(3n) {
  border-right: 0;
}

.hct-zodiac-list li:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.hct-zodiac-list dl,
.hct-zodiac-list dt,
.hct-zodiac-list dd {
  margin: 0;
  padding: 0;
}

.hct-zodiac-list dt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  color: #111;
  font-size: 15px;
  line-height: 20px;
  font-weight: 900;
  white-space: nowrap;
}

.hct-zodiac-list img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.hct-zodiac-list dd {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
  margin-top: 4px;
}

.hct-attr-label-col {
  width: 64px;
}

.hct-attr-left {
  text-align: left !important;
}

.hct-attr-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 20px;
  margin: 1px 2px;
  padding: 0 3px;
  border-radius: 2px;
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  font-weight: 900;
  vertical-align: middle;
}

.hct-attr-red {
  background: #f00;
}

.hct-attr-blue {
  background: #3366ff;
}

.hct-attr-green {
  background: #009933;
}

.hct-wave-red {
  color: #f00;
}

.hct-wave-blue,
.hct-attr-blue-text,
.hct-attr-groups b {
  color: #3366ff;
}

.hct-wave-green {
  color: #009933;
}

.hct-attr-jin {
  color: #d6a800;
}

.hct-attr-mu {
  color: #33aa33;
}

.hct-attr-shui {
  color: #3399ff;
}

.hct-attr-huo {
  color: #ff6600;
}

.hct-attr-tu {
  color: #b47a00;
}

.hct-attr-groups td {
  padding-right: 8px;
  padding-left: 8px;
  text-align: left;
}

.hct-attribute-actions {
  margin-top: 10px;
}

html.is-embedded .hct-attribute-shell {
  border: 0;
}

html.is-embedded .hct-attribute-actions {
  display: none;
}

@media (max-width: 420px) {
  .hct-attr-table th {
    height: 34px;
    font-size: 16px;
    line-height: 22px;
  }

  .hct-attr-table td {
    padding: 5px 3px;
    font-size: 13px;
    line-height: 22px;
  }

  .hct-zodiac-list li {
    min-height: 70px;
    padding: 5px 2px;
  }

  .hct-zodiac-list dt {
    gap: 1px;
    font-size: 13px;
  }

  .hct-zodiac-list img {
    width: 34px;
    height: 34px;
  }

  .hct-attr-label-col {
    width: 56px;
  }

  .hct-attr-num {
    min-width: 22px;
    height: 19px;
    margin-right: 1px;
    margin-left: 1px;
    font-size: 12px;
    line-height: 17px;
  }
}
