/* ============================================================
   FileLocator 中文官网 — Common Stylesheet
   主题色: #004E7A
   编码: UTF-8
   ============================================================ */

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", "Helvetica Neue",
    Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #1f2933;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: #004e7a;
  text-decoration: none;
  transition: color .2s ease;
}

a:hover {
  color: #0073b1;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---------- CSS Variables ---------- */
:root {
  --brand: #004e7a;
  --brand-dark: #003a5c;
  --brand-light: #0073b1;
  --brand-50: #e6f0f6;
  --brand-100: #cfe1ec;
  --accent: #f59e0b;
  --text: #1f2933;
  --text-soft: #52606d;
  --text-muted: #7b8794;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-elevated: #ffffff;
  --border: #e4e7eb;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 78, 122, 0.18);
  --container: 1200px;
}

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

.section {
  padding: 96px 0;
}

.section-tight {
  padding: 64px 0;
}

.section-title {
  font-size: 36px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-soft);
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-50);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 10px;
  transition: all .2s ease;
  white-space: nowrap;
  line-height: 1;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 78, 122, 0.28);
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 78, 122, 0.34);
}

.btn-ghost {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--brand-50);
  color: var(--brand-dark);
  border-color: var(--brand-100);
}

.btn-lg {
  padding: 16px 28px;
  font-size: 16px;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(228, 231, 235, 0.6);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-brand-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: 8px;
  transition: all .15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand);
  background: var(--brand-50);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-cta .btn-ghost {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-soft);
}

.nav-cta .btn-primary {
  padding: 10px 18px;
  font-size: 14px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.nav-toggle:hover {
  background: var(--bg-soft);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* ============================================================
   MOBILE MENU — Full-screen editorial overlay
   ============================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 31, 51, 0.78);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 96px 28px 32px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu::before {
  content: "";
  position: absolute;
  top: -200px; right: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(0, 115, 177, 0.4), transparent 65%);
  filter: blur(60px);
  pointer-events: none;
}

.mobile-menu::after {
  content: "";
  position: absolute;
  bottom: -160px; left: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(30, 168, 216, 0.28), transparent 65%);
  filter: blur(70px);
  pointer-events: none;
}

