/* ===========================
   中等屏幕设备（768px以下）样式
   =========================== */
@media (max-width: 768px) {
  /* 内容布局样式 */
  .content-wrapper {
    flex-direction: column;
    margin-bottom: 65px;
  }

  .sidebar {
    width: 100%;
    order: -1;
    margin-bottom: 20px;
  }

  .blog-feed {
    width: 100%;
  }

  /* 文章布局调整 */
  .post-body {
    flex-direction: column-reverse;
  }

  /* 文章卡片样式 */
  .post {
    min-height: auto;
    border-radius: 18px;
  }
  
  /* 文章头部和底部样式 */
  .post-header, .post-footer {
    padding: 15px 16px;
  }
  
  /* 文章内容区域样式 */
  .post-content-wrapper {
    padding: 0 16px 15px;
  }
  
  /* 图片样式 */
  .post-image {
    width: 100%;
    height: 150px;
    margin: 10px;
    border-radius: 14px;
  }
  
  /* 文章文本样式 */
  .post-title {
    font-size: 18px;
  }
  
  .post-excerpt {
    font-size: 14px;
    -webkit-line-clamp: 4;
  }
  
  /* 博客布局样式 */
  .blog-posts {
    grid-template-columns: 1fr;
  }
  
  /* 文章元数据样式 */
  .post-meta {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  /* 个人资料样式 */
  .profile-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .profile-avatar {
    margin-right: 0;
    margin-bottom: 15px;
  }
  
  .profile-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
  }
  
  .profile-stats {
    justify-content: center;
  }
  
  .stat-item {
    margin-right: 15px;
    margin-left: 15px;
  }
  
  .profile-name {
    font-size: 22px;
  }
  
  .stat-value {
    font-size: 18px;
  }
  
  /* 标签导航样式 */
  .navbar-tag {
    width: 100%;
    padding: 15px 16px;
    top: -15px;
    box-sizing: border-box;
  }
  
  .tag-navigation {
    padding: 15px;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
    flex-wrap: nowrap;
    height: 36px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
  }
  
  .tag-nav-item {
    padding: 0 12px;
    height: 22px;
    min-width: auto;
    font-size: 12px;
    box-sizing: border-box;
    border-radius: 20px;
  }
  
  .tag-nav-item.active {
    box-shadow: 0 3px 8px rgba(100, 181, 246, 0.4);
    transform: translateY(-1px);
  }
  
  .tag-nav-item.dropdown {
    padding-right: 25px;
  }
  
  /* 下拉菜单样式 */
  .dropdown-content {
    min-width: 120px;
    border-radius: 14px;
  }
  
  .dropdown-item {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  /* 导航栏样式 */
  .navbar .container {
    padding: 0 16px;
    justify-content: center;
  }
  
  .logo {
    width: 100%;
    text-align: center;
  }
  
  .logo a {
    display: inline-block;
    font-size: 20px;
  }
  
  /* 底部导航栏样式 */
  .nav-links {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #000000;
    padding: 8px 0;
    margin: 0;
    justify-content: space-around;
    border-top: 1px solid #333;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    border-radius: 0;
  }
  
  .nav-links li {
    margin: 0;
    list-style: none;
  }
  
  .nav-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 13px;
    padding: 6px 10px;
    min-width: 70px;
    text-align: center;
  }
  
  /* 容器样式 */
  .container, .header-container {
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
  }
  
  /* 迷你博客样式 */
  .miniblog-wrapper, .top-likes-wrapper {
    max-width: 100%;
    padding: 15px 16px;
    border-radius: 18px;
  }
  
  .miniblog-item {
    border-radius: 14px;
  }
  
  /* 按钮样式 */
  .read-more, .like-button {
    min-height: 44px;
    min-width: 44px;
    padding: 10px 20px;
    border-radius: 24px;
  }
  
  /* 字体大小样式 */
  .header h1 {
    font-size: 28px;
  }
  
  /* 页脚样式 */
  footer {
    margin-bottom: 65px;
  }
  
  /* 用户横幅样式 */
  .user-profile-head-banner {
    display: none;
  }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
  .tag-nav-item {
    transition: all 0.15s ease;
  }
  
  .tag-nav-item:active {
    transform: scale(0.97);
  }
  
  .nav-links a {
    transition: background-color 0.15s ease;
  }
  
  .nav-links a:active {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
  }
}