/* Reset desktop zoom for mobile */
@media (max-width: 768px) {
  html {
    zoom: 1;
  }
}

/* OKSW 移动端样式 */

/* 无障碍 - 移动端也支持减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  .header {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  
  .hero-title .char-span {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  
  .hero-subtitle {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  
  .hero-desc {
    animation: none !important;
    opacity: 1 !important;
  }
}

@media (max-width: 768px) {
  /* Header */
  .header-inner {
    height: 56px;
    gap: 16px;
  }

  .logo-text {
    font-size: 22px;
  }

  .nav-slogan {
    display: none;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 16px;
    gap: 0;
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .mobile-menu-btn {
    display: flex;
    margin-left: auto;
  }

  /* Hero */
  .hero {
    padding: 60px 0 45px;
    background-image: url('/images/hero-banner.jpg');
    background-size: cover;
    background-position: center center;
  }

  .hero-title {
    font-size: 28px;
    letter-spacing: 1px;
  }

  .hero-subtitle {
    font-size: 15px;
    padding: 0 16px;
  }

  .hero-desc {
    font-size: 14px;
    padding: 0 16px;
  }

  /* 移动端逐字动画稍快 */
  @keyframes charBounceIn {
    0% {
      opacity: 0;
      transform: translateY(40px) scale(0.85);
    }
    60% {
      opacity: 1;
      transform: translateY(-6px) scale(1.02);
    }
    80% {
      transform: translateY(3px) scale(0.98);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  /* Section */
  .section-title {
    font-size: 22px;
  }

  .section-desc {
    font-size: 14px;
    margin-bottom: 24px;
  }

  /* Featured Grid */
  .featured-section {
    padding: 40px 0;
  }

  .featured-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .featured-card {
    padding: 16px;
  }

  .featured-card:hover {
    transform: translateY(-2px);
  }

  .featured-card .tool-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
    margin-bottom: 10px;
  }

  .featured-card .tool-name {
    font-size: 14px;
  }

  .featured-card .tool-comment-preview {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }

  .featured-card .tool-description {
    font-size: 12px;
    padding: 10px;
    line-height: 1.6;
  }

  .featured-card .tool-review {
    font-size: 12px;
    padding: 10px;
    line-height: 1.7;
  }

  /* Tools Section */
  .tools-section {
    padding: 40px 0;
  }

  .category-header {
    padding: 14px 16px;
  }

  .category-title h3 {
    font-size: 15px;
  }

  .category-count {
    font-size: 11px;
  }

  .category-content {
    padding: 0 16px 16px;
  }

  .tools-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tool-item {
    padding: 10px;
  }

  .tool-item .tool-icon {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .tool-item .tool-name {
    font-size: 14px;
  }

  .tool-item .tool-comment-preview {
    font-size: 12px;
  }

  .tool-item .tool-description {
    font-size: 11px;
    padding: 8px;
    line-height: 1.6;
  }

  .tool-item .tool-review {
    font-size: 11px;
    padding: 8px;
    line-height: 1.6;
  }

  /* About Section */
  .about-section {
    padding: 40px 0;
  }

  .about-content p {
    font-size: 14px;
  }

  .about-content p:first-child {
    font-size: 16px;
  }

  /* Disclaimer */
  .disclaimer-section {
    padding: 32px 0;
  }

  .disclaimer-box {
    padding: 16px;
  }

  .disclaimer-box h3 {
    font-size: 15px;
  }

  .disclaimer-box p {
    font-size: 12px;
  }

  /* Footer */
  .footer {
    padding: 32px 0 20px;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-links {
    gap: 20px;
  }

  .footer-bottom {
    padding-top: 20px;
  }

  /* Back to Top */
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }

  /* AI智能体说明文字 - 移动端适配 */
  .featured-note {
    margin-top: 16px;
    padding: 12px 14px;
    font-size: 14px;
    gap: 8px;
  }

  .note-dot {
    width: 6px;
    height: 6px;
  }
}


/* Notes page mobile */
.notes-page {
  padding: 40px 0 60px;
}

.notes-page-title {
  font-size: 24px;
}

.notes-page-content h3 {
  font-size: 18px;
}

.notes-page-content p {
  font-size: 14px;
}

/* Journal mobile */
.journal-entry {
  padding-left: 60px;
  margin-bottom: 12px;
}

.journal-entry .journal-date {
  font-size: 12px;
  padding: 2px 6px;
}

.journal-entry p {
  font-size: 13px;
}
