/* ========== MF601 Common Shell ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scrollbar-gutter: stable;
  scroll-behavior: auto;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #1a1a1a;
  background: transparent;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  text-decoration: none;
}
.page-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("/web/mf601/assets/img/bg-base.png") center / cover no-repeat;
}
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 1140px;
  height: 64px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  z-index: 1000;
  display: flex;
  align-items: center;
  transform: translateY(24px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.site-nav.is-sticky {
  transform: translateY(0);
  width: 100%;
  border-radius: 0;
}
.site-nav__inner {
  width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  gap: 24px;
  min-width: 0;
}
.site-nav__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.site-nav__brand img {
  max-height: 104px;
  height: auto;
  width: auto;
}
.site-nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 32px);
  list-style: none;
  min-width: 0;
  overflow: visible;
}
.site-nav__menu li {
  min-width: 0;
  position: relative;
}
.site-nav__link {
  text-decoration: none;
  color: #4b5563;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease, transform 0.2s ease;
  padding: 4px 0;
  display: block;
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-nav__link:hover {
  color: #1a1a1a;
  transform: translateY(-1px);
}
.site-nav__link:active {
  transform: translateY(0) scale(0.97);
}
.site-nav__link.is-current {
  color: #1a1a1a;
  font-weight: 600;
}
.site-nav__menu li.is-current::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #1a1a1a;
  border-radius: 2px;
  animation: navIndicatorIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes navIndicatorIn {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}
.site-nav__account {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 280px;
  overflow: hidden;
}
.site-nav__auth-actions,
.site-nav__user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.site-nav__auth-actions[hidden],
.site-nav__user-info[hidden] {
  display: none;
}
.site-nav__login,
.site-nav__register,
.site-nav__logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  min-width: 0;
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.site-nav__login {
  padding: 0 20px;
  background: #1f2937;
  color: #ffffff;
  border: 1px solid #1f2937;
}
.site-nav__login:hover {
  background: #374151;
  color: #ffffff;
}
.site-nav__register,
.site-nav__logout {
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.6);
  color: #1f2937;
  border: 1px solid rgba(31, 41, 55, 0.12);
}
.site-nav__register:hover,
.site-nav__logout:hover {
  background: #ffffff;
  border-color: rgba(31, 41, 55, 0.28);
}
.site-nav__user-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #1f2937;
  text-decoration: none;
}
.site-nav__user-name {
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}
.site-nav__user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #acefd2;
  color: #1f2937;
  font-size: 13px;
  font-weight: 700;
}
.site-nav__logout {
  border: none;
}
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}
.site-footer {
  position: relative;
  background: #494a4b;
  padding: 48px 0 0;
}
.footer__main {
  width: 1140px;
  max-width: calc(100% - 32px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 48px;
  align-items: start;
}
.footer__navs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px;
  min-width: 0;
}
.footer__side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px;
  gap: 24px;
  align-items: start;
  min-width: 0;
}
.footer__col,
.footer__contact {
  min-width: 0;
  max-width: 100%;
}
.footer__contact {
  max-width: none;
}
.footer__col-title {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: default;
}
.footer__col-list,
.footer__contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.footer__col-list li {
  min-width: 0;
  max-width: 100%;
}
.footer__col-list a {
  display: block;
  max-width: 100%;
  font-size: 13px;
  color: #b0b0b0;
  text-decoration: none;
  transition: color 0.2s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.footer__col-list a:hover {
  color: #ffffff;
}
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #b0b0b0;
  min-width: 0;
  max-width: 100%;
  line-height: 1.5;
}
.footer__contact-item img {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 1px;
  opacity: 1;
  filter: none;
}
.footer__contact-item span {
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  word-break: break-all;
}
.footer__qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100px;
  justify-self: end;
  min-width: 100px;
}
#chat-window-by-gpt.chat-widget-hidden {
  width: 0 !important;
  height: 0 !important;
  visibility: hidden !important;
  overflow: hidden !important;
}
.footer__qr-box {
  width: 100px;
  height: 100px;
  background: #ffffff;
  border-radius: 4px;
}
.footer__qr-text {
  font-size: 11px;
  color: #999999;
  text-align: center;
  line-height: 1.4;
  width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.footer__bottom-bar {
  width: 1140px;
  max-width: calc(100% - 32px);
  margin: 32px auto 0;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.footer__bottom-bar span,
.footer__bottom-bar a {
  font-size: 12px;
  color: #999999;
  min-width: 0;
  max-width: min(100%, 360px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.footer__bottom-bar a {
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
}
.footer__bottom-bar a:hover {
  color: #ffffff;
}
.footer__bottom-bar .sep {
  color: #666666;
  user-select: none;
}
.site-nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(31, 41, 55, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  flex: 0 0 40px;
}
.site-nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #1f2937;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-nav.is-menu-open .site-nav__toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-nav.is-menu-open .site-nav__toggle span:nth-child(2) {
  opacity: 0;
}
.site-nav.is-menu-open .site-nav__toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
@media (max-width: 1280px) {
  .site-nav {
    width: calc(100% - 48px);
  }
  .site-nav__inner,
  .footer__main,
  .footer__bottom-bar {
    width: calc(100% - 48px);
    max-width: 1140px;
  }
  .site-nav__inner {
    padding: 0 24px;
    gap: 18px;
  }
  .site-nav__menu {
    gap: clamp(10px, 1.4vw, 22px);
  }
}
@media (max-width: 1024px) {
  .site-nav__brand img {
    max-height: 84px;
  }
  .site-nav__link {
    max-width: 82px;
  }
  .site-nav__login {
    padding: 0 14px;
  }
  .site-nav__register,
  .site-nav__logout {
    padding: 0 12px;
  }
  .footer__main {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer__navs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .footer__side {
    grid-template-columns: minmax(0, 1fr) 120px;
    max-width: 620px;
  }
}
@media (max-width: 900px) {
  body.mf601-menu-open {
    overflow: hidden;
  }
  body.mf601-menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(17, 24, 39, 0.42);
    pointer-events: none;
  }
  .site-nav {
    width: calc(100% - 24px);
    height: 56px;
    align-items: center;
    overflow: visible;
    z-index: 1300;
  }
  .site-nav.is-menu-open {
    top: 0;
    width: 100%;
    height: 56px;
    max-height: none;
    transform: none;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.7);
    will-change: auto;
  }
  .site-nav.is-sticky.is-menu-open {
    top: 0;
    width: 100%;
    transform: none;
    border-radius: 0;
  }
  .site-nav__inner {
    width: 100%;
    padding: 8px 12px;
    flex-wrap: nowrap;
    gap: 8px 12px;
    position: relative;
    z-index: 2;
  }
  .site-nav.is-menu-open .site-nav__inner {
    height: 56px;
    align-items: center;
  }
  .site-nav__brand {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 52px;
  }
  .site-nav__brand img {
    max-height: 56px;
    max-width: 180px;
  }
  .site-nav__toggle {
    display: inline-flex;
    order: 2;
    position: absolute;
    top: 50%;
    right: 12px;
    z-index: 1310;
    transform: translateY(-50%);
  }
  .site-nav.is-sticky .site-nav__toggle {
    top: 50%;
  }
  .site-nav__menu,
  .site-nav__account {
    display: none;
  }
  .site-nav.is-menu-open .site-nav__menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: min(82vw, 360px);
    max-width: calc(100vw - 56px);
    height: 100vh;
    gap: 2px;
    padding: 76px 18px 116px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: -18px 0 40px rgba(15, 23, 42, 0.18);
    z-index: 1305;
  }
  .site-nav.is-menu-open .site-nav__menu li {
    width: 100%;
  }
  .site-nav.is-menu-open .site-nav__link {
    max-width: none;
    width: 100%;
    padding: 12px 10px;
    border-radius: 6px;
    white-space: normal;
    word-break: break-word;
  }
  .site-nav__menu li.is-current::after {
    bottom: 4px;
    left: 10px;
    width: 36px;
    height: 2px;
  }
  .site-nav.is-menu-open .site-nav__account {
    position: fixed;
    right: 0;
    top: 100vh;
    bottom: auto;
    transform: translateY(-100%);
    display: flex;
    width: min(82vw, 360px);
    max-width: calc(100vw - 56px);
    padding: 14px 18px 18px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(31, 41, 55, 0.08);
    z-index: 1306;
  }
  .site-nav.is-menu-open .site-nav__auth-actions,
  .site-nav.is-menu-open .site-nav__user-info {
    width: 100%;
    align-items: stretch;
  }
  .site-nav.is-menu-open .site-nav__login,
  .site-nav.is-menu-open .site-nav__register,
  .site-nav.is-menu-open .site-nav__logout {
    display: inline-flex;
    flex: 1 1 0;
    max-width: none;
  }
  .site-footer {
    padding-top: 36px;
  }
  .footer__main,
  .footer__bottom-bar {
    width: calc(100% - 32px);
  }
  .footer__navs {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 24px;
  }
  .footer__side {
    grid-template-columns: minmax(0, 1fr) 100px;
  }
}
@media (max-width: 768px) {
  .site-nav {
    width: calc(100% - 24px);
  }
  .site-nav.is-menu-open {
    width: 100%;
    transform: none;
  }
  .site-nav.is-sticky.is-menu-open {
    width: 100%;
    transform: none;
  }
  .site-nav__inner {
    width: 100%;
    padding: 8px 12px;
  }
  .site-nav__brand img {
    max-height: 48px;
    max-width: 150px;
  }
  .site-nav__menu {
    display: none;
  }
  .site-nav__account,
  .site-nav__auth-actions,
  .site-nav__user-info {
    gap: 8px;
    max-width: min(100%, 180px);
  }
  .site-nav__register,
  .site-nav__logout,
  .site-nav__user-name {
    display: none;
  }
  .site-nav__login {
    height: 32px;
    padding: 0 14px;
    font-size: 13px;
  }
  .site-nav__toggle {
    flex: 0 0 36px;
  }
  .site-nav.is-menu-open .site-nav__menu {
    display: flex;
  }
  .site-nav.is-menu-open .site-nav__account {
    display: flex;
    top: 100vh;
    bottom: auto;
    max-width: none;
  }
  .site-nav.is-menu-open .site-nav__register,
  .site-nav.is-menu-open .site-nav__logout {
    display: inline-flex;
  }
  .footer__main,
  .footer__bottom-bar {
    width: calc(100% - 32px);
  }
  .footer__bottom-bar {
    margin-bottom: 0;
  }
  .footer__bottom-bar span,
  .footer__bottom-bar a {
    max-width: 100%;
  }
  .footer__main {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer__navs {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    gap: 18px 24px;
  }
  .footer__side {
    grid-template-columns: minmax(0, 1fr) 100px;
  }
  .footer__col {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .footer__col > .footer__col-title {
    position: relative;
    height: 44px;
    margin-bottom: 0;
    padding-right: 24px;
    line-height: 44px;
    cursor: pointer;
  }
  .footer__col > .footer__col-title::before,
  .footer__col > .footer__col-title::after {
    content: "";
    position: absolute;
    right: 2px;
    top: 50%;
    background: rgba(255, 255, 255, 0.72);
    transform: translateY(-50%);
  }
  .footer__col > .footer__col-title::before {
    width: 12px;
    height: 2px;
  }
  .footer__col > .footer__col-title::after {
    width: 2px;
    height: 12px;
    right: 7px;
  }
  .footer__col.is-open > .footer__col-title::after {
    display: none;
  }
  .footer__col > .footer__col-list {
    max-height: 0;
    margin: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.24s ease, opacity 0.2s ease, margin 0.2s ease;
  }
  .footer__col.is-open > .footer__col-list {
    max-height: 360px;
    margin: 0 0 14px;
    opacity: 1;
  }
  .footer__contact .footer__col-title {
    height: auto;
    margin-bottom: 12px;
    padding-right: 0;
    line-height: 1.4;
    cursor: default;
  }
  .footer__contact .footer__col-title::before,
  .footer__contact .footer__col-title::after {
    display: none;
  }
}
@media (max-width: 480px) {
  .footer__navs,
  .footer__side {
    grid-template-columns: 1fr;
  }
  .footer__qr {
    justify-self: start;
  }
}
