@charset "UTF-8";
/* ===== 遮罩 ===== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 999;
  -webkit-animation: fadeIn 0.35s ease;
          animation: fadeIn 0.35s ease;
}

.overlay.hidden {
  display: none;
}

@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* ===== 弹框卡片 ===== */
.modal {
  max-width: 660px;
  width: 100%;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  -webkit-animation: slideUp 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.1);
          animation: slideUp 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.1);
  max-height: 92vh;
  overflow-y: auto;
  height: 85%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.modal::-webkit-scrollbar {
  width: 4px;
}

.modal::-webkit-scrollbar-thumb {
  background: #2176c1;
  border-radius: 10px;
}

@-webkit-keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* ============================================================
           头部
           ============================================================ */
.modal-header {
  padding: 24px 28px 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #eee;
}

.modal-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1e1e1e;
  letter-spacing: -0.3px;
}

.modal-header h2 span {
  color: #b22234;
}

.modal-header .sub {
  font-size: 13px;
  font-weight: 500;
  color: #b22234;
  background: #fde8e8;
  padding: 2px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-top: 4px;
}

/* ---- 纯 CSS 关闭按钮 ---- */
.btn-close {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  margin-top: -2px;
  width: 32px;
  height: 32px;
  position: relative;
  transition: transform 0.2s;
}

.btn-close:hover {
  transform: rotate(90deg);
}

/* 绘制 X 图标 */
.close-icon {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.close-icon::before,
.close-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2.5px;
  background: #888;
  border-radius: 2px;
  transform-origin: center;
  transition: background 0.2s;
}

.close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.btn-close:hover .close-icon::before,
.btn-close:hover .close-icon::after {
  background: #b22234;
}

/* ============================================================
           解法体系 + 品牌
           ============================================================ */
.jiefa {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 12px 28px 12px 28px;
  font-size: 15px;
  color: #555;
  border-bottom: 1px solid #f0ece6;
  background: #fcfaf8;
}

.jiefa .method {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.jiefa .method i {
  color: #b22234;
  font-size: 16px;
}

.jiefa .brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.jiefa .brand i {
  color: #f5b342;
  font-size: 16px;
}

/* ============================================================
           正文
           ============================================================ */
.modal-body {
  padding: 18px 28px 8px 28px;
}

/* ---- 获奖者（名字突出） ---- */
.winner {
  text-align: center;
  margin-bottom: 16px;
}

.winner .names {
  font-size: 34px;
  font-weight: 900;
  color: #1e1e1e;
  letter-spacing: 1px;
  color: #2176c1;
}

/* 冠军名字：红色 + 发光 + 下划线 */
.winner .names .gold {
  position: relative;
}

/* 亚军名字：藏青 + 发光 + 下划线 */
.winner .names .silver {
  color: #1a4a6a;
  text-shadow: 0 0 20px rgba(26, 74, 106, 0.12), 0 2px 8px rgba(26, 74, 106, 0.06);
  position: relative;
}

.winner .names .silver::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #1a4a6a, #3a7aaa, #1a4a6a);
  border-radius: 4px;
}

.winner .names .amp {
  color: #bbb;
  font-weight: 300;
  margin: 0 8px;
  font-size: 28px;
}

.winner .title {
  font-size: 1.5em;
  font-weight: 500;
  color: #555;
  margin-top: 6px;
}

.winner .title i {
  color: #f5b342;
  margin-right: 4px;
}

/* ---- 成绩双栏 ---- */
.scores {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 16px 0 18px 0;
}

.scores .item {
  flex: 1;
  background: #f8f6f2;
  border-radius: 18px;
  padding: 16px 10px 14px 10px;
  text-align: center;
  border: 1px solid #f0ece6;
  transition: transform 0.2s, box-shadow 0.2s;
}

.scores .item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.scores .item .medal {
  font-size: 30px;
  display: block;
  margin-bottom: 2px;
}

