/* 海风征文前台：只作用在征文页。主操作蓝 #4aabde，不改全站按钮。 */

/* 收掉站点页头后，活动顶区紧贴导航，并给内容区一点上留白。 */
body.haifeng-contest-archive .header,
body.haifeng-contest-single .header,
body.haifeng-contest-archive .header-background,
body.haifeng-contest-single .header-background,
body.haifeng-contest-archive .header__content,
body.haifeng-contest-single .header__content,
body.haifeng-contest-archive .header__title,
body.haifeng-contest-single .header__title {
  display: none !important;
}

body.haifeng-contest-archive main.main.haifeng-contest-page,
body.haifeng-contest-single main.main.haifeng-contest-page {
  --site-width: 1120px;
  --header-height: 0px;
  --header-image-height: 0px;
  --main-offset: 0px;
  max-width: 1120px;
  margin-top: 0;
  padding-top: 0.85rem;
}

.haifeng-contest-page .main__wrapper {
  max-width: 1120px;
  min-height: 0;
  padding-top: 0.85rem;
}

.haifeng-contest-archive__header {
  margin-bottom: 1.1rem;
}

.haifeng-contest-archive__intro,
.haifeng-contest-hero__tagline,
.haifeng-contest-card__tagline,
.haifeng-contest-feature__tagline {
  color: #1c4d68;
  line-height: 1.6;
}

.haifeng-contest-archive__body {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-bottom: 2rem;
}

/* 大厅顶部横幅：一场拉满，多场并排，最多三张 */
.haifeng-contest-banners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.haifeng-contest-banner {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 0;
  box-shadow: none;
  background: #fff;
  text-decoration: none;
  color: inherit;
}

.haifeng-contest-banner:hover,
.haifeng-contest-row__link:hover {
  background: #fafafa;
  box-shadow: none;
}

.haifeng-contest-banner:focus-visible,
.haifeng-contest-row__link:focus-visible {
  outline: 2px solid #222;
  outline-offset: 2px;
  box-shadow: none;
}

.haifeng-contest-banner__poster {
  background: #f6f6f6;
  overflow: hidden;
}

.haifeng-contest-banner__poster:has(.haifeng-contest-poster__placeholder) {
  aspect-ratio: 1920 / 720;
}

.haifeng-contest-banner__poster img,
.haifeng-contest-banner__poster .haifeng-contest-poster__image,
.haifeng-contest-row__poster img,
.haifeng-contest-row__poster .haifeng-contest-poster__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.haifeng-contest-banner__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.8rem 0.95rem 0.95rem;
}

.haifeng-contest-banner__title,
.haifeng-contest-row__title {
  margin: 0;
  color: #222;
  line-height: 1.35;
  font-weight: 700;
}

.haifeng-contest-banner__title {
  font-size: 1.2rem;
}

.haifeng-contest-banner__tagline,
.haifeng-contest-banner__remain,
.haifeng-contest-row__tagline,
.haifeng-contest-row__meta {
  margin: 0;
  color: #1c4d68;
  line-height: 1.5;
  font-size: 0.92rem;
}

/* 分组行：左缩略海报，中标题状态，右参赛数和进入按钮 */
.haifeng-contest-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.haifeng-contest-row__link {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) auto;
  gap: 1rem 1.15rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border: 0;
  box-shadow: none;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  color: inherit;
}

.haifeng-contest-row__poster {
  width: 168px;
  border-radius: 8px;
  overflow: hidden;
  background: #f6f6f6;
}

.haifeng-contest-row__poster:has(.haifeng-contest-poster__placeholder) {
  aspect-ratio: 1920 / 720;
}

.haifeng-contest-row__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.haifeng-contest-row__title {
  font-size: 1.15rem;
  word-break: keep-all;
  text-wrap: pretty;
}

.haifeng-contest-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.85rem;
}

.haifeng-contest-row__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.45rem;
  min-width: 8.5rem;
}

.haifeng-contest-row__count {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.05rem;
}

.haifeng-contest-row__count-value {
  color: #222;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.haifeng-contest-row__count-label {
  color: #666;
  font-size: 0.78rem;
}

.haifeng-contest-row__aside .haifeng-contest-btn {
  min-width: 7.5rem;
}

.haifeng-contest-feature {
  border: 0;
  box-shadow: none;
  background: var(--haifeng-mist, #e7f5fc);
  border-radius: 16px;
  overflow: hidden;
}

.haifeng-contest-feature__link {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.9fr);
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.haifeng-contest-feature__poster,
.haifeng-contest-hero__poster {
  background: #f6f6f6;
  overflow: hidden;
}

.haifeng-contest-feature__poster:has(.haifeng-contest-poster__placeholder) {
  aspect-ratio: 1920 / 720;
}

.haifeng-contest-feature__poster img,
.haifeng-contest-hero__poster img,
.haifeng-contest-poster__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.haifeng-contest-feature__meta {
  padding: 1.1rem 1.15rem 1.25rem 0.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
}

.haifeng-contest-feature__title,
.haifeng-contest-hero__title,
.haifeng-contest-card__title {
  margin: 0;
  color: #222;
  line-height: 1.35;
  font-weight: 700;
}

.haifeng-contest-feature__title {
  font-size: 1.45rem;
}

.haifeng-contest-feature__facts,
.haifeng-contest-hero__deadline,
.haifeng-contest-card__remain,
.haifeng-contest-card__deadline,
.haifeng-contest-card__count {
  margin: 0;
  color: #1c4d68;
  font-size: 0.95rem;
}

.haifeng-contest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 0.35rem;
  padding: 0;
}

.haifeng-contest-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.4;
  background: #d7eef8;
  color: #14384c;
}

.haifeng-contest-tag--open {
  background: #4aabde;
  color: #fff;
}

.haifeng-contest-tag--judging {
  background: #1c4d68;
  color: #fff;
}

