/* CSS变量定义 */
:root {
    --primary-color: #4361ee; /* 主色调-蓝色 */
    --text-color: #2b2d42;    /* 文字色-深灰 */
    --bg-color: #f8f9fa;      /* 背景色-浅灰 */
    --card-bg: #ffffff;       /* 卡片背景-白 */
    --shadow: 0 4px 12px rgba(0,0,0,0.08); /* 阴影效果 */
  }
  
  /* 基础样式重置 */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
  }
  
  /* 主容器 */
  .container {
    max-width: 800px;
    margin: 0 auto;
  }
  
  /* 顶部标题区 */
  .header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
  }
  .header h1 {
    font-size: 2.2rem;
    margin-left: 10px;
    color: var(--primary-color);
  }
  
  /* 搜索框样式 */
  .search-box {
    display: flex;
    margin: 40px 0;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--shadow);
  }
  .search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    font-size: 1rem;
  }
  .search-btn {
    width: 60px;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
  }
  .search-btn:hover {
    background: #3a56d4;
  }
  
  /* 链接卡片区 */
  .card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
  }
  .card h2 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
  }
  
  /* 链接网格布局 */
  .links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
  }
  .links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    text-decoration: none;
    color: var(--text-color);
    border-radius: 8px;
    transition: all 0.2s;
  }
  .links a:hover {
    background: rgba(67, 97, 238, 0.1);
    transform: translateY(-3px);
  }
  
  /* 导航链接容器 */
  .links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  
  /* 图标占位样式（实际使用需替换为真实图标库） */
  .iconfont {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-style: normal;
  }
  
  /* 手机端样式 */
  @media (max-width: 768px) {
    .links {
      flex-direction: row;
      overflow-x: auto;
      padding: 10px 0;
      -webkit-overflow-scrolling: touch;
    }
    .links a {
      flex: 1 1 auto;
      min-width: 0;
      white-space: nowrap;
      padding: 0 10px;
      text-align: center;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }