/* ══════════════════════════════════════════════════════════
   Module 04 · 复盘与自我提升
   作用域仅限 #review-view。字体名 Geist 只在本模块使用。
══════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Geist";
  src: url("review-assets/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

#review-view.view {
  overflow-x: hidden;
  overflow-y: auto;
  background: #ffffff;
  color: #181818;
  font-family: "Geist", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#review-view .rv {
  width: 100%;
  max-width: 880px;
  margin: 0;
  padding: 32px 0 96px;
  box-sizing: border-box;
}

#review-view .rv-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 0 12px;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #181818;
  cursor: pointer;
  font-family: inherit;
  appearance: none;
}

#review-view .rv-sheet {
  padding-left: 12px;
  min-width: 0;
}

#review-view .rv-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

#review-view .rv-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

#review-view .rv-name,
#review-view .rv-feature h2,
#review-view .rv-entry h2 {
  margin: 0;
  font-family: inherit;
  font-size: 18px;
  line-height: 28px;
  color: #181818;
  font-weight: 600;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

#review-view .rv-name,
#review-view .rv-feature h2 {
  font-weight: 700;
}

#review-view .rv-name {
  margin-bottom: 32px;
}

#review-view .rv-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 64px;
  padding: 0;
}

#review-view .rv-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6a6a6a;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  cursor: pointer;
  appearance: none;
}

#review-view .rv-filter.is-active {
  color: #722f37;
  font-weight: 600;
}

#review-view .rv-back:focus-visible,
#review-view .rv-filter:focus-visible {
  outline: 2px solid #722f37;
  outline-offset: 4px;
}

@media (hover: hover) {
  #review-view .rv-back:hover {
    background: #f5f5f5;
  }

  #review-view .rv-filter:hover {
    color: #181818;
    background: #f5f5f5;
  }

  #review-view .rv-filter.is-active:hover {
    color: #722f37;
    background: transparent;
  }
}

#review-view .rv-feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 640px;
  margin: 0 0 80px;
}

#review-view .rv-kicker,
#review-view .rv-side,
#review-view .rv-foot,
#review-view .rv-copy,
#review-view .rv-empty {
  margin: 0;
  font-family: inherit;
  font-weight: 400;
  color: #6a6a6a;
  overflow-wrap: break-word;
}

#review-view .rv-copy,
#review-view .rv-empty {
  font-size: 16px;
  line-height: 28px;
}

#review-view .rv-kicker,
#review-view .rv-side,
#review-view .rv-foot {
  font-size: 14px;
  line-height: 20px;
}

#review-view .rv-kicker,
#review-view .rv-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
}

#review-view .rv-kicker time,
#review-view .rv-side time {
  font-variant-numeric: tabular-nums;
}

#review-view .rv-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
  min-width: 0;
}

#review-view .rv-entry {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  column-gap: 48px;
  align-items: start;
  min-width: 0;
}

#review-view .rv-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding-top: 4px;
  text-align: right;
}

#review-view .rv-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}

#review-view .rv-empty {
  padding: 48px 0;
}

@media (max-width: 768px) {
  body.in-detail #review-view.view {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    max-height: none;
    flex: none;
  }
}

@media (max-width: 720px) {
  #review-view .rv {
    padding: 24px 8px 64px;
  }

  #review-view .rv-name {
    margin-bottom: 24px;
  }

  #review-view .rv-filters {
    margin-bottom: 48px;
  }

  #review-view .rv-feature {
    gap: 16px;
    margin-bottom: 56px;
  }

  #review-view .rv-list {
    gap: 48px;
  }

  #review-view .rv-entry {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 12px;
  }

  #review-view .rv-side {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    gap: 8px 16px;
    padding-top: 0;
    text-align: left;
  }
}
