/* blog-footer —— 落地页 .landing-footer-inner 的静态 HTML 版本。
   Vue 组件(src/components/LandingFooter.vue)不能直接用在 public/ 下的静态页,
   这里把同一套结构与视觉(深色底 + 左标题/订阅 + 右三列 + 大字 wordmark + 底栏)搬过来,
   /blog 索引页与所有文章页共用这一个 CSS, 各页只内联少量 markup(保留给爬虫可见的链接)。 */

/* 滚到底的橡皮筋回弹区会露出 body 的浅色(html 没背景时浏览器拿 body 的背景铺满画布,
   而 footer 只覆盖自己那一块)—— 关掉纵向回弹, 底部就不会再闪出一条白。 */
html,
body {
  overscroll-behavior-y: none;
}

.blog-footer {
  position: relative;
  z-index: 2;
  background: #0a0a0a;
  color: #fff;
}

.blog-footer .i18n-zh { display: none; }
html[lang="zh-CN"] .blog-footer .i18n-en { display: none; }
html[lang="zh-CN"] .blog-footer .i18n-zh { display: inline; }

.blog-footer-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 56px 32px 0;
  display: flex;
  flex-direction: column;
}

/* 上半:左标题+订阅 / 右三列 */
.blog-footer-top {
  display: flex;
  justify-content: space-between;
  gap: 64px;
  flex-wrap: wrap;
}

.blog-footer-cta {
  flex: 1 1 380px;
  min-width: 0;
  max-width: 520px;
}

.blog-footer-headline {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.05;
  color: #fff;
}

.blog-footer-newsletter-label {
  margin: 22px 0 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.blog-footer-newsletter {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 8px 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  max-width: 420px;
  transition: border-color 0.2s ease;
}

.blog-footer-newsletter:focus-within { border-color: rgba(255, 255, 255, 0.4); }

.blog-footer-newsletter-input {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
}

.blog-footer-newsletter-input::placeholder { color: rgba(255, 255, 255, 0.4); }

.blog-footer-newsletter-submit {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: #0a0a0a;
  cursor: pointer;
  transition: opacity 0.16s ease;
}

.blog-footer-newsletter-submit:hover { opacity: 0.85; }

.blog-footer-newsletter-note {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
  min-height: 1em;
}

/* 右侧三列 */
.blog-footer-nav {
  display: flex;
  gap: 72px;
  flex-wrap: wrap;
}

.blog-footer-col {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}

.blog-footer-col-title {
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.blog-footer-col a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.16s ease;
}

.blog-footer-col a:hover { color: #fff; }

/* 社交 —— 彩色方块图标(品牌色底 + 白色字形) */
.blog-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.blog-footer-social a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.blog-footer-social a:hover { transform: translateY(-2px); opacity: 0.9; }

.blog-footer-social .is-x {
  background: #fff;
  color: #0a0a0a;
}
.blog-footer-social .is-linkedin { background: #0a66c2; }
/* Instagram 是渐变标识, 用官方那套紫→粉→橙 */
.blog-footer-social .is-instagram {
  background: radial-gradient(circle at 30% 107%,
    #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

/* === 中间大字 wordmark —— 与 LandingFooter 完全一致(逐字滑入) === */
.blog-footer-wordmark-row {
  /* 只保留上方分隔线 —— 大字下面不再压一条边 */
  border-top: 0.5px solid rgba(255, 255, 255, 0.12);
  padding: 28px 0 0;
  margin: 56px 0 0;
}

/* 不用 flex —— flex 会忽略 letter-spacing; block + center + nowrap 让各字母
   紧密排成一行, 字号用 vw 自适应 */
.blog-footer-wordmark {
  display: block;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  font-size: clamp(80px, 20vw, 280px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: #fff;
  user-select: none;
}

/* 每个字符外裹 overflow:hidden 容器, 内层从 110% 滑入(逐字错峰) */
.blog-footer-wordmark-clip {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1;
}

.blog-footer-wordmark-char {
  display: inline-block;
  will-change: transform;
  transform: translateY(110%);
  animation: blog-wordmark-rise 0.7s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

@keyframes blog-wordmark-rise {
  to { transform: translateY(0); }
}

/* 底栏 */
.blog-footer-bottom {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.blog-footer-legal {
  display: flex;
  gap: 20px;
}

.blog-footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.16s ease;
}

.blog-footer-legal a:hover { color: #fff; }

@media (max-width: 860px) {
  .blog-footer-inner { padding: 44px 20px 0; }
  .blog-footer-top { gap: 40px; }
  .blog-footer-nav { gap: 40px; }
  .blog-footer-wordmark-row { margin-top: 44px; }
  .blog-footer-bottom { flex-direction: column-reverse; align-items: flex-start; gap: 10px; }
}
