/* ============================================================
   幻想 · 个人博客 · 玻璃拟态（Glassmorphism）
   布局沿用 eeeve.cn 风格
   ============================================================ */

:root {
  --bg: #edf2fa;
  --surface: rgba(255, 255, 255, 0.58);
  --surface-strong: rgba(255, 255, 255, 0.76);
  --surface-soft: rgba(255, 255, 255, 0.42);
  --stroke: rgba(255, 255, 255, 0.75);
  --stroke-soft: rgba(108, 124, 152, 0.14);
  --text: #3d434d;
  --text-2: #626a76;
  --heading: #6f7784;
  --faint: #98a1ad;
  --faint-2: #aeb6c2;
  --accent: #4169e1;
  --accent-2: #6c8bff;
  --line: rgba(108, 124, 152, 0.14);
  --line-2: rgba(108, 124, 152, 0.2);
  --line-3: rgba(108, 124, 152, 0.08);
  --scroll-thumb: rgba(108, 124, 152, 0.28);
  --footer: #8b94a1;
  --hero-name: #f2f4f8;
  --shadow: 0 14px 34px rgba(48, 63, 97, 0.08);
  --shadow-lg: 0 22px 60px rgba(48, 63, 97, 0.12);
  --blur: blur(20px) saturate(165%);
  --radius: 18px;
  --content: 780px;
  --header-h: 80px;
  --serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", STSong, Georgia, serif;
  --sans: "Hiragino Sans GB", "PingFang SC", STXihei, "Microsoft YaHei", SimSun, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background:
    linear-gradient(158deg, #f2f7ff 0%, #fbf8f4 48%, #f0f4fc 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 32% at 12% 8%, rgba(116, 156, 255, 0.38), transparent 70%),
    radial-gradient(34% 30% at 88% 12%, rgba(255, 196, 173, 0.34), transparent 72%),
    radial-gradient(42% 38% at 78% 82%, rgba(178, 172, 255, 0.3), transparent 72%),
    radial-gradient(30% 28% at 18% 86%, rgba(150, 224, 214, 0.24), transparent 72%);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
img { max-width: 100%; display: block; }
::selection { background: rgba(65, 105, 225, 0.18); color: #2f4fc4; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------- Header ---------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--header-h);
  background: transparent;
  border: 0;
  box-shadow: none;
  transition: background-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
/* 置顶时用一层柔和压暗，把导航“融”进英雄区；向下多延伸 70px 让渐变自然收尾，不留下边界线 */
.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: -70px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 16, 28, .6) 0%, rgba(10, 16, 28, .38) 40%, rgba(10, 16, 28, .14) 72%, rgba(10, 16, 28, 0) 100%);
  opacity: 1;
  transition: opacity .35s ease;
}
.site-header.solid::before { opacity: 0; }
.site-header > .header-wrap,
.site-header > .search-bar { position: relative; z-index: 1; }

.site-header.solid {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 0;
  box-shadow: 0 10px 30px rgba(48, 63, 97, 0.07);
}

.header-wrap {
  max-width: 1140px;
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  height: 56px;
  padding: 0 2px;
  background: none;
  border: none;
  box-shadow: none;
  transition: transform .3s ease;
}
/* 置顶时把黑色手写 logo 反相为白色笔画，与白色导航文字统一 */
.site-header:not(.solid) .logo img {
  filter: invert(1) grayscale(1) brightness(1.9) drop-shadow(0 2px 8px rgba(0, 0, 0, .35));
  opacity: .96;
}
.logo img { height: 46px; width: auto; object-fit: contain; transition: filter .35s ease, opacity .35s ease; }
.logo-text { display: none; font-family: var(--serif); font-size: 20px; color: #3d434d; letter-spacing: .1em; }
.site-header:not(.solid) .logo-text { color: #fff; }

.menu { display: flex; align-items: center; gap: 4px; }

.menu-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  border-radius: 10px;
  border: 1px solid transparent;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
  transition: color .2s, background-color .25s, border-color .25s, text-shadow .25s;
  white-space: nowrap;
}
.site-header.solid .menu-link { color: var(--text-2); text-shadow: none; }
.menu-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}
.site-header.solid .menu-link:hover {
  color: var(--accent);
  background: rgba(65, 105, 225, 0.08);
  border-color: rgba(65, 105, 225, 0.1);
  text-shadow: none;
}
.menu-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}
.site-header.solid .menu-link.active {
  color: var(--accent);
  background: rgba(65, 105, 225, 0.1);
  border-color: rgba(65, 105, 225, 0.12);
}