.haifeng-contest-tag--upcoming {
  background: #e7f5fc;
  color: #1c4d68;
  box-shadow: inset 0 0 0 1px #9ecfe3;
}

.haifeng-contest-tag--published,
.haifeng-contest-tag--closed {
  background: #e8edf1;
  color: #3d4852;
}

.haifeng-contest-group__title {
  margin: 0 0 0.85rem;
  color: var(--haifeng-ink, #14384c);
  font-size: 1.25rem;
}

.haifeng-contest-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.haifeng-contest-card {
  min-width: 0;
}

.haifeng-contest-card__link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  padding: 1rem 1.05rem 1.1rem;
  border: 0;
  box-shadow: none;
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
}

.haifeng-contest-card__link:hover,
.haifeng-contest-feature__link:hover {
  background: #fafafa;
  box-shadow: none;
}

.haifeng-contest-card__link:focus-visible,
.haifeng-contest-feature__link:focus-visible,
.haifeng-contest-btn:focus-visible {
  outline: 2px solid #222;
  outline-offset: 2px;
  box-shadow: none;
}

.haifeng-contest-card__title {
  font-size: 1.1rem;
}

.haifeng-contest-card__go {
  margin-top: auto;
  padding-top: 0.45rem;
  color: #1c4d68;
  font-weight: 650;
  font-size: 0.92rem;
}

/* 详情顶区：左信息约 40%，右大海报约 60%，垂直居中 */
.haifeng-contest-hero {
  display: grid;
  grid-template-columns: minmax(280px, 2fr) minmax(0, 3fr);
  grid-template-areas: "info poster";
  gap: 1.5rem 2rem;
  align-items: center;
  margin: 0 0 2rem;
}

.haifeng-contest-hero__info {
  grid-area: info;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.haifeng-contest-hero__poster {
  grid-area: poster;
  min-width: 0;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  background: #f6f6f6;
}

.haifeng-contest-hero__poster:has(.haifeng-contest-poster__placeholder) {
  aspect-ratio: 16 / 7;
}

.haifeng-contest-hero__title {
  font-size: clamp(1.7rem, 2.5vw, 2.25rem);
  line-height: 1.3;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: pretty;
  line-break: strict;
}

.haifeng-contest-hero__tagline {
  margin: 0;
}

.haifeng-contest-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.75rem;
  margin: 0.2rem 0 0;
  padding: 0.7rem 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.haifeng-contest-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 6.5rem;
}

.haifeng-contest-stat__label {
  color: #666;
  font-size: 0.75rem;
  line-height: 1.3;
}

.haifeng-contest-stat__value {
  color: #222;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.haifeng-contest-stat__value--countdown {
  font-size: 1.28rem;
  letter-spacing: 0.01em;
  min-width: 9rem;
}

.haifeng-contest-stat__unit,
.haifeng-contest-stat__value--text {
  font-size: 0.95rem;
  font-weight: 550;
  color: #1c4d68;
}

.haifeng-contest-stat__value--text {
  padding-top: 0.35rem;
}

.haifeng-contest-hero__deadline {
  margin: 0;
}

.haifeng-contest-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  margin-top: 0.35rem;
  width: 100%;
}

.haifeng-contest-hero__actions .haifeng-contest-btn {
  width: 100%;
  box-sizing: border-box;
}

.haifeng-contest-hero__hint {
  margin: 0;
  color: #1c4d68;
  font-size: 0.92rem;
  line-height: 1.55;
}

.haifeng-contest-hero__hint a {
  color: #1c4d68;
  font-weight: 650;
}

.haifeng-contest-hero__actions--footer {
  flex-direction: row;
  flex-wrap: wrap;
  margin: 2rem 0 1.25rem;
}

.haifeng-contest-hero__actions--footer .haifeng-contest-btn {
  width: auto;
  min-width: 10.5rem;
  flex: 1 1 12rem;
}

.haifeng-contest-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  border-radius: 4px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.98rem;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: none;
}

.haifeng-contest-btn--primary,
button.haifeng-contest-btn--primary {
  background: #4aabde;
  color: #fff;
  border-color: #4aabde;
}

.haifeng-contest-btn--primary:hover,
.haifeng-contest-btn--primary:focus-visible,
button.haifeng-contest-btn--primary:hover {
  background: #3a9ad0;
  border-color: #3a9ad0;
  color: #fff;
}

.haifeng-contest-btn--secondary {
  background: #bdbdbd;
  color: #222;
  border-color: #bdbdbd;
}

.haifeng-contest-btn--secondary:hover,
.haifeng-contest-btn--secondary:focus-visible {
  background: #b0b0b0;
  color: #111;
  border-color: #b0b0b0;
}

.haifeng-contest-btn.is-disabled {
  background: #c5d0d7;
  border-color: #c5d0d7;
  color: #fff;
  cursor: default;
  pointer-events: none;
}

.haifeng-contest-notice {
  margin: 0 0 1rem;
  padding: 0.75rem 0.95rem;
  border-radius: 10px;
  background: #e7f5fc;
  color: #14384c;
}

.haifeng-contest-notice.is-error {
  background: #fdecea;
  color: #8a1f11;
}

.haifeng-contest-enter,
.haifeng-contest-rules,
.haifeng-contest-entries {
  margin: 0 0 1.75rem;
}

