/* =============================================
   GaoKun.net — 个人网站 (ST风格)
   日出日落自适应 · 日间/夜间双主题
   ============================================= */

/* === 夜间主题（默认） === */
:root {
  --bg: #0d1117;
  --bg-section: #111820;
  --bg-card: #161b22;
  --bg-hover: #1c2333;
  --text: #e6edf3;
  --text-dim: #8b949e;
  --text-muted: #6e7681;
  --accent: #58a6ff;
  --accent2: #3fb950;
  --border: #21262d;
  --radius: 12px;
  --gap: 1.5rem;
  /* 语义化辅助变量 */
  --nav-bg: rgba(13,17,23,.6);
  --nav-border: rgba(255,255,255,.06);
  --nav-link: rgba(255,255,255,.65);
  --nav-link-hover: #fff;
  --nav-link-bg: rgba(255,255,255,.1);
  --hero-overlay-top: rgba(13,17,23,.2);
  --hero-overlay-mid: rgba(13,17,23,.6);
  --hero-overlay-bottom: transparent;
  --glass-bg: rgba(255,255,255,.06);
  --glass-border: rgba(255,255,255,.12);
  --glass-hover-bg: rgba(255,255,255,.1);
  --glass-hover-border: rgba(255,255,255,.25);
  --text-on-hero: rgba(255,255,255,.55);
  --text-on-hero-strong: rgba(255,255,255,.95);
  --text-on-hero-dim: rgba(255,255,255,.4);
  --badge-bg: rgba(255,255,255,.08);
  --badge-border: rgba(255,255,255,.15);
  --badge-text: rgba(255,255,255,.8);
  --menu-bg: rgba(13,17,23,.95);
  --code-bg: #0d1117;
  --shadow-card: rgba(0,0,0,.25);
  --shadow-light: rgba(0,0,0,.15);
  --tag-active-text: #000;
  --section-divider: rgba(255,255,255,.05);
  --mini-tag-bg: rgba(255,255,255,.05);
  --input-bg: #21262d;
  --input-border: #30363d;
  --input-text: #e6edf3;
}

/* === 日间主题（已废弃） ===
:root[data-theme="day"] {
  --bg: #f7f8fa;
  --bg-section: #eef0f3;
  --bg-card: #ffffff;
  --bg-hover: #f0f2f5;
  --text: #1a1a2e;
  --text-dim: #555a6e;
  --text-muted: #8a8fa3;
  --accent: #2563eb;
  --accent2: #16a34a;
  --border: #d6dbe3;
  --nav-bg: rgba(255,255,255,.7);
  --nav-border: rgba(0,0,0,.08);
  --nav-link: rgba(30,30,46,.7);
  --nav-link-hover: #1a1a2e;
  --nav-link-bg: rgba(0,0,0,.06);
  --hero-overlay-top: rgba(255,255,255,.15);
  --hero-overlay-mid: rgba(255,255,255,.35);
  --hero-overlay-bottom: transparent;
  --glass-bg: rgba(0,0,0,.04);
  --glass-border: rgba(0,0,0,.1);
  --glass-hover-bg: rgba(0,0,0,.08);
  --glass-hover-border: rgba(0,0,0,.2);
  --text-on-hero: rgba(255,255,255,.7);
  --text-on-hero-strong: rgba(255,255,255,.98);
  --text-on-hero-dim: rgba(255,255,255,.5);
  --badge-bg: rgba(255,255,255,.15);
  --badge-border: rgba(255,255,255,.3);
  --badge-text: rgba(255,255,255,.9);
  --menu-bg: rgba(255,255,255,.95);
  --code-bg: #f0f2f5;
  --shadow-card: rgba(0,0,0,.08);
  --shadow-light: rgba(0,0,0,.06);
  --tag-active-text: #fff;
  --section-divider: rgba(0,0,0,.06);
  --mini-tag-bg: rgba(0,0,0,.04);
  --input-bg: #ffffff;
  --input-border: #d6dbe3;
  --input-text: #1a1a2e;
} */

