/* ==========================================================================
   移动端样式 (≤768px)
   ========================================================================== */

/* 小于等于768px设备 */
@media screen and (min-width: 550px) and (max-width: 768px) {
  #hero h2 {
    font-size: 1.5rem !important;
  }
}

@media screen and (max-width: 768px) {
  /* 移动端专用元素显示 */
  .mobile-only {
    display: block;
  }
  
  /* 桌面端专用元素隐藏 */
  .desktop-only {
    display: none !important;
  }

  /* 移动端第一屏背景图片 */
  #hero {
    background-image: url("../assets/20250904-161350.jpg") !important;
  }

  /* 移动端第二屏背景图片 */
  #game {
    background-image: url("../assets/20250904-165912.jpg") !important;
    height: 100vh !important;
  }

  #home::before {
    background: linear-gradient(
      180deg,
      rgba(255, 240, 245, 0.05) 0%,
      rgba(255, 255, 255, 0.03) 50%,
      rgba(255, 182, 193, 0.03) 100%
    );
    height: 100vh;
    bottom: auto;
  }

  /* 基础样式 */
  h1 {
    font-size: 3rem !important;
  }

  h2 {
    font-size: 2.5rem !important;
  }

  /* Hero区域标题移动端优化 */
  #hero h1 {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
    padding: 0 1rem !important;
  }

  #hero h2 {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
    margin-bottom: 2rem !important;
    padding: 0 1rem !important;
  }

  /* Hero区域容器移动端优化 */
  #hero .relative.z-10 {
    margin-top: 120px !important;
    padding: 0 1rem !important;
  }

  /* 第二屏游戏产品区域移动端优化 */
  .game-main-container {
    padding-block: min(10vh, 1.5rem) !important;
    min-height: 100vh !important;
    gap: 1rem !important;
    align-items: center;
    justify-content: center;
    max-height: 100vh;
    overflow-y: auto;
  }

  .game-left-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .game-title {
    font-size: calc(4vw + 1rem) !important;
    margin-bottom: 0.5rem !important;
    text-align: center;
    margin-left: 0;
  }

  .game-subtitle-info {
    margin-bottom: 0.5rem !important;
    text-align: center;
    margin-left: 0;
  }

  .game-subtitle-info p {
    font-size: calc(2.5vw + 0.5rem) !important;
    text-align: center;
  }

  .game-content-container {
    padding: 12px 16px !important;
    margin: 6px 0 !important;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }

  .game-description {
    font-size: calc(2.2vw + 0.4rem) !important;
    line-height: 1.5 !important;
    margin-bottom: 0.75rem !important;
    text-align: left;
  }

  /* 确保game-description下的所有内容都居左对齐 */
  .game-description * {
    text-align: left !important;
  }

  .game-achievement {
    margin-top: 0.75rem !important;
  }

  .achievement-title {
    font-size: calc(3vw + 0.6rem) !important;
    margin-bottom: 0.4rem !important;
    text-align: left;
  }

  .achievement-desc {
    font-size: calc(2vw + 0.4rem) !important;
    line-height: 1.4 !important;
  }

  .game-features {
    gap: 0.3rem 0.4rem !important;
    grid-template-columns: 1fr;
    display: grid;
  }

  /* 游戏特色亮点在移动端一行一个 */
  .game-features .feature-item {
    grid-column: 1 / -1;
  }

  .feature-item {
    font-size: calc(1.8vw + 0.3rem) !important;
    padding: 3px 6px !important;
  }

  /* 社交媒体链接移动端优化 */
  .social-links {
    margin-left: 0 !important;
    margin-top: 0.5rem !important;
  }

  .social-links-grid {
    gap: 0.6rem !important;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .social-link {
    font-size: 0.85rem;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
  }

  .social-text {
    width: 25px;
    height: 25px;
  }

  .social-text svg,
  .social-text img {
    width: 25px;
    height: 25px;
  }

  /* 微博图标移动端特殊样式 */
  .social-link.weibo .social-text {
    width: 28px;
    height: 28px;
    background-color: white;
  }

  .social-link.weibo .social-text svg {
    width: 28px;
    height: 28px;
  }

  /* TapTap图标移动端特殊样式 */
  .social-link.taptap .social-text {
    background-color: white;
  }

  /* 移动端触摸反馈 */
  .social-link:active .social-text {
    transform: scale(1.05);
  }

  .social-link:not(:last-child)::after {
    margin: 0 0.8rem;
  }

  /* 移动端触摸反馈动画 */
  .social-link:active {
    transition: opacity 0.1s ease;
    opacity: 0.8;
  }

  /* 移动端遮罩层限制 - 只覆盖第一屏 */
  #hero .bg-black.bg-opacity-30 {
    height: 100vh !important;
    bottom: auto !important;
  }

  /* 移动端背景优化 */
  .unified-background {
    background-attachment: scroll;
    background-size: 100% 100%;
    background: linear-gradient(
      180deg,
      #fff5f5 0%,
      #ffe4e6 20%,
      #fff0f5 35%,
      #ffffff 45%,
      #fff5f8 60%,
      #ffe1e6 75%,
      #ffb6c1 85%,
      #ffd4e5 100%
    );
    min-height: 100vh;
  }

  /* 确保关于页面在移动端也是纯白背景 */
  #about {
    background: white !important;
    padding: 1.5rem 0 !important;
  }

  /* 游戏区域优化 */
  #game {
    /* padding-top: 1rem !important;
    padding-bottom: 1rem !important; */
  }

  #game .text-center.mb-8 {
    margin-bottom: 1rem !important;
  }

  /* 下载按钮优化 */
  .download-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    min-width: 100%;
    text-align: center;
  }

  /* 导航优化 */
  .nav-link {
    font-size: 1rem;
  }

  /* 毛玻璃效果 */
  .glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* 第三屏关于页面移动端优化 */
  .about-main-title {
    font-size: 2rem !important;
    margin-bottom: 0.4rem !important;
  }

  .about-main-subtitle {
    font-size: 0.9rem !important;
    margin-bottom: 1.5rem !important;
  }

  .about-main-divider {
    margin-bottom: 1rem !important;
  }

  .section-title {
    font-size: 1.2rem !important;
    margin-bottom: 1rem !important;
  }

  .mission-text,
  .vision-text {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1rem !important;
  }

  .mission-section,
  .vision-section,
  .values-section {
    margin-bottom: 1rem !important;
  }

  .contact-container {
    margin-top: 1rem !important;
    padding: 0;
  }

  .contact-item {
    padding: 0.75rem 0 !important;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
  }

  .contact-title {
    font-size: 1rem !important;
    margin-bottom: 0.3rem !important;
  }

  .contact-desc {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
  }

  .contact-icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .contact-content {
    flex: 1;
    text-align: left;
  }

  .achievements-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 300px;
    margin: 0 auto;
  }

  .achievement-item {
    padding: 1.5rem 1rem;
    flex-direction: column;
    gap: 1rem;
    min-height: 120px;
    justify-content: center;
  }

  .wheat-decoration .icon {
    width: 40px;
    height: 40px;
    opacity: 0.7;
  }

  .achievement-content {
    margin: 0;
  }

  .achievement-number {
    font-size: 1.5rem;
  }

  .values-container {
    padding: 1.5rem;
  }

  .value-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1rem 0;
  }

  .value-number {
    margin-bottom: 0.5rem;
  }

  .company-info {
    margin-top: 2rem;
  }

  .location-text {
    font-size: 1.1rem;
  }

  /* 底部资质信息移动端优化 */
  footer {
    padding: 2rem 0 !important;
  }

  footer .container {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }

  /* 底部Logo移动端优化 */
  footer img {
    height: 100px !important;
    width: auto !important;
  }

  /* 底部导航链接移动端优化 */
  footer .flex.flex-wrap {
    gap: 1rem !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
  }

  footer .flex.flex-wrap a {
    font-size: 0.95rem !important;
    white-space: nowrap !important;
  }

  footer .flex.flex-wrap span {
    font-size: 0.85rem !important;
  }

  /* 健康游戏忠告移动端优化 */
  footer p.text-sm {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
  }

  /* 版权信息移动端优化 */
  footer .space-y-2 > p {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
  }

  /* 资质信息移动端优化 */
  footer .text-center.flex.items-center {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 0.5rem !important;
  }

  footer .text-center.flex.items-center a,
  footer .text-center.flex.items-center span {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
  }

  /* 营业执照图标移动端优化 */
  footer img[src="assets/renz.png"] {
    width: 70px !important;
    height: auto !important;
    margin: 0.5rem 0 0 0 !important;
  }

  /* 在移动端显示向下箭头 */
  .hero-section .absolute.bottom-8 {
    display: none;
  }

  .mobile-scroll-indicator {
    display: block;
  }
}
