.competition-news-page {
  background: #f5f5f5;
}

.competition-news-hero {
  position: relative;
  min-height: calc(328 / 12 * 1rem);
  overflow: hidden;
  color: #fff;
}

.competition-news-hero::after {
  content: "";
  position: absolute;
  inset: 0;
}

.competition-news-hero__media {
  width: 100%;
  min-height: calc(328 / 12 * 1rem);
  object-fit: cover;
}

.competition-news-hero__content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 7% 25px;
  text-align: center;
}

.competition-news-hero__title {
  font-size: calc(26 / 12 * 1rem);
  line-height: 1.18;
  font-weight: 700;
}

.competition-news-hero__desc {
  max-width: 26rem;
  margin-top: 18px;
  font-size: calc(12 / 12 * 1rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.competition-news-hero__features {
  width: 100%;
  max-width: 25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 16px;
  margin-top: 24px;
  text-align: left;
}

.competition-news-hero__features span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: calc(11 / 12 * 1rem);
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
}

.competition-news-hero__features img {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  object-fit: contain;
}

.competition-news-tabs-section {
  margin-top: 0;
  padding: 0 0% 60px;
}

.competition-news-tabs {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 60px 3% 25px;
}

.competition-news-tab {
  position: relative;
  flex: initial;
  min-height: 41px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: #31343a;
  font-size: calc(14 / 12 * 1rem);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(20, 24, 30, 0.1);
  cursor: pointer;
}

.competition-news-tab.is-active {
  background: #30333a;
  color: #fff;
}

.competition-news-tab.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 9px solid #30333a;
  transform: translateX(-50%);
}

.competition-card__drawer-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 12px;
  padding-left: 4%;
}

.competition-card__drawer-tab {
  /* flex: 1; */
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 20px;
  border: 0;
  border-radius: 100px;
  background: #9b9c9f;
  color: #fff;
  font-size: calc(12 / 12 * 1rem);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.competition-card__drawer-tab.is-active {
  background: #f19135;
  color: #fff;
}

.competition-card__body-panel {
  background-color: #f5f5f5;
  border-radius: 10px;
}

.competition-list {
  display: grid;
  gap: 25px;
  background-color: #fff;
}

.competition-card,
.news-feed {
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  background: #fff;
}

.competition-card {
  padding: 22px 16px 18px;
}

.competition-card__head {
  margin-bottom: 25px;
  padding-left: 4%;
}

.competition-card__title {
  font-size: calc(22 / 12 * 1rem);
  line-height: 1.35;
  font-weight: 700;
  color: #222;
}

.competition-card__summary {
  margin-top: 7px;
  font-size: calc(11 / 12 * 1rem);
  line-height: 1.65;
  color: #5c5f66;
}

.competition-event-card {
  position: relative;
  min-height: calc(155 / 12 * 1rem);
  overflow: hidden;
  border-radius: 10px;
  background: #30333a;
}

.competition-event-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.competition-event-card::after {
  content: "";
  position: absolute;
  inset: 0;
}

.competition-event-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 10% 6%;
  color: #fff;
}

.competition-event-card__overlay h3 {
  position: relative;
  padding-left: 10px;
  font-size: calc(16 / 12 * 1rem);
  line-height: 1.35;
  font-weight: 700;
}

.competition-event-card__overlay h3::before {
  content: "";
  position: absolute;
  left: 0;
  width: 3px;
  background: #fff;
}

.competition-card__section h3::before {
  content: "";
  position: absolute;
  left: 0;
  width: 3px;
  background: #2a2b2f;
}

.competition-event-card__overlay h3::before {
  top: 2px;
  bottom: 2px;
}

.competition-event-card__overlay p {

  margin-top: 10px;
  font-size: calc(12 / 12 * 1rem);
  line-height: 1.5;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.84);
}

.competition-event-card__overlay p span {
  color: #f49a2f;
}

.competition-drawer {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-top: 2px;
}

.competition-drawer__item {
  position: relative;
  z-index: 5;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  transition: z-index 0.25s ease;
}

.competition-drawer__item:not(:first-child) {
  margin-top: -10px;
}

.competition-drawer__item.is-expanded {
  z-index: 5;
  margin-top: 10px;
  border-radius: 8px;
}

.competition-drawer__item:first-child.is-expanded {
  margin-top: 0;
}

.competition-drawer[data-drawer-sync] .competition-drawer__item.is-expanded:not(:first-child) {
  margin-top: 0;
  /* border-radius: 0 0 8px 8px; */
}