/* === 主题切换平滑过渡 === */
body, nav, .hero-overlay, .card, .spec-item, .tl-body, .month-card,
.photo-wall-item, .tm-thumb, .social-post, .badge, .hero-clock,
.gk-msg, #gk-chat-panel, #gk-chat-header, #gk-chat-input-area,
#gk-chat-input, footer, .back-float, .tag-item, .mini-tag {
  transition: background-color .5s ease, border-color .5s ease, color .5s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #79c0ff; text-decoration: underline; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =============================================
   NAV — 透明悬浮导航栏
   ============================================= */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--nav-border);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

nav .logo {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  text-decoration: none;
}
nav .logo:hover { text-decoration: none; }
.logo-cn {
  font-family: "LXGW WenKai", "KaiTi", "楷体", serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .05em;
}
.logo-py {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: .5px;
}

.nav-links { display: flex; gap: .25rem; }

.nav-links a {
  color: var(--nav-link);
  padding: .4rem .85rem;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 500;
  transition: all .2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--nav-link-hover);
  background: var(--nav-link-bg);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* =============================================
   HERO — 全屏蓝天白云背景
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('/assets/images/bg-hero.jpg') center center / cover no-repeat;
  filter: brightness(.45) saturate(.85);
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--hero-overlay-top) 0%,
    var(--hero-overlay-mid) 50%,
    var(--hero-overlay-bottom) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 800px;
}

.hero-content .sub {
  font-size: clamp(1.6rem, 4.5vw, 2.8rem);
  color: var(--text-on-hero);
  font-weight: 400;
  letter-spacing: .2em;
  margin-bottom: 1.8rem;
  line-height: 1.4;
}

.hero-content .sub strong {
  color: var(--text-on-hero-strong);
  font-weight: 700;
  font-size: 1.1em;
  text-shadow: 0 0 30px rgba(88,166,255,.12);
}

.hero-content .badges {
  display: flex;
  justify-content: center;
  gap: .6rem;
  flex-wrap: wrap;
}

.badge {
  background: var(--badge-bg);
  backdrop-filter: blur(4px);
  border: 1px solid var(--badge-border);
  padding: .35rem 1rem;
  border-radius: 100px;
  font-size: .8rem;
  color: var(--badge-text);
}

/* =============================================
   HERO CLOCKS — 双时钟 (UTC + 北京时间)
   ============================================= */
