  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Segoe UI', Arial, sans-serif;
  }

  html,
  body {
      height: 100%;
      background-color: #f5f7fa;
      color: #333;
      overflow: hidden;
  }

  /* 主布局容器 - 使用flexbox实现全高度布局 */
  .page-container {
      display: flex;
      flex-direction: column;
      height: 100vh;
  }

  /* Header styles */
  .header {
      background-color: #2c3e50;
      color: white;
      padding: 15px 30px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-shrink: 0;
  }

  .logo {
      font-size: 24px;
      font-weight: 600;
  }

  .nav-links {
      display: flex;
      gap: 20px;
  }

  .nav-links a {
      color: #ecf0f1;
      text-decoration: none;
      padding: 8px 15px;
      border-radius: 4px;
      transition: background-color 0.3s;
  }

  .nav-links a:hover {
      background-color: #34495e;
  }

  /* 主要内容区域 - 使用flex填充剩余空间 */
  .main-content {
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      padding: 20px;
  }

  /* 查询标题区域 - 居中 */
  .query-title-section {
      margin-bottom: 15px;
      padding: 0 5px;
      flex-shrink: 0;
      display: flex;
      justify-content: center;
  }

  .query-title-container {
      max-width: 2000px;
      width: 100%;
  }

  .query-title {
      font-size: 20px;
      font-weight: 600;
      color: #2c3e50;
      display: flex;
      align-items: center;
      gap: 10px;
  }

  .query-title:before {
      content: '';
      display: inline-block;
      width: 4px;
      height: 20px;
      background-color: #1a8cff;
      border-radius: 2px;
  }

  /* 查询条件卡片 - 居中 */
  .query-card-container {
      display: flex;
      justify-content: center;
      margin-bottom: 20px;
      flex-shrink: 0;
  }

  .query-card {
      background-color: white;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
      max-width: 2000px;
      width: 100%;
      overflow: hidden;
  }

  .query-card-header {
      background-color: #f8f9fa;
      padding: 15px 20px;
      border-bottom: 1px solid #e9ecef;
      font-weight: 500;
      color: #495057;
  }

  .query-card-body {
      padding: 20px;
  }

  /* 搜索区域 */
  .search-section {
      display: flex;
      justify-content: center;
  }

  .search-box {
      display: flex;
      align-items: center;
      gap: 10px;
      max-width: 1600px;
      width: 100%;
  }

  .search-input {
      flex: 1;
      padding: 12px 15px;
      border: 1px solid #ddd;
      border-radius: 4px;
      font-size: 16px;
      transition: border-color 0.3s;
  }

  .search-input:focus {
      border-color: #1a8cff;
      outline: none;
      box-shadow: 0 0 0 3px rgba(26, 140, 255, 0.1);
  }

  .search-btn {
      background-color: #1a8cff;
      color: white;
      border: none;
      padding: 12px 25px;
      border-radius: 4px;
      cursor: pointer;
      font-size: 16px;
      font-weight: 500;
      transition: all 0.3s;
      white-space: nowrap;
      display: flex;
      align-items: center;
      gap: 8px;
  }

  .search-btn:hover {
      background-color: #0073e6;
      transform: translateY(-1px);
  }

  .search-btn i {
      font-size: 14px;
  }

  /* DataGrid容器 - 居中 */
  .datagrid-container-wrapper {
      flex: 1;
      display: flex;
      justify-content: center;
      overflow: hidden;
      min-height: 0;
  }

  .datagrid-container {
      background-color: white;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      min-height: 0;
      max-width: 2000px;
      width: 100%;
  }

  /* DataGrid标题栏 */
  .datagrid-title {
      padding: 15px 20px;
      border-bottom: 1px solid #eee;
      font-size: 18px;
      font-weight: 600;
      color: #2c3e50;
      background-color: #f8f9fa;
      flex-shrink: 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
  }

  .total-records {
      font-size: 14px;
      color: #6c757d;
      font-weight: normal;
  }

  /* DataGrid表格区域 - 填充容器 */
  .datagrid-table-container {
      flex: 1;
      overflow: hidden;
      min-height: 0;
  }

  /* DataGrid本身 - 设置固定高度填充父容器 */
  #dataGrid {
      width: 100%;
      height: 100%;
      border: none;
  }

  /* Footer */
  /* .footer {
      text-align: center;
      padding: 15px;
      color: #7f8c8d;
      font-size: 14px;
      border-top: 1px solid #eee;
      background-color: white;
      flex-shrink: 0;
  } */

  /* 按钮组样式 */
  .btn-group {
      display: flex;
      gap: 10px;
  }

  .btn-secondary {
      background-color: #6c757d;
      color: white;
      border: none;
      padding: 8px 15px;
      border-radius: 4px;
      cursor: pointer;
      font-size: 14px;
      transition: background-color 0.3s;
  }

  .btn-secondary:hover {
      background-color: #5a6268;
  }

  /* 响应式调整 */
  @media (max-width: 2000px) {

      .query-title-container,
      .query-card,
      .datagrid-container {
          max-width: 95%;
      }

      .search-box {
          max-width: 800px;
      }
  }

  @media (max-width: 768px) {
      .header {
          flex-direction: column;
          gap: 15px;
          text-align: center;
          padding: 15px;
      }

      .nav-links {
          flex-wrap: wrap;
          justify-content: center;
      }

      .main-content {
          padding: 15px;
      }

      .search-box {
          flex-direction: column;
          align-items: stretch;
          max-width: 100%;
      }

      .search-btn {
          width: 100%;
      }

      .btn-group {
          width: 100%;
      }

      .btn-group button {
          flex: 1;
      }

      .datagrid-title {
          flex-direction: column;
          align-items: flex-start;
          gap: 10px;
      }

      .query-title-container,
      .query-card,
      .datagrid-container {
          max-width: 100%;
      }
  }

  @media (max-width: 480px) {
      .main-content {
          padding: 10px;
      }

      .query-card-body {
          padding: 15px;
      }
  }

  /* 超大屏幕优化 */
  @media (min-width: 2000px) {
      .search-box {
          max-width: 1800px;
      }

      .search-input {
          font-size: 18px;
          padding: 14px 18px;
      }

      .search-btn {
          padding: 14px 30px;
          font-size: 18px;
      }

      .query-title {
          font-size: 22px;
      }

      .datagrid-title {
          font-size: 20px;
          padding: 18px 25px;
      }
  }