
#rhyfell-feedback,
#rhyfell-feedback *,
.rf-owned-dialog,
.rf-owned-dialog * {
  box-sizing: border-box;
}

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

#rhyfell-feedback .rf-wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
}

#rhyfell-feedback .rf-title {
  margin: 0;
  padding: 0;
  color: #101c2c;
  font: 700 clamp(28px, 3.2vw, 42px)/1.2 Arial, sans-serif;
  letter-spacing: -.025em;
  text-transform: none;
}

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

#rhyfell-feedback .rf-intro {
  max-width: 740px;
  margin: 0 auto 28px;
  color: #596675;
  font-size: 16px;
  line-height: 1.8;
}

#rhyfell-feedback .rf-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

#rhyfell-feedback .rf-count {
  min-width: 48px;
  margin-right: 6px;
  color: #596675;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

#rhyfell-feedback .rf-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #dce6eb;
  border-radius: 50%;
  background: #ffffff;
  color: #101c2c;
  font: 22px/1 Arial, sans-serif;
  cursor: pointer;
  appearance: none;
}

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

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

/* 横向平滑滑动区域 */
#rhyfell-feedback .rf-window {
  width: 100%;
  overflow: hidden;
  border: 1px solid #e4eaf0;
  border-radius: 12px;
  background: #ffffff;
  text-align: left;
  touch-action: pan-y pinch-zoom;
}

#rhyfell-feedback .rf-rail {
  display: flex;
  align-items: flex-start;
  width: 100%;
  transform: translate3d(-100%, 0, 0);
  will-change: transform;
}

#rhyfell-feedback .rf-card {
  display: block;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  color: #101c2c;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
  appearance: none;
}

#rhyfell-feedback .rf-card img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
}

/* 图片加载时的占位 */
#rhyfell-feedback .rf-card:not(.rf-loaded) {
  min-height: 280px;
}

#rhyfell-feedback .rf-error {
  display: block;
  padding: 36px;
  color: #596675;
  font-size: 14px;
}

#rhyfell-feedback .rf-error[hidden] {
  display: none;
}

#rhyfell-feedback .rf-hint {
  margin: 16px 0 0;
  color: #687583;
  font-size: 13px;
  line-height: 1.7;
}

#rhyfell-feedback .rf-cta {
  margin-top: 36px;
}

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

#rhyfell-feedback .rf-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-transform: none;
  cursor: pointer;
}

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

/* 图片与询盘弹窗 */
.rf-owned-dialog:not([open]),
#rhyfell-feedback-backdrop[hidden] {
  display: none !important;
}

.rf-owned-dialog {
  width: min(1180px, 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);
}

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

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

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

.rf-owned-dialog .rf-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;
}

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

.rf-owned-dialog .rf-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;
}

.rf-owned-dialog .rf-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;
}

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

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

#rhyfell-feedback-viewer .rf-view-image {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  background: #ffffff;
}

#rhyfell-feedback-viewer .is-zoomed .rf-view-image {
  width: 180%;
}

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

#rhyfell-feedback-viewer .rf-view-status:empty {
  display: none;
}

#rhyfell-feedback-dialog {
  width: min(960px, calc(100vw - 24px));
}

#rhyfell-feedback-dialog .rf-frame {
  display: block;
  width: 100%;
  height: min(620px, calc(100dvh - 210px));
  border: 0;
  background: #ffffff;
}

#rhyfell-feedback-dialog .rf-fallback {
  padding: 14px 18px;
  border-top: 1px solid #e5e9ee;
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
}

#rhyfell-feedback-dialog .rf-form-status {
  margin: 0 0 10px;
}

#rhyfell-feedback-dialog .rf-form-status:empty {
  display: none;
}

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

@media (hover: hover) and (pointer: fine) {
  #rhyfell-feedback .rf-button:hover,
  #rhyfell-feedback .rf-arrow:hover,
  #rhyfell-feedback .rf-play:hover {
    background: #83e3d5;
  }
}

@media (max-width: 600px) {
  #rhyfell-feedback {
    padding: 52px 16px;
  }

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

  #rhyfell-feedback .rf-controls {
    gap: 8px;
  }

  #rhyfell-feedback .rf-window {
    border-radius: 8px;
  }

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

  #rhyfell-feedback-viewer .rf-view-body {
    padding: 6px;
  }
}