.hero-clocks {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-clock {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1rem 2rem;
  text-align: center;
  min-width: 200px;
  transition: border-color .3s, background .3s;
}

.hero-clock:hover {
  border-color: var(--glass-hover-border);
  background: var(--glass-hover-bg);
}

.clock-label {
  font-size: .78rem;
  color: var(--text-on-hero);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: .3rem;
}

.clock-time {
  font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", "Consolas", monospace;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-on-hero-strong);
  letter-spacing: 2px;
  line-height: 1.2;
  text-shadow: 0 0 20px rgba(88,166,255,.3);
}

.clock-date {
  font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", "Consolas", monospace;
  font-size: .78rem;
  color: var(--text-on-hero-dim);
  margin-top: .15rem;
  letter-spacing: .5px;
}

/* GNSS 时钟 (GPS / 北斗) — 略紧凑 + 绿色辉光 */
.hero-clock-gnss {
  padding: .7rem 1.5rem;
  min-width: 180px;
}

.hero-clock-gnss .clock-time,
.clock-week {
  font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", "Consolas", monospace;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-on-hero-strong);
  letter-spacing: 1.5px;
  line-height: 1.2;
  text-shadow: 0 0 16px rgba(63,185,80,.35);
}

.clock-tow {
  font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", "Consolas", monospace;
  font-size: .82rem;
  color: var(--text-on-hero-dim);
  margin-top: .1rem;
  letter-spacing: .5px;
}

.clock-tow-sec {
  font-family: "JetBrains Mono", "Fira Code", "Cascadia Code", "Consolas", monospace;
  font-size: .72rem;
  color: var(--text-on-hero-dim);
  margin-top: .15rem;
  letter-spacing: .3px;
}

@media (max-width: 480px) {
  .hero-clocks {
    flex-direction: column;
    align-items: center;
    gap: .8rem;
  }
  .hero-clock {
    min-width: 180px;
    padding: .8rem 1.5rem;
  }
  .clock-time {
    font-size: 1.8rem;
  }
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--text-on-hero-dim);
  font-size: .75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* =============================================
   SECTION — 产品化展示区块
   ============================================= */
.section-block {
  padding: 5rem 0;
}

.section-block.alt {
  background: var(--bg-section);
}

.section-label {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5rem;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-desc {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 640px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* =============================================
   SPEC GRID — 像产品参数表
   ============================================= */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.spec-item {
  background: var(--bg-card);
  padding: 2rem 1.5rem;
  transition: background .2s;
}

.spec-item:hover {
  background: var(--bg-hover);
}

.spec-icon {
  font-size: 1.8rem;
  margin-bottom: .6rem;
}

.spec-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .3rem;
}

.spec-item p {
  font-size: .85rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* =============================================
   CARD GRID
   ============================================= */
.card-grid {
  display: grid;
  gap: var(--gap);
}

.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all .3s;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.card .date {
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: .3rem;
}

.card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.card p { font-size: .85rem; color: var(--text-dim); line-height: 1.5; }

/* =============================================
   TIMELINE
   ============================================= */
.timeline {
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
}

.tl-item {
  position: relative;
  margin-bottom: 1.5rem;
  padding-left: .5rem;
}

.tl-item::before {
  content: '';
  position: absolute;
  left: -1.35rem;
  top: .5rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent2);
  border: 2px solid var(--bg-section);
}

.tl-item .date {
  font-size: .78rem;
  color: var(--accent2);
  font-weight: 600;
}

.tl-item h4 { font-size: .95rem; }
.tl-item p { font-size: .82rem; color: var(--text-dim); }

/* =============================================
   POST CONTENT
   ============================================= */
.post-header { padding-top: 7rem; }
.post-header h1 { font-size: clamp(1.5rem,4vw,2rem); font-weight: 800; }

.post-meta {
  color: var(--text-dim);
  font-size: .85rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.post-content { font-size: 1rem; line-height: 1.8; }
.post-content p { margin-bottom: 1.2rem; }
.post-content h2 { font-size: 1.4rem; margin: 2rem 0 .8rem; }
.post-content h3 { font-size: 1.15rem; margin: 1.5rem 0 .6rem; }
.post-content pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  overflow-x: auto;
  font-size: .85rem;
  margin: 1rem 0;
}
.post-content code { font-family: "JetBrains Mono","Fira Code",monospace; font-size: .85rem; }
.post-content img { max-width: 100%; border-radius: 10px; margin: 1rem 0; }
.post-content blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
  color: var(--text-dim);
  margin: 1rem 0;
}

/* =============================================
   ABOUT
   ============================================= */
.about-page { padding-top: 6rem; }

.about-hero {
  text-align: center;
  padding: 3rem 0;
}

.about-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
}

.about-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--text-dim);
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}


}

/* =============================================
   照片墙 — 月份卡片
   ============================================= */
.month-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  padding: 0 0 2rem 0;
}

.month-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all .3s ease;
}

.month-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 30px var(--shadow-card);
}

.month-cover {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg);
}

.month-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.month-card:hover .month-cover img {
  transform: scale(1.05);
}

.month-info {
  padding: .9rem 1rem;
}

.month-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 .25rem 0;
  letter-spacing: .02em;
}

.month-count {
  font-size: .82rem;
  color: var(--text-dim);
}

/* =============================================
   照片墙 — 导航面包屑
   ============================================= */
.photo-nav {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem 0;
}

.nav-back {
  color: var(--accent);
  font-size: .9rem;
  text-decoration: none;
  transition: opacity .2s;
}

.nav-back:hover {
  opacity: .8;
  text-decoration: underline;
}

.nav-label {
  font-size: .85rem;
  color: var(--text-dim);
}

/* =============================================
   照片墙 — 照片缩略图网格
   ============================================= */
.photo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .75rem;
}

.photo-wall-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  transition: all .3s ease;
  aspect-ratio: 4/3;
}

.photo-wall-item:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 6px 20px var(--shadow-card);
}

.photo-wall-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.photo-wall-item:hover img {
  transform: scale(1.05);
}

.photo-wall-item.video-item {
  aspect-ratio: 16/9;
}

