body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f7f7;
    color: #333;
    font-size: clamp(14px, 3vw, 16px);
  }
  
  /* 移动端优化 */
  @media screen and (max-width: 768px) {
    .app-container {
      flex-direction: column;
    }
    
    .sidebar {
      width: 100%;
      height: auto;
      position: relative;
      padding: 10px;
      z-index: 100;
      transition: all 0.3s ease;
    }
    
    .sidebar.collapsed {
      width: 0;
      padding: 0;
      overflow: hidden;
    }
    
    .sidebar-header {
      margin-bottom: 10px;
      width: 100%;
      display: flex;
      align-items: center;
    }
    
    .menu-items {
      display: flex;
      overflow-x: auto;
      padding-bottom: 10px;
      scrollbar-width: none;
      width: 100%;
    }
    
    .menu-items::-webkit-scrollbar {
      display: none;
    }
    
    .menu-item {
      margin-right: 10px;
      margin-bottom: 0;
      white-space: nowrap;
    }
    
    .main-content {
      max-width: 100vw;
      padding: 15px 10px;
    }
    
    .main-content.expanded {
      max-width: 100vw;
      width: 100vw;
    }
    
    .toggle-btn {
      display: flex;
      right: 10px;
      top: 10px;
    }
    
    .up-group {
      min-width: 100%;
    }
    
    .up-list {
      grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .article-list {
      grid-template-columns: 1fr;
    }
  }
  
  /* 平板设备优化 */
  @media screen and (min-width: 769px) and (max-width: 1024px) {
    .up-group {
      min-width: 100%;
    }
    
    .up-list {
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
  }
  .app-container {
    display: flex;
    min-height: 100vh;
  }
  .sidebar {
    width: 250px;
    background: linear-gradient(to bottom, #ff9a9e, #fad0c4);
    color: white;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
  }
  .sidebar.collapsed {
    width: 80px;
  }
  .sidebar.collapsed .sidebar-text {
    display: none;
  }
  .sidebar.collapsed .toggle-btn {
    right: -15px;
  }
  .sidebar.collapsed .logo-text {
    display: none;
  }
  .sidebar.collapsed .logo-icon {
    margin-left: 15px;
  }
  .sidebar-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
  }
  .logo-icon {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    margin-right: 10px;
  }
  .logo-text {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: bold;
  }
  .toggle-btn {
    position: absolute;
    right: -15px;
    top: 20px;
    background-color: #ff9a9e;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    z-index: 10;
  }
  .menu-item {
    padding: clamp(0.75rem, 2vw, 0.875rem) clamp(0.9375rem, 2vw, 1.25rem);
    margin-bottom: 5px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
  }
  .menu-item:hover {
    background-color: rgba(255,255,255,0.2);
  }
  .menu-item.active {
    background-color: rgba(255,255,255,0.3);
    font-weight: bold;
  }
  .menu-icon {
    width: clamp(1.25rem, 2vw, 1.5625rem);
    margin-right: 10px;
  }
  .main-content {
    flex: 1;
    padding: clamp(1.25rem, 3vw, 2.5rem);
    max-width: calc(100vw - 250px);
    transition: all 0.3s ease;
  }
  .main-content.expanded {
    max-width: calc(100vw - 80px);
  }
  .header {
    background-color: white;
    border-radius: 10px;
    padding: clamp(1.25rem, 3vw, 1.5625rem);
    margin-bottom: clamp(1.25rem, 3vw, 1.5625rem);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #fad0c4 0%, #ffd1ff 100%);
    color: white;
  }
  .header h1 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 1.75rem);
  }
  .header p {
    font-size: clamp(0.875rem, 2vw, 1rem);
  }
  .section {
    background-color: white;
    border-radius: 10px;
    padding: clamp(1.25rem, 3vw, 1.5625rem);
    margin-bottom: clamp(1.25rem, 3vw, 1.5625rem);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  .section h2 {
    margin-top: 0;
    color: #ff9a9e;
    border-bottom: 2px solid #ff9a9e;
    padding-bottom: 10px;
    font-size: clamp(1.25rem, 3vw, 1.375rem);
  }
  .up-groups {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1.25rem, 3vw, 1.5625rem);
  }
  .up-group {
    flex: 1 1 clamp(18.75rem, 40vw, 21.875rem);
    min-width: clamp(18.75rem, 40vw, 21.875rem);
  }
  .up-group h3 {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
  }
  .up-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(clamp(9.375rem, 20vw, 12.5rem), 1fr));
    gap: clamp(0.9375rem, 2vw, 1.25rem);
  }
  .up-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: clamp(0.625rem, 2vw, 0.75rem);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
  .up-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  .up-avatar {
    width: clamp(3.75rem, 8vw, 4.375rem);
    height: clamp(3.75rem, 8vw, 4.375rem);
    border-radius: 50%;
    margin: 0 auto clamp(0.625rem, 2vw, 0.75rem);
    overflow: hidden;
    background-color: #f0f0f0;
  }
  .up-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .up-name {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: clamp(0.875rem, 2vw, 1rem);
  }
  .up-desc {
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    color: #666;
    min-height: clamp(2.25rem, 4vw, 2.5rem);
  }
  .article-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(clamp(18.75rem, 40vw, 21.875rem), 1fr));
    gap: clamp(1.25rem, 3vw, 1.5625rem);
  }
  .article-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  .article-thumb {
    height: clamp(9.375rem, 20vw, 12.5rem);
    background-color: #f0f0f0;
    position: relative;
  }
  .article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .article-content {
    padding: clamp(0.9375rem, 2vw, 1.25rem);
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .article-title {
    font-weight: bold;
    margin-bottom: 10px;
    flex: 1;
    font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  }
  .article-meta {
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    color: #666;
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
  }
  .footer {
    text-align: center;
    padding: clamp(1.25rem, 3vw, 1.5625rem);
    color: #666;
    font-size: clamp(0.8125rem, 1.5vw, 0.875rem);
  }
  @media (max-width: 768px) {
    .sidebar {
      width: 80px;
    }
    .sidebar .sidebar-text {
      display: none;
    }
    .sidebar .toggle-btn {
      right: -15px;
    }
    .sidebar .logo-text {
      display: none;
    }
    .sidebar .logo-icon {
      margin-left: 15px;
    }
    .main-content {
      max-width: calc(100vw - 80px);
      padding: clamp(0.9375rem, 3vw, 1.25rem);
    }
    .header h1 {
      font-size: clamp(1.25rem, 3vw, 1.5rem);
    }
    .up-groups {
      flex-direction: column;
    }
    .article-list, .up-list {
      grid-template-columns: 1fr;
    }
  }