/* ==========================================================================
   FULILAIPOS · 基础样式（设计令牌 / 重置 / 通用组件）
   ========================================================================== */

:root {
  --blue: #285cf0;
  --blue-600: #1e4bd0;
  --blue-700: #1a41b8;
  --blue-100: #eaf0ff;
  --blue-50: #f2f6ff;
  --blue-25: #f7faff;

  --ink: #14243b;
  --ink-2: #41516a;
  --ink-3: #566174;
  --text: #637086;
  --muted: #7b8594;
  --muted-2: #8a94a1;
  --muted-3: #99a2af;

  --line: #e8edf3;
  --line-2: #e0e5ed;
  --line-3: #dce5f2;

  --green: #35a47d;
  --green-text: #27a079;
  --green-bg: #ecf8f2;

  --radius-sm: 4px;
  --radius: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;

  --shadow-btn: 0 5px 12px rgba(40, 92, 240, 0.07);
  --shadow-card: 0 4px 14px rgba(35, 70, 128, 0.02), 0 24px 68px rgba(35, 70, 128, 0.08);
  --shadow-float: 0 12px 35px rgba(33, 60, 115, 0.07);

  --container: 1248px;
  --header-h: 88px;

  --font: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  --font-mono: "Cousine", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
p,
figure,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 3px;
}

::selection {
  background: rgba(40, 92, 240, 0.16);
}

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ---------------------------------- 品牌 --------------------------------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 33px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--blue);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
  padding-bottom: 3px;
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.85);
  transform: rotate(45deg);
}

.brand-name {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--ink);
}

.brand:hover .brand-name {
  color: var(--blue);
  transition: color 0.2s ease;
}

/* ---------------------------------- 按钮 --------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease,
    border-color 0.18s ease;
}

.btn .arrow {
  font-size: 14px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.btn:hover .arrow {
  transform: translate(2px, -2px);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: var(--blue-600);
  box-shadow: 0 10px 24px rgba(40, 92, 240, 0.18);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line-2);
}

.btn-ghost:hover {
  border-color: #c9d5e8;
  color: var(--blue);
}

.btn-white {
  background: #fff;
  color: var(--blue);
  border-radius: 5px;
}

.btn-white:hover {
  background: #f3f7ff;
  transform: translateY(-1px);
}

.btn-sm {
  height: 38px;
  padding: 0 18px;
  font-size: 12px;
}

.btn-lg {
  height: 52px;
  padding: 0 30px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--blue);
}

.btn-link:hover {
  gap: 10px;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.6;
  pointer-events: none;
}

/* --------------------------------- 页头 ---------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(28, 52, 96, 0.04);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-inline: auto;
}

.mobile-nav {
  display: none;
}

.site-nav a {
  position: relative;
  font-size: 13px;
  color: var(--ink-3);
  padding-block: 6px;
  transition: color 0.18s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--blue);
  transition: right 0.22s ease;
}

.site-nav a:hover {
  color: var(--blue);
}

.site-nav a:hover::after {
  right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #68768a;
  transition: color 0.18s ease;
}

.lang-switch:hover {
  color: var(--blue);
}

.lang-switch svg {
  opacity: 0.75;
}

.header-divider {
  width: 1px;
  height: 18px;
  background: var(--line);
}

.login-link {
  font-size: 13px;
  color: var(--ink);
  transition: color 0.18s ease;
}

.login-link:hover {
  color: var(--blue);
}

.header-cta {
  height: 38px;
  padding: 0 18px;
  font-size: 12px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.nav-toggle span {
  position: relative;
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-5px) rotate(-45deg);
}

/* --------------------------------- 页脚 ---------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer .container {
  padding-block: 37px 0;
}

.footer-top {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
}

.site-footer .brand-mark {
  width: 26px;
  height: 29px;
  border-radius: 6px;
  font-size: 22px;
  padding-bottom: 2px;
}

.site-footer .brand-mark::after {
  right: 5px;
  bottom: 5px;
  width: 3px;
  height: 3px;
}

.site-footer .brand-name {
  font-size: 18px;
}

.footer-tagline {
  font-size: 11px;
  color: #96a0ae;
  margin-right: auto;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.footer-links a {
  font-size: 11px;
  color: #7c899b;
  transition: color 0.18s ease;
}

.footer-links a:hover {
  color: var(--blue);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 21px;
  border-top: 1px solid var(--line);
  padding-bottom: 20px;
}

.footer-bottom p {
  font-size: 10px;
  color: #a0a8b4;
}

/* -------------------------------- 通用表单 -------------------------------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field > label {
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 400;
}

.field-hint {
  font-size: 11px;
  color: var(--muted-3);
  line-height: 1.5;
}

.control {
  position: relative;
  display: flex;
  align-items: center;
}

.control > svg {
  position: absolute;
  left: 14px;
  color: #9aa6b8;
  pointer-events: none;
  transition: color 0.18s ease;
}

.control input {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 42px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #fff;
  font-size: 13.5px;
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.control input::placeholder {
  color: #b3bcc9;
}

.control input:hover {
  border-color: #cfd9e7;
}

.control input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(40, 92, 240, 0.1);
}

.control input:focus + svg,
.control:focus-within > svg {
  color: var(--blue);
}

.control .toggle-pwd {
  position: absolute;
  right: 6px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  color: #9aa6b8;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.control .toggle-pwd:hover {
  color: var(--blue);
  background: var(--blue-50);
}

.control.has-toggle input {
  padding-right: 46px;
}

.field-error {
  font-size: 11.5px;
  color: #e05252;
  min-height: 0;
  display: none;
}

.field.is-invalid .control input {
  border-color: #e88b8b;
  background: #fffafa;
}

.field.is-invalid .field-error {
  display: block;
}

/* -------------------------------- 动效/工具 ------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------- 响应式 --------------------------------- */

@media (max-width: 1180px) {
  .site-nav {
    gap: 22px;
  }
  .header-actions {
    gap: 16px;
  }
}

@media (max-width: 1024px) {
  :root {
    --header-h: 74px;
  }

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .header-actions .lang-switch,
  .header-actions .header-divider {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    z-index: 99;
    display: grid;
    gap: 4px;
    padding: 12px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(28, 52, 96, 0.08);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .mobile-nav.is-open {
    opacity: 1;
    transform: none;
    visibility: visible;
  }

  .mobile-nav a {
    padding: 13px 4px;
    font-size: 14px;
    color: var(--ink-3);
    border-bottom: 1px solid var(--line);
  }

  .mobile-nav a:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 768px) {
  .container {
    width: calc(100% - 32px);
  }

  .brand-name {
    font-size: 19px;
  }

  .brand-mark {
    width: 28px;
    height: 31px;
    font-size: 23px;
  }

  .header-cta {
    height: 34px;
    padding: 0 13px;
  }

  .login-link {
    display: none;
  }

  .footer-top {
    gap: 18px;
  }

  .footer-tagline {
    width: 100%;
    margin-bottom: 4px;
  }

  .footer-links {
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
