/* ==========================================================================
   Notion · 文艺版（literary.css）
   在原主题样式之后加载，做整套视觉重设计：
   1) 纸墨色调 + 衬线排版，保留 Notion 式的克制结构
   2) 侧边栏全端改为抽屉，不再常驻左侧
   3) 首页重做：衬线大标题、朱砂印记、首篇特写、卷目式列表
   ========================================================================== */

:root {
  --nt-bg: #f6f3ec;
  --nt-sidebar: #faf7f0;
  --nt-surface: #fdfcf9;
  --nt-text: #35322b;
  --nt-text-2: #6e6a5f;
  --nt-text-3: #a09a8c;
  --nt-border: #e6e0d3;
  --nt-border-strong: #d5cdbc;
  --nt-hover: #f1ece1;
  --nt-active: #e9e2d3;
  --nt-soft: #f0ebe0;
  --nt-blue: #4a6a86;
  --nt-blue-bg: #e8edf0;
  --nt-accent: #a8573f;
  --nt-accent-soft: #f2e5de;
  --nt-gold: #9a7b46;
  --nt-paper-line: #e9e3d6;
  --nt-serif: "Source Han Serif SC", "Noto Serif CJK SC", "Noto Serif SC",
    "Songti SC", "STSong", "SimSun", Georgia, "Times New Roman", serif;
}

/* --------------------------------------------------------------------------
   纸面基底：极淡的旧书页横纹，营造纸张感
   -------------------------------------------------------------------------- */
html {
  background-color: var(--nt-bg);
}

body {
  background-color: var(--nt-bg);
  background-image: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 27px,
    var(--nt-paper-line) 27px,
    var(--nt-paper-line) 28px
  );
  background-attachment: fixed;
  color: var(--nt-text);
}

/* 衬线字体只用于标题与点睛处，正文保持易读的无衬线 */
.nt-page-title,
.nt-brand-name,
.nt-topbar-title,
.nt-post-title,
.nt-card-title,
.nt-section-title,
.nt-side-label,
.nt-hero-title,
.nt-hero-mark,
.nt-pagination .nt-page-info {
  font-family: var(--nt-serif);
}

/* --------------------------------------------------------------------------
   侧边栏：全端抽屉化，不再占用正文视野
   -------------------------------------------------------------------------- */
.nt-sidebar {
  transform: translateX(-100%);
  visibility: hidden;
  border-right: none;
  border-radius: 0 18px 18px 0;
  box-shadow: 8px 0 36px rgba(58, 48, 36, 0.16);
  background-color: var(--nt-sidebar);
  background-image: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 27px,
    #f0eadd 27px,
    #f0eadd 28px
  );
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1),
    visibility 0s linear 0.32s;
}

.nt-sidebar.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1),
    visibility 0s;
}

/* 桌面端也隐藏侧边栏，靠浮动菜单钮唤出 */
@media (min-width: 1024px) {
  .nt-sidebar {
    display: block;
  }
  .nt-main {
    margin-left: 0;
  }
}

.nt-backdrop {
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  background-color: rgba(56, 48, 36, 0.28);
}

/* 侧栏内部：收拢间距、衬线小节题 */
.nt-brand-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.nt-brand-bio {
  font-style: italic;
  color: var(--nt-text-2);
  margin-top: 6px;
}

.nt-side-label {
  color: var(--nt-text-3);
  font-size: 12px;
  letter-spacing: 0.22em;
  margin-bottom: 6px;
}

.nt-side-label::after {
  content: "";
  display: block;
  width: 26px;
  height: 1px;
  background: var(--nt-border-strong);
  margin-top: 5px;
}

.nt-side-link {
  border-radius: 6px;
  transition: background-color 0.15s, color 0.15s, padding-left 0.18s;
}

.nt-side-link:hover {
  color: var(--nt-accent);
  padding-left: 12px;
}

