
#rhyfell-blog,
#rhyfell-blog * {
  box-sizing: border-box;
}

#rhyfell-blog {
  --rb-heading: #101c2c;
  --rb-text: #586e88;
  --rb-accent: #63d6c5;
  --rb-hover: #83e3d5;
  --rb-link: #087f83;
  --rb-mint: #edf9f6;
  --rb-border: #dce7ed;

  width: 100%;
  padding: 72px 24px;
  background: #ffffff;
  color: var(--rb-text);
  font-family: Arial, Helvetica, sans-serif;
}

#rhyfell-blog [hidden] {
  display: none !important;
}

#rhyfell-blog .rb-wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

#rhyfell-blog button {
  font-family: inherit;
  text-transform: none;
  appearance: none;
  -webkit-appearance: none;
}

#rhyfell-blog .rb-heading {
  margin-bottom: 38px;
  text-align: center;
}

#rhyfell-blog .rb-heading h2 {
  margin: 0;
  padding: 0;
  color: var(--rb-heading);
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.025em;
  text-transform: none;
}

#rhyfell-blog .rb-divider {
  width: 48px;
  height: 3px;
  margin: 20px auto;
  border-radius: 3px;
  background: var(--rb-accent);
}

#rhyfell-blog .rb-intro {
  max-width: 680px;
  margin: 0 auto;
  color: var(--rb-text);
  font-size: 16px;
  line-height: 1.8;
}

/* 首页：上面两张，下面三张 */
#rhyfell-blog .rb-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px 26px;
  align-items: stretch;
}

#rhyfell-blog .rb-card {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #e2e9ee;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 5px 20px rgba(16, 28, 44, .055);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

#rhyfell-blog .rb-card:nth-child(-n+2) {
  grid-column: span 3;
}

#rhyfell-blog .rb-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #f5f8fa;
  cursor: pointer;
}

#rhyfell-blog .rb-card:nth-child(-n+2) .rb-cover {
  aspect-ratio: 16 / 9;
}

#rhyfell-blog .rb-cover img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: cover;
  object-position: center;
  transition: transform 300ms ease;
}

#rhyfell-blog .rb-category {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--rb-accent);
  color: #10252b;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .03em;
  pointer-events: none;
}

#rhyfell-blog .rb-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 22px;
}

#rhyfell-blog .rb-card:nth-child(-n+2) .rb-card-body {
  padding: 26px;
}

#rhyfell-blog .rb-card-title {
  margin: 0 0 15px;
  padding: 0;
  color: var(--rb-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.015em;
  text-transform: none;
}

#rhyfell-blog .rb-card:nth-child(-n+2) .rb-card-title {
  font-size: 23px;
}

#rhyfell-blog .rb-title-button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}

#rhyfell-blog .rb-excerpt {
  margin: 0 0 24px;
  color: var(--rb-text);
  font-size: 14px;
  line-height: 1.8;
}

#rhyfell-blog .rb-card:nth-child(-n+2) .rb-excerpt {
  font-size: 15px;
}

#rhyfell-blog .rb-more {
  display: inline-block;
  align-self: flex-start;
  margin: auto 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--rb-link);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}

#rhyfell-blog .rb-meta {
  padding: 16px 22px;
  border-top: 1px solid #e8eef2;
  color: #778595;
  font-size: 12px;
  line-height: 1.6;
}

/* 正文阅读区域 */
#rhyfell-blog .rb-reader {
  width: 100%;
  scroll-margin-top: 90px;
}

#rhyfell-blog .rb-back {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin: 0 0 24px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--rb-link);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}

#rhyfell-blog .rb-article-header {
  padding: 38px 32px;
  border: 1px solid #d7eee8;
  border-radius: 12px;
  background: var(--rb-mint);
  text-align: center;
}

#rhyfell-blog .rb-eyebrow {
  margin: 0 0 14px;
  color: #12695d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.5;
}

#rhyfell-blog .rb-article-title {
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  color: var(--rb-heading);
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.025em;
  text-transform: none;
}

#rhyfell-blog .rb-article-meta {
  margin: 18px 0 0;
  color: #60778a;
  font-size: 13px;
  line-height: 1.7;
}

#rhyfell-blog .rb-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 36px;
  align-items: start;
  margin-top: 34px;
}

#rhyfell-blog .rb-content {
  min-width: 0;
  color: #4d6176;
  font-size: 16px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

#rhyfell-blog .rb-content p {
  margin: 0 0 20px;
}

#rhyfell-blog .rb-content h2 {
  margin: 34px 0 16px;
  padding: 0;
  color: var(--rb-heading);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: none;
}

#rhyfell-blog .rb-content h3 {
  margin: 24px 0 12px;
  color: var(--rb-heading);
  font-size: 19px;
  line-height: 1.45;
}

#rhyfell-blog .rb-content ul,
#rhyfell-blog .rb-content ol {
  margin: 0 0 22px;
  padding-left: 24px;
}

#rhyfell-blog .rb-content li {
  margin-bottom: 10px;
}

#rhyfell-blog .rb-content strong {
  color: var(--rb-heading);
}

