/* ==========================================================
   王伟杰的个人博客 · 个人定制样式
   设计概念：City of Stars —— 暮色紫 + 路灯暖黄 + 城市天际线
   ========================================================== */

/* 2026 redesign: a quieter editorial frame for the pixel city. */
:root {
  --bg: #100d19;
  --bg-2: #15111f;
  --panel: #1c1727;
  --panel-2: #211b2d;
  --line: rgba(255, 237, 211, .13);
  --text: #f5eee6;
  --text-2: #d0c4bb;
  --muted: #a69893;
  --amber: #f6c878;
  --radius: 8px;
}
body { background: #100d19 !important; letter-spacing: 0; }
#nav { background: rgba(16,13,25,.82) !important; border-bottom: 1px solid rgba(255,237,211,.12); }
#page-header.full_page { height: min(760px, 88vh) !important; min-height: 560px; background-position: center bottom !important; }
#page-header.full_page::before { background: linear-gradient(180deg,rgba(12,9,23,.55),transparent 28%,transparent 68%,rgba(12,9,23,.38)) !important; }
#site-info { top: 28% !important; }
#site-title { max-width: 900px; margin: auto; padding: 0 24px; font-family: var(--font-serif); font-size: clamp(2.5rem,6vw,5.5rem) !important; font-weight: 500; letter-spacing: .12em; line-height: 1.3; text-shadow: 0 3px 30px #100d19; }
#site-subtitle { display: none !important; }
#content-inner { max-width: 1040px !important; }
#recent-posts { width: 100% !important; }
#aside-content { display: none !important; }
#recent-posts > .recent-post-item { border: 1px solid var(--line) !important; border-radius: 8px !important; background: #1c1727 !important; box-shadow: none !important; overflow: hidden; margin-bottom: 24px !important; }
#recent-posts > .recent-post-item:hover { transform: translateY(-3px); border-color: rgba(246,200,120,.45) !important; }
#recent-posts .recent-post-info { padding: clamp(24px,4vw,44px) !important; }
#recent-posts .article-title { font-family: var(--font-serif); font-size: clamp(1.45rem,2.4vw,2.1rem) !important; font-weight: 500; line-height: 1.4; }
#recent-posts .content { color: var(--text-2) !important; line-height: 1.85; }
#recent-posts .post_cover { border-radius: 0 !important; }
#recent-posts .post_cover img { filter: saturate(.8); }
#footer { background: #0b0912 !important; }
@media (max-width: 900px) { #page-header.full_page { min-height: 620px; height: 82vh !important; background-image: url('../img/hero-m.svg') !important; } #site-title { font-size: clamp(2rem,9vw,3.6rem) !important; } }

/* ---------- 设计令牌 ---------- */
:root {
  --font-serif: 'Noto Serif SC', 'Songti SC', 'Source Han Serif SC', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #0d0926;
  --bg-2: #120c31;
  --panel: #171040;
  --panel-2: #1f1750;
  --line: rgba(235, 228, 255, 0.1);
  --line-strong: rgba(235, 228, 255, 0.2);
  --text: #f4eeff;
  --text-2: #c4b8e3;
  --muted: #8e82b6;
  --amber: #ffc857;
  --amber-2: #ff9f6b;
  --violet: #b79be8;
  --rose: #e88ba6;
  --glow: rgba(255, 200, 87, 0.18);
  --shadow: 0 26px 60px -34px rgba(0, 0, 0, 0.9);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* 覆盖 Butterfly 自带的蓝色主题变量 */
  --btn-bg: #7c5cf0;
  --default-bg-color: #7c5cf0;
  --scrollbar-color: rgba(167, 139, 250, 0.4);
  --pseudo-hover: #ffc46b;
  --theme-color: #ffc46b;
}

[data-theme='light'] {
  --bg: #faf6f2;
  --bg-2: #fffdfa;
  --panel: #ffffff;
  --panel-2: #fffdfa;
  --line: rgba(42, 28, 62, 0.1);
  --line-strong: rgba(42, 28, 62, 0.2);
  --text: #241b3a;
  --text-2: #4d4266;
  --muted: #7c7196;
  --amber: #b3742a;
  --amber-2: #cf8b45;
  --violet: #6b46d8;
  --rose: #cf5f86;
  --glow: rgba(179, 116, 42, 0.14);
  --shadow: 0 24px 50px -30px rgba(40, 28, 20, 0.28);
}

/* ---------- 全局 ---------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 620px at 78% -8%, rgba(140, 96, 220, 0.2), transparent 62%),
    radial-gradient(900px 520px at 6% 4%, rgba(232, 139, 166, 0.12), transparent 60%),
    radial-gradient(1200px 720px at 50% 108%, rgba(255, 200, 87, 0.09), transparent 66%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}

[data-theme='light'] body {
  background-image:
    radial-gradient(1000px 560px at 82% -10%, rgba(103, 68, 216, 0.09), transparent 62%),
    radial-gradient(800px 480px at 4% 4%, rgba(214, 76, 123, 0.06), transparent 60%),
    radial-gradient(1100px 640px at 50% 108%, rgba(185, 114, 42, 0.08), transparent 66%);
}

::selection {
  background: rgba(255, 196, 107, 0.32);
  color: #fff;
}

[data-theme='light'] ::selection {
  background: rgba(185, 114, 42, 0.22);
  color: #1f1a2b;
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(167, 139, 250, 0.32);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 196, 107, 0.5);
}

/* ---------- 导航 ---------- */
#nav {
  background: rgba(9, 7, 15, 0.62);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  height: 64px;
}

[data-theme='light'] #nav {
  background: rgba(248, 244, 238, 0.78);
}

