/* ==========================================================================
   Timeseal V4 —— 「纸海手记」设计系统
   命名空间：ts-
   最后加载，强覆盖旧 Butterfly 样式
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --paper: #fbf9f5;
  --paper-2: #f4f0e8;
  --card: #ffffff;
  --ink: #1b1a17;
  --ink-2: #56534c;
  --ink-3: #8f8b81;
  --line: #e6e0d3;
  --line-2: #d5cdbc;
  --sea: #2c6e63;
  --sea-soft: #e4efec;
  --rust: #b2542e;
  --shadow-sm: 0 1px 2px rgba(28, 26, 22, .05);
  --shadow: 0 14px 40px -18px rgba(28, 26, 22, .22);
  --shadow-lg: 0 30px 70px -30px rgba(28, 26, 22, .3);
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --f-serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", "SourceHanSerifSC", "SimSun", Georgia, serif;
  --f-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --w: 1200px;
  --nav-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

html[data-theme="dark"] {
  --paper: #121417;
  --paper-2: #171a1e;
  --card: #1a1d21;
  --ink: #eae7e0;
  --ink-2: #aaa69d;
  --ink-3: #77736b;
  --line: #2a2e34;
  --line-2: #3a3f46;
  --sea: #6fbfb2;
  --sea-soft: #1d2b2a;
  --rust: #d98a63;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 16px 44px -20px rgba(0, 0, 0, .7);
  --shadow-lg: 0 34px 80px -34px rgba(0, 0, 0, .8);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}

body.ts-body {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh;
  background: var(--paper) !important;
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .35s ease, color .35s ease;
}

body.ts-body::before,
body.ts-body::after,
body.ts-body #web_bg,
body.ts-body #universe { display: none !important; }

.ts-body ::selection { background: var(--sea); color: #fff; }

.ts-body a { color: inherit; text-decoration: none; transition: color .22s var(--ease); }
.ts-body a:hover { color: var(--sea); }
.ts-body img { max-width: 100%; height: auto; border: 0; }

.ts-body button {
  font-family: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

.ts-body :focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 滚动条 */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 2px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

/* ---------- 3. 阅读进度条 ---------- */
.ts-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  z-index: 999;
  pointer-events: none;
  background: transparent;
}
.ts-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--sea), var(--rust));
  transition: width .1s linear;
}

/* ---------- 4. 顶部导航 ---------- */
.ts-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  background: rgba(251, 249, 245, .78);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), height .3s var(--ease);
}
html[data-theme="dark"] .ts-nav { background: rgba(18, 20, 23, .78); }

.ts-nav.is-solid {
  border-bottom-color: var(--line);
  background: rgba(251, 249, 245, .94);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 1px 24px rgba(0, 0, 0, .05);
}
html[data-theme="dark"] .ts-nav.is-solid { background: rgba(18, 20, 23, .94); }

/* 首页未滚动：透明 + 白字 */
body.is-home .ts-nav:not(.is-solid) {
  background: linear-gradient(180deg, rgba(0, 0, 0, .58) 0%, rgba(0, 0, 0, .22) 70%, transparent 100%);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.is-home .ts-nav:not(.is-solid) .ts-brand,
body.is-home .ts-nav:not(.is-solid) .ts-nav__menu a,
body.is-home .ts-nav:not(.is-solid) .ts-icon-btn { color: #fff; }
body.is-home .ts-nav:not(.is-solid) .ts-brand__mark { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .4); color: #fff; }

.ts-nav__inner {
  max-width: var(--w);
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.ts-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-family: var(--f-serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink);
}
.ts-brand__mark {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--card);
  font-family: var(--f-serif);
  font-size: 15px;
  color: var(--sea);
  transition: all .3s var(--ease);
}
.ts-brand:hover .ts-brand__mark { background: var(--sea); color: #fff; border-color: var(--sea); }
.ts-brand__text { white-space: nowrap; }

.ts-nav__menu {
  flex: 1 1 auto;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 100%;
  min-width: 0;
}

/* 覆盖旧导航 */
.ts-nav__menu .menus_items,
.ts-nav__menu > .menus_item,
.ts-nav__menu .menus_item {
  display: inline-flex !important;
  align-items: center;
  position: relative;
  height: 100%;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.ts-nav__menu .menus_items { gap: 2px; }

.ts-nav__menu .site-page {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 13px !important;
  border-radius: 999px;
  font-family: var(--f-sans);
  font-size: 14.5px !important;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--ink-2) !important;
  white-space: nowrap;
  position: relative;
  transition: color .22s var(--ease), background .22s var(--ease);
}
body.is-home .ts-nav:not(.is-solid) .ts-nav__menu .site-page { color: rgba(255, 255, 255, .92) !important; }

.ts-nav__menu .site-page:hover,
.ts-nav__menu .site-page.active {
  color: var(--sea) !important;
  background: var(--sea-soft);
}
body.is-home .ts-nav:not(.is-solid) .ts-nav__menu .site-page:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, .16);
}