/* --------------------------------------------------------------------------
   顶栏：移动端保持原样；桌面端化作一枚浮动“书签”按钮 + 浮动站名
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .nt-topbar {
    display: block;
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 0;
    border-bottom: none;
    background: none;
    padding: 0;
    pointer-events: none;
    z-index: 40;
  }

  .nt-topbar .nt-icon-btn {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--nt-surface);
    border: 1px solid var(--nt-border);
    box-shadow: 0 2px 10px rgba(58, 48, 36, 0.1);
    color: var(--nt-text-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.18s, border-color 0.18s, transform 0.18s;
  }

  .nt-topbar .nt-icon-btn:hover {
    color: var(--nt-accent);
    border-color: var(--nt-accent);
    transform: translateY(-1px);
  }

  .nt-topbar-title {
    pointer-events: auto;
    position: fixed;
    top: 20px;
    right: 24px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    border-radius: 22px;
    background: var(--nt-surface);
    border: 1px solid var(--nt-border);
    box-shadow: 0 2px 10px rgba(58, 48, 36, 0.08);
    color: var(--nt-text-2);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.12em;
    opacity: 0.92;
    white-space: nowrap;
    transition: color 0.18s, border-color 0.18s;
  }

  .nt-topbar-title:hover {
    color: var(--nt-accent);
    border-color: var(--nt-accent);
  }
}

/* 抽屉展开时关闭按钮同样浮起 */
.nt-side-close .nt-icon-btn {
  border-radius: 50%;
  border: 1px solid var(--nt-border);
  transition: color 0.18s, border-color 0.18s;
}

.nt-side-close .nt-icon-btn:hover {
  color: var(--nt-accent);
  border-color: var(--nt-accent);
}

/* --------------------------------------------------------------------------
   正文容器：更书卷气的留白
   -------------------------------------------------------------------------- */
.nt-container {
  max-width: 720px;
}

.nt-container.is-wide {
  max-width: 980px;
}

@media (min-width: 1024px) {
  .nt-main {
    padding-top: 96px;
  }
}

/* --------------------------------------------------------------------------
   首页：卷首（hero）
   -------------------------------------------------------------------------- */
.nt-hero {
  text-align: center;
  padding: 36px 0 26px;
}

.nt-hero-mark {
  display: inline-block;
  font-size: 13px;
  line-height: 1;
  color: #fff;
  background: var(--nt-accent);
  border-radius: 4px;
  padding: 7px 9px 6px;
  letter-spacing: 0;
  margin-bottom: 26px;
  box-shadow: 0 2px 8px rgba(168, 87, 63, 0.28);
  transform: rotate(-4deg);
}

.nt-hero-title {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--nt-text);
  margin: 0;
}

.nt-hero-sub {
  color: var(--nt-text-2);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.06em;
  margin: 16px auto 0;
  max-width: 32em;
}

.nt-hero-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 30px auto 0;
  max-width: 300px;
}

.nt-hero-rule::before,
.nt-hero-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--nt-border-strong));
}

.nt-hero-rule::after {
  background: linear-gradient(270deg, transparent, var(--nt-border-strong));
}

.nt-hero-rule i {
  width: 7px;
  height: 7px;
  background: var(--nt-accent);
  transform: rotate(45deg);
  display: block;
}

/* --------------------------------------------------------------------------
   首页：首篇特写
   -------------------------------------------------------------------------- */
.nt-featured {
  display: block;
  position: relative;
  background: var(--nt-surface);
  border: 1px solid var(--nt-border);
  border-left: 3px solid var(--nt-accent);
  border-radius: 10px;
  padding: 26px 28px 22px;
  margin-bottom: 34px;
  box-shadow: 0 2px 14px rgba(58, 48, 36, 0.05);
  transition: box-shadow 0.2s, transform 0.2s;
}

.nt-featured:hover {
  box-shadow: 0 8px 28px rgba(58, 48, 36, 0.1);
  transform: translateY(-2px);
}

.nt-featured-label {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--nt-accent);
  margin-bottom: 10px;
}

.nt-featured-label::before {
  content: "—— ";
  letter-spacing: 0;
}

.nt-featured-title {
  font-family: var(--nt-serif);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--nt-text);
  margin: 0 0 10px;
}

