/* =========================================================
   学员荣誉锦旗墙 · 方案一「暗色荣誉厅」
   独立组件样式
   ========================================================= */

.honor-wall-sec {
  padding: 0;
  background: var(--bg-alt);
}

.honor-hall {
  position: relative;
  overflow: hidden;
  padding: 34px 0 28px;
  background: var(--bg-alt);
}

.honor-hall::before {
  position: absolute;
  top: -120px;
  left: 50%;
  width: 760px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(11, 99, 229, 0.08), transparent);
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

.honor-hall__head {
  position: relative;
  max-width: 760px;
  margin-bottom: 116px;
  text-align: center;
}

.honor-hall__head h2.honor-hall__title {
  position: relative;
  display: inline-block;
  margin-bottom: 10px;
  color: #0a2540;
  font-family: inherit;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.45;
  text-indent: 0;
}

.honor-hall__head h2.honor-hall__title::after {
  display: block;
  width: 56px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 2px;
  background: #0a2540;
  content: "";
}

.honor-hall__head .honor-hall__lead {
  margin: 0;
  color: #5f6f83;
  font-size: 16px;
  line-height: 1.7;
}

.honor-wall__track {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 2.2%;
}

.honor-flag {
  position: relative;
  width: 12.4%;
  min-width: 0;
  padding: 12px 10px 10px;
  border: 0;
  border-radius: 12px;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.3s ease;
}

.honor-flag__visual {
  position: relative;
  display: block;
}

.honor-flag__visual::before {
  position: absolute;
  right: -10%;
  bottom: calc(100% - 10px);
  left: -10%;
  height: 110px;
  z-index: 0;
  border-radius: 50% 50% 38% 38%;
  background:
    radial-gradient(ellipse 52% 42% at 50% 20%, rgba(255, 255, 255, 0.96) 0%, rgba(181, 216, 255, 0.62) 32%, rgba(94, 162, 255, 0.2) 66%, transparent 82%),
    linear-gradient(180deg, rgba(11, 99, 229, 0.03) 0%, rgba(11, 99, 229, 0.2) 78%, transparent 100%);
  content: "";
  filter: blur(13px);
  opacity: 1;
  pointer-events: none;
  transition: background 0.35s ease, filter 0.35s ease, opacity 0.35s ease;
}

.honor-flag__visual::after {
  position: absolute;
  right: -8%;
  bottom: calc(100% - 18px);
  left: -8%;
  height: 54px;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, 0.98), rgba(166, 207, 255, 0.48) 38%, rgba(11, 99, 229, 0) 74%);
  content: "";
  filter: blur(8px);
  pointer-events: none;
  transition: height 0.35s ease, background 0.35s ease;
}

.honor-flag img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 22px rgba(10, 37, 64, 0.18));
  transition: filter 0.3s ease;
}

.honor-flag:nth-child(even) {
  margin-top: 30px;
}

.honor-flag:hover,
.honor-flag:focus-visible {
  transform: translateY(-10px);
}

.honor-flag:focus-visible {
  outline: 2px solid #0a2540;
  outline-offset: 7px;
  border-radius: 4px;
}

.honor-flag:hover .honor-flag__visual::before,
.honor-flag:focus-visible .honor-flag__visual::before {
  background:
    radial-gradient(ellipse 54% 44% at 50% 20%, rgba(255, 255, 255, 1) 0%, rgba(209, 230, 255, 0.64) 34%, rgba(94, 162, 255, 0.16) 66%, transparent 82%),
    linear-gradient(180deg, rgba(11, 99, 229, 0.04) 0%, rgba(11, 99, 229, 0.2) 78%, transparent 100%);
  filter: blur(17px);
  opacity: 1;
}

.honor-flag:hover .honor-flag__visual::after,
.honor-flag:focus-visible .honor-flag__visual::after {
  height: 72px;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, 1), rgba(166, 207, 255, 0.48) 40%, rgba(11, 99, 229, 0) 76%);
}

.honor-flag:hover img,
.honor-flag:focus-visible img {
  filter: drop-shadow(0 22px 30px rgba(10, 37, 64, 0.24)) brightness(1.03);
}

.honor-flag__meta {
  display: block;
  margin-top: 12px;
  text-align: center;
}

