@media screen and (max-width:768px) {
  :root {
    --head: 60px;
  }

  body {
    height: auto;
    overflow-y: auto;
  }

  #main-bg {
    width: 100%;
    height: 100%;
  }

  #main-bg::after {
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 20px 35px #002834;
  }

  /* 头部导航样式 */
  .header {
    width: 100%;
    height: 50px;
  }

  .nav-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }

  .nav-buttons {
    right: 80px;
    top: 50%;
    transform: none;
    display: flex;
    gap: 33px;
    position: static;
  }

  /* 按钮通用样式 */
  .nav-btn,
  .contact-btn {
    display: flex;
    padding: 4px 15px;
    background: linear-gradient(135deg, rgba(241, 241, 241, 0.3) 0%, rgba(153, 153, 153, 0) 100%);
    border-radius: 20px;
    box-shadow:
      0px 0.88px 1.66px 0px rgba(0, 255, 255, 0.06),
      0px 10px 18px 0px rgba(0, 255, 255, 0.03),
      inset 0px -2px 0px 0px rgba(0, 0, 0, 0.3),
      inset 0px 2px 0px 0px rgba(255, 255, 255, 0.1);
  }

  .nav-btn::before,
  .contact-btn::before {
    background-size: 100% 100%;
  }

  .btn-text {
    font-size: 14px;
  }

  /* 按钮特效元素 */


  .blur-effect {
    border-radius: 50%;
  }

  .blur-1 {
    width: 68px;
    height: 39px;
    left: 6px;
    top: 15px;
    filter: blur(24px);
  }

  .blur-2 {
    width: 41px;
    height: 1px;
    left: 19px;
    top: 21px;
    filter: blur(0.73px);
  }

  .blur-3 {
    width: 68px;
    height: 1px;
    left: 7px;
    top: 1px;
    filter: blur(0.73px);
  }

  .gradient-frame {
    border: 2px solid transparent;
    border-radius: 8px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 1) 100%);
    filter: blur(2px);
  }

  /* 主要内容区域 */
  .main-content {
    width: 100%;
    height: auto;
  }

  .content-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    padding: 100px 5%;
    overflow: hidden;
  }

  /* 左侧内容 */
  .left-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .text-section {
    gap: 20px;
  }

  .text-section.on {
    display: flex;
  }

  .logo-section {
    width: 199px;
    height: 51px;
  }

  .logo-mask {
    width: 100%;
    height: 100%;
  }

  .description {
    font-size: 15px;
    width: 100%;
  }

  .description br {
    display: none;
  }

  /* 联系按钮 */
  .contact-btn {
    align-self: flex-start;
  }

  /* 右侧内容 */
  .right-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    margin-top: 80px;
    margin-right: 0;
  }

  .hero-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
  }

  .hero-image #global-map {
    width: 100%;
    height: 100%;
  }

  .global-map-renderer {
    width: 100% !important;
    height: 100% !important;
  }

  .element {
    width: 45px;
    height: 60px;
    box-shadow: 0px 0px 3px rgba(0, 255, 255, 0.5);
    border: 1px solid rgba(127, 255, 255, 0.25);
  }



  .element .number {
    top: 0px;
    right: 3px;
    font-size: 6px;
  }

  .element .symbol {
    top: 12px;
    left: 0px;
    right: 0px;
    font-size: 14px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.95);
  }

  .element .details {
    bottom: -5px;
    left: 50%;
    right: 0px;
    font-size: 12px;
    transform: translate(-50%, 0) scale(0.3);
    text-align: center;
    width: 300%;
    letter-spacing: -1px;
  }

  button {
    outline: 1px solid rgba(127, 255, 255, 0.75);
    border: 0px;
    padding: 5px 10px;
  }

  .main-image {
    width: 100%;
    height: 100%;
  }

  /* 元素周期表 */
  .periodic-table {
    width: 100%;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .element-card {
    width: 54px;
    height: 70px;
    border: 0.77px solid rgba(0, 255, 255, 0.6);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 3px 6px;
  }

  .element-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.2);
  }

  .atomic-number {
    font-size: 6px;
    width: 100%;
  }

  .element-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 40px;
    flex: 1;
  }

  .symbol {
    font-size: 28px;
    text-shadow: 0px 0px 3.85px rgba(0, 255, 255, 0.9);
    width: 100%;
  }

  .element-details {
    display: flex;
    flex-direction: column;
    gap: 1px;
  }

  .name {
    font-size: 5px;
  }

  .weight {
    font-size: 5px;
  }

  /* 元素卡片特殊布局调整 */
  .element-cu .element-info {
    width: 40px;
  }

  .element-cu .element-details {
    align-items: flex-end;
    width: 20px;
  }

  .element-zn .element-details {
    width: 18px;
  }

  .element-sb .element-details {
    width: 25px;
  }

  .element-ag .element-details {
    width: 26px;
  }

  .element-la .element-details {
    width: 100%;
  }

  .element-sn .element-details {
    width: 17px;
  }

  .element-pb .element-details {
    align-items: flex-end;
    width: 14px;
  }

  /* 底部版权信息 */
  .footer {
    width: 100%;
    padding: 15px 5%;
  }

  .footer-container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
  }

  .copyright {
    width: 100%;
    font-size: 12px;
  }

  .footer-links {
    display: flex;
    gap: 30px;
    margin-top: 1em;
  }

  .footer-link {
    font-size: 12px;
  }



  /* 按钮悬停效果增强 */
  .nav-btn:hover,
  .contact-btn:hover {
    transform: translateY(-1px);
    box-shadow:
      0px 1.5px 3px 0px rgba(0, 255, 255, 0.1),
      0px 13px 23px 0px rgba(0, 255, 255, 0.05),
      inset 0px -2px 0px 0px rgba(0, 0, 0, 0.4),
      inset 0px 2px 0px 0px rgba(255, 255, 255, 0.15);
  }

  .nav-btn:hover .btn-text,
  .contact-btn:hover .btn-text {
    text-shadow: 0px 0px 4px rgba(0, 255, 255, 0.6);
  }



  #global-echarts {
    width: 100%;
    height: 100%;
  }

  .news1 {
    width: 90%;
  }

}