/* ==========================================================================
   Leonet 林傲网络 · 全站基础样式
   1. 设计变量  2. 基础重置  3. 版式与通用组件  4. 页头与导航
   5. 页脚  6. 动效  7. 响应式
   ========================================================================== */

/* 1. 设计变量 ------------------------------------------------------------- */
:root {
  --bg: #05070d;
  --bg-soft: #080c16;
  --surface: #0b101c;
  --surface-2: #101728;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #eef2fa;
  --text-2: #a6b0c6;
  --text-3: #6d778f;

  --brand: #4e6dff;
  --brand-soft: #8b9cff;
  --brand-deep: #2a3c9e;
  --accent: #35e0c0;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --container: 1240px;
  --gutter: 24px;
  --header-h: 72px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-lift: 0 24px 60px -28px rgba(0, 0, 0, 0.9);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC",
    Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

/* 2. 基础重置 ------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
p {
  margin: 0;
}

::selection {
  background: rgba(78, 109, 255, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--brand-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 999;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 3. 版式与通用组件 ------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 28px);
}

.section {
  position: relative;
  padding: 112px 0;
}

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

.section--line {
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 56px;
}

.section-head__main {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-soft);
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--brand), transparent);
}

.section-title {
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.24;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-desc {
  margin-top: 18px;
  max-width: 620px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.9;
}

.title-accent {
  background: linear-gradient(120deg, #fff 10%, var(--brand-soft) 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted {
  color: var(--text-2);
}

.small {
  font-size: 13px;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
    border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--brand) 0%, #6f5cff 100%);
  color: #fff;
  box-shadow: 0 12px 34px -14px rgba(78, 109, 255, 0.9);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px -16px rgba(78, 109, 255, 0.95);
}

.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn--ghost:hover {
  border-color: rgba(139, 156, 255, 0.6);
  background: rgba(78, 109, 255, 0.1);
  transform: translateY(-2px);
}

.btn--sm {
  height: 40px;
  padding: 0 20px;
  font-size: 14px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-soft);
  font-size: 14px;
  font-weight: 500;
}

.link-arrow svg {
  width: 15px;
  height: 15px;
  transition: transform 0.3s var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* 卡片 */
.card {
  position: relative;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease),
    box-shadow 0.45s var(--ease), background 0.45s var(--ease);
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(78, 109, 255, 0.16), transparent 65%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 156, 255, 0.34);
  box-shadow: var(--shadow-lift);
}

.card:hover::after {
  opacity: 1;
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 13px;
  border: 1px solid rgba(139, 156, 255, 0.24);
  background: linear-gradient(150deg, rgba(78, 109, 255, 0.22), rgba(53, 224, 192, 0.08));
  color: var(--brand-soft);
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card__title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.card__text {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.8;
}

.card__list {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.card__list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-2);
  font-size: 14px;
}

.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: rgba(139, 156, 255, 0.7);
  transform: rotate(45deg);
}

.grid {
  display: grid;
  gap: 20px;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* 标签 / 徽标 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.tag--brand {
  border-color: rgba(78, 109, 255, 0.4);
  background: rgba(78, 109, 255, 0.12);
  color: var(--brand-soft);
}

/* 玻璃面板 */
.glass {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 17, 29, 0.66);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* 页面通用 Hero */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 96px) 0 76px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.page-hero__inner {
  position: relative;
  max-width: 820px;
}

.page-hero h1 {
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.16;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.page-hero p {
  margin-top: 22px;
  max-width: 680px;
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.9;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  font-size: 13px;
  color: var(--text-3);
}

.breadcrumb a:hover {
  color: var(--brand-soft);
}

.breadcrumb span[aria-current] {
  color: var(--text-2);
}

/* 背景装饰 */
.bg-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg-grid {
  position: absolute;
  inset: -1px;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 10%, transparent 72%);
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
}

