/* ============================================================
   芋泥P · 主样式表
   暗色系 · 扁平极简 · 毛玻璃 · 响应式
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --bg-base: #0b0e1a;
  --bg-deep: #05060d;
  --glass-fill: rgba(20, 24, 42, 0.42);
  --glass-fill-strong: rgba(20, 24, 42, 0.62);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-border-strong: rgba(255, 255, 255, 0.16);
  --text-primary: rgba(245, 246, 252, 0.96);
  --text-secondary: rgba(220, 224, 238, 0.66);
  --text-muted: rgba(180, 186, 204, 0.42);
  --accent: #b9a4ff;
  --accent-soft: rgba(185, 164, 255, 0.18);
  --accent-strong: #c9b6ff;
  --cyan: #8bd4ff;
  --pink: #ffb6d5;
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 36px rgba(160, 140, 255, 0.18);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --transition: 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  --max-width: 1180px;
  --nav-height: 68px;
}

/* ---------- 应用布局：主内容 + 左侧栏 ---------- */
.app-layout {
  position: relative;
  min-height: 100vh;
}

.app-main {
  padding-left: 300px;
  min-height: calc(100vh - var(--nav-height));
  transition: padding-left var(--transition);
}

/* 侧栏切换按钮 — 隐藏，侧栏常驻 */
.sidebar-toggle {
  display: none;
}

/* ---------- 侧栏（左侧常驻） ---------- */
.sidebar {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  bottom: 0;
  width: 300px;
  z-index: 51;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--glass-fill-strong);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  border-radius: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}


.sidebar-inner {
  padding: 20px 18px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* 侧栏分区 */
.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-section-title {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 0 0 2px;
  padding-left: 2px;
}

.sidebar-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 0;
}

.sidebar-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.sidebar-link img {
  width: 16px;
  height: 16px;
  filter: invert(80%) sepia(20%) saturate(300%) hue-rotate(212deg);
  opacity: 0.8;
}

/* 邮箱防爬虫（侧栏） */
.sidebar-email-value {
  display: none;
  font-size: 13px;
  color: var(--accent-strong);
  word-break: break-all;
}

.sidebar-link.is-revealed .sidebar-email-text {
  display: none;
}
.sidebar-link.is-revealed .sidebar-email-value {
  display: inline;
}

/* ---------- 音乐播放器（侧栏内） ---------- */
.mp-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.mp-header-icon {
  width: 18px;
  height: 18px;
  filter: invert(86%) sepia(35%) saturate(500%) hue-rotate(220deg);
}

.mp-header-title {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.mp-now {
  padding: 6px 0 4px;
}

.mp-now-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}

.mp-now-artist {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 进度条 */
.mp-progress {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.mp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
  pointer-events: none;
}

.mp-time-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-muted);
  font-family: monospace;
  margin-top: 2px;
}

/* 控制按钮 */
.mp-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 4px 0;
}

.mp-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.mp-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: scale(1.08);
}

.mp-btn img {
  width: 18px;
  height: 18px;
  filter: invert(85%) sepia(30%) saturate(400%) hue-rotate(220deg);
}

.mp-btn-play {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent), #9d87ff);
  box-shadow: 0 4px 18px rgba(185, 164, 255, 0.3);
}

.mp-btn-play img {
  filter: brightness(0);
}

.mp-btn-play:hover {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  transform: scale(1.1);
}

/* 音量 */
.mp-volume-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
}

.mp-vol-icon {
  width: 15px;
  height: 15px;
  filter: invert(75%) sepia(20%) saturate(300%) hue-rotate(212deg);
  flex-shrink: 0;
  opacity: 0.7;
}

.mp-volume-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.mp-volume-fill {
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  width: 70%;
  pointer-events: none;
  transition: width 0.1s ease;
}

/* 播放列表 */
.mp-playlist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 0;
  user-select: none;
  text-transform: uppercase;
}

.mp-playlist-head:hover {
  color: var(--text-secondary);
}

.mp-pl-arrow {
  font-size: 10px;
  transition: transform 0.25s ease;
}

.mp-playlist {
  display: none;
  flex-direction: column;
  max-height: 180px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.15);
}

.mp-playlist.open {
  display: flex;
}

.mp-playlist::-webkit-scrollbar { width: 3px; }
.mp-playlist::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
}

.mp-pl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  cursor: pointer;
  transition: background var(--transition);
  border-radius: 6px;
}

.mp-pl-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.mp-pl-item.active {
  background: var(--accent-soft);
}