#nav .site-name,
#nav .nav-site-title {
  font-family: var(--font-serif);
  font-size: 17px;
  letter-spacing: 0.22em;
  color: var(--text);
  font-weight: 600;
}

#nav .site-name::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px 2px var(--glow);
  vertical-align: middle;
}

#menus .site-page {
  font-size: 13.5px;
  letter-spacing: 0.14em;
  color: var(--text-2);
  padding: 6px 0;
  position: relative;
  transition: color 0.3s var(--ease);
}

#menus .site-page::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--amber), var(--rose));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

#menus .site-page:hover,
#menus .site-page:hover i {
  color: var(--amber) !important;
}

#menus .site-page:hover::after {
  transform: scaleX(1);
}

#nav .bber-menu .site-page,
#nav i.fas {
  color: var(--text-2);
}

#toggle-menu {
  color: var(--text-2);
}

/* ---------- 顶部横幅 ---------- */
#page-header.full_page,
#page-header.not-top-img {
  background-size: cover;
  background-position: center bottom;
  /* 主题给 .full_page 加了 background-attachment: fixed（视口裁切），
     会把亲手画的天际线与共舞剪影裁掉，这里改回跟随元素 */
  background-attachment: scroll !important;
  position: relative;
}

#page-header.full_page::before {
  content: '';
  position: absolute;
  inset: 0;
  /* 只压暗导航与标题区，把中下部的城市、路灯和跳舞的人放出来 */
  background: linear-gradient(
    180deg,
    rgba(9, 7, 15, 0.62) 0%,
    rgba(9, 7, 15, 0.2) 16%,
    rgba(9, 7, 15, 0.02) 32%,
    rgba(9, 7, 15, 0) 52%,
    rgba(9, 7, 15, 0) 74%,
    rgba(9, 7, 15, 0.16) 90%,
    rgba(9, 7, 15, 0.4) 100%
  );
  pointer-events: none;
}

#page-header.full_page::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  /* 像素画不适合加渐隐，会糊成一片；街面本身已经够暗，直接接页面底色 */
  height: 0;
  pointer-events: none;
}

#site-info {
  position: relative;
  z-index: 2;
  padding-top: 10px;
}

#site-info::before {
  content: 'CITY OF STARS  ·  A PERSONAL BLOG  ·  2026';
  display: block;
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.42em;
  color: var(--amber);
  opacity: 0.85;
  margin-bottom: 22px;
  text-indent: 0.42em;
  text-align: center;
}