.ts-nav__menu .site-page .menu_icon {
  display: none !important;
}
.ts-nav__menu .menus_item_child .menu_icon {
  display: none !important;
}
.ts-nav__menu .site-page .fa-chevron-down {
  font-size: 9px;
  opacity: .5;
  margin-left: 1px;
  transition: transform .25s var(--ease);
}
.ts-nav__menu .menus_item:hover > .site-page .fa-chevron-down { transform: rotate(180deg); }

/* 下拉 */
.ts-nav__menu .menus_item_child {
  position: absolute !important;
  top: calc(100% - 10px) !important;
  left: 50% !important;
  transform: translate(-50%, 8px) !important;
  min-width: 168px !important;
  margin: 0 !important;
  padding: 7px !important;
  list-style: none !important;
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r) !important;
  box-shadow: var(--shadow) !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: block !important;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  z-index: 20;
}
.ts-nav__menu .menus_item:hover > .menus_item_child,
.ts-nav__menu .menus_item.open > .menus_item_child {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0) !important;
}
.ts-nav__menu .menus_item_child li { list-style: none; margin: 0; padding: 0; }
.ts-nav__menu .menus_item_child .child {
  display: flex !important;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 36px;
  padding: 0 12px !important;
  border-radius: 9px;
  font-size: 14px !important;
  color: var(--ink-2) !important;
  white-space: nowrap;
}
.ts-nav__menu .menus_item_child .child:hover {
  background: var(--paper-2);
  color: var(--sea) !important;
}
.ts-nav__menu .menus_item_child .menu_icon { width: 14px; height: 14px; fill: currentColor; opacity: .7; }

.ts-nav__tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.ts-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: 15px;
  color: var(--ink-2);
  transition: background .22s var(--ease), color .22s var(--ease), transform .22s var(--ease);
}
.ts-icon-btn:hover { background: var(--paper-2); color: var(--sea); transform: translateY(-1px); }
.ts-only-mobile { display: none !important; }

/* ---------- 5. 移动抽屉 ---------- */
.ts-mask {
  position: fixed;
  inset: 0;
  background: rgba(16, 15, 13, .45);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: all .3s var(--ease);
  z-index: 940;
}
.ts-mask.on { opacity: 1; visibility: visible; }

.ts-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(86vw, 340px);
  height: 100%;
  background: var(--card);
  z-index: 950;
  transform: translateX(105%);
  transition: transform .36s var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px -30px rgba(0, 0, 0, .4);
}
.ts-drawer.on { transform: translateX(0); }
.ts-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-serif);
  font-size: 17px;
  font-weight: 700;
}
.ts-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px 40px;
}
.ts-drawer__body .menus_item { display: block !important; margin: 0 0 2px !important; padding: 0 !important; float: none !important; position: relative; }
.ts-drawer__body .site-page {
  display: flex !important;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 12px !important;
  border-radius: 10px;
  font-size: 15px !important;
  color: var(--ink) !important;
}
.ts-drawer__body .site-page:hover { background: var(--paper-2); }
.ts-drawer__body .menus_item_child {
  position: static !important;
  display: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
  box-shadow: none !important;
  border: 0 !important;
  background: transparent !important;
  padding: 2px 0 6px 26px !important;
  min-width: 0 !important;
}
.ts-drawer__body .menus_item.open > .menus_item_child { display: block !important; }
.ts-drawer__body .menus_item_child .child {
  height: 38px;
  font-size: 14px !important;
  color: var(--ink-2) !important;
}
.ts-drawer__body .site-page .fa-chevron-down { margin-left: auto; transition: transform .25s; }
.ts-drawer__body .menus_item.open > .site-page .fa-chevron-down { transform: rotate(180deg); }