.mp-pl-idx {
  font-size: 10px;
  color: var(--text-muted);
  font-family: monospace;
  width: 18px;
  flex-shrink: 0;
}

.mp-pl-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.mp-pl-title {
  font-size: 12px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-pl-artist {
  font-size: 10px;
  color: var(--text-muted);
}

.mp-pl-now {
  font-size: 10px;
  color: var(--accent-strong);
  flex-shrink: 0;
}

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans CN", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-deep);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: transparent;
  color: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ---------- 全局背景：knd.jpg ---------- */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: var(--bg-deep) url("../img/knd.jpg") center center / cover no-repeat;
  background-attachment: fixed;
  filter: saturate(0.85) brightness(0.7);
  transform: scale(1.05);
}

.bg-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(11, 14, 26, 0.55) 0%,
      rgba(11, 14, 26, 0.35) 35%,
      rgba(11, 14, 26, 0.65) 75%,
      rgba(5, 6, 13, 0.92) 100%);
}

/* 顶端轻微暗化，保证毛玻璃文字清晰 */
.bg-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 30% 20%,
    rgba(185, 164, 255, 0.08) 0%,
    transparent 55%
  );
  z-index: 1;
}

/* 樱花 canvas 容器 */
#canvas_sakura {
  z-index: 0 !important;
}

/* ---------- 通用容器 ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 88px 0 56px;
  position: relative;
}

.section-title {
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 0 0 10px;
  font-weight: 500;
}

.section-heading {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  margin: 0 0 32px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading img {
  width: 22px;
  height: 22px;
  filter: invert(92%) sepia(15%) saturate(450%) hue-rotate(212deg) brightness(105%);
  opacity: 0.85;
}

.about-heading-avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  filter: none !important;
  opacity: 1 !important;
  border: 2px solid rgba(185, 164, 255, 0.3);
}

/* ---------- 毛玻璃组件基础 ---------- */
.glass {
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: border-color var(--transition), transform var(--transition),
    box-shadow var(--transition);
}

/* 浏览器降级：@-supports 检测 */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass {
    background: rgba(18, 21, 36, 0.85);
  }
}

/* ---------- 顶部导航 ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(11, 14, 26, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--transition), border-color var(--transition);
}

.site-nav.scrolled {
  background: rgba(11, 14, 26, 0.78);
  border-bottom-color: var(--glass-border-strong);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-nav {
    background: rgba(11, 14, 26, 0.92);
  }
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--cyan) 100%);
  display: grid;
  place-items: center;
  color: #1a1530;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 0 20px rgba(185, 164, 255, 0.4);
}

.brand-mark img {
  width: 18px;
  height: 18px;
  filter: brightness(0);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
}

.nav-links a.active {
  color: var(--text-primary);
  background: var(--accent-soft);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text-primary);
  background: var(--accent-soft);
  outline: none;
}

.nav-links a img {
  width: 16px;
  height: 16px;
  filter: invert(80%) sepia(20%) saturate(300%) hue-rotate(212deg);
  opacity: 0.85;
  transition: opacity var(--transition);
}

.nav-links a:hover img {
  opacity: 1;
  filter: invert(92%) sepia(40%) saturate(500%) hue-rotate(212deg);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
}

.nav-toggle img {
  width: 20px;
  height: 20px;
  filter: invert(90%);
}

/* ---------- 主页 Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 60px;
  position: relative;
}

.hero-inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-name {
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 6px;
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, #fff 0%, #e8d9ff 45%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  padding-left: 80px;
}

.hero-sub {
  font-size: clamp(14px, 1.4vw, 17px);
  color: var(--text-secondary);
  margin: 0 0 28px;
  max-width: 540px;
}

.hero-sub-line1 {
  margin-bottom: 6px;
}

.hero-sub-line2 {
  margin-top: 0;
  margin-bottom: 28px;
  color: var(--text-muted);
  font-size: clamp(14px, 1.4vw, 16px);
}

.hero-sub strong {
  color: var(--text-primary);
  font-weight: 500;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(185, 164, 255, 0.22);
  color: var(--accent-strong);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.hero-tag img {
  width: 14px;
  height: 14px;
  filter: invert(85%) sepia(30%) saturate(500%) hue-rotate(232deg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition),
    transform var(--transition), color var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #9d87ff 100%);
  color: #1a1530;
  font-weight: 500;
  box-shadow: 0 6px 24px rgba(185, 164, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(185, 164, 255, 0.4);
}

.btn-ghost {
  background: var(--glass-fill);
  border-color: var(--glass-border);
  color: var(--text-primary);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.btn-ghost:hover {
  border-color: var(--glass-border-strong);
  background: rgba(20, 24, 42, 0.7);
}

.btn img {
  width: 16px;
  height: 16px;
}

/* ---------- 文章入口 Banner ---------- */
.article-entry-section {
  padding: 0 0 40px;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.entry-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), transform var(--transition);
}

