@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;700;900&display=swap');

:root {
  --ri-black: #101417;
  --ri-ink: #20262a;
  --ri-paper: #e9e9e5;
  --ri-white: #f7f8f5;
  --ri-yellow: #f0c900;
  --ri-yellow-soft: #ffe97a;
  --ri-cyan: #72d5d0;
  --ri-muted: #7c8586;
  --ri-line: rgba(32, 38, 42, .18);
  --ri-shadow: 8px 8px 0 rgba(16, 20, 23, .92);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ri-ink);
  background: var(--ri-paper);
  font-family: 'Noto Sans SC', system-ui, sans-serif;
  background-image: linear-gradient(135deg, rgba(16,20,23,.035) 25%, transparent 25%, transparent 50%, rgba(16,20,23,.035) 50%, rgba(16,20,23,.035) 75%, transparent 75%);
  background-size: 7px 7px;
}
body:before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 10; opacity: .12;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(16,20,23,.12) 4px);
}

#home { max-width: 1480px; margin: 0 auto; padding: 0 34px 60px; }
#header {
  position: relative; min-height: 300px; margin: 0 -34px 36px; padding: 92px 7vw 48px;
  overflow: hidden; color: var(--ri-white); background: var(--ri-black);
  border-bottom: 10px solid var(--ri-yellow);
}
#header:before, #header:after { content: ''; position: absolute; pointer-events: none; }
#header:before { width: 52vw; height: 52vw; right: -12vw; top: -32vw; border: 1px solid rgba(114,213,208,.5); transform: rotate(45deg); box-shadow: 0 0 0 22px rgba(114,213,208,.08), 0 0 0 44px rgba(114,213,208,.05); }
#header:after { inset: auto 0 0; height: 34px; background: repeating-linear-gradient(135deg, var(--ri-yellow) 0 18px, var(--ri-black) 18px 36px); opacity: .85; }
#blogTitle { position: relative; z-index: 1; }
#blogTitle h1 { margin: 0; max-width: 900px; font-size: clamp(42px, 8vw, 100px); line-height: .95; letter-spacing: -.07em; font-weight: 900; }
#blogTitle h1 a { color: var(--ri-white); text-decoration: none; }
#blogTitle h2 { margin: 18px 0 0; color: var(--ri-yellow); font: 600 15px/1.4 'Barlow Condensed', sans-serif; letter-spacing: .25em; text-transform: uppercase; }
#blogTitle h2:before { content: 'RHODES ISLAND // '; color: var(--ri-cyan); }

#navigator { position: absolute; z-index: 3; top: 22px; right: 7vw; }
#navList { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
#navList a { display: block; padding: 7px 12px; color: var(--ri-white); text-decoration: none; border-left: 2px solid var(--ri-yellow); font: 500 14px 'Barlow Condensed', sans-serif; }
#navList a:hover { color: var(--ri-black); background: var(--ri-yellow); }

