/* ===== 基础（青绿色主题） ===== */
:root {
  --bg-1: #eafaf5;
  --bg-2: #f0fbf7;
  --ink: #37514c;
  --ink-soft: #6d8983;
  --pink: #2ec4b6;     /* 主青绿 */
  --purple: #1f9e92;   /* 深青绿 */
  --blue: #7ed6c9;     /* 浅青绿 */
  --amber: #ffd166;    /* 萤火虫黄（保留点缀） */
  --card: rgba(255, 255, 255, 0.72);
  --card-border: rgba(255, 255, 255, 0.9);
  --shadow: 0 18px 48px rgba(31, 158, 146, 0.16);
  --radius: 26px;
  --font-head: "ZCOOL KuaiLe", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 45%, #e9f6f2 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.75;
  overflow-x: hidden;
}

.container { width: min(1080px, 92%); margin: 0 auto; }

a { color: inherit; text-decoration: none; }

/* ===== 背景图轮播 ===== */
#bg-carousel {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}

#bg-carousel.ready { opacity: 1; }

.bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease;
  will-change: opacity, transform;
}

.bg-layer.active { opacity: 1; }

.bg-layer.kb { animation: kenburns 9s ease-out forwards; }

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(234, 250, 245, 0.5) 0%,
    rgba(240, 251, 247, 0.38) 50%,
    rgba(233, 246, 242, 0.55) 100%);
}

.bg-credit {
  position: fixed;
  right: 14px;
  bottom: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: rgba(55, 81, 76, 0.55);
  background: rgba(255, 255, 255, 0.55);
  padding: 5px 8px 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.bg-credit button {
  border: none;
  cursor: pointer;
  font-size: 0.72rem;
  color: #fff;
  background: linear-gradient(120deg, var(--purple), var(--pink));
  padding: 4px 10px;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.bg-credit button:hover { transform: translateY(-1px); }

.bg-credit button:disabled { opacity: 0.6; cursor: wait; }

/* 「只看实时」开关 */
.rt-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  user-select: none;
  font-size: 0.72rem;
  color: rgba(55, 81, 76, 0.6);
  white-space: nowrap;
}

.rt-toggle input { display: none; }

.rt-track {
  width: 30px;
  height: 17px;
  border-radius: 999px;
  background: rgba(55, 81, 76, 0.25);
  position: relative;
  transition: background 0.25s ease;
  flex-shrink: 0;
}

.rt-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease;
}

.rt-toggle input:checked + .rt-track {
  background: linear-gradient(120deg, var(--purple), var(--pink));
}

.rt-toggle input:checked + .rt-track .rt-thumb { transform: translateX(13px); }

.rt-toggle input:disabled + .rt-track { opacity: 0.5; cursor: not-allowed; }

/* ===== 背景画布 ===== */
#fx-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

main, header, footer { position: relative; z-index: 3; }

/* ===== 顶部导航 ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(31, 158, 146, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.25rem;
  letter-spacing: 1px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links { display: flex; gap: 8px; list-style: none; }

.nav-links a {
  display: block;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.25s, background 0.25s, transform 0.25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--purple);
  background: rgba(31, 158, 146, 0.12);
}

.nav-links a:hover { transform: translateY(-1px); }

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 10px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: var(--purple);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* 右上角访客统计（不蒜子）胶囊 */
.visit-counter {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  margin-left: auto;
  font-size: 0.72rem;
  color: rgba(55, 81, 76, 0.68);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
  user-select: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled .visit-counter {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 4px 14px rgba(31, 158, 146, 0.14);
}

.visit-counter .vc-icon { margin-right: 3px; }

.visit-counter b {
  font-weight: 700;
  color: var(--purple);
  padding: 0 2px;
}

.visit-counter .vc-sep { margin: 0 6px; opacity: 0.55; }

.visit-counter .vc-fallback { font-size: 0.7rem; opacity: 0.75; }

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 0 48px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;   /* 吉祥物已移除，单栏居中 */
  justify-items: center;
  text-align: center;
  gap: 0;
  max-width: 720px;
}