.bg-glow--a {
  width: 620px;
  height: 620px;
  top: -300px;
  left: 50%;
  transform: translateX(-52%);
  background: radial-gradient(circle, rgba(78, 109, 255, 0.5), transparent 68%);
}

.bg-glow--b {
  width: 420px;
  height: 420px;
  top: -140px;
  right: 6%;
  background: radial-gradient(circle, rgba(53, 224, 192, 0.22), transparent 68%);
}

/* 4. 页头与导航 ----------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(5, 7, 13, 0.82);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand__mark {
  width: auto;
  height: 28px;
  flex-shrink: 0;
  display: block;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.brand__en {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--text-3);
  text-transform: uppercase;
}

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

.nav__link {
  position: relative;
  padding: 8px 15px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 14.5px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 2px;
  height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s var(--ease);
}

.nav__link:hover {
  color: var(--text);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.nav__link.is-active {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-tel {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-2);
  letter-spacing: 0.04em;
}

.header-tel svg {
  width: 14px;
  height: 14px;
  color: var(--brand-soft);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.32s var(--ease), opacity 0.24s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* 移动端抽屉 */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 99;
  padding: 8px var(--gutter) 32px;
  background: rgba(5, 7, 13, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}

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

.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  color: var(--text-2);
}

.mobile-menu__link.is-active {
  color: var(--brand-soft);
}

.mobile-menu__link span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.1em;
}

.mobile-menu .btn {
  width: 100%;
  margin-top: 24px;
}

/* 5. 页脚 ---------------------------------------------------------------- */
.site-footer {
  position: relative;
  padding: 72px 0 32px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 12, 22, 0), rgba(8, 12, 22, 0.9));
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr) 1.2fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}

.footer-brand p {
  margin-top: 18px;
  max-width: 280px;
  color: var(--text-3);
  font-size: 13.5px;
  line-height: 1.85;
}

.footer-col h3 {
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.06em;
}

.footer-col li + li {
  margin-top: 11px;
}

.footer-col a {
  color: var(--text-3);
  font-size: 13.5px;
  transition: color 0.25s var(--ease);
}

.footer-col a:hover {
  color: var(--brand-soft);
}

.footer-contact li {
  color: var(--text-3);
  font-size: 13.5px;
  line-height: 1.7;
}

.footer-contact strong {
  display: block;
  color: var(--text-2);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 26px;
  font-size: 12.5px;
  color: var(--text-3);
}

.footer-bottom__links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-bottom__links a:hover {
  color: var(--brand-soft);
}

/* 6. 动效 ---------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal--left {
  transform: translateX(-28px);
}

.reveal--right {
  transform: translateX(28px);
}

.reveal--scale {
  transform: scale(0.97);
}

.reveal.in.reveal--left,
.reveal.in.reveal--right,
.reveal.in.reveal--scale {
  transform: none;
}

.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(16, 23, 40, 0.86);
  backdrop-filter: blur(12px);
  color: var(--text-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease),
    visibility 0.35s, border-color 0.3s, color 0.3s;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  color: #fff;
  border-color: var(--brand-soft);
}

.to-top svg {
  width: 16px;
  height: 16px;
}

/* 滚动进度条 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 101;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width 0.1s linear;
}

/* 7. 响应式 -------------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .header-tel {
    display: none;
  }

  .section {
    padding: 88px 0;
  }

  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    row-gap: 36px;
  }
}

@media (max-width: 860px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 40px;
  }

  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero {
    padding: calc(var(--header-h) + 64px) 0 56px;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 20px;
    --header-h: 64px;
  }

  body {
    font-size: 15px;
  }

  .section {
    padding: 64px 0;
  }

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

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .card {
    padding: 24px;
  }

  .brand__name {
    font-size: 16px;
  }

  .btn {
    height: 46px;
    padding: 0 22px;
    font-size: 14.5px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 20px;
    padding-bottom: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .to-top {
    right: 16px;
    bottom: 16px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