.entry-card:hover {
  border-color: var(--glass-border-strong);
  transform: translateY(-3px);
}

.entry-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.entry-icon img {
  width: 26px;
  height: 26px;
  filter: invert(86%) sepia(35%) saturate(500%) hue-rotate(220deg);
}

.entry-icon.novel-icon {
  background: rgba(139, 212, 255, 0.16);
}

.entry-icon.novel-icon img {
  filter: invert(82%) sepia(45%) saturate(420%) hue-rotate(170deg);
}

.entry-icon.series-icon {
  background: rgba(200, 168, 255, 0.16);
}

.entry-icon.series-icon img {
  filter: invert(73%) sepia(28%) saturate(680%) hue-rotate(220deg);
}

.entry-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.entry-heading {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.entry-desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.entry-arrow {
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s, transform 0.3s;
}

.entry-arrow img {
  width: 18px;
  height: 18px;
  filter: invert(80%);
}

.entry-card:hover .entry-arrow {
  opacity: 0.7;
  transform: translateX(0);
}

/* ---------- 文章文件提示 ---------- */
.article-file-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin: -8px 0 20px;
}

.article-file-hint img {
  width: 14px;
  height: 14px;
  filter: invert(60%);
  opacity: 0.7;
}

.article-file-hint code {
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* ---------- 小说作品 ---------- */
.novel-list {
  display: grid;
  gap: 18px;
}

.novel-card {
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--transition), transform var(--transition);
}

.novel-card:hover {
  border-color: var(--glass-border-strong);
  transform: translateY(-2px);
}

.novel-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

.novel-status {
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.novel-status.ongoing {
  background: rgba(139, 212, 255, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(139, 212, 255, 0.3);
}

.novel-status.finished {
  background: rgba(185, 164, 255, 0.14);
  color: var(--accent-strong);
  border: 1px solid rgba(185, 164, 255, 0.3);
}

.novel-words {
  font-family: monospace;
  color: var(--text-muted);
}

.novel-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.novel-synopsis {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.novel-tags-row {
  margin-top: 2px;
}

.novel-read-hint {
  font-size: 12px;
  color: var(--accent-strong);
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-top: 2px;
}

.novel-card:hover .novel-read-hint {
  opacity: 0.8;
}

/* ---------- 小说阅读器 ---------- */
.novel-reader-modal .novel-reader-content {
  max-width: 820px;
  max-height: 90vh;
}

.novel-reader-loading {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
  font-size: 14px;
}

.novel-reader-body {
  color: var(--text-secondary);
  line-height: 2;
  font-size: 15px;
}

.novel-reader-body p {
  margin: 0 0 14px;
  text-indent: 2em;
}

.novel-chapter {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 36px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--glass-border);
  letter-spacing: 0.03em;
}

.novel-chapter:first-child {
  margin-top: 0;
}

.novel-section {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-strong);
  margin: 32px 0 12px;
  letter-spacing: 0.04em;
}

.novel-error {
  text-align: center;
  color: #ff8a9a;
  padding: 40px 0;
}

/* ---------- 关于我 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
}

.about-text {
  padding: 34px;
  border-radius: var(--radius-lg);
}

.about-text p {
  margin: 0 0 18px;
  color: var(--text-secondary);
  line-height: 1.9;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text strong {
  color: var(--text-primary);
  font-weight: 500;
}

.interest-list {
  padding: 30px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.interest-list-title {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.interest {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  transition: border-color var(--transition), background var(--transition);
}

.interest:hover {
  border-color: var(--glass-border-strong);
  background: rgba(255, 255, 255, 0.06);
}

.interest-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.interest-icon img {
  width: 20px;
  height: 20px;
  filter: invert(86%) sepia(35%) saturate(500%) hue-rotate(220deg);
}

.interest-info {
  display: flex;
  flex-direction: column;
}

.interest-info .name {
  font-size: 14px;
  color: var(--text-primary);
}

.interest-info .desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ---------- 联系方式 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.contact-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: var(--text-primary);
  cursor: pointer;
}

a.contact-card {
  text-decoration: none;
}

.contact-card:hover {
  border-color: var(--glass-border-strong);
  transform: translateY(-3px);
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
}

.contact-icon img {
  width: 24px;
  height: 24px;
  filter: invert(86%) sepia(35%) saturate(500%) hue-rotate(220deg);
}

.contact-icon.bilibili {
  background: rgba(139, 212, 255, 0.18);
}

.contact-icon.bilibili img {
  filter: invert(82%) sepia(45%) saturate(420%) hue-rotate(170deg);
}

.contact-icon.mail {
  background: rgba(255, 182, 213, 0.15);
}

.contact-icon.mail img {
  filter: invert(85%) sepia(45%) saturate(450%) hue-rotate(305deg);
}

.contact-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.7;
}

.contact-link-text {
  margin-top: 6px;
  font-size: 14px;
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  word-break: break-all;
}

.contact-link-text img {
  width: 14px;
  height: 14px;
  filter: invert(80%) sepia(35%) saturate(500%) hue-rotate(230deg);
}

/* 邮箱占位：未激活 JS 时显示 */
.email-protected {
  font-family: monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  user-select: none;
}

.email-value {
  display: none;
  font-size: 14px;
  color: var(--accent-strong);
  word-break: break-all;
  cursor: pointer;
}

.contact-card.is-revealed .email-protected {
  display: none;
}

.contact-card.is-revealed .email-value {
  display: inline-flex;
}

/* ---------- 文章系统 ---------- */
.article-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  font-size: 13px;
  color: var(--text-secondary);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}