.competition-drawer[data-drawer-sync] .competition-drawer__item:not(.is-expanded) {
  display: none;
}

.competition-drawer__item.is-final-item {
  margin-top: -10px;
}

.competition-drawer__trigger {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  border: 0;
  background: #7489a8;
  color: #fff;
  font-size: calc(18 / 12 * 1rem);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.competition-drawer__trigger--orange {
  background: #f0a13a;
}

.competition-drawer__icon {
  flex: 0 0 auto;
  height: 70%;
  display: inline-flex;
  align-items: center;
}

.competition-drawer__icon img {
  height: 100%;
  width: auto;
  display: block;
}

.competition-drawer__content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, transform 0.45s ease;
}

.competition-drawer__item.is-expanded .competition-drawer__content {
  opacity: 1;
  transform: translateY(0);
}

.competition-drawer .competition-event-card {
  border-radius: 0 0 6px 6px;
}

.competition-drawer-detail[hidden] {
  display: none;
}

.competition-card__section {
  margin-top: 16px;
  padding-left: 4%;
  padding-right: 4%;
}

.competition-card--ai .competition-card__section {
  margin-top: 22px;
  padding-left: 4%;
  padding-right: 4%;
}

.competition-card__section+.competition-card__section {
  position: relative;
  padding-top: 22px;
  border-top: 0;
}

.competition-card__section+.competition-card__section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 90%;
  height: 1px;
  background: #d9d9d9;
  transform: translateX(-50%);
}

.competition-card__section h3 {
  position: relative;
  padding-left: 10px;
  font-size: calc(18 / 12 * 1rem);
  line-height: 1.4;
  font-weight: 500;
  color: #222;
}

.competition-card__section h3::before {
  top: 3px;
  bottom: 3px;
}

.competition-card__section ul {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  padding-left: 0;
  list-style: none;
  color: #5f6269;
  font-size: calc(12 / 12 * 1rem);
  line-height: 1.62;
}

.competition-card__section li {
  position: relative;
  padding-left: 12px;
}

.competition-card__section li strong {
  color: #30333a;
  font-weight: 500;
}

.competition-card__section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  /* 去掉宽高、圆角、背景色，改用 border 画三角形 */
  width: 0;
  height: 0;
  border-radius: 0;
  background: transparent;
  /* 三角形样式（指向右侧） */
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid #f49a2f;
  transform: translateY(-50%);
}

.competition-tags {
  display: flex;
  flex-wrap: wrap;
  /* 自动换行 */
  gap: 7px;
  /* 间距保持不变 */
  margin-top: 10px;
}

.competition-tags span {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 8px;
  border-radius: 99px;
  background: #fff;
  color: #595c63;
  font-size: calc(12 / 12 * 1rem);
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
}

.competition-card__note {
  margin-top: 14px;
  font-size: calc(12 / 12 * 1rem);
  line-height: 1.55;
  color: #777;
  padding-left: 4%;
}

.competition-card__note {
  position: relative;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 0;
}

.competition-card--ai .competition-card__note {
  font-size: calc(12 / 12 * 1rem);
  color: #565961;
}

.competition-card__note::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 90%;
  height: 1px;
  background: #d9d9d9;
  transform: translateX(-50%);
}

.competition-card__note strong {
  color: #30333a;
  font-weight: 700;
}

.competition-card__note span {
  margin: 0 8px;
  color: #30333a;
}

.competition-card__button {
  min-height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
  padding: 0 16px;
  border-radius: 999px;
  background: #f49a2f;
  color: #fff;
  font-size: calc(12 / 12 * 1rem);
  font-weight: 700;
  margin-bottom: 30px;
  margin-left: 4%;
}

.news-feed {
  padding: 42px 18px 24px;
}

.news-feed__item {
  display: grid;
  gap: 10px;
  padding: 18px 0;
  border-bottom: 1px solid #e9e9e9;
}

.news-feed__item:first-child {
  padding-top: 0;
}

.news-feed__item:last-child {
  border-bottom: 0;
}

.news-feed__item time {
  color: #e7a740;
  font-size: calc(12 / 12 * 1rem);
  font-weight: 700;
}

.news-feed__item span {
  color: #222;
  font-size: calc(13 / 12 * 1rem);
  line-height: 1.55;
}

@media (min-width: 769px) {
  .competition-news-page {
    background: #f5f5f5;
  }
}