.menu-item { position: relative; }

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 148px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-lg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 70;
}
.dropdown::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 14px;
}
.menu-item:hover .dropdown,
.menu-item:focus-within .dropdown,
.menu-item.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.dropdown a {
  display: block;
  padding: 9px 14px;
  font-size: 13.5px;
  color: var(--text-2);
  border-radius: 10px;
  white-space: nowrap;
  transition: background-color .18s, color .18s;
}
.dropdown a:hover { background: rgba(255, 255, 255, 0.85); color: var(--accent); }
.dropdown .dd-empty { padding: 8px 14px; font-size: 12.5px; color: var(--faint); }

/* 置顶时下拉改为深色玻璃，避免白色浮层压在照片上 */
.site-header:not(.solid) .dropdown {
  background: rgba(18, 24, 38, 0.55);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .36);
}
.site-header:not(.solid) .dropdown a { color: rgba(255, 255, 255, .86); }
.site-header:not(.solid) .dropdown a:hover { background: rgba(255, 255, 255, .12); color: #ffffff; }

.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
  transition: background-color .2s, color .2s, border-color .2s;
}
.site-header.solid .icon-btn { color: var(--text-2); text-shadow: none; }
.icon-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.14);
}
.site-header.solid .icon-btn:hover {
  color: var(--accent);
  background: rgba(65, 105, 225, 0.08);
  border-color: rgba(65, 105, 225, 0.1);
}

.search-bar {
  max-height: 0;
  overflow: hidden;
  background: transparent;
  border-bottom: 0;
  transition: max-height .3s ease, background-color .3s ease;
  margin-top: -1px;
}
.search-bar.open {
  max-height: 76px;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}
.search-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-inner input {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  padding: 10px 14px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.search-inner input:focus {
  border-color: rgba(65, 105, 225, 0.55);
  box-shadow: 0 0 0 4px rgba(65, 105, 225, 0.1);
}
.search-close {
  color: var(--faint);
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 10px;
  transition: color .2s, background-color .2s;
}
.search-close:hover { color: var(--accent); background: rgba(255, 255, 255, 0.7); }

/* ---------------- Layout ---------------- */

.app { min-height: 60vh; padding-bottom: 80px; }
.app.with-hero { padding-top: 0; }
.app.plain { padding-top: calc(var(--header-h) + 40px); }

.container {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 20px;
}

.view { animation: fadeUp .5s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  height: 630px;
  background-color: #1c2433;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 20, 32, .28) 0%, rgba(14, 20, 32, .06) 42%, rgba(14, 20, 32, .5) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 0 20px;
  transform: translateY(6px);
}

.hero-avatar {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .32), 0 0 0 6px rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
}
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; }

.hero-info {
  background: rgba(18, 24, 38, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  padding: 20px 34px;
  text-align: center;
  min-width: 230px;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.hero-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 300;
  letter-spacing: .2em;
  color: var(--hero-name);
  line-height: 1.4;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .3);
}
.hero-sub {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: .18em;
  color: rgba(240, 243, 250, .68);
}

.hero-social {
  display: flex;
  gap: 12px;
  margin-top: 2px;
}
.hero-social a {
  font-size: 12px;
  color: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .12);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color .22s, border-color .22s, transform .22s;
}
.hero-social a:hover {
  background: rgba(255, 255, 255, .24);
  border-color: rgba(255, 255, 255, .62);
  transform: translateY(-2px);
}

.hero-down {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, .78);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: bob 2.6s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 7px); }
}

/* ---------------- Notice ---------------- */

.notice {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 28px 0 0;
  font-size: 15.5px;
  color: var(--text-2);
  text-align: center;
  line-height: 1.7;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
}

/* ---------------- Section ---------------- */

.section-head {
  margin: 46px 0 6px;
  padding-bottom: 14px;
  position: relative;
  border-bottom: none;
}
.section-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(65, 105, 225, .45), rgba(108, 124, 152, .12) 55%, rgba(108, 124, 152, 0));
}
.section-head h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--heading);
  letter-spacing: .08em;
  display: flex;
  align-items: center;
  gap: 9px;
}
.section-head h1 .count { font-size: 12px; color: var(--faint-2); letter-spacing: .04em; font-weight: 400; }