.photo-wall-item .video-badge {
  position: absolute;
  top: .4rem; right: .4rem;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: .68rem;
  padding: .15rem .45rem;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  line-height: 1.3;
}

/* Lightbox — 全尺寸大图 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img, .lightbox video {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 4px 40px rgba(0,0,0,.5);
}

.lightbox-close {
  position: absolute;
  top: 1.2rem; right: 1.5rem;
  color: rgba(255,255,255,.7);
  font-size: 1.8rem;
  cursor: pointer;
  background: none;
  border: none;
  transition: color .2s;
  z-index: 10;
}

.lightbox-close:hover { color: #fff; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.6);
  font-size: 2.2rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: .8rem;
  transition: color .2s;
  z-index: 10;
}

.lightbox-nav:hover { color: #fff; }

.lightbox-prev { left: .3rem; }
.lightbox-next { right: .3rem; }

.lightbox-counter {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.45);
  font-size: .8rem;
  letter-spacing: .03em;
}

/* 响应式 */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--menu-bg);
    border-bottom: 1px solid var(--border);
    padding: .5rem;
  }
  .menu-toggle { display: block; }
  .card-grid.two { grid-template-columns: 1fr; }
  .card-grid.three { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-avatar { margin: 0 auto; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-wall { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .spec-grid { grid-template-columns: 1fr; }
  .lightbox-nav { font-size: 1.8rem; padding: .5rem; }
}
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: .8rem;
}

/* =============================================
   RESPONSIVE — 768px 以上已在各自组件中定义
   合并去重，避免重复声明
   ============================================= */
/* 768px 媒体查询已在上方的 Lightbox 区域定义，此处不再重复 */

/* =============================================
   照片墙 v3 — 朋友圈时间轴 + 旋钮选择器
   ============================================= */
.photo-timeline {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding-bottom: 3rem;
}

/* — 左侧旋钮 — */
.dial-scroll {
  position: sticky;
  top: 5rem;
  width: 56px;
  flex-shrink: 0;
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: .5rem 0;
  border-right: 1px solid var(--border);
}
.dial-scroll::-webkit-scrollbar { display: none; }

.dial-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
}

.dial-dot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: .25rem .4rem;
  border-radius: 8px;
  transition: all .25s ease;
  user-select: none;
  min-width: 48px;
}
.dial-dot::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  opacity: .35;
  transition: all .25s ease;
  margin-bottom: 2px;
}
.dial-dot:hover::before {
  opacity: .7;
  transform: scale(1.3);
}
.dial-dot.active::before {
  width: 12px; height: 12px;
  background: var(--accent);
  opacity: 1;
  box-shadow: 0 0 8px var(--accent);
}

.dial-label {
  font-size: .62rem;
  color: var(--text-dim);
  white-space: nowrap;
  line-height: 1.2;
  transition: color .2s;
}
.dial-dot.active .dial-label {
  color: var(--accent);
  font-weight: 600;
}

.dial-count {
  font-size: .55rem;
  color: var(--text-dim);
  opacity: .5;
  line-height: 1;
}

/* — 右侧内容 — */
.dial-content {
  flex: 1;
  min-width: 0;
}

/* — 月份区块 — */
.tm-section {
  padding: .8rem 0;
  border-bottom: 1px solid var(--section-divider);
}
.tm-section:last-child { border-bottom: none; }

.tm-active { padding-top: 0; }

.tm-heading {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 .6rem 0;
  color: var(--text);
}

.tm-heading-sm {
  font-size: .92rem;
  font-weight: 500;
  margin: 0 0 .4rem 0;
  color: var(--text);
  opacity: .7;
}

.tm-count {
  font-weight: 400;
  font-size: .85rem;
  color: var(--text-dim);
}

/* — 缩略图网格 — */
.tm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: .5rem;
}

.tm-grid-sm {
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: .4rem;
}

.tm-grid-xs {
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: .35rem;
}

.tm-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all .3s ease;
}
.tm-thumb:hover {
  transform: scale(1.3);
  z-index: 10;
  border-color: var(--accent);
  box-shadow: 0 4px 20px var(--shadow-card);
}

.tm-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tm-vbadge {
  position: absolute;
  top: 3px; right: 3px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: .6rem;
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1.3;
}

