span.red {
  color: red;
}

/* Ads */
@media (prefers-color-scheme: dark) {
  #uscreditcards101_adhesion {
    background-color: rgba(9, 9, 9, 0.9) !important;
  }
}

html body div.widget_freestar_widget {
  background: none;
}

img.loading {
  background: #888;
}

.post-content img {
  width: auto;
}

/* Table of content */
div#toc_container {
  background-color: transparent;
}

.mobile-sidebar .current>a {
  font-weight: 800;
}

.mobile-sidebar .current .sub-menu a:before {
  content: "-> ";
}

@media (prefers-color-scheme: dark) {

  .tablepress thead th,
  .tablepress tfoot th {
    background-color: #000044 !important;
  }

  .tablepress .even td {
    background-color: transparent !important;
  }

  .tablepress .odd td {
    background-color: #555 !important;
  }

  .tablepress .row-hover tr:hover td {
    background-color: #666 !important;
  }
}

/* Cards for credit card */
.pd-card {
  display: table;
  padding: 0.01em 16px;
  border-radius: 10px;
  margin-top: 20px;
  margin-bottom: 20px;
  box-shadow: 0 5px 10px 1px rgb(0 0 0 / 10%);
  border: 1px solid #eee;
  width: 100%;
}

.pd-card-left,
.pd-card-right {
  float: left;
  width: 100%;
}

.pd-card-left {
  text-align: center;
  padding: 15px;
}

.pd-card-left img {
  width: 100%;
  max-width: 300px;
}

.pd-card-left .btn {
  font-size: 120%;
  color: #fff;
  padding: 5px 35px 5px 35px;
}

.pd-card-left .btn.apply {
  background-color: #3eb564;
}

.pd-card-left .btn.more {
  background-color: #2c63ff;
}

.post-content .pd-card-right a:not(.btn) {
  text-decoration: none;
}

.pd-card-right p {
  font-size: 100%;
}

.pd-card-right p.title {
  font-size: 130%;
  margin: 5px;
}

.pd-card-right p.subtitle {
  font-style: italic;
}

@media (min-width: 601px) {
  .pd-card-left {
    width: 33.33333%;
  }

  .pd-card-right {
    width: 66.66666%;
  }
}

@media (prefers-color-scheme: dark) {
  .pd-card {
    box-shadow: 0 5px 10px 1px rgb(255 255 255 / 10%);
    border: 1px solid #222;
  }
}

/* Google custom search */
.gsc-search-box,
.gsc-search-box th,
.gsc-search-box td,
.gsc-results-wrapper-overlay table,
.gsc-results-wrapper-overlay th,
.gsc-results-wrapper-overlay td {
  border: none !important;
  padding: 0 !important;
}

.gsc-search-box table {
  margin-bottom: 0;
}

.gsc-control-cse {
  background-color: transparent !important;
  border: none !important;
}

.gsc-input-box input {
  background-image: none !important;
}

@media (prefers-color-scheme: dark) {
  .gsc-input-box input {
    background: #333 !important;
  }
}

.btn {
  display: inline-block;
  font-weight: 400;
  color: #212529;
  text-align: center;
  vertical-align: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-block+.btn-block {
  margin-top: 0.5rem;
}

.btn-outline-primary {
  color: #007bff;
  border-color: #007bff;
}

.btn-outline-primary:hover {
  color: #fff;
  background-color: #007bff;
  border-color: #007bff;
}

.btn-outline-primary.focus,
.btn-outline-primary:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5);
}

.btn-outline-primary.disabled,
.btn-outline-primary:disabled {
  color: #007bff;
  background-color: transparent;
}

.border-bottom {
  border-bottom: 1px solid #dee2e6;
}

/* Bottom promo */
.blog-follow-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 24px;
  background-color: #f9f9f9;
  border-radius: 12px;
  border: 1px solid #eee;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.info-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .blog-follow-container {
      flex-direction: column;
      gap: 15px;
      padding: 15px;
  }

  .info-card {
      gap: 15px;
      padding: 15px;
  }
}

/* 卡片1: 微信群 (绿色系) */
.info-card.wechat-group {
  background-color: #f0f9eb; /* 浅绿色背景 */
  border: 1px solid #e1f3d8;
}

/* 卡片2: 知识星球 (蓝色系) */
.info-card.knowledge-planet {
  background-color: #edf5fd; /* 浅蓝色背景 */
  border: 1px solid #dbeafe;
}

/* QR码图片样式 */
.info-card .qr-image {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 8px;
  background-color: #fff;
  padding: 4px;
  border: 1px solid #ddd;
}

/* 文本内容样式 */
.info-card .card-text-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-card .card-text-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 8px;
  color: #111;
}

.info-card .card-text-content p {
  font-size: 0.9rem;
  margin: 0;
  color: #333;
  line-height: 1.5;
}