/* ---------------- Featured ---------------- */

.featured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.feature-card {
  position: relative;
  height: 170px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #3d4757;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 22, 36, .04), rgba(16, 22, 36, .55));
  transition: background-color .3s;
}
.feature-card span {
  position: relative;
  z-index: 2;
  margin: 16px;
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: .04em;
  transition: transform .3s ease, background-color .3s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card:hover span { transform: translateY(-2px); background: rgba(255, 255, 255, .24); }

/* ---------------- Posts ---------------- */

.posts { margin-top: 22px; }

.post {
  position: relative;
  margin-bottom: 16px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, background-color .28s ease;
}
.post:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, .95);
  background: var(--surface-strong);
}

.post-cover {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.post-thumb {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, .5);
  margin-top: 2px;
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 8px 22px rgba(48, 63, 97, .14);
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.post:hover .post-thumb img { transform: scale(1.06); }

.post-body { min-width: 0; }

.post-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.post-title {
  margin: 0;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.55;
  color: #4a5058;
  letter-spacing: .01em;
  transition: color .2s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 auto;
  min-width: 0;
}
.post:hover .post-title { color: var(--accent); }

.post-date {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--faint);
  white-space: nowrap;
}

.post-excerpt {
  margin: 8px 0 14px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line-3);
  padding-top: 9px;
  font-size: 12px;
  color: var(--faint);
}
.post-foot .meta { display: inline-flex; align-items: center; gap: 5px; }
.post-foot .meta + .meta { padding-left: 16px; border-left: 1px solid var(--line-3); }
.post-foot .more { margin-left: auto; color: var(--faint-2); letter-spacing: 2px; transition: color .2s; }
.post-foot .more:hover { color: var(--accent); }

.post-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 20px;
  align-items: start;
  padding: 20px 22px;
}
.post-status .avatar {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 8px 22px rgba(48, 63, 97, .14);
}
.post-status .avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-status .post-excerpt { -webkit-line-clamp: 2; margin: 0 0 10px; }
.post-status .post-date { justify-content: flex-end; display: flex; margin-top: 2px; }

/* ---------------- Load more ---------------- */

.load-more-wrap { text-align: center; margin: 42px 0 10px; }
.load-more {
  display: inline-block;
  padding: 12px 34px;
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--text-2);
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  transition: all .25s ease;
}
.load-more:hover {
  color: var(--accent);
  border-color: rgba(65, 105, 225, .35);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(65, 105, 225, .16);
}

/* ---------------- Article ---------------- */

.article {
  margin-top: 4px;
  padding: 34px 36px 30px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
}

.article-head { text-align: center; margin-bottom: 30px; }
.article-cat {
  display: inline-block;
  font-size: 12px;
  color: var(--accent);
  border: 1px solid rgba(65, 105, 225, .18);
  background: rgba(255, 255, 255, .55);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 14px;
  letter-spacing: .08em;
}
.article-title {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1.5;
  font-weight: 500;
  color: #434a55;
  letter-spacing: .01em;
}
.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--faint);
  flex-wrap: wrap;
}
.article-meta .sep { width: 1px; height: 11px; background: var(--line-2); }
.article-cover {
  margin: 0 0 28px;
  border-radius: 16px;
  overflow: hidden;
  max-height: 360px;
  border: 1px solid rgba(255, 255, 255, .7);
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }

.prose { font-size: 16px; line-height: 2; color: var(--text); }
.prose p { margin: 0 0 1.35em; }
.prose h2, .prose h3 {
  font-size: 19px;
  font-weight: 600;
  color: #434a55;
  margin: 1.9em 0 .75em;
  letter-spacing: .01em;
}
.prose blockquote {
  margin: 1.5em 0;
  padding: 10px 18px;
  border-left: 3px solid rgba(65, 105, 225, .45);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, .42);
  color: var(--text-2);
}
.prose ul { margin: 0 0 1.35em; padding-left: 1.35em; }
.prose li { margin-bottom: .4em; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; margin: 1em 0; }
.prose code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: .88em;
  background: rgba(255, 255, 255, .62);
  border: 1px solid var(--line-3);
  padding: 1px 6px;
  border-radius: 6px;
}
.prose a { color: var(--accent); border-bottom: 1px solid rgba(65, 105, 225, .28); }
.prose .divider { text-align: center; color: var(--faint-2); letter-spacing: 1em; margin: 2em 0; }

