.home #sky-canvas-wrapper { display: none; }
.home {
  background: #081a3a url("../img/home/home_bg_3840.png") center top / cover no-repeat fixed;
  --home-text-primary: #f4e7cc;
  --home-text-secondary: #d7e4f5;
  --home-text-muted: #9fb4cf;
  --home-card-bg: rgba(10, 23, 48, 0.74);
  --home-card-border: rgba(180, 206, 238, 0.2);
  --home-card-shadow: 0 14px 30px rgba(3, 8, 20, 0.42);
  --home-title-size: clamp(2.3rem, 5vw, 4.2rem);
  --home-section-title-size: clamp(1.45rem, 2vw, 2.2rem);
  --home-body-size: clamp(1.05rem, 1.4vw, 1.5rem);
  --home-meta-size: clamp(0.92rem, 1.05vw, 1.1rem);
}
#home-effects-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.home #page-wrapper { position: relative; z-index: 1; max-width: 1520px; margin: 0 auto; }
.home #page-wrapper::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(1000px 520px at 26% 36%, rgba(8, 22, 46, 0.58), rgba(8, 22, 46, 0)),
    linear-gradient(180deg, rgba(6, 16, 34, 0.26), rgba(6, 16, 34, 0.52));
}

.home-tabs {
  max-width: 1520px;
  margin: 8px auto 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.home-tab {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(167, 203, 246, 0.36);
  background: rgba(10, 20, 42, 0.66);
  color: var(--home-text-secondary);
  text-decoration: none;
  font-size: 1.05rem;
  line-height: 1.2;
  transition: border-color .22s ease, color .22s ease, background-color .22s ease, transform .2s ease, box-shadow .22s ease;
}
.home-tab:hover,
.home-tab:focus-visible {
  border-color: rgba(179, 221, 255, 0.85);
  color: #fff;
  background: rgba(21, 37, 69, 0.82);
  box-shadow: 0 8px 20px rgba(67, 126, 198, 0.28);
  transform: translateY(-1px);
}
.home-tab.is-active {
  color: #112743;
  background: rgba(208, 233, 255, 0.96);
  border-color: rgba(208, 233, 255, 0.96);
}
.home-tab.is-disabled { opacity: 0.55; cursor: not-allowed; }

.hero-quote {
  max-width: 1520px;
  margin: 22px auto 26px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
}
.hero-quote h2 {
  margin: 0;
  max-width: none;
  font-size: clamp(2rem, 3.2vw, 4rem);
  line-height: 1.18;
  letter-spacing: 0.01em;
  color: var(--home-text-primary);
  font-weight: 700;
  white-space: nowrap;
  text-wrap: nowrap;
}

.night-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.night-left { display: grid; gap: 16px; }
.left-card {
  border-radius: 16px;
  padding: 20px;
  color: var(--home-text-primary);
  background: var(--home-card-bg);
  border: 1px solid var(--home-card-border);
  box-shadow: var(--home-card-shadow);
}
.intro-card h3, .radio-card h3 {
  margin: 0 0 12px;
  font-size: var(--home-section-title-size);
  line-height: 1.2;
}
.intro-card p {
  margin: 0;
  line-height: 1.68;
  font-size: var(--home-body-size);
  color: var(--home-text-secondary);
}
.radio-card ul { margin: 0; padding: 0; list-style: none; }
.radio-card li {
  padding: 0;
  border-bottom: 1px dashed rgba(180, 206, 238, 0.22);
}
.radio-track-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.radio-track-btn:hover,
.radio-track-btn:focus-visible {
  background: rgba(36, 72, 115, 0.32);
  box-shadow: inset 0 0 0 1px rgba(151, 199, 246, 0.28);
  transform: translateX(1px);
  outline: none;
}
.radio-track-btn.is-playing {
  background: rgba(56, 94, 40, 0.36);
  box-shadow: inset 0 0 0 1px rgba(179, 235, 149, 0.32), 0 0 14px rgba(144, 215, 116, 0.24);
}
.radio-track-btn span {
  min-width: 0;
  color: var(--home-text-primary);
  font-size: var(--home-body-size);
}
.radio-track-btn em {
  font-style: normal;
  color: var(--home-text-muted);
  white-space: nowrap;
  margin-left: 8px;
  font-size: var(--home-meta-size);
}
.radio-card__hint {
  margin: 8px 0 0;
  display: inline-block;
  font-size: .85rem;
  color: #d6e9ff;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(151, 199, 246, 0.45);
  background: rgba(22, 52, 86, 0.56);
  opacity: 0;
  transform: translateY(3px);
  transition: opacity .18s ease, transform .18s ease;
}
.radio-card__hint.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.note-card {
  font-size: var(--home-body-size);
  line-height: 1.65;
  color: var(--home-text-primary);
}

.night-main { display: grid; gap: 22px; }
.note-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.paper-card {
  background: rgba(252, 243, 227, 0.95);
  color: #26211a;
  border-radius: 14px;
  padding: 16px 16px 15px;
  box-shadow: 0 12px 24px rgba(2, 8, 18, 0.24);
  transition: transform .22s ease, box-shadow .22s ease;
}
.paper-card:nth-child(1) { transform: rotate(-1deg); }
.paper-card:nth-child(2) { transform: rotate(0.8deg) translateY(4px); }
.paper-card:nth-child(3) { transform: rotate(-0.4deg); }
.paper-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(2, 8, 18, 0.28);
}
.paper-chip {
  display: inline-block;
  margin-bottom: 9px;
  padding: 4px 10px;
  border-radius: 6px;
  background: #b7c9f8;
  color: #203357;
  font-size: .95rem;
}
.paper-card h3 {
  margin: 0 0 9px;
  font-size: clamp(1.8rem, 2.3vw, 2.2rem);
  line-height: 1.22;
}
.paper-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}
.paper-card h3 a:hover,
.paper-card h3 a:focus-visible {
  color: #0f3f77;
}
.paper-excerpt {
  font-size: clamp(1.08rem, 1.25vw, 1.36rem);
  line-height: 1.6;
  color: #3f3327;
  max-width: 34ch;
}
.paper-meta {
  margin: 10px 0 0;
  font-size: var(--home-meta-size);
  color: #7c6f61;
}

