/* RinFire Chinese homepage.
   Reimplements the visual language of rinfire.com/zh without Wix runtime code. */

:root {
  --rf-zh-orange: #ff8f1c;
  --rf-zh-ink: #2f2e2e;
  --rf-zh-gray: #a7a7a6;
  --rf-zh-light: #f4f4f4;
  --rf-zh-content: 1080px;
}

.rf-site-header {
  background: #2b2b2b;
  box-shadow: 0 1px 8px rgba(0, 0, 0, .16);
  height: 69px;
}

.rf-header-inner {
  max-width: calc(1000px + (var(--rf-page-gutter) * 2));
}

.rf-brand,
.rf-brand-footer {
  height: 48px;
  width: 152px;
}

.rf-brand-image {
  height: auto !important;
  max-height: 43px;
  object-fit: contain;
  object-position: left center;
  width: 152px;
}

.rf-navigation-list {
  gap: 30px;
}

.rf-navigation-link,
.rf-header-action {
  font-size: 14px;
}

.rf-header-actions {
  gap: 17px;
  margin-left: 44px;
}

.rf-header-action i,
.rf-cart-count {
  color: var(--rf-zh-orange);
}

.rf-cart-count {
  background: transparent;
  font-size: 12px;
  min-width: auto;
  padding: 0;
}

.rf-home-zh {
  background: #fff;
  color: var(--rf-zh-ink);
  overflow: hidden;
}

.rf-home-zh h1,
.rf-home-zh h2,
.rf-home-zh h3 {
  font-family: "Microsoft YaHei", "PingFang SC", Arial, Helvetica, sans-serif;
}

.rf-zh-hero {
  background: #191919;
  height: calc(100vh - 69px);
  height: calc(100dvh - 69px);
  max-height: 800px;
  overflow: hidden;
  position: relative;
}

.rf-zh-hero-media,
.rf-zh-hero-media img {
  display: block;
  height: 100%;
  width: 100%;
}

.rf-zh-hero-media {
  inset: 0;
  position: absolute;
}

.rf-zh-hero-media img {
  max-width: none;
  object-fit: fill;
  object-position: center;
}

.rf-zh-hero-content {
  left: 50%;
  position: absolute;
  text-align: center;
  top: 34px;
  transform: translateX(-50%);
  width: min(1160px, calc(100% - 40px));
  z-index: 2;
}

.rf-home-zh .rf-zh-hero h1 {
  color: #fff;
  font-size: 45px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

.rf-zh-actions {
  display: flex;
  gap: 44px;
  justify-content: center;
  margin-top: 22px;
}

.rf-zh-outline-button {
  align-items: center;
  background: rgba(255, 255, 255, .02);
  border: 3px solid var(--rf-zh-orange);
  border-radius: 22px;
  color: var(--rf-zh-orange);
  display: inline-flex;
  font-size: 16px;
  font-weight: 400;
  justify-content: center;
  line-height: 1;
  min-height: 40px;
  min-width: 142px;
  padding: 7px 22px;
  transition: background-color 180ms ease, color 180ms ease;
}

.rf-zh-outline-button:hover,
.rf-zh-outline-button:focus-visible {
  background: var(--rf-zh-orange);
  color: #202020;
}

.rf-zh-controller {
  background: var(--rf-zh-gray);
  height: 740px;
  overflow: hidden;
  position: relative;
}

.rf-zh-controller-media,
.rf-zh-controller-media img {
  display: block;
  height: 100%;
  width: 100%;
}

.rf-zh-controller-media img {
  object-fit: cover;
  object-position: center;
}

.rf-zh-controller-copy {
  left: max(32px, calc((100% - var(--rf-zh-content)) / 2));
  position: absolute;
  text-align: center;
  top: 210px;
  width: 450px;
  z-index: 2;
}

.rf-home-zh .rf-zh-controller-copy h2 {
  color: #fff;
  font-size: 42px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 32px;
}

.rf-zh-reels {
  background: #111;
  height: 529px;
  overflow: hidden;
  position: relative;
}

.rf-zh-reels > img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .76;
  width: 100%;
}

.rf-zh-reels::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, .58), rgba(0, 0, 0, .08) 55%, rgba(0, 0, 0, .28));
  content: "";
  inset: 0;
  position: absolute;
}

