/* ============================================================
   荣誉资质 · 精绘证书设计（v10，纯CSS零乱码）
   ============================================================ */

.honor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.honor-cert {
  position: relative;
  aspect-ratio: 3 / 4.1;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(201, 169, 106, .1), transparent 55%),
    linear-gradient(180deg, #fdfaf2 0%, #f8f3e6 100%);
  border: 1px solid #d9cda4;
  box-shadow: 0 14px 40px rgba(35, 42, 39, .1);
  padding: 26px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform .35s var(--ease-hover), box-shadow .35s var(--ease-hover);
}
/* 内金线 */
.honor-cert::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(179, 160, 110, .65);
  pointer-events: none;
}
.honor-cert:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(35, 42, 39, .18), 0 0 0 1px rgba(201, 169, 106, .4);
}

/* 四角角花 */
.hc-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1.5px solid #a8905a;
  opacity: .8;
}
.hc-corner.tl { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.hc-corner.tr { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.hc-corner.bl { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.hc-corner.br { bottom: 10px; right: 10px; border-left: none; border-top: none; }

/* 金质奖章 */
.hc-medal {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #f6e2ae, #c9a96a 68%, #96733f);
  display: grid;
  place-items: center;
  color: #5b4416;
  box-shadow: 0 8px 20px rgba(154, 133, 80, .45), inset 0 0 0 3px rgba(255, 255, 255, .4);
  margin-bottom: 8px;
  z-index: 1;
}
/* 绶带 */
.hc-ribbons {
  display: flex;
  gap: 6px;
  margin-top: -4px;
  margin-bottom: 14px;
  z-index: 0;
}
.hc-ribbons i {
  display: block;
  width: 14px;
  height: 34px;
  background: linear-gradient(180deg, #a33a2b 0%, #7c2a20 100%);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
  opacity: .92;
}
.hc-ribbons i:nth-child(2) { margin-top: -6px; opacity: .8; }

/* 文字层级 */
.hc-label {
  font-size: 12.5px;
  font-family: var(--font-serif);
  letter-spacing: .55em;
  text-indent: .55em;
  color: #a8905a;
  margin-bottom: 10px;
}
.hc-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .08em;
  color: #26211a;
  line-height: 1.4;
  margin-bottom: 12px;
}
.hc-divider {
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c9a96a, transparent);
  position: relative;
  margin-bottom: 12px;
}
.hc-divider::after {
  content: "◆";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 8px;
  color: #c9a96a;
  background: #f8f3e6;
  padding: 0 6px;
}
.hc-desc {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.8;
  flex: 1;
}
.hc-footer {
  width: 100%;
  border-top: 1px solid rgba(179, 160, 110, .4);
  padding-top: 10px;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--ink-faint);
  letter-spacing: .1em;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.hc-seal {
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 32px;
  height: 32px;
  border-radius: 5px;
  background: var(--cinnabar);
  color: #fdf6ec;
  font-family: var(--font-serif);
  font-size: 13px;
  display: grid;
  place-items: center;
  writing-mode: vertical-rl;
  letter-spacing: 1px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35), 0 2px 8px rgba(163, 58, 43, .35);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .honor-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .honor-grid { grid-template-columns: 1fr; }
  .honor-cert { aspect-ratio: 3 / 3.6; }
}

/* ---------- 语言切换 ---------- */
.lang-switch { position: relative; margin-right: 8px; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink-soft);
  font-family: inherit;
  transition: all .25s;
}
.lang-btn:hover { border-color: var(--accent); color: var(--primary); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  min-width: 120px;
  display: none;
  z-index: 60;
  overflow: hidden;
}
.lang-switch:hover .lang-menu, .lang-switch:focus-within .lang-menu { display: block; }
.lang-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.lang-menu a:hover { background: var(--primary-light); color: var(--primary); }
.lang-menu a.active { color: var(--primary); font-weight: 600; background: var(--bg-soft); }
@media (max-width: 1000px) {
  .lang-switch { margin-right: 4px; }
  .lang-btn { padding: 5px 9px; font-size: 12px; }
}
@media (max-width: 900px) {
  .lang-switch { display: none; }
}