.honor-flag__no {
  display: block;
  margin-bottom: 3px;
  color: #718096;
  font-size: 10px;
  font-style: normal;
  letter-spacing: 2px;
}

.honor-flag__meta strong {
  display: block;
  color: #0a2540;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.5;
}

.honor-flag__meta time {
  display: block;
  margin-top: 1px;
  color: #7b899b;
  font-size: 10px;
  line-height: 1.5;
}

body.honor-lightbox-open {
  overflow: hidden;
}

/* ---------- 灯箱 ---------- */
.honor-lightbox {
  width: 800px;
  max-width: calc(100% - 40px);
  max-height: 90vh;
  padding: 0;
  overflow: visible;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f2ede2;
}

.honor-lightbox::backdrop {
  background: rgba(8, 10, 16, 0.78);
  backdrop-filter: blur(4px);
}

.honor-lightbox__panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  width: 100%;
  max-height: 90vh;
  padding: 30px 32px;
  overflow: auto;
  border: 1px solid rgba(201, 168, 106, 0.25);
  border-radius: 18px;
  background: #1a1f2b;
}

.honor-lightbox__close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 20px;
  padding: 0;
  border: 0;
  background: none;
  color: #77808f;
  font: inherit;
  font-size: 20px;
  cursor: pointer;
}

.honor-lightbox__close:hover,
.honor-lightbox__nav button:hover {
  color: #f2ede2;
}

.honor-lightbox__close:focus-visible,
.honor-lightbox__nav button:focus-visible {
  outline: 2px solid #c9a86a;
  outline-offset: 4px;
}

.honor-lightbox__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 0;
}

.honor-lightbox__media img {
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55));
}

.honor-lightbox__copy {
  min-width: 0;
  align-self: center;
}

.honor-lightbox__eyebrow {
  margin-bottom: 4px;
  color: #c9a86a;
  font-size: 12px;
  letter-spacing: 2px;
}

.honor-lightbox__copy h3 {
  margin-bottom: 4px;
  color: #f2ede2;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

.honor-lightbox__byline {
  margin-bottom: 18px;
  color: #77808f;
  font-size: 12px;
}

.honor-lightbox__date {
  margin-left: 8px;
}

.honor-lightbox__story {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.09);
  color: #c6cdd9;
  font-size: 13px;
  line-height: 1.6;
}

.honor-lightbox__story::before {
  flex: none;
  width: 64px;
  color: #77808f;
  content: "赠送背景";
}

.honor-lightbox__nav {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.honor-lightbox__nav button {
  flex: 1;
  padding: 10px 0;
  border: 1px solid rgba(201, 168, 106, 0.35);
  border-radius: 8px;
  background: transparent;
  color: #c9a86a;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.honor-lightbox__nav button:hover {
  background: rgba(201, 168, 106, 0.12);
}

@media (max-width: 1000px) {
  .honor-flag {
    width: 28%;
  }
}

@media (max-width: 768px) {
  .honor-hall {
    padding: 30px 0 24px;
  }

  .honor-hall::before {
    top: -170px;
    width: 560px;
    height: 320px;
  }

  .honor-hall__head {
    margin-bottom: 128px;
  }

  .honor-hall__head h2.honor-hall__title {
    font-size: 25px;
    letter-spacing: 0.5px;
  }

  .honor-hall__head .honor-hall__lead {
    font-size: 14px;
  }

  .honor-lightbox {
    max-width: calc(100% - 28px);
    max-height: calc(100dvh - 28px);
  }

  .honor-lightbox__panel {
    display: block;
    max-height: calc(100dvh - 28px);
    padding: 44px 24px 26px;
  }

  .honor-lightbox__media img {
    max-height: 48vh;
  }

  .honor-lightbox__copy {
    margin-top: 22px;
  }
}

@media (max-width: 640px) {
  .honor-flag {
    width: 44%;
  }

  .honor-flag:nth-child(even) {
    margin-top: 22px;
  }

}

@media (max-width: 480px) {
  .honor-hall {
    padding: 26px 0 22px;
  }

  .honor-flag__meta strong {
    font-size: 10.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .honor-flag,
  .honor-flag img,
  .honor-flag__visual::before,
  .honor-flag__visual::after {
    transition: none;
  }
}