/* ---------- 6. 搜索弹窗 ---------- */
.ts-search {
  position: fixed;
  inset: 0;
  z-index: 960;
  display: grid;
  place-items: start center;
  padding-top: 16vh;
  background: rgba(20, 19, 17, .42);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: all .26s var(--ease);
}
.ts-search.on { opacity: 1; visibility: visible; }
.ts-search__panel {
  width: min(92vw, 560px);
  transform: translateY(-14px) scale(.98);
  transition: transform .3s var(--ease);
}
.ts-search.on .ts-search__panel { transform: none; }
.ts-search__box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  height: 58px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}
.ts-search__box i { color: var(--ink-3); font-size: 15px; }
.ts-search__box input {
  flex: 1;
  border: 0;
  outline: 0;
  background: none;
  font-size: 16px;
  color: var(--ink);
  font-family: var(--f-sans);
}
.ts-search__box kbd {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 6px;
}
.ts-search__hint {
  margin-top: 12px;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .8);
  letter-spacing: .04em;
}

/* ---------- 7. 主容器 ---------- */
.ts-main {
  display: block;
  min-height: 60vh;
  padding-top: var(--nav-h);
}
body.is-home .ts-main { padding-top: 0; }

.ts-wrap {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- 8. 首页 Hero ---------- */
.ts-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0e1c26;
}
.ts-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  animation: ts-hero-in 1.6s var(--ease) both;
}
@keyframes ts-hero-in {
  from { transform: scale(1.12); opacity: 0; }
  to { transform: scale(1.04); opacity: 1; }
}
.ts-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 20, 30, .46) 0%, rgba(8, 20, 30, .1) 34%, rgba(8, 20, 30, .52) 78%, rgba(8, 20, 30, .86) 100%);
  pointer-events: none;
}

.ts-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 28px 8vh;
}

.ts-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  font-size: 11.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}
.ts-hero__eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: rgba(255, 255, 255, .45);
}

.ts-hero__title {
  margin: 0;
  font-family: var(--f-serif);
  font-size: clamp(42px, 7vw, 92px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: .02em;
  color: #fff;
  text-shadow: 0 8px 40px rgba(0, 0, 0, .32);
}
.ts-hero__sub {
  margin: 22px 0 0;
  max-width: 620px;
  font-family: var(--f-serif);
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.9;
  color: rgba(255, 255, 255, .84);
  letter-spacing: .03em;
  min-height: 2.6em;
}
.ts-hero__sub .cursor {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 3px;
  background: rgba(255, 255, 255, .85);
  vertical-align: -2px;
  animation: ts-blink 1s steps(1) infinite;
}
@keyframes ts-blink { 50% { opacity: 0; } }

.ts-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .22);
  font-size: 13px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .72);
}
.ts-hero__meta b {
  font-family: var(--f-serif);
  font-size: 21px;
  font-weight: 700;
  color: #fff;
  margin-right: 0;
  letter-spacing: 0;
}
.ts-hero__meta span { display: inline-flex; align-items: baseline; gap: 2px; }

.ts-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  color: rgba(255, 255, 255, .8);
  font-size: 13px;
  animation: ts-float 2.6s ease-in-out infinite;
}
@keyframes ts-float {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 7px); }
}

/* ---------- 9. 首页刊首语 ---------- */
.ts-preface {
  max-width: var(--w);
  margin: 0 auto;
  padding: 92px 28px 18px;
  text-align: center;
}
.ts-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ts-kicker::before,
.ts-kicker::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--line-2);
}
.ts-preface__text {
  margin: 26px auto 0;
  max-width: 760px;
  font-family: var(--f-serif);
  font-size: clamp(17px, 1.9vw, 22px);
  line-height: 2;
  letter-spacing: .04em;
  color: var(--ink-2);
}

