
#rhyfell-documents,
#rhyfell-documents *,
.rd-owned-dialog,
.rd-owned-dialog * {
  box-sizing: border-box;
}

#rhyfell-documents {
  width: 100%;
  padding: 72px 24px;
  background: #ffffff;
  color: #101c2c;
  font-family: Arial, Helvetica, sans-serif;
}

#rhyfell-documents .rd-wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

#rhyfell-documents .rd-title {
  margin: 0;
  padding: 0;
  color: #101c2c;
  font-size: clamp(32px, 3.5vw, 46px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.025em;
  text-transform: none;
}

#rhyfell-documents .rd-subtitle {
  margin: 14px 0 0;
  color: #12695d;
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 600;
  line-height: 1.45;
}

#rhyfell-documents .rd-divider {
  width: 48px;
  height: 3px;
  margin: 22px auto;
  border-radius: 3px;
  background: #63d6c5;
}

#rhyfell-documents .rd-intro {
  max-width: 780px;
  margin: 0 auto 36px;
  color: #596675;
  font-size: 16px;
  line-height: 1.8;
  text-wrap: pretty;
}

/* 横向平滑循环 */
#rhyfell-documents .rd-viewport {
  width: 100%;
  padding: 4px 0 14px;
  overflow: hidden;
  text-align: left;
  touch-action: pan-y pinch-zoom;
}

#rhyfell-documents .rd-track {
  display: flex;
  align-items: stretch;
  gap: 22px;
  width: 100%;
  will-change: transform;
}

#rhyfell-documents .rd-card {
  flex: 0 0 280px;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #e4eaf0;
  border-radius: 10px;
  background: #ffffff;
}

#rhyfell-documents .rd-image {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 12px;
  background: #f5f7f9;
  cursor: zoom-in;
}

#rhyfell-documents .rd-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  object-fit: contain;
}

#rhyfell-documents .rd-caption {
  margin: 0;
  padding: 16px 12px;
  border-top: 1px solid #edf1f4;
  color: #101c2c;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

#rhyfell-documents .rd-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

#rhyfell-documents .rd-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #dce5eb;
  border-radius: 50%;
  background: #ffffff;
  color: #101c2c;
  font: 20px/1 Arial, sans-serif;
  cursor: pointer;
}

#rhyfell-documents .rd-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 112px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #63d6c5;
  border-radius: 24px;
  background: #edf9f6;
  color: #10252b;
  font: 600 14px/1.4 Arial, sans-serif;
  cursor: pointer;
}

#rhyfell-documents .rd-play[data-playing="true"] {
  background: #63d6c5;
}

#rhyfell-documents .rd-note {
  max-width: 760px;
  margin: 18px auto 0;
  color: #687583;
  font-size: 14px;
  line-height: 1.75;
}

#rhyfell-documents .rd-cta {
  margin-top: 32px;
}

#rhyfell-documents .rd-cta-text {
  max-width: 700px;
  margin: 0 auto 20px;
  color: #596675;
  font-size: 16px;
  line-height: 1.75;
}

#rhyfell-documents .rd-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 54px;
  max-width: 100%;
  margin: 0;
  padding: 15px 30px;
  border: 0;
  border-radius: 5px;
  background: #63d6c5;
  color: #10252b;
  font: 700 16px/1.4 Arial, sans-serif;
  text-align: center;
  text-transform: none;
  cursor: pointer;
}

#rhyfell-documents :is(a, button, [tabindex]):focus-visible {
  outline: 3px solid #12695d;
  outline-offset: -3px;
}

/* 独立图片弹窗和询盘弹窗 */
.rd-owned-dialog:not([open]),
#rhyfell-documents-backdrop[hidden] {
  display: none !important;
}

.rd-owned-dialog {
  width: min(960px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  color: #101c2c;
  font-family: Arial, Helvetica, sans-serif;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .3);
}

.rd-owned-dialog::backdrop {
  background: rgba(8, 18, 30, .72);
}

.rd-owned-dialog[data-rd-fallback][open] {
  display: block;
  position: fixed;
  inset: 12px;
  z-index: 2147483001;
  height: fit-content;
}

#rhyfell-documents-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: rgba(8, 18, 30, .72);
}

.rd-owned-dialog .rd-dialog-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #e5e9ee;
  background: #ffffff;
  font-size: 17px;
  font-weight: 600;
}

.rd-owned-dialog .rd-dialog-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rd-owned-dialog .rd-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #f0f4f7;
  color: #101c2c;
  font: 28px/1 Arial, sans-serif;
  cursor: pointer;
}

.rd-owned-dialog .rd-small-button {
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 5px;
  background: #63d6c5;
  color: #10252b;
  font: 600 14px/1.4 Arial, sans-serif;
  cursor: pointer;
}

.rd-owned-dialog :is(button, a):focus-visible {
  outline: 3px solid #12695d;
  outline-offset: 3px;
}

#rhyfell-documents-viewer .rd-view-body {
  max-height: calc(100vh - 120px);
  max-height: calc(100dvh - 120px);
  padding: 12px;
  overflow: auto;
  overscroll-behavior: contain;
  background: #f5f7f9;
}

#rhyfell-documents-viewer .rd-view-image {
  display: block;
  width: 100%;
  max-width: 780px;
  height: auto;
  margin: 0 auto;
  background: #ffffff;
}

#rhyfell-documents-viewer .is-zoomed .rd-view-image {
  width: 150%;
  max-width: none;
  margin: 0;
}

#rhyfell-documents-viewer .rd-view-status {
  margin: 0 0 12px;
  color: #596675;
  font-size: 14px;
}

#rhyfell-documents-viewer .rd-view-status:empty {
  display: none;
}

#rhyfell-documents-dialog .rd-frame {
  display: block;
  width: 100%;
  height: min(680px, calc(100dvh - 200px));
  border: 0;
  background: #ffffff;
}

#rhyfell-documents-dialog .rd-fallback {
  margin: 0;
  padding: 12px 20px;
  border-top: 1px solid #e5e9ee;
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
}

#rhyfell-documents-dialog .rd-load-status {
  margin: 0 0 10px;
  color: #596675;
}

#rhyfell-documents-dialog .rd-load-status:empty {
  display: none;
}

#rhyfell-documents-dialog .rd-fallback a {
  display: inline-block;
  margin: 8px;
  color: #12695d;
  text-decoration: underline;
}

@media (hover: hover) and (pointer: fine) {
  #rhyfell-documents .rd-card:hover {
    border-color: #63d6c5;
  }

  #rhyfell-documents .rd-button:hover,
  #rhyfell-documents .rd-control:hover,
  #rhyfell-documents .rd-play:hover {
    background: #83e3d5;
  }
}

@media (max-width: 767px) {
  #rhyfell-documents {
    padding: 52px 20px;
  }

  #rhyfell-documents .rd-intro,
  #rhyfell-documents .rd-cta-text {
    font-size: 15px;
  }

  #rhyfell-documents .rd-track {
    gap: 16px;
  }

  #rhyfell-documents .rd-card {
    flex-basis: min(300px, 82vw);
  }

  .rd-owned-dialog .rd-dialog-header {
    padding: 10px 12px;
    font-size: 15px;
  }
}
