/* 响应式适配 */
@media (max-width: 1200px) {
  .nav-menu { gap: 24px; }
  .about-content { grid-template-columns: 1fr; gap: 40px; }
  .about-section h2 { font-size: 3rem; }

  /* 游戏区域适配 */
  .game-section h2 { font-size: 3rem; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
}

@media (max-width: 1024px) {
  .nav-menu { gap: 20px; }

  /* 页脚响应式 */
  footer {
    padding: 15px 0 12px;
    min-height: 90px;
  }

  /* Hero区域适配 */
  .hero {
    min-height: calc(100vh - 75px - 90px);
  }

  .footer-main {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .footer-left, .footer-center, .footer-right {
    flex: none;
    width: 100%;
    justify-content: center;
  }

  .record-info {
    flex-direction: column;
    gap: 5px;
  }

  .health-notice {
    white-space: normal;
    font-size: 10px;
    padding: 0 15px;
  }
}

@media (max-width: 992px) {
  /* 平板端：两排三列 */
  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
    padding-bottom: 0;
  }

  /* Hero区域适配 */
  .hero {
    min-height: calc(100vh - 70px - 90px);
  }

  .navbar { height: 70px; }

  #hero-title {
    font-size: clamp(2.2rem, 8vw, 3rem);
    text-shadow:0 0 2px var(--primary-silver),0 1px 0 var(--primary-blue),0 0 6px var(--primary-cyan);
    -webkit-text-stroke: 0.8px rgba(0, 184, 217, 0.5);
  }

  #hero-desc {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    white-space: normal;
    max-width: 95%;
  }

  .btn { padding: 10px 20px; font-size: 12px; }

  /* 移动端导航 - 垂直展开 */
  .nav-inner {
    justify-content: space-between;
    gap: 0;
  }

  .nav-center {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    z-index: 999;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
  }

  .nav-center.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-menu {
    flex-direction: column;
    gap: 16px;
    width: 100%;
    text-align: center;
  }

  .nav-link, .dropdown-toggle {
    padding: 12px 0;
    width: 100%;
  }

  .dropdown-menu {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    background: rgba(0, 184, 217, 0.05);
    border: none;
    box-shadow: none;
    padding: 0;
    margin-top: 8px;
  }

  .dropdown-link {
    padding: 8px 0;
  }

  .dropdown-link:hover {
    padding-left: 0;
  }

  .nav-hamburger {
    display: block;
  }

  /* 移动端飘窗适配 */
  .jarvis-window { bottom: 20px; right: 20px; }
  .jarvis-toggle { width: 50px; height: 50px; }
  .jarvis-function-label { display: none; }

  .jarvis-tooltip {
    left: auto;
    right: 120px;
    min-width: 180px;
    padding:9px 20px;
  }

  .jarvis-tooltip::after {
    left: auto;
    right: -25px;
    border-left: none;
    border-right: 1px solid var(--primary-blue);
    transform: translateY(-50%) rotate(45deg);
  }

  .jarvis-window:hover .jarvis-tooltip {
    left: auto;
    right: 115px;
  }

  .jarvis-hologram { width: 280px; }
  .jarvis-qrcode-grid { gap: 20px; }
  .jarvis-qrcode-frame { width: 80px; height: 80px; }

  /* 移动端页脚适配 */
  .footer-container {
    padding: 0 20px;
  }

  .footer-right {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .copyright, .record-info, .footer-nav-link {
    font-size: 10px;
  }

  .health-notice {
    font-size: 9px;
    line-height: 1.4;
    padding: 0 10px;
  }

  /* About移动端适配 */
  .about-section { padding: 60px 0; }
  .about-section h2 { font-size: 2.5rem; }
  .about-text p { font-size: 1rem; }

  /* 游戏区域移动端适配 */
  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
  }

  .game-section {
    padding: 80px 0 50px;
  }

  .game-section h2 {
    font-size: 2.5rem;
  }

  .game-image {
    height: 150px;
  }

  .game-info {
    padding: 12px;
  }

  .game-info h3 {
    font-size: 1.1rem;
  }

  .game-info p {
    font-size: 0.8rem;
    margin-bottom: 10px;
  }

  .game-link {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  /* 移动端调整覆盖栏布局 */
  .hover-overlay {
    flex-direction: column;
    text-align: center;
    padding: 8px;
  }
}

