/* pages/home/home.wxss - 首页样式 */
page {
  background-color: #f5f5f5;
  height: 100%;
}

.page-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #f5f5f5;
}

/* 头部标题区域 */
.header-section {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  padding: 40rpx 30rpx;
  color: #fff;
  text-align: center;
}

.page-title {
  font-size: 36rpx;
  font-weight: 700;
  color: #fff;
}

/* 顶部标签栏 */
.tabs {
  display: flex;
  background-color: #ffffff;
  padding: 20rpx 0;
  border-bottom: 1rpx solid #e5e5e5;
}

.tab-item {
  flex: 1;
  text-align: center;
  font-size: 30rpx;
  color: #999999;
  padding-bottom: 10rpx;
  position: relative;
}

.tab-item text {
  display: inline-block;
}

.tab-item.active {
  color: #4A90E2;
  font-weight: 500;
}

.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60rpx;
  height: 4rpx;
  background-color: #4A90E2;
  border-radius: 2rpx;
}

/* 滚动区域 */
.scroll-content {
  flex: 1;
  padding: 0 0 20rpx 0;
}

/* 统计数据卡片 */
.stats-card {
  background: linear-gradient(135deg, #E8F4FD 0%, #D6EBFA 100%);
  margin: 20rpx 30rpx;
  padding: 30rpx 20rpx;
  border-radius: 16rpx;
}

.stats-row {
  display: flex;
  margin-bottom: 20rpx;
}

.stats-row:last-child {
  margin-bottom: 0;
}

.stat-item {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 12rpx;
  padding: 24rpx 16rpx;
  margin: 0 10rpx;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.stat-item:first-child {
  margin-left: 0;
}

.stat-item:last-child {
  margin-right: 0;
}

.stat-item.single {
  flex: 0 0 31%;
}

.stat-label {
  font-size: 24rpx;
  color: #666666;
  margin-bottom: 16rpx;
  line-height: 1.4;
}

.stat-value {
  font-size: 56rpx;
  font-weight: bold;
  color: #333333;
  line-height: 1;
}

.stat-value.warn {
  color: #FF4444;
}

/* 跳转生资保险 */
.insurance-link {
  background-color: #ffffff;
  margin: 0 30rpx 20rpx;
  padding: 30rpx;
  border-radius: 12rpx;
  text-align: center;
  font-size: 30rpx;
  color: #333333;
}

/* 区块样式 */
.section {
  margin-bottom: 24rpx;
  background-color: #ffffff;
  padding: 28rpx 0 24rpx;
  border-radius: 16rpx;
  margin-left: 24rpx;
  margin-right: 24rpx;
}

.section-title {
  font-size: 32rpx;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 24rpx 24rpx;
  padding-left: 0;
  display: flex;
  align-items: center;
}

/* 智能设备网格 */
.device-grid {
  display: flex;
  flex-wrap: wrap;
  padding: 0 24rpx;
  gap: 16rpx;
}

.device-grid .grid-item {
  width: calc((100% - 32rpx) / 3);
}

/* 智能工具网格 */
.tool-grid {
  display: flex;
  flex-wrap: wrap;
  padding: 0 24rpx;
  gap: 16rpx;
}

.tool-grid .grid-item {
  width: calc((100% - 32rpx) / 3);
}

/* 业务办理网格 */
.business-grid {
  display: flex;
  flex-wrap: wrap;
  padding: 0 24rpx;
  gap: 16rpx;
}

.business-grid .grid-item {
  width: calc((100% - 32rpx) / 3);
}

/* 网格项通用样式 */
.grid-item {
  background: #f8f9fa;
  border-radius: 12rpx;
  padding: 24rpx 8rpx 20rpx;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.2s ease;
  position: relative;
  box-sizing: border-box;
}

.grid-item:active {
  background: #e9ecef;
  transform: scale(0.96);
}

.icon-box {
  width: 80rpx;
  height: 80rpx;
  border-radius: 16rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10rpx;
  transition: all 0.2s ease;
}

.grid-item:active .icon-box {
  transform: scale(0.94);
}

.item-icon {
  width: 48rpx;
  height: 48rpx;
}

.item-icon-text {
  font-size: 44rpx;
  line-height: 1;
}

.item-label {
  font-size: 24rpx;
  color: #333333;
  text-align: center;
  line-height: 1.4;
  font-weight: 400;
  max-width: 100%;
  word-wrap: break-word;
}

/* 图标背景颜色 - 智能设备 */
.icon-yellow {
  background: #FFF3E0;
}

.icon-blue {
  background: #E3F2FD;
}

.icon-purple {
  background: #F3E5F5;
}

.icon-blue2 {
  background: #E1F5FE;
}

.icon-orange {
  background: #FFE0B2;
}

/* 智能工具 */
.icon-orange2 {
  background: #FFF8E1;
}

.icon-blue3 {
  background: #E8EAF6;
}

.icon-purple2 {
  background: #EDE7F6;
}

.icon-red {
  background: #FFEBEE;
}

/* 业务办理 */
.icon-yellow2 {
  background: #FFFDE7;
}

.icon-blue4 {
  background: #E0F2F1;
}

.icon-purple3 {
  background: #F1F8E9;
}

/* 底部留白 */
.bottom-space {
  height: 40rpx;
}