#site-title {
  font-family: var(--font-serif) !important;
  font-size: clamp(40px, 6.2vw, 72px) !important;
  font-weight: 600 !important;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  line-height: 1.18;
  color: #fff6ea !important;
  text-shadow: 0 0 90px rgba(255, 200, 87, 0.3), 0 2px 34px rgba(20, 8, 40, 0.6);
  margin: 0 0 18px;
}

#site-subtitle {
  font-family: var(--font-sans);
  font-size: 15.5px !important;
  letter-spacing: 0.12em;
  color: rgba(255, 232, 190, 0.98) !important;
  min-height: 30px;
}

#site-subtitle #subtitle {
  color: inherit !important;
  /* 副标题正好压在地平线暖光上，靠暗色投影把字托出来 */
  text-shadow: 0 1px 2px rgba(10, 5, 26, 0.95), 0 0 18px rgba(10, 5, 26, 0.8),
    0 0 34px rgba(255, 196, 107, 0.35);
}

#site-info > .site-data,
#site_social_icons {
  margin-top: 26px;
}

#site_social_icons .social-icon {
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(9, 7, 15, 0.35);
  backdrop-filter: blur(8px);
  color: #f3ece0 !important;
  transition: all 0.35s var(--ease);
}

#site_social_icons .social-icon:hover {
  border-color: rgba(255, 196, 107, 0.6);
  box-shadow: 0 0 24px -4px var(--glow);
  transform: translateY(-3px);
}

#site_social_icons .social-icon i {
  color: #f3ece0 !important;
}

#scroll-down {
  bottom: 34px;
  opacity: 0.7;
}

#scroll-down::before {
  border-color: rgba(255, 214, 160, 0.8) !important;
}

/* 子页面横幅：矮一些，标题居中 */
#page-header.not-home-page {
  height: 340px;
  position: relative;
}

/* 矮横幅里标题正压在天际线上，压一层薄纱保证可读 */
#page-header.not-home-page::before,
#page-header.not-top-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(9, 7, 15, 0.6) 0%,
    rgba(9, 7, 15, 0.34) 42%,
    rgba(9, 7, 15, 0.14) 72%,
    rgba(9, 7, 15, 0.5) 100%
  );
  pointer-events: none;
}

#page-header.not-home-page #post-info,
#page-header.not-home-page #page-site-info,
#page-header.not-top-img #post-info {
  position: relative;
  z-index: 2;
  padding-top: 0;
}

#page-header.not-home-page #post-title,
#page-header.not-home-page #page-site-info > h1 {
  font-family: var(--font-serif) !important;
  font-size: 30px !important;
  letter-spacing: 0.14em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

#page-header.not-home-page #page-site-info::after {
  content: 'CITY OF STARS  ·  A PERSONAL BLOG';
  display: block;
  margin-top: 14px;
  font-family: var(--font-sans);
  font-size: 9.5px;
  letter-spacing: 0.42em;
  color: rgba(255, 214, 160, 0.7);
  text-align: center;
  text-indent: 0.42em;
}

/* ---------- 主内容区 ---------- */
#content-inner {
  max-width: 1280px;
}

#recent-posts {
  counter-reset: screening;
}

#recent-posts::before {
  content: 'NOW SHOWING   ·   正在放映';
  display: block;
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.34em;
  color: var(--muted);
  padding: 0 2px 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.recent-post-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
  counter-increment: screening;
  position: relative;
}

[data-theme='light'] .recent-post-item {
  background: var(--panel);
  box-shadow: 0 18px 40px -32px rgba(60, 40, 20, 0.5);
}

.recent-post-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  pointer-events: none;
  background: radial-gradient(420px 120px at 0% 0%, var(--glow), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.recent-post-item:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 196, 107, 0.34);
  box-shadow: 0 34px 70px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 196, 107, 0.1);
}

.recent-post-item:hover::after {
  opacity: 1;
}

.recent-post-item .post_cover {
  overflow: hidden;
}

.recent-post-item .post_cover img.post-bg {
  filter: saturate(0.92) contrast(1.04);
  transition: transform 1.1s var(--ease), filter 0.6s var(--ease);
}

.recent-post-item:hover .post_cover img.post-bg {
  transform: scale(1.05);
  filter: saturate(1.05) contrast(1.06);
}

.recent-post-info {
  padding: 26px 30px 24px;
  position: relative;
  z-index: 1;
}