.scores .item .label {
  font-size: 14px;
  color: #888;
  font-weight: 500;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

/* 冠军成绩：特大红色 */
.scores .item:first-child .value {
  font-size: 40px;
  font-weight: 900;
  color: #b22234;
  line-height: 1.2;
  text-shadow: 0 2px 16px rgba(178, 34, 52, 0.1);
}

/* 亚军成绩：特大藏青色 */
.scores .item:last-child .value {
  font-size: 40px;
  font-weight: 900;
  color: #1a4a6a;
  line-height: 1.2;
  text-shadow: 0 2px 16px rgba(26, 74, 106, 0.1);
}

.scores .item .value .unit {
  font-size: 18px;
  font-weight: 500;
  color: #999;
  margin-left: 2px;
}

/* ---- 单次成绩 ---- */
.scores .item .single {
  font-size: 15px;
  font-weight: 600;
  color: #666;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e0dcd6;
}

.scores .item:first-child .single .num {
  font-weight: 900;
  color: #b22234;
  font-size: 18px;
}

.scores .item:last-child .single .num {
  font-weight: 900;
  color: #1a4a6a;
  font-size: 18px;
}

.scores .item .single .unit-sm {
  font-size: 13px;
  font-weight: 500;
  color: #aaa;
}

/* ---- 纪录条 ---- */
.record {
  background: #fef7e9;
  border-radius: 16px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-left: 5px solid #f5b342;
  margin: 6px 0 18px 0;
}

.record i {
  font-size: 26px;
  color: #f5b342;
}

.record p {
  font-size: 16px;
  font-weight: 500;
  color: #2d2d2d;
  margin: 0;
}

.record p strong {
  color: #b22234;
  background: #fde8e8;
  padding: 0 8px;
  border-radius: 6px;
}

.record .badge {
  background: #b22234;
  color: #fff;
  font-weight: 700;
  padding: 0 14px;
  border-radius: 30px;
  font-size: 16px;
  line-height: 28px;
  display: inline-block;
  margin-left: 4px;
}

.footer {
  min-height: 4px;
}

/* ============================================================
           图片（位于底部）
           ============================================================ */
.image-wrap {
  padding: 0 28px 28px 28px;
}

.image-wrap img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  display: block;
  background: #f0ece6;
}

/* ============================================================
           ═══════════════════════════════════════
           响应式适配：平板端 (768px ~ 1024px)
           ═══════════════════════════════════════
           ============================================================ */
@media (min-width: 768px) and (max-width: 1024px) {
  body {
    padding: 24px;
  }
  .overlay {
    padding: 24px;
  }
  .modal {
    max-width: 520px;
    border-radius: 26px;
  }
  .modal-header {
    padding: 20px 24px 12px 24px;
  }
  .modal-header h2 {
    font-size: 20px;
  }
  .modal-header .sub {
    font-size: 12px;
    padding: 2px 12px;
  }
  .btn-close {
    width: 28px;
    height: 28px;
  }
  .close-icon::before,
.close-icon::after {
    width: 18px;
    height: 2px;
  }
  .jiefa {
    padding: 10px 24px 2px 24px;
    font-size: 14px;
  }
  .jiefa .method i,
.jiefa .brand i {
    font-size: 15px;
  }
  .modal-body {
    padding: 16px 24px 6px 24px;
  }
  .winner .names {
    font-size: 30px;
  }
  .winner .names .amp {
    font-size: 24px;
  }
  .winner .title {
    font-size: 16px;
  }
  .scores {
    gap: 14px;
    margin: 14px 0 16px 0;
  }
  .scores .item {
    padding: 14px 8px 12px 8px;
  }
  .scores .item .medal {
    font-size: 26px;
  }
  .scores .item .label {
    font-size: 13px;
  }
  .scores .item:first-child .value,
.scores .item:last-child .value {
    font-size: 36px;
  }
  .scores .item .value .unit {
    font-size: 16px;
  }
  .scores .item .single {
    font-size: 14px;
    margin-top: 6px;
    padding-top: 6px;
  }
  .scores .item:first-child .single .num,
.scores .item:last-child .single .num {
    font-size: 16px;
  }
  .scores .item .single .unit-sm {
    font-size: 12px;
  }
  .record {
    padding: 12px 18px;
    gap: 12px;
    margin: 4px 0 16px 0;
  }
  .record i {
    font-size: 22px;
  }
  .record p {
    font-size: 15px;
    text-align: center;
    line-height: 2;
  }
  .record .badge {
    font-size: 14px;
    line-height: 26px;
    padding: 0 12px;
  }
  .image-wrap {
    padding: 0 24px 24px 24px;
  }
  .image-wrap img {
    border-radius: 16px;
  }
}
/* ============================================================
           ═══════════════════════════════════════
           响应式适配：手机端 (小于 768px)
           ═══════════════════════════════════════
           ============================================================ */