.article-foot {
  margin-top: 42px;
  padding-top: 16px;
  border-top: 1px solid var(--line-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--faint);
}
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-pill {
  color: var(--accent);
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(65, 105, 225, .16);
  border-radius: 999px;
  padding: 2px 11px;
  font-size: 12px;
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 30px;
}
.article-nav a {
  border: 1px solid rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .45);
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 13px;
  color: var(--text-2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color .2s, color .2s, transform .2s, background-color .2s;
  overflow: hidden;
}
.article-nav a:hover {
  border-color: rgba(65, 105, 225, .3);
  color: var(--accent);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .66);
}
.article-nav a small { display: block; font-size: 11px; color: var(--faint-2); margin-bottom: 4px; letter-spacing: .1em; }
.article-nav a span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.article-nav .right { text-align: right; }

.article-tools { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }

/* ---------------- Archive ---------------- */

.month-group {
  margin-top: 16px;
  padding: 16px 22px 8px;
  background: var(--surface-soft);
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.month-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--heading);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-3);
}
.month-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 8px rgba(65, 105, 225, .4);
}

.archive-list { list-style: none; margin: 0; padding: 0; }
.archive-list li { border-bottom: 1px solid var(--line-3); }
.archive-list li:last-child { border-bottom: none; }
.archive-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 4px;
  font-size: 14.5px;
  color: var(--text-2);
  border-radius: 10px;
  transition: color .2s, padding-left .2s, background-color .2s;
}
.archive-list a:hover { color: var(--accent); padding-left: 10px; background: rgba(255, 255, 255, .4); }
.archive-list .a-date { flex: 0 0 44px; font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.archive-list .a-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.archive-list .a-count { font-size: 12px; color: var(--faint-2); }

/* ---------------- About ---------------- */

.about-card {
  margin-top: 24px;
  padding: 32px 30px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 22px;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
}
.about-row {
  display: flex;
  gap: 16px;
  padding: 11px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--line-3);
}
.about-row:last-child { border-bottom: none; }
.about-row dt { flex: 0 0 96px; color: var(--heading); font-weight: 600; font-size: 14px; }
.about-row dd { margin: 0; color: var(--text); }
.about-row dd a { color: var(--accent); }

/* ---------------- Downloads ---------------- */

.dl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding-bottom: 12px;
  position: relative;
}
.dl-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(65, 105, 225, .4), rgba(108, 124, 152, .06));
}
.dl-head h2 { margin: 0; font-size: 16px; font-weight: 500; color: var(--heading); letter-spacing: .08em; }
.dl-head h2 .count { margin-left: 8px; font-size: 12px; color: var(--faint-2); letter-spacing: .04em; font-weight: 400; }

