:root {
  --head: 6.25vw;
  --color: #E74E46;
}

.co-w {
  color: #fff;
}

.co-m {
  color: var(--color);
}

/* ------------------------------------------------------------------------------- */
/* ==================== 首页样式 ==================== */
html{
  height: 100%;
}
/* 页面整体背景 */
body {
  background: #002834;
  background: linear-gradient(0deg, rgba(1, 5, 6, 0.10) 0%, rgba(1, 5, 6, 0.10) 100%), linear-gradient(0deg, #0A1E27 -14.44%, #003A4B 15.76%, #002C38 30.73%);
  color: #ffffff;
  font-family: 'Montreal', -webkit-pictograph;
  overflow-x: hidden;
  /* height: 100vh; */
  height: 100%;
  /* overflow: hidden;
  display: flex;
  flex-direction: column; */
}

body::-webkit-scrollbar {
  display: none;
}

#main-bg {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

#main-bg::after {
  /* content: '';
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 2.083vw 3.645vw #002834; */
}

/* 头部导航样式 */
.header {
  position: relative;
  width: 100%;
  height: 5.208vw;
  z-index: 100;
}

.nav-container {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  position: relative;
}

.nav-buttons {
  position: absolute;
  right: 8.333vw;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 3.385vw;
}

/* 按钮通用样式 */
.nav-btn,
.contact-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.416vw 1.562vw;
  /* background: linear-gradient(135deg, rgba(241, 241, 241, 0.3) 0%, rgba(153, 153, 153, 0) 100%); */
  background: transparent url('/img/btn-bg.png') no-repeat center center/100% 100%;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow:
    0vw 0.045vw 0.086vw 0vw rgba(0, 255, 255, 0.06),
    0vw 1.011vw 1.91vw 0vw rgba(0, 255, 255, 0.03),
    inset 0vw -0.104vw 0vw 0vw rgba(0, 0, 0, 0.3),
    inset 0vw 0.104vw 0vw 0vw rgba(255, 255, 255, 0.1);
}

.nav-btn::before,
.contact-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/img/button-texture.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0.8;
  z-index: 1;
}

.btn-text {
  position: relative;
  z-index: 10;
  font-family: 'Montreal', sans-serif;
  font-weight: 400;
  font-size: 0.937vw;
  line-height: 1.22em;
  color: #ffffff;
  text-align: center;
}

/* 主要内容区域 */
.main-content {
  width: 100%;
  /* height: 46.875vw; */
  min-height: 34vw;
  height: 80%;
  position: relative;
  overflow: visible;
  /* 允许3D地球溢出 */
}

.content-container {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  /* padding: 1.718vw 3.437vw 1.718vw 8.333vw; */
  padding: 0 3.437vw 0 8.333vw;
  overflow: visible;
  /* 允许3D地球溢出 */
}

/* 左侧内容 */
.left-content {
  width: 28.281vw;
  display: flex;
  flex-direction: column;
  gap: 2.083vw;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 2.083vw;
  display: none;
}

.text-section.on {
  display: flex;
}

.logo-section {
  width: 20.755vw;
  height: 5.312vw;
}

.logo-mask {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.description {
  font-family: 'Montreal', sans-serif;
  font-weight: 400;
  font-size: 1.041vw;
  line-height: 1.5em;
  color: #A3A3A3;
  width: 28.281vw;
  margin: 0;
}

/* 联系按钮 */
.contact-btn {
  align-self: flex-start;
}

/* 右侧内容 */
.right-content {
  width: 32.916vw;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2.083vw;
  overflow: visible;
  margin-right: 5vw;
  /* 允许3D地球溢出 */
}

.hero-image {
  /* width: 32.239vw;
  height: 32.239vw; */
  width: 27vw;
  height: 27vw;
  position: relative;
  overflow: visible;
  margin: 0 auto;
  /* 允许3D地球溢出容器边界 */
}

.hero-image #global-map {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  /* 允许内容溢出 */
}

.global-map-renderer {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 5;
  overflow: visible !important;
  /* 允许3D内容溢出渲染器边界 */
}

.element {
  width: 2.604vw;
  height: 3.645vw;
  box-shadow: 0vw 0vw 0.312vw rgba(0, 255, 255, 0.5);
  border: 1px solid rgba(127, 255, 255, 0.25);
  text-align: center;
  cursor: default;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}

.element:hover {
  /* 悬停效果将通过JavaScript控制 */
}

.element .number {
  position: absolute;
  top: 0.156vw;
  right: 0.156vw;
  font-size: 0.52vw;
  color: rgba(127, 255, 255, 0.75);
}

.element .symbol {
  position: absolute;
  top: 0.781vw;
  left: 0vw;
  right: 0vw;
  font-size: 0.833vw;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 0 0.52vw rgba(0, 255, 255, 0.95);
}

.element .details {
  position: absolute;
  bottom: 0.104vw;
  left: 0vw;
  right: 0vw;
  font-size: 0.52vw;
  color: rgba(127, 255, 255, 0.75);
}

/* button {
  color: rgba(127, 255, 255, 0.75);
  background: transparent;
  outline: 0.052vw solid rgba(127, 255, 255, 0.75);
  border: 0px;
  padding: 0.26vw 0.52vw;
  cursor: pointer;
}

button:hover {
  background-color: rgba(0, 255, 255, 0.5);
}

button:active {
  color: #000000;
  background-color: rgba(0, 255, 255, 0.75);
} */