/* ---------- 10. 筛选胶囊 ---------- */
.ts-filter {
  max-width: var(--w);
  margin: 46px auto 0;
  padding: 0 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.ts-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: all .22s var(--ease);
}
.ts-chip:hover { border-color: var(--line-2); color: var(--ink); }
.ts-chip.on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
html[data-theme="dark"] .ts-chip.on { background: var(--ink); color: #14161a; }
.ts-chip em {
  font-style: normal;
  font-size: 11px;
  opacity: .55;
}

/* ---------- 11. 精选大卡 ---------- */
.ts-featured {
  max-width: var(--w);
  margin: 42px auto 0;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.ts-fcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
  will-change: transform;
}
.ts-fcard:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--line-2);
}
.ts-fcard__cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-2);
}
.ts-fcard__cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.ts-fcard:hover .ts-fcard__cover img { transform: scale(1.06); }
.ts-fcard__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.ts-fcard__cat {
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sea);
  margin-bottom: 10px;
}
.ts-fcard__title {
  margin: 0 0 10px;
  font-family: var(--f-serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .01em;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ts-fcard__desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.ts-fcard__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: .03em;
}
.ts-pin {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--rust);
  color: #fff;
  font-size: 10.5px;
  letter-spacing: .08em;
}

/* ---------- 12. 编辑式文章列表 ---------- */
.ts-section-head {
  max-width: var(--w);
  margin: 84px auto 0;
  padding: 0 28px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.ts-section-head__num {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--ink-3);
}
.ts-section-head__title {
  margin: 0;
  font-family: var(--f-serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .06em;
}
.ts-section-head__line {
  flex: 1;
  height: 1px;
  background: var(--line);
  margin-bottom: 6px;
}
.ts-section-head__more {
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: .04em;
  white-space: nowrap;
}
.ts-section-head__more:hover { color: var(--sea); }

.ts-list {
  max-width: var(--w);
  margin: 14px auto 0;
  padding: 0 28px;
  list-style: none;
}
.ts-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: padding .3s var(--ease);
}
.ts-item:hover { padding-left: 6px; }
.ts-item__no {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-3);
  flex: 0 0 30px;
  letter-spacing: .04em;
}
.ts-item__thumb {
  width: 62px; height: 62px;
  flex: 0 0 62px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-2);
}
.ts-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ts-item__main { flex: 1; min-width: 0; }
.ts-item__title {
  display: block;
  font-family: var(--f-serif);
  font-size: 18.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ts-item:hover .ts-item__title { color: var(--sea); }
.ts-item__dots {
  flex: 1;
  min-width: 20px;
  height: 1px;
  margin: 0 4px;
  border-bottom: 1px dashed var(--line-2);
  align-self: center;
  transform: translateY(6px);
}
.ts-item__date {
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: .04em;
  flex: 0 0 auto;
}
.ts-item__tag {
  flex: 0 0 auto;
  font-size: 11.5px;
  color: var(--sea);
  background: var(--sea-soft);
  padding: 2px 9px;
  border-radius: 999px;
}

/* ---------- 13. 首页关于条 ---------- */
.ts-about {
  max-width: var(--w);
  margin: 96px auto 0;
  padding: 0 28px 100px;
}
.ts-about__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 26px;
}
.ts-about__card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
}
.ts-about__who { display: flex; align-items: center; gap: 16px; }
.ts-about__avatar {
  width: 58px; height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}
.ts-about__name {
  font-family: var(--f-serif);
  font-size: 19px;
  font-weight: 700;
}
.ts-about__bio { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); }
.ts-about__text {
  margin: 18px 0 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-2);
}
.ts-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.ts-stats div {
  background: var(--card);
  padding: 16px 8px;
  text-align: center;
}
.ts-stats b {
  display: block;
  font-family: var(--f-serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}
.ts-stats span { font-size: 11.5px; color: var(--ink-3); letter-spacing: .1em; }
.ts-about__h {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.ts-about__links { display: grid; gap: 10px; }
.ts-about__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--ink-2);
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}
.ts-about__links a:last-child { border-bottom: 0; }
.ts-about__links a:hover { color: var(--sea); }
.ts-about__links a i { font-size: 11px; opacity: .5; }