.recent-post-info::before {
  content: 'NO.' counter(screening, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  color: var(--amber);
  opacity: 0.75;
  margin-bottom: 12px;
}

.recent-post-info .article-title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--text);
  transition: color 0.35s var(--ease);
}

.recent-post-info .article-title:hover {
  color: var(--amber);
}

.recent-post-info .article-meta-wrap {
  margin-top: 12px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.recent-post-info .article-meta-wrap i,
.recent-post-info .article-meta-wrap .article-meta-label {
  color: var(--muted);
  opacity: 0.8;
}

.recent-post-info .article-meta-wrap a {
  color: var(--violet);
  border-bottom: none;
}

.recent-post-info .content {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text-2);
}

/* ---------- 侧边栏 ---------- */
#aside-content .card-widget {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.008)), var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: none;
}

[data-theme='light'] #aside-content .card-widget {
  background: var(--panel);
}

#aside-content .card-widget:hover {
  border-color: var(--line-strong);
}

#aside-content .item-headline {
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

#aside-content .item-headline i {
  color: var(--amber);
  font-size: 12px;
  animation: none !important;
}

#aside-content .card-info .avatar-img {
  border: 2px solid rgba(255, 196, 107, 0.35);
  box-shadow: 0 0 0 6px rgba(255, 196, 107, 0.06), 0 18px 40px -22px rgba(255, 196, 107, 0.5);
  background: #f7f4ee;
  border-radius: 50%;
  padding: 2px;
  overflow: hidden;
}

#aside-content .card-info .avatar-img img {
  border-radius: 50%;
  object-fit: contain;
  background: #f7f4ee;
}

#aside-content .card-info .author-info-name {
  font-family: var(--font-serif);
  font-size: 19px;
  letter-spacing: 0.12em;
  margin-top: 14px;
}

#aside-content .card-info .author-info-description {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
}

#aside-content .card-info .site-data .headline {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

#aside-content .card-info .site-data .length-num {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--amber);
}

#aside-content .card-announcement .announcement_content {
  font-family: var(--font-serif);
  font-size: 13.5px;
  line-height: 2;
  color: var(--text-2);
  letter-spacing: 0.04em;
}

#aside-content .aside-list-item .title {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

#aside-content .aside-list-item .title:hover {
  color: var(--amber);
}

#aside-content .aside-list-item .thumbnail img {
  border-radius: 8px;
  filter: saturate(0.9);
}

#aside-content .card-tag-cloud a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 11px !important;
  font-size: 12px !important;
  color: var(--text-2) !important;
  transition: all 0.3s var(--ease);
}

#aside-content .card-tag-cloud a:hover {
  border-color: rgba(255, 196, 107, 0.45);
  color: var(--amber) !important;
  background: rgba(255, 196, 107, 0.07);
}

#aside-content .card-archives .card-archive-list-link,
#aside-content .card-categories .card-category-list-link {
  color: var(--text-2);
  transition: color 0.3s var(--ease);
}

#aside-content .card-archives .card-archive-list-link:hover,
#aside-content .card-categories .card-category-list-link:hover {
  color: var(--amber);
}

#aside-content .webinfo .item-name {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

#aside-content .webinfo .item-count {
  font-family: var(--font-serif);
  color: var(--text);
}

/* ---------- 文章页 ---------- */
#post-info .post-title {
  font-family: var(--font-serif) !important;
  letter-spacing: 0.06em;
}

#article-container {
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--text-2);
  padding-left: 10px;
  padding-right: 10px;
}

#article-container p {
  margin: 0 0 1.25em;
}

#article-container h1,
#article-container h2,
#article-container h3,
#article-container h4 {
  font-family: var(--font-serif);
  color: var(--text);
  letter-spacing: 0.04em;
  font-weight: 600;
}

#article-container h2 {
  position: relative;
  padding-left: 16px;
  margin: 2.2em 0 0.9em;
  font-size: 22px;
}

#article-container h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.28em;
  bottom: 0.28em;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--amber), var(--rose));
}

#article-container h3 {
  font-size: 18px;
  margin: 1.8em 0 0.7em;
}

