// 账单导出样式
.bill-export {
  min-height: 100vh;
  background: #f5f5f5;
  padding-bottom: env(safe-area-inset-bottom);
}

// 导出横幅
.export-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px;
  background: linear-gradient(135deg, #34c759 0%, #30d158 100%);
  
  .banner-info {
    .banner-title {
      font-size: 36px;
      font-weight: 700;
      color: #fff;
      display: block;
      margin-bottom: 8px;
    }
    
    .banner-desc {
      font-size: 26px;
      color: rgba(255, 255, 255, 0.8);
    }
  }
  
  .export-btn {
    padding: 20px 36px;
    background: #fff;
    color: #34c759;
    font-size: 28px;
    font-weight: 600;
    border-radius: 40px;
    
    &::after { border: none; }
  }
}

// 列表头部
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 24px 16px;
  
  .section-title {
    font-size: 32px;
    font-weight: 600;
    color: #333;
  }
  
  .section-count {
    font-size: 26px;
    color: #999;
  }
}

// 任务列表
.task-list {
  height: calc(100vh - 300px);
  padding: 0 24px 24px;
}

.loading, .empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 400px;
  color: #999;
  font-size: 28px;
  
  .empty-btn {
    margin-top: 24px;
    padding: 20px 48px;
    background: #007aff;
    color: #fff;
    font-size: 28px;
    border-radius: 40px;
    
    &::after { border: none; }
  }
}

.task-card {
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  
  &.expired {
    opacity: 0.6;
  }
  
  .task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    
    .task-info {
      display: flex;
      align-items: flex-start;
      
      .task-icon {
        font-size: 48px;
        margin-right: 16px;
      }
      
      .task-meta {
        .task-name {
          font-size: 32px;
          font-weight: 600;
          color: #333;
          display: block;
          margin-bottom: 12px;
        }
        
        .task-tags {
          display: flex;
          
          .tag {
            padding: 6px 16px;
            background: #f5f5f5;
            color: #666;
            font-size: 22px;
            border-radius: 8px;
            margin-right: 12px;
            
            &.count {
              background: #e6f0ff;
              color: #007aff;
            }
          }
        }
      }
    }
    
    .task-status {
      font-size: 26px;
      font-weight: 500;
    }
  }
  
  .download-section {
    background: #f9f9f9;
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 20px;
    
    .file-info {
      margin-bottom: 16px;
      
      .file-name {
        font-size: 28px;
        font-weight: 600;
        color: #333;
        display: block;
        margin-bottom: 8px;
      }
      
      .file-size {
        font-size: 24px;
        color: #999;
        margin-right: 16px;
      }
      
      .expires-info {
        font-size: 24px;
        color: #666;
        
        .expired-tag {
          color: #ff3b30;
        }
      }
    }
    
    .download-actions {
      .download-btn {
        padding: 16px 36px;
        background: #34c759;
        color: #fff;
        font-size: 26px;
        border-radius: 24px;
        
        &::after { border: none; }
      }
    }
  }
  
  .task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    
    .task-time {
      font-size: 24px;
      color: #999;
    }
    
    .footer-actions {
      .action-btn {
        padding: 12px 24px;
        font-size: 24px;
        background: #f5f5f5;
        color: #666;
        border-radius: 8px;
        
        &.delete {
          background: #fff0f0;
          color: #ff3b30;
        }
        
        &::after { border: none; }
      }
    }
  }
}

// 导出弹窗
.modal-mask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  z-index: 1000;
  
  .export-modal {
    width: 100%;
    max-height: 85vh;
    background: #fff;
    border-radius: 32px 32px 0 0;
    display: flex;
    flex-direction: column;
  }
  
  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px;
    border-bottom: 1px solid #eee;
    
    .modal-title {
      font-size: 36px;
      font-weight: 600;
    }
    
    .modal-close {
      width: 64px;
      height: 64px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 36px;
      color: #999;
    }
  }
  
  .modal-body {
    flex: 1;
    padding: 32px;
    max-height: calc(85vh - 200px);
  }
  
  .form-item {
    margin-bottom: 32px;
    
    .form-label {
      font-size: 28px;
      font-weight: 600;
      color: #333;
      margin-bottom: 20px;
      display: block;
    }
  }
  
  .type-selector {
    display: flex;
    
    .type-option {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 24px 16px;
      margin-right: 16px;
      background: #f5f5f5;
      border-radius: 16px;
      border: 2px solid transparent;
      
      &:last-child { margin-right: 0; }
      
      &.active {
        background: #e6f0ff;
        border-color: #007aff;
      }
      
      .option-icon {
        font-size: 40px;
        margin-bottom: 12px;
      }
      
      .option-label {
        font-size: 26px;
        color: #333;
      }
    }
  }
  
  .format-selector {
    display: flex;
    
    .format-option {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 24px;
      margin-right: 16px;
      background: #f5f5f5;
      border-radius: 16px;
      border: 2px solid transparent;
      
      &:last-child { margin-right: 0; }
      
      &.active {
        background: #e6f0ff;
        border-color: #007aff;
      }
      
      .format-icon {
        font-size: 48px;
        margin-bottom: 12px;
      }
      
      .format-label {
        font-size: 28px;
        color: #333;
        font-weight: 500;
      }
    }
  }
  
  .date-range {
    display: flex;
    align-items: center;
    
    .date-picker {
      flex: 1;
      
      .date-label {
        font-size: 24px;
        color: #999;
        margin-bottom: 8px;
        display: block;
      }
      
      .picker-value {
        padding: 20px 24px;
        background: #f5f5f5;
        border-radius: 12px;
        font-size: 28px;
        color: #333;
      }
    }
    
    .date-separator {
      padding: 0 24px;
      font-size: 28px;
      color: #999;
    }
  }
  
  .tip-box {
    display: flex;
    background: #fffbe6;
    padding: 24px;
    border-radius: 16px;
    margin-top: 24px;
    
    .tip-icon {
      font-size: 32px;
      margin-right: 16px;
    }
    
    .tip-text {
      flex: 1;
      font-size: 26px;
      color: #666;
      line-height: 1.6;
    }
  }
  
  .modal-footer {
    display: flex;
    padding: 32px;
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
    border-top: 1px solid #eee;
    
    .cancel-btn {
      flex: 1;
      height: 88px;
      line-height: 88px;
      font-size: 32px;
      background: #f5f5f5;
      color: #333;
      border-radius: 44px;
      margin-right: 16px;
      
      &::after { border: none; }
    }
    
    .submit-btn {
      flex: 2;
      height: 88px;
      line-height: 88px;
      font-size: 32px;
      background: #007aff;
      color: #fff;
      border-radius: 44px;
      
      &::after { border: none; }
    }
  }
}
