.bazi-fortune-card {
  margin-top: 10px;
  padding: 8px 0;
}

.bazi-fortune-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px 4px;
}

.bazi-fortune-card h2 {
  margin: 0;
  color: #111;
  font-family: inherit;
  font-size: 15px;
  font-weight: 900;
}

.bazi-fortune-card h2 small {
  color: #777;
  font-size: 11px;
  font-weight: 600;
}

.bazi-switch {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: #5c5d5e;
  font-size: 13px;
  font-weight: 600;
}

.bazi-switch i {
  position: relative;
  width: 34px;
  height: 19px;
  border-radius: 99px;
  background: #80be8b;
}

.bazi-switch i::after {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  content: "";
}

.bazi-switch:not(.is-on) i {
  background: #d5d5d5;
}

.bazi-switch:not(.is-on) i::after {
  right: 17px;
}

.bazi-luck-strip,
.bazi-year-strip {
  display: grid;
  grid-auto-columns: 50px;
  grid-auto-flow: column;
  overflow-x: auto;
  padding: 0 14px 8px;
  scrollbar-width: none;
}

.bazi-luck-strip::-webkit-scrollbar,
.bazi-year-strip::-webkit-scrollbar {
  display: none;
}

.bazi-luck-strip button,
.bazi-year-strip button {
  display: grid;
  gap: 4px;
  justify-items: center;
  min-height: 45px;
  padding: 4px 2px;
  border-left: 1px solid rgba(30, 30, 30, 0.06);
  color: #5f6263;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.bazi-luck-strip button:first-child,
.bazi-year-strip button:first-child {
  border-left: 0;
}

.bazi-luck-strip button:hover,
.bazi-year-strip button:hover {
  transform: translateY(-1px);
}

.bazi-luck-strip button.is-active,
.bazi-year-strip button.is-active {
  border: 0;
  border-radius: 7px;
  background: #f4fbf5;
  box-shadow: 0 3px 14px rgba(24, 42, 25, 0.1);
  color: #078246;
}

.bazi-luck-strip span,
.bazi-year-strip span {
  font-size: 10px;
  font-weight: 650;
}

.bazi-luck-strip em,
.bazi-year-strip em {
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
}

.bazi-luck-strip strong,
.bazi-year-strip strong {
  color: #111;
  font-size: 13px;
  font-weight: 760;
}

.bazi-luck-strip .is-active strong,
.bazi-year-strip .is-active strong {
  color: #078246;
}

.bazi-fortune-card h3 {
  margin: 0;
  padding: 0 15px 4px;
  color: #111;
  font-size: 14px;
  font-weight: 900;
}

.bazi-year-strip {
  grid-auto-columns: 45px;
  padding-bottom: 0;
}

.bazi-year-strip--wrap {
  grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
  grid-auto-flow: row;
  grid-auto-columns: initial;
  gap: 6px;
  overflow: visible;
  padding: 8px 0 0;
}

.bazi-action-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 66px;
  margin: 10px 4px 0;
  overflow: hidden;
}

.bazi-action-card button {
  display: grid;
  gap: 5px;
  place-items: center;
  align-content: center;
  border-left: 1px solid rgba(30, 30, 30, 0.06);
  transition: background 180ms ease;
}

.bazi-action-card button:first-child {
  border-left: 0;
}

.bazi-action-card button:hover {
  background: rgba(12, 139, 68, 0.05);
}

.bazi-action-card i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(11, 130, 70, 0.38);
  border-radius: 10px;
  color: #14884e;
  font-style: normal;
}

.bazi-action-card svg {
  width: 23px;
  height: 23px;
}

.bazi-action-card strong {
  color: #111;
  font-size: 13px;
  font-weight: 850;
}

.bazi-action-card span {
  color: #696969;
  font-size: 11px;
  font-weight: 500;
}

.bazi-safe-note {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 15px 0 0;
  color: #6f7370;
  font-size: 13px;
  font-weight: 550;
}

.bazi-safe-note svg {
  width: 18px;
  height: 18px;
  color: #14884e;
}

@media (max-width: 390px) {
  .bazi-luck-strip { grid-auto-columns: 51px; }
  .bazi-year-strip { grid-auto-columns: 47px; }
  .bazi-action-card strong { font-size: 13px; }
  .bazi-action-card span { font-size: 11px; }
}