#article-container h3::before {
  content: '— ';
  color: var(--amber);
}

#article-container a {
  color: var(--amber);
  border-bottom: 1px solid rgba(255, 196, 107, 0.35);
  transition: all 0.3s var(--ease);
}

#article-container a:hover {
  color: var(--rose);
  border-bottom-color: rgba(255, 122, 162, 0.5);
}

#article-container strong {
  color: var(--text);
  font-weight: 600;
}

#article-container blockquote {
  margin: 1.8em 0;
  padding: 22px 26px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(255, 196, 107, 0.07), rgba(167, 139, 250, 0.04));
  color: var(--text-2);
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.9;
}

#article-container blockquote p {
  margin: 0;
}

#article-container code:not([class*='language-']) {
  background: rgba(167, 139, 250, 0.14);
  color: var(--violet);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.9em;
}

[data-theme='light'] #article-container code:not([class*='language-']) {
  background: rgba(103, 68, 216, 0.1);
}

#article-container figure.highlight,
#article-container pre {
  border-radius: 12px;
  border: 1px solid var(--line);
}

#article-container img {
  border-radius: 12px;
}

#article-container hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  margin: 2.4em 0;
}

#article-container table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

/* 文章版权框 */
.post-copyright {
  background: linear-gradient(120deg, rgba(255, 196, 107, 0.06), rgba(167, 139, 250, 0.05)) !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px;
  color: var(--text-2);
}

.post-copyright .post-copyright__title {
  font-family: var(--font-serif);
  color: var(--text);
}

/* 标签 chips */
#article-container .tag-Link,
.post-tags a,
.article-tags a {
  border-radius: 999px !important;
}

.post-tags a {
  background: rgba(167, 139, 250, 0.1) !important;
  border: 1px solid var(--line) !important;
  color: var(--text-2) !important;
  transition: all 0.3s var(--ease);
}

.post-tags a:hover {
  color: var(--amber) !important;
  border-color: rgba(255, 196, 107, 0.4) !important;
}

/* 分页 */
#pagination .page-number,
#pagination .extend {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text-2);
  transition: all 0.3s var(--ease);
}

#pagination .page-number.current {
  background: linear-gradient(135deg, var(--amber), var(--amber-2)) !important;
  border-color: transparent !important;
  color: #1a1206 !important;
  font-weight: 600;
}

#pagination .page-number:hover,
#pagination .extend:hover {
  border-color: rgba(255, 196, 107, 0.4);
  color: var(--amber);
}

/* 相关推荐 */
.relatedPosts > .relatedPosts-list > div {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

/* 目录 */
#toc {
  border-left-color: var(--line) !important;
}

#toc .toc-link.is-active-link {
  color: var(--amber) !important;
}

#toc .toc-link.is-active-link::before {
  background: var(--amber) !important;
}

/* ---------- 页脚 ---------- */
#footer {
  background: transparent !important;
  border-top: 1px solid var(--line);
  padding: 34px 16px 26px;
  position: relative;
}

#footer::before {
  display: none !important;
}

#footer-wrap {
  color: var(--muted);
}

#footer .footer-other,
#footer .copyright,
#footer .framework-info,
#footer a {
  color: var(--muted) !important;
  font-size: 12px;
  letter-spacing: 0.08em;
}

#footer a:hover {
  color: var(--amber) !important;
}

#footer .footer_custom_text {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--text-2) !important;
  margin-bottom: 10px;
  opacity: 0.9;
}

/* ---------- 右下角按钮 ---------- */
#rightside > div > button,
#rightside > div > a,
#rightside-config-hide button,
#rightside-config-show button {
  background: var(--panel-2) !important;
  border: 1px solid var(--line) !important;
  color: var(--text-2) !important;
  border-radius: 10px !important;
  box-shadow: none;
  transition: all 0.3s var(--ease);
}

#rightside > div > button:hover,
#rightside > div > a:hover {
  border-color: rgba(255, 196, 107, 0.45) !important;
  color: var(--amber) !important;
}

/* ---------- 文章列表页 / 归档 ---------- */
#archive,
#page,
#category,
#tag {
  color: var(--text-2);
}

#archive .post-title,
#page .post-title {
  color: var(--text);
}