.nt-featured-excerpt {
  color: var(--nt-text-2);
  font-size: 14.5px;
  line-height: 1.9;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nt-featured-meta {
  color: var(--nt-text-3);
  font-size: 12.5px;
  letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
   首页：卷目（文章列表）
   -------------------------------------------------------------------------- */
.nt-list-head {
  font-family: var(--nt-serif);
  color: var(--nt-text-3);
  font-size: 13px;
  letter-spacing: 0.4em;
  text-align: center;
  margin: 8px 0 4px;
}

.nt-list-head::before,
.nt-list-head::after {
  content: "·";
  color: var(--nt-accent);
  margin: 0 12px;
  letter-spacing: 0;
}

/* 文档条目：去掉 Notion 拖拽手柄的“工具感”，换成书页条目 */
.nt-post-item {
  border-radius: 8px;
  padding: 18px 16px 20px;
}

.nt-post-item .nt-handle {
  display: none;
}

.nt-post-item {
  border-bottom: 1px dashed var(--nt-border);
  border-radius: 0;
}

.nt-post-item:last-child {
  border-bottom: none;
}

.nt-post-item:hover {
  background-color: transparent;
}

.nt-post-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}

.nt-post-title a {
  background-image: linear-gradient(var(--nt-accent), var(--nt-accent));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.3s ease, color 0.2s;
}

.nt-post-item:hover .nt-post-title a {
  background-size: 100% 1px;
  color: var(--nt-accent);
}

.nt-post-excerpt {
  color: var(--nt-text-2);
  line-height: 1.85;
}

.nt-post-meta {
  color: var(--nt-text-3);
  font-size: 12.5px;
  letter-spacing: 0.05em;
}

/* 置顶印章 */
.nt-badge {
  font-family: var(--nt-serif);
  font-size: 11px;
  color: var(--nt-accent);
  border: 1px solid var(--nt-accent);
  border-radius: 3px;
  padding: 1px 6px;
  margin-right: 8px;
  vertical-align: 2px;
  letter-spacing: 0.1em;
  background: transparent;
}

/* --------------------------------------------------------------------------
   卡片网格视图：做成“书笺”
   -------------------------------------------------------------------------- */
.nt-card {
  background: var(--nt-surface);
  border: 1px solid var(--nt-border);
  border-radius: 10px;
  padding: 18px 18px 16px;
  box-shadow: 0 1px 6px rgba(58, 48, 36, 0.04);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.nt-card .nt-handle {
  display: none;
}

.nt-card:hover {
  transform: translateY(-3px);
  border-color: var(--nt-border-strong);
  box-shadow: 0 10px 26px rgba(58, 48, 36, 0.1);
}

.nt-card-title {
  font-size: 17px;
  line-height: 1.6;
}

.nt-card-meta {
  color: var(--nt-text-3);
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   文章页与通用页头：更有书卷气
   -------------------------------------------------------------------------- */
.nt-page-title {
  letter-spacing: 0.03em;
  font-weight: 700;
}

.nt-page-desc {
  color: var(--nt-text-2);
  font-style: italic;
}

.nt-crumb {
  color: var(--nt-text-3);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.nt-crumb a:hover {
  color: var(--nt-accent);
}

.nt-cover {
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(58, 48, 36, 0.12);
}

/* 正文排版：更松的行距 */
.nt-content {
  line-height: 1.95;
  font-size: 16.5px;
}

.nt-content h1,
.nt-content h2,
.nt-content h3,
.nt-content h4 {
  font-family: var(--nt-serif);
  letter-spacing: 0.03em;
}

.nt-content blockquote {
  border-left: 3px solid var(--nt-accent);
  background: var(--nt-accent-soft);
  border-radius: 0 8px 8px 0;
  color: var(--nt-text-2);
  font-style: italic;
}

.nt-content hr {
  border: none;
  text-align: center;
  margin: 2.4em 0;
}

.nt-content hr::after {
  content: "❦";
  color: var(--nt-gold);
  font-size: 18px;
  letter-spacing: 0.5em;
}

.nt-content a {
  color: var(--nt-blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(74, 106, 134, 0.35);
  transition: color 0.15s, border-color 0.15s;
}

.nt-content a:hover {
  color: var(--nt-accent);
  border-bottom-color: var(--nt-accent);
}

/* --------------------------------------------------------------------------
   标签 / 作者卡 / 上下篇 / 分页
   -------------------------------------------------------------------------- */
.nt-tag {
  background: var(--nt-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--nt-text-2);
  font-size: 12px;
  padding: 2px 10px;
  transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}

.nt-tag:hover {
  color: var(--nt-accent);
  border-color: var(--nt-accent);
  background: var(--nt-accent-soft);
}

.nt-author-card {
  border: 1px solid var(--nt-border);
  border-radius: 10px;
  background: var(--nt-surface);
}

.nt-post-nav-item {
  border-radius: 10px;
  transition: background-color 0.15s;
}

.nt-post-nav-label {
  color: var(--nt-text-3);
  letter-spacing: 0.15em;
  font-size: 12px;
}

.nt-pagination .nt-btn {
  border: 1px solid var(--nt-border);
  border-radius: 999px;
  background: var(--nt-surface);
  color: var(--nt-text-2);
  transition: color 0.15s, border-color 0.15s;
}

.nt-pagination .nt-btn:hover:not(.is-disabled) {
  color: var(--nt-accent);
  border-color: var(--nt-accent);
}

.nt-pagination .nt-btn.is-disabled {
  opacity: 0.45;
}

.nt-pagination .nt-page-info {
  color: var(--nt-text-3);
  letter-spacing: 0.2em;
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */
.nt-footer {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--nt-border);
  color: var(--nt-text-3);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-align: center;
}

.nt-footer::before {
  content: "❦";
  display: block;
  color: var(--nt-gold);
  font-size: 15px;
  margin-bottom: 10px;
}

.nt-footer a:hover {
  color: var(--nt-accent);
}

/* --------------------------------------------------------------------------
   回到顶部
   -------------------------------------------------------------------------- */
.nt-totop {
  border-radius: 50%;
  background: var(--nt-surface);
  border: 1px solid var(--nt-border);
  color: var(--nt-text-2);
  box-shadow: 0 2px 10px rgba(58, 48, 36, 0.1);
  transition: color 0.18s, border-color 0.18s, transform 0.18s, opacity 0.2s;
}

.nt-totop:hover {
  color: var(--nt-accent);
  border-color: var(--nt-accent);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   移动端细节
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .nt-hero {
    padding: 16px 0 18px;
  }

  .nt-hero-title {
    font-size: 32px;
  }

  .nt-featured {
    padding: 20px 18px 18px;
  }

  .nt-featured-title {
    font-size: 21px;
  }

  .nt-sidebar {
    border-radius: 0 16px 16px 0;
  }
}

/* 尊重减少动效的偏好 */
@media (prefers-reduced-motion: reduce) {
  .nt-sidebar,
  .nt-featured,
  .nt-card,
  .nt-topbar .nt-icon-btn,
  .nt-totop {
    transition: none;
  }
}

/* ==========================================================================
   文章页三态布局：宽屏左作者栏 / 中屏右栏（作者+目录）/ 窄屏标题下作者
   ========================================================================== */

/* 三处作者位与右栏默认隐藏，由媒体查询按需开启 */
.nt-rail-author,
.nt-author-inline,
.nt-author-card--rail {
  display: none;
}

.nt-author-inline {
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.nt-author-inline .nt-author-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin: 0;
}

.nt-author-inline .nt-author-name {
  font-family: var(--nt-serif);
  font-size: 15px;
}

.nt-author-inline .nt-author-link {
  color: var(--nt-text-3);
  font-size: 12.5px;
}

.nt-author-inline .nt-author-link:hover {
  color: var(--nt-accent);
}

/* 窄屏：标题下方展示作者，不展示目录与侧栏 */
@media (max-width: 1023px) {
  .nt-author-inline {
    display: flex;
  }
}

/* 右栏整体 sticky 跟随，内部目录不再单独 sticky */
.nt-rail-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.nt-rail-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--nt-border);
  border-radius: 999px;
  background: var(--nt-surface);
  color: var(--nt-text-2);
  font-size: 12.5px;
  padding: 5px 12px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}

.nt-rail-btn:hover {
  color: var(--nt-accent);
  border-color: var(--nt-accent);
  background: var(--nt-accent-soft);
}

/* 中屏（1024–1439px）：右侧一栏同时放作者卡与目录 */
@media (min-width: 1024px) and (max-width: 1439px) {
  .nt-post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    align-items: start;
    gap: 28px;
  }

  .nt-post-toc-col {
    display: block;
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }

  .nt-author-card--rail {
    display: flex;
    margin-top: 0;
    margin-bottom: 14px;
    padding: 12px;
  }

  .nt-author-card--rail .nt-author-avatar {
    width: 38px;
    height: 38px;
  }

  .nt-toc {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 12px 0 0;
  }
}

/* 宽屏（≥1440px）：左侧作者栏 + 正文 + 右侧目录栏 */
@media (min-width: 1440px) {
  .nt-container.is-wide {
    max-width: 1180px;
  }

  .nt-post-layout {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr) 220px;
    align-items: start;
    gap: 36px;
  }

  .nt-rail-author {
    display: block;
    position: sticky;
    top: 88px;
  }

  .nt-author-card--side {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    margin-top: 0;
    padding: 26px 16px 20px;
  }

  .nt-author-card--side .nt-author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
  }

  .nt-author-card--side .nt-author-name {
    font-family: var(--nt-serif);
    font-size: 16px;
    letter-spacing: 0.06em;
  }

  .nt-author-card--side .nt-author-link {
    font-size: 12.5px;
    color: var(--nt-text-3);
    border-top: 1px dashed var(--nt-border);
    padding-top: 10px;
    width: 100%;
  }

  .nt-author-card--side .nt-author-link:hover {
    color: var(--nt-accent);
  }

  .nt-post-toc-col {
    display: block;
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }

  .nt-author-card--rail {
    display: none;
  }

  .nt-toc {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 12px 0 0;
  }
}

