/* ==========================================================================
   HyperAlpha 产品介绍板块
   ========================================================================== */

.hyperalpha-product {
  --qiu-container: var(--container);
  padding: 120px 0 100px;
  background: linear-gradient(180deg, #f5f7f4 0%, #ffffff 100%);
}

.hyperalpha-product > .container {
  width: var(--qiu-container);
  margin: 0 auto;
}

.hyperalpha-product__heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
  gap: 40px;
}

.hyperalpha-product__title small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #2c745d;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hyperalpha-product__title h3 {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0d3027;
  line-height: 1.15;
}

.hyperalpha-product__intro {
  max-width: 420px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(13, 48, 39, 0.72);
}

.hyperalpha-product__hero {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(44, 116, 93, 0.12);
  border-radius: 24px;
  padding: 48px;
  margin-bottom: 48px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.hyperalpha-product__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(44, 116, 93, 0.08);
  border: 1px solid rgba(44, 116, 93, 0.15);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #2c745d;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hyperalpha-product__badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2c745d;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hyperalpha-product__hero h4 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #0d3027;
  margin-bottom: 16px;
  line-height: 1.3;
}

.hyperalpha-product__description {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(13, 48, 39, 0.72);
  margin-bottom: 32px;
}

.hyperalpha-product__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.hyperalpha-product__feature {
  padding: 24px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(44, 116, 93, 0.08);
  border-radius: 16px;
}

.hyperalpha-product__feature small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #c9ff36;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.hyperalpha-product__feature strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: #0d3027;
  margin-bottom: 8px;
}

.hyperalpha-product__feature p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(13, 48, 39, 0.68);
}

/* 右侧交易终端模拟 */
.hyperalpha-terminal {
  margin-top: 48px;
  padding: 32px;
  background: #0a1f17;
  border-radius: 20px;
  border: 1px solid rgba(44, 116, 93, 0.2);
}

.hyperalpha-terminal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(201, 255, 54, 0.1);
}

.hyperalpha-terminal__header small {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(201, 255, 54, 0.6);
  text-transform: uppercase;
}

.hyperalpha-terminal__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #c9ff36;
}

.hyperalpha-terminal__status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c9ff36;
  box-shadow: 0 0 12px rgba(201, 255, 54, 0.6);
}

.hyperalpha-terminal__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.hyperalpha-terminal__metric small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.hyperalpha-terminal__metric strong {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
}

.hyperalpha-terminal__metric--positive strong {
  color: #c9ff36;
}

.hyperalpha-terminal__chart {
  height: 200px;
  background: rgba(201, 255, 54, 0.03);
  border: 1px solid rgba(201, 255, 54, 0.1);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.hyperalpha-terminal__chart::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(90deg, transparent 0%, rgba(201, 255, 54, 0.08) 50%, transparent 100%),
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(201, 255, 54, 0.05) 39px, rgba(201, 255, 54, 0.05) 40px);
}

/* 浮动状态卡片 */
.hyperalpha-product__floating {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.hyperalpha-product__floating-card {
  flex: 1;
  padding: 20px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(44, 116, 93, 0.12);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hyperalpha-product__floating-card small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #2c745d;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.hyperalpha-product__floating-card strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #0d3027;
}

/* 产品能力卡片 */
.hyperalpha-product__capabilities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.hyperalpha-capability-card {
  padding: 32px 24px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(44, 116, 93, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s ease;
}

.hyperalpha-capability-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(13, 48, 39, 0.08);
  border-color: rgba(44, 116, 93, 0.2);
}

.hyperalpha-capability-card small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #c9ff36;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hyperalpha-capability-card h5 {
  font-size: 18px;
  font-weight: 600;
  color: #0d3027;
  margin-bottom: 10px;
}

.hyperalpha-capability-card p {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(13, 48, 39, 0.68);
}

/* 响应式 */
@media (max-width: 1024px) {
  .hyperalpha-product__heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .hyperalpha-product__intro {
    max-width: 100%;
  }

  .hyperalpha-product__features {
    grid-template-columns: 1fr;
  }

  .hyperalpha-terminal__metrics {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hyperalpha-product__floating {
    flex-direction: column;
  }

  .hyperalpha-product__capabilities {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hyperalpha-product {
    padding: 80px 0 60px;
  }

  .hyperalpha-product__title h3 {
    font-size: 32px;
  }

  .hyperalpha-product__hero {
    padding: 32px 24px;
  }

  .hyperalpha-product__hero h4 {
    font-size: 22px;
  }

  .hyperalpha-product__capabilities {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   HyperAlpha 弹窗样式
   ========================================================================== */

.ha-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 22, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ha-modal--open {
  display: flex;
  opacity: 1;
}

.ha-modal__dialog {
  position: relative;
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: #0a1f17;
  border: 1px solid rgba(201, 255, 54, 0.2);
  border-radius: 24px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
  animation: ha-modal-enter 0.3s ease;
}

@keyframes ha-modal-enter {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ha-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(201, 255, 54, 0.2);
  border-radius: 50%;
  background: rgba(10, 31, 23, 0.8);
  color: #c9ff36;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ha-modal__close:hover {
  background: rgba(201, 255, 54, 0.15);
  border-color: rgba(201, 255, 54, 0.4);
  transform: rotate(90deg);
}

.ha-modal__header {
  padding: 48px 48px 32px;
  border-bottom: 1px solid rgba(201, 255, 54, 0.12);
}

.ha-modal__header small {
  display: block;
  color: rgba(201, 255, 54, 0.6);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.ha-modal__header h3 {
  color: #ffffff;
  font-size: 32px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
}

.ha-modal__body {
  padding: 40px 48px 48px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.7;
}

.ha-modal__lead {
  font-size: 17px;
  color: #ffffff;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(201, 255, 54, 0.08);
}

.ha-modal__body h4 {
  color: #c9ff36;
  font-size: 22px;
  font-weight: 600;
  margin: 40px 0 20px;
  letter-spacing: -0.01em;
}

.ha-modal__body h5 {
  color: #c9ff36;
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 12px;
}

.ha-modal__module {
  margin-bottom: 32px;
  padding: 24px;
  background: rgba(201, 255, 54, 0.03);
  border-left: 3px solid rgba(201, 255, 54, 0.3);
  border-radius: 8px;
}

.ha-modal__module h5 {
  margin-top: 0;
}

.ha-modal__body ul,
.ha-modal__body ol {
  padding-left: 24px;
  margin: 16px 0;
}

.ha-modal__body li {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.88);
}

.ha-modal__body li strong {
  color: #c9ff36;
  font-weight: 600;
}

.ha-modal__hint {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(201, 255, 54, 0.08);
  border-radius: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.ha-modal__note {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(201, 255, 54, 0.05);
  border: 1px solid rgba(201, 255, 54, 0.12);
  border-radius: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
}

.ha-modal__body a {
  color: #c9ff36;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ha-modal__body a:hover {
  text-decoration-thickness: 2px;
}

/* 弹窗响应式 */
@media (max-width: 768px) {
  .ha-modal {
    padding: 10px;
  }

  .ha-modal__header,
  .ha-modal__body {
    padding: 24px;
  }

  .ha-modal__header h3 {
    font-size: 24px;
  }

  .ha-modal__body {
    font-size: 14px;
  }

  .ha-modal__body h4 {
    font-size: 18px;
  }

  .ha-modal__body h5 {
    font-size: 15px;
  }

  .ha-modal__module {
    padding: 16px;
  }
}
