/* ==========================================================================
   特定尺寸样式 (375px, 430px, 480px等)
   ========================================================================== */

/* 375px设备专用样式 */
@media screen and (max-width: 375px) {

  /* Hero区域375px专用优化 */
  #hero h1 {
    font-size: 1.8rem !important;
    line-height: 1.1 !important;
    margin-bottom: 0.6rem !important;
    padding: 0 0.3rem !important;
  }

  #hero h2 {
    line-height: 1.2 !important;
    margin-bottom: 1.2rem !important;
    padding: 0 0.3rem !important;
  }

  #hero .relative.z-10 {
    margin-top: 100px !important;
    padding: 0 0.5rem !important;
  }

  /* 375px设备第一屏背景图片 */
  #hero {
    background-image: url("../assets/20250904-161356.jpg") !important;
  }

  /* 375px设备第二屏背景图片 */
  #game {
    background-image: url("../assets/20250904-165912.jpg") !important;
    height: 100vh !important;
  }

  /* 第二屏游戏产品区域375px专用优化 */
  .game-main-container {
    padding-block: min(6vh, 0.8rem) !important;
    gap: 0.6rem !important;
  }

  .game-title {
    font-size: calc(4.8vw + 0.6rem) !important;
    margin-bottom: 0.2rem !important;
  }

  .game-subtitle-info p {
    font-size: calc(2.8vw + 0.2rem) !important;
  }

  .game-content-container {
    padding: 8px 10px !important;
    margin: 3px 0 !important;
  }

  .game-description {
    font-size: calc(2.5vw + 0.25rem) !important;
    line-height: 1.3 !important;
    margin-bottom: 0.5rem !important;
  }

  .game-achievement {
    margin-top: 0.5rem !important;
  }

  .achievement-title {
    font-size: calc(3.5vw + 0.3rem) !important;
    margin-bottom: 0.2rem !important;
  }

  .achievement-desc {
    font-size: calc(2.3vw + 0.15rem) !important;
    line-height: 1.2 !important;
  }

  .feature-item {
    font-size: calc(2vw + 0.15rem) !important;
    padding: 1px 3px !important;
  }

  .social-links-grid {
    gap: 0.4rem !important;
  }

  .social-text {
    width: 22px !important;
    height: 22px !important;
  }

  .social-text svg,
  .social-text img {
    width: 22px !important;
    height: 22px !important;
  }

  /* 第三屏关于页面375px专用优化 */
  #about {
    padding: 0.8rem 0 !important;
  }

  .about-main-title {
    font-size: 1.6rem !important;
    margin-bottom: 0.2rem !important;
  }

  .about-main-subtitle {
    font-size: 0.8rem !important;
    margin-bottom: 0.8rem !important;
  }

  .about-main-divider {
    margin-bottom: 0.8rem !important;
  }

  .section-title {
    font-size: 1rem !important;
    margin-bottom: 0.6rem !important;
  }

  .mission-text,
  .vision-text {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.6rem !important;
  }

  .mission-section,
  .vision-section,
  .values-section {
    margin-bottom: 0.6rem !important;
  }

  .contact-container {
    margin-top: 0.8rem !important;
  }

  .contact-item {
    padding: 0.5rem 0 !important;
  }

  .contact-title {
    font-size: 0.9rem !important;
    margin-bottom: 0.1rem !important;
  }

  .contact-desc {
    font-size: 0.8rem !important;
    line-height: 1.2 !important;
  }

  .contact-icon {
    min-width: 24px !important;
    height: 24px !important;
    font-size: 0.9rem !important;
  }
}

/* 超小屏幕移动端样式 (≤430px) */
@media screen and (max-width: 430px) {
  .mobile-only {
    display: none;
  }

  /* 第二屏游戏产品区域超小屏幕优化 */
  .game-main-container {
    padding-block: min(8vh, 1rem) !important;
    gap: 0.8rem !important;
  }

  .game-title {
    font-size: calc(3.8vw + 0.8rem) !important;
    margin-bottom: 0.3rem !important;
  }

  .game-subtitle-info p {
    font-size: calc(2.5vw + 0.3rem) !important;
  }

  .game-content-container {
    padding: 10px 12px !important;
    margin: 4px 0 !important;
  }

  .game-description {
    font-size: calc(2.6vw + 0.35rem) !important;
    line-height: 1.4 !important;
    margin-bottom: 0.6rem !important;
  }

  .game-achievement {
    margin-top: 0.6rem !important;
  }

  .achievement-title {
    font-size: calc(3vw + 0.4rem) !important;
    margin-bottom: 0.3rem !important;
  }

  .achievement-desc {
    font-size: calc(2.2vw + 0.25rem) !important;
    line-height: 1.3 !important;
  }

  .feature-item {
    font-size: calc(2.1vw + 0.22rem) !important;
    padding: 2px 4px !important;
  }

  /* 第三屏关于页面超小屏幕优化 */
  #about {
    padding: 1rem 0 !important;
  }

  .about-main-title {
    font-size: 1.8rem !important;
    margin-bottom: 0.3rem !important;
  }

  .about-main-subtitle {
    font-size: 0.85rem !important;
    margin-bottom: 1rem !important;
  }

  .section-title {
    font-size: 1.1rem !important;
    margin-bottom: 0.8rem !important;
  }

  .mission-text,
  .vision-text {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.8rem !important;
  }

  .mission-section,
  .vision-section,
  .values-section {
    margin-bottom: 0.8rem !important;
  }

  .contact-item {
    padding: 0.6rem 0 !important;
  }

  .contact-title {
    font-size: 0.95rem !important;
    margin-bottom: 0.2rem !important;
  }

  .contact-desc {
    font-size: 0.85rem !important;
    line-height: 1.3 !important;
  }
}

