/* 安智领工作台 - 通用样式 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  background: #f5f6fa;
  color: #333;
  line-height: 1.5;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: #f5f6fa;
  padding-bottom: 60px;
}

/* 顶部标题 */
.header {
  position: relative;
  background: #2b6cb0;
  color: #fff;
  padding: 16px 20px;
  text-align: center;
}

.header h1 {
  font-size: 18px;
  font-weight: 600;
}

/* 加载中 */
.loading {
  text-align: center;
  padding: 40px 20px;
  color: #888;
  font-size: 14px;
}

/* 主内容 */
.content {
  padding: 16px 16px 20px;
}

/* 区块标题 */
.section-title {
  font-size: 15px;
  font-weight: 600;
  color: #666;
  margin: 16px 0 10px;
}

/* 统计卡片网格 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 10px;
  padding: 18px 8px;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.stat-num {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.stat-label {
  font-size: 13px;
  color: #888;
  margin-top: 4px;
}

/* 状态颜色 */
.stat-pending .stat-num { color: #e53e3e; }
.stat-processing .stat-num { color: #dd6b20; }
.stat-completed .stat-num { color: #38a169; }

/* 巡检卡片 */
.inspection-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.inspection-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.inspection-label {
  font-size: 14px;
  color: #666;
}

.inspection-num {
  font-size: 20px;
  font-weight: 700;
  color: #2b6cb0;
}

.arrow {
  font-size: 24px;
  color: #ccc;
}

/* 快捷按钮 */
.shortcuts-section {
  margin-top: 20px;
}

.btn {
  display: block;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 20px;
  margin-bottom: 10px;
  transition: opacity 0.2s;
}

.btn:active { opacity: 0.8; }

.btn-large {
  padding: 16px 20px;
}

.btn-primary {
  background: #2b6cb0;
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: #2b6cb0;
  border: 1px solid #2b6cb0;
}

/* 底部导航 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  display: flex;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  height: 56px;
  z-index: 100;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #888;
}

.nav-item.active {
  color: #2b6cb0;
}

.nav-icon {
  font-size: 20px;
}

.nav-label {
  font-size: 11px;
  margin-top: 2px;
}
