/* 首页 board 内部那层列宽放开 */
#board > .container > .row > .col-12.col-md-10.m-auto {
  flex: 0 0 100%;
  max-width: 100%;
}

/* board 内部 container 左右留白压小一点 */
#board > .container {
  max-width: 100%;
  padding-left: 6px;
  padding-right: 6px;
}

/* 分流区本身不要再单独承担左右距离 */
.home-split-wrap {
  padding: 0.5rem 0 0.5rem;
}

.home-split-intro {
  margin-bottom: 1.8rem;
}

.home-split-title {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.home-split-subtitle {
  margin-top: 0.45rem;
  font-size: 0.96rem;
  opacity: 0.75;
}

.home-split {
  margin-bottom: 0.5rem;
}


.split-zone {
  position: relative;
  height: 100%;
  min-height: 500px;
  padding: 1.75rem 1.5rem 1.35rem;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.split-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.07), transparent 42%);
  pointer-events: none;
}

.split-zone-label {
  position: relative;
  z-index: 1;
  margin-bottom: 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  opacity: 0.68;
}

.split-zone-head {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}

.split-zone-title {
  margin: 0 0 0.6rem;
  font-size: 1.7rem;
  font-weight: 700;
}

.tech-title {
  color: #8fb8d8;
}

.write-title {
  color: #c9a96b;
}

.split-zone-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  opacity: 0.8;
}

.split-zone-tags {
  --split-zone-tag-row-height: 2rem;
  --split-zone-tag-hover-offset: 0.12rem;
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.6rem;
  padding-top: var(--split-zone-tag-hover-offset);
  margin-top: calc(var(--split-zone-tag-hover-offset) * -1);
  margin-bottom: 1.15rem;
  max-height: calc(var(--split-zone-tag-row-height) + var(--split-zone-tag-hover-offset));
  overflow: hidden;
}

.split-zone-tag {
  display: inline-flex;
  align-items: center;
  min-height: var(--split-zone-tag-row-height);
  max-width: 100%;
  padding: 0.34rem 0.82rem;
  border-radius: 999px;
  font-size: 0.84rem;
  line-height: 1.1;
  white-space: nowrap;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
  opacity: 0.86;
  transition: all 0.18s ease;
}

.split-zone-tag:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.075);
  border-color: rgba(255,255,255,0.14);
}

.split-zone-posts {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.split-post-card {
  display: block;
  min-height: 84px;
  padding: 0.95rem 1rem;
  border-radius: 0.95rem;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.2s ease;
}

.split-post-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.16);
}

.split-post-card strong {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
  line-height: 1.5;
}

.split-post-card span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 3.1em;
  font-size: 0.92rem;
  line-height: 1.7;
  opacity: 0.72;
}

.split-empty {
  padding: 1rem 0.2rem;
  opacity: 0.65;
  font-size: 0.93rem;
}

.split-zone-foot {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 0.3rem;
}

.split-zone-btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.split-zone-btn:hover {
  text-decoration: none;
  opacity: 1;
}

@media (max-width: 991.98px) {
  .split-zone {
    min-height: auto;
  }
  .home-split-wrap {
    padding: 0.5rem 1rem 0.5rem;
  }
}

@media (max-width: 767.98px) {
  .home-split-title {
    font-size: 1.28rem;
  }
  .home-split-wrap {
    padding: 0.35rem 0.4rem 0.35rem;
  }
  .split-zone {
    padding: 1.25rem 1.1rem 1.1rem;
    border-radius: 1rem;
  }

  .split-zone-title {
    font-size: 1.45rem;
  }

  .split-zone-tags {
    max-height: calc(var(--split-zone-tag-row-height) * 2 + 0.6rem + var(--split-zone-tag-hover-offset));
  }
}




/* =========================
   今日单向历
   ========================= */

.today-calendar-row {
  margin-bottom: 0.5rem;
  padding-left: 0;
  padding-right: 0;
}

.today-calendar-section {
  position: relative;
  overflow: hidden;
  margin-top: 1.2rem;
  padding: 1.7rem 1.5rem 1.8rem;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
}

.today-calendar-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.05), transparent 36%);
  pointer-events: none;
}

.today-calendar-head {
  position: relative;
  z-index: 1;
  margin-bottom: 1.2rem;
}

