/* Nav, buttons, form, drawer, footer — dark enterprise */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 120;
  background: transparent;
  border: none;
  pointer-events: none;
}

.site-header > * { pointer-events: auto; }

.nav-island-wrap {
  position: relative;
  z-index: 3;
  padding: 12px clamp(16px, 4vw, 48px) 0;
  display: flex;
  justify-content: center;
}

.nav-island-wrap > [data-partial],
.nav-island-wrap > div {
  width: 100%;
  max-width: var(--nav-max-w);
  display: flex;
  justify-content: center;
}

.nav-wrap {
  --nav-edge-inset: 8px;
  position: relative;
  width: 100%;
  max-width: var(--nav-max-w);
  height: var(--nav-h);
  flex-shrink: 0;
  background: var(--nav-glass);
  border: 1px solid var(--nav-glass-border);
  border-radius: var(--pill);
  backdrop-filter: blur(32px) saturate(1.1);
  -webkit-backdrop-filter: blur(32px) saturate(1.1);
  box-shadow: var(--shadow-nav);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.site-header.scrolled .nav-wrap {
  background: var(--nav-glass-scrolled);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-wrap .nav.container {
  max-width: none;
  width: 100%;
  height: 100%;
  /* 右侧 inset 与 CTA 上下留白一致，形成嵌套胶囊 */
  padding: 0 var(--nav-edge-inset) 0 clamp(16px, 2.2vw, 24px);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 8px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  z-index: 1;
}

.nav-logo-img {
  height: 20px;
  width: auto;
  max-width: min(200px, 40vw);
  object-fit: contain;
}

.nav-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 3px;
  flex-shrink: 0;
}

.nav-logo-text {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.nav-links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4.5vw, 56px);
}

.nav-links a {
  position: relative;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-2);
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 3px;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.nav-links a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  z-index: 1;
}

.nav-toggle {
  display: none;
  width: calc(var(--nav-h) - var(--nav-edge-inset) * 2);
  height: calc(var(--nav-h) - var(--nav-edge-inset) * 2);
  align-items: center;
  justify-content: center;
  border-radius: var(--pill);
  color: var(--text);
  transition: background 0.15s ease;
}

.nav-toggle:hover { background: rgba(255, 255, 255, 0.08); }

/* ── Buttons — solid, quiet ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:active { transform: scale(0.985); }

.btn.btn-pill,
.btn-pill {
  border-radius: var(--pill);
  padding: 10px 22px;
}

.btn.primary,
.btn-pill.primary {
  background: #fff;
  color: #0a0a0a;
  border-color: transparent;
  box-shadow: none;
}

.btn.primary:hover,
.btn-pill.primary:hover {
  background: #fff;
  color: #0a0a0a;
  transform: translateY(-1px);
  opacity: 0.94;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.btn.ghost,
.btn-pill.ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

.btn.ghost:hover,
.btn-pill.ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: none;
  opacity: 1;
}

.btn.sm,
.btn-pill.sm {
  font-size: 12.5px;
  padding: 7px 16px;
  letter-spacing: -0.005em;
}

.nav-right .btn-pill.sm {
  height: calc(var(--nav-h) - var(--nav-edge-inset) * 2);
  padding: 0 16px;
  box-sizing: border-box;
}

.nav-right .btn-pill.sm:hover {
  transform: none;
}

/* ── Mobile drawer ── */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
}

.mobile-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(300px, 86vw);
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: 72px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transform: translateX(16px);
  transition: transform 0.25s;
}

.mobile-drawer.open .mobile-panel { transform: none; }

.mobile-panel a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  padding: 14px 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.15s ease;
}

.mobile-panel a:hover { background: transparent; color: var(--text); }

.mobile-panel .drawer-cta {
  margin-top: 20px;
  text-align: center;
  background: #fff;
  color: #0a0a0a;
  border-radius: var(--pill);
  border-bottom: none;
  font-weight: 600;
  padding: 12px 16px;
  transition: opacity 0.15s ease;
}

