/* ===================================================================
   Shared site header — brand (logo + name) · centered nav · search
   =================================================================== */
:root {
  --accent: #c8e830;   /* Day One Athlete 强调色（与 About 页的 lime 一致） */
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;   /* 左品牌 / 中导航 / 右搜索，导航真正居中 */
  align-items: center;
  gap: 16px;
  padding: 0 clamp(20px, 4vw, 48px);
  background: rgba(12, 12, 12, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---- brand (logo + name, 左) ---- */
.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}
.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  display: block;
}
.brand-name {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f6f5f1;
  transition: color 0.2s ease;
}
.brand:hover .brand-name { color: var(--accent); }

/* ---- nav (居中) ---- */
.nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 14px;
  font-family: "Inter", -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(246, 245, 241, 0.68);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-link:hover { color: var(--accent); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: #fff; }
.nav-link.active::after { transform: scaleX(1); }

/* ---- search (右) ---- */
.search {
  justify-self: end;
  display: flex;
  align-items: center;
}
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}
.search-box input {
  width: 170px;
  height: 36px;
  padding: 0 36px 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #f6f5f1;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: width 0.3s ease, border-color 0.2s ease, background 0.2s ease;
}
.search-box input::placeholder { color: rgba(246, 245, 241, 0.42); }
.search-box input:focus {
  width: 230px;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
}
.search-box button {
  position: absolute;
  right: 4px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: rgba(246, 245, 241, 0.7);
  cursor: pointer;
  transition: color 0.2s ease;
}
.search-box button:hover { color: #fff; }

@media (max-width: 720px) {
  .site-header { gap: 8px; padding: 0 14px; }
  .brand-name { display: none; }   /* 窄屏只留 logo */
  .brand-logo { width: 28px; height: 28px; }
  .nav-link { padding: 8px 8px; font-size: 13px; }
  .nav-link::after { left: 8px; right: 8px; }
  .search-box input { width: 110px; }
  .search-box input:focus { width: 140px; }
}

/* ===================================================================
   Shared site footer — brand · nav · social · copyright
   =================================================================== */
.site-footer {
  background: #0c0c0c;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #f6f5f1;
  padding: 48px clamp(24px, 6vw, 88px) 28px;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

/* 左：头像 + 名字 */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.footer-name {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f6f5f1;
}

/* 中：导航 */
.footer-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.footer-nav a {
  font-family: "Inter", -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(246, 245, 241, 0.62);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--accent); }

/* 右：社交图标 */
.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-social-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(246, 245, 241, 0.72);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.footer-social-link svg { width: 20px; height: 20px; }
.footer-social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(200, 232, 48, 0.06);
  transform: translateY(-2px);
}
.footer-social-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* 底栏：版权 */
.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-copy {
  font-family: "Inter", -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(246, 245, 241, 0.4);
}

@media (max-width: 720px) {
  .site-footer { padding: 36px 20px 24px; }
  .footer-main { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-nav { gap: 20px; }
}

/* ===================================================================
   Content scaffold — 文章/页面兜底的空白容器。
   这里不强制任何字体 / 字号 / 背景，让 Elementor 内容和
   导入的静态 HTML 文章保留它们自己的样式（不覆盖 Elementor 字体）。
   =================================================================== */
.dayone-content { padding-top: 96px; }
.dayone-empty { padding: 48px 24px; color: #151714; }