.tag-chip:hover {
  color: var(--text-primary);
  border-color: var(--glass-border-strong);
}

.tag-chip.active {
  background: var(--accent);
  color: #1a1530;
  border-color: transparent;
  font-weight: 500;
}

.tag-chip img {
  width: 12px;
  height: 12px;
  filter: invert(70%);
}

.tag-chip.active img {
  filter: invert(15%);
}

.sort-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  font-size: 13px;
  color: var(--text-secondary);
}

.sort-control select {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  outline: none;
}

.sort-control select option {
  background: #1a1f33;
  color: var(--text-primary);
}

.sort-control img {
  width: 14px;
  height: 14px;
  filter: invert(80%);
}

.article-list {
  display: grid;
  gap: 18px;
}

.article-card {
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
}

.article-card:hover {
  border-color: var(--glass-border-strong);
  transform: translateY(-2px);
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

.article-meta-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-meta-time img {
  width: 13px;
  height: 13px;
  filter: invert(70%);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.article-tag {
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

.article-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

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

.article-cover {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.2);
}

.article-empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-muted);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--glass-border);
}

.article-empty img {
  width: 36px;
  height: 36px;
  margin: 0 auto 14px;
  filter: invert(60%);
  opacity: 0.7;
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 60px;
  padding: 38px 0 32px;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.site-footer p {
  margin: 6px 0;
}

.site-footer .links {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 14px;
}

.site-footer .links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

.site-footer .links a:hover {
  color: var(--text-primary);
}

.site-footer .links a img {
  width: 14px;
  height: 14px;
  filter: invert(80%);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .app-main {
    padding-left: 240px;
  }
  .sidebar {
    width: 240px;
  }
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 64px 0 40px;
  }
  /* 侧栏完全隐藏 */
  .app-main {
    padding-left: 0 !important;
  }
  .sidebar {
    display: none;
  }
  .mp-playlist {
    max-height: 260px;
  }
}

@media (max-width: 720px) {
  :root {
    --nav-height: 60px;
  }
  .container {
    padding: 0 18px;
  }
  .nav-links {
    position: fixed;
    inset: var(--nav-height) 0 0 0;
    background: rgba(11, 14, 26, 0.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 22px;
    gap: 8px;
    transform: translateX(100%);
    transition: transform var(--transition);
    border-top: 1px solid var(--glass-border);
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .nav-links a {
    padding: 12px 16px;
    font-size: 15px;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-inner {
    padding: 0 18px;
  }
  .hero {
    padding-top: calc(var(--nav-height) + 24px);
    min-height: auto;
  }
  .hero-text {
    padding-left: 0;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .entry-grid {
    grid-template-columns: 1fr;
  }
  .about-text,
  .interest-list,
  .contact-card {
    padding: 22px;
  }
  .article-card,
  .novel-card {
    padding: 20px;
  }
}

@media (max-width: 420px) {
  .hero-name {
    font-size: 32px;
  }
  .hero-text {
    padding-left: 0;
  }
  .hero-tags {
    gap: 8px;
  }
  .hero-tag {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* ---------- 减少动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  #canvas_sakura {
    display: none;
  }
}