#main { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 38px; align-items: start; }
#mainContent { min-width: 0; }
#sideBar { min-width: 0; }
.day { position: relative; margin: 0 0 42px; padding: 30px clamp(20px, 4vw, 56px); background: rgba(247,248,245,.88); border: 1px solid var(--ri-line); border-top: 7px solid var(--ri-ink); box-shadow: var(--ri-shadow); }
.day:before { content: 'FIELD LOG'; position: absolute; right: 16px; top: -30px; color: var(--ri-muted); font: 700 12px 'Barlow Condensed', sans-serif; letter-spacing: .22em; }
.postTitle { margin: 0 0 18px; font-size: clamp(25px, 3vw, 40px); line-height: 1.15; letter-spacing: -.04em; }
.postTitle a { color: var(--ri-ink); text-decoration: none; }
.postTitle a:hover { color: #8e7500; }
.postBody { font-size: 16px; line-height: 2; }
.postBody img { max-width: 100%; height: auto; }
.postDesc { color: var(--ri-muted); }
.postDesc a, .postBody a { color: #087c80; text-underline-offset: 4px; }
.postDesc2 { margin-top: 26px; color: var(--ri-muted); font: 13px 'Barlow Condensed', sans-serif; letter-spacing: .08em; }
.postDesc2 a { color: var(--ri-ink); }
.postSeparator { display: none; }

.catListTitle, .catListLink, .mySearch, .newsItem, .catList { margin-bottom: 28px; }
.catListTitle { color: var(--ri-white); background: var(--ri-ink); padding: 10px 14px; font: 600 17px 'Barlow Condensed', sans-serif; letter-spacing: .12em; }
.catListTitle:before { content: '// '; color: var(--ri-yellow); }
.catList { padding: 0 14px; list-style: none; }
.catList li { padding: 9px 0; border-bottom: 1px solid var(--ri-line); }
.catList a, .catListLink a, .newsItem a { color: var(--ri-ink); text-decoration: none; }
.catList a:hover, .catListLink a:hover, .newsItem a:hover { color: #8e7500; }
#sideBarMain { padding-top: 12px; }
#sideBarMain .newsItem, #sideBarMain .catListLink { padding: 14px; background: rgba(247,248,245,.65); border-left: 4px solid var(--ri-cyan); }

#footer { margin-top: 64px; padding: 28px 0 0; color: var(--ri-muted); border-top: 2px solid var(--ri-ink); font: 13px 'Barlow Condensed', sans-serif; letter-spacing: .09em; }
#footer a { color: var(--ri-ink); }

/* 文章内常用元素 */
.postBody h2, .postBody h3 { padding-left: 15px; border-left: 6px solid var(--ri-yellow); }
.postBody blockquote { margin: 22px 0; padding: 15px 20px; background: #eef0ed; border-left: 4px solid var(--ri-cyan); }
.postBody code { padding: 2px 5px; color: #a54c00; background: #edf0ee; }
.postBody pre { padding: 20px; overflow: auto; color: #dce6e3; background: var(--ri-black); border-left: 5px solid var(--ri-yellow); line-height: 1.65; }

.ri-loader { position: fixed; inset: 0; z-index: 2147483647; display: grid; place-items: center; color: var(--ri-white); background: var(--ri-black); transition: opacity .5s, visibility .5s; animation: ri-loader-fallback-hide .5s ease 2.4s forwards; }
.ri-loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.ri-loader span { font: 600 18px 'Barlow Condensed', sans-serif; letter-spacing: .25em; }
.ri-progress { width: 220px; height: 4px; margin-top: 18px; background: #3c4548; }
.ri-progress i { display: block; width: 0; height: 100%; background: var(--ri-yellow); animation: load 1.1s ease forwards; }
@keyframes load { to { width: 100%; } }
/* 即使博客园过滤或延迟执行 script，加载层也会自动退出，避免遮挡首页。 */
@keyframes ri-loader-fallback-hide { to { opacity: 0; visibility: hidden; pointer-events: none; } }

@media (max-width: 800px) {
  #home { padding: 0 16px 40px; }
  #header { margin: 0 -16px 32px; padding: 100px 24px 48px; }
  #navigator { top: 18px; left: 24px; right: auto; }
  #main { display: block; }
  #sideBar { margin-top: 52px; }
  .day { box-shadow: 5px 5px 0 rgba(16,20,23,.92); }
}

.ri-reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.ri-reveal.ri-visible { opacity: 1; transform: none; }
#navList a:after { content: attr(data-ri-label); display: block; color: var(--ri-cyan); font-size: 9px; letter-spacing: .12em; }
#navList a:hover:after { color: var(--ri-black); }
/* 自定义页首与侧边栏模块 */
.ri-custom-header { position: relative; min-height: 180px; margin: -30px -7vw 28px; padding: 34px 7vw; overflow: hidden; color: var(--ri-white); background: var(--ri-black); border-bottom: 7px solid var(--ri-yellow); }
.ri-custom-header:before { content: ''; position: absolute; width: 250px; height: 250px; right: 10%; top: -180px; border: 1px solid var(--ri-cyan); transform: rotate(45deg); box-shadow: 0 0 0 18px rgba(114,213,208,.12), 0 0 0 36px rgba(114,213,208,.06); }
.ri-custom-header__kicker { position: relative; z-index: 1; margin: 0 0 8px; color: var(--ri-cyan); font: 600 13px 'Barlow Condensed', sans-serif; letter-spacing: .25em; }
.ri-custom-header__title { position: relative; z-index: 1; margin: 0; font-size: clamp(30px, 5vw, 58px); line-height: 1; letter-spacing: -.05em; }
.ri-custom-header__desc { position: relative; z-index: 1; max-width: 620px; margin: 15px 0 0; color: #cbd4d2; font-size: 14px; line-height: 1.8; }
.ri-custom-header__badge { position: absolute; right: 7vw; bottom: 24px; z-index: 1; color: var(--ri-yellow); font: 700 12px 'Barlow Condensed', sans-serif; letter-spacing: .15em; }
.ri-announcement { position: relative; margin: 0 0 26px; padding: 18px 18px 16px; color: var(--ri-ink); background: rgba(247,248,245,.8); border: 1px solid var(--ri-line); border-left: 5px solid var(--ri-yellow); box-shadow: 5px 5px 0 rgba(16,20,23,.85); }
.ri-announcement:before { content: 'NOTICE // 公告'; display: block; margin-bottom: 10px; color: #8e7500; font: 700 13px 'Barlow Condensed', sans-serif; letter-spacing: .16em; }
.ri-announcement p { margin: 0; font-size: 14px; line-height: 1.9; }
.ri-announcement a { color: #087c80; }
.ri-reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.ri-reveal.ri-visible { opacity: 1; transform: none; }
#navList a:after { content: attr(data-ri-label); display: block; color: var(--ri-cyan); font-size: 9px; letter-spacing: .12em; }
#navList a:hover:after { color: var(--ri-black); }
@media (max-width: 800px) { .ri-custom-header { margin: -20px -24px 24px; padding: 28px 24px; } .ri-custom-header__badge { right: 24px; bottom: 16px; } }


/* ===== FINAL UI POLISH =====
   更克制的情报终端布局：用留白、细线和明确信息层级替代厚重装饰。 */
:root {
  --ri-black: #151a1d;
  --ri-ink: #252c2e;
  --ri-paper: #eef0ed;
  --ri-white: #fbfcf9;
  --ri-yellow: #e4b900;
  --ri-cyan: #4caeac;
  --ri-muted: #6c7778;
  --ri-line: #d6dcda;
  --ri-shadow: 5px 5px 0 rgba(21, 26, 29, .12);
}
body {
  background-color: var(--ri-paper);
  background-image: linear-gradient(90deg, rgba(21,26,29,.025) 1px, transparent 1px), linear-gradient(rgba(21,26,29,.025) 1px, transparent 1px);
  background-size: 32px 32px;
}
body:before { opacity: .035; }
#home { max-width: 1260px; padding: 0 28px 48px; }
#header {
  min-height: 282px;
  margin: 0 -28px 48px;
  padding: 96px max(28px, 7vw) 42px;
  border-bottom: 4px solid var(--ri-yellow);
}
#header:before { right: -5vw; top: -29vw; opacity: .55; }
#header:after { height: 14px; opacity: .95; }
#blogTitle h1 {
  max-width: 720px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: .98;
  letter-spacing: 0;
}
#blogTitle h2 { margin-top: 20px; color: #d7ddda; font-size: 13px; letter-spacing: .18em; }
#blogTitle h2:before { color: var(--ri-yellow); }
#navigator { top: 24px; right: max(28px, 7vw); }
#navList { gap: 4px; }
#navList a { padding: 6px 10px; border-left: 1px solid var(--ri-yellow); font-size: 13px; transition: background .2s, color .2s; }
#navList a:after { opacity: .8; font-size: 8px; }
#main { grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; }
#mainContent { max-width: 820px; }
.day {
  margin-bottom: 32px;
  padding: 30px 38px 26px;
  background: rgba(251,252,249,.92);
  border: 1px solid var(--ri-line);
  border-top: 3px solid var(--ri-ink);
  box-shadow: var(--ri-shadow);
}
.day:before { top: -24px; right: 0; color: var(--ri-cyan); font-size: 10px; letter-spacing: .16em; }
.postTitle { margin-bottom: 15px; font-size: clamp(24px, 3vw, 34px); line-height: 1.25; letter-spacing: 0; }
.postTitle a { transition: color .2s; }
.postBody { color: #3c4546; font-size: 15px; line-height: 1.95; }
.postDesc { font-size: 14px; line-height: 1.8; }
.postDesc2 { padding-top: 17px; border-top: 1px solid var(--ri-line); font-size: 12px; }
#sideBar { padding-top: 6px; }
#sideBarMain { padding-top: 0; }
#sideBarMain > div { margin-bottom: 28px; }
.catListTitle {
  margin-bottom: 0;
  padding: 9px 12px;
  color: var(--ri-white);
  background: var(--ri-ink);
  border-left: 4px solid var(--ri-yellow);
  font-size: 15px;
  letter-spacing: .08em;
}
.catListTitle:before { content: '//'; margin-right: 5px; }
.catList { margin: 0; padding: 6px 12px; background: rgba(251,252,249,.62); }
.catList li { padding: 8px 0; font-size: 13px; }
#sideBarMain .newsItem, #sideBarMain .catListLink { margin-bottom: 14px; padding: 13px; background: rgba(251,252,249,.62); border-left: 2px solid var(--ri-cyan); font-size: 13px; line-height: 1.7; }
.ri-custom-header {
  min-height: 154px;
  margin: -12px 0 34px;
  padding: 27px 32px 25px;
  background: #1d2427;
  border-bottom: 4px solid var(--ri-yellow);
  box-shadow: 5px 5px 0 rgba(21,26,29,.16);
}
.ri-custom-header:before { right: 6%; top: -170px; opacity: .4; }
.ri-custom-header__kicker { margin-bottom: 9px; font-size: 11px; letter-spacing: .18em; }
.ri-custom-header__title { font-size: clamp(27px, 4vw, 48px); letter-spacing: 0; }
.ri-custom-header__desc { max-width: 540px; margin-top: 12px; color: #b9c4c1; font-size: 13px; }
.ri-custom-header__badge { right: 32px; bottom: 22px; font-size: 10px; }
.ri-announcement { margin-bottom: 24px; padding: 15px 16px 14px; background: rgba(251,252,249,.76); border-left-width: 3px; box-shadow: none; }
.ri-announcement:before { margin-bottom: 7px; font-size: 11px; }
.ri-announcement p { font-size: 13px; line-height: 1.8; }
#footer { margin-top: 56px; padding-top: 20px; font-size: 12px; }
@media (max-width: 800px) {
  #home { padding: 0 16px 36px; }
  #header { margin: 0 -16px 36px; padding: 92px 24px 38px; }
  #navigator { top: 20px; left: 24px; right: 24px; }
  #navList a { padding-left: 7px; padding-right: 7px; }
  #main { display: block; }
  #mainContent { max-width: none; }
  #sideBar { margin-top: 48px; }
  .day { padding: 24px 20px 22px; box-shadow: 3px 3px 0 rgba(21,26,29,.13); }
  .ri-custom-header { margin: -8px 0 28px; padding: 24px 20px 25px; }
  .ri-custom-header__badge { position: static; display: block; margin-top: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}



/* No-JS 纯 CSS 导航副标题：替代原本由脚本注入的 data-label。 */
#navList a:after { content: ''; }
#navList li:nth-child(1) a:after { content: 'INDEX'; }
#navList li:nth-child(2) a:after { content: 'LOG'; }
#navList li:nth-child(3) a:after { content: 'CONTACT'; }
#navList li:nth-child(4) a:after { content: 'SUBSCRIBE'; }
#navList li:nth-child(5) a:after { content: 'CONTROL'; }
#navList li:nth-child(n+6) a:after { content: 'LINK'; }

/* No-JS 可见性兜底：没有脚本时不隐藏文章和侧边栏。 */
.ri-reveal, .ri-reveal.ri-visible { opacity: 1; transform: none; }


/* 统一全局链接风格 */
a {
  color: #0f7f80;
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, opacity .18s ease;
}
a:hover { color: #095e61; }
a:visited { color: #6a5ea0; }
a:focus-visible {
  outline: 2px solid rgba(76, 174, 172, .42);
  outline-offset: 2px;
  border-radius: 2px;
}
.postBody a, .postDesc a, .ri-announcement a, .catList a, .catListLink a, .newsItem a, #footer a {
  border-bottom: 1px solid rgba(15, 127, 128, .18);
}
.postBody a:hover, .postDesc a:hover, .ri-announcement a:hover, .catList a:hover, .catListLink a:hover, .newsItem a:hover, #footer a:hover {
  border-bottom-color: currentColor;
}
#blogTitle a, #navList a, .postTitle a { border-bottom: 0; }

/* 无 SVG 版本的点阵标志 */
.ri-dot-logo { position: relative; height: 172px; margin: 8px 0 5px; overflow: hidden; border: 1px solid rgba(76,174,172,.12); background:
  radial-gradient(circle at 18% 22%, rgba(76,174,172,.22) 0 1px, transparent 2px),
  radial-gradient(circle at 31% 69%, rgba(240,201,0,.28) 0 1px, transparent 2px),
  radial-gradient(circle at 72% 18%, rgba(247,248,245,.24) 0 1px, transparent 2px),
  linear-gradient(180deg, rgba(21,26,29,.03), rgba(21,26,29,.08));
}
.ri-dot-logo:before, .ri-dot-logo:after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
}
.ri-dot-logo:before {
  background:
    radial-gradient(circle at 18% 25%, #72d5d0 0 2px, transparent 2.8px),
    radial-gradient(circle at 21% 26%, #72d5d0 0 2px, transparent 2.8px),
    radial-gradient(circle at 24% 27%, #72d5d0 0 2px, transparent 2.8px),
    radial-gradient(circle at 27% 28%, #72d5d0 0 2px, transparent 2.8px),
    radial-gradient(circle at 30% 29%, #72d5d0 0 2px, transparent 2.8px),
    radial-gradient(circle at 33% 30%, #72d5d0 0 2px, transparent 2.8px),
    radial-gradient(circle at 36% 31%, #72d5d0 0 2px, transparent 2.8px),
    radial-gradient(circle at 39% 32%, #72d5d0 0 2px, transparent 2.8px),
    radial-gradient(circle at 42% 33%, #72d5d0 0 2px, transparent 2.8px),
    radial-gradient(circle at 45% 34%, #72d5d0 0 2px, transparent 2.8px),
    radial-gradient(circle at 48% 35%, #72d5d0 0 2px, transparent 2.8px),
    radial-gradient(circle at 51% 36%, #72d5d0 0 2px, transparent 2.8px),
    radial-gradient(circle at 54% 37%, #72d5d0 0 2px, transparent 2.8px),
    radial-gradient(circle at 57% 38%, #72d5d0 0 2px, transparent 2.8px),
    radial-gradient(circle at 60% 39%, #72d5d0 0 2px, transparent 2.8px),
    radial-gradient(circle at 63% 40%, #72d5d0 0 2px, transparent 2.8px),
    radial-gradient(circle at 66% 41%, #72d5d0 0 2px, transparent 2.8px),
    radial-gradient(circle at 69% 42%, #72d5d0 0 2px, transparent 2.8px),
    radial-gradient(circle at 72% 43%, #72d5d0 0 2px, transparent 2.8px),
    radial-gradient(circle at 75% 44%, #72d5d0 0 2px, transparent 2.8px);
  opacity: .65;
  animation: ri-dot-drift 10s linear infinite;
}
.ri-dot-logo:after {
  background:
    radial-gradient(circle at 54% 52%, #f0c900 0 1.8px, transparent 2.6px),
    radial-gradient(circle at 57% 54%, #f0c900 0 1.8px, transparent 2.6px),
    radial-gradient(circle at 60% 56%, #f0c900 0 1.8px, transparent 2.6px),
    radial-gradient(circle at 63% 58%, #f0c900 0 1.8px, transparent 2.6px),
    radial-gradient(circle at 66% 60%, #f0c900 0 1.8px, transparent 2.6px),
    radial-gradient(circle at 69% 62%, #f0c900 0 1.8px, transparent 2.6px),
    radial-gradient(circle at 72% 64%, #f0c900 0 1.8px, transparent 2.6px),
    radial-gradient(circle at 75% 66%, #f0c900 0 1.8px, transparent 2.6px),
    radial-gradient(circle at 78% 68%, #f0c900 0 1.8px, transparent 2.6px),
    radial-gradient(circle at 81% 70%, #f0c900 0 1.8px, transparent 2.6px),
    radial-gradient(circle at 84% 72%, #f0c900 0 1.8px, transparent 2.6px),
    radial-gradient(circle at 87% 74%, #f0c900 0 1.8px, transparent 2.6px);
  opacity: .55;
  animation: ri-dot-drift 16s linear reverse infinite;
}
.ri-dot-logo__glyph {
  position: absolute; inset: 0; display: grid; place-items: center; color: rgba(247,248,245,.92);
  font: 900 62px/1 'Barlow Condensed', sans-serif; letter-spacing: -.08em; text-shadow: 0 0 10px rgba(114,213,208,.12);
}
.ri-dot-logo__field { position: absolute; inset: 0; }
.ri-dot-logo__field span {
  position: absolute; width: 4px; height: 4px; border-radius: 50%; background: rgba(114,213,208,.92);
  box-shadow: 0 0 9px rgba(114,213,208,.22);
  animation: ri-dot-pulse 3.8s ease-in-out infinite;
}
.ri-dot-logo__field span:nth-child(1) { left: 10%; top: 18%; }
.ri-dot-logo__field span:nth-child(2) { left: 17%; top: 28%; animation-delay: .2s; }
.ri-dot-logo__field span:nth-child(3) { left: 24%; top: 20%; animation-delay: .4s; }
.ri-dot-logo__field span:nth-child(4) { left: 31%; top: 33%; animation-delay: .6s; }
.ri-dot-logo__field span:nth-child(5) { left: 39%; top: 25%; animation-delay: .8s; }
.ri-dot-logo__field span:nth-child(6) { left: 46%; top: 36%; animation-delay: 1s; }
.ri-dot-logo__field span:nth-child(7) { left: 53%; top: 27%; animation-delay: 1.2s; }
.ri-dot-logo__field span:nth-child(8) { left: 60%; top: 40%; animation-delay: 1.4s; }
.ri-dot-logo__field span:nth-child(9) { left: 68%; top: 32%; animation-delay: 1.6s; }
.ri-dot-logo__field span:nth-child(10) { left: 75%; top: 43%; animation-delay: 1.8s; }
.ri-dot-logo__field span:nth-child(11) { left: 82%; top: 36%; animation-delay: 2s; }
.ri-dot-logo__field span:nth-child(12) { left: 88%; top: 47%; animation-delay: 2.2s; }
.ri-dot-logo__field span:nth-child(13) { left: 14%; top: 68%; background: rgba(240,201,0,.88); animation-delay: .3s; }
.ri-dot-logo__field span:nth-child(14) { left: 22%; top: 74%; background: rgba(240,201,0,.88); animation-delay: .5s; }
.ri-dot-logo__field span:nth-child(15) { left: 30%; top: 70%; background: rgba(240,201,0,.88); animation-delay: .7s; }
.ri-dot-logo__field span:nth-child(16) { left: 39%; top: 76%; background: rgba(240,201,0,.88); animation-delay: .9s; }
.ri-dot-logo__field span:nth-child(17) { left: 48%; top: 72%; background: rgba(240,201,0,.88); animation-delay: 1.1s; }
.ri-dot-logo__field span:nth-child(18) { left: 57%; top: 78%; background: rgba(240,201,0,.88); animation-delay: 1.3s; }
.ri-dot-logo__field span:nth-child(19) { left: 66%; top: 74%; background: rgba(240,201,0,.88); animation-delay: 1.5s; }
.ri-dot-logo__field span:nth-child(20) { left: 75%; top: 80%; background: rgba(240,201,0,.88); animation-delay: 1.7s; }
@keyframes ri-dot-drift { from { transform: translateY(0); } 50% { transform: translateY(-4px); } to { transform: translateY(0); } }
@keyframes ri-dot-pulse { 0%, 100% { transform: scale(.9); opacity: .55; } 50% { transform: scale(1.2); opacity: 1; } }


/* ===== 博客园原生侧栏组件优化 ===== */
/* 日历：简洁的月历面板，避免默认表格文字拥挤。 */
#blog-calendar {
  margin: 0 0 28px;
  padding: 12px 12px 14px;
  color: var(--ri-ink);
  background: rgba(251,252,249,.78);
  border: 1px solid var(--ri-line);
  border-top: 3px solid var(--ri-ink);
  box-shadow: 3px 3px 0 rgba(21,26,29,.08);
  font-size: 12px;
}
#blog-calendar table { width: 100%; border-collapse: collapse; table-layout: fixed; }
#blog-calendar caption, #blog-calendar td a, #blog-calendar th { font-family: 'Barlow Condensed', 'Noto Sans SC', sans-serif; }
#blog-calendar caption { padding: 4px 0 12px; color: var(--ri-ink); font-size: 16px; font-weight: 700; letter-spacing: .08em; }
#blog-calendar caption a { margin: 0 5px; color: var(--ri-cyan); border: 0; }
#blog-calendar th { padding: 5px 0; color: var(--ri-muted); font-size: 10px; font-weight: 600; }
#blog-calendar td { height: 27px; padding: 2px 0; color: var(--ri-muted); text-align: center; font-size: 11px; }
#blog-calendar td a { display: inline-grid; width: 23px; height: 23px; place-items: center; color: var(--ri-ink); background: transparent; border: 0; border-radius: 50%; }
#blog-calendar td a:hover { color: var(--ri-black); background: var(--ri-yellow); }
#blog-calendar td.day-current a, #blog-calendar td a[title] { color: var(--ri-black); background: rgba(76,174,172,.22); }
#blog-calendar td a[title]:hover { background: var(--ri-yellow); }

/* 搜索框：兼容博客园常见的 input#q 和搜索容器。 */
#sidebar_search_box, #sidebar_search_box form, .mySearch { position: relative; }
#sidebar_search_box, .mySearch { margin: 0 0 28px; padding: 0; background: transparent; border: 0; }
#sidebar_search_box input[type='text'], #sidebar_search_box input[type='search'], #sidebar_search_box #q, .mySearch #q, .mySearch input[type='text'] { width: 100%; height: 38px; padding: 0 42px 0 13px; color: var(--ri-ink); background: rgba(251,252,249,.86); border: 1px solid var(--ri-line); border-left: 3px solid var(--ri-cyan); border-radius: 0; outline: 0; box-shadow: none; font: 13px 'Noto Sans SC', sans-serif; transition: border-color .2s ease, background-color .2s ease; }
#sidebar_search_box input:focus, .mySearch input:focus { background: var(--ri-white); border-color: var(--ri-cyan); }
#sidebar_search_box input::placeholder, .mySearch input::placeholder { color: #899392; }
#sidebar_search_box input[type='submit'], #sidebar_search_box button, .mySearch input[type='submit'], .mySearch button { position: absolute; top: 5px; right: 5px; width: 29px; height: 28px; padding: 0; overflow: hidden; color: var(--ri-black); background: var(--ri-yellow); border: 0; border-radius: 0; cursor: pointer; font-size: 0; }
#sidebar_search_box input[type='submit']:before, #sidebar_search_box button:before, .mySearch input[type='submit']:before, .mySearch button:before { content: '>'; font: 700 17px/28px 'Barlow Condensed', sans-serif; }
#sidebar_search_box input[type='submit']:hover, #sidebar_search_box button:hover, .mySearch input[type='submit']:hover, .mySearch button:hover { background: var(--ri-cyan); }

/* 个人资料：修正行高、链接换行和默认杂乱文字的视觉层级。 */
#profile_block { margin: 0 0 28px; padding: 16px 14px; color: var(--ri-muted); background: rgba(251,252,249,.78); border: 1px solid var(--ri-line); border-left: 3px solid var(--ri-yellow); font: 13px/1.9 'Noto Sans SC', sans-serif; word-break: break-word; }
#profile_block:before { content: 'OPERATOR PROFILE'; display: block; margin-bottom: 9px; color: var(--ri-ink); font: 700 13px 'Barlow Condensed', sans-serif; letter-spacing: .13em; }
#profile_block a { display: inline-block; margin: 1px 8px 1px 0; color: #0f7f80; }
#profile_block img { max-width: 100%; height: auto; margin: 0 0 9px; border: 2px solid rgba(76,174,172,.28); }
#profile_block br { line-height: 1.1; }
@media (max-width: 800px) { #blog-calendar { padding-left: 10px; padding-right: 10px; } #profile_block { font-size: 12px; } }


/* ===== 最终清理：移除旧粒子模块残留 ===== */
.ri-particle-module, .ri-dot-logo, #riParticleCanvas { display: none !important; }

/* ===== 个人资料正常排版 ===== */
#profile_block {
  display: block !important;
  width: 100%;
  min-height: 0;
  font-size: 13px !important;
  line-height: 1.9 !important;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}
#profile_block > * { display: block; max-width: 100%; }
#profile_block br { display: block; content: ''; height: 5px; }
#profile_block a { display: inline-block; margin: 0 8px 3px 0; }
#profile_block:before {
  content: 'OPERATOR PROFILE';
  display: block;
  margin: 0 0 8px;
  color: var(--ri-ink);
  font: 700 13px/1.2 'Barlow Condensed', sans-serif;
  letter-spacing: .13em;
}

/* 全局链接最终覆盖：统一颜色、下划线和鼠标状态。 */
a, a:visited { color: #0f7f80; }
a:hover { color: #095e61; }
.postTitle a, #blogTitle a, #navList a, .catListTitle a { color: inherit; }
#footer a:hover, #profile_block a:hover { color: #095e61; }


/* ===== 侧栏统一对齐与博客统计 ===== */
#sidebar_search_box, #blog-calendar, #profile_block, #blog_stats, #blogStats, .catListTitle, .catList, .catListLink, .newsItem, .mySearch, .ri-announcement { width: 100%; max-width: 100%; min-width: 0; }
#blog_stats, #blogStats { margin: 0 0 28px; padding: 14px; color: var(--ri-muted); background: rgba(251,252,249,.78); border: 1px solid var(--ri-line); border-left: 3px solid var(--ri-cyan); font: 12px/1.9 'Noto Sans SC', sans-serif; word-break: break-word; }
#blog_stats:before, #blogStats:before { content: 'SYSTEM STATUS'; display: block; margin-bottom: 7px; color: var(--ri-ink); font: 700 13px/1.2 'Barlow Condensed', sans-serif; letter-spacing: .13em; }
#blog_stats a, #blogStats a { display: inline-block; margin-right: 7px; }
#blog_stats br, #blogStats br { display: block; content: ''; height: 3px; }
#sideBarMain > div, #sideBarMain > section, #sideBarMain > aside { margin-top: 0; margin-bottom: 24px; }
.catListTitle { display: block; min-height: 36px; margin: 0 !important; padding: 9px 12px !important; line-height: 18px !important; }
.catList, .catListLink, .newsItem { margin-top: 0 !important; }
.catListLink, .newsItem { min-height: 42px; }
.ri-announcement { margin: 0 0 24px !important; }
#sidebar_news, #sidebar_categories, #sidebar_links, #sidebar_recentposts { background: transparent !important; border: 0 !important; padding: 0 !important; }
@media (max-width: 800px) { #blog_stats, #blogStats, #profile_block { padding: 13px 12px; } .catListTitle { min-height: 34px; } }


/* 日历最终细化：固定单元格节奏，月份和日期视觉对齐。 */
#blog-calendar caption { height: 36px; padding: 3px 0 10px; line-height: 23px; text-align: center; }
#blog-calendar caption a { display: inline-block; min-width: 18px; height: 22px; margin: 0 4px; line-height: 22px; text-align: center; }
#blog-calendar thead tr, #blog-calendar tbody tr { height: 29px; }
#blog-calendar th { height: 24px; padding: 0; line-height: 24px; text-align: center; }
#blog-calendar td { height: 29px; padding: 3px 0; line-height: 23px; }
#blog-calendar td > a, #blog-calendar td > span { vertical-align: middle; }
#blog-calendar td > span { display: inline-block; width: 23px; height: 23px; color: #a5acab; line-height: 23px; }
#blog-calendar td a { line-height: 23px; }
#blog-calendar td a[title] { font-weight: 700; box-shadow: inset 0 0 0 1px rgba(76,174,172,.18); }


/* ===== FINAL SIDEBAR REDESIGN ===== */
/* 清除博客园默认列表圆点、缩进和不同模块的默认间距。 */
#sideBar ul, #sideBar ol, #sideBarMain ul, #sideBarMain ol,
#sidebar_shortcut ul, #sidebar_links ul, .catList, .catList ul {
  list-style: none !important;
  margin: 0 !important;
  padding-left: 0 !important;
}
#sideBar li, #sideBarMain li, #sidebar_shortcut li, #sidebar_links li, .catList li {
  list-style: none !important;
  list-style-image: none !important;
}
#sideBar li:before, #sideBarMain li:before, #sidebar_shortcut li:before, #sidebar_links li:before, .catList li:before { content: none !important; }

/* navigator 下的统计信息，以及博客园其他可能使用的 blogStats 写法。 */
#navigator #blogStats, #navigator #blog_stats, #navigator .blogStats,
#blogStats, #blog_stats, .blogStats {
  display: block !important;
  position: static !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  margin: 12px 0 0 !important;
  padding: 9px 12px !important;
  overflow: hidden !important;
  color: #aeb9b6 !important;
  background: rgba(255,255,255,.055) !important;
  border: 1px solid rgba(114,213,208,.18) !important;
  border-left: 2px solid var(--ri-yellow) !important;
  box-shadow: none !important;
  font: 11px/1.8 'Noto Sans SC', sans-serif !important;
  text-align: left !important;
  white-space: normal !important;
  word-break: break-word !important;
}
#navigator #blogStats:before, #navigator #blog_stats:before, #navigator .blogStats:before,
#blogStats:before, #blog_stats:before, .blogStats:before {
  content: 'SYSTEM STATUS' !important;
  display: inline-block !important;
  margin: 0 12px 0 0 !important;
  color: var(--ri-cyan) !important;
  font: 700 10px/1.8 'Barlow Condensed', sans-serif !important;
  letter-spacing: .14em !important;
}
#navigator #blogStats a, #navigator #blog_stats a, #navigator .blogStats a,
#blogStats a, #blog_stats a, .blogStats a { display: inline !important; margin: 0 7px 0 0 !important; color: #d8dfdc !important; border: 0 !important; }
#navigator #blogStats a:hover, #navigator #blog_stats a:hover, #navigator .blogStats a:hover,
#blogStats a:hover, #blog_stats a:hover, .blogStats a:hover { color: var(--ri-yellow) !important; }

/* 侧边公告：取消继承的白块、伪元素和多余阴影，改成整齐的信息条。 */
.ri-announcement {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 0 24px !important;
  padding: 0 !important;
  overflow: hidden !important;
  color: var(--ri-ink) !important;
  background: var(--ri-white) !important;
  border: 1px solid var(--ri-line) !important;
  border-left: 3px solid var(--ri-yellow) !important;
  box-shadow: 3px 3px 0 rgba(21,26,29,.08) !important;
}
.ri-announcement:before { content: none !important; display: none !important; }
.ri-announcement__label { padding: 9px 13px 8px; color: var(--ri-white); background: var(--ri-ink); font: 700 11px/1.2 'Barlow Condensed', sans-serif; letter-spacing: .16em; }
.ri-announcement p { margin: 0 !important; padding: 13px 13px 11px; color: #596565; font: 13px/1.85 'Noto Sans SC', sans-serif; }
.ri-announcement__line { display: flex; justify-content: space-between; align-items: center; margin: 0 13px; padding: 8px 0 10px; border-top: 1px solid var(--ri-line); color: var(--ri-muted); font: 9px/1.2 'Barlow Condensed', sans-serif; letter-spacing: .1em; }
.ri-announcement__line strong { color: var(--ri-cyan); font-weight: 700; }

/* 常用链接：无圆点、无白色外框，统一成一组清楚的行项目。 */
#sidebar_shortcut, #sidebar_links, #sidebar_shortcut + div, .catListLink {
  width: 100% !important;
  margin: 0 0 24px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
#sidebar_shortcut .catListTitle, #sidebar_links .catListTitle, .catListLink .catListTitle {
  display: block !important;
  height: 36px !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 9px 12px !important;
  color: var(--ri-white) !important;
  background: var(--ri-ink) !important;
  border-left: 3px solid var(--ri-cyan) !important;
  font: 700 13px/18px 'Noto Sans SC', sans-serif !important;
  letter-spacing: .02em !important;
}
#sidebar_shortcut ul, #sidebar_links ul, #sidebar_shortcut .catList, #sidebar_links .catList, .catListLink ul {
  display: block !important;
  width: 100% !important;
  padding: 3px 12px !important;
  background: rgba(251,252,249,.78) !important;
  border: 1px solid var(--ri-line) !important;
  border-top: 0 !important;
}
#sidebar_shortcut li, #sidebar_links li, #sidebar_shortcut .catList li, #sidebar_links .catList li, .catListLink li {
  display: block !important;
  width: 100% !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 8px 4px !important;
  border-bottom: 1px solid rgba(214,220,218,.72) !important;
  font-size: 13px !important;
  line-height: 18px !important;
}
#sidebar_shortcut li:last-child, #sidebar_links li:last-child, #sidebar_shortcut .catList li:last-child, #sidebar_links .catList li:last-child, .catListLink li:last-child { border-bottom: 0 !important; }
#sidebar_shortcut li a, #sidebar_links li a, #sidebar_shortcut .catList li a, #sidebar_links .catList li a, .catListLink li a { display: block !important; width: 100% !important; color: #526060 !important; border: 0 !important; }
#sidebar_shortcut li a:before, #sidebar_links li a:before, #sidebar_shortcut .catList li a:before, #sidebar_links .catList li a:before, .catListLink li a:before { content: '↗'; display: inline-block; width: 20px; color: var(--ri-cyan); font-family: Arial, sans-serif; }
#sidebar_shortcut li a:hover, #sidebar_links li a:hover, #sidebar_shortcut .catList li a:hover, #sidebar_links .catList li a:hover, .catListLink li a:hover { padding-left: 4px; color: #8e7500 !important; background: rgba(240,201,0,.09); }

/* 所有侧栏面板的左边缘和内容起点统一。 */
#sideBarMain > div, #sideBarMain > section, #sideBarMain > aside { width: 100%; }
#sideBarMain .newsItem { margin-left: 0 !important; margin-right: 0 !important; }


/* ===== 文章档案卡片 ===== */
#mainContent .day {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  margin: 0 0 38px !important;
  padding: 30px 38px 25px !important;
  background: rgba(251,252,249,.96) !important;
  border: 1px solid var(--ri-line) !important;
  border-top: 3px solid var(--ri-ink) !important;
  box-shadow: 5px 5px 0 rgba(21,26,29,.12) !important;
}
#mainContent .day:last-child { margin-bottom: 0 !important; }
#mainContent .day:after {
  content: ''; display: block; clear: both;
}
#mainContent .day:before {
  content: 'FIELD LOG' !important;
  top: -22px !important;
  right: 0 !important;
  color: var(--ri-cyan) !important;
  font: 700 10px/1 'Barlow Condensed', sans-serif !important;
  letter-spacing: .16em !important;
}
#mainContent .postTitle {
  margin: 0 0 17px !important;
  padding: 0 70px 14px 0 !important;
  color: var(--ri-ink) !important;
  border-bottom: 1px solid var(--ri-line) !important;
  font-size: clamp(23px, 3vw, 34px) !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
}
#mainContent .postTitle a { color: var(--ri-ink) !important; border: 0 !important; }
#mainContent .postTitle a:hover { color: #8e7500 !important; }
#mainContent .postBody {
  min-height: 32px;
  color: #3c4546 !important;
  font-size: 15px !important;
  line-height: 1.95 !important;
}
#mainContent .postBody p { margin: 0 0 12px; }
#mainContent .postBody p:last-child { margin-bottom: 0; }
#mainContent .postDesc2 {
  margin-top: 22px !important;
  padding: 12px 0 0 !important;
  color: var(--ri-muted) !important;
  border-top: 1px solid var(--ri-line) !important;
  font: 12px/1.7 'Barlow Condensed', 'Noto Sans SC', sans-serif !important;
  letter-spacing: .02em !important;
}
#mainContent .postDesc2 a { color: var(--ri-muted) !important; border: 0 !important; }
#mainContent .postDesc2 a:hover { color: #0f7f80 !important; }
#mainContent .postSeparator { display: none !important; }

/* ===== 随笔档案与阅读排行榜 ===== */
/* 博客园常见名称：catListPostArchive=随笔档案，catListView=阅读排行榜。 */
.catListPostArchive, .catListView, .catListPostCategory, .catListFeedback, .catListComment, .catListLink {
  width: 100% !important;
  margin: 0 0 24px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.catListPostArchive .catListTitle, .catListView .catListTitle, .catListPostCategory .catListTitle, .catListFeedback .catListTitle, .catListComment .catListTitle, .catListLink .catListTitle {
  display: block !important;
  width: 100% !important;
  height: 36px !important;
  min-height: 36px !important;
  margin: 0 !important;
  padding: 9px 12px !important;
  color: var(--ri-white) !important;
  background: var(--ri-ink) !important;
  border-left: 3px solid var(--ri-yellow) !important;
  font: 700 13px/18px 'Noto Sans SC', sans-serif !important;
  letter-spacing: .03em !important;
}
.catListPostArchive .catListTitle:before, .catListView .catListTitle:before, .catListPostCategory .catListTitle:before, .catListFeedback .catListTitle:before, .catListComment .catListTitle:before, .catListLink .catListTitle:before { content: '//'; margin-right: 7px; color: var(--ri-yellow); }
.catListPostArchive ul, .catListView ul, .catListPostCategory ul, .catListFeedback ul, .catListComment ul, .catListLink ul,
.catListPostArchive .catList, .catListView .catList, .catListPostCategory .catList, .catListFeedback .catList, .catListComment .catList, .catListLink .catList {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 4px 12px !important;
  background: rgba(251,252,249,.84) !important;
  border: 1px solid var(--ri-line) !important;
  border-top: 0 !important;
  list-style: none !important;
}
.catListPostArchive li, .catListView li, .catListPostCategory li, .catListFeedback li, .catListComment li, .catListLink li {
  display: block !important;
  position: relative !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 8px 4px 8px 27px !important;
  color: var(--ri-muted) !important;
  border-bottom: 1px solid rgba(214,220,218,.72) !important;
  font: 13px/18px 'Noto Sans SC', sans-serif !important;
  list-style: none !important;
  list-style-image: none !important;
}
.catListPostArchive li:last-child, .catListView li:last-child, .catListPostCategory li:last-child, .catListFeedback li:last-child, .catListComment li:last-child, .catListLink li:last-child { border-bottom: 0 !important; }
.catListPostArchive li:before, .catListView li:before, .catListPostCategory li:before, .catListFeedback li:before, .catListComment li:before, .catListLink li:before {
  content: '01';
  position: absolute;
  left: 4px;
  top: 8px;
  width: 17px;
  color: var(--ri-cyan);
  font: 700 10px/18px 'Barlow Condensed', sans-serif;
}
.catListPostArchive li:nth-child(2):before, .catListView li:nth-child(2):before, .catListPostCategory li:nth-child(2):before, .catListFeedback li:nth-child(2):before, .catListComment li:nth-child(2):before, .catListLink li:nth-child(2):before { content: '02'; }
.catListPostArchive li:nth-child(3):before, .catListView li:nth-child(3):before, .catListPostCategory li:nth-child(3):before, .catListFeedback li:nth-child(3):before, .catListComment li:nth-child(3):before, .catListLink li:nth-child(3):before { content: '03'; }
.catListPostArchive li:nth-child(n+4):before, .catListView li:nth-child(n+4):before, .catListPostCategory li:nth-child(n+4):before, .catListFeedback li:nth-child(n+4):before, .catListComment li:nth-child(n+4):before, .catListLink li:nth-child(n+4):before { content: '··'; letter-spacing: 2px; }
.catListPostArchive li a, .catListView li a, .catListPostCategory li a, .catListFeedback li a, .catListComment li a, .catListLink li a { display: inline !important; color: #526060 !important; border: 0 !important; }
.catListPostArchive li a:hover, .catListView li a:hover, .catListPostCategory li a:hover, .catListFeedback li a:hover, .catListComment li a:hover, .catListLink li a:hover { color: #8e7500 !important; }

@media (max-width: 800px) {
  #mainContent .day { margin-bottom: 31px !important; padding: 24px 20px 21px !important; }
  #mainContent .postTitle { padding-right: 0 !important; font-size: 24px !important; }
  .catListPostArchive li, .catListView li, .catListPostCategory li, .catListLink li { padding-left: 25px !important; }
}


/* ===== JS enhanced article experience ===== */
.ri-reading-progress { position: fixed; top: 0; left: 0; z-index: 2147483646; width: 100%; height: 3px; pointer-events: none; background: rgba(21,26,29,.14); }
.ri-reading-progress i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--ri-cyan), var(--ri-yellow)); transition: width .12s linear; }
.ri-backtop { position: fixed; right: 24px; bottom: 24px; z-index: 20; display: grid; width: 38px; height: 38px; place-items: center; padding: 0; color: var(--ri-black); background: var(--ri-yellow); border: 0; border-radius: 0; box-shadow: 3px 3px 0 rgba(21,26,29,.22); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s ease, visibility .2s ease, transform .2s ease, background .2s ease; cursor: pointer; font: 700 21px/1 'Barlow Condensed', sans-serif; }
.ri-backtop.is-visible { opacity: 1; visibility: visible; transform: none; }
.ri-backtop:hover { background: var(--ri-cyan); }

#mainContent .ri-article-card { isolation: isolate; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background-color .2s ease; }
#mainContent .ri-article-card:hover { background: var(--ri-white) !important; border-color: rgba(76,174,172,.6) !important; box-shadow: 7px 7px 0 rgba(21,26,29,.14) !important; transform: translateY(-2px); }
#mainContent .ri-article-card:hover:after { content: 'OPEN LOG'; position: absolute; right: 18px; bottom: 14px; color: var(--ri-cyan); font: 700 9px/1 'Barlow Condensed', sans-serif; letter-spacing: .13em; }
#mainContent .ri-article-index { display: block; margin: 0 0 8px; color: var(--ri-cyan); font: 700 10px/1 'Barlow Condensed', sans-serif; letter-spacing: .16em; }
#mainContent .ri-reveal { opacity: 0; transform: translateY(18px); }
#mainContent .ri-reveal.ri-visible { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; transition-delay: calc(var(--ri-order, 0) * 55ms); }
#sideBarMain > .ri-reveal { opacity: 0; transform: translateY(10px); }
#sideBarMain > .ri-reveal.ri-visible { opacity: 1; transform: none; transition: opacity .45s ease, transform .45s ease; }

/* 无 JS 时保持文章完整可见。 */
.no-js #mainContent .ri-reveal, body:not(.js-ready) #mainContent .ri-reveal { opacity: 1; transform: none; }

@media (max-width: 800px) {
  .ri-backtop { right: 16px; bottom: 16px; }
  #mainContent .ri-article-card:hover { transform: none; }
  #mainContent .ri-article-card:hover:after { display: none; }
}


/* ===== 以 .clear 为边界的独立文章布局 ===== */
/* .day 只是日期分组，不再把同一天的多篇文章包成一个大卡片。 */
#mainContent .day {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
#mainContent .day:before, #mainContent .day:after { content: none !important; display: none !important; }
#mainContent .post, #mainContent .day > .post, #mainContent .day > div.post {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 29px 38px 24px !important;
  background: rgba(251,252,249,.96) !important;
  border: 1px solid var(--ri-line) !important;
  border-top: 3px solid var(--ri-ink) !important;
  box-shadow: 5px 5px 0 rgba(21,26,29,.12) !important;
  isolation: isolate;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background-color .2s ease;
}
#mainContent .post:hover, #mainContent .day > .post:hover {
  background: var(--ri-white) !important;
  border-color: rgba(76,174,172,.6) !important;
  box-shadow: 7px 7px 0 rgba(21,26,29,.14) !important;
  transform: translateY(-2px);
}
#mainContent .post:after, #mainContent .day > .post:after {
  content: 'FIELD LOG';
  position: absolute;
  top: -18px;
  right: 0;
  color: var(--ri-cyan);
  font: 700 10px/1 'Barlow Condensed', sans-serif;
  letter-spacing: .16em;
}
#mainContent .clear, #mainContent .ri-article-divider {
  display: block !important;
  clear: both !important;
  width: 100% !important;
  height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  visibility: visible !important;
}
#mainContent .clear:after, #mainContent .ri-article-divider:after {
  content: ''; display: block; position: relative; top: 18px; height: 1px; width: 100%; background: linear-gradient(90deg, var(--ri-yellow), var(--ri-line) 22%, transparent 100%);
}
#mainContent .postTitle { margin: 0 0 17px !important; padding: 0 70px 14px 0 !important; border-bottom: 1px solid var(--ri-line) !important; font-size: clamp(23px, 3vw, 34px) !important; line-height: 1.3 !important; }
#mainContent .postTitle a { color: var(--ri-ink) !important; }
#mainContent .postBody { min-height: 32px; color: #3c4546 !important; font-size: 15px !important; line-height: 1.95 !important; }
#mainContent .postDesc2 { margin-top: 22px !important; padding: 12px 0 0 !important; border-top: 1px solid var(--ri-line) !important; color: var(--ri-muted) !important; font: 12px/1.7 'Barlow Condensed', 'Noto Sans SC', sans-serif !important; }
#mainContent .postSeparator { display: none !important; }
#mainContent .ri-article-index { display: block; margin: 0 0 8px; color: var(--ri-cyan); font: 700 10px/1 'Barlow Condensed', sans-serif; letter-spacing: .16em; }
#mainContent .ri-reveal { opacity: 0; transform: translateY(18px); }
#mainContent .ri-reveal.ri-visible { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; transition-delay: calc(var(--ri-order, 0) * 55ms); }
@media (max-width: 800px) {
  #mainContent .post, #mainContent .day > .post { padding: 24px 20px 21px !important; }
  #mainContent .post:hover, #mainContent .day > .post:hover { transform: none; }
  #mainContent .postTitle { padding-right: 0 !important; font-size: 24px !important; }
  #mainContent .clear, #mainContent .ri-article-divider { height: 30px !important; }
}


/* ===== FINAL ARTICLE REWRITE: postTitle + postCon + postDesc ===== */
/* 每篇文章由 JS 生成一个 ri-article-shell，旧的 .post 只恢复为透明容器。 */
#mainContent .post { display: block !important; margin: 0 !important; padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
#mainContent .ri-article-shell {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  margin: 0 0 32px !important;
  padding: 0 !important;
  overflow: visible !important;
  background: var(--ri-white) !important;
  border: 1px solid #d7dedb !important;
  border-left: 4px solid var(--ri-ink) !important;
  box-shadow: 4px 4px 0 rgba(21,26,29,.11) !important;
  opacity: 1;
  transform: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
#mainContent .ri-article-shell:hover {
  border-left-color: var(--ri-cyan) !important;
  box-shadow: 7px 7px 0 rgba(21,26,29,.14) !important;
  transform: translateY(-2px);
}
#mainContent .ri-article-shell:before {
  content: 'FIELD LOG / ' attr(data-index);
  position: absolute;
  top: -18px;
  right: 0;
  color: var(--ri-cyan);
  font: 700 9px/1 'Barlow Condensed', sans-serif;
  letter-spacing: .16em;
}
#mainContent .ri-article-index {
  display: block !important;
  margin: 0 0 8px !important;
  color: var(--ri-cyan) !important;
  font: 700 10px/1 'Barlow Condensed', sans-serif !important;
  letter-spacing: .16em !important;
}
#mainContent .ri-article-shell .postTitle {
  display: block !important;
  margin: 0 !important;
  padding: 24px 30px 18px !important;
  color: var(--ri-ink) !important;
  background: #f4f6f3 !important;
  border: 0 !important;
  border-bottom: 1px solid #d7dedb !important;
  font-size: clamp(22px, 2.8vw, 32px) !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
}
#mainContent .ri-article-shell .postTitle a { color: var(--ri-ink) !important; border: 0 !important; }
#mainContent .ri-article-shell .postTitle a:hover { color: #8e7500 !important; }
#mainContent .ri-article-shell .postCon {
  display: block !important;
  margin: 0 !important;
  padding: 23px 30px 20px !important;
  color: #3d4948 !important;
  background: var(--ri-white) !important;
  font: 15px/1.95 'Noto Sans SC', sans-serif !important;
}
#mainContent .ri-article-shell .postCon p { margin: 0 0 13px; }
#mainContent .ri-article-shell .postCon p:last-child { margin-bottom: 0; }
#mainContent .ri-article-shell .postCon img { max-width: 100%; height: auto; }
#mainContent .ri-article-shell .postCon a { color: #0f7f80; }
#mainContent .ri-article-shell .postDesc {
  display: block !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 12px 30px 14px !important;
  color: #7a8583 !important;
  background: #f4f6f3 !important;
  border-top: 1px solid #d7dedb !important;
  font: 12px/1.6 'Barlow Condensed', 'Noto Sans SC', sans-serif !important;
  letter-spacing: .02em !important;
}
#mainContent .ri-article-shell .postDesc a { color: #64716f !important; border: 0 !important; }
#mainContent .ri-article-shell .postDesc a:hover { color: #0f7f80 !important; }
#mainContent .clear, #mainContent .ri-article-divider {
  display: block !important;
  clear: both !important;
  width: 100% !important;
  height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}
#mainContent .clear:after, #mainContent .ri-article-divider:after {
  content: '';
  display: block;
  position: relative;
  top: 13px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--ri-yellow), #d7dedb 24%, transparent 100%);
}
@media (max-width: 800px) {
  #mainContent .ri-article-shell { margin-bottom: 26px !important; }
  #mainContent .ri-article-shell .postTitle { padding: 21px 19px 16px !important; font-size: 23px !important; }
  #mainContent .ri-article-shell .postCon { padding: 19px 19px 17px !important; font-size: 14px !important; }
  #mainContent .ri-article-shell .postDesc { padding: 11px 19px 13px !important; }
  #mainContent .clear, #mainContent .ri-article-divider { height: 22px !important; }
  #mainContent .ri-article-shell:hover { transform: none; }
}


/* 关注模块内的脚本文本兜底，不影响关注按钮本身。 */
#p_b_follow { min-height: 0; line-height: 1.7; }
#p_b_follow script { display: none !important; }


/* 博客园关注状态脚本源码泄漏：仅隐藏 profile_block 后紧邻的脚本节点。 */
#profile_block + script { display: none !important; }