.main-image {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

/* 元素周期表 */
.periodic-table {
  width: 32.187vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2.083vw;
  flex-wrap: wrap;
  opacity: 0;
}

.periodic-table.on {
  opacity: 1;
}

.element-card {
  width: 2.812vw;
  height: 3.645vw;
  background: rgba(0, 127, 127, 0.4);
  border: 0.77px solid rgba(0, 255, 255, 0.6);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding: 0.156vw 0.312vw;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.element-card:hover {
  background: rgba(0, 127, 127, 0.6);
  border-color: rgba(0, 255, 255, 0.8);
  transform: translateY(-0.104vw);
  box-shadow: 0 0.208vw 0.625vw rgba(0, 255, 255, 0.2);
}

.atomic-number {
  font-family: 'Monda', sans-serif;
  font-weight: 400;
  font-size: 0.312vw;
  line-height: 1.63em;
  color: rgba(0, 255, 255, 0.7);
  text-align: right;
  width: 100%;
}

.element-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.156vw;
  width: 2.083vw;
  flex: 1;
}

.symbol {
  font-family: 'Montreal', sans-serif;
  font-weight: 400;
  font-size: 1.458vw;
  line-height: 1.22em;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  text-shadow: 0vw 0vw 0.2vw rgba(0, 255, 255, 0.9);
  width: 100%;
}

.element-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.052vw;
}

.name {
  font-family: 'Montreal', sans-serif;
  font-weight: 400;
  font-size: 0.26vw;
  line-height: 1.22em;
  text-transform: uppercase;
  color: rgba(0, 255, 255, 0.7);
  text-align: center;
}

.weight {
  font-family: 'Montreal', sans-serif;
  font-weight: 400;
  font-size: 0.26vw;
  line-height: 1.22em;
  color: rgba(0, 255, 255, 0.7);
  text-align: center;
}

/* 元素卡片特殊布局调整 */
.element-cu .element-info {
  width: 2.083vw;
}

.element-cu .element-details {
  align-items: flex-end;
  width: 1.041vw;
}

.element-zn .element-details {
  align-items: center;
  width: 0.937vw;
}

.element-sb .element-details {
  align-items: center;
  width: 1.302vw;
}

.element-ag .element-details {
  align-items: center;
  width: 1.354vw;
}

.element-la .element-details {
  align-items: stretch;
  width: 100%;
}

.element-sn .element-details {
  align-items: center;
  width: 0.885vw;
}

.element-pb .element-details {
  align-items: flex-end;
  width: 0.729vw;
}

/* 底部版权信息 */
.footer {
  width: 100%;
  padding: 1.562vw 8.333vw;
}

.footer-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 50;
}

.copyright {
  font-family: 'Montreal', sans-serif;
  font-weight: 400;
  font-size: 0.729vw;
  line-height: 1.22em;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 3.125vw;
}

.footer-link {
  font-family: 'Montreal', sans-serif;
  font-weight: 400;
  font-size: 0.729vw;
  line-height: 1.22em;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* 按钮悬停效果增强 */
.nav-btn:hover,
.contact-btn:hover {
  background: transparent url('/img/btn-bg-h1.png') no-repeat center center/100% 100%;
  box-shadow: 0px 0.5px 0px 0px #0FF,
    0px 19.422px 36.687px 0px rgba(0, 255, 255, 0.20),
    0px 5.855px 11.06px 0px rgba(0, 255, 255, 0.22),
    0px 2.432px 4.594px 0px rgba(0, 255, 255, 0.06),
    0px 0.88px 1.661px 0px rgba(0, 255, 255, 0.06),
    0px 2px 0px 0px rgba(0, 0, 0, 0.30) inset,
    0px -2px 0px 0px rgba(255, 255, 255, 0.50) inset,
    0px 5px 13px 0px rgba(0, 0, 0, 0.52);
}

.contact-btn:hover {
  background: transparent url('/img/btn-bg-h2.png') no-repeat center center/100% 100%;
}

.nav-btn:hover .btn-text,
.contact-btn:hover .btn-text {
  /* color: rgba(0, 255, 255, 0.9); */
  text-shadow: 0vw 0vw 0.416vw rgba(0, 255, 255, 0.6);
}

/* 动画效果 */
@keyframes glow {

  0%,
  100% {
    text-shadow: 0vw 0vw 0.2vw rgba(0, 255, 255, 0.9);
  }

  50% {
    text-shadow: 0vw 0vw 0.416vw rgba(0, 255, 255, 1), 0vw 0vw 0.781vw rgba(0, 255, 255, 0.5);
  }
}

.element-card:hover .symbol {
  animation: glow 2s ease-in-out infinite;
}

#global-echarts {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform: scale(1.35);
}

.news1 {
  width: 62.5vw;
  margin: 0 auto;
  padding: 10vh 0;
}

.news1 .empty {
  margin-top: 5em;
}


#label-container {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

#label-container .globe-label {
	position: absolute;
	transform: translate(-50%, -50%);
	background-color: rgba(0, 0, 0, 0.6);
	color: #fff;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 14px;
	font-family: Arial, sans-serif;
	font-weight: bold;
	white-space: nowrap;
	user-select: none;
	transition: opacity 0.2s;
}