.article-sort-title,
#archive .article-sort-title {
  font-family: var(--font-serif);
  color: var(--text);
  letter-spacing: 0.08em;
}

.article-sort {
  border-left-color: rgba(255, 196, 107, 0.28) !important;
}

.article-sort-title::before,
#archive .article-sort-title::before {
  border-color: var(--amber) !important;
  background: var(--bg) !important;
}

.article-sort-title::after,
#archive .article-sort-title::after {
  background: rgba(255, 196, 107, 0.35) !important;
}

.article-sort-item::before,
#archive .article-sort-item::before {
  border-color: rgba(255, 196, 107, 0.9) !important;
  background: var(--bg) !important;
}

.article-sort-item.year:hover::before {
  border-color: var(--amber) !important;
}

.article-sort-item-title {
  color: var(--text-2) !important;
  transition: color 0.3s var(--ease);
}

.article-sort-item-title:hover {
  color: var(--amber) !important;
}

/* ---------- 图片灯箱 / 加载 ---------- */
#preloader {
  background: var(--bg) !important;
}

/* ==========================================================
   自定义内容组件（放映单 / 关于页）
   ========================================================== */

/* 放映单：分区标题 */
.screen-block {
  margin: 46px 0 10px;
}

.screen-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: 0.12em;
  color: var(--text);
  margin: 0 0 6px;
  border: none !important;
  padding: 0 !important;
}

.screen-head::before {
  content: '';
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--amber), transparent);
  align-self: center;
}

.screen-head .screen-sub {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--muted);
  font-weight: 400;
}

.screen-intro {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin: 0 0 26px 40px;
}

/* 电影条目 */
.film-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.film-item {
  display: flex;
  gap: 20px;
  padding: 18px 22px;
  margin: 0 0 10px !important;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.006));
  transition: all 0.4s var(--ease);
  list-style: none !important;
}

.film-item::before {
  display: none !important;
}

.film-item:hover {
  border-color: rgba(255, 196, 107, 0.3);
  transform: translateX(4px);
  background: linear-gradient(120deg, rgba(255, 196, 107, 0.06), rgba(255, 255, 255, 0.01));
}

.film-no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--amber);
  opacity: 0.7;
  padding-top: 5px;
  min-width: 26px;
}

.film-body {
  flex: 1;
  min-width: 0;
}

.film-title {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--text);
  letter-spacing: 0.04em;
  margin: 0 0 4px !important;
  line-height: 1.5;
}

.film-title em {
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--violet);
  margin-left: 6px;
  opacity: 0.9;
}

.film-year {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  margin-left: 8px;
  letter-spacing: 0.08em;
}

.film-meta {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin: 0 0 6px !important;
}

.film-note {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-2);
  margin: 0 !important;
}

/* 歌单条目 */
.track-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.track {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  padding: 13px 12px 13px 4px;
  border-bottom: 1px dashed var(--line);
  transition: padding 0.35s var(--ease);
  list-style: none !important;
}

.track::before {
  display: none !important;
}

.track:hover {
  padding-left: 12px;
}

.track-artist {
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet);
  min-width: 96px;
}

.track-name {
  font-family: var(--font-serif);
  font-size: 14.5px;
  color: var(--text);
  letter-spacing: 0.03em;
}

.track-note {
  font-size: 12px;
  color: var(--muted);
  margin-left: auto;
  letter-spacing: 0.04em;
  flex: 1 1 260px;
  min-width: 0;
  text-align: right;
  line-height: 1.7;
}

/* 关于页：引言卡 */
.quote-card {
  position: relative;
  margin: 34px 0;
  padding: 34px 32px 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    radial-gradient(600px 200px at 0% 0%, rgba(255, 196, 107, 0.08), transparent 70%),
    linear-gradient(140deg, rgba(167, 139, 250, 0.06), rgba(255, 255, 255, 0.01));
  overflow: hidden;
}

.quote-card::before {
  content: '“';
  position: absolute;
  top: 4px;
  left: 18px;
  font-family: Georgia, serif;
  font-size: 76px;
  line-height: 1;
  color: var(--amber);
  opacity: 0.25;
}