/* 无目录时右栏只留按钮，避免空栏占位突兀 */
.nt-post-layout:not(.has-toc) .nt-toc {
  display: none;
}

/* ==========================================================================
   侧栏字号调大
   ========================================================================== */
.nt-side-link {
  font-size: 15.5px;
  padding: 7px 10px;
}

.nt-side-label {
  font-size: 12.5px;
}

.nt-side-tags .nt-tag {
  font-size: 13px;
  padding: 3px 12px;
}

.nt-brand-name {
  font-size: 21px;
}

.nt-brand-bio {
  font-size: 13.5px;
}

/* ==========================================================================
   扩展页：关联站点 / 开源项目
   ========================================================================== */

/* 站点卡片：书笺化 */
.nt-link-grid {
  gap: 14px;
}

.nt-link-card {
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 1px 6px rgba(58, 48, 36, 0.04);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.nt-link-card:hover {
  background-color: var(--nt-surface);
  transform: translateY(-2px);
  border-color: var(--nt-border-strong);
  box-shadow: 0 8px 22px rgba(58, 48, 36, 0.1);
}

.nt-link-info {
  min-width: 0;
}

.nt-link-name {
  font-family: var(--nt-serif);
  font-size: 15px;
  letter-spacing: 0.03em;
}

.nt-link-desc {
  margin-top: 2px;
}

/* 无图标时用名称首字做“印章”头像 */
.nt-link-avatar--text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--nt-serif);
  font-size: 18px;
  color: #fff;
  background: var(--nt-accent);
  border-radius: 8px;
}

