/* ==========================================================================
   全站页脚 Footer
   布局参考 workbuddy.cn：品牌区 + 多列导航 + 信息条 + 巨型字标
   作用域 .ft —— 与旧 .foot 完全隔离，勿混用
   ========================================================================== */
.ft {
  --ft-bg: #0a100f;
  --ft-bg-deep: #060a09;
  --ft-line: rgba(255, 255, 255, .075);
  --ft-title: #ffffff;
  --ft-text: #98a5a2;
  --ft-text-dim: #7b8a87;
  --ft-brand: #0a8f88;
  --ft-brand-lite: #5fd8cb;

  position: relative;
  margin-top: 28px;
  background: radial-gradient(1180px 460px at 10% -8%, rgba(10, 143, 136, .16), rgba(10, 143, 136, 0) 68%), var(--ft-bg);
  overflow: hidden;
  color: var(--ft-text);
  font-size: 14px;
  font-family: 微软雅黑, Arial, Helvetica, sans-serif;
}

.ft *,
.ft *::before,
.ft *::after { box-sizing: border-box; }

/* 顶部品牌发光线 */
.ft-topline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(95, 216, 203, 0) 0%, rgba(95, 216, 203, .45) 26%, rgba(95, 216, 203, .16) 62%, rgba(95, 216, 203, 0) 100%);
}

.ft-in { padding: 70px 0 0; }

/* ---------- 主区 ---------- */
.ft-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 56px;
  padding-bottom: 54px;
}

/* 品牌区 */
.ft-brand {
  flex: 0 1 340px;
  min-width: 0;
}

.ft-logo {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 10px 15px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 10px 26px -12px rgba(0, 0, 0, .9);
  transition: transform .28s cubic-bezier(.2, .7, .3, 1), box-shadow .28s ease;
}
.ft-logo img {
  display: block;
  height: 24px;
  width: auto;
  max-width: 100%;
}
.ft-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 16px 34px -12px rgba(0, 0, 0, .95);
}

.ft-slogan {
  margin: 26px 0 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: .3px;
  color: #f2f7f6;
}
.ft-slogan em {
  font-style: normal;
  color: var(--ft-brand-lite);
}

.ft-desc {
  margin: 12px 0 0;
  max-width: 306px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.95;
  color: #8b9895;
}

/* 导航列 */
.ft-cols {
  display: flex;
  flex: 1 1 auto;
  justify-content: space-between;
  gap: 24px;
  max-width: 720px;
  padding-top: 4px;
}

.ft-col {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.ft-col-title {
  margin: 0 0 16px;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .2px;
  color: var(--ft-title);
  white-space: nowrap;
}

.ft .ft-link {
  display: block;
  padding: 5px 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ft-text);
  white-space: nowrap;
  transition: color .22s ease, transform .22s ease;
}
.ft .ft-link:hover,
.ft .ft-link:focus-visible {
  color: var(--ft-brand-lite);
  transform: translateX(3px);
}

/* 二维码 */
.ft-qr {
  flex: 0 0 auto;
  text-align: center;
  padding-top: 2px;
}
.ft-qr-box {
  width: 128px;
  height: 128px;
  padding: 6px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 14px 30px -14px rgba(0, 0, 0, .95), 0 0 0 1px rgba(95, 216, 203, .16);
  transition: box-shadow .28s ease, transform .28s cubic-bezier(.2, .7, .3, 1);
}
.ft-qr-box img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 9px;
  object-fit: cover;
}
.ft-qr:hover .ft-qr-box {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 18px 36px -14px rgba(0, 0, 0, .95), 0 0 0 1px rgba(95, 216, 203, .34);
}
.ft-qr-txt {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ft-text-dim);
  letter-spacing: .3px;
}

/* ---------- 友情链接 ---------- */
.ft-friend {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 22px 0 28px;
  border-top: 1px solid var(--ft-line);
  flex-wrap: wrap;
}
.ft-friend-label {
  flex: 0 0 auto;
  font-size: 12.5px;
  letter-spacing: .6px;
  color: #6b7976;
}
.ft-friend-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ft-friend-list a {
  font-size: 13px;
  color: var(--ft-text);
  transition: color .2s ease;
}
.ft-friend-list a:hover { color: var(--ft-brand-lite); }