.quote-card p {
  position: relative;
  font-family: var(--font-serif) !important;
  font-size: 16.5px !important;
  line-height: 2 !important;
  letter-spacing: 0.05em;
  color: var(--text) !important;
  margin: 0 !important;
}

.quote-card .quote-from {
  display: block;
  margin-top: 14px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-align: right;
}

/* 关于页：喜好标签 */
.taste-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 28px;
}

.taste-tag {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.025);
  transition: all 0.3s var(--ease);
}

.taste-tag:hover {
  border-color: rgba(255, 196, 107, 0.45);
  color: var(--amber);
  background: rgba(255, 196, 107, 0.06);
}

/* 关于页：数据条 */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin: 26px 0;
}

.stat-cell {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.02);
}

.stat-cell .stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--amber);
  letter-spacing: 0.04em;
}

.stat-cell .stat-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

/* ---------- 首页放映单入场卡 ---------- */
.screening-cta {
  display: block;
  position: relative;
  margin-top: 24px;
  padding: 36px 36px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none !important;
  overflow: hidden;
  background:
    radial-gradient(460px 220px at 92% -10%, rgba(255, 200, 87, 0.2), transparent 70%),
    radial-gradient(420px 240px at -6% 110%, rgba(140, 96, 220, 0.22), transparent 70%),
    linear-gradient(140deg, #1d1449, #0f0a2b);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.screening-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 18% 26%, rgba(255, 244, 226, 0.7), transparent),
    radial-gradient(1.2px 1.2px at 42% 74%, rgba(255, 244, 226, 0.5), transparent),
    radial-gradient(1.6px 1.6px at 71% 22%, rgba(255, 244, 226, 0.6), transparent),
    radial-gradient(1.2px 1.2px at 88% 66%, rgba(255, 244, 226, 0.45), transparent);
  pointer-events: none;
}

[data-theme='light'] .screening-cta {
  background:
    radial-gradient(460px 220px at 92% -10%, rgba(185, 114, 42, 0.16), transparent 70%),
    radial-gradient(420px 240px at -6% 110%, rgba(103, 68, 216, 0.12), transparent 70%),
    linear-gradient(140deg, #fffaf2, #fdf7ee);
}

.screening-cta:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 196, 107, 0.4);
  box-shadow: 0 30px 60px -38px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 196, 107, 0.1);
}

.screening-cta .cta-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 9.5px;
  letter-spacing: 0.38em;
  color: var(--amber);
  opacity: 0.8;
  margin-bottom: 16px;
}

.screening-cta .cta-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 27px;
  letter-spacing: 0.14em;
  color: var(--text);
  margin-bottom: 12px;
}

.screening-cta .cta-desc {
  display: block;
  max-width: 620px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.screening-cta .cta-link {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--amber);
}

.screening-cta .cta-arrow {
  font-style: normal;
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.4s var(--ease);
}

.screening-cta:hover .cta-arrow {
  transform: translateX(5px);
}

.screening-cta::after {
  content: '映';
  position: absolute;
  right: 18px;
  bottom: -40px;
  font-family: var(--font-serif);
  font-size: 200px;
  line-height: 1;
  color: var(--amber);
  opacity: 0.055;
  pointer-events: none;
  user-select: none;
}

/* ---------- 响应式 ---------- */
@media screen and (max-width: 900px) {
  #page-header.full_page {
    height: 470px !important;
    /* 桌面版是横构图，窄屏会被裁得只剩楼房，换成竖构图版本 */
    background-image: url('../img/hero-m.svg') !important;
    background-position: center bottom;
  }

  /* 窄屏底部不需要大范围渐隐，把城市和剪影让出来 */
  #page-header.full_page::after {
    height: 44px;
  }

  #site-info {
    top: 25% !important;
  }

  #site-title {
    font-size: clamp(30px, 9vw, 44px) !important;
    letter-spacing: 0.1em;
  }

  #site-info::before {
    font-size: 9px;
    letter-spacing: 0.28em;
    margin-bottom: 16px;
  }

  .recent-post-info {
    padding: 20px 20px 18px;
  }

  .track-note {
    margin-left: 0;
    flex: 1 1 100%;
    text-align: left;
  }
}

