/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #ff6b35;
  --primary-hover: #e55a2b;
  --secondary-color: #6c757d;
  --success-color: #28a745;
  --danger-color: #dc3545;
  --border-color: #dee2e6;
  --bg-color: #f8f9fa;
  --card-bg: #ffffff;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
  --radius: 8px;
  --radius-lg: 12px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 声明横幅 */
.banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.banner-text {
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  white-space: nowrap;
}

.banner-text strong {
  font-weight: 600;
}

.banner-text .highlight {
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

/* 顶部导航 */
.header {
  background: linear-gradient(135deg, var(--primary-color), #ff8c5a);
  color: white;
  padding: 16px 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-about {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-about:hover {
  background: rgba(255, 255, 255, 0.3);
}

.btn-health {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
}

.btn-health:hover {
  background: rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
}

.icon {
  font-size: 16px;
}

/* 主要内容区 */
.main {
  padding: 24px 0 40px;
}

/* 操作栏 */
.action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  flex: 1;
  max-width: 400px;
  gap: 8px;
}

.search-box input {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 14px;
  transition: border-color 0.3s;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* 按钮样式 */
.btn-primary {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-primary:disabled {
  background: var(--secondary-color);
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--secondary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: #5a6268;
}

.btn-search {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
}

.btn-search:hover {
  background: var(--primary-hover);
}

.btn-code {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
}

.btn-code:hover:not(:disabled) {
  background: var(--primary-hover);
}

.btn-code:disabled {
  background: var(--secondary-color);
  cursor: not-allowed;
}

/* 帖子列表 */
.posts-container {
  min-height: 300px;
}

.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.empty-state .icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* 帖子卡片 */
.post-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s;
}

.post-card:hover {
  box-shadow: var(--shadow-lg);
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.post-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-color), #ff8c5a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 16px;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-phone {
  font-weight: 500;
  font-size: 14px;
}

.post-date {
  font-size: 12px;
  color: var(--text-secondary);
}

.post-content {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
  white-space: pre-wrap;
  word-break: break-word;
}

.post-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.3s;
  background-color: #f0f0f0;
}

/* 懒加载样式 */
.post-image.lazy {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* 图片加载完成后的淡入效果 */
.post-image.lazy.loaded {
  opacity: 1;
  transform: scale(1);
}

/* 懒加载占位效果 */
.post-image.lazy:not(.loaded) {
  background: linear-gradient(
    90deg,
    #f0f0f0 25%,
    #e0e0e0 50%,
    #f0f0f0 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.post-image:hover {
  transform: scale(1.02);
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.post-stats {
  display: flex;
  gap: 16px;
  color: var(--text-secondary);
  font-size: 14px;
}

.post-stat {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-comment {
  color: var(--primary-color);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.3s;
}

.btn-comment:hover {
  color: var(--primary-hover);
}

/* 评论区 */
.comments-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  display: none;
}

.comments-section.active {
  display: block;
}

.comments-header {
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 15px;
}

.comments-list {
  max-height: 400px;
  overflow-y: auto;
  margin-bottom: 16px;
}

.comment-item {
  padding: 12px;
  background: var(--bg-color);
  border-radius: var(--radius);
  margin-bottom: 8px;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 13px;
}

.comment-author {
  font-weight: 500;
  color: var(--text-primary);
}

.comment-date {
  color: var(--text-secondary);
}

.comment-content {
  font-size: 14px;
  line-height: 1.5;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-input {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-input textarea {
  width: 100%;
  padding: 10px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 60px;
}

.comment-input textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.comment-verification {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.comment-verification input {
  flex: 1;
  min-width: 150px;
  padding: 8px 12px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 14px;
}

.comment-verification input:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.page-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-info {
  color: var(--text-secondary);
  font-size: 14px;
}

/* 弹窗 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease;
}

.modal-about {
  max-width: 600px;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-secondary);
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 20px;
}

/* 关于页面样式 */
.about-content h3 {
  font-size: 18px;
  color: var(--primary-color);
  margin: 20px 0 12px;
}

.about-content h3:first-child {
  margin-top: 0;
}

.about-content p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.about-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 16px;
}

.about-content ul li {
  font-size: 14px;
  line-height: 1.8;
  padding-left: 20px;
  position: relative;
}

.about-content ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.about-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.about-footer p {
  font-size: 15px;
  color: var(--primary-color);
  font-weight: 500;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

/* 表单 */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 14px;
}

.tip {
  font-weight: normal;
  color: var(--text-secondary);
  font-size: 12px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.char-count {
  text-align: right;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* 图片上传 */
.image-upload {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upload-area {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.upload-area:hover {
  border-color: var(--primary-color);
  background: rgba(255, 107, 53, 0.05);
}

.upload-placeholder .icon {
  font-size: 48px;
  margin-bottom: 8px;
}

.upload-placeholder p {
  color: var(--text-secondary);
  font-size: 14px;
}

.preview-area {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}

.preview-item {
  position: relative;
  aspect-ratio: 1;
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.preview-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: var(--danger-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 验证码输入 */
.verification-input {
  display: flex;
  gap: 8px;
}

.verification-input input {
  flex: 1;
}

/* Toast 提示 */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  opacity: 0;
  visibility: hidden;
  z-index: 2000;
  transition: all 0.3s;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
}

.toast-icon {
  font-size: 20px;
}

.toast-message {
  font-size: 14px;
}

.toast.success .toast-content {
  border-left: 4px solid var(--success-color);
}

.toast.success .toast-icon::before {
  content: '✓';
  color: var(--success-color);
}

.toast.error .toast-content {
  border-left: 4px solid var(--danger-color);
}

.toast.error .toast-icon::before {
  content: '✕';
  color: var(--danger-color);
}

/* 响应式设计 */
@media (max-width: 640px) {
  .banner {
    padding: 8px 0;
  }

  .banner-content {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .banner-text {
    font-size: 12px;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo {
    font-size: 20px;
  }

  .action-bar {
    flex-direction: column;
  }

  .search-box {
    max-width: 100%;
    width: 100%;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .post-images {
    grid-template-columns: 1fr;
  }

  .post-image {
    height: 250px;
  }

  .comment-verification {
    flex-direction: column;
  }

  .modal-content {
    max-height: 95vh;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .post-card {
    padding: 16px;
  }

  .verification-input {
    flex-direction: column;
  }
}

/* ============================================
   移动端优化增强
   ============================================ */

/* 触摸目标最小尺寸（符合 iOS/Android 人机交互指南） */
.btn-primary,
.btn-secondary,
.btn-comment,
.btn-code,
.page-btn,
.preview-remove,
.btn-about,
.close-btn {
  min-height: 44px;
  min-width: 44px;
}

/* 分页按钮优化 */
.page-btn {
  padding: 10px 16px;
  font-size: 16px;
}

/* 评论按钮优化 */
.btn-comment {
  padding: 12px 20px;
  font-size: 16px;
}

/* 验证码按钮优化 */
.btn-code {
  padding: 12px 16px;
  font-size: 14px;
  white-space: nowrap;
}

/* 弹窗优化 - 防止滚动穿透 */
.modal.active {
  overscroll-behavior: contain;
}

.modal.active ~ * {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* 弹窗内容区域可滚动 */
.modal-content {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* 关闭按钮增大 */
.close-btn,
.modal-close {
  width: 44px;
  height: 44px;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--text-secondary);
}

.close-btn:hover,
.modal-close:hover {
  color: var(--text-primary);
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

/* 图片预览删除按钮 */
.preview-remove {
  width: 36px;
  height: 36px;
  font-size: 24px;
}

/* ============================================
   平板适配 (768px - 1024px)
   ============================================ */
@media (min-width: 768px) and (max-width: 1024px) {
  .container {
    max-width: 720px;
  }

  .post-images {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-content {
    max-width: 600px;
  }
}

/* ============================================
   大屏手机适配 (480px - 640px)
   ============================================ */
@media (min-width: 480px) and (max-width: 640px) {
  .post-images {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .modal-content {
    max-width: 90%;
  }

  .header-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .header-right {
    align-items: center;
  }

  .stats {
    display: flex;
  }
}

/* ============================================
   横屏适配
   ============================================ */
@media (max-width: 920px) and (orientation: landscape) {
  .banner {
    padding: 4px 0;
  }

  .banner-content {
    flex-direction: row;
    gap: 20px;
  }

  .banner-text {
    font-size: 11px;
  }

  .header-content {
    padding: 8px 0;
  }

  .logo {
    font-size: 18px;
  }

  .modal-content {
    max-height: 90vh;
    overflow-y: auto;
  }

  .post-images {
    grid-template-columns: repeat(3, 1fr);
  }

  /* 横屏时隐藏部分装饰元素 */
  .icon {
    font-size: 14px;
  }
}

/* ============================================
   刘海屏/安全区域适配
   ============================================ */
@supports (padding: max(0px)) {
  body {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }

  .modal-content {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  .modal-header {
    padding-top: max(16px, env(safe-area-inset-top));
  }

  .header {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .action-bar {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .btn-primary {
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
}

/* ============================================
   移动端交互优化
   ============================================ */

/* 防止双击缩放 */
button,
a {
  touch-action: manipulation;
}

/* 输入框聚焦时优化（避免键盘遮挡） */
@media (max-width: 640px) {
  .modal.active .modal-content {
    transform: translate3d(0, 0, 0);
    transition: transform 0.3s ease;
  }

  /* 键盘弹出时调整 */
  @media (max-height: 500px) {
    .modal-content {
      max-height: 85vh;
    }

    .modal-header {
      padding: 12px;
    }

    .modal-body {
      padding: 12px;
    }
  }
}

/* 优化滚动性能 */
.posts-container,
.comments-list,
.modal-content {
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
}

/* ============================================
   移动端视觉优化
   ============================================ */

/* 增大点击热区 */
.post-card {
  position: relative;
}

/* 图片加载占位优化 */
.post-image.lazy {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 移动端卡片阴影优化 */
@media (max-width: 640px) {
  .post-card {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  }

  .modal-content {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }
}

/* ============================================
   小屏手机优化 (< 375px)
   ============================================ */
@media (max-width: 374px) {
  .container {
    padding: 0 10px;
  }

  .logo {
    font-size: 18px;
  }

  .btn-about {
    padding: 5px 12px;
    font-size: 13px;
  }

  .search-box input {
    font-size: 14px;
  }

  .post-card {
    padding: 12px;
  }

  .comment-form textarea {
    font-size: 14px;
  }

  /* 确保文字不会太小 */
  body {
    font-size: 14px;
  }
}

/* ============================================
   触摸反馈优化
   ============================================ */

/* 移动端触摸反馈 */
@media (hover: none) and (pointer: coarse) {
  .btn-primary:active,
  .btn-secondary:active,
  .btn-comment:active,
  .page-btn:active {
    transform: scale(0.96);
    opacity: 0.8;
  }

  .post-card:active {
    background-color: #f8f8f8;
  }

  /* 移除 hover 效果 */
  .btn-primary:hover,
  .btn-secondary:hover,
  .btn-comment:hover {
    transform: none;
  }
}

/* ============================================
   输入框优化
   ============================================ */

/* 移动端输入框自动放大字体（防止iOS缩放） */
@media (max-width: 640px) {
  input[type="tel"],
  input[type="text"],
  textarea {
    font-size: 16px;
  }
}

/* ============================================
   长列表优化
   ============================================ */

/* 使用 content-visibility 优化长列表渲染 */
@media (max-width: 640px) {
  .posts-container {
    content-visibility: auto;
  }

  .post-card {
    contain: layout style paint;
  }
}