/* 视频项 — 纯色背景+播放按钮 */
.tm-thumb-video {
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tm-video-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.tm-play-badge-lg {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  transition: all .25s ease;
  backdrop-filter: blur(4px);
}

.tm-thumb-video:hover .tm-play-badge-lg {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.2);
}

/* — 小字剩余月份 — */
.tm-rest {
  padding: .35rem 0;
}

.tm-heading-rest {
  font-size: .78rem;
  color: var(--text-dim);
  opacity: .5;
  cursor: default;
}

/* ---- 悬浮返回按钮 ---- */
.back-float {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 200;
  background: rgba(88,166,255,.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(88,166,255,.25);
  color: var(--accent);
  padding: .5rem 1rem;
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .25s ease;
  box-shadow: 0 2px 12px var(--shadow-card);
}
.back-float:hover {
  background: rgba(88,166,255,.25);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(88,166,255,.2);
  text-decoration: none;
}

/* Utilities */
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.text-dim { color: var(--text-dim); }
.text-center { text-align: center; }

/* =============================================
   学习笔记 — 时间轴风格
   ============================================= */
.tag-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.5rem;
}

.tag-item {
  font-size: .78rem;
  padding: .2rem .7rem;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  transition: all .2s;
  user-select: none;
}

.tag-item:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tag-item.active {
  background: var(--accent);
  color: var(--tag-active-text);
  border-color: var(--accent);
}

.notes-timeline {
  position: relative;
  padding-left: 0;
}

.tl-row {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 1.5rem;
}

.tl-dot {
  position: absolute;
  left: 0;
  top: .4rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  z-index: 2;
  border: 2px solid var(--bg);
}

.tl-dot.note {
  background: var(--text-dim);
  width: 10px; height: 10px;
  top: .5rem;
  left: 1px;
}

.tl-line {
  position: absolute;
  left: 5px;
  top: .8rem;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.tl-row:last-child .tl-line {
  display: none;
}

.tl-body {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .8rem 1rem;
  transition: all .2s;
}

.tl-card:hover .tl-body,
a.tl-card:hover .tl-body {
  border-color: var(--accent);
  box-shadow: 0 2px 12px var(--shadow-light);
}

.tl-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .3rem;
}

.tl-date {
  font-size: .78rem;
  color: var(--text-dim);
}

.tl-badge {
  font-size: .68rem;
  padding: .1rem .4rem;
  border-radius: 4px;
  line-height: 1.3;
}

.badge-blog {
  background: rgba(100,180,255,.15);
  color: #6af;
}

.badge-note {
  background: rgba(100,255,150,.12);
  color: #6f9;
}

.tl-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 .25rem 0;
  color: var(--text);
}

.tl-summary {
  font-size: .85rem;
  color: var(--text-dim);
  margin: 0 0 .3rem 0;
  line-height: 1.5;
}

.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
}

.mini-tag {
  font-size: .68rem;
  padding: .05rem .4rem;
  border-radius: 4px;
  background: var(--mini-tag-bg);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

/* =============================================
   生活旅行 — 小红书风格
   ============================================= */
.social-post {
  display: flex;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  transition: border-color .2s;
}

.social-post:hover {
  border-color: var(--accent);
}

.post-img {
  flex-shrink: 0;
  width: 260px;
  min-height: 220px;
  overflow: hidden;
  background: var(--bg);
}

.post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s;
}

.social-post:hover .post-img img {
  transform: scale(1.05);
}

.post-body {
  flex: 1;
  padding: 1rem 1rem 1rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-meta {
  font-size: .78rem;
  color: var(--text-dim);
  margin-bottom: .3rem;
}

.post-body h3 {
  font-size: 1.1rem;
  margin: 0 0 .4rem 0;
  color: var(--text);
}

.post-body p {
  font-size: .85rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0 0 .5rem 0;
}

.post-link {
  color: var(--accent);
  font-size: .82rem;
  text-decoration: none;
}

.post-link:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .social-post {
    flex-direction: column;
  }
  .post-img {
    width: 100%;
    min-height: 200px;
  }
  .post-body {
    padding: 0 1rem 1rem 1rem;
  }
}