/* ---------- 14. 页面标题区 ---------- */
.ts-pagehead {
  padding: 76px 0 40px;
  border-bottom: 1px solid var(--line);
}
.ts-pagehead__kicker {
  font-size: 11.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.ts-pagehead__title {
  margin: 0;
  font-family: var(--f-serif);
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: .02em;
  color: var(--ink);
}
.ts-pagehead__sub {
  margin: 18px 0 0;
  max-width: 720px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-2);
}
.ts-pagehead__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 22px;
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: .04em;
}
.ts-pagehead__meta i { margin-right: 5px; opacity: .6; }

/* ---------- 15. 文章页 ---------- */
.ts-post {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 28px;
}
.ts-post__head { max-width: 860px; padding: 68px 0 0; }
.ts-post__crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: .04em;
  margin-bottom: 22px;
}
.ts-post__crumb a:hover { color: var(--sea); }
.ts-post__crumb i { font-size: 9px; opacity: .5; }
.ts-post__title {
  margin: 0;
  font-family: var(--f-serif);
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .015em;
  color: var(--ink);
}
.ts-post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin: 26px 0 0;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: .04em;
}
.ts-post__meta i { margin-right: 6px; opacity: .55; }
.ts-post__meta .post-meta-categories { color: inherit !important; font-size: inherit !important; }
.ts-post__meta .post-meta-icon { margin-right: 5px; opacity: .55; }
.ts-post__meta b { font-weight: 600; color: var(--ink-2); }

.ts-post__layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding: 46px 0 20px;
}

/* 目录 */
.ts-toc {
  position: sticky;
  top: calc(var(--nav-h) + 30px);
  max-height: calc(100vh - var(--nav-h) - 60px);
  overflow-y: auto;
  padding-right: 6px;
  font-size: 13px;
}
.ts-toc__h {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.ts-toc__list { list-style: none; margin: 0; padding: 0; }
.ts-toc__list li { margin: 0; }
.ts-toc__list a {
  display: block;
  padding: 6px 0 6px 12px;
  border-left: 1px solid var(--line);
  color: var(--ink-3);
  line-height: 1.55;
  transition: all .22s var(--ease);
}
.ts-toc__list a:hover { color: var(--ink); border-left-color: var(--line-2); }
.ts-toc__list a.on {
  color: var(--sea);
  border-left-color: var(--sea);
  font-weight: 600;
}
.ts-toc__list .lvl-3 a { padding-left: 26px; font-size: 12.5px; }
.ts-toc__empty { color: var(--ink-3); font-size: 12.5px; }

/* 正文 */
.ts-prose {
  max-width: 760px;
  font-size: 16.5px;
  line-height: 1.95;
  color: var(--ink);
  letter-spacing: .012em;
  word-break: break-word;
}
.ts-prose > *:first-child { margin-top: 0; }
.ts-prose p { margin: 0 0 1.35em; }
.ts-prose h1, .ts-prose h2, .ts-prose h3, .ts-prose h4, .ts-prose h5, .ts-prose h6 {
  font-family: var(--f-serif);
  font-weight: 700;
  line-height: 1.42;
  color: var(--ink);
  margin: 2.1em 0 .72em;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.ts-prose h1 { font-size: 1.6em; }
/* 正文自带的 h1 与页面大标题重复，隐藏第一个 */
.ts-prose > h1:first-child,
.ts-prose > h1:first-child + * { }
.ts-prose > h1:first-child {
  font-size: 1.24em;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: .01em;
  margin: 0 0 .9em;
  padding: 0;
  border: 0;
}
.ts-prose .headerlink { display: none !important; }
.ts-prose .table-container { overflow-x: auto; margin: 1.6em 0; }
.ts-prose h2 {
  font-size: 1.52em;
  padding-bottom: .34em;
  border-bottom: 1px solid var(--line);
}
.ts-prose h2::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--sea);
  vertical-align: middle;
  margin-right: 12px;
  transform: translateY(-2px);
}
.ts-prose h3 { font-size: 1.24em; }
.ts-prose h4 { font-size: 1.08em; color: var(--ink-2); }
.ts-prose a {
  color: var(--sea);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--sea) 35%, transparent);
  transition: border-color .22s;
}
.ts-prose a:hover { border-bottom-color: var(--sea); }
.ts-prose a:visited { color: var(--sea); }
/* 正文自带目录块：左侧已有粘性目录，这里收敛视觉 */
.ts-prose p:empty { display: none; }
.ts-prose code {
  font-family: var(--f-mono);
  font-size: .88em;
  background: var(--sea-soft);
  color: var(--sea);
  padding: .14em .38em;
  border-radius: 4px;
}
.ts-prose strong { font-weight: 700; color: var(--ink); }
.ts-prose em { font-style: italic; }
.ts-prose ul, .ts-prose ol { margin: 0 0 1.35em; padding-left: 1.4em; }
.ts-prose li { margin: .4em 0; }
.ts-prose li::marker { color: var(--sea); }
.ts-prose blockquote {
  margin: 1.6em 0;
  padding: 2px 0 2px 22px;
  border-left: 2px solid var(--sea);
  background: transparent;
  color: var(--ink-2);
  font-family: var(--f-serif);
  font-size: 1.02em;
}
.ts-prose blockquote p:last-child { margin-bottom: 0; }
.ts-prose img {
  border-radius: var(--r);
  margin: 1.6em auto;
  display: block;
  box-shadow: var(--shadow-sm);
}
.ts-prose hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 2.6em 0;
}
.ts-prose code {
  font-family: var(--f-mono);
  font-size: .88em;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--paper-2);
  color: var(--rust);
  border: 1px solid var(--line);
}
.ts-prose pre {
  position: relative;
  margin: 1.6em 0;
  padding: 18px 20px;
  border-radius: var(--r);
  background: #1b1e24 !important;
  border: 1px solid #2b3038;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.75;
}
.ts-prose pre code {
  background: none;
  border: 0;
  padding: 0;
  color: #d6dae1;
  font-size: inherit;
}
.ts-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: .93em;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.ts-prose th, .ts-prose td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.ts-prose th { background: var(--paper-2); font-weight: 600; }
.ts-prose tr:last-child td { border-bottom: 0; }