/* 开源项目列表 */
.nt-oss-list {
  border-top: 1px solid var(--nt-border);
}

.nt-oss-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 8px;
  border-bottom: 1px dashed var(--nt-border);
  transition: background-color 0.15s;
}

.nt-oss-item:last-child {
  border-bottom: none;
}

.nt-oss-item:hover {
  background-color: var(--nt-hover);
}

.nt-oss-main {
  min-width: 0;
}

.nt-oss-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--nt-serif);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--nt-text);
  letter-spacing: 0.02em;
  transition: color 0.15s;
}

.nt-oss-item:hover .nt-oss-name {
  color: var(--nt-accent);
}

.nt-oss-desc {
  color: var(--nt-text-2);
  font-size: 13.5px;
  line-height: 1.7;
  margin-top: 5px;
}

.nt-oss-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding-top: 3px;
}

.nt-oss-tag {
  font-size: 12px;
  color: var(--nt-gold);
  border: 1px solid var(--nt-border-strong);
  border-radius: 999px;
  padding: 1px 10px;
  background: var(--nt-surface);
  white-space: nowrap;
}

.nt-oss-arrow {
  color: var(--nt-text-3);
  transition: color 0.15s, transform 0.15s;
}

.nt-oss-item:hover .nt-oss-arrow {
  color: var(--nt-accent);
  transform: translate(2px, -2px);
}