.bottom-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.panel-card {
  background: var(--home-card-bg);
  border: 1px solid var(--home-card-border);
  border-radius: 14px;
  padding: 18px 20px;
  color: var(--home-text-secondary);
  box-shadow: var(--home-card-shadow);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.panel-head h3 {
  margin: 0;
  font-size: var(--home-section-title-size);
  line-height: 1.2;
  color: var(--home-text-primary);
}
.panel-head a {
  color: #d8e9ff;
  text-decoration: none;
  font-size: var(--home-meta-size);
  transition: color .2s ease;
}
.panel-head a:hover,
.panel-head a:focus-visible {
  color: #ffffff;
}
.timeline-progress-list { list-style: none; margin: 0; padding: 0; }
.timeline-progress-list li {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 14px;
  padding: 11px 10px 11px 0;
  border-radius: 10px;
  border: 1px solid transparent;
  border-bottom: 1px dashed rgba(167, 203, 246, 0.22);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.timeline-progress-list li::after {
  content: "点击查看";
  position: absolute;
  right: 66px;
  top: 50%;
  transform: translateY(-50%) translateX(4px);
  opacity: 0;
  pointer-events: none;
  font-size: .82rem;
  color: #d7eaff;
  border: 1px solid rgba(151, 199, 246, 0.45);
  background: rgba(22, 52, 86, 0.52);
  border-radius: 999px;
  padding: 2px 9px;
  letter-spacing: 0.02em;
  transition: opacity .18s ease, transform .18s ease;
}
.timeline-progress-list li:hover,
.timeline-progress-list li:focus-within {
  background: rgba(24, 52, 86, 0.36);
  border-color: rgba(142, 196, 255, 0.42);
  box-shadow: 0 0 0 1px rgba(124, 183, 247, 0.16), 0 0 18px rgba(88, 149, 214, 0.24);
}
.timeline-progress-list li:hover::after,
.timeline-progress-list li:focus-within::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
.timeline-progress-list li:last-child { border-bottom: 0; }
.timeline-progress-list a {
  color: var(--home-text-secondary);
  text-decoration: none;
  font-size: var(--home-body-size);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s ease;
}
.timeline-progress-list a:hover,
.timeline-progress-list a:focus-visible {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(169, 214, 255, 0.34);
}
.timeline-progress-list__date {
  color: var(--home-text-muted);
  font-size: var(--home-meta-size);
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.timeline-progress-list__type {
  font-style: normal;
  font-size: .9rem;
  line-height: 1.2;
  text-align: center;
  color: #d8e9ff;
  border: 1px solid rgba(167, 203, 246, 0.34);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(18, 36, 66, 0.7);
}
.timeline-progress-list__type.is-project {
  color: #ffe6b9;
  border-color: rgba(255, 205, 132, 0.42);
  background: rgba(90, 62, 21, 0.4);
}
.timeline-progress-list__type.is-note {
  color: #d7eaff;
  border-color: rgba(150, 202, 255, 0.38);
  background: rgba(22, 52, 86, 0.42);
}
.timeline-progress-list__empty {
  display: block !important;
  color: var(--home-text-muted);
  font-size: var(--home-body-size);
  border-bottom: 0 !important;
  padding: 8px 0 4px !important;
}

@media (max-width: 1100px) {
  .night-layout { grid-template-columns: 1fr; }
  .note-grid { grid-template-columns: 1fr; }
  .bottom-grid { grid-template-columns: 1fr; }
  .hero-quote {
    margin-top: 14px;
    margin-bottom: 16px;
  }
  .hero-quote h2 {
    max-width: 100%;
    white-space: normal;
    text-wrap: balance;
  }
  .timeline-progress-list li {
    grid-template-columns: 66px minmax(0, 1fr) 52px;
  }
}

@media (max-width: 760px) {
  .home-tabs {
    gap: 8px;
    margin-bottom: 10px;
  }
  .home-tab {
    padding: 8px 14px;
    font-size: .98rem;
  }
  .left-card,
  .panel-card {
    padding: 15px 14px;
  }
  .timeline-progress-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .timeline-progress-list li::after {
    display: none;
  }
  .timeline-progress-list__date {
    text-align: left;
  }
  .timeline-progress-list__type {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .timeline-progress-list li,
  .timeline-progress-list li::after {
    transition: none;
  }
}