/* 代码复制按钮 */
.ts-copy-code {
  position: absolute;
  top: 10px; right: 10px;
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .72);
  font-size: 11.5px;
  letter-spacing: .04em;
  opacity: 0;
  transition: all .22s;
}
.ts-prose pre:hover .ts-copy-code { opacity: 1; }
.ts-copy-code:hover { background: rgba(255, 255, 255, .2); color: #fff; }

/* 正文尾部 */
.ts-post__foot { max-width: 760px; margin-top: 54px; }
.ts-post__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.ts-post__tags a {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-2);
  transition: all .22s;
}
.ts-post__tags a:hover { border-color: var(--sea); color: var(--sea); }

.ts-copyright {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper-2);
  font-size: 12.5px;
  line-height: 2;
  color: var(--ink-3);
}
.ts-copyright b { color: var(--ink-2); font-weight: 600; }
.ts-copyright a { color: var(--sea); }

.ts-pn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 26px;
}
.ts-pn a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: all .28s var(--ease);
}
.ts-pn a:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.ts-pn span { font-size: 11.5px; letter-spacing: .18em; color: var(--ink-3); text-transform: uppercase; }
.ts-pn strong {
  font-family: var(--f-serif);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
}
.ts-pn .next { text-align: right; }

/* 相关推荐 */
.ts-related { max-width: var(--w); margin: 64px auto 0; padding: 0 28px; }
.ts-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}
.ts-related__item {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--card);
  transition: all .3s var(--ease);
}
.ts-related__item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ts-related__cover { aspect-ratio: 16/9; overflow: hidden; background: var(--paper-2); }
.ts-related__cover img { width: 100%; height: 100%; object-fit: cover; }
.ts-related__body { padding: 14px 16px 16px; }
.ts-related__body h4 {
  margin: 0;
  font-family: var(--f-serif);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ts-related__body time { font-size: 11.5px; color: var(--ink-3); letter-spacing: .04em; }

/* 评论 */
.ts-comments { max-width: 760px; margin: 64px 0 0; }
.ts-comments__h {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-serif);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 22px;
}
.ts-comments__h::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- 16. 归档 ---------- */
.ts-archive { max-width: var(--w); margin: 0 auto; padding: 0 28px 90px; }
.ts-year {
  margin-top: 52px;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 30px;
}
.ts-year__label {
  font-family: var(--f-serif);
  font-size: 34px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: .02em;
  line-height: 1;
  position: sticky;
  top: calc(var(--nav-h) + 30px);
  align-self: start;
}
.ts-year__items { border-left: 1px solid var(--line); padding-left: 26px; }
.ts-year__item {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 0;
}
.ts-year__item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 20px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--line-2);
  transition: all .25s;
}
.ts-year__item:hover::before { background: var(--sea); border-color: var(--sea); }
.ts-year__date {
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--ink-3);
  flex: 0 0 52px;
}
.ts-year__title { font-size: 15.5px; color: var(--ink); flex: 1; min-width: 0; }
.ts-year__title:hover { color: var(--sea); }