.rf-zh-reels-overlay {
  color: #fff;
  left: max(32px, calc((100% - var(--rf-zh-content)) / 2));
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.rf-home-zh .rf-zh-reels-overlay h2 {
  color: #fff;
  font-size: 48px;
  font-weight: 400;
}

.rf-zh-reels-overlay > span:last-child {
  display: block;
  font-size: 15px;
  margin-top: 18px;
}

.rf-zh-play {
  border: 2px solid #fff;
  border-radius: 50%;
  display: block;
  height: 66px;
  margin-top: 28px;
  position: relative;
  width: 66px;
}

.rf-zh-play::after {
  border-bottom: 9px solid transparent;
  border-left: 15px solid #fff;
  border-top: 9px solid transparent;
  content: "";
  left: 27px;
  position: absolute;
  top: 22px;
}

.rf-zh-editorial,
.rf-zh-faq-section {
  padding: 72px max(24px, calc((100% - var(--rf-zh-content)) / 2)) 88px;
}

.rf-zh-editorial {
  background: #fff;
}

.rf-zh-section-heading {
  margin: 0 auto 48px;
  max-width: 800px;
  text-align: center;
}

.rf-home-zh .rf-zh-section-heading h2 {
  color: var(--rf-zh-ink);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.4;
}

.rf-zh-section-heading p {
  color: #605e5e;
  font-size: 17px;
  line-height: 1.75;
  margin: 18px auto 0;
  max-width: 680px;
}

.rf-zh-story-grid {
  display: grid;
  gap: 42px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rf-zh-story-card {
  border-radius: 36px;
  box-shadow: 0 4px 22px rgba(0, 0, 0, .12);
  height: 549px;
  overflow: hidden;
  position: relative;
}

.rf-zh-story-card::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, .03) 36%, rgba(0, 0, 0, .78));
  content: "";
  inset: 0;
  position: absolute;
}

.rf-zh-story-card > img {
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
  width: 100%;
}

.rf-zh-story-card:hover > img {
  transform: scale(1.025);
}

.rf-zh-card-overlay {
  bottom: 42px;
  color: #fff;
  left: 38px;
  max-width: calc(100% - 76px);
  position: absolute;
  z-index: 2;
}

.rf-home-zh .rf-zh-card-overlay h3 {
  color: #fff;
  font-size: 29px;
  font-weight: 400;
  line-height: 1.35;
}

.rf-zh-card-overlay p {
  font-size: 16px;
  margin: 12px 0 0;
}

.rf-zh-card-overlay .rf-zh-outline-button {
  margin-top: 22px;
}

.rf-zh-outline-light {
  border-color: #fff;
  color: #fff;
}

.rf-zh-faq-section {
  background: #f1f1f1;
}

.rf-zh-content {
  margin: 0 auto;
  max-width: 914px;
}

.rf-zh-faq-tabs {
  display: flex;
  gap: 34px;
  justify-content: center;
  margin-top: 28px;
}

.rf-zh-faq-tabs span {
  border-bottom: 2px solid transparent;
  color: #605e5e;
  font-size: 15px;
  padding-bottom: 8px;
}

.rf-zh-faq-tabs .is-active {
  border-color: var(--rf-zh-orange);
  color: var(--rf-zh-ink);
}

.rf-zh-faq-list {
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
  padding: 0 34px;
}

.rf-zh-faq-list .rf-faq-item button {
  font-size: 17px;
  font-weight: 400;
  min-height: 76px;
}

.rf-zh-faq-list .rf-faq-answer {
  font-size: 15px;
  line-height: 1.8;
}

.rf-zh-applications {
  padding-top: 72px;
}

.rf-zh-applications .rf-zh-story-card {
  height: 549px;
}

.rf-zh-service-links {
  background: #f5f5f5;
  padding: 60px max(24px, calc((100% - var(--rf-zh-content)) / 2));
}

.rf-zh-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rf-zh-service-grid a {
  border-right: 1px solid rgba(47, 46, 46, .2);
  color: var(--rf-zh-ink);
  min-height: 108px;
  padding: 14px 32px;
  text-align: center;
}

.rf-zh-service-grid a:last-child {
  border-right: 0;
}

.rf-zh-service-grid strong,
.rf-zh-service-grid span {
  display: block;
}

.rf-zh-service-grid strong {
  font-size: 20px;
  font-weight: 400;
}

.rf-zh-service-grid span {
  color: #777;
  font-size: 13px;
  margin-top: 12px;
}

.rf-site-footer {
  background: #2b2b2b;
}