#rhyfell-blog .rb-article-image {
  margin: 0 0 28px;
  overflow: hidden;
  border: 1px solid var(--rb-border);
  border-radius: 10px;
  background: #f7fafb;
}

#rhyfell-blog .rb-article-image img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  border: 0;
}

#rhyfell-blog .rb-image-message {
  margin: 0;
  padding: 20px;
  color: #586e88;
  font-size: 14px;
}

#rhyfell-blog .rb-callout {
  margin: 24px 0;
  padding: 22px 24px;
  border-left: 3px solid var(--rb-accent);
  border-radius: 0 8px 8px 0;
  background: #edf9f6;
}

#rhyfell-blog .rb-callout p:last-child {
  margin-bottom: 0;
}

#rhyfell-blog .rb-table-wrap {
  margin: 24px 0;
  overflow-x: auto;
  border: 1px solid var(--rb-border);
  border-radius: 8px;
}

#rhyfell-blog table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.7;
}

#rhyfell-blog th,
#rhyfell-blog td {
  padding: 14px 16px;
  border-bottom: 1px solid #e5ecf0;
  text-align: left;
  vertical-align: top;
}

#rhyfell-blog th {
  background: #edf9f6;
  color: var(--rb-heading);
  font-weight: 700;
}

#rhyfell-blog tr:last-child td {
  border-bottom: 0;
}

#rhyfell-blog tbody tr:nth-child(even) {
  background: #f8fafb;
}

/* 正文侧栏 */
#rhyfell-blog .rb-sidebar {
  position: sticky;
  top: 28px;
}

#rhyfell-blog .rb-sidebar-box {
  margin-bottom: 22px;
  padding: 24px 22px;
  border: 1px solid var(--rb-border);
  border-radius: 10px;
  background: #ffffff;
}

#rhyfell-blog .rb-sidebar-title {
  margin: 0 0 16px;
  color: var(--rb-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

#rhyfell-blog .rb-related-button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid #e8eef2;
  background: transparent;
  color: #536c80;
  font-size: 13px;
  line-height: 1.7;
  text-align: left;
  cursor: pointer;
}

#rhyfell-blog .rb-related-button:last-child {
  border-bottom: 0;
}

#rhyfell-blog .rb-contact-box {
  border-color: #d3ece5;
  border-top: 3px solid var(--rb-accent);
  background: #f5fbf9;
}

#rhyfell-blog .rb-contact-box p {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.8;
}

#rhyfell-blog .rb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  max-width: 100%;
  padding: 14px 24px;
  border: 0;
  border-radius: 5px;
  background: var(--rb-accent);
  color: #10252b;
  font: 700 15px/1.4 Arial, sans-serif;
  text-align: center;
  text-decoration: none;
}

#rhyfell-blog .rb-contact-box .rb-button {
  width: 100%;
}

#rhyfell-blog .rb-article-footer {
  margin: 32px 0 24px;
  padding: 26px;
  border: 1px solid #d3ece5;
  border-radius: 10px;
  background: #edf9f6;
}

#rhyfell-blog .rb-article-footer h3 {
  margin-top: 0;
}

#rhyfell-blog :is(a, button):focus-visible {
  outline: 3px solid #12695d;
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  #rhyfell-blog .rb-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(16, 28, 44, .09);
  }

  #rhyfell-blog .rb-card:hover .rb-cover img {
    transform: scale(1.035);
  }

  #rhyfell-blog .rb-more:hover,
  #rhyfell-blog .rb-related-button:hover {
    color: #12695d;
  }

  #rhyfell-blog .rb-button:hover {
    background: var(--rb-hover);
  }
}

@media (max-width: 900px) {
  #rhyfell-blog .rb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #rhyfell-blog .rb-card,
  #rhyfell-blog .rb-card:nth-child(-n+2) {
    grid-column: span 1;
  }

  #rhyfell-blog .rb-card:nth-child(-n+2) .rb-cover {
    aspect-ratio: 16 / 10;
  }

  #rhyfell-blog .rb-card:nth-child(-n+2) .rb-card-title {
    font-size: 20px;
  }

  #rhyfell-blog .rb-card:nth-child(-n+2) .rb-card-body {
    padding: 24px 22px;
  }

  #rhyfell-blog .rb-card:nth-child(-n+2) .rb-excerpt {
    font-size: 14px;
  }

  #rhyfell-blog .rb-article-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  #rhyfell-blog .rb-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 600px) {
  #rhyfell-blog {
    padding: 52px 18px;
  }

  #rhyfell-blog .rb-grid,
  #rhyfell-blog .rb-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

  #rhyfell-blog .rb-article-header {
    padding: 28px 20px;
  }

  #rhyfell-blog .rb-content,
  #rhyfell-blog .rb-intro {
    font-size: 15px;
  }

  #rhyfell-blog .rb-content h2 {
    font-size: 23px;
  }

  #rhyfell-blog .rb-article-layout {
    gap: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #rhyfell-blog .rb-card,
  #rhyfell-blog .rb-cover img {
    transition: none;
  }
}