/* ---------- 17. 标签云 ---------- */
.ts-tags-cloud {
  max-width: var(--w);
  margin: 0 auto;
  padding: 46px 28px 100px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.ts-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  transition: all .24s var(--ease);
}
.ts-tag:hover { border-color: var(--sea); color: var(--sea); background: var(--sea-soft); }
.ts-tag i { font-style: normal; font-size: 11px; opacity: .5; }

/* ---------- 18. 分类 ---------- */
.ts-cats {
  max-width: var(--w);
  margin: 0 auto;
  padding: 46px 28px 100px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.ts-cat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  transition: all .28s var(--ease);
}
.ts-cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.ts-cat-card__name { font-family: var(--f-serif); font-size: 18px; font-weight: 700; }
.ts-cat-card__desc { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-3); }
.ts-cat-card__num {
  font-family: var(--f-serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--line-2);
  line-height: 1;
}

/* ---------- 19. 搜索 / 404 ---------- */
.ts-searchpage { max-width: var(--w); margin: 0 auto; padding: 46px 28px 100px; }
.ts-empty {
  padding: 80px 0;
  text-align: center;
  color: var(--ink-3);
}
.ts-empty b {
  display: block;
  font-family: var(--f-serif);
  font-size: 72px;
  font-weight: 700;
  color: var(--line-2);
  line-height: 1;
  margin-bottom: 18px;
}

/* ---------- 20. 普通页面（影视/音乐/相册等）---------- */
.ts-page { max-width: var(--w); margin: 0 auto; padding: 0 28px 90px; }
.ts-page__body {
  padding-top: 34px;
}
.ts-page__body > *:first-child { margin-top: 0; }

/* ---------- 21. 页脚 ---------- */
.ts-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}
.ts-footer__inner {
  max-width: var(--w);
  margin: 0 auto;
  padding: 62px 28px 40px;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 50px;
}
.ts-footer__brand { display: flex; align-items: flex-start; gap: 15px; }
.ts-footer__logo {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  font-family: var(--f-serif);
  font-size: 19px;
  color: var(--sea);
  background: var(--card);
  flex: 0 0 auto;
}
.ts-footer__name { font-family: var(--f-serif); font-size: 18px; font-weight: 700; letter-spacing: .04em; }
.ts-footer__slogan { margin-top: 6px; font-size: 12.5px; color: var(--ink-3); line-height: 1.7; }

.ts-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.ts-footer__h {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.ts-footer__col a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13.5px;
  color: var(--ink-2);
}
.ts-footer__col a:hover { color: var(--sea); }
.ts-footer__col a span { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3); }

.ts-footer__bottom {
  max-width: var(--w);
  margin: 0 auto;
  padding: 20px 28px 34px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: .03em;
}
.ts-footer__bottom a { color: var(--ink-3); }
.ts-footer__bottom a:hover { color: var(--sea); }
.ts-footer__top { margin-left: auto; }

/* ---------- 22. 右侧工具条 ---------- */
.ts-rightside {
  position: fixed !important;
  right: 18px;
  bottom: 34px;
  z-index: 800;
  display: flex !important;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .3s var(--ease);
}
.ts-rightside.on { opacity: 1; visibility: visible; transform: none; }
.ts-rightside > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ts-rightside button,
.ts-rightside a {
  display: grid !important;
  place-items: center;
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  color: var(--ink-2) !important;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  transition: all .22s var(--ease);
  position: static !important;
  margin: 0 !important;
  float: none !important;
}
.ts-rightside button:hover,
.ts-rightside a:hover {
  color: var(--sea) !important;
  border-color: var(--sea) !important;
  transform: translateY(-2px);
}
#rightside-config-hide { display: none !important; }
#rightside-config-hide.show { display: flex !important; }
.ts-rightside .scroll-percent { display: none; }
.ts-rightside #percent {
  position: static !important;
  font-family: var(--f-mono);
  font-size: 10px;
  line-height: 1;
  display: block;
  margin-top: 2px;
}
.ts-rightside #go-up { display: flex !important; flex-direction: column; gap: 0; }

