/**
 * News timeline — AI HOT–style day groups.
 * Scoped to body.aikb-news-timeline.
 */

body.aikb-news-timeline .aikb-archive-main,
body.aikb-news-timeline .main {
  padding-top: 20px;
  padding-bottom: 56px;
  background: transparent;
}

body.aikb-news-timeline .content-wrap,
body.aikb-news-timeline .content.nosidebar {
  width: 100% !important;
  max-width: none;
  float: none !important;
  margin: 0 !important;
}

body.aikb-news-timeline .sidebar {
  display: none !important;
}

/* Timeline list */
body.aikb-news-timeline #posts.aikb-news-timeline,
body.aikb-news-timeline #posts.lists.aikb-news-timeline {
  display: block;
  margin: 0;
  padding: 0;
}

body.aikb-news-timeline .aikb-news-day {
  margin: 0 0 36px;
}

body.aikb-news-timeline .aikb-news-day:last-child {
  margin-bottom: 0;
}

body.aikb-news-timeline details.aikb-news-day {
  border: none;
}

body.aikb-news-timeline .aikb-news-day__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 16px;
  padding: 0 0 10px;
  list-style: none;
  cursor: pointer;
  user-select: none;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--aikb-ink, #1f2430);
  border-bottom: 1px solid var(--aikb-line, #e6dfd4);
}

body.aikb-news-timeline .aikb-news-day__title::-webkit-details-marker,
body.aikb-news-timeline .aikb-news-day__title::marker {
  display: none;
  content: "";
}

body.aikb-news-timeline .aikb-news-day__date {
  font-weight: 700;
  color: var(--aikb-ink, #1f2430);
}

body.aikb-news-timeline .aikb-news-day__chevron {
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-top: 0.1em;
  border-right: 2px solid var(--aikb-muted, #9ca3af);
  border-bottom: 2px solid var(--aikb-muted, #9ca3af);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
  flex-shrink: 0;
}

/* 折叠：箭头朝右；展开：箭头朝下 */
body.aikb-news-timeline details.aikb-news-day:not([open]) .aikb-news-day__chevron {
  transform: rotate(-45deg);
  margin-top: 0;
}

body.aikb-news-timeline details.aikb-news-day[open] .aikb-news-day__chevron {
  transform: rotate(45deg);
  margin-top: -0.15em;
}

body.aikb-news-timeline .aikb-news-day__meta {
  font-size: 14px;
  font-weight: 500;
  color: var(--aikb-muted, #6b7280);
}

body.aikb-news-timeline .aikb-news-day--continue .aikb-news-day__title {
  display: none;
}

body.aikb-news-timeline .aikb-news-day__list {
  position: relative;
  margin: 0;
  padding: 0;
}

body.aikb-news-timeline details.aikb-news-day:not([open]) {
  margin-bottom: 18px;
}

body.aikb-news-timeline details.aikb-news-day:not([open]) .aikb-news-day__title {
  margin-bottom: 0;
}

body.aikb-news-timeline .aikb-news-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 160px;
  align-items: start;
  gap: 14px 18px;
  margin: 0;
  padding: 16px 0;
  border: none;
  border-bottom: 1px solid rgba(230, 223, 212, 0.85);
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

body.aikb-news-timeline .aikb-news-item--nopic {
  grid-template-columns: 52px minmax(0, 1fr);
}

body.aikb-news-timeline .aikb-news-item:last-child {
  border-bottom: none;
}

body.aikb-news-timeline .aikb-news-item__time {
  padding-top: 3px;
  text-align: right;
}

body.aikb-news-timeline .aikb-news-item__time time {
  display: block;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--aikb-muted, #6b7280);
  letter-spacing: 0.02em;
}

body.aikb-news-timeline .aikb-news-item__body {
  min-width: 0;
}

body.aikb-news-timeline .aikb-news-item__cover {
  width: 160px;
  margin: 0;
}

body.aikb-news-timeline .aikb-news-item__cover a {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #ebe6de;
  line-height: 0;
}

body.aikb-news-timeline .aikb-news-item__cover img {
  display: block;
  width: 100%;
  height: 100px;
  object-fit: cover;
}

body.aikb-news-timeline .aikb-news-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}

body.aikb-news-timeline .aikb-news-item__tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--aikb-line, #e6dfd4);
  background: var(--aikb-surface, #fffdf9);
  color: var(--aikb-muted, #6b7280);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}

body.aikb-news-timeline .aikb-news-item__tag:hover {
  color: #c45c26;
  border-color: rgba(196, 92, 38, 0.35);
}

body.aikb-news-timeline .aikb-news-item__title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

body.aikb-news-timeline .aikb-news-item__title a {
  color: var(--aikb-ink, #1f2430);
  text-decoration: none;
}

body.aikb-news-timeline .aikb-news-item__title a:hover {
  color: #c45c26;
}

body.aikb-news-timeline .aikb-news-item__excerpt {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--aikb-muted, #6b7280);
}

@media (max-width: 767px) {
  body.aikb-news-timeline .aikb-news-item {
    grid-template-columns: 44px minmax(0, 1fr) 96px;
    gap: 10px 12px;
    padding: 14px 0;
  }

  body.aikb-news-timeline .aikb-news-item--nopic {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  body.aikb-news-timeline .aikb-news-item__cover {
    width: 96px;
  }

  body.aikb-news-timeline .aikb-news-item__cover img {
    height: 64px;
  }

  body.aikb-news-timeline .aikb-news-item__title {
    font-size: 16px;
  }

  body.aikb-news-timeline .aikb-news-day__title {
    font-size: 16px;
  }
}
