/**
 * Ricoh Framework CSS
 * ==================
 * 基于原始网站完全复制的样式
 */

/* ============================================
   CSS Variables (与原始网站一致)
   ============================================ */
:root {
  --main-width: 1541px;
  --main-min-width: 850px;
  --ricoh-red: #C23343;
}

@media screen and (max-width: 1850px) {
  :root {
    --main-width: 83.33333333vw;
  }
}

@media screen and (max-width: 1024px) {
  :root {
    --main-width: 850px;
  }
}

@media screen and (max-width: 899px) {
  :root {
    --main-width: 100%;
  }
}

/* ============================================
   CSS Reset & Base
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  tab-size: 4;
  background-color: #ededed;
}

body {
  line-height: inherit;
  margin: 0;
  font-weight: 500;
}

a {
  color: inherit;
  text-decoration: inherit;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

button, input {
  font-family: inherit;
  font-size: 100%;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

button {
  cursor: pointer;
  background-color: transparent;
  background-image: none;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ============================================
   Utility Classes (与原始网站一致)
   ============================================ */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none; }
.block { display: block; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.fixed { position: fixed; }
.left-0 { left: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.w-\[156px\] { width: 156px; }
.w-\[45\%\] { width: 45%; }
.w-\[50\%\] { width: 50%; }
.w-\[230px\] { width: 230px; }
.w-\[280px\] { width: 280px; }
.w-\[20px\] { width: 20px; }
.w-8 { width: 2rem; }
.h-\[20px\] { height: 20px; }
.h-8 { height: 2rem; }
.h-\[145px\] { height: 145px; }
.h-\[1px\] { height: 1px; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-stretch { align-items: stretch; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }
.self-end { align-self: flex-end; }
.self-center { align-self: center; }
.cursor-pointer { cursor: pointer; }
.object-contain { object-fit: contain; }
.object-cover { object-fit: cover; }
.whitespace-nowrap { white-space: nowrap; }
.text-xs { font-size: 12px; }
.text-lg { font-size: 18px; }
.text-\[10px\] { font-size: 10px; }
.text-\[12px\] { font-size: 12px; }
.text-\[14px\] { font-size: 14px; }
.text-\[16px\] { font-size: 16px; }
.text-\[17px\] { font-size: 17px; }
.text-\[18px\] { font-size: 18px; }
.\\!text-\\[16px\\] { font-size: 16px !important; }
.leading-\[14px\] { line-height: 14px; }
.leading-\[16px\] { line-height: 16px; }
.leading-\[18px\] { line-height: 18px; }
.leading-\[28px\] { line-height: 28px; }
.font-medium { font-weight: 500; }
.opacity-60 { opacity: 0.6; }
.opacity-40 { opacity: 0.4; }
.opacity-5 { opacity: 0.05; }
.text-center { text-align: center; }
.text-last-justify { text-align-last: justify; }
.gap-\[20px\] { gap: 20px; }
.gap-x-\[20px\] { column-gap: 20px; }
.gap-y-\[6px\] { row-gap: 6px; }

.mr-6 { margin-right: 1.5rem; }
.mr-20 { margin-right: 5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-\[120px\] { margin-right: 120px; }
.mr-\[-40px\] { margin-right: -40px; }
.mb-\[-20px\] { margin-bottom: -20px; }
.mt-\[40px\] { margin-top: 40px; }
.mt-\[10px\] { margin-top: 10px; }
.mb-\[20px\] { margin-bottom: 20px; }
.mb-\[12px\] { margin-bottom: 12px; }
.mb-\[10px\] { margin-bottom: 10px; }
.mb-\[36px\] { margin-bottom: 36px; }
.mb-\[55px\] { margin-bottom: 55px; }
.mr-\[50px\] { margin-right: 50px; }
.mr-\[30px\] { margin-right: 30px; }
.mr-5 { margin-right: 1.25rem; }
.mx-\[20px\] { margin-left: 20px; margin-right: 20px; }
.my-\[8px\] { margin-top: 8px; margin-bottom: 8px; }
.my-\[42px\] { margin-top: 42px; margin-bottom: 42px; }
.ml-\[7px\] { margin-left: 7px; }
.ml-\[10px\] { margin-left: 10px; }
.ml-\[5px\] { margin-left: 5px; }
.pt-\[5px\] { padding-top: 5px; }
.pr-\[53px\] { padding-right: 53px; }
.px-\[4px\] { padding-left: 4px; padding-right: 4px; }
.px-\[14px\] { padding-left: 14px; padding-right: 14px; }
.py-\[10px\] { padding-top: 10px; padding-bottom: 10px; }
.py-\[16px\] { padding-top: 16px; padding-bottom: 16px; }
.rounded-\[12px\] { border-radius: 12px; }
.rounded { border-radius: 0.25rem; }
.bg-\[\#303233\] { background-color: #303233; }
.bg-\[\#F5F5F5\] { background-color: #F5F5F5; }
.bg-neutral-50 { background-color: #fafafa; }
.bg-black { background-color: #000; }
.text-\[\#fff\] { color: #fff; }
.set-mb-6 { margin-bottom: 6px; }
.\!ml-\[2px\] { margin-left: 2px !important; }
.underline { text-decoration-line: underline; }
.underline-offset-4 { text-underline-offset: 4px; }
.icon-img-mo { height: 14px; width: 14px; margin-right: 6px; object-fit: contain; }
.black-text { font-size: 18px; font-weight: 500; white-space: nowrap; }
.text-layout { display: flex; flex-wrap: wrap; column-gap: 10px; row-gap: 6px; }
.sub-content-container {}
.sub-content-panel {}

@media (min-width: 1280px) {
  .xl\:text-sm { font-size: 14px; }
  .xl\:text-xs { font-size: 12px; }
}

@media (max-width: 1279px) {
  .max-xl\:w-\[35\%\] { width: 35%; }
}

/* ============================================
   Main Content Layout
   ============================================ */
.main-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: var(--main-width);
  min-width: var(--main-min-width);
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Site Header (与原始网站完全一致)
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 99;
}

/* .site-header 的 sticky 限于本容器（高度=header 自身），容器自身需 sticky 才能常驻 */
#ricoh-header-container {
  position: sticky;
  top: 0;
  z-index: 99;
}

.site-header .header-title {
  height: 64px;
  width: 100%;
  background-color: #fff;
  padding-top: 10px;
  padding-bottom: 10px;
}

.site-header .header-title .logo {
  height: 38px;
  object-fit: contain;
  width: 110px;
}

/* Header CTA Button */
.site-header .header-title .main-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-cta-btn {
  background-color: #d6001c;
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.header-cta-btn:hover {
  background-color: #b20017;
  transform: translateY(-1px);
}

/* Searchbar */
.searchbar {
  align-items: center;
  border-radius: 9999px;
  display: flex;
  height: 30px;
  width: 116px;
  background-color: #f6f6f6;
  padding-left: 12px;
  padding-right: 12px;
}

.searchbar input {
  background-color: transparent;
  font-size: 12px;
  width: 76px;
  border: none;
  outline: none;
}

.searchbar input::placeholder {
  color: #6e6e6e;
}

.searchbar .search-icon {
  cursor: pointer;
  height: 16px;
  width: 16px;
}

/* Navigation Bar */
.site-header .navbar {
  height: 49px;
  width: 100%;
  background-color: #303233;
}

.site-header .navbar .nav-menu {
  display: flex;
}

.site-header .navbar .nav-menu-item {
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  margin-right: calc(var(--main-width) * 0.05);
  opacity: 0.75;
  transition: opacity 0.15s ease;
}

.site-header .navbar .nav-menu-item:hover,
.site-header .navbar .nav-menu .active {
  opacity: 1;
}

/* Language Selector */
.text-sm { font-size: 14px; }
.opacity-70 { opacity: 0.7; }
.mr-1 { margin-right: 0.25rem; }
.mr-4, .mr-\[16px\] { margin-right: 16px; }

/* ============================================
   Hover Box (下拉菜单 - 与原始网站完全一致)
   ============================================ */
.hover-box-left {
  left: 50vw;
  transform: translateX(-50%);
}

.hover-box {
  position: absolute;
  top: 11px;
  width: var(--main-width);
  z-index: 9999999;
  --nth: 0;
  background-color: #fff;
  box-shadow: 5px 9px 20px 0 rgba(182, 182, 182, 0.61);
  display: none;
  font-size: 14px;
}

/* 下拉菜单顶部小箭头 */
.hover-box:before {
  content: "";
  position: absolute;
  top: -7px;
  width: 14px;
  height: 7px;
  left: calc(var(--nth) * (var(--main-width) * 0.045 + 4.5em) + 1em);
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='7' fill='none' viewBox='0 0 14 7'%3E%3Cpath fill='%23fff' d='M7 0v7h7zM7 0v7H0z'/%3E%3C/svg%3E") no-repeat;
}

.hover-box.show {
  display: block;
}

/* Hover Cover (官方 hover 时背景变暗效果) */
.hover-cover {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 50;
}

.hover-cover.show {
  display: block;
}

/* Hover Card 样式 (与原网站一致) */
.hover-card {
  display: flex;
  align-items: stretch;
  font-weight: 500;
  padding: 30px 25px;
}

.hover-card .divider-y {
  margin-left: 34px;
  margin-right: 34px;
  width: 1px;
  background-color: #fafafa;
}

.hover-card .title {
  font-size: 14px;
  margin-bottom: 10px;
  margin-top: 10px;
  opacity: 0.6;
  padding-left: 16px;
  padding-right: 16px;
}

.hover-card .title:first-of-type {
  margin-top: 0;
}

.hover-card .menu {
  align-items: center;
  border-radius: 0.25rem;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  padding: 12px 16px;
  white-space: nowrap;
  color: #4c4c4c;
}

.hover-card .menu img.icon {
  height: 20px;
  margin-right: 6px;
  width: 20px;
}

.hover-card .menu.active,
.hover-card .menu:hover {
  background-color: #f5f5f5;
  color: #0d0d0d;
}

.hover-card .link-card {
  align-items: flex-start;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  margin-right: 30px;
  width: 130px;
}

.hover-card .link-card .cover {
  border-radius: 3px;
  height: 130px;
  margin-bottom: 16px;
  width: 100%;
  background-color: #f5f5f5;
  background-repeat: no-repeat;
  background-size: cover;
  object-fit: cover;
}

.hover-card .link-card .cover-link {
  display: block;
  width: 100%;
}

.hover-card .link-card .title {
  font-size: 12px;
  margin-bottom: 0.5rem;
  margin-top: 0;
  opacity: 0.6;
  white-space: nowrap;
}

.hover-card .link-card .title.setitle {
  display: block;
}

.hover-card .link-card .title:hover {
  opacity: 1;
}

/* 特殊样式: 第一个卡片的第一个setitle不需要white-space限制 */
.hover-card:first-child .link-card:first-child .setitle {
  padding-right: 0;
  white-space: normal;
}

.hover-card .link {
  font-size: 12px;
  opacity: 0.6;
}

.hover-card .link:hover {
  opacity: 1;
}

.hover-card .more-btn {
  border-radius: 9999px;
  cursor: pointer;
  border: 1px solid #000;
  font-size: 12px;
  padding: 9px 20px;
  transition: all 0.15s ease;
}

.hover-card .more-btn:hover {
  background-color: #000;
  color: #fff;
}


/* ============================================
   Site Footer (与原始网站完全一致)
   ============================================ */
.site-footer {
  background-color: #f5f5f5;
  font-weight: 500;
}

@media (min-width: 900px) {
  .site-footer {
    padding-top: 55px;
  }
}

.site-footer .main-content {
  align-items: flex-start;
  max-width: var(--main-width);
  min-width: var(--main-min-width);
  position: relative;
}

.site-footer .footer-content {
  width: 100%;
}

/* Footer Top Section */
.site-footer .top-foot {
  display: flex;
  justify-content: center;
  width: 100%;
  position: relative;
}

.site-footer .content-zero {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

/* Logo Box */
.site-footer .log-box {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding-top: 5px;
}

.site-footer .log-box .logo {
  object-fit: contain;
  width: 150px;
}

.site-footer .hotline {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.site-footer .hotline-number {
  font-size: 17px;
  line-height: 28px;
  font-weight: 500;
  text-align-last: justify;
  width: 100%;
}

.site-footer .hotline-text {
  font-size: 18px;
  line-height: 18px;
  margin-top: 10px;
  margin-bottom: 20px;
  align-self: center;
}

.site-footer .buy-btn {
  background-color: #303233;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.site-footer .buy-btn:hover {
  background-color: #c23343;
}

/* buy-btn 的尺寸由 HTML 的 utility class 控制（与官网一致） */

/* Footer Columns */
.site-footer .title {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 40px;
  white-space: nowrap;
}

.site-footer .gray-text {
  font-size: 14px;
  letter-spacing: 0.025em;
  opacity: 0.65;
  white-space: nowrap;
  margin-bottom: 24px;
  display: block;
}

.site-footer .gray-text:hover {
  opacity: 0.7;
}

/* Footer clickable emphasis */
.site-footer a.footer-hotline-link {
  display: inline-block;
  transition: color 0.15s ease;
}

.site-footer a.footer-hotline-link:hover {
  color: var(--ricoh-red);
}

.site-footer a.footer-contact-link {
  color: rgba(0, 0, 0, 0.62);
  transition: color 0.15s ease;
}

.site-footer a.footer-contact-link:hover {
  color: #000;
}

/* Social Icons */
.site-footer .icon {
  height: 34px;
  object-fit: contain;
}

@media (min-width: 1280px) {
  .site-footer .icon {
    height: 3rem;
  }
}

.site-footer .icon-text {
  font-size: 12px;
  letter-spacing: -0.5px;
  white-space: nowrap;
  line-height: 1.4;
  margin-left: 7px;
}

.site-footer .icon-img {
  height: 18px;
  width: 18px;
  margin-right: 6px;
  object-fit: contain;
}

/* Social Icons Container */
.site-footer .social-icons-container {
  display: flex;
  flex: 1;
  position: relative;
}

.site-footer .social-icons-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.site-footer .social-icons-col + .social-icons-col {
  margin-left: 10px;
}

.site-footer .social-icon-item {
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 16px;
}

.site-footer .social-icon-item:last-child {
  margin-bottom: 0;
}

/* QR Code Popup */
.site-footer .qrcode-img {
  position: absolute;
  left: 54px;
  top: 50%;
  width: 116px;
  z-index: 90;
  background-color: #fff;
  padding: 10px;
  text-align: center;
  display: none;
}

.site-footer .wx-qrcode-target:hover .qrcode-img {
  display: block;
}

.site-footer .qrcode-img img {
  width: 100%;
  height: 100%;
}

/* Footer Divider */
.site-footer .divider {
  opacity: 0.05;
  background-color: #000;
  width: 100%;
  height: 1px;
  margin: 42px 0;
}

/* Footer Bottom Links */
.site-footer .links-box {
  display: flex;
  line-height: 16px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.5;
}

.site-footer .links-box a {
  border-left: 2px solid #000;
  cursor: pointer;
  padding-left: 8px;
  padding-right: 8px;
  transition: color 0.15s ease;
}

.site-footer .links-box a:hover {
  color: var(--ricoh-red);
}

.site-footer .links-box a:last-child {
  border-right: 2px solid #000;
}

/* Mobile Footer (官方 footer-conter-mobile) */
.site-footer .footer-conter-mobile {
  display: none;
  overflow: hidden;
  padding-left: 18px;
  padding-right: 18px;
  padding-top: 52px;
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 899px) {
  .site-footer .footer-content {
    display: none;
  }

  .site-footer .footer-conter-mobile {
    display: block;
  }

  .site-footer {
    padding-top: 0;
  }

  .site-footer .main-content {
    min-width: auto;
    width: 100%;
  }

  .site-header .header-title .main-content {
    min-width: auto;
    width: 100%;
    padding: 0 16px;
  }
}

@media (min-width: 900px) {
  .site-footer .footer-conter-mobile {
    display: none;
  }
}

/* ===== Landing 移动端 footer 可读性与触摸目标修复 ===== */
@media (max-width: 899px) {
  .site-footer .footer-conter-mobile {
    font-size: 12px;
  }

  .site-footer .footer-conter-mobile .text-\[10px\] {
    font-size: 12px;
  }

  .site-footer .footer-conter-mobile .flex.items-center {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .site-footer .footer-conter-mobile a.footer-contact-link {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    word-break: break-all;
  }

  .site-footer .footer-conter-mobile a {
    padding: 4px 0;
  }
}

/* ===== Landing 移动端 footer 信息区协调（字号/行高与备案区统一） ===== */
@media (max-width: 899px) {
  .site-footer .footer-conter-mobile .flex.items-center.set-mb-6 {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 24px;
  }

  .site-footer .footer-conter-mobile .gray-text,
  .site-footer .footer-conter-mobile .black-text {
    font-size: 13px;
    line-height: 24px;
    font-weight: 400;
    white-space: normal;
  }

  .site-footer .footer-conter-mobile .icon-img-mo {
    height: 15px;
    width: 15px;
  }

  /* 底部版权与备案整体居中 */
  .site-footer .footer-conter-mobile .font-medium {
    text-align: center;
  }

  .site-footer .footer-conter-mobile .mr-\[50px\] {
    margin-right: 0;
  }

  .site-footer .footer-conter-mobile .text-layout,
  .site-footer .footer-conter-mobile .divider + div > div {
    justify-content: center;
    text-align: center;
  }
}

/* ===== Landing 移动端 footer 布局对齐与 header 呼吸空间 ===== */
@media (max-width: 899px) {
  .site-footer .footer-conter-mobile .set-mb-6 {
    justify-content: center;
  }

  .site-footer .footer-conter-mobile .gray-text {
    margin-bottom: 0;
  }

  .site-footer .footer-conter-mobile .black-text,
  .site-footer .footer-conter-mobile a.footer-contact-link {
    color: #1f1f1f;
  }

  .site-header .header-title {
    height: auto;
    padding-top: 16px;
    padding-bottom: 16px;
  }
}

/* 备案号整体不断行，折行只发生在两条备案之间 */
.site-footer a[href*="beian"] {
  white-space: nowrap;
}
