/* 复用 design-system.css 的基础变量与组件，这里补充页面专属样式 */

.page-header .subtitle {
  color: var(--muted-color, #666);
  margin-top: 6px;
  font-size: 14px;
}

/* 标题行左右分布：左标题，右返回 */
.page-header .header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.page-header .header-row h1 {
  margin: 0;
}

/* 返回首页：强调型返回按钮 */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--primary-color, #2563eb);
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.25);
  padding: 8px 12px;
  border-radius: 8px;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.back-link i {
  font-size: 16px;
}
.back-link span {
  font-weight: 600;
  font-size: 14px;
}
.back-link:hover {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}

/* 表单布局与可点性增强 */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
}
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
}
.form-field label {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--text-color, #222);
}
.form-field .hint {
  color: var(--muted-color, #666);
  font-size: 13px;
  margin-top: 8px;
}

/* 放大输入与选择控件 */
.form-field input[type="text"],
.form-field input[type="number"],
.form-field input[type="date"],
.form-field select,
.form-field textarea {
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 10px;
  background: #fff;
  line-height: 1.4;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #9aa3af;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary-color, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 14px;
  margin-top: 8px;
}

/* 统计卡片 */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 992px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 576px) {
  .stats {
    grid-template-columns: 1fr;
  }
}
.stat {
  border: 1px solid var(--border-color, #eee);
  border-radius: 10px;
  padding: 16px;
  background: var(--card-bg, #fff);
}
.stat-title {
  color: var(--muted-color, #666);
  margin-bottom: 8px;
  font-size: 14px;
}
.stat-value {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-color, #222);
}

/* 表格 */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th, .table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color, #eee);
  text-align: right;
  white-space: nowrap;
  font-size: 14px;
}
.table th:first-child, .table td:first-child {
  text-align: left;
}
.table .col-date {
  text-align: left;
}
.table tbody tr:hover {
  background: #fafafa;
}

.muted {
  color: var(--muted-color, #666);
  font-size: 12px;
}