.today-calendar-kicker {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  color: var(--home-kicker);
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

.today-calendar-title {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.today-calendar-subtitle {
  margin-top: 0.55rem;
  color: rgba(238,242,246,0.68);
  font-size: 0.95rem;
  line-height: 1.8;
}

.today-calendar-body {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.today-calendar-image-link {
  display: inline-block;
  width: auto;
  max-width: 100%;
  transition: transform 0.22s ease;
}

.today-calendar-image-link:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.today-calendar-image {
  display: block;
  width: auto;
  max-width: min(100%, 560px);
  max-height: 760px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 991.98px) {
  .split-zone {
    min-height: auto;
  }

  .home-split-wrap {
    padding: 0.5rem 1rem 0.5rem;
  }

  .today-calendar-row {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .today-calendar-section {
    padding: 1.45rem 1.25rem 1.5rem;
  }

  .today-calendar-image {
    max-width: min(100%, 500px);
    max-height: 680px;
  }
}

@media (max-width: 767.98px) {
  .home-split-title {
    font-size: 1.28rem;
  }

  .home-split-wrap {
    padding: 0.35rem 0.4rem 0.35rem;
  }

  .split-zone {
    padding: 1.25rem 1.1rem 1.1rem;
    border-radius: 1rem;
  }

  .split-zone-title {
    font-size: 1.45rem;
  }

  .today-calendar-row {
    padding-left: 0.4rem;
    padding-right: 0.4rem;
  }

  .today-calendar-section {
    margin-top: 1rem;
    padding: 1.15rem 1.1rem 1.1rem;
    border-radius: 1rem;
  }

  .today-calendar-title {
    font-size: 1.45rem;
  }

  .today-calendar-head {
    margin-bottom: 0.95rem;
  }

  .today-calendar-image {
    max-width: 100%;
    max-height: 520px;
  }
}

.calendar-title {
  color: #cfc8bb;
}





.categories-type-wrap {
  padding: 0.2rem 0 0.6rem;
}

.categories-type-block + .categories-type-block {
  margin-top: 2rem;
}

.categories-type-title {
  margin-bottom: 0.9rem;
  padding: 0 0 0.35rem 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.type-tech .categories-type-title {
  color: #8fb8d8;
}

.type-write .categories-type-title {
  color: #c9a96b;
}

@media (max-width: 767.98px) {
  .categories-type-block + .categories-type-block {
    margin-top: 1.5rem;
  }

  .categories-type-title {
    font-size: 1.4rem;
  }
}




.category-post-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}

.category-post {
  min-width: 0;
  flex: 1;
  line-height: 1.7;
}

.category-post-meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-shrink: 0;
  margin-left: 1rem;
}

.category-post-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.38rem;
  max-width: 320px;
}

.category-post-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.26rem 0.7rem;
  border-radius: 999px;
  font-size: 0.84rem;
  line-height: 1;
  white-space: nowrap;
  opacity: 0.82;
  color: inherit;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.18s ease;
}

.category-post-tag:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
  transform: translateY(-1px);
}

.category-post-date {
  font-size: 0.88rem;
  opacity: 0.58;
  white-space: nowrap;
  margin-left: auto;
  text-align: right;
}

@media (max-width: 767.98px) {
  .category-post-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .category-post-meta {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
    gap: 0.6rem;
  }

  .category-post-tags {
    max-width: none;
    justify-content: flex-start;
  }

  .category-post-date {
    font-size: 0.84rem;
  }
}





/* =========================
   Home index redesign
   ========================= */

.home-index-wrap {
  padding: 0.15rem 0 0.6rem;
  --home-text-strong: var(--post-heading-color);
  --home-text: var(--text-color);
  --home-text-soft: var(--sec-text-color);
  --home-text-muted: var(--sec-text-color);
  --home-kicker: var(--sec-text-color);
  --home-line: color-mix(in srgb, var(--home-text) 40%, transparent);
  --home-chip-bg: var(--button-bg-color);
  --home-chip-border: var(--line-color);
  --home-card-bg: var(--board-bg-color);
}

@media (prefers-color-scheme: dark) {
  html:not([data-user-color-scheme="light"]) .home-index-wrap {
    --home-line: rgba(255, 255, 255, 0.08);
  }
}

html[data-user-color-scheme="dark"] .home-index-wrap {
  --home-line: rgba(255, 255, 255, 0.08);
}

.home-index {
  width: min(100%, 1080px);
  margin: 0 auto;
}

.home-section-kicker,
.home-path-label {
  font-size: 0.74rem;
  line-height: 1.3;
  letter-spacing: 0.18em;
  color: var(--home-kicker);
  opacity: 0.86;
}

.home-section {
  padding: 2rem 0 0;
}

.home-latest {
  padding-top: 0.4rem;
}

.home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.home-section-title {
  margin: 0.28rem 0 0;
  color: var(--home-text-strong);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.home-section-more {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--home-text-soft);
  font-size: 0.92rem;
  opacity: 0.9;
  transition: transform 0.18s ease;
}

.home-section-more:hover {
  color: var(--home-text-soft);
  text-decoration: none;
  transform: translateX(2px);
}