.rf-footer-inner {
  gap: 44px;
  grid-template-columns: minmax(180px, 1.2fr) repeat(4, 1fr);
  max-width: calc(1080px + (var(--rf-page-gutter) * 2));
  padding-bottom: 54px;
  padding-top: 62px;
}

.rf-footer-column h2 {
  font-weight: 400;
  letter-spacing: 0;
}

.rf-footer-legal-inner {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  max-width: calc(1080px + (var(--rf-page-gutter) * 2));
}

@media (max-width: 1023px) {
  .rf-header-inner {
    max-width: none;
  }

  .rf-brand,
  .rf-brand-footer {
    width: 138px;
  }

  .rf-brand-image {
    width: 138px;
  }

  .rf-zh-controller-copy {
    left: 5%;
    width: 40%;
  }

  .rf-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rf-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .rf-zh-hero {
    height: 640px;
  }

  .rf-zh-hero-content {
    top: 28px;
  }

  .rf-home-zh .rf-zh-hero h1 {
    font-size: clamp(28px, 7vw, 40px);
  }

  .rf-zh-controller {
    height: 620px;
  }

  .rf-zh-controller-media img {
    object-position: center;
  }

  .rf-zh-controller-copy {
    left: 0;
    padding: 0 24px;
    top: 34px;
    width: 100%;
  }

  .rf-home-zh .rf-zh-controller-copy h2 {
    font-size: 34px;
    margin-bottom: 20px;
  }

  .rf-zh-reels {
    height: 420px;
  }

  .rf-zh-editorial,
  .rf-zh-faq-section {
    padding: 58px 18px 68px;
  }

  .rf-home-zh .rf-zh-section-heading h2 {
    font-size: 34px;
  }

  .rf-zh-story-grid {
    gap: 24px;
    grid-template-columns: 1fr;
  }

  .rf-zh-story-card,
  .rf-zh-applications .rf-zh-story-card {
    height: min(620px, 125vw);
  }

  .rf-zh-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rf-zh-service-grid a:nth-child(2) {
    border-right: 0;
  }

  .rf-zh-service-grid a:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(47, 46, 46, .2);
  }
}

@media (max-width: 640px) {
  .rf-site-header {
    height: 64px;
  }

  .rf-brand {
    width: 126px;
  }

  .rf-brand-image {
    max-height: 38px;
    width: 126px;
  }

  .rf-zh-hero {
    height: 620px;
  }

  .rf-zh-hero-media img {
    object-fit: cover;
    object-position: center top;
  }

  .rf-zh-hero-content {
    top: 24px;
    width: calc(100% - 28px);
  }

  .rf-home-zh .rf-zh-hero h1 {
    font-size: 27px;
    line-height: 1.28;
  }

  .rf-zh-actions {
    gap: 12px;
    margin-top: 18px;
  }

  .rf-zh-outline-button {
    border-width: 2px;
    font-size: 14px;
    min-height: 38px;
    min-width: 118px;
    padding: 7px 16px;
  }

  .rf-zh-controller {
    height: 570px;
  }

  .rf-zh-controller-media img {
    object-position: center top;
  }

  .rf-home-zh .rf-zh-controller-copy h2 {
    font-size: 27px;
  }

  .rf-zh-reels {
    height: 340px;
  }

  .rf-zh-reels-overlay {
    left: 24px;
  }

  .rf-home-zh .rf-zh-reels-overlay h2 {
    font-size: 38px;
  }

  .rf-home-zh .rf-zh-section-heading h2 {
    font-size: 29px;
  }

  .rf-zh-section-heading p {
    font-size: 15px;
  }

  .rf-zh-story-card,
  .rf-zh-applications .rf-zh-story-card {
    border-radius: 22px;
    height: 470px;
  }

  .rf-zh-card-overlay {
    bottom: 28px;
    left: 24px;
    max-width: calc(100% - 48px);
  }

  .rf-home-zh .rf-zh-card-overlay h3 {
    font-size: 24px;
  }

  .rf-zh-faq-tabs {
    align-items: center;
    flex-direction: column;
    gap: 12px;
  }

  .rf-zh-faq-list {
    padding: 0 18px;
  }

  .rf-zh-faq-list .rf-faq-item button {
    font-size: 15px;
    line-height: 1.55;
    min-height: 70px;
  }

  .rf-zh-service-links {
    padding: 42px 16px;
  }

  .rf-zh-service-grid a {
    min-height: 96px;
    padding: 12px;
  }

  .rf-zh-service-grid strong {
    font-size: 17px;
  }

  .rf-footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .rf-footer-legal-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