/* ---------- 23. 入场动效 ---------- */
.ts-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.ts-reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .ts-reveal { opacity: 1; transform: none; transition: none; }
  .ts-hero__bg { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 24. 响应式 ---------- */
@media (max-width: 1080px) {
  .ts-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ts-about__grid { grid-template-columns: 1fr 1fr; }
  .ts-about__card:first-child { grid-column: 1 / -1; }
  .ts-post__layout { grid-template-columns: 1fr; gap: 0; }
  .ts-toc { display: none; }
  .ts-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --nav-h: 62px; }
  .ts-nav__inner { padding: 0 16px; gap: 10px; }
  .ts-nav__menu { display: none !important; }
  .ts-only-mobile { display: inline-grid !important; }
  .ts-brand { gap: 0; }
  .ts-brand__text { display: none; }
  .ts-brand__mark { width: 34px; height: 34px; }
  .ts-nav__tools { margin-left: auto; gap: 2px; }
  .ts-preface__text {
    font-size: 16px;
    line-height: 1.95;
    text-wrap: balance;
    text-align: left;
  }
  .ts-preface { padding-top: 64px; }
  .ts-fcard { border-radius: 16px; }
  .ts-about__card { border-radius: 16px; padding: 22px; }
  .ts-wrap, .ts-preface, .ts-filter, .ts-featured, .ts-list,
  .ts-section-head, .ts-about, .ts-post, .ts-archive, .ts-page,
  .ts-tags-cloud, .ts-cats, .ts-searchpage, .ts-related { padding-left: 18px; padding-right: 18px; }
  .ts-footer__inner { grid-template-columns: 1fr; gap: 34px; padding: 44px 18px 30px; }
  .ts-footer__bottom { padding: 18px 18px 28px; }
  .ts-hero__inner { padding: 0 18px 10vh; }
  .ts-featured { grid-template-columns: 1fr; gap: 18px; }
  .ts-about__grid { grid-template-columns: 1fr; }
  .ts-year { grid-template-columns: 1fr; gap: 12px; }
  .ts-year__label { position: static; font-size: 26px; }
  .ts-year__items { padding-left: 18px; }
  .ts-year__item::before { left: -22px; }
  .ts-pn { grid-template-columns: 1fr; }
  .ts-related__grid { grid-template-columns: 1fr; }
  .ts-post__head { padding-top: 40px; }
  .ts-post__title { font-size: 26px; line-height: 1.36; }
  .ts-post__meta { font-size: 12px; gap: 8px 16px; }
  .ts-prose { font-size: 16px; line-height: 1.9; }
  .ts-prose h2 { font-size: 1.35em; }
  .ts-prose h3 { font-size: 1.16em; }
  .ts-prose pre { padding: 14px 14px; font-size: 12.5px; }
  .ts-item__thumb { width: 50px; height: 50px; flex-basis: 50px; }
  .ts-item__title { font-size: 16px; }
  .ts-item__tag { display: none; }
  .ts-rightside { right: 10px; bottom: 22px; }
  .ts-rightside button, .ts-rightside a { width: 38px !important; height: 38px !important; }
  .ts-progress { height: 3px; }
}

@media (max-width: 480px) {
  .ts-hero__title { font-size: 38px; }
  .ts-hero__meta { font-size: 12px; gap: 8px 16px; margin-top: 30px; }
  .ts-hero__meta b { font-size: 18px; }
  .ts-preface { padding-top: 60px; }
  .ts-section-head { margin-top: 56px; }
  .ts-fcard__title { font-size: 18px; }
  .ts-item { gap: 12px; padding: 16px 0; }
  .ts-item__no { flex-basis: 22px; font-size: 11px; }
  .ts-item__date { font-size: 11px; }
  .ts-footer__cols { grid-template-columns: 1fr 1fr; }
}