#page-header.full_page { background-image: url('../img/hero-poster.png') !important; background-position: center 68% !important; }
@media (max-width: 900px) { #page-header.full_page { background-image: url('../img/hero-poster.png') !important; background-position: 62% center !important; } }

/* Editorial redesign — final theme layer */
:root, [data-theme='light'] {
  --bg: #110f19; --bg-2: #171320; --panel: #1b1725; --panel-2: #231d2d;
  --line: rgba(247,226,205,.15); --line-strong: rgba(247,226,205,.27);
  --text: #f8f0e8; --text-2: #d3c6bf; --muted: #a99a99;
  --amber: #efc488; --amber-2: #e9a788; --violet: #c1aad8;
  --shadow: 0 18px 50px rgba(0,0,0,.18);
}
body, [data-theme='light'] body { background: #110f19 !important; color: var(--text) !important; background-image: none !important; }
#nav, [data-theme='light'] #nav { background: rgba(15,12,24,.76) !important; border-bottom: 1px solid var(--line) !important; backdrop-filter: blur(16px); }
#nav .site-name, #nav .nav-site-title { letter-spacing: .1em; font-size: 15px; }
#menus .site-page { letter-spacing: .05em; font-size: 13px; }
#page-header.full_page { height: min(780px, 90vh) !important; min-height: 620px; background-size: cover !important; background-position: center 66% !important; }
#page-header.full_page::before { background: linear-gradient(180deg,rgba(13,10,22,.6),rgba(13,10,22,.06) 30%,transparent 60%,rgba(13,10,22,.46)) !important; }
#site-info { top: 29% !important; }
#site-info::before { content: 'A PERSONAL JOURNAL  /  EST. 2026'; color: #f6d6b6; letter-spacing: .3em; font-size: 11px; }
#site-title { font-family: var(--font-serif) !important; font-weight: 500 !important; letter-spacing: .08em !important; font-size: clamp(42px,6vw,82px) !important; line-height: 1.28 !important; max-width: 1000px; text-shadow: 0 4px 30px rgba(12,8,26,.65); }
#content-inner { max-width: 1080px !important; padding-top: 68px; }
#recent-posts { width: 100% !important; }
#recent-posts > .recent-post-item, #recent-posts > .recent-post-item:hover { background: #1b1725 !important; border: 1px solid var(--line) !important; border-radius: 6px !important; box-shadow: none !important; }
#recent-posts > .recent-post-item:hover { border-color: rgba(239,196,136,.5) !important; transform: translateY(-3px); }
#recent-posts .recent-post-info { padding: clamp(25px,4vw,46px) !important; }
#recent-posts .article-title { color: var(--text) !important; font-family: var(--font-serif); font-weight: 500 !important; font-size: clamp(24px,2.8vw,34px) !important; line-height: 1.35; }
#recent-posts .article-meta-wrap { color: var(--muted) !important; font-size: 12px; letter-spacing: .06em; }
#recent-posts .content { color: var(--text-2) !important; line-height: 1.9; font-size: 14px; }
#recent-posts .post_cover img { filter: saturate(.8) contrast(.96); }
#page, #post, #archive, #tag, #category { background: #1b1725 !important; border: 1px solid var(--line); border-radius: 6px !important; box-shadow: none !important; color: var(--text-2) !important; }
#page h1, #page h2, #post h1, #post h2, .article-title { font-family: var(--font-serif); font-weight: 500; }
#article-container { font-size: 15px; line-height: 1.95; }
#article-container a { color: var(--amber); }
#article-container blockquote { background: #241d2e; border-left: 2px solid var(--amber); color: var(--text-2); }
.screening-cta { border-radius: 6px !important; border: 1px solid var(--line-strong) !important; box-shadow: none !important; background: linear-gradient(110deg,#292036,#1b1725) !important; }
#footer { background: #0d0b13 !important; border-top: 1px solid var(--line); }
@media(max-width:900px) { #page-header.full_page { min-height: 610px; height: 78vh !important; background-position: 64% center !important; } #site-info { top: 23% !important; } #site-title { font-size: clamp(32px,8vw,50px) !important; } #content-inner { padding-top: 32px; } }
