:root {
  /* 主色调 - 工业蓝 */
  --primary-color: #0070d2;
  --primary-dark: #005fb2;
  --primary-light: #4894e0;

  /* 辅助色 */
  --success-color: #04844b;
  --warning-color: #ffb75d;
  --error-color: #c23934;
  --info-color: #706e6b;

  /* 强调色 - 工业黄 */
  --accent-color: #f2cf5b;
  --accent-dark: #eab933;

  /* 中性色 */
  --neutral-50: #f3f2f2;
  --neutral-100: #e8e8e8;
  --neutral-200: #d8d8d8;
  --neutral-300: #b0adab;
  --neutral-400: #969492;
  --neutral-500: #706e6b;
  --neutral-600: #514f4d;
  --neutral-700: #3e3e3c;
  --neutral-800: #2b2826;
  --neutral-900: #080707;

  /* 基础尺寸 */
  --spacing-xxs: 0.25rem;
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;

  /* 圆角 */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    'SF Pro Text',
    'Segoe UI',
    -apple-system,
    BlinkMacSystemFont,
    Roboto,
    Oxygen,
    Ubuntu,
    sans-serif;
}

body {
  background: white;
  color: var(--neutral-800);
  line-height: 1.5;
}

.page {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-header {
  background: var(--primary-color);
  color: white;
  padding: 0 var(--spacing-md);
  font-weight: 500;
  display: flex;
  align-items: center;
  height: 56px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.page-title {
  flex: 1;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
}

.page-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--spacing-md);
  padding-top: calc(56px + var(--spacing-md)); /* 头部固定后，内容需要往下偏移 header 的高度 */
  padding-bottom: calc(56px + var(--spacing-md)); /* 导航栏高度 + 内边距 */
}

.navigation {
  display: flex;
  justify-content: space-around;
  background: white;
  height: 56px;
  border-top: 1px solid var(--neutral-200);
  position: fixed;
  bottom: 0;
  width: 100%;
  left: 0;
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-decoration: none;
  color: var(--neutral-500);
  font-size: 12px;
  position: relative;
}

.nav-item.active {
  color: var(--primary-color);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 40%;
  height: 3px;
  background: var(--primary-color);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.nav-icon {
  font-size: 22px;
  margin-bottom: var(--spacing-xxs);
}

.search-bar {
  background: var(--neutral-50);
  border-radius: var(--radius-lg);
  padding: var(--spacing-sm) var(--spacing-md);
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  border: 1px solid var(--neutral-200);
}

.search-icon {
  color: var(--neutral-500);
  margin-right: var(--spacing-sm);
  font-size: 18px;
}

.search-input {
  border: none;
  background: transparent;
  flex: 1;
  font-size: 16px;
  outline: none;
  color: var(--neutral-700);
}

.card {
  background: white;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  overflow: hidden;
  border: 1px solid var(--neutral-200);
}

.card-header {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--neutral-200);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-content {
  padding: var(--spacing-md);
}

.button {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.button.primary {
  background: var(--primary-color);
  color: white;
}

.button.secondary {
  background: var(--accent-color);
  color: var(--neutral-800);
}

.button.tertiary {
  background: var(--neutral-100);
  color: var(--neutral-700);
  border: 1px solid var(--neutral-300);
}

.button.full {
  display: block;
  width: 100%;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  margin: var(--spacing-md) 0 var(--spacing-sm);
  display: flex;
  align-items: center;
  color: var(--neutral-700);
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--primary-color);
  margin-right: var(--spacing-sm);
  border-radius: var(--radius-sm);
}

.status-badge {
  display: inline-block;
  padding: 2px var(--spacing-xs);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge.success {
  background: var(--success-color);
  color: white;
}

.status-badge.warning {
  background: var(--warning-color);
  color: var(--neutral-800);
}

.status-badge.error {
  background: var(--error-color);
  color: white;
}

.status-badge.info {
  background: var(--info-color);
  color: white;
}

.tabs {
  display: flex;
  background: white;
  margin-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--neutral-200);
  overflow-x: auto;
}

.tab {
  padding: var(--spacing-sm) var(--spacing-md);
  white-space: nowrap;
  font-weight: 500;
  color: var(--neutral-500);
  position: relative;
}

.tab.active {
  color: var(--primary-color);
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  color: var(--neutral-700);
}

.form-control {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-md);
  background: white;
  font-size: 16px;
}

.action-row {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.action-row .button {
  flex: 1;
}

.product-card {
  display: flex;
  padding: var(--spacing-md);
  background: white;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  border: 1px solid var(--neutral-200);
  text-decoration: none;
  color: inheritj;
}

.rental-item {
  text-decoration: none;
  color: inherit;
}
