@import url("/landing/home-controls.css");

/* 公开落地页（/zh/、/en/）共用的页头、页脚、按钮与字体。各页自己的版式写在页面内。 */

:root {
  --fm-ink: #0b0c0f;
  --fm-ink-2: #2b2f36;
  --fm-text: #374151;
  --fm-muted: #6b7280;
  --fm-faint: #9ca3af;
  --fm-line: rgba(17, 24, 39, 0.08);
  --fm-bg: #f8f9fa;
  --fm-surface: #ffffff;
  --fm-radius-xl: 32px;
  --fm-radius-lg: 24px;
  --fm-radius-md: 16px;
  --fm-shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.06);
  --fm-shadow-float: 0 24px 48px -16px rgba(0, 0, 0, 0.16);
  --fm-max: 1160px;
  --fm-sans: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fm-serif: "New York", "Iowan Old Style", Charter, Georgia, "Times New Roman", serif;
  --fm-mono: "SF Mono", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
}

:root:lang(zh) {
  --fm-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --fm-serif: "Songti SC", STSong, "Noto Serif SC", "Source Han Serif SC", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--fm-sans);
  color: var(--fm-ink);
  background: var(--fm-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 3px;
  border-radius: 8px;
}

.fm-skip {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--fm-ink);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}

.fm-skip:focus {
  top: 12px;
}

.fm-container {
  width: 100%;
  max-width: var(--fm-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* 页头：悬浮毛玻璃胶囊药丸导航栏，样式对齐主页 HomeNav */

.fm-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: none;
  padding: 12px 24px 0;
  background: transparent;
}

.fm-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1132px;
  width: 100%;
  margin: 0 auto;
  padding: 0 12px 0 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 40px -22px rgba(15, 23, 42, 0.34);
  border: 0;
  color: var(--fm-ink);
  pointer-events: auto;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.fm-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  font-size: 18.24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.fm-brand img {
  width: 36px;
  height: 36px;
}

.fm-brand__light {
  display: none;
}

.fm-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.fm-nav__link {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--fm-ink-2);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.fm-nav__link:hover {
  background: rgba(17, 24, 39, 0.06);
}

.fm-header--dark {
  background: transparent;
  color: #f5f6f8;
}

.fm-header--dark .fm-header__inner {
  background: rgba(24, 24, 27, 0.78);
  box-shadow: 0 14px 40px -22px rgba(0, 0, 0, 0.6);
  border: 0;
  color: #f5f6f8;
}

.fm-header--dark .fm-brand__dark {
  display: none;
}

.fm-header--dark .fm-brand__light {
  display: block;
}

.fm-header--dark .fm-nav__link {
  color: rgba(245, 246, 248, 0.8);
}

.fm-header--dark .fm-nav__link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.fm-header--dark .fm-btn--primary {
  background: #ffffff;
  color: var(--fm-ink);
}

@media (prefers-reduced-transparency: reduce) {
  .fm-header__inner {
    background: #ffffff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .fm-header--dark .fm-header__inner {
    background: #18181b;
  }
}

/* 与主页导航的控件尺寸和页面左右留白一致。 */
.fm-header .fm-btn {
  min-height: 40px;
  padding: 0 16px 0 20px;
  font-size: 14.08px;
  font-weight: 500;
  box-shadow: none;
}

@media (min-width: 640px) {
  .fm-header { padding-inline: 32px; }
  .fm-header__inner { max-width: 1116px; }
}

@media (min-width: 1024px) {
  .fm-header { padding-inline: 40px; }
  .fm-header__inner { max-width: 1100px; }
}

@media (max-width: 639px) {
  .fm-header__inner { gap: 12px; }
  .fm-header .fm-nav__link { padding-inline: 8px; }
  .fm-header .fm-btn { padding-inline: 12px; }
}

/* 首屏通顶与避让：保证背景自然通顶至视口顶部，同时内容与悬浮药丸留出适宜呼吸间距 */
.fm-header ~ #main > :first-child {
  padding-top: clamp(96px, 10vw, 120px);
}

/* 按钮 */

.fm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font: 600 15px/1 var(--fm-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.fm-btn--primary {
  background: var(--fm-ink);
  color: #ffffff;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5);
}

.fm-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px -14px rgba(0, 0, 0, 0.55);
}

.fm-btn--ghost {
  background: rgba(17, 24, 39, 0.06);
  color: var(--fm-ink);
}

.fm-btn--ghost:hover {
  background: rgba(17, 24, 39, 0.1);
}

.fm-btn--light {
  background: #ffffff;
  color: var(--fm-ink);
}

.fm-btn--light:hover {
  transform: translateY(-1px);
}

.fm-btn--outline-light {
  background: transparent;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.fm-btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
}

.fm-btn--sm {
  min-height: 36px;
  padding: 0 16px;
  font-size: 14px;
}

/* 页脚 */

.fm-footer {
  padding: 72px 0 40px;
  background: #0b0c0f;
  color: rgba(245, 246, 248, 0.72);
}

.fm-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 0.8fr;
  gap: 40px;
}

.fm-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 650;
  text-decoration: none;
}

.fm-footer__brand img {
  width: 36px;
  height: 36px;
}

.fm-footer__tagline {
  max-width: 30ch;
  margin: 14px 0 0;
  color: rgba(245, 246, 248, 0.6);
  font-size: 15px;
}

.fm-footer__title {
  margin: 0 0 14px;
  color: rgba(245, 246, 248, 0.45);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.fm-footer ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fm-footer a {
  color: rgba(245, 246, 248, 0.78);
  font-size: 14px;
  text-decoration: none;
}

.fm-footer a:hover,
.fm-footer a[aria-current="page"] {
  color: #ffffff;
}

.fm-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(245, 246, 248, 0.45);
  font-size: 13px;
}

.fm-footer__legal a {
  color: rgba(245, 246, 248, 0.45);
  font-size: 13px;
}

@media (max-width: 760px) {
  .fm-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 560px) {
  .fm-container {
    padding: 0 18px;
  }

  .fm-nav__link--wide {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.fm-header .home-public-cta { min-height: 40px; padding-block: 8px; }
.fm-btn.home-public-cta { box-shadow: none; }
