/* =========================================================
   layout.css
   导航 · 页面骨架 · Hero · 区块标题 · 页脚 · 回到顶部
   ========================================================= */

/* =========================================================
   导航
   ========================================================= */
.nav-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px clamp(16px, 4vw, 40px);
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  width: 100%;
  max-width: var(--maxw);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 12px 10px 20px;
  border-radius: 999px;
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease),
              border-color 0.4s var(--ease);
}

.nav.scrolled {
  background-color: rgba(13, 13, 21, 0.55);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.14), 0 0 14px rgba(167, 139, 250, 0.8);
  animation: pulse 3.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(167,139,250,0.14), 0 0 14px rgba(167,139,250,0.7); }
  50%      { box-shadow: 0 0 0 7px rgba(167,139,250,0.06), 0 0 20px rgba(103,232,249,0.7); }
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-2);
  transition: color 0.25s ease, background-color 0.25s ease;
}
.nav-link:hover {
  color: var(--text);
  background-color: rgba(255, 255, 255, 0.07);
}

.nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: #0b0b12;
  background: linear-gradient(135deg, #c4b5fd, #a5f3fc);
  box-shadow: 0 4px 18px rgba(167, 139, 250, 0.32);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s ease;
  white-space: nowrap;
}
.nav-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 7px 24px rgba(167, 139, 250, 0.45);
}

/* =========================================================
   布局
   ========================================================= */
main { position: relative; }

.section {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 110px) clamp(20px, 5vw, 40px);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 120px clamp(20px, 5vw, 40px) 80px;
  text-align: center;
}

.hero-inner {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 头像 */
.avatar {
  position: relative;
  width: 96px; height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 34px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.avatar-initial {
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff, #c4b5fd 45%, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.avatar-ring {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  animation: spin 22s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 文字 */
.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2.8rem, 9vw, 5.4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin-bottom: 22px;
}

.grad-text {
  background: linear-gradient(105deg, #c4b5fd 0%, #93c5fd 38%, #67e8f9 72%, #c4b5fd 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 9s linear infinite;
}
@keyframes sheen {
  from { background-position: 0% 50%; }
  to   { background-position: 220% 50%; }
}

.hero-sub {
  max-width: 560px;
  font-size: clamp(15.5px, 2.1vw, 17px);
  color: var(--text-2);
  line-height: 1.9;
  text-wrap: balance;
  margin-bottom: 30px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-bottom: 38px;
}

.tag {
  padding: 6px 14px;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--text-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              background 0.3s ease, border-color 0.3s ease;
}

.btn svg { transition: transform 0.35s var(--ease); }

.btn-primary {
  color: #0a0a12;
  background: linear-gradient(135deg, #ddd6fe, #a5f3fc);
  box-shadow: 0 8px 30px rgba(167, 139, 250, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(167, 139, 250, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* 滚动提示 */
.scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 46px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
  border-radius: 999px;
}
.scroll-line {
  width: 1.5px; height: 22px;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: scroll-run 2.4s ease-in-out infinite;
}
@keyframes scroll-run {
  0%   { transform: translateY(-6px) scaleY(0.4); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: translateY(20px) scaleY(1); opacity: 0; }
}

/* =========================================================
   区块标题
   ========================================================= */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 30px;
}

.section-index {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--violet);
  opacity: 0.85;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  letter-spacing: -0.03em;
}

.section-en {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-left: auto;
  padding-bottom: 4px;
}

/* =========================================================
   页脚 / 回到顶部
   ========================================================= */
.footer {
  padding: 40px 20px 56px;
  text-align: center;
}

.footer p {
  font-size: 12.5px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

.to-top {
  position: fixed;
  right: clamp(16px, 4vw, 34px);
  bottom: clamp(16px, 4vw, 34px);
  z-index: 90;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease),
              visibility 0.4s, background-color 0.3s ease;
}

.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background-color: rgba(255, 255, 255, 0.12); }

