/* 美化样式 */
.content-wrapper {
    --background: #f8f9fa;
  }
  
  .step-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    
    .step {
      display: flex;
      flex-direction: column;
      align-items: center;
      
      &-circle {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: #e9ecef;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        color: #868e96;
        transition: all 0.3s ease;
      }
      
      &-label {
        margin-top: 8px;
        font-size: 0.8rem;
        color: #adb5bd;
      }
      
      &.active {
        .step-circle {
          background: var(--ion-color-primary);
          color: white;
          box-shadow: 0 4px 12px rgba(var(--ion-color-primary-rgb), 0.3);
        }
        .step-label {
          color: var(--ion-color-primary);
          font-weight: 500;
        }
      }
    }
    
    .step-connector {
      width: 60px;
      height: 2px;
      background: #e9ecef;
      margin: 0 8px;
    }
  }
  
  .camera-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    
    .camera-preview {
      height: 240px;
      background: #e0e3ff;
      position: relative;
      
      .ai-focus-box {
        position: absolute;
        width: 70%;
        height: 60%;
        border: 2px solid rgba(255,255,255,0.8);
        border-radius: 12px;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        overflow: hidden;
        
        .scanning-line {
          position: absolute;
          width: 100%;
          height: 2px;
          background: rgba(255,255,255,0.6);
          animation: scan 2s infinite linear;
        }
      }
      
      .camera-icon {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        font-size: 3rem;
        color: rgba(255,255,255,0.9);
      }
    }
    
    .annotate-btn {
      --color: var(--ion-color-primary);
      margin: 12px auto;
    }
  }
  
  @keyframes scan {
    0% { top: 0 }
    100% { top: 100% }
  }
  
  .card-grid {
    display: grid;
    gap: 1.2rem;
    margin: 1.5rem 0;
  }
  
  .emergency-card {
    .spectrum-bar {
      height: 10px;
      background: linear-gradient(90deg, 
        #4CAF50 0%,
        #FFEB3B 50%,
        #F44336 100%
      );
      border-radius: 8px;
      margin: 1rem 0;
      position: relative;
      
      .level-indicator {
        width: 20px;
        height: 20px;
        background: white;
        border: 3px solid var(--ion-color-primary);
        border-radius: 50%;
        position: absolute;
        left: 45%;
        top: -5px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      }
    }
  }
  
  .resource-card {
    .resource-grid {
      display: grid;
      gap: 1.5rem;
      grid-template-columns: 1fr 1fr;
      
      .heatmap-area {
        background: #f1f3f5;
        border-radius: 12px;
        height: 160px;
        position: relative;
        
        .heat-dot {
          width: 24px;
          height: 24px;
          border-radius: 50%;
          position: absolute;
          background: rgba(var(--ion-color-primary-rgb), 0.2);
          border: 2px solid var(--ion-color-primary);
          
          &.dot-1 { left: 30%; top: 20% }
          &.dot-2 { left: 60%; top: 50% }
          &.dot-3 { left: 45%; top: 70% }
        }
      }
      
      .tool-list {
        background: transparent;
        
        ion-item {
          --background: #f8f9fa;
          border-radius: 8px;
          margin-bottom: 8px;
          
          ion-icon {
            color: var(--ion-color-primary);
          }
        }
      }
    }
  }
  
  .publish-btn {
    --border-radius: 12px;
    --padding-top: 18px;
    --padding-bottom: 18px;
    margin: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
  }
  /* 详细地图样式 */
.map-container {
    height: 300px;
    background: #f0f4f8;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    
    /* 道路系统 */
    .road {
      position: absolute;
      background: #cbd5e1;
      
      &.main-road {
        width: 100%;
        height: 8px;
        top: 45%;
        &::after {
          content: '';
          position: absolute;
          width: 100%;
          height: 2px;
          background: repeating-linear-gradient(
            90deg,
            #fff 0,
            #fff 10px,
            transparent 10px,
            transparent 20px
          );
        }
      }
      
      &.vertical {
        width: 8px;
        height: 100%;
        left: 60%;
      }
      
      &.side-road {
        background: #e2e8f0;
        width: 4px;
        height: 30%;
        top: 30%;
        left: 35%;
      }
    }
  
    /* 建筑物 */
    .building {
      position: absolute;
      border-radius: 4px;
      box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
      
      &.residential {
        width: 80px;
        height: 50px;
        background: #fff1f2;
        .windows {
          display: grid;
          gap: 4px;
          padding: 8px;
          .row {
            display: flex;
            gap: 6px;
            &::before {
              content: '▮▮';
              color: #94a3b8;
              font-size: 0.8em;
            }
          }
        }
      }
      
      &.office {
        width: 60px;
        height: 80px;
        background: #bfdbfe;
        .logo {
          position: absolute;
          bottom: 4px;
          right: 4px;
          font-size: 1.2em;
        }
      }
    }
  
    /* 公园 */
    .park {
      width: 100px;
      height: 60px;
      background: #dcfce7;
      border-radius: 8px;
      .tree {
        width: 12px;
        height: 12px;
        background: #4d7c0f;
        clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
        position: absolute;
        &:first-child { left: 20%; top: 30% }
        &:last-child { left: 60%; top: 50% }
      }
    }
  
    /* 热力点 */
    .heat-point {
      position: absolute;
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      
      .pulse {
        position: absolute;
        width: 100%;
        height: 100%;
        border: 2px solid;
        border-radius: 50%;
        animation: pulse 1.5s infinite;
      }
      
      ion-icon {
        position: relative;
        z-index: 1;
        font-size: 1.2em;
      }
      
      &.tool {
        color: #3b82f6;
        .pulse { border-color: rgba(59, 130, 246, 0.4) }
      }
      
      &.volunteer {
        color: #10b981;
        .pulse { border-color: rgba(16, 185, 129, 0.4) }
      }
    }
  
    /* 图例 */
    .map-legend {
      position: absolute;
      bottom: 10px;
      right: 10px;
      background: rgba(255,255,255,0.9);
      padding: 8px;
      border-radius: 8px;
      
      .item {
        display: flex;
        align-items: center;
        font-size: 0.8em;
        margin: 4px 0;
        
        .color {
          width: 12px;
          height: 12px;
          display: inline-block;
          margin-right: 6px;
          border-radius: 2px;
          
          &.residential { background: #fff1f2 }
          &.office { background: #bfdbfe }
          &.park { background: #dcfce7 }
        }
      }
    }
  }
  
  @keyframes pulse {
    0% { transform: scale(0.8); opacity: 1 }
    100% { transform: scale(2); opacity: 0 }
  }