﻿/* Logo呼吸动画 */
@keyframes breathing {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', Arial, sans-serif;
  background: #ffffff;
  color: #525252;
  min-height: 100vh;
  position: relative;
  padding-bottom: 30px;
}

/* 背景装饰六边形 */
.hex-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hex-bg-item {
  position: absolute;
  opacity: 0.3;
}

.wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 30px);
  position: relative;
  z-index: 1;
}
.grid-container {
  position: relative;
  width: 840px;
  height: 693px;
}
.hex-btn {
  position: absolute;
  width: 240px;
  height: 277px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: none;
}
.hex-btn svg {
  z-index: 1;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hex-btn .en {
  font-size: 18px; font-weight: 700; line-height: 1.3;
  text-align: center; padding: 0 8px; color: #525252;
  position: relative; z-index: 1;
  transition: transform 0.3s ease;
}
.hex-btn .hl { color: #1F4E79; }
.hex-btn .cn {
  font-size: 16px; font-weight: 600; line-height: 1.4;
  text-align: center; padding: 0 8px; color: #525252;
  position: relative; z-index: 1;
  transition: transform 0.3s ease;
}

.hex-logo {
  width: 160px; height: auto; margin-bottom: 0;
  position: relative; z-index: 1;
  animation: breathing 3s ease-in-out infinite;
}
.hex-btn:hover .hex-logo {
  animation-play-state: paused;
}
.hex-center .cn { font-size: 16px; font-weight: 700; }
.hex-center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.hex-hint {
  font-size: 11px;
  font-weight: 600;
  color: #1F4E79;
  text-align: center;
  margin-top: 4px;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.hex-icon-img {
  width: 82px;
  height: 82px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}
.hex-btn:hover .hex-icon-img {
  transform: scale(1.12);
}
footer {
  position: fixed;
  bottom: 0;
  right: 0;
  text-align: right;
  font-size: 11px;
  color: #888;
  line-height: 1;
  padding: 8px 15px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
}
footer a { color: #1F4E79; text-decoration: none; }
footer a:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .hex-btn { width: 120px; height: 138px; }
  .hex-btn .en { font-size: 10px; padding: 0 4px; }
  .hex-btn .cn { font-size: 9px; padding: 0 4px; }
  .hex-logo { width: 79px; }
  .hex-hint { font-size: 8px; margin-top: 2px; }
  .hex-icon-img { width: 41px; height: 41px; margin-bottom: 4px; }
  .grid-container { width: 420px; height: 346px; }
  .wrapper { min-height: calc(100vh - 40px); }
  footer {
    font-size: 9px;
    text-align: center;
    right: auto;
    left: 0;
    width: 100%;
    padding: 8px 0;
  }
  .hex-bg-item { opacity: 0.2; }
  .hex-btn:nth-child(1) { left: 0 !important; top: 0 !important; }
  .hex-btn:nth-child(2) { left: 120px !important; top: 0 !important; }
  .hex-btn:nth-child(3) { left: 240px !important; top: 0 !important; }
  .hex-btn:nth-child(4) { left: 60px !important; top: 103.875px !important; }
  .hex-btn:nth-child(5) { left: 180px !important; top: 103.875px !important; }
  .hex-btn:nth-child(6) { left: 300px !important; top: 103.875px !important; }
  .hex-btn:nth-child(7) { left: 0 !important; top: 207.75px !important; }
  .hex-btn:nth-child(8) { left: 120px !important; top: 207.75px !important; }
  .hex-btn:nth-child(9) { left: 240px !important; top: 207.75px !important; }
  .modal-footer {
    height: auto;
    flex-wrap: wrap;
    padding: 10px 15px;
    justify-content: center;
    gap: 8px;
  }
  .modal-logo-en, .modal-logo-cn {
    height: 16px;
  }
  .modal-footer-copyright {
    font-size: 10px;
    width: 100%;
    order: 3;
    padding: 5px 0 0 0;
  }
  .modal-title-text {
    font-size: 14px;
  }
  .modal-title-icon {
    width: 24px;
    height: 24px;
  }
}
/* 弹出窗口样式 */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal {
  position: relative;
  width: 90vw;
  max-width: 1200px;
  height: 85vh;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.modal-overlay.active .modal {
  transform: scale(1);
}
.modal-title-bar {
  height: 50px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: #ffffff;
  position: relative;
  z-index: 2;
}
.modal-title-bar.hidden {
  display: none;
}
.modal-title-icon {
  width: 32px;
  height: 32px;
  margin-right: 12px;
  object-fit: contain;
}
.modal-title-text {
  font-size: 18px;
  font-weight: 700;
  color: #525252;
  flex: 1;
}
.modal-title-text .hl {
  color: #1F4E79;
}
.modal-close {
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  font-size: 28px;
  color: #525252;
  cursor: pointer;
  transition: color 0.2s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}
.modal-close:hover {
  color: #1F4E79;
}
.modal-content {
  height: calc(85vh - 90px);
  padding: 30px;
  overflow-y: auto;
  position: relative;
  z-index: 1;
}
.modal-content.no-title {
  height: calc(85vh - 40px);
}
.modal-content h2 {
  color: #1F4E79;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}
.modal-content h3 {
  color: #1F4E79;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}
.modal-content p {
  color: #525252;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 12px;
}
.modal-footer {
  height: 40px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 12px;
  color: #888;
  position: relative;
  z-index: 2;
}
.modal-logo-en {
  height: 20px;
  object-fit: contain;
}
.modal-logo-cn {
  height: 20px;
  object-fit: contain;
}
.modal-footer-copyright {
  text-align: center;
  flex: 1;
  padding: 0 10px;
}
.modal-footer a {
  color: #1F4E79;
  text-decoration: none;
}
.modal-footer a:hover {
  text-decoration: underline;
}
.modal-hex-bg {
  position: absolute;
  top: 0;
  left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.modal-hex-item {
  position: absolute;
  opacity: 0.3;
}


/* Frosted glass effect */
.hex-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(175,238,238,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 0;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