@media (max-width: 767px) {
  body {
    padding: 12px;
  }
  .overlay {
    padding: 12px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  .modal {
    max-width: 95%;
    border-radius: 22px;
    max-height: 76vh;
  }
  /* ---- 头部 ---- */
  .modal-header {
    padding: 16px 18px 10px 18px;
    flex-wrap: wrap;
    gap: 6px;
  }
  .modal-header h2 {
    font-size: 18px;
    letter-spacing: 0;
  }
  .modal-header .sub {
    font-size: 11px;
    padding: 2px 10px;
    margin-top: 2px;
  }
  .btn-close {
    width: 28px;
    height: 28px;
    padding: 2px;
    margin-top: 0;
  }
  .close-icon::before,
.close-icon::after {
    width: 16px;
    height: 2px;
  }
  /* ---- 解法体系 ---- */
  .jiefa {
    padding: 8px 18px 7px 18px;
    font-size: 15px;
    gap: 4px 12px;
    align-items: flex-start;
  }
  .jiefa .method i,
.jiefa .brand i {
    font-size: 14px;
  }
  /* ---- 正文 ---- */
  .modal-body {
    padding: 14px 18px 4px 18px;
  }
  /* 获奖者 */
  .winner {
    margin-bottom: 12px;
  }
  .winner .names {
    font-size: 24px;
    letter-spacing: 0.5px;
  }
  .winner .names .amp {
    font-size: 18px;
    margin: 0 4px;
  }
  .winner .names .gold::after,
.winner .names .silver::after {
    height: 3px;
    bottom: -1px;
  }
  .winner .title {
    font-size: 15px;
    margin-top: 4px;
  }
  /* 成绩 - 手机端改为上下排列（双栏变单栏） */
  .scores {
    gap: 12px;
    margin: 12px 0 14px 0;
  }
  .scores .item {
    padding: 14px 12px 12px 12px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 48%;
  }
  .scores .item .medal {
    font-size: 28px;
    margin-bottom: 10px;
  }
  .scores .item .label {
    font-size: 13px;
    margin-top: 0;
  }
  .scores .item:first-child .value,
.scores .item:last-child .value {
    font-size: 34px;
  }
  .scores .item .value .unit {
    font-size: 16px;
  }
  .scores .item .single {
    font-size: 14px;
    margin-top: 6px;
    padding-top: 6px;
    width: 100%;
  }
  .scores .item:first-child .single .num,
.scores .item:last-child .single .num {
    font-size: 16px;
  }
  .scores .item .single .unit-sm {
    font-size: 12px;
  }
  /* 纪录条 */
  .record {
    padding: 12px 16px;
    gap: 10px;
    border-left-width: 4px;
    margin: 4px 0 14px 0;
    border-radius: 14px;
  }
  .record i {
    font-size: 20px;
  }
  .record p {
    font-size: 14px;
    text-align: center;
    line-height: 2;
  }
  .record p strong {
    padding: 0 6px;
  }
  .record .badge {
    font-size: 13px;
    line-height: 24px;
    padding: 0 10px;
    display: inline-block;
    margin-left: 2px;
  }
  /* ---- 图片 ---- */
  .image-wrap {
    padding: 0 18px 18px 18px;
  }
  .image-wrap img {
    border-radius: 14px;
    aspect-ratio: 16/9;
  }
}
/* ============================================================
           ═══════════════════════════════════════
           小屏手机 (小于 380px) 进一步微调
           ═══════════════════════════════════════
           ============================================================ */
@media (max-width: 379px) {
  .modal-header h2 {
    font-size: 16px;
  }
  .modal-header .sub {
    font-size: 10px;
    padding: 1px 8px;
  }
  .btn-close {
    width: 24px;
    height: 24px;
  }
  .close-icon::before,
.close-icon::after {
    width: 14px;
    height: 2px;
  }
  .jiefa {
    font-size: 12px;
    padding: 6px 14px 0 14px;
  }
  .modal-body {
    padding: 10px 14px 2px 14px;
  }
  .winner .names {
    font-size: 20px;
  }
  .winner .names .amp {
    font-size: 16px;
  }
  .winner .title {
    font-size: 13px;
  }
  .scores .item:first-child .value,
.scores .item:last-child .value {
    font-size: 28px;
  }
  .scores .item .single {
    font-size: 12px;
  }
  .scores .item:first-child .single .num,
.scores .item:last-child .single .num {
    font-size: 14px;
  }
  .record p {
    font-size: 14px;
    text-align: center;
    line-height: 2;
  }
  .record .badge {
    font-size: 11px;
    line-height: 20px;
    padding: 0 8px;
  }
  .record i {
    font-size: 18px;
  }
  .image-wrap {
    padding: 0 14px 14px 14px;
  }
  .image-wrap img {
    border-radius: 12px;
  }
}
/* ============================================================
           ═══════════════════════════════════════
           横屏手机提醒 (可选)
           ============================================================ */
@media (max-width: 767px) and (orientation: landscape) {
  .modal {
    max-height: 88vh;
  }
  .modal-body {
    padding: 10px 18px 2px 18px;
  }
  .winner .names {
    font-size: 22px;
  }
  .scores {
    flex-direction: row;
    gap: 10px;
  }
  .scores .item {
    padding: 10px 8px 8px 8px;
  }
  .scores .item:first-child .value,
.scores .item:last-child .value {
    font-size: 28px;
  }
  .scores .item .medal {
    font-size: 22px;
  }
  .image-wrap {
    padding: 0 18px 14px 18px;
  }
  .image-wrap img {
    aspect-ratio: 16/8;
  }
  .record {
    padding: 10px 14px;
    margin: 2px 0 10px 0;
  }
  .record p {
    font-size: 14px;
    text-align: center;
    line-height: 2;
  }
}
/*# sourceMappingURL=pop.css.map */