/* 小屏幕移动端样式 (≤480px) */
@media screen and (max-width: 480px) {

  /* 基础样式 */
  h1 {
    font-size: 2.5rem !important;
  }

  h2 {
    font-size: 2rem !important;
  }

  /* 底部资质信息移动端优化 */
  footer {
    padding: 1.5rem 0 !important;
  }

  footer .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* 底部Logo移动端优化 */
  footer img {
    width: auto !important;
  }

  /* 底部导航链接移动端优化 */
  footer .flex.flex-wrap {
    flex-direction: row !important;
    gap: 0.75rem !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
  }

  footer .flex.flex-wrap a {
    font-size: 0.9rem !important;
    padding: 0.25rem 0 !important;
    white-space: nowrap !important;
  }

  footer .flex.flex-wrap span {
    display: inline !important;
    font-size: 0.8rem !important;
  }

  /* 健康游戏忠告移动端优化 */
  footer p.text-sm {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.5rem !important;
  }

  /* 版权信息移动端优化 */
  footer .space-y-2>p {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.25rem !important;
  }

  /* 资质信息移动端优化 */
  footer .text-center.flex.items-center {
    flex-direction: column !important;
    gap: 0.1rem !important;
    align-items: center !important;
    margin-top: 16px;
  }

  footer .text-center.flex.items-center a,
  footer .text-center.flex.items-center span {
    font-size: 0.7rem !important;
    line-height: 1.2 !important;
    text-align: center !important;
    margin: 0 !important;
  }

  footer .text-center.flex.items-center span.text-gray-400 {
    display: none !important;
  }

  /* 营业执照图标移动端优化 */
  footer img[src="assets/renz.png"] {
    width: 60px !important;
    height: auto !important;
    margin: 0.5rem 0 0 0 !important;
  }

  /* Hero区域标题小屏幕优化 */
  #hero h1 {
    font-size: 2rem !important;
    line-height: 1.1 !important;
    margin-bottom: 0.75rem !important;
    padding: 0 0.5rem !important;
    word-break: keep-all !important;
  }

  #hero h2 {
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
    padding: 0 0.5rem !important;
    word-break: keep-all !important;
  }

  /* Hero区域容器小屏幕优化 */
  #hero .relative.z-10 {
    margin-top: 158px !important;
    padding: 0 0.5rem !important;
  }

  /* 小屏幕背景优化 */
  .unified-background {
    background-size: 100% 100%;
    background: linear-gradient(180deg,
        #fff5f5 0%,
        #ffe8ea 25%,
        #fff0f5 40%,
        #ffffff 50%,
        #fff0f5 65%,
        #ffb6c1 80%,
        #ffd4e5 100%);
  }

  /* 确保关于页面在小屏幕也是纯白背景 */
  #about {
    background: white !important;
  }

  /* 下载按钮进一步优化 */
  .download-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.8rem;
    border-radius: 40px;
  }

  /* 导航优化 */
  .nav-link {
    font-size: 0.9rem;
  }

  /* 容器内边距 */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* 毛玻璃效果 */
  .glass-effect {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  /* 社交媒体链接小屏幕优化 */
  .social-links-grid {
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .social-link {
    font-size: 0.8rem;
  }

  .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 {
    display: none;
  }

  /* 关于页面 */
  .about-main-title {
    font-size: 1.8rem;
  }

  .about-main-subtitle {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .mission-text,
  .vision-text {
    font-size: 0.95rem;
  }

  .achievement-number {
    font-size: 1.3rem;
  }

  .achievement-label {
    font-size: 0.8rem;
  }

  .wheat-decoration .icon {
    width: 35px;
    height: 35px;
    opacity: 0.6;
  }

  .achievement-item {
    flex-direction: row;
  }

  .achievement-content {
    margin: 0;
  }

  .values-container {
    padding: 1rem;
  }

  .value-item {
    padding: 0.8rem 0;
  }

  .value-title {
    font-size: 1rem;
  }

  .value-desc {
    font-size: 0.9rem;
  }

  .contact-container {
    padding: 0;
  }

  .contact-item {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 0.8rem;
    padding: 0.8rem 0;
  }

  .contact-icon {
    margin-bottom: 0;
    flex-shrink: 0;
    min-width: 28px;
    height: 28px;
    font-size: 1rem;
  }

  .contact-content {
    flex: 1;
    text-align: left;
  }

  .contact-title {
    font-size: 1rem;
  }

  .contact-desc {
    font-size: 0.9rem;
  }
}

/* 小于等于360px设备 */
@media screen and (max-width: 360px) {
  #hero h2 {
    font-size: calc(1.6vw + 0.5rem) !important;

  }
}

/* 361px到375px设备 */
@media screen and (min-width: 361px) and (max-width: 376px) {
  #hero h2 {
    font-size: calc(1.7vw + 0.5rem) !important;

  }
}

/* 376px到430px设备 */
@media screen and (min-width: 376px) and (max-width: 431px) {
  #hero h2 {
    font-size: calc(1.8vw + 0.5rem) !important;

  }
}

/* 431px到480px设备 */
@media screen and (min-width: 431px) and (max-width: 549px) {
  #hero h2 {
    font-size: calc(1.8vw + 0.5rem) !important;

  }
}