.home-latest-list {
  border-top: 1px solid var(--home-line);
}

.home-latest-item {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) 8rem;
  align-items: center;
  gap: 1rem;
  min-height: 4.15rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--home-line);
  color: var(--home-text);
  transition: transform 0.18s ease;
}

.home-latest-item:hover {
  color: var(--home-text);
  text-decoration: none;
  transform: translateX(4px);
}

.home-latest-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 3.4rem;
  padding: 0.25rem 0.62rem;
  border-radius: 999px;
  border: 1px solid var(--home-chip-border);
  background: var(--home-chip-bg);
  color: var(--home-text-soft);
  font-size: 0.78rem;
  line-height: 1.2;
}

.home-latest-main {
  display: block;
  min-width: 0;
}

.home-latest-title {
  display: block;
  overflow: hidden;
  color: inherit;
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.home-latest-date {
  justify-self: end;
  color: var(--home-text-muted);
  font-size: 0.86rem;
  white-space: nowrap;
  opacity: 0.82;
}

.home-empty {
  padding: 1.5rem 0;
  color: var(--home-text-muted);
  opacity: 0.82;
}

.home-path-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.home-path {
  position: relative;
  display: flex;
  min-height: 11.5rem;
  padding: 1.35rem 1.25rem 1.2rem;
  flex-direction: column;
  border-radius: 1rem;
  border: 0;
  background: var(--home-card-bg);
  color: var(--home-text);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.home-path::after {
  content: "";
  position: absolute;
  inset: auto 1.25rem 1.05rem auto;
  width: 2.2rem;
  height: 1px;
  background: var(--home-line);
  transform-origin: right center;
  transition: width 0.2s ease;
}

.home-path:hover {
  color: var(--home-text);
  text-decoration: none;
  transform: translateY(-2px);
}

.home-path:hover::after {
  width: 3.2rem;
}

.home-path-label {
  color: var(--home-kicker);
  opacity: 0.86;
}

.home-path-title {
  margin-top: 0.65rem;
  color: var(--home-text-strong);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.home-path-desc {
  margin-top: 0.65rem;
  color: var(--home-text-soft);
  font-size: 0.96rem;
  line-height: 1.8;
  opacity: 0.92;
}

.home-path-meta {
  margin-top: auto;
  padding-top: 1rem;
  color: var(--home-text-muted);
  font-size: 0.84rem;
  line-height: 1.65;
  opacity: 0.82;
}

.today-calendar-row {
  width: min(100%, 1080px);
  margin: 0 auto 0.5rem;
  padding-left: 0;
  padding-right: 0;
}

.today-calendar-section {
  margin-top: 2.2rem;
  padding: 1.65rem 0 0;
  border: 0;
  border-top: 1px solid var(--home-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.today-calendar-section::before {
  content: none;
}

.today-calendar-head {
  margin-bottom: 1.15rem;
  text-align: left;
}

.today-calendar-title {
  color: var(--home-text-strong);
  font-size: 1.45rem;
}

.today-calendar-subtitle {
  max-width: 720px;
  margin: 0.45rem auto 0;
  color: var(--home-text-soft);
  text-align: center;
  opacity: 0.92;
}

.today-calendar-body {
  justify-content: center;
}

.today-calendar-image-link,
.today-calendar-image-link:hover,
.today-calendar-image-link:active {
  transform: none;
  text-decoration: none;
  transition: none;
}

.today-calendar-image {
  max-width: min(100%, 520px);
  max-height: 640px;
}

@media (max-width: 767.98px) {
  .home-index-wrap {
    padding: 0.1rem 0.25rem 0.35rem;
  }

  .home-section {
    padding-top: 1.55rem;
  }

  .home-latest {
    padding-top: 0.25rem;
  }

  .home-section-head {
    align-items: flex-start;
  }

  .home-section-title {
    font-size: 1.28rem;
  }

  .home-latest-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.55rem;
    min-height: 0;
    padding: 0.95rem 0;
  }

  .home-latest-type {
    align-self: start;
    margin-top: 0.15rem;
  }

  .home-latest-date {
    justify-self: end;
    font-size: 0.8rem;
    line-height: 1.6;
    margin-top: 0.08rem;
  }

  .home-latest-title {
    white-space: normal;
  }

  .home-path-list {
    grid-template-columns: 1fr;
  }

  .home-path {
    min-height: 10rem;
    padding: 1.15rem 1.05rem;
  }

  .today-calendar-row {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .today-calendar-section {
    margin-top: 1.65rem;
    padding-top: 1.35rem;
  }

  .today-calendar-title {
    font-size: 1.28rem;
  }

  .today-calendar-image {
    max-width: 100%;
    max-height: 480px;
  }
}