/* ---------- 版权条 ---------- */
.ft-bar {
  background: var(--ft-bg-deep);
  padding: 17px 0;
}
.ft-bar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  flex-wrap: wrap;
}
.ft-copy,
.ft-meta {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ft-text-dim);
}
.ft-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ft-meta a {
  color: var(--ft-text-dim);
  transition: color .2s ease;
}
.ft-meta a:hover { color: var(--ft-brand-lite); }
.ft-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #46524f;
}

/* ---------- 巨型字标 ---------- */
.ft-mark-wrap {
  background: var(--ft-bg-deep);
  padding: 14px 0 0;
  overflow: hidden;
  line-height: 0;
  text-align: center;
}
.ft-mark {
  display: inline-block;
  font-family: "Arial Black", "Segoe UI", Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 13.2vw, 186px);
  line-height: .8;
  letter-spacing: .03em;
  padding-left: .03em;
  white-space: nowrap;
  color: transparent;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .2) 0%, rgba(150, 232, 222, .125) 46%, rgba(255, 255, 255, .075) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: -.05em;
  user-select: none;
}

/* ---------- 无障碍 ---------- */
.ft a:focus-visible {
  outline: 2px solid var(--ft-brand-lite);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .ft *,
  .ft *::before,
  .ft *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .ft .ft-link:hover,
  .ft .ft-link:focus-visible { transform: none; }
  .ft-logo:hover,
  .ft-qr:hover .ft-qr-box { transform: none; }
}

/* ---------- 响应式 ---------- */
/* 移动端存在固定底部导航时，为字标让出安全区，避免被遮挡 */
body:has(.bottom-nav) .ft-mark-wrap {
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
}
@media (max-width: 1200px) {
  .ft-brand { flex: 0 1 300px; }
  .ft-desc { max-width: 280px; }
  .ft-cols { max-width: 520px; }
}

@media (max-width: 1040px) {
  .ft-in { padding-top: 54px; }
  .ft-main {
    flex-wrap: wrap;
    gap: 32px 36px;
    padding-bottom: 44px;
  }
  .ft-brand { flex: 1 1 auto; max-width: none; }
  .ft-slogan { margin-top: 20px; }
  .ft-desc { max-width: 400px; }
  .ft-qr { flex: 0 0 auto; order: 2; padding-top: 0; }
  .ft-cols {
    order: 3;
    flex: 1 1 100%;
    max-width: 660px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 24px;
    padding-top: 4px;
  }
}

@media (max-width: 760px) {
  .ft { margin-top: 20px; }
  .ft-in { padding-top: 40px; }
  .ft-main { gap: 28px 20px; padding-bottom: 34px; }
  .ft-brand { flex: 1 1 150px; }
  .ft-logo { padding: 8px 12px; border-radius: 9px; }
  .ft-logo img { height: 20px; }
  .ft-slogan { margin-top: 18px; font-size: 17.5px; }
  .ft-desc { font-size: 12.5px; line-height: 1.85; max-width: none; }
  .ft-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 20px;
    order: 3;
    flex: 1 1 100%;
  }
  .ft-col-title { font-size: 13.5px; margin-bottom: 10px; }
  .ft .ft-link { font-size: 13px; padding: 4px 0; }
  /* 手机上二维码要用户「扫自己这块屏」才有用，属无效信息，收起 */
  .ft-qr { display: none; }
  .ft-friend { padding: 18px 0 22px; gap: 10px 16px; }
  .ft-friend-label { width: 100%; }
  .ft-bar { padding: 14px 0; }
  .ft-bar-in { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ft-copy, .ft-meta { font-size: 12px; }
  /* 底部大字字标是纯装饰，手机端不再占一屏高度 */
  .ft-mark-wrap { display: none; }
  /* 字标原本承担「给固定底部导航让位」的作用，收起后改由备案行补出安全区 */
  body:has(.bottom-nav) .ft-bar { padding-bottom: calc(1.2rem + 14px + env(safe-area-inset-bottom, 0px)); }
}