.mobile-panel .drawer-cta:hover {
  color: #0a0a0a;
  background: #fff;
  opacity: 0.92;
}

/* ── Form ── */
.cta-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 3vw, 32px);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text-3);
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 16px;
  letter-spacing: -0.011em;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-mute);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  min-height: 108px;
  resize: vertical;
  line-height: 1.5;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

.field input.is-invalid,
.field textarea.is-invalid {
  border-color: #E05A4A;
}

.form-hint {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
}

.form-status {
  font-size: 13px;
  color: var(--accent);
  min-height: 1.2em;
}

/* ── Footer — Apple-style directory ── */
.site-footer,
footer {
  position: relative;
  background:
    linear-gradient(180deg, transparent 0%, #000000 56px),
    #000000;
  border-top: none;
  padding: 0 clamp(16px, 4vw, 48px) 18px;
  color: rgba(245, 245, 247, 0.56);
}

/* 承接上一区块的平滑沉入，消除硬分割线 */
.site-footer::before,
footer::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -48px;
  height: 48px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 45%,
    #000000 100%
  );
  z-index: 0;
}

.footer-inner {
  position: relative;
  z-index: 1;
  /* 与常驻页眉导航岛同宽，分割线对齐 */
  max-width: var(--nav-max-w);
  width: 100%;
  padding: clamp(28px, 4vw, 40px) 0 0;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  opacity: 0.88;
  transition: opacity 0.2s ease;
}

.footer-logo:hover {
  opacity: 1;
}

.footer-logo-img,
.footer-logo img {
  height: 16px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.footer-tagline,
#footer-tagline {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.33337;
  letter-spacing: -0.01em;
  color: rgba(245, 245, 247, 0.48);
  max-width: none;
}

.footer-directory {
  padding-bottom: 22px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 20px;
  align-items: start;
}

.footer-col {
  min-width: 0;
}

.footer-col-title,
.footer-col h4 {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.33337;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #f5f5f7;
}

.footer-col-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col-list a,
.footer-col a {
  display: inline-block;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.33337;
  letter-spacing: -0.01em;
  color: rgba(245, 245, 247, 0.56);
  padding: 0;
  transition: color 0.2s ease;
}

.footer-col-list a:hover,
.footer-col a:hover {
  color: #f5f5f7;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 0;
  margin-top: 0;
  border-top: none;
  font-family: var(--sans);
}

.footer-bottom-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

.footer-bottom-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  flex: 0 1 auto;
  max-width: 100%;
}

.footer-bottom-links .footer-legal:not(:empty) + .footer-beian:not(:empty)::before {
  content: '|';
  margin: 0 10px;
  color: rgba(245, 245, 247, 0.2);
  font-weight: 400;
  pointer-events: none;
}

.footer-copy {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.33337;
  letter-spacing: -0.01em;
  color: rgba(245, 245, 247, 0.48);
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.footer-legal {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.footer-legal a {
  font-size: 12px;
  font-weight: 400;
  color: rgba(245, 245, 247, 0.56);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.footer-legal a:hover {
  color: #f5f5f7;
}

.footer-legal-sep {
  margin: 0 10px;
  color: rgba(245, 245, 247, 0.2);
  font-size: 12px;
}

.footer-beian {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px 8px;
  width: auto;
  max-width: max-content;
  margin: 0;
  padding: 0;
  border-top: none;
  text-align: left;
  flex: 0 1 auto;
}

.footer-beian-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  opacity: 0.7;
}

.footer-beian-link {
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: -0.006em;
  color: rgba(245, 245, 247, 0.36);
  transition: color 0.2s ease;
}

.footer-beian-link:hover {
  color: rgba(245, 245, 247, 0.72);
}

.footer-beian-sep {
  color: rgba(245, 245, 247, 0.18);
  font-size: 11px;
  line-height: 1;
}
