/* CEMC GRIB2 要素数据库静态站点 */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #222;
  background: #f7f8fa;
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

a { color: #0b5cad; text-decoration: none; }
a:hover { text-decoration: underline; }

/* 页头页脚 */
.site-header {
  background: #0b3d6e;
  color: #fff;
  padding: 20px 0 14px;
}
.site-header h1 { margin: 0; font-size: 22px; font-weight: 600; }
.site-header h1 a { color: #fff; }
.site-header .stats { margin: 4px 0 0; opacity: 0.85; font-size: 13px; }

.site-footer {
  margin-top: 40px;
  padding: 16px 0 28px;
  color: #777;
  font-size: 12.5px;
}

main.wrap { padding-top: 20px; }

/* 工具行 */
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.toolbar input[type="search"] {
  flex: 1 1 320px;
  padding: 8px 12px;
  border: 1px solid #c9d2dc;
  border-radius: 4px;
  font-size: 14px;
}
.toolbar select {
  padding: 8px;
  border: 1px solid #c9d2dc;
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
}
.filter-count { color: #777; font-size: 13px; }

/* 表格 */
.param-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.param-table th, .param-table td {
  padding: 7px 10px;
  border-bottom: 1px solid #e6eaef;
  text-align: left;
  vertical-align: top;
}
.param-table thead th {
  background: #eef2f6;
  font-weight: 600;
  white-space: nowrap;
  position: sticky;
  top: 0;
}
.param-table tbody tr:hover { background: #f2f7fc; }
.param-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.param-table .name { font-weight: 600; white-space: nowrap; }

.badge {
  display: inline-block;
  min-width: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #0b5cad;
  color: #fff;
  font-size: 12px;
  text-align: center;
}

/* 详情页 */
.breadcrumb { margin-bottom: 10px; font-size: 13px; }
.detail-title { margin: 0 0 14px; font-size: 24px; }
.detail-title .triplet {
  font-size: 15px;
  color: #666;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.detail-title .discipline-tag {
  font-size: 12px;
  background: #e3ecf6;
  color: #0b3d6e;
  border-radius: 3px;
  padding: 2px 8px;
  vertical-align: middle;
}

h3 { margin: 26px 0 10px; font-size: 17px; }

.meta-table {
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  min-width: 60%;
}
.meta-table th, .meta-table td {
  padding: 7px 12px;
  border-bottom: 1px solid #e6eaef;
  text-align: left;
  vertical-align: top;
}
.meta-table th {
  width: 240px;
  background: #eef2f6;
  font-weight: 600;
  white-space: nowrap;
}

.variant-table code {
  font-size: 12.5px;
  background: #f2f4f7;
  padding: 1px 5px;
  border-radius: 3px;
}

.hint { color: #777; font-size: 12.5px; margin-top: 6px; }