/* 侧栏关联站点：外链小箭头 */
.nt-side-ext {
  margin-left: auto;
  color: var(--nt-text-3);
  flex: none;
  transition: color 0.15s, transform 0.15s;
}

.nt-side-link:hover .nt-side-ext {
  color: var(--nt-accent);
  transform: translate(1px, -1px);
}

/* ==========================================================================
   顶栏右侧：房子（回首页）+ 用户（头像/登录）
   ========================================================================== */
.nt-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nt-user-avatar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background: var(--nt-surface);
  border: 1px solid var(--nt-border);
  color: var(--nt-text-2);
  transition: border-color 0.18s, transform 0.18s;
}

.nt-user-avatar-btn:hover {
  border-color: var(--nt-accent);
  transform: translateY(-1px);
}

.nt-user-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 移动端：顶栏右侧放用户按钮（房子省略，点站名即可回首页） */
@media (max-width: 1023px) {
  .nt-topbar-actions {
    margin-left: auto;
  }

  .nt-topbar-actions .nt-home-btn {
    display: none;
  }

  .nt-topbar-actions .nt-icon-btn,
  .nt-user-avatar-btn {
    width: 34px;
    height: 34px;
  }
}

/* 桌面端：站名胶囊由图标按钮取代 */
@media (min-width: 1024px) {
  .nt-topbar-home {
    display: none;
  }

  .nt-topbar-actions {
    position: fixed;
    top: 20px;
    right: 24px;
    pointer-events: auto;
    gap: 10px;
  }

  .nt-topbar-actions .nt-icon-btn,
  .nt-user-avatar-btn {
    width: 44px;
    height: 44px;
    background: var(--nt-surface);
    border: 1px solid var(--nt-border);
    box-shadow: 0 2px 10px rgba(58, 48, 36, 0.1);
    color: var(--nt-text-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nt-topbar-actions .nt-icon-btn:hover {
    color: var(--nt-accent);
    border-color: var(--nt-accent);
    transform: translateY(-1px);
  }
}

/* ==========================================================================
   作者页（用户个人界面）
   ========================================================================== */
.nt-author-hero {
  text-align: center;
  padding: 24px 0 30px;
}

.nt-author-hero-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--nt-surface);
  box-shadow: 0 4px 18px rgba(58, 48, 36, 0.16);
}

.nt-author-hero-avatar--text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--nt-serif);
  font-size: 36px;
  color: #fff;
  background: var(--nt-accent);
}

.nt-author-hero-name {
  font-family: var(--nt-serif);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 16px 0 0;
  color: var(--nt-text);
}

.nt-author-hero-bio {
  color: var(--nt-text-2);
  font-style: italic;
  font-size: 14.5px;
  max-width: 30em;
  margin: 10px auto 0;
}

.nt-author-hero-meta {
  color: var(--nt-text-3);
  font-size: 12.5px;
  letter-spacing: 0.15em;
  margin-top: 12px;
}

.nt-author-hero .nt-hero-rule {
  margin-top: 26px;
}