.dl-list {
  margin-top: 14px;
  padding: 4px 18px;
  background: var(--surface-soft);
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.dl-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 6px;
  border-bottom: 1px solid var(--line-3);
  border-radius: 10px;
  transition: background-color .2s;
}
.dl-row:last-child { border-bottom: none; }
.dl-row:hover { background: rgba(255, 255, 255, .45); }
.dl-row .dl-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(255, 255, 255, .9);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 12px;
  letter-spacing: .04em;
  box-shadow: 0 4px 12px rgba(48, 63, 97, .08);
}
.dl-row .dl-main { flex: 1; min-width: 0; }
.dl-row .dl-name {
  font-size: 14.5px;
  color: var(--text);
  border-bottom: 1px dotted transparent;
  transition: color .2s, border-color .2s;
}
.dl-row .dl-name:hover { color: var(--accent); border-bottom-color: rgba(65, 105, 225, .5); }
.dl-row .dl-desc {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dl-row .dl-code { font-size: 12px; color: var(--faint); white-space: nowrap; }
.dl-row .dl-code b { font-weight: 500; color: var(--accent); }
.dl-row .dl-tools { display: flex; gap: 4px; opacity: 0; transition: opacity .2s; }
.dl-row:hover .dl-tools, .dl-row:focus-within .dl-tools { opacity: 1; }
.dl-row .mini-btn {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--faint);
  transition: background-color .2s, color .2s;
}
.dl-row .mini-btn:hover { background: rgba(255, 255, 255, .8); color: var(--accent); }
.dl-row .mini-btn.del:hover { background: rgba(255, 236, 234, .9); color: #b3382f; }

.dl-empty {
  margin-top: 22px;
  padding: 46px 20px;
  text-align: center;
  color: var(--faint);
  font-size: 14px;
  background: var(--surface-soft);
  border: 1px dashed rgba(108, 124, 152, .26);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.dl-empty p { margin: 0 0 16px; }

/* ---------------- Buttons / forms ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  border: 1px solid rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .55);
  color: var(--text-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 18px rgba(48, 63, 97, .07);
  transition: all .22s;
  white-space: nowrap;
}
.btn:hover {
  border-color: rgba(65, 105, 225, .32);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(65, 105, 225, .14);
}
.btn.primary {
  background: linear-gradient(135deg, #5a7df0, #3b5dda);
  border-color: rgba(255, 255, 255, .25);
  color: #fff;
  box-shadow: 0 10px 24px rgba(59, 93, 218, .28);
}
.btn.primary:hover { filter: brightness(1.05); color: #fff; }
.btn.danger { background: rgba(255, 255, 255, .6); border-color: rgba(196, 92, 84, .25); color: #b3382f; }
.btn.danger:hover { background: #b3382f; border-color: #b3382f; color: #fff; }
.btn.small { padding: 6px 14px; font-size: 12.5px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.page-title { margin: 0 0 6px; font-size: 24px; font-weight: 500; color: #434a55; letter-spacing: .01em; }
.page-sub { margin: 0; color: var(--faint); font-size: 13px; }

.form { margin-top: 24px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 12.5px;
  color: var(--heading);
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.input, .textarea, .select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 12px;
  background: rgba(255, 255, 255, .62);
  color: var(--text);
  padding: 11px 14px;
  font-family: var(--sans);
  font-size: 14.5px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: rgba(65, 105, 225, .5);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 0 0 4px rgba(65, 105, 225, .1);
}
.input::placeholder, .textarea::placeholder { color: #b6bdc8; }
.input.title-input { font-size: 19px; padding: 13px 15px; }
.textarea { min-height: 380px; line-height: 1.9; resize: vertical; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line-3);
  flex-wrap: wrap;
}
.form-actions .hint { margin-left: auto; font-size: 12px; color: var(--faint-2); }

/* ---------------- Panels / settings ---------------- */

.panel {
  margin-top: 18px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
}
.panel h2 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: #434a55;
  letter-spacing: .04em;
}
.panel > p { margin: 0 0 20px; font-size: 12.5px; color: var(--faint); }
.panel-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------------- Footer ---------------- */

.site-footer {
  margin-top: 20px;
  padding: 26px 20px;
  background: rgba(255, 255, 255, .42);
  border-top: 1px solid rgba(255, 255, 255, .7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.footer-inner {
  max-width: var(--content);
  margin: 0 auto;
  text-align: center;
  font-size: 13px;
  color: var(--footer);
  line-height: 1.9;
}
.footer-inner a { color: var(--footer); }
.footer-inner a:hover { color: var(--accent); }

/* ---------------- To top ---------------- */

.to-top {
  position: fixed;
  right: 26px;
  bottom: 30px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(255, 255, 255, .85);
  color: var(--text-2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .28s ease;
  z-index: 55;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--accent); box-shadow: 0 16px 34px rgba(65, 105, 225, .18); }

/* ---------------- Toast / Dialog ---------------- */

.toast-stack {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: rgba(35, 41, 52, .74);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 13px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .2);
  animation: toastIn .28s ease both;
}
.toast.out { animation: toastOut .22s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

.dialog {
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 20px;
  padding: 26px;
  max-width: 380px;
  width: calc(100% - 40px);
  color: var(--text);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: 0 24px 70px rgba(31, 42, 66, .24);
}
.dialog::backdrop { background: rgba(28, 36, 52, .32); backdrop-filter: blur(3px); }
.dialog h3 { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.dialog p { margin: 0 0 20px; font-size: 13.5px; color: var(--text-2); line-height: 1.75; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
  .header-wrap { padding: 0 16px; gap: 10px; }
  .menu { gap: 0; }
  .menu-link { padding: 8px 10px; font-size: 13.5px; }
  .logo { height: 50px; padding: 0; }
  .logo img { height: 40px; }
  .hero { height: 540px; }
  .notice { margin-top: 20px; font-size: 14.5px; padding: 16px 18px; }
  .featured { grid-template-columns: repeat(3, 1fr); gap: 9px; }
  .feature-card { height: 130px; }
  .feature-card span { padding: 6px 11px; font-size: 13px; margin: 12px; }
  .article { padding: 26px 22px 24px; }
  .article-title { font-size: 23px; }
  .article-nav { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .prose { font-size: 15.5px; }
  .about-card { padding: 24px 20px; }
  .about-row { flex-direction: column; gap: 2px; }
  .about-row dt { flex: none; }
  .post { padding: 18px; }
}

@media (max-width: 620px) {
  .menu-item:first-of-type { display: none; }
  .menu-link[data-route="home"] { display: none; }
  .icon-btn { width: 34px; height: 34px; border-radius: 10px; }
  .hero { height: 470px; }
  .hero-info { padding: 16px 22px; border-radius: 16px; }
  .hero-name { font-size: 18px; }
  .post-cover { grid-template-columns: 1fr; gap: 12px; }
  .post-thumb { width: 64px; height: 64px; margin-top: 0; }
  .post-title { white-space: normal; font-size: 17.5px; }
  .post-status { grid-template-columns: minmax(0, 1fr) 50px; gap: 12px; padding: 18px; }
  .post-status .avatar { width: 50px; height: 50px; }
  .post-date { font-size: 11.5px; }
  .featured { grid-template-columns: 1fr 1fr; }
  .feature-card:last-child { grid-column: span 2; height: 112px; }
  .article { padding: 22px 18px 20px; border-radius: 20px; }
  .article-title { font-size: 21px; }
  .dl-list { padding: 4px 12px; }
  .dl-row { align-items: flex-start; flex-wrap: wrap; }
  .dl-row .dl-tools { opacity: 1; margin-left: auto; }
  .month-group { padding: 14px 16px 6px; }
  .to-top { right: 16px; bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------------- 服务端渲染的首屏列表 ---------------- */

.ssr-posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ssr-posts li {
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .85);
}
.ssr-posts a { font-size: 17px; font-weight: 600; }
.ssr-posts time { display: block; margin-top: 4px; font-size: 12px; color: var(--faint-2); }
.ssr-posts p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.7; color: var(--faint); }

/* ---------------- Markdown 编辑器 ---------------- */

.md-editor {
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 16px;
  background: rgba(255, 255, 255, .5);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

.md-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-3);
  background: rgba(255, 255, 255, .5);
}

.md-tool {
  min-width: 34px;
  height: 32px;
  padding: 0 8px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .7);
  color: #5c6470;
  font-size: 13px;
  transition: color .2s, background-color .2s, border-color .2s, transform .2s;
}
.md-tool:hover {
  color: var(--accent);
  background: #ffffff;
  border-color: rgba(65, 105, 225, .25);
  transform: translateY(-1px);
}
.md-toggle { margin-left: auto; display: none; font-size: 12.5px; padding: 0 12px; }

.md-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 460px;
}

.md-input {
  width: 100%;
  min-height: 460px;
  border: 0;
  outline: none;
  background: transparent;
  padding: 16px 18px;
  color: var(--text);
  font-family: ui-monospace, Menlo, "SF Mono", monospace;
  font-size: 14px;
  line-height: 1.95;
  resize: vertical;
}
.md-input::placeholder { color: #b6bdc8; }

.md-preview {
  border-left: 1px solid var(--line-3);
  padding: 16px 20px;
  max-height: 640px;
  overflow: auto;
  font-size: 15px;
  line-height: 1.95;
}
.md-preview:empty::before {
  content: "预览会显示在这里";
  color: #b6bdc8;
  font-size: 13px;
}

.md-status {
  padding: 6px 14px;
  border-top: 1px solid var(--line-3);
  background: rgba(255, 255, 255, .4);
  font-size: 11.5px;
  color: var(--faint-2);
}

@media (max-width: 900px) {
  .md-body { grid-template-columns: 1fr; min-height: 380px; }
  .md-input { min-height: 380px; }
  .md-preview {
    display: none;
    border-left: 0;
    border-top: 1px solid var(--line-3);
    max-height: none;
  }
  .md-toggle { display: inline-grid; }
  .md-editor.preview-on .md-input { display: none; }
  .md-editor.preview-on .md-preview { display: block; }
}
