/* 布局：顶栏、首屏、页脚。 */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  z-index: 60;
  transition: width 90ms linear;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition:
    background 300ms var(--ease),
    border-color 300ms var(--ease),
    backdrop-filter 300ms var(--ease);
}

.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-mark {
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  font-size: 14px;
  color: var(--ink-soft);
}

.site-nav a {
  position: relative;
  padding: 4px 0;
  transition: color 200ms var(--ease);
}

.site-nav a:hover {
  color: #ffffff;
}

.site-nav a.is-current {
  color: #ffffff;
}

.site-nav a.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
}

/* 首屏：居中，大字，浮动的应用图标。 */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: min(100vh, 940px);
  padding: clamp(120px, 17vh, 190px) 0 clamp(60px, 9vh, 110px);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-perspective {
  position: absolute;
  inset: 0 -50% -20% -50%;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 90px 90px;
  transform: perspective(900px) rotateX(62deg) translate3d(var(--px, 0px), 0, 0)
    scale(1.4);
  transform-origin: 50% 100%;
  mask-image: radial-gradient(64% 52% at 50% 74%, #000 6%, transparent 74%);
  transition: transform 900ms var(--ease-out);
  pointer-events: none;
}

.hero .container {
  text-align: center;
}

.hero-tile {
  position: relative;
  margin-inline: auto;
  width: clamp(84px, 9vw, 116px);
  height: clamp(84px, 9vw, 116px);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 70px -28px rgba(46, 155, 246, 0.55);
  animation: float 7s ease-in-out infinite;
}

.hero-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-title {
  margin-top: clamp(30px, 5vh, 52px);
  font-size: clamp(36px, 5.8vw, 74px);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.hero-title .accent {
  color: var(--accent);
}

.hero-lead {
  max-width: 40ch;
  margin: 22px auto 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.6vw, 18px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.hero-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(680px, 100%);
  margin: 46px auto 0;
  padding: 10px 10px 10px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
}

.hero-bar-text {
  font-size: 13.5px;
  color: var(--ink-soft);
}

.hero-bar-text strong {
  color: #ffffff;
  font-weight: 600;
}

.site-footer {
  padding: clamp(56px, 8vw, 96px) 0 36px;
  border-top: 1px solid var(--line-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  gap: 40px;
}

.footer-name {
  margin-top: 10px;
  font-weight: 600;
}

.footer-tagline {
  margin-top: 8px;
  max-width: 30ch;
  color: var(--ink-faint);
  font-size: 14px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-column h3 {
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.footer-column a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--ink-faint);
}