.hero-kicker {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(46, 196, 182, 0.14);
  color: var(--purple);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.15;
  background: linear-gradient(100deg, #1f9e92 0%, #2ec4b6 45%, #7ed6c9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
}

.hero-sub {
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.hero-desc { color: var(--ink-soft); margin-bottom: 30px; }

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

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s;
}

.btn:hover { transform: translateY(-3px); }

.btn-primary {
  background: linear-gradient(120deg, var(--purple), var(--pink));
  color: #fff;
  box-shadow: 0 12px 28px rgba(46, 196, 182, 0.4);
}

.btn-primary:hover { box-shadow: 0 16px 34px rgba(46, 196, 182, 0.55); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--purple);
  border: 2px solid rgba(31, 158, 146, 0.45);
}

.btn-ghost:hover { background: #fff; }

/* B 站关注按钮（首页 / 关注 CTA 共用） */
.btn-bili {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(120deg, #fb7299, #ff9db8);
  color: #fff;
  box-shadow: 0 12px 28px rgba(251, 114, 153, 0.38);
}

.btn-bili:hover { box-shadow: 0 16px 34px rgba(251, 114, 153, 0.52); }

.btn-bili-icon { font-size: 1.05em; line-height: 1; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.3rem;
  color: var(--purple);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* ===== 通用 section ===== */
.section { padding: 110px 0; }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  text-align: center;
  margin-bottom: 40px;
}

.section-title .deco { color: var(--pink); }

/* ===== 玻璃卡片 ===== */
.glass {
  background: var(--card);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ===== 关于我 ===== */
.about-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 34px;
  padding: 40px;
  align-items: center;
}

.about-avatar { display: flex; justify-content: center; }

.avatar-ring {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 16px 40px rgba(31, 158, 146, 0.28);
  background: linear-gradient(140deg, #e0fff6, #d6f5ec);
  animation: floaty 6s ease-in-out infinite;
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-body h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.about-body p { color: var(--ink-soft); margin-bottom: 12px; }

.about-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.about-tags li {
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(31, 158, 146, 0.25);
  font-size: 0.92rem;
  color: var(--ink);
}

/* ===== 公告 ===== */
.notice-list {
  display: grid;
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}

.notice-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 26px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.notice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(31, 158, 146, 0.22);
}

.notice-card.warn {
  background: rgba(255, 249, 230, 0.85);
  border-color: rgba(255, 209, 102, 0.65);
}

.notice-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: linear-gradient(140deg, #e7faf5, #e9f7f3);
  box-shadow: inset 0 0 0 2px #fff;
}

.notice-card.warn .notice-icon {
  background: linear-gradient(140deg, #fff7e0, #fff3d6);
}

.notice-body h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.notice-body p {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.notice-links {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.notice-links a {
  font-weight: 700;
  color: var(--purple);
  font-size: 0.94rem;
  transition: letter-spacing 0.25s;
}

.notice-links a:hover { letter-spacing: 0.05em; }

.notice-pwd {
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.8);
  border: 1px dashed rgba(31, 158, 146, 0.4);
  padding: 3px 10px;
  border-radius: 999px;
}

@media (max-width: 560px) {
  .notice-card { flex-direction: column; }
}

/* ===== 发稿计划 ===== */
/* 行状态配色：过去=灰、今天=黄、未来=绿（与 schedule.js 的 is-past / is-today / is-future 对应） */
.schedule-card {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 22px 18px;
}

.schedule-table-wrap {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.95rem;
}

.schedule-table th {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  color: var(--purple);
  background: rgba(46, 196, 182, 0.1);
  border-bottom: 2px solid rgba(31, 158, 146, 0.22);
  padding: 12px 10px;
  text-align: left;
}

.schedule-table th:nth-child(1) { width: 28%; }
.schedule-table th:nth-child(2) { width: 27%; }
.schedule-table th:nth-child(3) { width: 26%; }
.schedule-table th:nth-child(4) { width: 19%; }

.schedule-table td {
  padding: 13px 10px;
  border-top: 1px solid rgba(31, 158, 146, 0.14);
  vertical-align: middle;
  word-break: break-word;
}

.schedule-table tbody tr:first-child td { border-top: none; }

/* 三种行状态 */
.sched-row.is-past td {
  background: rgba(139, 152, 149, 0.16);
  color: #7c8b88;
}

.sched-row.is-today td {
  background: rgba(255, 209, 102, 0.34);
  color: #7a5a0c;
}

.sched-row.is-future td {
  background: rgba(64, 186, 108, 0.15);
  color: #2b7a4b;
}

/* 今天那一行加个描边，扫一眼就能看到 */
.sched-row.is-today td:first-child { box-shadow: inset 3px 0 0 rgba(226, 168, 0, 0.75); }

.sched-cell-date { white-space: nowrap; }

.sched-date {
  display: block;
  font-weight: 700;
}

.sched-date em {
  font-style: normal;
  font-size: 0.78rem;
  opacity: 0.72;
  margin-left: 4px;
}

.sched-tag {
  display: inline-block;
  margin-top: 4px;
  padding: 1px 9px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  opacity: 0.9;
}

.sched-cell-song { font-weight: 700; }

/* 已发稿：歌曲名是去 B 站的直链 */
.sched-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: opacity 0.25s ease;
}

.sched-link:hover { opacity: 0.72; }

.sched-link-mark {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
}

.sched-cell-submitter { font-weight: 500; }

/* 串烧节目：在歌名下面附一行曲目清单 */
.sched-medley {
  display: block;
  margin-top: 3px;
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.5;
  opacity: 0.72;
}

.sched-empty { opacity: 0.5; }

.schedule-note {
  margin-top: 14px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* 窄屏：表格转为卡片式，避免四列被挤扁 */
@media (max-width: 600px) {
  .schedule-card { padding: 18px 14px 14px; }

  .schedule-table,
  .schedule-table tbody,
  .schedule-table tr,
  .schedule-table td { display: block; width: auto; }

  .schedule-table thead { display: none; }

  .schedule-table tbody tr {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 6px 18px rgba(31, 158, 146, 0.1);
  }

  .schedule-table tbody tr:last-child { margin-bottom: 0; }

  .schedule-table td {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 9px 14px;
    border-top: none;
  }

  .schedule-table td::before {
    content: attr(data-label);
    flex: 0 0 56px;
    font-family: var(--font-head);
    font-size: 0.82rem;
    opacity: 0.72;
  }

  .sched-row.is-today td:first-child { box-shadow: inset 4px 0 0 rgba(226, 168, 0, 0.75); }
}

/* ===== 资源 ===== */
.resource-head {
  max-width: 860px;
  margin: 0 auto 24px;
  padding: 26px 28px;
}

.resource-head h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.resource-disclaimer {
  color: #8a6d3b;
  background: rgba(255, 243, 205, 0.6);
  border: 1px dashed rgba(255, 193, 7, 0.5);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 0.88rem;
  line-height: 1.7;
}

.resource-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.resource-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  flex-wrap: wrap;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(31, 158, 146, 0.24);
}

.resource-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  background: linear-gradient(140deg, #e7faf5, #e9f7f3);
  box-shadow: inset 0 0 0 2px #fff;
}

.resource-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.resource-name { font-weight: 700; font-size: 1.08rem; }

.resource-pwd {
  align-self: flex-start;
  font-size: 0.78rem;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.8);
  border: 1px dashed rgba(31, 158, 146, 0.4);
  padding: 2px 10px;
  border-radius: 999px;
}

.resource-link {
  color: var(--purple);
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: letter-spacing 0.25s;
}

.resource-card:hover .resource-link { letter-spacing: 0.05em; }

@media (max-width: 560px) {
  .resource-card { align-items: flex-start; }
  .resource-link { margin-left: 64px; }
}

/* ===== 问卷 ===== */
.survey-box {
  max-width: 860px;
  margin: 0 auto;
  padding: 20px;
  overflow: hidden;
}

.survey-box iframe {
  width: 100%;
  border: 0;
  min-height: 620px;
  display: block;
}

/* ===== 项目作品 ===== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.project-card {
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 56px rgba(31, 158, 146, 0.26);
}

.project-icon {
  width: 64px; height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(140deg, #e7faf5, #e9f7f3);
  margin-bottom: 18px;
  box-shadow: inset 0 0 0 2px #fff;
}

.project-card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.project-card p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  flex: 1;
  margin-bottom: 16px;
}

.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.project-tags span {
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(46, 196, 182, 0.15);
  color: #1f9e92;
}

.project-link {
  font-weight: 700;
  color: var(--purple);
  font-size: 0.94rem;
  transition: letter-spacing 0.25s;
}

a.project-link:hover { letter-spacing: 0.06em; }

.project-link-soon { color: var(--ink-soft); }

/* ===== 最新投稿大卡 ===== */
.latest-card {
  max-width: 860px;
  margin: 0 auto 24px;
  padding: 0;
  overflow: hidden;
}

.works-loading {
  padding: 30px 26px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.works-fallback-link { color: var(--purple); font-weight: 700; }

.latest-link {
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: stretch;
}

.latest-cover {
  position: relative;
  display: block;
  background: linear-gradient(140deg, #d9f2ec, #e7faf5);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.latest-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.latest-link:hover .latest-cover img { transform: scale(1.05); }

.latest-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(120deg, var(--purple), var(--pink));
  box-shadow: 0 6px 16px rgba(31, 158, 146, 0.35);
}

.latest-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 26px 28px;
}

.latest-title {
  /* 视频标题是动态内容，用正文字体：既更好读，也让标题字体的子集保持固定 */
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.22rem;
  line-height: 1.45;
}

.latest-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.latest-go {
  margin-top: 4px;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--purple);
  transition: letter-spacing 0.25s;
}

.latest-link:hover .latest-go { letter-spacing: 0.06em; }

/* ===== 全部投稿面板 ===== */
.works-panel {
  max-width: 860px;
  margin: 24px auto 0;
  padding: 24px 22px 20px;
}

.works-head {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.works-stats { font-size: 0.92rem; color: var(--ink-soft); }

.works-stats b { color: var(--purple); font-size: 1.12rem; }

.works-dot { margin: 0 7px; opacity: 0.5; }

.works-search {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(31, 158, 146, 0.22);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.works-search:focus-within {
  border-color: rgba(31, 158, 146, 0.6);
  box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.16);
}

.works-search-icon { font-size: 0.86rem; opacity: 0.7; }

.works-search input {
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  width: 150px;
}

.works-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.works-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(31, 158, 146, 0.22);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.84rem;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
}

.works-tab em {
  font-style: normal;
  font-size: 0.72rem;
  opacity: 0.72;
}

.works-tab:hover { transform: translateY(-1px); border-color: rgba(31, 158, 146, 0.5); }

.works-tab.is-active {
  background: linear-gradient(120deg, var(--purple), var(--pink));
  border-color: transparent;
  color: #fff;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 16px;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-radius: 16px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.9);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(31, 158, 146, 0.18);
}

.work-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 11px;
  overflow: hidden;
  background: linear-gradient(140deg, #d9f2ec, #e7faf5);
}

.work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-dur {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 0.7rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
}

.work-title {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work-meta { font-size: 0.74rem; color: var(--ink-soft); }

.works-empty {
  padding: 26px 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.works-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.works-more { cursor: pointer; font-family: inherit; }

.works-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.works-note code {
  font-size: 0.94em;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(31, 158, 146, 0.1);
  color: var(--purple);
}

/* ===== 关注 CTA ===== */
.cta-band {
  max-width: 860px;
  margin: 0 auto;
  padding: 34px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: linear-gradient(120deg, rgba(255, 240, 246, 0.9), rgba(232, 250, 245, 0.9));
  border-color: rgba(251, 114, 153, 0.35);
}

.cta-text h2 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.cta-text p { color: var(--ink-soft); font-size: 0.92rem; }

@media (max-width: 720px) {
  .latest-link { grid-template-columns: 1fr; }
  .latest-cover { aspect-ratio: 16 / 9; }
  .latest-body { padding: 20px 20px 24px; }
  .cta-band { justify-content: center; text-align: center; }
  .works-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .works-head { justify-content: center; }
  .works-search input { width: 110px; }
}

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

.contact-card {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

a.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 56px rgba(31, 158, 146, 0.24);
}

.contact-icon { font-size: 1.8rem; }

.contact-name { font-weight: 700; }

.contact-value { color: var(--ink-soft); font-size: 0.9rem; word-break: break-all; }

/* ===== 页脚 ===== */
.site-footer {
  padding: 40px 0 46px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ===== 滚动显现动画 ===== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 响应式 ===== */
/* 中等屏幕：右上角统计精简，导航内边距收紧防拥挤 */
@media (max-width: 1100px) {
  .visit-counter .vc-total,
  .visit-counter .vc-sep,
  .visit-counter .vc-icon { display: none; }
  .nav-links a { padding: 8px 12px; }
}

@media (max-width: 860px) {
  .about-card { grid-template-columns: 1fr; text-align: center; }
  .about-tags { justify-content: center; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 68px; right: 16px; left: 16px;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 20px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links a { text-align: center; padding: 12px; }
}

/* 窄屏：右上角统计进一步压缩 */
@media (max-width: 480px) {
  .visit-counter { font-size: 0.66rem; padding: 4px 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .bg-layer.kb { animation: none; }
}

/* ===== 深色模式 =====
   萤火虫主题本来就是夜空，所以深色是「本体」。
   主题由 <head> 里的内联脚本决定（记忆优先，否则跟随系统），
   统一落在 <html data-theme="dark"> 上，这里只需一套覆盖规则。
   —— 只覆盖「浅色专有」的东西，浅色模式完全不受影响。 */
html[data-theme="dark"] {
  --bg-1: #0d181c;
  --bg-2: #101f24;
  --ink: #dcebe8;
  --ink-soft: #93ada8;
  --pink: #3fd8c8;
  --purple: #4fd0c0;
  --blue: #2f8d83;
  --card: rgba(22, 37, 42, 0.74);
  --card-border: rgba(82, 126, 120, 0.5);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

html[data-theme="dark"] body {
  background: linear-gradient(160deg, #0d181c 0%, #101f24 45%, #0b1519 100%);
}

/* 背景图上的压暗层：浅色是提亮，深色要压暗 */
html[data-theme="dark"] .bg-overlay {
  background: linear-gradient(180deg,
    rgba(8, 18, 22, 0.66) 0%,
    rgba(9, 20, 24, 0.52) 50%,
    rgba(6, 14, 18, 0.72) 100%);
}

html[data-theme="dark"] .site-header.scrolled {
  background: rgba(14, 26, 30, 0.8);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .logo,
html[data-theme="dark"] .hero h1 {
  background: linear-gradient(100deg, #4fd0c0 0%, #6ee7d8 45%, #9df0e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

html[data-theme="dark"] .visit-counter,
html[data-theme="dark"] .site-header.scrolled .visit-counter {
  background: rgba(22, 37, 42, 0.78);
  border-color: rgba(82, 126, 120, 0.42);
}

html[data-theme="dark"] .nav-toggle { background: rgba(22, 37, 42, 0.85); }

html[data-theme="dark"] .bg-credit {
  background: rgba(20, 34, 38, 0.7);
  color: rgba(220, 235, 232, 0.6);
}

html[data-theme="dark"] .rt-toggle { color: rgba(220, 235, 232, 0.62); }

html[data-theme="dark"] .rt-track { background: rgba(220, 235, 232, 0.28); }

/* 按钮 */
html[data-theme="dark"] .btn-ghost {
  background: rgba(26, 43, 48, 0.85);
  color: var(--purple);
  border-color: rgba(79, 208, 192, 0.45);
}

html[data-theme="dark"] .btn-ghost:hover { background: rgba(34, 55, 61, 0.95); }

/* 图标底板 / 头像环 这些浅色渐变在深色下会变成刺眼的白块 */
html[data-theme="dark"] .notice-icon,
html[data-theme="dark"] .resource-icon,
html[data-theme="dark"] .project-icon {
  background: linear-gradient(140deg, #1b2f34, #16272c);
  box-shadow: inset 0 0 0 2px rgba(82, 126, 120, 0.35);
}

html[data-theme="dark"] .avatar-ring {
  border-color: rgba(82, 126, 120, 0.55);
  background: linear-gradient(140deg, #1b2f34, #16272c);
}

html[data-theme="dark"] .about-tags li {
  background: rgba(26, 43, 48, 0.85);
  border-color: rgba(79, 208, 192, 0.28);
}

html[data-theme="dark"] .notice-card.warn {
  background: rgba(52, 44, 22, 0.72);
  border-color: rgba(255, 209, 102, 0.4);
}

html[data-theme="dark"] .notice-card.warn .notice-icon {
  background: linear-gradient(140deg, #3b3218, #2e2712);
}

html[data-theme="dark"] .notice-pwd,
html[data-theme="dark"] .resource-pwd {
  background: rgba(26, 43, 48, 0.8);
  border-color: rgba(79, 208, 192, 0.35);
}

html[data-theme="dark"] .resource-disclaimer {
  color: #e0c98a;
  background: rgba(58, 48, 20, 0.6);
  border-color: rgba(255, 209, 102, 0.35);
}

html[data-theme="dark"] .project-tags span { background: rgba(79, 208, 192, 0.16); }

/* 排期表 */
html[data-theme="dark"] .schedule-table-wrap {
  background: rgba(18, 32, 37, 0.6);
  box-shadow: inset 0 0 0 1px rgba(82, 126, 120, 0.28);
}

html[data-theme="dark"] .schedule-table th {
  background: rgba(79, 208, 192, 0.1);
  border-bottom-color: rgba(79, 208, 192, 0.28);
}

html[data-theme="dark"] .schedule-table td { border-top-color: rgba(82, 126, 120, 0.24); }

html[data-theme="dark"] .sched-row.is-past td {
  background: rgba(120, 138, 135, 0.16);
  color: #8fa09d;
}

html[data-theme="dark"] .sched-row.is-today td {
  background: rgba(255, 209, 102, 0.16);
  color: #ffd97a;
}

html[data-theme="dark"] .sched-row.is-future td {
  background: rgba(64, 186, 108, 0.17);
  color: #7fd8a3;
}

html[data-theme="dark"] .sched-tag,
html[data-theme="dark"] .sched-link-mark {
  background: rgba(18, 32, 37, 0.8);
}

/* 作品栏 */
html[data-theme="dark"] .works-search {
  background: rgba(26, 43, 48, 0.85);
  border-color: rgba(82, 126, 120, 0.45);
}

html[data-theme="dark"] .works-tab {
  background: rgba(26, 43, 48, 0.8);
  border-color: rgba(82, 126, 120, 0.42);
}

html[data-theme="dark"] .work-card {
  background: rgba(24, 40, 45, 0.7);
  border-color: rgba(82, 126, 120, 0.32);
}

html[data-theme="dark"] .work-card:hover {
  background: rgba(32, 52, 58, 0.92);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .work-cover,
html[data-theme="dark"] .latest-cover {
  background: linear-gradient(140deg, #1b2f34, #16272c);
}

html[data-theme="dark"] .latest-badge {
  background: linear-gradient(120deg, #2f8d83, #3fd8c8);
  color: #0c1a1d;
}

html[data-theme="dark"] .works-note code {
  background: rgba(79, 208, 192, 0.14);
  color: var(--purple);
}

/* 关注 CTA */
html[data-theme="dark"] .cta-band {
  background: linear-gradient(120deg, rgba(48, 30, 40, 0.85), rgba(20, 42, 40, 0.85));
  border-color: rgba(251, 114, 153, 0.32);
}

/* 主题切换按钮（要压过 .bg-credit button 的渐变样式，所以提高一级选择器） */
.bg-credit .theme-toggle {
  border: none;
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1;
  color: inherit;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  transition: transform 0.2s ease, background 0.25s ease;
}

.bg-credit .theme-toggle:hover { transform: translateY(-1px); }

html[data-theme="dark"] .bg-credit .theme-toggle { background: rgba(26, 43, 48, 0.9); }