/* 顶部 label */
.mobile-menu-label {
  position: relative;
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu ul {
  position: relative;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 28px;
  padding: 0;
}

.mobile-menu ul li {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu.open ul li { opacity: 1; transform: translateY(0); }
.mobile-menu.open ul li:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.open ul li:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu.open ul li:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open ul li:nth-child(4) { transition-delay: 0.26s; }
.mobile-menu.open ul li:nth-child(5) { transition-delay: 0.32s; }
.mobile-menu.open ul li:nth-child(6) { transition-delay: 0.38s; }

.mobile-menu a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: transparent;
  transition: color 0.2s ease, padding 0.25s ease;
  line-height: 1.2;
}

.mobile-menu a::before {
  content: attr(data-num);
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(110, 193, 228, 0.7);
  flex-shrink: 0;
}

.mobile-menu a::after {
  content: "→";
  font-size: 15px;
  color: rgba(255, 255, 255, 0.3);
  margin-left: auto;
  transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-menu a span:first-of-type,
.mobile-menu a > span {
  flex: 1;
  margin-left: 4px;
}

.mobile-menu a:hover,
.mobile-menu a:active {
  color: #6ec1e4;
  padding-left: 10px;
}

.mobile-menu a:hover::after { transform: translateX(4px); color: #6ec1e4; }

.mobile-menu .mobile-cta {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease 0.44s, transform 0.4s ease 0.44s;
}

.mobile-menu.open .mobile-cta { opacity: 1; transform: translateY(0); }

.mobile-menu .btn {
  justify-content: center;
  padding: 16px 22px;
  font-size: 15px;
  border-radius: 12px;
}

.mobile-menu .btn-primary {
  background: #ffffff;
  color: #004e7a;
  box-shadow: 0 8px 24px rgba(0, 78, 122, 0.35);
}

.mobile-menu .btn-primary:hover {
  background: #f6f8fb;
  color: #003a5c;
}

.mobile-menu .btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.mobile-menu .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.32);
  color: #ffffff;
}

/* 底部联系信息 */
.mobile-menu-footer {
  position: relative;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease 0.5s, transform 0.4s ease 0.5s;
}

.mobile-menu.open .mobile-menu-footer { opacity: 1; transform: translateY(0); }

.mobile-menu-footer .row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-menu-footer .row svg { width: 12px; height: 12px; color: #6ec1e4; flex-shrink: 0; }

.mobile-menu-footer a {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  font-size: 12.5px;
}

.mobile-menu-footer .copy {
  margin-top: 6px;
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.3);
}

/* 切换按钮悬浮在叠层之上 + 状态切换 */
.nav-toggle {
  position: relative;
  z-index: 1001;
  color: var(--text);
  transition: color 0.2s ease;
}

body.menu-open .nav-toggle { color: #ffffff; }
body.menu-open { overflow: hidden; }

/* ============================================================
   FOOTER — Structured compact dark
   ============================================================ */
.site-footer {
  position: relative;
  background: #0a1f33;
  color: rgba(255, 255, 255, 0.7);
  padding: 44px 0 0;
  overflow: hidden;
  isolation: isolate;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -200px; right: -120px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(0, 115, 177, 0.25), transparent 65%);
  filter: blur(70px);
  z-index: -1;
  pointer-events: none;
}

/* 顶部双列：品牌 + 联系卡 */
.footer-main {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* —— 品牌区 —— */
.footer-brand-block { min-width: 0; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-brand img {
  width: 40px; height: 40px;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.footer-brand-sub {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.footer-tag {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  max-width: 380px;
  margin-bottom: 16px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(110, 193, 228, 0.18);
  border-radius: 999px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}

.footer-badge .dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0073b1 0%, #1ea8d8 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* —— 联系卡组 —— */
.footer-contact {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  transition: all 0.25s ease;
}

.footer-contact li:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(110, 193, 228, 0.25);
  transform: translateY(-2px);
}

.footer-contact .ico {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 115, 177, 0.25), rgba(30, 168, 216, 0.15));
  color: #6ec1e4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(110, 193, 228, 0.18);
}

.footer-contact .ico svg { width: 18px; height: 18px; }

.footer-contact .body {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}

.footer-contact .label {
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 4px;
}

.footer-contact a,
.footer-contact .value {
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: color 0.2s ease;
}

.footer-contact a:hover { color: #6ec1e4; }

/* —— 声明条 —— */
.footer-notice {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  text-align: center;
}

.footer-notice strong {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  margin-right: 4px;
}

/* —— 底部版权条 —— */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 0 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom .left,
.footer-bottom .right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-bottom .sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.footer-bottom .right {
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.35);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-contact { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 28px;
  }
}

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

  .nav {
    height: 64px;
  }

  .nav-brand-sub {
    display: none;
  }
}

/* ============================================================
   语言切换器 Language Switcher
   ============================================================ */
.lang-switcher {
  position: relative;
  margin-right: 6px;
}
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #e4e7eb;
  background: #ffffff;
  color: #1f2933;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  font-family: inherit;
}
.lang-trigger:hover {
  border-color: #cfe1ec;
  background: #f8fbfd;
  color: #004e7a;
}
.lang-trigger .globe { width: 16px; height: 16px; color: #52606d; flex-shrink: 0; }
.lang-trigger:hover .globe { color: #004e7a; }
.lang-trigger .caret {
  width: 12px;
  height: 12px;
  margin-left: 2px;
  color: #7b8794;
  transition: transform .2s ease;
}
.lang-switcher.open .lang-trigger .caret { transform: rotate(180deg); }
.lang-switcher.open .lang-trigger {
  border-color: #cfe1ec;
  background: #f8fbfd;
  color: #004e7a;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid #e4e7eb;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 16px 40px rgba(0, 31, 53, 0.12), 0 2px 6px rgba(0, 31, 53, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 1000;
}
.lang-switcher.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #1f2933;
  font-size: 14px;
  font-weight: 500;
  transition: background .15s ease;
}
.lang-menu a:hover { background: #f6f8fb; color: #004e7a; }
.lang-menu a.active { background: #eef5fa; color: #004e7a; }
.lang-menu .code {
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #7b8794;
  padding: 3px 7px;
  border-radius: 5px;
  background: #f6f8fb;
  flex-shrink: 0;
}
.lang-menu a.active .code { color: #004e7a; background: #d6e8f2; }
.lang-menu a .name { flex: 1; }
.lang-menu a .check {
  width: 14px;
  height: 14px;
  color: #004e7a;
  opacity: 0;
}
.lang-menu a.active .check { opacity: 1; }
.lang-menu a .ext {
  width: 12px;
  height: 12px;
  color: #7b8794;
  opacity: 0;
}
.lang-menu a:hover .ext { opacity: 1; }

/* 移动菜单中的语言切换块 */
.mobile-lang {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-lang-label {
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 14px;
}
.mobile-lang-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-lang-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 500;
  transition: all .2s ease;
}
.mobile-lang-list a:hover,
.mobile-lang-list a.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.mobile-lang-list a .code {
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, 0.55);
}
.mobile-lang-list a.active .code { color: #ffffff; }

/* 在窄屏导航中隐藏桌面切换器 */
@media (max-width: 880px) {
  .lang-switcher { display: none; }
}