.haifeng-contest-enter h2,
.haifeng-contest-rules h2,
.haifeng-contest-entries h2,
.haifeng-contest-entries__award {
  margin: 0 0 0.7rem;
  color: var(--haifeng-ink, #14384c);
}

.haifeng-contest-rules h2 {
  margin: 1.4rem 0 0.65rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--haifeng-line, #9ecfe3);
  font-size: 1.2rem;
}

.haifeng-contest-rules h2:first-child {
  margin-top: 0;
}

.haifeng-contest-rules__body h3 {
  margin: 1.15rem 0 0.45rem;
  color: var(--haifeng-ink, #14384c);
  font-size: 1.05rem;
}

/* 规则开头导语：沿用原文，只加大字号和海风蓝 */
.haifeng-contest-rules__body > p:first-child {
  margin: 0 0 1.15rem;
  color: #4aabde;
  font-size: clamp(1.28rem, 2.1vw, 1.7rem);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.haifeng-contest-enter__stories {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.haifeng-contest-enter__stories label {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  min-height: 44px;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  background: #f5fbfe;
}

.haifeng-contest-enter__already {
  color: #1c4d68;
  font-size: 0.85rem;
}

.haifeng-contest-awards,
.haifeng-contest-schedule {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  color: #1c4d68;
}

.haifeng-contest-awards li {
  display: grid;
  grid-template-columns: minmax(5.5rem, auto) minmax(0, 1fr);
  column-gap: 0.85rem;
  align-items: start;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--haifeng-line, #9ecfe3);
  font-weight: 400;
}

.haifeng-contest-awards li:last-child {
  border-bottom: 0;
}

.haifeng-contest-awards strong {
  font-weight: 700;
  color: var(--haifeng-ink, #14384c);
  line-height: 1.55;
}

.haifeng-contest-awards span {
  display: block;
  font-weight: 400;
  color: #1c4d68;
  line-height: 1.6;
}

.haifeng-contest-schedule li {
  padding: 0.2rem 0;
  line-height: 1.6;
}

.haifeng-contest-rules__body {
  margin: 0 0 0.4rem;
}

.haifeng-contest-empty {
  margin: 0 0 1rem;
  color: #1c4d68;
}

.haifeng-contest-poster__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  box-sizing: border-box;
  background: #f6f6f6;
  border: 1px solid #ddd;
}

.haifeng-contest-card-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

@media screen and (max-width: 900px) {
  body.haifeng-contest-archive main.main.haifeng-contest-page,
  body.haifeng-contest-single main.main.haifeng-contest-page {
    --site-width: 960px;
    max-width: 960px;
    padding-top: 0.55rem;
  }

  .haifeng-contest-page .main__wrapper {
    padding-top: 0.55rem;
  }

  .haifeng-contest-banners {
    grid-template-columns: 1fr;
  }

  .haifeng-contest-row__link {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .haifeng-contest-row__poster {
    width: 100%;
    max-width: 100%;
  }

  .haifeng-contest-row__aside {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
  }

  .haifeng-contest-row__aside .haifeng-contest-btn {
    min-width: 0;
    min-height: 48px;
    flex: 1 1 auto;
    max-width: 14rem;
  }

  .haifeng-contest-feature__link {
    grid-template-columns: 1fr;
  }

  .haifeng-contest-feature__meta {
    padding: 0.95rem 1rem 1.1rem;
  }

  .haifeng-contest-cards {
    grid-template-columns: 1fr;
  }

  .haifeng-contest-hero {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    align-items: stretch;
  }

  .haifeng-contest-hero__info {
    display: contents;
  }

  .haifeng-contest-hero .haifeng-contest-tags { order: 1; }
  .haifeng-contest-hero__title { order: 2; }
  .haifeng-contest-hero__tagline { order: 3; }
  .haifeng-contest-hero__poster { order: 4; }
  .haifeng-contest-hero__facts { order: 5; }
  .haifeng-contest-hero__deadline { order: 6; }
  .haifeng-contest-hero__actions { order: 7; width: 100%; }
  .haifeng-contest-hero__hint { order: 8; }

  .haifeng-contest-hero__poster {
    min-height: 0;
    width: 100%;
  }

  .haifeng-contest-hero__poster:has(.haifeng-contest-poster__placeholder) {
    aspect-ratio: 1920 / 720;
  }

  .haifeng-contest-hero__title {
    font-size: 1.55rem;
  }

  .haifeng-contest-hero__actions {
    flex-direction: column;
  }

  .haifeng-contest-hero__actions .haifeng-contest-btn,
  .haifeng-contest-hero__actions--footer .haifeng-contest-btn {
    width: 100%;
    flex: 0 0 auto;
    min-width: 0;
    min-height: 48px;
  }

  .haifeng-contest-awards li {
    grid-template-columns: 1fr;
    row-gap: 0.15rem;
  }

  .haifeng-contest-awards span {
    padding-left: 0;
  }
}

html[data-mode="dark"] .haifeng-contest-archive__intro,
html[data-mode="dark"] .haifeng-contest-banner__tagline,
html[data-mode="dark"] .haifeng-contest-banner__remain,
html[data-mode="dark"] .haifeng-contest-row__tagline,
html[data-mode="dark"] .haifeng-contest-row__meta,
html[data-mode="dark"] .haifeng-contest-row__count-label,
html[data-mode="dark"] .haifeng-contest-hero__tagline,
html[data-mode="dark"] .haifeng-contest-card__tagline,
html[data-mode="dark"] .haifeng-contest-feature__tagline,
html[data-mode="dark"] .haifeng-contest-feature__facts,
html[data-mode="dark"] .haifeng-contest-hero__deadline,
html[data-mode="dark"] .haifeng-contest-card__remain,
html[data-mode="dark"] .haifeng-contest-card__deadline,
html[data-mode="dark"] .haifeng-contest-card__count,
html[data-mode="dark"] .haifeng-contest-card__go,
html[data-mode="dark"] .haifeng-contest-awards,
html[data-mode="dark"] .haifeng-contest-awards span,
html[data-mode="dark"] .haifeng-contest-schedule,
html[data-mode="dark"] .haifeng-contest-empty,
html[data-mode="dark"] .haifeng-contest-enter__already,
html[data-mode="dark"] .haifeng-contest-hero__hint,
html[data-mode="dark"] .haifeng-contest-hero__hint a,
html[data-mode="dark"] .haifeng-contest-stat__label,
html[data-mode="dark"] .haifeng-contest-stat__unit,
html[data-mode="dark"] .haifeng-contest-stat__value--text {
  color: #cde7f4;
}

html[data-mode="dark"] .haifeng-contest-feature__title,
html[data-mode="dark"] .haifeng-contest-banner__title,
html[data-mode="dark"] .haifeng-contest-row__title,
html[data-mode="dark"] .haifeng-contest-row__count-value,
html[data-mode="dark"] .haifeng-contest-hero__title,
html[data-mode="dark"] .haifeng-contest-card__title,
html[data-mode="dark"] .haifeng-contest-group__title,
html[data-mode="dark"] .haifeng-contest-enter h2,
html[data-mode="dark"] .haifeng-contest-rules h2,
html[data-mode="dark"] .haifeng-contest-rules__body h3,
html[data-mode="dark"] .haifeng-contest-entries h2,
html[data-mode="dark"] .haifeng-contest-entries__award,
html[data-mode="dark"] .haifeng-contest-stat__value,
html[data-mode="dark"] .haifeng-contest-awards strong {
  color: #e9f6fc;
}

html[data-mode="dark"] .haifeng-contest-rules__body > p:first-child {
  color: #7ec8ea;
}

html[data-mode="dark"] .haifeng-contest-hero__facts,
html[data-mode="dark"] .haifeng-contest-rules h2,
html[data-mode="dark"] .haifeng-contest-awards li {
  border-color: #2b5d75;
}

html[data-mode="dark"] .haifeng-contest-feature,
html[data-mode="dark"] .haifeng-contest-banner,
html[data-mode="dark"] .haifeng-contest-row__link,
html[data-mode="dark"] .haifeng-contest-card__link {
  background: #163445;
  border: 0;
  box-shadow: none;
  color: #e9f6fc;
}

html[data-mode="dark"] .haifeng-contest-banner:hover,
html[data-mode="dark"] .haifeng-contest-row__link:hover,
html[data-mode="dark"] .haifeng-contest-card__link:hover,
html[data-mode="dark"] .haifeng-contest-feature__link:hover {
  background: #1a3b4c;
  box-shadow: none;
}

html[data-mode="dark"] .haifeng-contest-btn--secondary,
html[data-mode="dark"] .haifeng-contest-enter__stories label,
html[data-mode="dark"] .haifeng-contest-notice {
  background: #163445;
  border-color: #2b5d75;
  color: #e9f6fc;
}

html[data-mode="dark"] .haifeng-contest-btn--secondary {
  color: #e9f6fc;
}

html[data-mode="dark"] .haifeng-contest-btn--secondary:hover,
html[data-mode="dark"] .haifeng-contest-btn--secondary:focus-visible {
  background: #1c4d68;
  color: #fff;
}

html[data-mode="dark"] .haifeng-contest-tag--upcoming {
  background: #163445;
  color: #cde7f4;
  box-shadow: inset 0 0 0 1px #2b5d75;
}

html[data-mode="dark"] .haifeng-contest-tag--published,
html[data-mode="dark"] .haifeng-contest-tag--closed {
  background: #2a3640;
  color: #d5dde3;
}

html[data-mode="dark"] .haifeng-contest-notice.is-error {
  background: #4a1f1c;
  color: #ffd4ce;
}


/* 0.5.136 要项与作品目录：白纸栏目、空白海报占位、文字书卡网格 */
body.haifeng-contest-single main.main.haifeng-contest-page--single,
body.haifeng-contest-works main.main.haifeng-contest-page--works {
  background: #f3f3f3;
}

body.haifeng-contest-single .haifeng-contest-page--single .main__wrapper,
body.haifeng-contest-works .haifeng-contest-page--works .main__wrapper {
  background: #f3f3f3;
  padding-bottom: 2.5rem;
}

.haifeng-contest-hero {
  background: #fff;
  padding: 1.25rem 1.5rem 1.4rem;
  margin: 0 0 1.15rem;
}

.haifeng-contest-paper {
  background: #fff;
  padding: 2rem 2.15rem 2.35rem;
  margin: 0 0 1.15rem;
}

.haifeng-contest-lead {
  margin: 0 0 1.2rem;
  color: #0081C2;
  font-size: clamp(1.22rem, 2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.65;
  text-align: left;
}

.haifeng-contest-intro,
.haifeng-contest-section__body,
.haifeng-contest-schedule__note {
  color: #222;
  font-size: 1rem;
  line-height: 1.8;
}

.haifeng-contest-intro p,
.haifeng-contest-section__body p,
.haifeng-contest-schedule__note p {
  margin: 0 0 1em;
}

.haifeng-contest-intro p:last-child,
.haifeng-contest-section__body p:last-child,
.haifeng-contest-schedule__note p:last-child {
  margin-bottom: 0;
}

.haifeng-contest-section {
  margin: 1.75rem 0 0;
}

.haifeng-contest-section__title {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 0.85rem;
  padding-bottom: 0;
  color: #222;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
}

.haifeng-contest-section__title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: #ddd;
}

.haifeng-contest-award-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.haifeng-contest-award {
  padding: 0.1rem 0 0.1rem 0.9rem;
  border-left: 3px solid #ddd;
}

.haifeng-contest-award__name {
  margin: 0 0 0.3rem;
  color: #222;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.5;
}

.haifeng-contest-award__desc {
  margin: 0;
  padding-left: 0.15rem;
  color: #222;
  line-height: 1.8;
}

.haifeng-contest-schedule {
  width: 100%;
  border-collapse: collapse;
  color: #222;
}

.haifeng-contest-schedule th,
.haifeng-contest-schedule td {
  padding: 0.55rem 0.75rem 0.55rem 0;
  border-bottom: 1px solid #eee;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
  font-weight: 400;
}

.haifeng-contest-schedule th {
  width: 8.5rem;
  color: #222;
  font-weight: 700;
  white-space: nowrap;
}

.haifeng-contest-schedule__note {
  margin-top: 0.85rem;
}

.haifeng-contest-enter {
  background: #fff;
  padding: 1.35rem 1.5rem 1.5rem;
}

.haifeng-contest-enter h2 {
  color: #222;
}

.haifeng-contest-results .haifeng-contest-entries__award {
  margin: 1rem 0 0.4rem;
  color: #222;
}

.haifeng-contest-works-bar {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr) auto;
  gap: 1rem 1.15rem;
  align-items: center;
  background: #fff;
  padding: 0.9rem 1.05rem;
  margin: 0 0 1.15rem;
}

.haifeng-contest-works-bar__poster {
  width: 288px;
  overflow: hidden;
  background: #f6f6f6;
}

.haifeng-contest-works-bar__poster:has(.haifeng-contest-poster__placeholder) {
  aspect-ratio: 16 / 7;
}

.haifeng-contest-works-bar__poster img,
.haifeng-contest-works-bar__poster .haifeng-contest-poster__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.haifeng-contest-works-bar__poster .haifeng-contest-poster__placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

.haifeng-contest-works-bar__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.haifeng-contest-works-bar__title {
  margin: 0;
  color: #222;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: pretty;
  line-break: strict;
}

.haifeng-contest-works-bar__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  min-width: 8.5rem;
}

.haifeng-contest-works-bar__count {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.05rem;
}

.haifeng-contest-works-bar__count-value {
  color: #222;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.haifeng-contest-works-bar__count-label {
  color: #666;
  font-size: 0.8rem;
}

.haifeng-contest-entries {
  background: #fff;
  padding: 1.2rem 1.35rem 1.6rem;
}

.haifeng-contest-page--works .haifeng-contest-entries h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media screen and (max-width: 900px) {
  .haifeng-contest-hero,
  .haifeng-contest-paper,
  .haifeng-contest-enter,
  .haifeng-contest-entries {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .haifeng-contest-works-bar {
    grid-template-columns: 1fr;
    padding: 0.85rem 1rem;
  }

  .haifeng-contest-works-bar__poster {
    width: 100%;
  }

  .haifeng-contest-works-bar__aside {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
  }

  .haifeng-contest-works-bar__aside .haifeng-contest-btn {
    min-height: 48px;
  }

  .haifeng-contest-schedule th {
    width: auto;
    display: block;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .haifeng-contest-schedule td {
    display: block;
  }
}

html[data-mode="dark"] .haifeng-contest-lead {
  color: #5ebdde;
}

html[data-mode="dark"] body.haifeng-contest-single main.main.haifeng-contest-page--single,
html[data-mode="dark"] body.haifeng-contest-works main.main.haifeng-contest-page--works,
html[data-mode="dark"] body.haifeng-contest-single .haifeng-contest-page--single .main__wrapper,
html[data-mode="dark"] body.haifeng-contest-works .haifeng-contest-page--works .main__wrapper {
  background: #12222b;
}

html[data-mode="dark"] .haifeng-contest-hero,
html[data-mode="dark"] .haifeng-contest-paper,
html[data-mode="dark"] .haifeng-contest-enter,
html[data-mode="dark"] .haifeng-contest-entries,
html[data-mode="dark"] .haifeng-contest-works-bar {
  background: #163445;
}

html[data-mode="dark"] .haifeng-contest-intro,
html[data-mode="dark"] .haifeng-contest-section__body,
html[data-mode="dark"] .haifeng-contest-schedule__note,
html[data-mode="dark"] .haifeng-contest-award__desc,
html[data-mode="dark"] .haifeng-contest-schedule,
html[data-mode="dark"] .haifeng-contest-works-bar__count-label,
html[data-mode="dark"] .haifeng-contest-works-bar__countdown,
html[data-mode="dark"] .haifeng-contest-stat__value--countdown {
  color: #cde7f4;
}

html[data-mode="dark"] .haifeng-contest-section__title,
html[data-mode="dark"] .haifeng-contest-award__name,
html[data-mode="dark"] .haifeng-contest-schedule th,
html[data-mode="dark"] .haifeng-contest-enter h2,
html[data-mode="dark"] .haifeng-contest-works-bar__title,
html[data-mode="dark"] .haifeng-contest-works-bar__count-value,
html[data-mode="dark"] .haifeng-contest-results .haifeng-contest-entries__award {
  color: #e9f6fc;
}

html[data-mode="dark"] .haifeng-contest-section__title::after,
html[data-mode="dark"] .haifeng-contest-award,
html[data-mode="dark"] .haifeng-contest-schedule th,
html[data-mode="dark"] .haifeng-contest-schedule td,
html[data-mode="dark"] .haifeng-contest-hero__facts {
  border-color: #2b5d75;
  background-color: transparent;
}

html[data-mode="dark"] .haifeng-contest-section__title::after {
  background: #2b5d75;
}

html[data-mode="dark"] .haifeng-contest-poster__placeholder,
html[data-mode="dark"] .haifeng-contest-hero__poster,
html[data-mode="dark"] .haifeng-contest-works-bar__poster,
html[data-mode="dark"] .haifeng-contest-banner__poster,
html[data-mode="dark"] .haifeng-contest-row__poster {
  background: #24343c;
}

html[data-mode="dark"] .haifeng-contest-poster__placeholder {
  border-color: #3d5560;
}

html[data-mode="dark"] .haifeng-contest-btn--secondary {
  background: #7a868c;
  color: #111;
  border-color: #7a868c;
}

/* 0.5.138 参赛作品目录：加宽内容区、五列等宽等高、贴吧小图标、手机适配 */
/* 0.5.139 作品目录外链：三个图标细边框，新增有男不玩ML与海风团 */
/* 0.5.140 作品目录书名：自托 Noto Serif SC Medium，补印刷质感 */
/* 0.5.141 大厅/要项质感、空白海报细边、倒计时到分钟 */

body.haifeng-contest-works {
  --site-width: 1240px;
}

body.haifeng-contest-works main.main.haifeng-contest-page,
body.haifeng-contest-works main.main.haifeng-contest-page--works,
body.haifeng-contest-works .haifeng-contest-page--works .main__wrapper {
  --site-width: 1240px;
  max-width: 1240px;
  width: 100%;
  background: #fff;
}

body.haifeng-contest-works .haifeng-contest-page--works .main__wrapper {
  padding-bottom: 2.75rem;
}

.haifeng-contest-works-bar {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr) auto;
  gap: 0.85rem 1.15rem;
  align-items: center;
  background: #fff;
  padding: 0.35rem 0 1.05rem;
  margin: 0;
  border-bottom: 1px solid #dddddd;
}

.haifeng-contest-works-bar__poster {
  width: 288px;
  overflow: hidden;
  background: #f6f6f6;
}

.haifeng-contest-works-bar__poster:has(.haifeng-contest-poster__placeholder) {
  aspect-ratio: 16 / 7;
}

.haifeng-contest-works-bar__poster img,
.haifeng-contest-works-bar__poster .haifeng-contest-poster__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.haifeng-contest-works-bar__poster .haifeng-contest-poster__placeholder {
  display: block;
  width: 100%;
  height: 100%;
}

.haifeng-contest-works-bar__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.haifeng-contest-works-bar__title {
  margin: 0;
  color: #222;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: pretty;
  line-break: strict;
}

.haifeng-contest-works-bar__blurb {
  margin: 0;
  color: #444;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.haifeng-contest-works-bar__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.haifeng-contest-works-bar__meta .haifeng-contest-tags {
  margin: 0;
}

.haifeng-contest-works-bar__count {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  gap: 0.3rem;
}

.haifeng-contest-works-bar__count-value {
  color: #222;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.haifeng-contest-works-bar__count-label {
  color: #666;
  font-size: 0.8rem;
}

.haifeng-contest-works-bar__aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 9.5rem;
  gap: 0.55rem;
}

.haifeng-contest-works-bar__guide {
  min-width: 9.5rem;
  background: #bdbdbd;
  color: #222;
  border-color: #bdbdbd;
  border-radius: 3px;
  font-weight: 600;
  box-shadow: none;
}

.haifeng-contest-works-bar__guide:hover,
.haifeng-contest-works-bar__guide:focus-visible {
  background: #b0b0b0;
  color: #111;
  border-color: #b0b0b0;
}

.haifeng-contest-works-bar__countdown {
  margin: 0;
  color: #666;
  font-size: 0.78rem;
  line-height: 1.4;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.haifeng-contest-works-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: visible;
}

.haifeng-contest-works-links__item {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  line-height: 0;
}

.haifeng-contest-works-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  padding: 3px;
  line-height: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dddddd;
  border-radius: 3px;
  box-shadow: none;
}

.haifeng-contest-works-links a:hover,
.haifeng-contest-works-links a:focus-visible {
  border-color: #bbbbbb;
  box-shadow: none;
}

.haifeng-contest-works-links a:focus-visible {
  outline: 1px solid #888888;
  outline-offset: 1px;
}

.haifeng-contest-works-links img {
  display: block;
  width: 20px;
  height: 20px;
  max-width: 20px;
  max-height: 20px;
  object-fit: contain;
  object-position: center;
  vertical-align: bottom;
  overflow: visible;
}

.haifeng-contest-page--works .haifeng-contest-entries,
.haifeng-contest-entries--works {
  background: #fff;
  padding: 0;
  margin: 0;
}

.haifeng-contest-page--works .haifeng-contest-entries h2,
.haifeng-contest-page--works .haifeng-contest-entries .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.haifeng-contest-works-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #dddddd;
  border-top: 1px solid #dddddd;
  border-bottom: 1px solid #dddddd;
}

.haifeng-contest-works-grid::before {
  content: none;
  display: none;
}

.haifeng-contest-work-card {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: auto;
  min-width: 0;
  max-width: 100%;
  height: 248px;
  margin: 0;
  padding: 15px;
  background: #fff;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
}

.haifeng-contest-work-card:nth-child(5n + 1),
.haifeng-contest-work-card:nth-child(5n) {
  width: auto;
  border: 0;
}

.haifeng-contest-work-card__num {
  position: absolute;
  top: -8px;
  right: 8px;
  z-index: 1;
  display: inline-block;
  box-sizing: border-box;
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  border-radius: 8px;
  background: #eae9e8;
  color: #222;
  font-size: 11px;
  font-weight: 400;
  line-height: 16px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
}

.haifeng-contest-work-card__title {
  margin: 0 1.2rem 8px 0;
  height: 5.6em;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.25px;
  font-family: "HF Noto Serif SC", "Songti SC", "STSong", "NSimSun", "SimSun", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.haifeng-contest-work-card__title a {
  text-decoration: none;
  color: inherit;
}

.haifeng-contest-work-card__title a:hover,
.haifeng-contest-work-card__title a:focus-visible {
  color: #0081c2;
  text-decoration: none;
}

.haifeng-contest-work-card--rose .haifeng-contest-work-card__title a { color: #E0005E; }
.haifeng-contest-work-card--crimson .haifeng-contest-work-card__title a { color: #EE2323; }
.haifeng-contest-work-card--ink .haifeng-contest-work-card__title a { color: #222222; }
.haifeng-contest-work-card--orange .haifeng-contest-work-card__title a { color: #FF5E23; }
.haifeng-contest-work-card--pink .haifeng-contest-work-card__title a { color: #FF5D81; }
.haifeng-contest-work-card--navy .haifeng-contest-work-card__title a { color: #0033C4; }
.haifeng-contest-work-card--sky .haifeng-contest-work-card__title a { color: #4aabde; }
.haifeng-contest-work-card--violet .haifeng-contest-work-card__title a { color: #371F6A; }
.haifeng-contest-work-card--amber .haifeng-contest-work-card__title a { color: #FF9D00; }

.haifeng-contest-work-card__excerpt {
  margin: 0 0 8px;
  height: 4.5em;
  color: #222;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.25px;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.haifeng-contest-work-card__foot {
  margin-top: auto;
  color: #666;
  font-size: 11.5px;
  line-height: 1.35;
  letter-spacing: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
}

.haifeng-contest-work-card__author,
.haifeng-contest-work-card__genres,
.haifeng-contest-work-card__updated {
  color: #666;
}

.haifeng-contest-work-card__author + .haifeng-contest-work-card__genres,
.haifeng-contest-work-card__author + .haifeng-contest-work-card__updated,
.haifeng-contest-work-card__genres + .haifeng-contest-work-card__updated {
  margin-top: 0.15em;
}

/* 平板：2 列等宽等高，分割线保留。不改要项页。 */
@media screen and (max-width: 999px) {
  body.haifeng-contest-works {
    --site-width: 100%;
  }

  body.haifeng-contest-works main.main.haifeng-contest-page,
  body.haifeng-contest-works main.main.haifeng-contest-page--works,
  body.haifeng-contest-works .haifeng-contest-page--works .main__wrapper {
    --site-width: 100%;
    max-width: 100%;
    width: 100%;
  }

  body.haifeng-contest-works .haifeng-contest-works-bar {
    grid-template-columns: 288px minmax(0, 1fr);
    padding: 0.35rem 1rem 1rem;
  }

  body.haifeng-contest-works .haifeng-contest-works-bar__poster {
    width: 288px;
  }

  body.haifeng-contest-works .haifeng-contest-works-bar__aside {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    min-width: 0;
    gap: 0.65rem 1rem;
  }

  body.haifeng-contest-works .haifeng-contest-works-bar__guide {
    min-height: 44px;
  }

  .haifeng-contest-works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .haifeng-contest-work-card,
  .haifeng-contest-work-card:nth-child(5n + 1),
  .haifeng-contest-work-card:nth-child(5n) {
    width: auto;
    border: 0;
  }
}

/* 手机：1 列全宽，仅横向分割线；顶栏海报仍铺满，正文与按钮收成更紧的横排。 */
@media screen and (max-width: 782px) {
  body.haifeng-contest-works .haifeng-contest-works-bar {
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 0.5rem;
    padding: 0.45rem 1rem 0.8rem;
  }

  body.haifeng-contest-works .haifeng-contest-works-bar__poster {
    width: 100%;
    max-width: 100%;
  }

  body.haifeng-contest-works .haifeng-contest-works-bar__body {
    gap: 0.28rem;
  }

  body.haifeng-contest-works .haifeng-contest-works-bar__title {
    font-size: 1.18rem;
  }

  body.haifeng-contest-works .haifeng-contest-works-bar__blurb {
    line-height: 1.55;
  }

  body.haifeng-contest-works .haifeng-contest-works-bar__meta {
    gap: 0.4rem 0.75rem;
  }

  body.haifeng-contest-works .haifeng-contest-works-bar__aside {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "guide links"
      "countdown countdown";
    align-items: center;
    justify-content: stretch;
    width: 100%;
    min-width: 0;
    gap: 0.3rem 0.75rem;
  }

  body.haifeng-contest-works .haifeng-contest-works-bar__guide {
    grid-area: guide;
    width: auto;
    min-width: 8.5rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.haifeng-contest-works .haifeng-contest-works-bar__countdown {
    grid-area: countdown;
    text-align: left;
  }

  body.haifeng-contest-works .haifeng-contest-works-links {
    grid-area: links;
    justify-content: flex-end;
    justify-self: end;
    max-width: 100%;
  }

  body.haifeng-contest-works .haifeng-contest-works-links a {
    width: 28px;
    height: 28px;
    padding: 3px;
    flex: 0 0 28px;
  }

  body.haifeng-contest-works .haifeng-contest-works-links img {
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
  }

  .haifeng-contest-page--works .haifeng-contest-entries,
  .haifeng-contest-entries--works {
    padding-left: 0;
    padding-right: 0;
  }

  .haifeng-contest-works-grid {
    grid-template-columns: 1fr;
    gap: 0;
    background: transparent;
    border-top: 1px solid #dddddd;
    border-bottom: 0;
  }

  .haifeng-contest-work-card,
  .haifeng-contest-work-card:nth-child(5n + 1),
  .haifeng-contest-work-card:nth-child(5n) {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 14px 16px 16px;
    border: 0;
    border-bottom: 1px solid #dddddd;
  }

  .haifeng-contest-work-card__title {
    height: auto;
    max-height: 6.8em;
    margin: 0 1.35rem 0.4em 0;
    font-size: 17px;
    line-height: 1.45;
  }

  .haifeng-contest-work-card__excerpt {
    height: auto;
    max-height: 4.65em;
    font-size: 14px;
    line-height: 1.55;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  .haifeng-contest-work-card__foot {
    font-size: 12.5px;
    line-height: 1.45;
  }
}

html[data-mode="dark"] body.haifeng-contest-works main.main.haifeng-contest-page--works,
html[data-mode="dark"] body.haifeng-contest-works .haifeng-contest-page--works .main__wrapper,
html[data-mode="dark"] .haifeng-contest-page--works .haifeng-contest-entries,
html[data-mode="dark"] .haifeng-contest-entries--works,
html[data-mode="dark"] .haifeng-contest-works-bar,
html[data-mode="dark"] .haifeng-contest-work-card {
  background: #163445;
}

html[data-mode="dark"] .haifeng-contest-works-bar {
  border-bottom-color: #2b5d75;
}

html[data-mode="dark"] .haifeng-contest-works-grid {
  background: #2b5d75;
  border-top-color: #2b5d75;
  border-bottom-color: #2b5d75;
}

html[data-mode="dark"] .haifeng-contest-works-grid::before {
  border-bottom-color: #2b5d75;
}

html[data-mode="dark"] .haifeng-contest-work-card {
  border-color: #2b5d75;
}

html[data-mode="dark"] .haifeng-contest-works-bar__title,
html[data-mode="dark"] .haifeng-contest-works-bar__count-value {
  color: #e9f6fc;
}

html[data-mode="dark"] .haifeng-contest-works-bar__blurb {
  color: #cde7f4;
}

html[data-mode="dark"] .haifeng-contest-works-bar__count-label,
html[data-mode="dark"] .haifeng-contest-work-card__author,
html[data-mode="dark"] .haifeng-contest-work-card__genres,
html[data-mode="dark"] .haifeng-contest-work-card__updated {
  color: #9ab3c0;
}

html[data-mode="dark"] .haifeng-contest-work-card__num {
  background: #2a3c46;
  color: #e9f6fc;
}

html[data-mode="dark"] .haifeng-contest-work-card__excerpt {
  color: #cde7f4;
}

html[data-mode="dark"] .haifeng-contest-work-card--ink .haifeng-contest-work-card__title a {
  color: #e9f6fc;
}

html[data-mode="dark"] .haifeng-contest-work-card--violet .haifeng-contest-work-card__title a {
  color: #c8b4f0;
}

html[data-mode="dark"] .haifeng-contest-work-card--navy .haifeng-contest-work-card__title a {
  color: #7ea2ff;
}

html[data-mode="dark"] .haifeng-contest-work-card__title a:hover,
html[data-mode="dark"] .haifeng-contest-work-card__title a:focus-visible {
  color: #7ec8ee;
}

@media screen and (max-width: 782px) {
  html[data-mode="dark"] .haifeng-contest-works-grid {
    background: transparent;
    border-top-color: #2b5d75;
  }

  html[data-mode="dark"] .haifeng-contest-work-card {
    border-bottom-color: #2b5d75;
  }
}

/* 0.5.145 仅手机宽度：大厅列表改回紧凑横排缩略图；要项收间距与堆叠，不改电脑/平板规则。 */
@media screen and (max-width: 782px) {
  .haifeng-contest-archive__body {
    gap: 1.25rem;
    padding-bottom: 1.5rem;
  }

  .haifeng-contest-group__title {
    margin-bottom: 0.7rem;
  }

  .haifeng-contest-rows {
    gap: 0.6rem;
  }

  .haifeng-contest-row__link {
    grid-template-columns: 132px minmax(0, 1fr);
    grid-template-areas:
      "poster body"
      "aside aside";
    gap: 0.55rem 0.7rem;
    align-items: center;
    padding: 0.65rem 0.7rem;
  }

  .haifeng-contest-row__poster {
    grid-area: poster;
    width: 132px;
    max-width: 132px;
    flex-shrink: 0;
  }

  .haifeng-contest-row__body {
    grid-area: body;
    gap: 0.22rem;
  }

  .haifeng-contest-row__title {
    font-size: 1.05rem;
    line-height: 1.35;
  }

  .haifeng-contest-row__body .haifeng-contest-tags {
    margin: 0;
  }

  .haifeng-contest-row__meta {
    gap: 0.1rem 0.65rem;
    font-size: 0.85rem;
  }

  .haifeng-contest-row__aside {
    grid-area: aside;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    gap: 0.5rem;
  }

  .haifeng-contest-row__count {
    flex-direction: row;
    align-items: baseline;
    gap: 0.28rem;
    flex: 0 0 auto;
  }

  .haifeng-contest-row__count-value {
    font-size: 1.2rem;
    line-height: 1.1;
  }

  .haifeng-contest-row__count-label {
    white-space: nowrap;
    font-size: 0.78rem;
  }

  .haifeng-contest-row__aside .haifeng-contest-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 7.25rem;
    max-width: none;
    min-height: 44px;
    padding: 0.4rem 1rem;
  }

  .haifeng-contest-hero {
    gap: 0.7rem;
    padding: 0.9rem 1rem 1.05rem;
    margin-bottom: 0.9rem;
  }

  .haifeng-contest-hero .haifeng-contest-tags { order: 2; }
  .haifeng-contest-hero__title { order: 3; font-size: 1.4rem; }
  .haifeng-contest-hero__tagline { order: 4; }
  .haifeng-contest-hero__poster { order: 1; }
  .haifeng-contest-hero__facts { order: 5; }
  .haifeng-contest-hero__deadline { order: 6; }
  .haifeng-contest-hero__actions { order: 7; width: 100%; gap: 0.5rem; margin-top: 0.15rem; }
  .haifeng-contest-hero__hint { order: 8; }

  .haifeng-contest-hero__facts {
    gap: 0.65rem 1.25rem;
    margin: 0;
    padding: 0.55rem 0;
  }

  .haifeng-contest-stat__value {
    font-size: 1.45rem;
  }

  .haifeng-contest-stat__value--countdown {
    font-size: 1.15rem;
    min-width: 0;
  }

  .haifeng-contest-hero__actions .haifeng-contest-btn,
  .haifeng-contest-hero__actions--footer .haifeng-contest-btn {
    width: 100%;
    min-height: 46px;
  }

  .haifeng-contest-paper {
    padding: 1.25rem 1rem 1.5rem;
    margin-bottom: 0.9rem;
  }

  .haifeng-contest-section {
    margin-top: 1.4rem;
  }

  .haifeng-contest-section__title {
    margin-bottom: 0.7rem;
    font-size: 1.12rem;
  }

  .haifeng-contest-intro,
  .haifeng-contest-section__body,
  .haifeng-contest-schedule__note {
    font-size: 0.98rem;
    line-height: 1.75;
  }
}
